/* Shared panel system. Scene materials remain in brb-clear-glass.css. */
:root {
  --ui-body: 13px;
  --ui-caption: 12px;
  --ui-line: #ffffff2e;
  --ui-card: #ffffff06;
  --ui-control-radius: 12px;
}
html[data-scene] :is(.panel, .postcard-dialog) {
  --panel-pad: 24px;
  padding: 24px;
  border-radius: 24px;
  font-size: var(--ui-body);
  line-height: 1.6;
  scrollbar-width: thin;
  scrollbar-color: #ffffff59 transparent;
  scroll-padding-top: 76px;
}
html[data-scene] :is(.panel, .postcard-dialog) .panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 66px;
  padding: 12px 16px;
  margin: -24px -24px 22px;
  top: -24px;
  border-bottom: 1px solid var(--ui-line);
}
html[data-scene] :is(.panel, .postcard-dialog) .panel-head h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
  font: 500 18px/1.35 ForestSans, 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: -.25px;
  color: #fff;
}
html[data-scene] :is(.panel, .postcard-dialog) .close {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  margin-left: auto;
  border: 1px solid var(--ui-line);
  background: #ffffff06;
  font-size: 21px;
  line-height: 1;
}
html[data-scene] .panel .window-handle { flex-basis: 24px; width: 24px; height: 40px; color: #ffffffbf; }
html[data-scene] .panel :is(p, .panel-intro, .fine-print) { font-size: var(--ui-body); line-height: 1.65; }
html[data-scene] .panel .panel-intro { margin: 0 0 18px; }
html[data-scene] .panel :is(.fine-print, .account-subtle, .account-privacy-copy) { font-size: var(--ui-caption); color: #f2f2f2; }
html[data-scene] :is(.panel, .postcard-dialog) p:empty { display: none; }
html[data-scene] .panel :is(label, summary, .checkbox-row, .saved-mix-label, .select-label) { font-size: var(--ui-body); color: #fafafa; }
html[data-scene] .panel :is(h3, .section-label) { font-size: 13px; font-weight: 500; letter-spacing: 0; color: #fff; }
html[data-scene] :is(.panel, .postcard-dialog) :is(.wide-button, .outline-button, .account-primary, .account-google, .account-plan-button) {
  min-height: 44px;
  border-radius: var(--ui-control-radius);
  padding: 10px 14px;
  font-size: 13px !important;
  line-height: 1.4;
}
html[data-scene] :is(.panel, .postcard-dialog) .wide-button { background: #f3f3f3; color: #292929 !important; border-color: #ffffff80; text-shadow: none; }
html[data-scene] :is(.panel, .postcard-dialog) .wide-button:hover { background: #fff; }
html[data-scene] .postcard-dialog .outline-button { color: #fff; background: #ffffff06; border-color: var(--ui-line); }
html[data-scene] .panel .text-button {
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #fff;
}
html[data-scene] .panel .text-button:hover { background: #ffffff10; }
html[data-scene] :is(.panel, .postcard-dialog) .panel-row { gap: 10px; margin: 16px 0 0; flex-wrap: wrap; }
html[data-scene] .panel :is(input[type=text], input[type=email], input[type=url], input[type=number], textarea, select) {
  border: 1px solid #ffffff40;
  border-radius: var(--ui-control-radius);
  background: var(--clear-field);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  min-height: 44px;
  padding: 11px 12px;
  text-shadow: var(--clear-text-shadow);
}
html[data-scene] .panel textarea { line-height: 1.7; }
html[data-scene] .panel input[type=number] { font-size: 20px; font-variant-numeric: tabular-nums; }
html[data-scene] .panel select { max-width: 100%; }
html[data-scene] .panel select option { background: #303030; color: #fff; }
html[data-scene] .panel :is(input, textarea)::placeholder { color: #e4e4e4; opacity: 1; }
html[data-scene] .panel .checkbox-row { gap: 10px; line-height: 1.55; min-height: 44px; margin-top: 14px; }
html[data-scene] .panel input[type=checkbox] { accent-color: #f4f4f4; flex-shrink: 0; }
html[data-scene] .panel .checkbox-row input[type=checkbox] { background: #0000001a; border-color: #ffffff59; }
html[data-scene] .panel .checkbox-row input[type=checkbox]::before { background: #ffffffb3; }
html[data-scene] .panel .checkbox-row input[type=checkbox]:checked { background: #ffffff33; border-color: #ffffff80; }
html[data-scene] .panel .checkbox-row input[type=checkbox]:checked::before { background: #fff; }
html[data-scene] #scene-brightness { appearance: none; background: transparent; height: 28px; cursor: pointer; }
html[data-scene] #scene-brightness::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: #ffffff4d; }
html[data-scene] #scene-brightness::-moz-range-track { height: 4px; border-radius: 4px; background: #ffffff4d; }
html[data-scene] #scene-brightness::-webkit-slider-thumb { appearance: none; width: 16px; height: 16px; margin-top: -6px; border: 1px solid #fff; border-radius: 50%; background: #f5f5f5; box-shadow: 0 1px 3px #0003; }
html[data-scene] #scene-brightness::-moz-range-thumb { width: 14px; height: 14px; border: 1px solid #fff; border-radius: 50%; background: #f5f5f5; box-shadow: 0 1px 3px #0003; }
html[data-scene] :is(.panel, .postcard-dialog) :is(input, textarea, button, a, summary):focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* One segmented control language for Sounds, Timer and Notes. */
html[data-scene] .panel :is(.sound-presets, .brb-timer-tabs, .notebook-tabs) {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--ui-line);
  border-radius: 15px;
  background: #00000012;
  margin: 0 0 20px;
}
html[data-scene] .panel :is(.sound-presets button, .brb-timer-tabs button, .notebook-tabs button) {
  min-height: 40px;
  padding: 9px 6px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 12px;
  line-height: 1.3;
  color: #fff;
}
html[data-scene] .panel :is(.sound-presets button[aria-pressed=true], .brb-timer-tabs button[aria-selected=true], .notebook-tabs button[aria-selected=true]) {
  background: #ffffff1f !important;
  border-color: #ffffff59;
  color: #fff !important;
  box-shadow: inset 0 1px #ffffff38;
  text-shadow: var(--clear-text-shadow);
}
html[data-scene] .panel :is(.brb-focus-planner, .brb-countdown-planner, .brb-stopwatch-planner, .notebook-current-intention, .account-plan-card, .links-item) {
  padding: 18px;
  border: 1px solid var(--ui-line);
  border-radius: 16px;
  background: var(--ui-card);
  box-shadow: inset 0 1px #ffffff14;
}
html[data-scene] .panel :is(.brb-focus-planner, .brb-countdown-planner, .brb-stopwatch-planner) { margin: 0; }
html[data-scene] .panel .brb-focus-heading { justify-content: flex-end; }
html[data-scene] .panel :is(.brb-focus-duration, .brb-focus-fields label, .brb-focus-fields label span, .brb-countdown-field small) { color: #f4f4f4; font-size: 12px; }
html[data-scene] .panel .brb-focus-fields { margin-top: 16px; gap: 12px; }
html[data-scene] .panel .brb-focus-summary { margin: 14px 0; font-size: 12px !important; }
html[data-scene] .panel .brb-timer-preview { margin: 6px 0 24px; font-size: 56px; font-weight: 300; color: #fff; }
html[data-scene] .panel .brb-countdown-presets button { min-height: 40px; font-size: 12px; border-radius: 10px; color: #fff; }
html[data-scene] .panel .program { padding: 14px 0; min-height: 68px; border-color: var(--ui-line); }
html[data-scene] .panel .program strong { font-size: 14px; font-weight: 500; }
html[data-scene] .panel .program small { font-size: 12px; margin-top: 3px; color: #f2f2f2; }
html[data-scene] .panel .program>span+span { font-size: 16px; color: #fff; }
html[data-scene] .panel progress::-webkit-progress-value { background: #f4f4f4; }
html[data-scene] .panel progress::-moz-progress-bar { background: #f4f4f4; }

/* Sounds has one status row, then controls and optional detail sections. */
html[data-scene] :is(#mixer-dialog,:is(#now-dialog,#view-dialog)) .mixer-presets { margin: 0; }
html[data-scene] :is(#mixer-dialog,:is(#now-dialog,#view-dialog)) .mix-now { margin: -4px 0 16px; min-height: 40px; font-size: 12px; }
html[data-scene] :is(#mixer-dialog,:is(#now-dialog,#view-dialog)) .mix-now .live-dot { display: none; }
html[data-scene] :is(#mixer-dialog,:is(#now-dialog,#view-dialog)) .primary-sliders { gap: 10px; }
html[data-scene] :is(#mixer-dialog,:is(#now-dialog,#view-dialog)) .mix-channel { padding: 14px 12px; border-radius: 16px; }
html[data-scene] :is(#mixer-dialog,:is(#now-dialog,#view-dialog)) :is(.mix-channel .channel-heading, .mixer-sliders output) { font-size: 12px; }
html[data-scene] :is(#mixer-dialog,:is(#now-dialog,#view-dialog)) details { margin-top: 8px; border: 0; border-top: 1px solid var(--ui-line); border-radius: 0; padding: 0; background: none; box-shadow: none; }
html[data-scene] :is(#mixer-dialog,:is(#now-dialog,#view-dialog)) summary { min-height: 48px; padding: 13px 0; font-size: 13px; font-weight: 500; }
html[data-scene] :is(#mixer-dialog,:is(#now-dialog,#view-dialog)) details .fine-print { font-size: 12px; margin: 12px 0 0; }
html[data-scene] :is(#mixer-dialog,:is(#now-dialog,#view-dialog)) .mix-depth small { font-size: 12px; color: #f2f2f2; }
html[data-scene] :is(#mixer-dialog,:is(#now-dialog,#view-dialog)) :is(#saved-mixes, #mix-name) { font-size: 13px; min-height: 44px; border-radius: 12px; }
html[data-scene] :is(#mixer-dialog,:is(#now-dialog,#view-dialog)) .saved-mix-actions { gap: 8px; }

html[data-scene] .panel .space-picker { gap: 12px; margin: 0 0 20px; }
html[data-scene] .panel .space-card { border-radius: 16px; }
html[data-scene] .panel .space-card-image { height: 88px; }
html[data-scene] .panel .space-card-copy { padding: 13px 12px; gap: 6px; }
html[data-scene] .panel .space-card-copy strong { font-size: 13px; line-height: 1.45; font-weight: 500; }
html[data-scene] .panel .space-card-copy em { font-size: 12px; color: #f5f5f5; margin: 0; }
html[data-scene] .panel .workspace-display { margin-top: 20px; padding-top: 20px; border-color: var(--ui-line); }
html[data-scene] .panel .workspace-display>label:first-child { font-size: 13px; }
html[data-scene] .panel .feature-dock { gap: 8px; }
html[data-scene] .panel .feature-dock button { border-radius: 12px; font-size: 12px; }
html[data-scene] .panel .mode-bar button { min-height: 52px; border-radius: 12px; font-size: 12px; }
html[data-scene] .panel .mode-bar button[aria-pressed=true],
html[data-scene] .panel .weather-options button[aria-pressed=true] { background: #ffffff1f; border-color: #ffffff80; }
html[data-scene] .panel .journey-caption { margin: 12px 0 20px; }
html[data-scene] .panel .journey-caption :is(span,small) { font-size: 11px; color: #f4f4f4; }
html[data-scene] .panel .weather-options button { border-radius: 12px; }
html[data-scene] .panel .weather-options button span { font-size: 12px; }
html[data-scene] #weather-dialog .wide-button { background: #ffffff08; color: #fff !important; border-color: var(--ui-line); text-shadow: var(--clear-text-shadow); }
html[data-scene] #weather-dialog .wide-button:hover { background: #ffffff14; }
html[data-scene] .panel .forecast-item { border-color: var(--ui-line); padding: 16px 0; gap: 12px; }
html[data-scene] .panel .forecast-item strong { font-size: 14px; font-weight: 500; }
html[data-scene] .panel .forecast-item small { font-size: 12px; color: #f4f4f4; }
html[data-scene] .panel .forecast-item button { min-height: 44px; padding: 10px 12px; border-radius: 12px; border-color: var(--ui-line); font-size: 12px; color: #fff; }
html[data-scene] #timer-program { font-size: 13px; letter-spacing: 0; }

html[data-scene] .panel .notebook-note-meta { margin: 8px 0 14px; }
html[data-scene] .panel .notebook-save-status { margin: 14px 0 0 !important; }
html[data-scene] .panel .notebook-current-intention p { font-size: 16px !important; }
html[data-scene] .panel .links-list-heading { margin: 0 0 14px; font-size: 11px; color: #f4f4f4; }
html[data-scene] .panel .links-item { padding: 0; }
html[data-scene] .panel .links-copy strong { font-size: 13px; }
html[data-scene] .panel .links-copy>span { font-size: 12px; color: #f0f0f0; }
html[data-scene] .panel .links-form { margin-top: 20px; padding-top: 20px; border-color: var(--ui-line); }
html[data-scene] .panel .links-form h3 { margin: 0 0 16px; font-size: 14px; }
html[data-scene] .panel .links-form label { font-size: 12px; gap: 8px; margin-bottom: 14px; }
html[data-scene] .panel .links-status { min-height: 0; margin: 16px 0 0; }
html[data-scene] .panel .time-today { margin: 2px 0 28px; gap: 16px; }
html[data-scene] .panel .time-today strong { font-size: 44px; color: #fff; }
html[data-scene] .panel :is(.time-today span, .time-week-head, .time-day small) { font-size: 12px; color: #f4f4f4; letter-spacing: 0; }
html[data-scene] .panel .time-day span { background: linear-gradient(#ffffff99, #ffffff26); }
html[data-scene] .panel .world-time-row { padding: 16px 0; }
html[data-scene] .panel .world-time-row small { font-size: 12px; color: #f4f4f4; }
html[data-scene] .panel .personal-time { margin-top: 20px; padding-top: 20px; }

html[data-scene] .account-panel .account-description { margin: 0 0 18px; font-size: 13px; line-height: 1.65; }
html[data-scene] .account-panel :is(.account-menu, .account-secondary-menu) { padding: 6px 0; margin-top: 16px; }
html[data-scene] .account-panel .account-menu-row { min-height: 48px; padding: 10px 6px; gap: 10px; }
html[data-scene] .account-panel .account-menu-row strong { font-size: 13px; }
html[data-scene] .account-panel .account-secondary-menu button { min-height: 44px; font-size: 13px; color: #fafafa; }
html[data-scene] .account-panel .account-preview-note { margin: 0 0 20px; font-size: 12px; border-radius: 12px; }
html[data-scene] .account-panel .account-preview-dot { background: #fff; }
html[data-scene] .account-panel .account-email-label { font-size: 12px; color: #fafafa; }
html[data-scene] .account-panel .account-membership-notice { margin: 0 0 20px; font-size: 13px; color: #fff; }
html[data-scene] .account-panel .account-membership-notice::before { display: none; }
html[data-scene] .account-panel .account-plan-plus { border-color: #ffffff59; }
html[data-scene] .account-panel .account-plan-card h3 { font-size: 24px; margin: 0 0 8px; color: #fff; }
html[data-scene] .account-panel .account-plan-card h3 svg { color: #fff; }
html[data-scene] .account-panel :is(.account-plan-state, .account-plan-card li) { font-size: 13px; color: #f5f5f5; }
html[data-scene] .account-panel .account-plan-card li::before { color: #fff; }
html[data-scene] .account-panel .account-help-grid { margin: 0 0 16px; }
html[data-scene] .account-panel .account-help-feature { gap: 12px; padding: 14px 0; }
html[data-scene] .account-panel .account-help-feature:first-child { border-top: 0; padding-top: 0; }
html[data-scene] .account-panel .account-help-feature strong { font-size: 13px; font-weight: 500; }
html[data-scene] .account-panel .account-help-feature small { font-size: 12px; color: #f4f4f4; line-height: 1.55; }
html[data-scene] .account-panel .account-keyboard :is(summary, dt, dd) { font-size: 12px; color: #fafafa; }
html[data-scene] .dock-more .more-tool { min-height: 50px; padding: 11px 13px; }
html[data-scene] .dock-more .more-tool-copy strong { font-size: 13px; }
html[data-scene] .dock-more .more-tool-copy small { font-size: 12px; }

@media(max-width:700px) {
  html[data-scene] :is(.panel, .postcard-dialog) { padding-bottom: calc(24px + env(safe-area-inset-bottom,0px)); }
  html[data-scene] :is(.panel, .postcard-dialog) .close { width: 44px; height: 44px; min-width: 44px; min-height: 44px; flex-basis: 44px; }
  html[data-scene] .panel :is(.sound-presets button, .brb-timer-tabs button, .notebook-tabs button) { min-height: 44px; font-size: 12px; }
  html[data-scene] .panel :is(input[type=text], input[type=email], input[type=url], textarea) { font-size: 16px; }
  html[data-scene] :is(#mixer-dialog,:is(#now-dialog,#view-dialog)) :is(#saved-mixes, #mix-name) { font-size: 16px; }
  html[data-scene] .panel .brb-focus-fields { gap: 8px; }
  html[data-scene] .panel .brb-focus-fields input { padding: 8px; }
  html[data-scene] .panel .space-card-copy { padding: 12px 10px; }
  html[data-scene] .panel .forecast-item { align-items: flex-start; flex-direction: column; }
}
@media(max-width:380px) {
  html[data-scene] .panel :is(.brb-focus-planner, .brb-countdown-planner, .brb-stopwatch-planner) { padding: 12px; }
  html[data-scene] .panel .brb-timer-tabs button { font-size: 11px; padding-inline: 3px; }
}
