:root {
  --bg: #101716;
  --panel: #18221e;
  --surface: #18221e;
  --raised: #202d27;
  --line: #29362f;
  --mint: #b8e8c7;
  --mint-dim: #799e87;
  --text: #edf2ec;
  --muted: #a1b2a7;
  --soft: #bdcabe;
  --sand: #dfcda2;
  --font: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
html { background: #0c1210; height: 100%; }
body { background: var(--bg); height: 100dvh; display: flex; flex-direction: column; max-width: 900px; margin: auto; overflow: hidden; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, select { touch-action: manipulation; }
button { color: inherit; min-height: 44px; }
input, select, label { min-width: 0; }
select { color-scheme: dark; }
select option, select optgroup { background: #18251c; color: var(--text); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.site-header { width: 100%; min-height: 60px; padding: 9px 23px 4px; border: 0; flex: none; }
.brand { font: 720 28px var(--font); letter-spacing: -1.2px; }
.brand-mark { display: block; width: 38px; height: 38px; margin-right: 5px; background-color: var(--mint); mix-blend-mode: normal; -webkit-mask: url('./logominimal.png') center / contain no-repeat; mask: url('./logominimal.png') center / contain no-repeat; }
.stereo-label { display: flex; align-items: center; gap: 7px; background: none; color: var(--muted); font-size: 9px; letter-spacing: 1.5px; }
.stereo-label svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.4; fill: none; }
.view-tabs { display: grid; grid-template-columns: 1fr 1fr; flex: none; padding: 4px; margin: 5px 20px 0; border: 1px solid #233128; border-radius: 13px; background: #0b1210; }
.view-tabs button { display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--muted); background: none; border-radius: 9px; font-size: 13px; }
.view-tabs svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.view-tabs button[aria-selected=true] { background: #283c30; color: #c8eed2; box-shadow: inset 0 1px 0 #4b64503b; }
.tab-count { background: #34493b; color: #d4e6d7; border-radius: 5px; padding: 2px 5px; font-size: 10px; font-variant-numeric: tabular-nums; }
#scroll-area { width: 100%; max-width: none; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; padding: 18px 23px 26px; margin: 0; }
.action-feedback { position: absolute; z-index: 6; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: max-content; max-width: min(700px,calc(100% - 36px)); padding: 12px 15px; border: 1px solid #587a60; border-radius: 10px; background: #243c2c; box-shadow: 0 5px 25px #0004; font-size: 12px; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; pointer-events: none; }
.action-feedback:empty { display: none; }
.workspace { display: block; }
.workspace > .panel { min-width: 0; min-height: 0; background: none; border: 0; border-radius: 0; padding: 0; }
.panel-heading { align-items: center; }
.eyebrow, .program-panel .panel-heading .eyebrow { color: var(--muted); font-size: 10px; letter-spacing: 2px; margin: 0 0 6px; }
.studio-heading h1 { margin: 0; font: 550 29px var(--font); letter-spacing: -1px; }
.sound-panel .astral-scene, .program-panel .astral-scene { display: grid; height: 156px; margin: 8px 0 12px; }
.astral-scene .astral-space { height: 156px; width: 100%; max-width: 260px; }
#flow-visualization { order: 1; }
.stereo-readout { background: none; border: 0; margin: 0; padding: 0 20px; gap: 8px; }
.stereo-readout > span { font-size: 9px; letter-spacing: .5px; }
.stereo-readout strong { display: inline; color: var(--muted); font-size: 10px; font-weight: 400; }
.stereo-readout .stereo-link { font-size: 12px; }
.control { margin: 0; padding: 6px 0 10px; border-bottom: 1px solid var(--line); }
.control-heading { margin: 0 0 3px; }
.control-heading label { color: var(--soft); font-size: 13px; }
.control-heading .number-unit { padding: 0; border: 0; background: none; }
.control-heading .number-unit input { width: 88px; height: 44px; font-size: 28px; letter-spacing: -1px; }
.control-heading .number-unit span { font-size: 12px; }
.tag { color: #c5dfca; background: #283c2d; border-radius: 5px; font-size: 10px; }
input[type=range] { --pct: 0%; appearance: none; -webkit-appearance: none; height: 44px; min-width: 0; margin: 0; background: transparent; border: 0; padding: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 3px; border-radius: 5px; background: linear-gradient(90deg,var(--mint) var(--pct),#334139 var(--pct)); }
input[type=range]::-moz-range-track { height: 3px; border-radius: 5px; background: linear-gradient(90deg,var(--mint) var(--pct),#334139 var(--pct)); }
input[type=range]::-webkit-slider-thumb { appearance: none; width: 15px; height: 15px; margin-top: -6px; border-radius: 50%; border: 0; background: var(--mint); box-shadow: 0 0 0 4px #b8e8c710; }
input[type=range]::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; border: 0; background: var(--mint); }
.control > input[type=range] { margin: -6px 0 -5px; }
.range-labels { font-size: 11px; letter-spacing: 0; color: var(--muted); }
.wave-options { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 5px; margin-top: 7px; }
.wave-options button { padding: 0 3px; background: none; color: var(--muted); font-size: 11px; border: 1px solid #2c3a30; border-radius: 7px; }
.wave-options button.selected { color: #182c20; background: var(--mint); border-color: var(--mint); font-weight: 650; }
.ambience-heading { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; color: var(--soft); font-size: 13px; }
.text-button { color: #bad0c0; font-size: 12px; line-height: 1.4; }
.ambience-options { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; min-height: 86px; margin-bottom: 5px; }
#studio-backgrounds button { min-width: 0; min-height: 86px; }
.ambience-options button > span { max-width: 100%; overflow-wrap: anywhere; line-height: 1.4; }
.ambience-options button, .all-backgrounds button { min-height: 66px; border: 1px solid #2c3930; background: #17211b; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 7px; font-size: 11px; color: var(--muted); }
.ambience-options svg, .all-backgrounds svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.ambience-options .selected, .all-backgrounds .selected { background: #253b2c; border-color: #7ca388; color: #d4efdb; }
.all-backgrounds { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.all-backgrounds button { min-height: 86px; font-size: 12px; line-height: 1.5; }
.tone-volume-row { grid-template-columns: 112px minmax(0,1fr) auto; gap: 9px; margin: 0; min-height: 44px; }
.tone-volume-row label { font-size: 12px; color: var(--soft); }
.sound-panel > .tone-volume-row { margin-bottom: 0; }
.tone-volume-row .number-unit, .noise-panel .number-unit { padding: 0 4px; background: none; border: 0; gap: 2px; }
.tone-volume-row .number-unit input, .noise-panel .number-unit input { width: 40px; min-height: 44px; font-size: 12px; }
.noise-panel { margin: 0; padding: 0; border: 0; background: none; }
.noise-panel > .phase-background-title, .noise-panel .noise-toggle, .noise-panel .background-select { display: none; }
.noise-panel .phase-background-row { display: grid; grid-template-columns: 112px minmax(0,1fr) auto; gap: 9px; }
.noise-panel .phase-background-row:before { content: 'Hintergrund'; color: var(--soft); font-size: 12px; align-self: center; }
html[lang=en] .noise-panel .phase-background-row:before { content: 'Background'; }
.add-to-flow { width: 100%; border: 1px solid #47644e; background: #1b2a20; color: #d3ead9; font-size: 12px; border-radius: 10px; margin-top: 12px; padding: 10px; min-height: 48px; }
.studio-phase-selection { margin: 12px 0; padding: 12px; border-color: #47644e; background: #1b2a20; }
.studio-phase-selection label { color: var(--soft); }
.studio-phase-selection p { margin-bottom: 0; font-size: 11px; }
.workspace > .program-panel { position: relative; display: flex; flex-direction: column; }
.program-panel .panel-heading { display: block; padding-right: 48px; }
#program-title { font-size: 12px; color: var(--muted); display: none; }
.total-badge { display: block; padding: 0; border: 0; font-size: 12px; margin-top: 53px; }
.flow-utilities { display: flex; justify-content: space-between; align-items: center; margin: 0; }
.flow-utilities .icon-button { position: absolute; top: -10px; right: 0; width: 44px; background: none; color: var(--muted); font-size: 27px; }
.program-name-row { position: absolute; top: 20px; left: 0; right: 45px; margin: 0; }
.program-name-row input { font-size: 28px; min-height: 44px; font-weight: 500; letter-spacing: -.7px; }
.program-name-row .tag { display: none; }
.program-actions { order: 3; display: flex; gap: 10px; justify-content: space-between; border-bottom: 1px solid var(--line); margin-top: 0; padding: 0 0 8px; }
.program-actions > button { display: flex; align-items: center; justify-content: center; gap: 6px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.program-actions .action-icon { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.program-actions > button > span { min-width: 0; }
.secondary { color: #d3e9d9; background: #243c2c; border: 1px solid #4b6d54; min-height: 44px; font-size: 12px; border-radius: 9px; }
.program-actions #save { border: 0; padding: 0; background: none; font-size: 12px; }
.save-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.timeline { order: 1; height: 44px; padding: 2px 1px 8px; gap: 3px; margin-top: 18px; }
.timeline-segment { background: var(--phase-color); color: #13241a; container-type: inline-size; container-name: timeline-phase; }
.timeline-segment:after { background: none; }
.timeline-fill { background: #ffffff38; }
.timeline-number { position: relative; z-index: 3; display: block; padding: 7px; font-size: 10px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; }
@container timeline-phase (max-width: 35px) {
  .timeline-number { display: none; }
}
.timeline-labels { order: 2; margin: 4px 0 10px; font-size: 10px; }
.transition-hint { order: 4; font-size: 11px; line-height: 1.6; margin: 9px 0 13px; }
.phase-list { order: 5; gap: 0; }
.phase { position: relative; padding: 0; border: 0; background: none; border-radius: 0; display: grid; grid-template-columns: 24px minmax(0,1fr); column-gap: 11px; cursor: default; }
.phase.active, .phase.studio-selected, .phase.studio-selected:not(.active) { background: none; box-shadow: none; border: 0; }
.phase-marker { position: relative; z-index: 1; grid-column: 1; align-self: start; margin-top: 15px; border: 1px solid #47604d; background: var(--bg); color: var(--soft); border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; font-size: 10px; font-variant-numeric: tabular-nums; }
.phase::before, .phase::after { content: ''; grid-column: 1; justify-self: center; align-self: stretch; width: 1px; background: #344d3c; pointer-events: none; }
.phase::before { grid-row: 1; }
.phase::after { grid-row: 2; }
.phase:first-child::before { display: none; }
.phase:first-child::after { grid-row: 1; margin-top: 27px; }
.phase:last-child::after { align-self: start; height: 27px; }
.phase:only-child::before, .phase:only-child::after { display: none; }
.phase-summary { grid-column: 2; grid-row: 2; width: 100%; border: 1px solid #2b3c2f; border-radius: 11px; background: #17221b; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 8px; padding: 12px; text-align: left; min-height: 80px; }
.phase-marker { grid-row: 2; }
.phase-summary-name { color: #e0e9e0; font-weight: 550; font-size: 14px; overflow-wrap: anywhere; }
.phase-summary-time { color: var(--phase-color); font-size: 12px; font-variant-numeric: tabular-nums; }
.phase-summary-detail { grid-column: 1/-1; color: #a6bbad; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.phase-summary-background { display: block; color: #9bb3a3; }
.phase.active .phase-summary, .phase.studio-selected .phase-summary { border-color: #688e72; background: #203226; box-shadow: inset 2px 0 var(--mint); }
.phase-incoming { grid-column: 2; grid-row: 1; text-align: left; background: none; padding: 0 7px; color: #a5bbaa; font-size: 11px; min-height: 44px; }
.phase:first-child .phase-incoming { display: none; }
.phase:first-child .phase-summary, .phase:first-child .phase-marker { grid-row: 1; }
.add-button { order: 6; width: calc(100% - 35px); margin: 13px 0 0 35px; border-color: #3b5543; font-size: 12px; min-height: 46px; }
.clear-phases { order: 7; margin-top: 10px; font-size: 12px; }
.flow-start { order: 8; margin-top: 8px; }
.player { position: relative; flex: none; display: block; margin: 0; border-top: 1px solid #3a5140; background: #17251c; padding: 6px 21px max(8px,env(safe-area-inset-bottom)); box-shadow: 0 -10px 28px #101716aa; z-index: 2; }
.player-progress { position: absolute; top: -2px; left: 0; height: 2px; width: 0; background: var(--mint); }
.player-source { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 10px; }
.player-source > span { flex: 1; }
.player-source .tabs { margin: 0; padding: 2px; background: #101a14; border-color: var(--line); }
.player-source .tabs button { width: auto; padding: 0 10px; min-height: 44px; font-size: 12px; }
.player-source .tabs .selected { background: #304b37; color: var(--mint); }
.player-source > .text-button { min-height: 32px; }
.playback-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 7px 0 0; }
.now-playing { flex: 1; min-width: 0; }
#mix-open { display: flex; align-items: center; gap: 5px; padding: 0; margin: -10px 0 -5px; background: none; color: var(--mint); min-height: 44px; max-width: 100%; }
#mix-open > span:last-child { font-size: 14px; }
.mini-wave { flex: none; display: flex; align-items: center; gap: 3px; height: 30px; }
.mini-wave span { width: 2px; height: 10px; background: #89b596; border-radius: 3px; }
.mini-wave span:nth-child(2) { height: 20px; }
.mini-wave span:nth-child(3) { height: 28px; }
.mini-wave span:nth-child(4) { height: 17px; }
#player-context { text-transform: uppercase; letter-spacing: 1.2px; color: #a4c3af; font-size: 10px; }
#mix-open #player-context { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#player-title { font-size: 13px; color: #e0e9e0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.transport { flex: none; gap: 5px; align-items: center; }
.transport > button { min-height: 48px; width: 44px; padding: 0; border: 0; background: none; color: #b3cbb9; display: grid; place-items: center; }
.transport > #play { flex: 0 0 50px; width: 50px; height: 50px; min-width: 50px; min-height: 50px; aspect-ratio: 1; border-radius: 50%; background: var(--mint); color: #17331f; }
.transport > #play > span { display: none; }
.transport .transport-icon { width: 23px; height: 23px; }
.transport .night-open-icon { width: 25px; height: 25px; }
.play-status { margin-top: 6px; align-items: start; line-height: 1.4; font-size: 10px; min-height: 14px; }
#status { min-width: 0; overflow-wrap: anywhere; }
.editor-sheet, #wav-unlock-dialog { position: fixed; top: auto; bottom: 0; left: 0; right: 0; margin: 0 auto; width: 100%; max-width: 560px; max-height: 90dvh; padding: 22px 22px max(25px,env(safe-area-inset-bottom)); background: #19251d; color: var(--text); border: 1px solid #3b5141; border-bottom: 0; border-radius: 23px 23px 0 0; overflow-y: auto; overscroll-behavior: contain; }
.editor-sheet::backdrop, #wav-unlock-dialog::backdrop { background: #050b08bb; backdrop-filter: blur(4px); }
.sheet-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
.sheet-heading h2 { font-size: 24px; font-weight: 550; overflow-wrap: anywhere; }
.sheet-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; flex: none; border-radius: 11px; background: #273b2d; color: var(--text); font-size: 25px; line-height: 1; }
.close-icon { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sheet-note { font-size: 12px; color: var(--muted); line-height: 1.7; }
.sheet-feedback:empty { display: none; }
.editor-sheet .phase-top { flex-wrap: wrap; margin-bottom: 18px; }
.editor-sheet .phase-name { min-height: 44px; font-size: 17px; flex: 1 1 60%; }
.editor-sheet .phase-duration-label { display: block; }
.editor-sheet .phase-up, .editor-sheet .phase-down, .editor-sheet .remove-phase { width: 44px; height: 44px; min-height: 44px; background: #273d2e; border: 1px solid #3f5b47; border-radius: 8px; }
.editor-sheet .phase-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.editor-sheet .phase-fields > div { display: flex; flex-direction: column; }
.editor-sheet .phase-fields .help-field-heading { flex: 1; }
.editor-sheet .phase-fields label { font-size: 12px; line-height: 1.6; }
.editor-sheet .field { background: #111d15; border-color: #3b5140; min-height: 46px; }
.editor-sheet .field input, .editor-sheet .field select { font-size: 16px; min-height: 30px; }
.editor-sheet .field input { width: 0; flex: 1; }
.editor-sheet .field select { flex: none; width: 75px; background: #111d15; }
.editor-sheet .number-unit { background: #111d15; border-color: #3b5140; }
.editor-sheet .tone-volume-row { margin-top: 14px; }
.editor-sheet .phase-background-row { grid-template-columns: 30px minmax(0,1fr); gap: 5px 9px; }
.editor-sheet .phase-background-row input[type=range] { grid-column: 1/-1; grid-row: 2; }
.editor-sheet .phase-background-row .number-unit { grid-column: 2; justify-self: end; }
.editor-sheet .background-select select { min-height: 44px; font-size: 16px; background: #111d15; border: 1px solid #3b5140; color: var(--text); }
.editor-sheet .noise-toggle input { width: 24px; height: 24px; accent-color: var(--mint); }
.editor-sheet .noise-toggle { min-height: 44px; }
.editor-sheet .editor-actions .remove-phase { width: auto; padding: 8px 12px; font-size: 12px; color: #e5bcb2; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.editor-actions > button { flex: 1 1 auto; }
.editor-sheet .program-library { background: none; padding: 0; border: 0; margin: 0; }
.editor-sheet .program-library > select { font-size: 16px; background: #111d15; border-color: #3b5140; }
.editor-sheet .program-library p { color: var(--muted); font-size: 12px; }
.editor-sheet .capture-phase { border: 0; margin: 0; padding: 0; }
.capture-title { display: none; }
.capture-row { gap: 15px; }
.capture-row > div > label, .capture-name { font-size: 12px; color: var(--soft); }
.capture-row .field, .capture-transition .number-unit { width: 100%; min-width: 0; min-height: 46px; }
.capture-transition .number-unit input { text-align: left; }
.capture-name { display: flex; flex-direction: column; gap: 7px; }
.capture-name input { width: 100%; border: 1px solid #3b5140; background: #111d15; color: var(--text); padding: 10px; border-radius: 6px; font-size: 16px; }
.capture-row .secondary { width: 100%; min-height: 46px; font-size: 13px; }
.menu-list { display: flex; flex-direction: column; gap: 9px; }
.editor-sheet .menu-item { display: flex; align-items: center; justify-content: flex-start; gap: 13px; min-height: 70px; width: 100%; padding: 13px; text-align: left; background: #1d3023; border: 1px solid #324a39; border-radius: 10px; color: var(--text); }
.menu-icon { width: 23px; height: 23px; flex: none; color: #b2d8bd; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.menu-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.menu-copy strong { display: block; font-size: 14px; font-weight: 550; line-height: 1.4; }
.menu-copy > span { display: block; margin-top: 4px; color: #a5bcac; font-size: 12px; line-height: 1.5; }
.menu-arrow { width: 7px; height: 7px; flex: none; border-top: 1.5px solid #88aa93; border-right: 1.5px solid #88aa93; transform: rotate(45deg); margin: 0 4px; }
.menu-item[aria-disabled=true] { opacity: .45; cursor: default; }
.editor-sheet .community-link { border-color: #486650; background: #23392a; }
.community-external { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--mint); }
.export-community { margin-top: 15px; }
.community-link:hover, .export-community:hover { color: var(--mint); }
.menu-name-field { display: flex; flex-direction: column; gap: 8px; color: var(--soft); font-size: 13px; margin-bottom: 20px; }
.menu-name-field input { width: 100%; min-height: 46px; background: #111d15; border: 1px solid #3b5140; border-radius: 9px; color: var(--text); padding: 10px 12px; font-size: 16px; }
#flow-name-submit { width: 100%; }
.flow-export-preview { display: flex; flex-direction: column; gap: 7px; padding: 14px; border: 1px solid #47664e; border-radius: 10px; background: #243a2a; margin-bottom: 20px; overflow-wrap: anywhere; }
.flow-export-preview strong { font-size: 14px; font-weight: 550; }
.flow-export-preview > span { font-size: 12px; color: var(--soft); }
.wav-export { margin-top: 15px; }
.wav-export p, #wav-status, #wav-details { font-size: 12px; line-height: 1.6; color: var(--muted); }
.import-label { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
@media (min-width: 760px) {
  body { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .site-header { padding: 15px 45px 10px; min-height: 78px; }
  .view-tabs { margin: 5px 42px 0; }
  #scroll-area { padding: 28px 48px 35px; }
  .player { padding-left: 45px; padding-right: 45px; }
  .control { padding-top: 18px; padding-bottom: 18px; }
  .ambience-options button { min-height: 85px; }
  .phase-summary { min-height: 88px; }
}
@media (max-width: 374px) {
  #scroll-area { padding-left: 17px; padding-right: 17px; }
  .site-header { padding-left: 17px; padding-right: 17px; }
  .view-tabs { margin-left: 15px; margin-right: 15px; }
  .player { padding-left: 15px; padding-right: 15px; }
  .player-source { gap: 5px; }
  .player-source .tabs button { padding: 0 7px; }
  .transport { gap: 0; }
  .tone-volume-row, .noise-panel .phase-background-row { grid-template-columns: 102px minmax(0,1fr) auto; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .editor-sheet, .timeline-fill { animation: none; transition: none; }
}
.night-sound-values { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 16px; margin: 12px 0 18px; }
.night-sound-values dt { color: #93a79d; font-size: 11px; line-height: 1.5; }
.night-sound-values dd { margin: 3px 0 0; color: #bdcabe; font-size: 16px; line-height: 1.5; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.night-sound-values .night-background { grid-column: 1 / -1; }
.night-background dd { font-size: 14px; }
.night-content .night-logo { width: min(88vw,460px,max(100px,calc((100dvh - 580px) * 1.45))); }
@media (max-height: 600px) {
  .night-sound-values { gap: 4px 12px; margin: 6px 0 8px; }
  .night-sound-values dt { font-size: 10px; }
  .night-sound-values dd { margin-top: 1px; font-size: 14px; line-height: 1.35; }
  .night-background dd { font-size: 12px; }
}
@media (max-height: 500px) {
  #night-screen .night-content { flex-direction: row; gap: 16px; padding-top: max(16px,env(safe-area-inset-top)); padding-bottom: calc(164px + env(safe-area-inset-bottom)); }
  #night-screen .night-logo { width: min(28vw,24vh); margin-bottom: 0; }
  #night-screen .night-actions { bottom: calc(12px + env(safe-area-inset-bottom)); gap: 8px; }
}
