@font-face { font-family: Comfortaa; src: url('brand/comfortaa.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: Quicksand; src: url('brand/quicksand.ttf') format('truetype'); font-weight: 300 700; font-display: swap; }
:root {
    color-scheme: light;
    --ink: #153d3f; --heading: #0b7374; --soft: #38595a; --muted: #526d6b;
    --cream: #fffdf7; --paper: #fffefb; --aqua: #47d7d1; --gold: #c69232; --line: #dfd0b2;
    --display: Comfortaa, 'Trebuchet MS', sans-serif;
    --body: Quicksand, 'Avenir Next', 'Trebuchet MS', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { max-width: 100%; overflow-x: clip; overscroll-behavior-x: none; }
#mainView, .dialog-content { touch-action: pan-y pinch-zoom; }
html { scroll-padding-top: calc(var(--app-header-height, 86px) + 20px); scrollbar-gutter: stable; }
body { margin: 0; padding: 0; min-height: 100vh; background: var(--cream); color: var(--ink); font: 500 17px/1.7 var(--body); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.25; color: var(--heading); }
h1 { font-size: clamp(29px, 4.4vw, 48px); letter-spacing: -.04em; margin: 0 0 20px; }
h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.025em; margin: 0 0 20px; overflow-wrap: anywhere; }
h3 { font-size: 21px; margin: 0 0 16px; }
p { margin: 0 0 16px; }
a { color: var(--heading); text-underline-offset: 4px; }
button, input, select { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; min-height: 48px; border: 1px solid #b3c8c3; border-radius: 12px; padding: 12px 18px; background: var(--paper); color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.45; }
@media (hover: hover) {
    button:hover:not(:disabled) { border-color: var(--heading); background: #f1faf6; }
}
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid #075c60; outline-offset: 4px; }
.primary, #offline-save, #update-app { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 54px; background: linear-gradient(135deg, #55dcd7, #47d7d1 42%, #29b5b0); border: 0; border-radius: 16px; padding: 15px 22px; color: var(--ink); box-shadow: 0 6px 18px #2bada818; }
.primary:hover:not(:disabled), #offline-save:hover:not(:disabled), #update-app:hover:not(:disabled) { background: linear-gradient(135deg, #72e5df, #55dcd7 42%, #3bc6c1); }
.link-button { background: transparent; border: 0; text-decoration: underline; text-underline-offset: 4px; padding: 10px 6px; font-size: 14px; }
.eyebrow { color: #8f641e; font-size: 14px; line-height: 1.5; font-weight: 700; letter-spacing: .10em; text-transform: uppercase; margin: 0 0 14px; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.6; }
.test-version-note { margin: 0; padding: 7px 16px; text-align: center; background: #e4f6f2; border-bottom: 1px solid #c5e6df; color: var(--soft); font-size: 12px; }
.access-layout { max-width: 1040px; margin: 0 auto; padding: 32px 24px 52px; display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(30px, 6vw, 80px);  }
.access-intro { position: relative; padding-top: 20px; isolation: isolate; }
.access-intro h1 { font-size: clamp(42px, 4.8vw, 62px); line-height: 1.15; }
.lead { font-size: 19px; line-height: 1.65; color: var(--soft); max-width: 470px; }
.frequency-orbit { position: relative; width: 200px; height: 155px; display: grid; align-content: center; justify-items: center; margin: 32px auto 0; }
.frequency-orbit span { position: absolute; width: 140px; height: 140px; border: 1px solid #c692325c; border-radius: 50%; left: 30px; top: 7px; }
.frequency-orbit span:nth-child(2) { transform: translateX(-22px); border-color: #47bdb754; }
.frequency-orbit span:nth-child(3) { transform: translateX(22px); border-color: #47bdb754; }
.frequency-orbit::before { content: ''; position: absolute; inset: 16px 30px; border-radius: 50%; background: radial-gradient(circle, #f8eac8aa, #d8f4ee44 70%, transparent); z-index: -1; }
.frequency-orbit b { font: 500 35px/1.2 var(--display); color: var(--heading); }
.frequency-orbit small { font-size: 13px; color: var(--soft); }
.access-card { padding: 30px; background: #fffefbf5; border: 1px solid #dbbd7e; border-radius: 22px; box-shadow: 0 10px 40px #3f8a7410; min-width: 0; }
.access-card h2 { font-size: 26px; }
label { display: block; font-weight: 700; font-size: 16px; margin: 16px 0 6px; }
input[type=text] { width: 100%; min-width: 0; border: 1px solid #9fb9b4; border-radius: 11px; background: white; min-height: 50px; padding: 10px 12px; color: var(--ink); }
#serial-help { margin: 8px 0 20px; }
#access-submit { width: 100%; }
.access-card > .muted { margin-top: 22px; margin-bottom: 0; }
.demo-note { margin-top: 24px; padding: 16px; background: #fbf4e5; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; line-height: 1.6; }
.demo-note p { margin: 8px 0 0; }
.demo-note .link-button { padding-bottom: 0; min-height: 44px; }
code { font-size: .85em; overflow-wrap: anywhere; }

.site-header { position: sticky; top: 0; z-index: 100; background: transparent; border-bottom: 1px solid #153d3f1a; }
.site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: #fffefb; box-shadow: 0 6px 24px rgba(21, 61, 63, .06); opacity: var(--app-header-progress, 0); will-change: opacity; }
.site-header[data-menu-open=true] { background: #fffefb; }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .site-header::before { background: rgba(255, 254, 251, .8); backdrop-filter: blur(16px); }
}
@supports not (backdrop-filter: blur(1px)) {
    @supports (-webkit-backdrop-filter: blur(1px)) { .site-header::before { -webkit-backdrop-filter: blur(16px); } }
}
.header-inner { max-width: 1040px; margin: auto; padding: 8px 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; min-height: 86px; }
.brand-home { border: 0; background: transparent; padding: 0; justify-self: center; border-radius: 8px; }
.brand-home:hover:not(:disabled) { background: transparent; }
.lifemate-logo { display: block; width: 96px; height: 65px; object-fit: contain; }
.echtfrei-logo { display: block; width: 116px; height: auto; justify-self: start; }
.menu-toggle { display: flex; align-items: center; justify-content: center; gap: 9px; justify-self: end; padding: 10px 14px; min-width: 48px; background: transparent; border-color: #d9dfd3; }
#app-content { max-width: 1040px; margin: 0 auto; padding: 28px 24px 16px; min-height: calc(100dvh - 190px); }
.app-heading { margin: 0 0 22px; }
.app-heading-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.app-heading h1 { font-size: 34px; margin: 0; min-width: 0; }
#program-help { flex: 0 0 48px; margin-left: auto; }
.app-heading .eyebrow { margin-bottom: 10px; }
.app-heading .muted { margin: 0; font-size: 16px; }
.library-tabs { display: flex; gap: 8px; padding: 5px; border: 1px solid #d6ceb7; background: #f2eddd; border-radius: 16px; margin-bottom: 18px; }
.library-tabs button { display: flex; align-items: center; justify-content: center; gap: 12px; flex: 1; min-width: 0; background: transparent; border: 1px solid transparent; padding: 10px; border-radius: 11px; font-size: 15px; }
.library-tabs button[aria-pressed=true] { background: var(--paper); border-color: #d6ded1; box-shadow: 0 2px 6px #153d3f0a; color: var(--heading); }
.library-tabs span { font-size: 12px; background: #e5efe6; padding: 1px 8px; border-radius: 20px; }
.availability { display: inline-flex; align-items: center; gap: 6px; width: max-content; max-width: 100%; padding: 3px 9px; border: 1px solid transparent; border-radius: 20px; font-size: 14px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.availability.offline { background: #47d7d124; color: #175f59; border: 1px solid #29948a29; }
.availability.online { background: #c6923219; color: #76551c; border: 1px solid #b78b3926; }
.availability.unknown { background: #e9e9df; color: var(--muted); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; min-width: 48px; padding: 0; border-radius: 50%; background: transparent; border-color: #c8d3c7; font-size: 23px; }
.program-group { border: 1px solid #d6c8ab; border-radius: 16px; margin-bottom: 12px; background: linear-gradient(180deg, #c6923214, #c692320a); }
.program-group > summary { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 14px 16px; cursor: pointer; list-style: none; background: transparent; border-radius: 15px; }
.program-group[open] > summary { border-radius: 15px 15px 0 0; }
.program-group > summary::-webkit-details-marker { display: none; }
.program-group > summary::after { content: '›'; color: var(--heading); font-size: 25px; line-height: 1; transition: transform .15s; }
.program-group[open] > summary::after { transform: rotate(90deg); }
#frequencyPrograms h2 { flex: 1; min-width: 0; font-size: 18px; font-weight: 700; line-height: 1.5; margin: 0; letter-spacing: -.02em; }
.category-count { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 28px; min-height: 26px; padding: 2px 8px; border: 1px solid #c6923226; border-radius: 999px; background: #c6923220; color: #76551c; font-size: 13px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }
.favorites-group .category-count { background: #c692322a; }
.library-tabs .category-count { font-size: 13px; padding: 2px 8px; }
.playlist-group .category-count, .library-tabs .category-count { background: #47d7d124; border-color: #29948a26; color: #175f59; }
.category-star { color: #a47723; font-size: 20px; }
.favorites-group { border-color: #cfb984; background: linear-gradient(180deg, #c692323d, #c6923214); }
.favorites-empty { font-size: 14px; color: var(--muted); padding: 0 16px 18px; margin: 0; }
#favorite-programs { overflow-anchor: none; }
.favorite-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 6px; align-items: stretch; }
.favorite-handle { display: flex; flex-direction: column; gap: 3px; align-items: center; justify-content: center; min-width: 48px; padding: 0; border-color: #cbb99666; background: linear-gradient(#c692320d, #c692320d), var(--paper); color: #526d6bb3; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.program-card[data-availability=offline] + .favorite-handle { border-color: #73aa9c66; background: linear-gradient(#e0f3ed80, #e0f3ed80), var(--paper); color: #175f59b3; }
@media (hover: hover) {
    .favorite-handle:hover:not(:disabled) { background: linear-gradient(#c6923213, #c6923213), var(--paper); border-color: #cbb99699; }
    .program-card[data-availability=offline] + .favorite-handle:hover:not(:disabled) { background: linear-gradient(#e0f3eda6, #e0f3eda6), var(--paper); border-color: #73aa9c99; }
}
.favorite-handle .handle-arrow { color: inherit; opacity: .75; }
.favorite-handle svg { pointer-events: none; flex: 0 0 auto; }
.favorite-handle[data-move-up=false] .handle-arrow-up, .favorite-handle[data-move-down=false] .handle-arrow-down { visibility: hidden; }
.favorite-handle:disabled { cursor: default; opacity: .35; }
.favorite-item.is-dragging { outline: 2px dashed var(--heading); outline-offset: -2px; border-radius: 15px; background: #47d7d11a; }
.favorite-item.is-dragging > * { opacity: 0; }
.favorite-item.is-dragging::after { content: attr(data-drop-position); position: absolute; inset: 0; display: grid; place-content: center; padding: 12px; text-align: center; color: var(--heading); font-size: 13px; font-weight: 700; pointer-events: none; }
.favorite-drag-preview { position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none; background: var(--paper); border-radius: 15px; box-shadow: 0 12px 32px #153d3f38; outline: 2px solid var(--heading); }
.favorite-drag-preview::after { content: attr(data-drop-position); position: absolute; top: -14px; left: 12px; padding: 3px 10px; border-radius: 999px; background: var(--heading); color: var(--paper); font-size: 12px; font-weight: 700; line-height: 1.6; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.program-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 12px 12px; }
.program-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; text-align: left; width: 100%; min-height: 88px; padding: 16px 42px 16px 18px; border-radius: 15px; border: 1px solid #dcdccf; background: #fffefb; font-size: 16px; font-weight: 600; }
.program-card::after { content: '›'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 25px; font-weight: 400; }
.program-card-title { overflow-wrap: anywhere; }
.program-name { font-weight: 600; }
.program-duration { font-size: 14px; font-weight: 400; color: var(--soft); }
.program-duration { white-space: nowrap; }
.program-card[data-availability=online] { background: var(--paper); border-color: #d2d8ce; }
.program-card[data-availability=offline] { background: #e0f3ed; border-color: #73aa9c; }
@media (hover: hover) {
    .program-card:hover:not(:disabled) { border-color: #4e9183; background: var(--paper); }
    .program-card[data-availability=offline]:hover:not(:disabled) { background: #d3eee4; }
}
.program-offline { display: inline-flex; align-items: center; max-width: 100%; padding: 3px 9px; border: 1px solid transparent; border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1.4; }
[data-availability=offline] .program-offline { color: #175f59; background: #47d7d124; border-color: #29948a38; }
[data-availability=unknown] .program-offline { color: var(--muted); background: #e9e9df; }
.connection-state { background: #e6f2ec; border: 1px solid #b9d7cc; border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-bottom: 20px; }
#programView { max-width: 760px; margin: 0 auto; }
.back-button { margin: 0 0 24px; border: 1px solid #d9dfd3; padding: 10px 16px; min-height: 48px; background: transparent; font-size: 16px; }
.program-heading { display: flex; flex-direction: row-reverse; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 12px; margin: 0 0 12px; }
.program-heading .eyebrow { order: 1; flex: 1 1 auto; min-width: 0; max-width: 100%; margin: 0; overflow-wrap: anywhere; hyphens: auto; }
.program-heading .availability { order: 0; flex: 0 0 auto; text-align: center; }
#program { font-size: clamp(25px, 3.4vw, 35px); margin-bottom: 24px; }
.program-title-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.program-title-copy { flex: 1; min-width: 0; }
.program-title-row #program { margin: 0; }
.favorite-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; min-width: 48px; height: 48px; padding: 0; background: transparent; color: #987326; border-color: #d6c8a8; border-radius: 50%; }
.favorite-toggle[aria-pressed=true] { background: #c692321c; }
.favorite-toggle[aria-pressed=true] svg { fill: #c69232; }
#description { color: var(--soft); font-size: 18px; line-height: 1.8; }
#recommendation:empty, #footnote:empty { display: none; }
#miniDisclaimer { color: var(--muted); font-size: 13px; line-height: 1.6; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 24px; }
#footnote { font-size: 13px; color: var(--muted); }
#frequencyPlayer { margin: 24px 0 16px; padding: 16px; background: linear-gradient(125deg, #faf0d8, #fff8e9 55%, #def2ea); border: 1px solid #d8c9a9; border-radius: 18px; }
/* Compact, centered transport: full-width timeline and three stable actions. */
.player-timeline { min-width: 0; }
#audio-seek { --seek-fill: var(--heading); --seek-track: #b3c9bd; display: block; width: 100%; min-width: 0; min-height: 48px; height: 48px; margin: 0; padding: 0; appearance: none; -webkit-appearance: none; background: transparent; accent-color: var(--heading); cursor: pointer; }
#audio-seek:disabled { opacity: 1; cursor: default; }
#audio-seek:focus-visible { outline: none; }
#audio-seek::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background-color: var(--seek-track); background-image: linear-gradient(to right, var(--seek-fill) 0%, var(--seek-fill) var(--seek-progress, 0%), var(--seek-track) var(--seek-progress, 0%), var(--seek-track) 100%); }
#audio-seek::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; box-sizing: border-box; width: 24px; height: 24px; margin-top: -9px; border: 2px solid var(--seek-fill); border-radius: 50%; background: var(--paper); box-shadow: 0 1px 3px #153d3f33; }
#audio-seek::-moz-range-track { height: 6px; border-radius: 6px; background: var(--seek-track); }
#audio-seek::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--seek-fill); }
#audio-seek::-moz-range-thumb { box-sizing: border-box; width: 24px; height: 24px; border: 2px solid var(--seek-fill); border-radius: 50%; background: var(--paper); box-shadow: 0 1px 3px #153d3f33; }
#audio-seek:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--heading); }
#audio-seek:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--heading); }
.player-times { display: flex; justify-content: space-between; gap: 12px; margin-top: -8px; pointer-events: none; }
.audio-current-time, .audio-total-time { font-size: 16px; line-height: 1.5; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); }
.audio-current-time { color: var(--ink); font-weight: 600; }
.player-transport { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 8px; max-width: 400px; margin: 2px auto 0; }
.player-transport-button { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; min-width: 48px; min-height: 82px; border: 0; padding: 0 2px 2px; background: transparent; color: var(--muted); font-size: 16px; font-weight: 400; line-height: 1.35; text-align: center; overflow-wrap: anywhere; hyphens: auto; }
.player-transport-button .transport-symbol { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; }
.transport-symbol svg { display: block; width: 24px; height: 24px; flex-shrink: 0; }
.transport-label { max-width: 100%; }
.audio-button .transport-symbol { background: var(--heading); color: var(--cream); }
.audio-button .transport-symbol { position: relative; }
.audio-button.is-loading .transport-symbol::after { content: ""; position: absolute; inset: 5px; border: 1.5px solid #fffdf740; border-top-color: var(--cream); border-radius: 50%; animation: player-loading .9s linear infinite; }
@keyframes player-loading { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .audio-button.is-loading .transport-symbol::after { animation: none; } }
.audio-button .audio-button-svg { width: 28px; height: 28px; }
@media (hover: hover) {
    .player-transport-button:hover:not(:disabled) { background: transparent; }
    .player-transport-button:hover:not(:disabled) .transport-symbol { background: #47d7d120; }
    .audio-button:hover:not(:disabled) .transport-symbol { background: #075d5e; }
}
#audio-status { font-size: 14px; color: var(--soft); }
/* Keep loading announcements accessible without moving the program text. */
#audio-status[data-transient=true] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.experience-panel { margin: 10px 0 24px; }
.experience-panel .journal-actions button { flex: 1 1 160px; }
.journal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.journal-actions button, .journal-mail { min-height: 44px; }
.journal-dialog select, .journal-dialog textarea, .journal-dialog input[type=email] { width: 100%; min-width: 0; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--ink); background: #fffefb; border: 1px solid #9fb9b4; border-radius: 11px; }
.journal-dialog textarea { resize: vertical; line-height: 1.6; }
.journal-dialog select { appearance: none; min-height: 48px; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%23163d3f' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-position: right 12px center; background-repeat: no-repeat; }
.journal-dialog .checkbox-row { align-items: flex-start; font-weight: 400; }
.journal-entry { border: 1px solid var(--line); border-radius: 16px; margin: 12px 0; background: #fffefbb3; }
.journal-entry > summary { padding: 16px; cursor: pointer; }
.journal-entry > summary strong { display: block; padding-right: 16px; }
.journal-entry-meta { display: block; margin: 5px 0; color: var(--soft); font-size: 13px; }
.journal-preview { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: 15px; }
.journal-entry[open] .journal-preview { display: none; }
.journal-entry-body { padding: 0 16px 18px; }
.journal-entry-body h3 { font-size: 16px; margin-bottom: 4px; }
.journal-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.journal-follow-up { margin-top: 16px; }
.journal-follow-up > summary { cursor: pointer; padding: 12px 0; min-height: 44px; }
#feedback-sharing { margin-top: 16px; }
#feedback-sharing > summary { cursor: pointer; min-height: 44px; padding: 10px 0; }
.journal-mail { display: flex; align-items: center; justify-content: center; width: fit-content; padding: 10px 18px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: #46bdb51f; }
.journal-mail[aria-disabled=true] { opacity: .5; cursor: default; }
#feedback-dialog .checkbox-row { font-size: 14px; line-height: 1.5; }
.receipt-entry { border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 16px 0; }
.receipt-entry h3 { font-size: 18px; margin: 0; }
.receipt-reference { font: 12px/1.5 monospace; overflow-wrap: anywhere; }
#feedback-send { margin-top: 12px; }
.journal-complete { color: var(--heading); }
.journal-storage > summary { min-height: 44px; padding: 8px 0; cursor: pointer; color: var(--soft); font-size: 14px; }
@media (max-width: 360px) { .journal-dialog .dialog-heading { gap: 10px; } .journal-dialog .dialog-heading h2 { font-size: 20px; letter-spacing: -.02em; } }
.player-options { border-top: 1px solid #d4d9c86b; margin-top: 6px; padding-top: 4px; }
.repeat-trigger { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; border-color: transparent; background: transparent; color: var(--muted); font-size: 16px; font-weight: 400; padding: 4px; text-align: left; }
.repeat-trigger svg { flex-shrink: 0; }
.repeat-trigger[data-active=true] { color: #0c6964; }
#repeat-summary { min-width: 0; overflow-wrap: anywhere; }
#repeat-setting { min-width: 0; max-width: 48%; margin-left: auto; font-size: 14px; line-height: 1.5; text-align: right; overflow-wrap: anywhere; }
.repeat-chevron { width: 16px; height: 16px; }
#repeat-status { display: block; text-align: center; font-size: 14px; line-height: 1.5; color: var(--muted); }
.offline-card { border: 1px solid #c3d3c2; background: #f8fbf6; border-radius: 16px; padding: 20px; margin: 20px 0; }
.offline-card[data-availability=offline] { background: #47d7d120; border-color: #29948a52; }
.offline-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.offline-card h2 { font-size: 20px; margin: 0; }
.offline-card p { margin: 10px 0 16px; }
#offline-program-state { font-size: 14px; color: var(--soft); }
#offline-save { justify-content: center; width: max-content; max-width: 100%; min-height: 52px; font-size: 15px; padding: 12px 18px; }
#offline-remove { background: transparent; border-color: #6f8f87; min-height: 48px; font-size: 16px; padding: 10px 16px; }
.download-panel { border: 1px solid #a4cec1; background: #f1f8ef; border-radius: 14px; padding: 16px; margin: 16px 0; }
#program-download-slot .download-panel { border: 0; border-top: 1px solid #c7dbcc; border-radius: 0; background: transparent; padding: 14px 0 0; margin-bottom: 0; }
#download-label { font-size: 14px; margin: 0 0 10px; overflow-wrap: anywhere; }
progress { display: block; width: 100%; height: 10px; accent-color: var(--heading); margin-bottom: 10px; }
.download-panel-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.download-panel-footer .muted { font-size: 12px; }
#download-cancel { min-height: 48px; padding: 10px 14px; font-size: 14px; background: transparent; }
.notice { padding: 14px; border: 1px solid #cba952; border-radius: 12px; background: #fbf3e1; color: #644f2d; font-size: 14px; line-height: 1.6; margin-top: 16px; }
.feedback { display: flex; align-items: flex-start; gap: 10px; }
.feedback p { flex: 1; margin: 0; align-self: center; }
.feedback .icon-button { border: 0; margin: -7px -7px -7px 0; flex-shrink: 0; }
.saved-heading { padding: 12px 0; }
.saved-heading h2 { margin: 0 0 8px; font-size: 24px; }
.saved-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #dbe1d2; }
.saved-open { flex: 1; display: flex; flex-direction: column; min-width: 0; text-align: left; padding: 12px; background: #47d7d112; border-color: #29948a29; font-size: 15px; }
.saved-open span { overflow-wrap: anywhere; }
.saved-open .program-duration { font-size: 14px; font-weight: 400; }
.saved-open small { display: block; color: #175f59; font-size: 12px; margin-top: 4px; }
.saved-row > button:last-child { flex: 0 0 auto; min-height: 48px; font-size: 13px; padding: 10px 12px; background: transparent; }
#saved-empty { text-align: center; padding: 36px 16px; }
#storage-estimate { margin-top: 24px; }
.storage-hint { font-size: 13px; color: var(--muted); max-width: 600px; }
.update-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 992px; margin: 16px auto; padding: 14px 18px; background: #e6f4e9; border: 1px solid #b5d9c9; border-radius: 14px; }
.update-banner p { margin: 0; font-size: 14px; }
#update-app { min-height: 48px; padding: 10px 16px; font-size: 14px; }
.app-dialog { border: 1px solid #cfceb6; border-radius: 24px; background: var(--paper); color: var(--ink); padding: 28px; max-width: 560px; width: calc(100% - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; box-shadow: 0 24px 80px #153d3f24; }
.app-dialog::backdrop { background: #183d3b66; backdrop-filter: blur(3px); }
html:has(dialog[open]) { overflow: hidden; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.dialog-heading h2, .dialog-heading .eyebrow { margin: 0; }
.dialog-heading .icon-button { flex-shrink: 0; }
.app-dialog h2 { font-size: 26px; }
.favorite-sort-dialog { max-width: 440px; }
.favorite-sort-name { font-weight: 600; margin-bottom: 4px; }
.favorite-sort-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.favorite-sort-actions button { min-height: 54px; padding: 12px 10px; }
.favorite-sort-actions span { margin-right: 6px; color: var(--heading); }
.favorite-sort-dialog > .primary { width: 100%; justify-content: center; }
.repeat-dialog { max-width: 440px; }
.repeat-modes { display: flex; gap: 4px; padding: 4px; border: 1px solid #dedfce; border-radius: 16px; background: #f5f3e9; }
.repeat-modes button { flex: 1; min-width: 0; padding: 10px 6px; border-color: transparent; background: transparent; font-size: 14px; }
.repeat-modes button[aria-pressed=true] { color: var(--heading); background: var(--paper); border-color: #cfdbd0; box-shadow: 0 2px 6px #153d3f0a; }
.repeat-stepper { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 24px 0 0; }
.repeat-number { display: flex; align-items: center; gap: 4px; color: var(--heading); font-size: 28px; }
.repeat-number input { width: 76px; min-height: 64px; padding: 2px; border: 0; border-bottom: 1px solid #c6d8ce; border-radius: 0; background: transparent; color: var(--heading); font: 500 38px var(--display); text-align: center; appearance: textfield; }
.repeat-number input::-webkit-inner-spin-button, .repeat-number input::-webkit-outer-spin-button { appearance: none; margin: 0; }
#repeat-mode-help { text-align: center; margin: 20px 0 24px; }
#repeat-apply { width: 100%; justify-content: center; }
#menu-title:focus { outline: none; }
.menu-dialog { max-width: 370px; max-height: calc(100dvh - 116px); margin: 100px max(16px, calc((100vw - 1000px)/2)) auto auto; }
.menu-items { display: flex; flex-direction: column; gap: 8px; }
.menu-items button { display: flex; align-items: center; justify-content: space-between; text-align: left; min-height: 52px; background: #f3f6ee; border-color: #dce4d5; }
.menu-items button span:last-child { font-size: 19px; color: var(--heading); }
.access-details { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.access-details h3 { font: 600 16px var(--body); margin-bottom: 10px; color: var(--ink); }
#access-logout { background: transparent; font-size: 14px; min-height: 48px; }
.menu-version { margin: 24px 0 0; font-size: 12px; }
.update-status { font-size: 13px; margin: 4px 0 0; }
.menu-update-action { width: 100%; min-height: 48px; margin-top: 12px; }
.install-content > p, .install-content li { color: var(--soft); font-size: 15px; }
.install-content details { border-top: 1px solid var(--line); margin-top: 16px; }
.install-content summary { cursor: pointer; min-height: 52px; padding: 16px 0; color: var(--heading); font-weight: 700; }
.install-content ol { padding-left: 24px; margin: 0 0 16px; }
.install-content li { padding: 5px 0 5px 4px; }
.install-content .install-tip, .install-content .install-state { background: #f0f5ea; padding: 16px; border-radius: 14px; }
#install-app { width: 100%; justify-content: center; margin-bottom: 8px; }
.stacked-dialog[open] { display: flex; flex-direction: column; }
.stacked-dialog .dialog-heading { flex-shrink: 0; min-width: 0; }
.stacked-dialog .dialog-heading h2 { min-width: 0; }
.news-content, .dialog-content { overflow-y: auto; overflow-x: hidden; min-width: 0; min-height: 0; overflow-wrap: anywhere; overscroll-behavior: contain; padding-right: 4px; }
.news-actions, .dialog-actions { flex-shrink: 0; border-top: 1px solid var(--line); padding-top: 16px; }
.news-actions .checkbox-row, .dialog-actions .checkbox-row { margin: 0 0 12px; }
.news-list { list-style: none; padding: 0; margin: 16px 0 8px; }
.news-list li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.news-list strong { display: block; font-weight: 700; color: var(--heading); margin-bottom: 4px; }
.news-list span { display: block; color: var(--soft); font-size: 14px; line-height: 1.6; }
.news-content { padding-top: 4px; }
#news-current-title { font-size: 22px; margin: 0 0 12px; }
#news-metadata { font-size: 14px; margin: 0 0 12px; }
#news-current .news-list span { font-size: 16px; line-height: 1.65; }
.news-archive { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 24px; }
.news-archive summary { list-style: none; cursor: pointer; min-height: 56px; display: grid; grid-template-columns: minmax(0, 1fr) 20px; align-items: center; gap: 4px 12px; color: var(--heading); font-size: 16px; font-weight: 600; padding: 14px 0; }
.news-archive summary::-webkit-details-marker { display: none; }
.news-archive summary::after { content: ''; grid-column: 2; grid-row: 1 / span 2; width: 20px; height: 20px; line-height: 20px; font-size: 25px; text-align: center; }
.news-archive details[open] > summary::after, .news-archive[open] > summary::after { transform: rotate(90deg); }
.news-archive summary small { grid-column: 1; font-size: 14px; font-weight: 400; color: var(--muted); }
.news-release { border-top: 1px solid var(--line); }
.news-release .news-list { margin-top: 0; padding: 0 0 12px; }
.news-release .news-list li:first-child { border-top: 0; }
.news-release .news-list span { font-size: 16px; line-height: 1.65; }
.news-archive-note { font-size: 15px; line-height: 1.6; margin: 0 0 12px; }
.checkbox-row { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: 14px; font-weight: 500; line-height: 1.5; margin: 20px 0; }
.checkbox-row input { width: 22px; height: 22px; flex-shrink: 0; accent-color: var(--heading); }
#news-acknowledge, #welcome-continue, #disclaimer-accept-btn { width: 100%; justify-content: center; }
.dialog-footnote { margin: 14px 0 0; text-align: center; font-size: 12px; }
#help-dialog > p, #introduction { color: var(--soft); font-size: 15px; }
#introduction { margin-bottom: 24px; }
#introduction p:first-child { color: var(--heading); font-weight: 700; }
.site-footer { max-width: 1040px; margin: 20px auto 0; padding: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.legal-links button { padding: 8px 0; background: transparent; border: 0; font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.legal-content { color: var(--soft); font-size: 14px; }
.legal-content h3 { font-size: 18px; margin-top: 24px; }
#frequencyPlayer { margin: 0 0 24px; }
.disclaimer-content { color: var(--soft); font-size: 14px; line-height: 1.7; }
.disclaimer-content b { color: var(--heading); }
.superscript { vertical-align: super; font-size: .65em; }
.skip-link { position: absolute; left: 16px; top: -100px; background: white; z-index: 1001; padding: 12px; }
.skip-link:focus { top: 10px; }
@media (max-width: 760px) {
    body { font-size: 16px; }
    .header-inner { padding: 6px 16px; min-height: 76px; gap: 16px; }
    .lifemate-logo { width: 88px; height: 59px; }
    .echtfrei-logo { width: 100px; }
    .menu-toggle { padding: 10px; }
    .header-inner { gap: 12px; }
    #app-content { padding: 24px 18px 8px; }
    .app-heading h1 { font-size: 28px; }
    .app-heading .eyebrow { font-size: 13px; }
    .access-layout { grid-template-columns: 1fr; gap: 24px; padding: 24px 18px; }
    .access-intro { padding-top: 8px; }
    .access-intro h1 { font-size: 38px; margin-bottom: 16px; }
    .access-intro .lead { font-size: 16px; padding-right: 48px; }
    .frequency-orbit { position: absolute; right: 0; top: 25px; width: 95px; height: 95px; opacity: .4; z-index: -1; }
    .frequency-orbit span { width: 82px; height: 82px; left: 6px; top: 6px; }
    .frequency-orbit span:nth-child(2) { transform: translateX(-10px); }
    .frequency-orbit span:nth-child(3) { transform: translateX(10px); }
    .frequency-orbit b, .frequency-orbit small { visibility: hidden; }
    .access-card { padding: 24px 20px; border-radius: 18px; }
    .access-card h2 { font-size: 24px; }
    .program-grid { grid-template-columns: 1fr; }
    .program-card { min-height: 82px; }
    #frequencyPrograms h2 { font-size: 16px; }
    .program-heading .eyebrow { font-size: 13px; }
    #description { font-size: 17px; }
    #frequencyPlayer { padding: 12px; }
    .repeat-dialog, .favorite-sort-dialog { width: calc(100% - 32px); max-width: 440px; margin: auto auto calc(16px + env(safe-area-inset-bottom)) auto; border-radius: 24px; padding: 24px 20px; max-height: calc(100dvh - 32px - env(safe-area-inset-bottom)); }
    .favorite-sort-dialog { position: fixed; inset: auto 16px calc(16px + env(safe-area-inset-bottom)) 16px; width: auto; margin: 0 auto; }
    .offline-card { padding: 18px; }
    #offline-save { width: 100%; }
    .saved-open { padding: 12px 10px; font-size: 14px; }
    .saved-row > button:last-child { font-size: 12px; padding: 10px; }
    .library-tabs button { font-size: 14px; gap: 7px; padding: 10px 6px; }
    .library-tabs span { padding-inline: 6px; }
    .app-dialog { padding: 22px; border-radius: 20px; }
    .menu-dialog { margin: 90px 16px auto auto; max-height: calc(100dvh - 106px); }
    .update-banner { margin: 12px 16px 0; padding: 12px; gap: 10px; }
    .update-banner p { font-size: 12px; }
    .download-panel-footer .muted { max-width: 150px; }
    .site-footer { padding: 20px 18px; margin-top: 16px; }
}
@media (max-width: 359px) {
    .header-inner { gap: 12px; }
    .echtfrei-logo { width: 84px; }
    #app-content { padding-inline: 16px; }
    .availability-key { gap: 6px; }
    .library-tabs button { font-size: 12px; }
    .access-intro h1 { font-size: 33px; }
    #frequencyPlayer { gap: 6px; padding: 10px; }
    .access-card, .offline-card { padding: 18px 16px; }
    .app-dialog { padding: 20px; }
}
@media (prefers-reduced-transparency: reduce) { .site-header { background: #fffefb; } .site-header::before { content: none; } .app-dialog::backdrop { backdrop-filter: none; } }

@media (forced-colors: active) { .site-header { color: CanvasText; background: Canvas; border-bottom: 1px solid CanvasText; } .site-header::before { content: none; } }
@media (forced-colors: active) {
    #audio-seek:focus-visible { outline: 2px solid Highlight; outline-offset: -6px; }
    .player-times { margin-top: 0; }
    #audio-seek::-webkit-slider-runnable-track { background: Canvas; border: 1px solid CanvasText; }
    #audio-seek::-webkit-slider-thumb { background: Canvas; border-color: Highlight; box-shadow: none; }
    #audio-seek::-moz-range-track { background: Canvas; border: 1px solid CanvasText; }
    #audio-seek::-moz-range-progress { background: Highlight; }
    #audio-seek::-moz-range-thumb { background: Canvas; border-color: Highlight; box-shadow: none; }
}

/* Resolve the first language before exposing access and welcome copy. */

.language-picker { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 22px; font-size: 14px; }
.language-picker select { min-height: 48px; max-width: 65%; padding: 8px 12px; border: 1px solid #b3c8c3; border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; }
#welcome-dialog .language-picker select:focus-visible { outline-offset: -3px; }

.history-section { border-bottom: 1px solid var(--line, #e7d5b4); padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
.history-section h3 { font-size: 1.25rem; }
.history-entry { border: 1px solid #dfd8c9; border-radius: 14px; margin: .75rem 0; padding: .85rem; background: rgba(0,128,128,.035); }
.history-entry > summary { min-height: 44px; cursor: pointer; }
.history-entry > summary strong { display: block; color: var(--teal, #007b80); }
.history-entry .journal-actions button { min-height: 44px; }
.history-section .checkbox-row { min-height: 48px; }
/* Personal sync shares the journal's dialog rhythm and remains usable at 320px. */
.private-sync { padding-bottom: 1.4rem; margin-bottom: 1.4rem; border-bottom: 1px solid rgba(201,170,102,.3); }
.private-sync textarea { box-sizing: border-box; display: block; width: 100%; max-width: 100%; min-height: 5rem; margin: .6rem 0 1rem; padding: .7rem; border: 1px solid rgba(201,170,102,.4); border-radius: .7rem; background: rgba(255,255,255,.06); color: inherit; font: inherit; overflow-wrap: anywhere; }
.private-sync > button, .private-sync details > button { margin: .5rem .5rem .5rem 0; min-height: 44px; max-width: 100%; white-space: normal; }
.private-sync details { margin: .8rem 0; }
.private-sync label { display: block; margin-top: .7rem; }
.private-sync .checkbox-row { display: flex; align-items: flex-start; gap: .7rem; }
#sync-comparison { display: block; font-size: 2rem; letter-spacing: .15em; padding: 1rem 0; font-variant-numeric: tabular-nums; }
.sync-devices { padding-left: 1.2rem; }
.sync-devices li { margin: .7rem 0; overflow-wrap: anywhere; }
.sync-devices button { min-height: 44px; margin-left: .5rem; }

@media (max-width: 359px) { .menu-toggle span { display: none; } }
.help-topic { border-top: 1px solid var(--line); }
.help-topic > summary { display: flex; align-items: center; gap: 10px; padding: 18px 0; min-height: 60px; list-style: none; cursor: pointer; color: var(--heading); font-size: 18px; font-weight: 700; }
.help-topic > summary::-webkit-details-marker { display: none; }
.help-topic > summary::after { content: ''; margin-left: auto; flex: 0 0 20px; width: 20px; height: 20px; font-size: 25px; line-height: 20px; text-align: center; }
.help-topic[open] > summary::after { transform: rotate(90deg); }
.help-star { flex: 0 0 22px; color: #946c23; }
.help-content p, .help-steps, .help-states { font-size: 16px; line-height: 1.65; }
.help-steps { padding-left: 24px; }
.help-steps li { padding: 0 0 12px 4px; }
.help-states { margin: 20px 0; }
.help-states > div { margin-bottom: 16px; }
.help-states dd { margin: 7px 0 0; }
.help-subtitle { font-size: 18px; margin-top: 24px; }
.help-figure { margin: 20px 0; }
.help-figure figcaption { font-size: 15px; line-height: 1.55; margin-top: 10px; color: var(--soft); }
.guide-example { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #f8f7ef; font-size: 16px; }
.guide-example-heading { color: var(--heading); font-weight: 700; margin-bottom: 12px; }
.guide-download { border-radius: 12px; background: #47d7d133; padding: 12px; text-align: center; color: var(--ink); font-size: 16px; font-weight: 600; }
.guide-flow-arrow { text-align: center; color: var(--heading); padding: 6px; font-size: 22px; }
.guide-title-example, .guide-row, .guide-drop { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.guide-star { color: #946c23; border: 1px solid #b99d5c; padding: 4px 12px; border-radius: 12px; font-size: 26px; }
.guide-row { border-radius: 12px; border: 1px solid #b3c8c3; padding-left: 12px; background: var(--paper); }
.guide-grip { text-align: center; color: var(--heading); line-height: 1; border-left: 1px solid var(--line); padding: 8px 12px; font-size: 18px; }
.guide-drop { border: 2px dashed var(--heading); border-radius: 12px; padding: 16px 12px; background: #47d7d11a; color: var(--heading); }
.guide-modes { display: flex; gap: 5px; }
.guide-modes > span { flex: 1; min-width: 0; text-align: center; padding: 7px 3px; border-radius: 10px; font-size: 14px; }
.guide-selected { background: var(--heading); color: var(--paper); }
.guide-count { display: flex; align-items: center; justify-content: space-around; padding: 16px 0; color: var(--heading); font-size: 22px; }

/* Access remains a single form, used either at entry or in a deliberate unlock dialog. */
#access-dialog { width:min(620px,calc(100% - 32px)); }
#access-dialog:focus { outline:none; }
#access-dialog-content { padding:6px; }
#access-dialog button:focus:not(:focus-visible), #access-dialog-content:focus:not(:focus-visible) { outline:none; }
#access-dialog button:focus-visible, #access-dialog-content:focus-visible { outline:2px solid #075c60; outline-offset:-3px; }
#access-dialog #serial-number:focus { outline:2px solid #075c60; outline-offset:2px; border-color:#075c60; }
#access-dialog .access-card { border:0; border-radius:0; box-shadow:none; padding:8px 0; background:transparent; }
#access-dialog .access-card > .eyebrow, #access-dialog .access-card > h2 { display:none; }
#access-dialog-title, #serial-scan-title { font-size:24px; margin:0; }
.serial-methods { display:grid; grid-template-columns:1fr; gap:8px; margin:16px 0 10px; }
.serial-methods button { width:100%; border-color:#6f8f87; }
#serial-scan-dialog { width:min(620px,calc(100% - 32px)); }
#serial-video, #serial-photo-preview { display:block; width:100%; max-height:300px; object-fit:contain; border-radius:12px; background:#f1f6f3; margin:12px 0; }
#serial-scan-candidates { display:grid; gap:10px; }
.serial-candidate { width:100%; font-family:ui-monospace,monospace; font-size:clamp(13px,3.7vw,19px); overflow-wrap:anywhere; }
.preview-notice { margin:0 0 24px; border:1px solid var(--line); border-radius:16px; padding:16px; background:#47d7d10c; }
.preview-notice p { font-size:16px; margin-bottom:12px; }
@media(min-width:560px){.serial-methods{grid-template-columns:1fr 1fr}}

body:has(#serial-scan-dialog[open]) #access-dialog, body:has(#serial-scan-dialog[open]) #access-dialog::backdrop { visibility:hidden; }

.guide-grip-arrow { opacity: .58; font-weight: 400; }
.help-content .availability { white-space: normal; }
.guide-trigger-figure img { display: block; max-width: 100%; height: auto; }
html[lang=de] .guide-trigger-figure [data-guide-language=en], html[lang=en] .guide-trigger-figure [data-guide-language=de] { display: none; }
.news-content, .dialog-content { overscroll-behavior-x: none; touch-action: pan-y pinch-zoom; }

.news-archive summary::after, .help-topic > summary::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m7 4 6 6-6 6' fill='none' stroke='%230b7374' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px 20px no-repeat; }

/* Continuous player and readable mobile controls, 2.8.0. */
body { padding-bottom: var(--mini-height, 0px); }
html { scroll-padding-bottom: calc(var(--mini-height, 0px) + 20px); }
.program-name, #programTitle, #mini-title { hyphens: auto; overflow-wrap: anywhere; }
#program-duration { margin: 6px 0 0; font-size: 16px; line-height: 1.5; }
#audio-status, #offline-program-state, .storage-hint, #download-label { font-size: 16px; }
#offline-save, #miniDisclaimer, #footnote, .disclaimer-content, .disclaimer-content p { font-size: 16px; }
.language-picker { flex-wrap: wrap; font-size: 16px; }
.language-picker select { appearance: none; -webkit-appearance: none; height: 48px; min-height: 48px; min-width: 0; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%23163d3f' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-position: right 10px center; background-repeat: no-repeat; }
.journal-storage > summary, .experience-panel > summary { min-height: 48px; padding: 12px 0; cursor: pointer; font-size: 16px; }
.experience-panel { border-top: 1px solid var(--line); }
.program-playing { display: inline-flex; align-self: flex-start; width: fit-content; max-width: 100%; align-items: center; gap: 7px; padding: 4px 9px; border-radius: 999px; background: #47d7d124; color: var(--heading); font-size: 14px; font-weight: 500; line-height: 1.5; }
.program-playing svg { flex-shrink: 0; }
[data-playback=paused] .program-playing { background: #e9e9df; color: var(--soft); box-shadow: inset 0 0 0 1px #526d6b40; }
.program-card[data-playback=playing], .saved-open[data-playback=playing] { border-color: #29948a99; background-image: linear-gradient(#47d7d115, #47d7d115); }
#mini-player-home { position: fixed; inset: auto 0 0; z-index: 90; padding-bottom: env(safe-area-inset-bottom); background: #f0f7f2; border-top: 1px solid #153d3f1a; }
#mini-player { width: 100%; }
.mini-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; max-width: 1040px; margin: 0 auto; padding: 8px 24px 10px; }
#mini-title { min-width: 0; width: 100%; border: 0; background: transparent; text-align: left; padding: 4px 0; color: var(--ink); font-size: 17px; font-weight: 600; line-height: 1.4; }
#mini-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-meta { display: block; color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.5; margin-top: 3px; }
#mini-state, #mini-time { display: block; }
#mini-time { font-variant-numeric: tabular-nums; }
.mini-actions { display: flex; align-items: stretch; gap: 2px; }
.mini-actions button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; flex: none; width: 52px; min-height: 64px; padding: 2px 0; border: 0; background: transparent; color: var(--soft); font-size: 13px; font-weight: 400; }
.mini-actions svg { flex: 0 0 auto; width: 40px; height: 40px; padding: 8px; }
#mini-toggle svg { border-radius: 50%; background: var(--heading); color: var(--paper); }
#mini-progress { grid-column: 1 / -1; width: 100%; height: 3px; min-height: 3px; margin: 0; appearance: none; -webkit-appearance: none; background: #b3c9bd; color: var(--heading); accent-color: var(--heading); border: 0; }
#mini-progress::-webkit-progress-bar { background: #b3c9bd; }
#mini-progress::-webkit-progress-value { background: var(--heading); }
#mini-progress::-moz-progress-bar { background: var(--heading); }
.player-options { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 2px 8px; }
.player-options .repeat-trigger { min-width: 0; flex-wrap: wrap; gap: 4px 7px; }
.player-options #repeat-status { grid-column: 1 / -1; }
.player-options #repeat-setting { margin-left: 0; }
.playlist-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; padding: 6px 8px; border: 0; background: transparent; color: var(--muted); font-size: 14px; font-weight: 400; }
.playlist-add[data-included=true] { color: var(--heading); }
@media (max-width: 600px) {
    .mini-inner { padding-inline: 16px; gap: 6px 8px; }
    .mini-actions button { width: 48px; }
    #mini-title { font-size: 16px; }
}
@media (max-width: 480px) {
    .repeat-modes { flex-direction: column; }
    .repeat-modes button { font-size: 16px; min-height: 48px; }
    .language-picker { display: grid; grid-template-columns: minmax(0, 1fr); }
    .language-picker select { max-width: 100%; width: 100%; }
}
.availability { white-space: normal; overflow-wrap: anywhere; }
.legal-content { font-size: 16px; }
@media (max-height: 500px) {
    .menu-dialog { margin: 16px 16px auto auto; max-height: calc(100dvh - 32px); }
}

/* Settings sync: calm sections, readable codes, no sideways dialog scrolling. */
.settings-content { overflow-x: hidden; }
.settings-content > p:first-child { margin-top: 0; }
.settings-content button { min-height: 48px; white-space: normal; }
.settings-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border, #d9d2c5); }
.settings-section h3 { margin-top: 0; }
.settings-section summary { font-weight: 650; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.settings-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.settings-content textarea { display: block; box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; resize: vertical; font: 16px/1.5 ui-monospace, monospace; overflow-wrap: anywhere; word-break: break-all; margin: 8px 0 14px; border-radius: 12px; padding: 12px; }
.settings-comparison { display: block; font-size: 32px; font-variant-numeric: tabular-nums; letter-spacing: .16em; margin: 18px 0; text-align: center; }
.settings-status { padding: 10px 14px; border-radius: 12px; background: rgba(180,151,94,.10); }
.settings-programs { list-style: none; padding: 0; }
.settings-programs li, .settings-device { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding: 10px 0; }
.settings-programs small { font-size: 14px; font-weight: 400; opacity: .8; }
#settings-restore progress { display: block; width: 100%; height: 12px; margin: 14px 0; }
.settings-content .muted { font-size: 15px; line-height: 1.55; }

/* Remaining listening queue, inline with the program categories. */
.playlist-group { border-color: #8ab9ac; background: linear-gradient(180deg, #47d7d11c, #47d7d10b); scroll-margin-top: 100px; }
.playlist-group > summary > svg { color: var(--heading); flex-shrink: 0; }
.playlist-hint { padding: 0 16px; margin: 0 0 14px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.playlist-items { grid-template-columns: minmax(0, 1fr); overflow-anchor: none; }
.playlist-item { grid-template-columns: minmax(0, 1fr) 48px; gap: 0 6px; padding-bottom: 10px; border-bottom: 1px solid #153d3f14; }
.playlist-item:last-child { border-bottom: 0; padding-bottom: 0; }
.playlist-item { grid-template-rows: auto; }
.playlist-item > .program-card { grid-column: 1; grid-row: 1; min-height: 80px; padding: 8px 12px 50px 10px; justify-content: flex-start; gap: 3px; }
.playlist-item .program-card-title { padding-right: 12px; line-height: 1.4; }
.playlist-item > .program-card::after { top: 23px; right: 8px; font-size: 20px; }
.playlist-item .program-offline { padding: 2px 6px; font-size: 12px; line-height: 1.4; }
.playlist-item > .favorite-handle { grid-column: 2; grid-row: 1; }
.playlist-stage { position: absolute; left: 10px; bottom: 4px; display: flex; align-items: center; align-content: center; flex-wrap: wrap; gap: 1px 4px; height: 44px; max-width: calc(100% - 112px); font-size: 12px; line-height: 1.4; font-weight: 500; color: var(--muted); }
.playlist-item.is-current .playlist-stage { max-width: calc(100% - 68px); color: var(--heading); }
.playlist-entry-repeat { position: relative; z-index: 1; grid-column: 1; grid-row: 1; align-self: end; justify-self: end; display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 52px; min-height: 44px; margin: 0 48px 4px 0; padding: 3px 4px; border: 0; background: transparent; color: var(--muted); text-align: left; font-size: 14px; font-weight: 400; }
.playlist-item.is-current > .playlist-entry-repeat { margin-right: 4px; }
.playlist-entry-repeat svg { flex-shrink: 0; }
.playlist-remove { position: relative; z-index: 1; grid-column: 1; grid-row: 1; align-self: end; justify-self: end; display: flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; min-height: 44px; margin: 0 4px 4px 0; padding: 0; background: transparent; border-color: transparent; color: var(--soft); }
.playlist-skip { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-width: 48px; padding: 6px 0; border-color: transparent; background: transparent; color: var(--muted); font-size: 12px; font-weight: 400; overflow-wrap: anywhere; }
.queue-choices { display: grid; gap: 12px; padding: 4px 0; }
.queue-choices button { width: 100%; min-height: 52px; text-align: left; font-weight: 500; }
.playlist-item.is-current > .program-card { border-color: #0b737466; }

/* Dialogs start at their heading; closing controls use quiet keyboard feedback. */
[data-dialog-initial-focus]:focus { outline: none; }
dialog .dialog-heading > .icon-button:focus,
dialog .dialog-heading > .icon-button:focus-visible,
#access-dialog .dialog-heading > .icon-button:focus,
#access-dialog .dialog-heading > .icon-button:focus-visible { outline: none; box-shadow: none; background: #47d7d124; color: var(--heading); }

.playlist-stage .program-offline { flex: 0 0 auto; max-width: 100%; }
@media (max-width: 360px) {
    .playlist-item > .program-card { padding-bottom: 66px; }
    .playlist-stage { height: 60px; }
}
