/* TPC Backlog. Tokens aus dem TPC-Brand-Guide: warmes Off-White, ein Teal, Lexend, Fraunces nur kursiv als Akzent.
   Gestaltung wie im Dashboard vom 01.10.: Glas-Karten, weiche Blobs, alles mittig. Ergänzt um die Bausteine vom 02.10.
   (Kalender, Bedingungen, Passkeys, Moduswechsel im Chat, Verbrauch). Teal-Töne etwas dunkler für AA-Kontrast. */
@font-face { font-family: 'Lexend'; src: url('/assets/fonts/LexendTPC-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Lexend'; src: url('/assets/fonts/LexendTPC-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Lexend'; src: url('/assets/fonts/LexendTPC-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Lexend'; src: url('/assets/fonts/LexendTPC-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/assets/fonts/Fraunces-Italic-500.woff2') format('woff2'); font-style: italic; font-weight: 500; font-display: swap; }

:root {
  color-scheme: light;
  --teal: #25A8AB; --teal-light: #4CBFC2; --teal-dark: #167578; --teal-ink: #115E61;
  --bg: #F7F5F2; --surface: #EDEAE5; --surface-2: #E2DED8; --line: rgba(13,13,13,.08);
  --text: #0D0D0D; --muted: #666666; --subtle: #767676;
  --warm: #E8694A; --warm-ink: #B9502F; --danger: #B3401F;
  --font: 'Lexend', system-ui, sans-serif; --accent: 'Fraunces', Georgia, serif;
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 24px; --outer: 48px;
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23666666' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  --chev-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--font); min-height: 100dvh; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 2px; }
[disabled] { opacity: .5; cursor: default !important; }
.muted { color: var(--muted); }
.label { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0; }
.accent { font-family: var(--accent); font-style: italic; font-weight: 500; }
.accent--teal { color: var(--teal-dark); }
.stack { display: grid; gap: var(--s3); }
.error { color: var(--danger); font-size: 13px; margin: 0; }

/* Hintergrund: weiche Blobs und Punktraster, bewusst leise */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); }
.b1 { width: 520px; height: 520px; background: var(--teal-light); opacity: .15; top: -160px; right: -80px; }
.b2 { width: 440px; height: 440px; background: var(--warm); opacity: .10; bottom: -200px; left: -120px; }
.b3 { width: 380px; height: 380px; background: #C9A8E0; opacity: .16; top: 40%; left: 55%; }
.dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(13,13,13,.0625) 1px, transparent 1px); background-size: 34px 34px; }

.glass {
  background: rgba(255,255,255,.46);
  -webkit-backdrop-filter: blur(14px) saturate(145%); backdrop-filter: blur(14px) saturate(145%);
  border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.62), 0 1px 3px rgba(13,13,13,.05), 0 8px 32px -16px rgba(13,13,13,.14);
}

/* Knöpfe */
.btn { border: 0; border-radius: 999px; padding: 12px 24px; font-weight: 500; cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px; }
.btn:active:not([disabled]) { transform: scale(.98); }
.btn--primary { background: var(--teal-dark); color: #fff; }
.btn--primary:hover:not([disabled]) { background: var(--teal-ink); box-shadow: 0 8px 24px -8px rgba(22,117,120,.5); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--surface-2); }
.btn--ghost:hover:not([disabled]) { background: rgba(255,255,255,.7); }
.btn--warn { background: var(--warm-ink); color: #fff; }
.btn--small { padding: 8px 16px; font-size: 13px; min-height: 36px; }
/* Ausgegraut, aber bedienbar: der Klick zeigt den Grund (In Zoho öffnen) */
.btn.is-off, .btn.is-off:hover { background: var(--surface); color: var(--subtle); box-shadow: inset 0 0 0 1px var(--surface-2); cursor: not-allowed; transform: none; }
.iconbtn { flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; }
.iconbtn:hover:not([disabled]) { background: rgba(13,13,13,.06); color: var(--text); }
.iconbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.linkbtn { border: 0; background: none; padding: 6px 2px; min-height: 32px; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--surface-2); cursor: pointer; }
.linkbtn:hover { color: var(--text); text-decoration-color: currentColor; }

/* Chips: wie früher, ausgewählt in Teal */
.chip { border: 0; background: rgba(255,255,255,.5); box-shadow: inset 0 0 0 1px var(--surface-2); border-radius: 999px; padding: 8px 16px; font-size: 13px; cursor: pointer; color: var(--muted); min-height: 36px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.chip:hover:not([disabled]) { color: var(--text); background: rgba(255,255,255,.75); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--teal-dark); color: #fff; box-shadow: none; }
.chip--select { -webkit-appearance: none; appearance: none; padding-right: 32px; background: rgba(255,255,255,.5) var(--chev) no-repeat right 12px center / 10px; max-width: 240px; text-overflow: ellipsis; }
.chip--select.is-on { background: var(--teal-dark) var(--chev-w) no-repeat right 12px center / 10px; }
.chip--select option { color: var(--text); background: #fff; }
.chip--drop { padding-right: 32px; background: rgba(255,255,255,.5) var(--chev) no-repeat right 12px center / 10px; }
.chip--drop.is-on { background: var(--teal-dark) var(--chev-w) no-repeat right 12px center / 10px; }
.chip--drop[aria-expanded="true"]:not(.is-on) { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--muted); }
.chip--x { background: var(--surface); color: var(--text); box-shadow: none; }
.chip--x::after { content: '×'; font-size: 16px; line-height: 1; color: var(--muted); }
.chip--round { width: 36px; padding: 0; justify-content: center; font-weight: 500; }
.chip--round[aria-expanded="true"] { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--muted); }
.chip--toggle { display: none; }
.chip--toggle[aria-expanded="true"] { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--muted); }
.chip__n { opacity: .65; font-variant-numeric: tabular-nums; }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--teal-dark); color: #fff; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; padding: 2px; border-radius: 999px; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 6px 14px; min-height: 32px; border-radius: 999px; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--muted); white-space: nowrap; transition: background .15s, color .15s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(13,13,13,.08); }
.seg--tier button[aria-pressed="true"] { background: var(--text); color: #fff; }
.seg--tier button[data-mode="paid"][aria-pressed="true"] { background: var(--warm-ink); }

/* Eingabefelder */
.input { display: block; width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--surface-2); background: rgba(255,255,255,.85); border-radius: 16px; padding: 10px 16px; font-size: 16px; color: var(--text); }
.input:focus { outline: none; border-color: var(--teal-dark); box-shadow: 0 0 0 1px var(--teal-dark); }
.input::placeholder { color: var(--subtle); }
input[type="date"].input { text-align: left; min-height: 40px; padding: 7px 12px; border-radius: 12px; }
input[type="date"].input::-webkit-date-and-time-value { text-align: left; }
.field { display: grid; gap: var(--s2); font-size: 13px; color: var(--muted); }
.sfield { display: grid; gap: 4px; font-size: 12px; color: var(--muted); min-width: 0; }

/* Anmeldung */
.login { min-height: 100dvh; display: grid; place-items: center; padding: var(--s4); }
.login__card { width: min(440px, 100%); padding: var(--s6) var(--s5); }
.login__logo { display: block; width: 180px; height: auto; margin-bottom: var(--s2); }
.login .label { margin-bottom: var(--s5); }
.login__more { display: flex; justify-content: space-between; gap: var(--s3); margin: 0; }
.login__card .btn svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.login__or { display: flex; align-items: center; gap: var(--s3); margin: 0; font-size: 13px; color: var(--muted); }
.login__or::before, .login__or::after { content: ''; flex: 1; height: 1px; background: var(--surface-2); }
.claim { font-weight: 600; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0; letter-spacing: -.01em; }

/* Kopfzeile */
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s3); padding: var(--s3) var(--outer); position: sticky; top: 0; z-index: 20; background: linear-gradient(var(--bg) 60%, rgba(247,245,242,0)); }
.top__logo { display: flex; align-items: center; gap: var(--s3); text-decoration: none; justify-self: start; }
.top__logo img { height: 18px; width: auto; display: block; }
.tabs { display: flex; gap: var(--s1); padding: var(--s1); border-radius: 999px; background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 4px 20px -12px rgba(13,13,13,.2); }
.tabs a { padding: 8px 16px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted); transition: background .2s, color .2s; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.is-on { background: var(--text); color: #fff; }
.top__user { display: flex; align-items: center; gap: var(--s3); justify-content: flex-end; font-size: 13px; min-width: 0; }
.who { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; color: var(--muted); line-height: 1.3; }
.who > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who__zoho { color: var(--warm-ink); font-weight: 500; }
.who__zoho::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--warm); vertical-align: 2px; }

.view { padding: var(--s4) var(--outer) var(--s7); max-width: 1440px; margin: 0 auto; }

/* Suche */
.search { padding-top: var(--s6); transition: padding .4s var(--ease); }
.search.is-active { padding-top: 0; }
/* Die Überschrift klappt beim ersten Suchen weich weg, statt zu springen */
.hero { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .4s var(--ease), opacity .25s; }
.hero > * { min-height: 0; overflow: hidden; }
.search.is-active .hero { grid-template-rows: 0fr; opacity: 0; }
.claim--hero { font-size: clamp(30px, 4.6vw, 56px); text-align: center; max-width: 18ch; margin: 0 auto; padding-bottom: var(--s5); }
.search__bar { display: flex; align-items: center; gap: var(--s1); padding: var(--s2) var(--s2) var(--s2) var(--s4); max-width: 880px; margin: 0 auto; border-radius: 999px; transition: box-shadow .15s; }
.search__bar:focus-within { box-shadow: inset 0 0 0 1.5px rgba(22,117,120,.5), 0 1px 3px rgba(13,13,13,.05), 0 8px 32px -16px rgba(13,13,13,.14); }
.search__bar > svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search__bar input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px var(--s2); font-size: 18px; outline: none; }
.search__bar input::placeholder { color: var(--subtle); }
.search__bar input::-webkit-search-cancel-button { -webkit-appearance: none; }
.deep { position: relative; flex: none; min-width: 120px; }
.deep.is-busy { color: transparent; pointer-events: none; }
.deep.is-busy::after { content: ''; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.modes { display: flex; justify-content: center; align-items: center; gap: var(--s2); margin: var(--s3) auto 0; }
.modes .seg button { padding: 6px 18px; }
.filters { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; align-items: center; max-width: 980px; margin: var(--s3) auto 0; }
#mkinds + #filters { margin-top: var(--s2); }

/* Klapp-Bereiche unter den Filtern: Zeitraum, Erweitert, Hilfe. Immer nur einer. */
.panel { max-width: 880px; margin: var(--s3) auto 0; padding: var(--s3) var(--s4); border-radius: 20px; font-size: 14px; }
.panel > p { margin: 0 0 var(--s2); }
.panel > .label { margin-bottom: var(--s2); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.period { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2) var(--s3); max-width: 440px; margin-bottom: var(--s3); }
.conds { list-style: none; margin: 0 0 var(--s3); padding: 0; display: grid; gap: var(--s2); }
.cond { display: flex; gap: var(--s2); align-items: center; }
.cond select { flex: none; width: auto; }
.cond .input[type="text"] { flex: 1; min-height: 40px; padding: 7px 14px; border-radius: 12px; }
.help__dl { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--s3); margin: 0; }
.help__dl dt { font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.help__dl dd { margin: 0; color: var(--muted); line-height: 1.6; }
#help .muted { margin: var(--s2) 0 0; }
.help__keys { margin-top: var(--s3); }
.help__keys .label { margin-bottom: var(--s2); }
@media (pointer: coarse) { .help__keys { display: none; } }

/* Treffer und rechte Spalte */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); margin-top: var(--s5); align-items: start; }
.split.has-detail { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.results { max-width: 880px; width: 100%; margin: 0 auto; }
.split.has-detail .results, .split.is-media .results { max-width: none; }
.split.is-media.has-detail { grid-template-columns: minmax(0, 1fr) minmax(360px, 460px); }
.meta { display: flex; align-items: center; gap: var(--s2); font-size: 13px; color: var(--muted); margin: 0 0 var(--s3); min-height: 20px; }
.meta:empty { display: none; }
.results.is-loading #resultMeta::after { content: ''; flex: none; width: 12px; height: 12px; border: 2px solid var(--surface-2); border-top-color: var(--muted); border-radius: 50%; animation: spin .7s linear infinite; }
.results.is-loading #resultMeta { display: flex; }
.results.is-busy .list, .results.is-busy .gallery { opacity: .45; pointer-events: none; transition: opacity .15s; }
.also { margin: calc(-1 * var(--s2)) 0 var(--s3); font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.list--dim { opacity: .8; }
.item { padding: var(--s3) var(--s4); border-radius: 20px; background: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.7); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s; }
.item:hover { background: rgba(255,255,255,.75); box-shadow: 0 8px 24px -12px rgba(37,168,171,.3); transform: translateY(-1px); }
.item.is-open { background: #fff; box-shadow: inset 0 0 0 2px var(--teal); }
.item__top { display: flex; justify-content: space-between; gap: var(--s3); font-size: 13px; color: var(--muted); }
.item__top span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item__top time { flex: none; font-variant-numeric: tabular-nums; }
.item h3 { margin: var(--s1) 0; font-size: 16px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.item h3 .cite { margin: 0 6px 0 0; }
.item p { margin: 0; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.item .reason { color: var(--teal-dark); font-size: 13px; margin-bottom: var(--s1); }
.item .reason::before { content: '→ '; }
mark { background: rgba(37,168,171,.2); color: inherit; border-radius: 4px; padding: 0 2px; }
.tags { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s2); }
.tag { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; font-size: 11px; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; background: var(--surface); color: var(--muted); border: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.tag { cursor: pointer; }
button.tag:hover { background: var(--surface-2); color: var(--text); }
.tag--cat { background: rgba(37,168,171,.14); color: var(--teal-dark); text-transform: uppercase; letter-spacing: .08em; }
.tag--file { background: transparent; box-shadow: inset 0 0 0 1px var(--surface-2); max-width: 220px; }
.tag--warn { background: rgba(232,105,74,.14); color: var(--danger); }
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--surface-2); margin-right: 6px; }
.dot.ok { background: var(--teal); } .dot.warn { background: var(--warm); }
.empty { padding: var(--s4); margin-bottom: var(--s3); font-size: 15px; }
.empty p { margin: 0; }
.empty__acts { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3) !important; }
.more { text-align: center; margin: var(--s4) 0 0; }
.more:has(> [hidden]) { margin: 0; }
#moreTitle { margin: var(--s4) 0 var(--s2); }

/* Antwort aus den Mails (Gründlich) */
.answer { padding: var(--s3) var(--s4) var(--s4); margin-bottom: var(--s3); font-size: 16px; }
.answer__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin: 0 -12px var(--s1) 0; }
.answer__head .label { color: var(--teal-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.answer__text { margin: 0; }
.answer-fold { margin: 0 0 var(--s2); }
.answer-fold .linkbtn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.cite { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin: 0 1px; border: 0; border-radius: 999px; background: var(--teal-dark); color: #fff; font: 600 11px/1 var(--font); font-style: normal; vertical-align: 1px; cursor: pointer; transition: background .2s; }
button.cite:hover { background: var(--teal-ink); }

/* Medien */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: var(--s3); }
.tile { min-width: 0; border-radius: 18px; overflow: hidden; cursor: pointer; background: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.7); transition: transform .2s var(--ease), box-shadow .2s, background .2s; }
.tile:hover { background: rgba(255,255,255,.75); box-shadow: 0 8px 24px -12px rgba(37,168,171,.3); transform: translateY(-1px); }
.tile.is-open { box-shadow: inset 0 0 0 2px var(--teal); background: #fff; }
.tile__img { position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; background: var(--surface); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile__img img.is-page { object-fit: contain; background: #fff; padding: 6px; box-shadow: inset 0 0 0 1px var(--surface-2); }
.tile__ext { font-weight: 600; font-size: 20px; letter-spacing: .06em; color: var(--muted); }
.tile__img--pdf { background: rgba(232,105,74,.12); } .tile__img--pdf .tile__ext { color: var(--danger); }
.tile__img--design { background: rgba(201,168,224,.28); } .tile__img--design .tile__ext { color: #6B3F8C; }
.tile__img--video, .tile__img--audio { background: #1F1F1F; } .tile__img--video .tile__ext, .tile__img--audio .tile__ext { color: #fff; }
.tile__img--tabelle { background: rgba(37,168,171,.14); } .tile__img--tabelle .tile__ext { color: var(--teal-dark); }
.tile__img--dokument { background: rgba(80,110,160,.12); } .tile__img--dokument .tile__ext { color: #3C5A8A; }
.tile__img--archiv, .tile__img--sonstige, .tile__img--signatur { background: var(--surface-2); }
.tile__img.is-loading::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.tile__badge { position: absolute; top: 8px; right: 8px; background: rgba(13,13,13,.72); color: #fff; font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 999px; }
.tile__cap { padding: 8px 12px 10px; }
.tile__cap b, .tile__cap small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile__cap b { font-size: 13px; font-weight: 500; }
.tile__cap small { font-size: 12px; color: var(--muted); }

/* Ansicht einer Mail oder Datei: Glas-Karte rechts neben der Liste */
.detail { position: sticky; top: 88px; max-height: calc(100dvh - 112px); overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--s5) var(--s5); }
.detail__bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: var(--s2); margin: 0 calc(-1 * var(--s5)) var(--s2); padding: var(--s3) var(--s5) var(--s2); background: linear-gradient(rgba(250,249,247,.96) 75%, rgba(250,249,247,0)); }
.detail__bar .grow { flex: 1; }
/* Am Desktop steht "Schließen" wie früher rechts neben dem Titel und bleibt beim Scrollen erreichbar */
.detail__bar.is-float { margin-bottom: -44px; background: none; pointer-events: none; }
.detail__bar.is-float + .detail__body { padding-top: var(--s3); }
.detail__bar.is-float > * { pointer-events: auto; }
.detail__bar.is-float .btn { background: rgba(255,255,255,.85); }
.detail__bar.is-float + .detail__body h2 { padding-right: 112px; }
.detail__close .is-narrow { display: none; }
.detail__body h2 { margin: 0 0 var(--s2); font-size: 22px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.detail__body h2:focus { outline: none; }
.detail dl.head { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--s3); margin: 0 0 var(--s4); font-size: 13px; }
.detail dl.head dt { color: var(--muted); } .detail dl.head dd { margin: 0; overflow-wrap: anywhere; }
.detail__actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s3); }
.detail__note { margin: 0 0 var(--s3); font-size: 13px; color: var(--muted); }
.detail__note.is-warn { color: var(--warm-ink); }
.box { background: rgba(255,255,255,.6); border-radius: 16px; padding: var(--s3); margin-bottom: var(--s3); font-size: 14px; }
.box > .label { margin-bottom: var(--s2); }
.box dl { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--s3); margin: 0; font-size: 13px; }
.box dt { color: var(--muted); } .box dd { margin: 0; overflow-wrap: anywhere; }
.box details { margin-top: var(--s2); font-size: 13px; }
.box summary { cursor: pointer; color: var(--muted); padding: 4px 0; width: max-content; max-width: 100%; }
.box summary:hover { color: var(--text); }
.box details .tags { margin-top: var(--s1); }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.files li { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); font-size: 14px; }
.files li > :first-child { min-width: 0; overflow-wrap: anywhere; }
.files a, .filebtn { overflow-wrap: anywhere; color: var(--teal-dark); text-decoration: none; font-weight: 500; }
.filebtn { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; font-size: inherit; }
.filebtn:hover, .files a:hover { text-decoration: underline; text-underline-offset: 3px; }
.files small { flex: none; color: var(--muted); white-space: nowrap; font-size: 12px; }
.body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; margin: 0; font-family: var(--font); }
.frame { display: block; width: 100%; height: 60vh; border: 0; border-radius: 16px; background: #fff; }
.detail .seg { margin-bottom: var(--s3); }
.thread { list-style: none; margin: 0; padding: 0; font-size: 13px; display: grid; gap: var(--s1); }
.thread a { text-decoration: none; display: flex; gap: var(--s2); justify-content: space-between; padding: 4px 0; }
.thread a:hover { color: var(--teal-dark); }
.thread time { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
/* Datei-Vorschau */
.pv__nav { display: flex; gap: var(--s1); }
.pv__nav .iconbtn { font-size: 20px; color: var(--text); box-shadow: inset 0 0 0 1px var(--surface-2); }
.pv__open { display: block; margin: 0 0 var(--s3); border-radius: 16px; overflow: hidden; background: var(--surface); color: inherit; text-decoration: none; }
.pv__img { display: block; width: 100%; max-height: 52vh; object-fit: contain; }
.pv__audio { display: block; width: 100%; margin: 0 0 var(--s3); }
.pv__pdf { margin: 0 0 var(--s1); height: 52vh; }
.pv__big { margin: 0 0 var(--s3); }
.pv__icon { aspect-ratio: 16 / 9; display: grid; place-content: center; justify-items: center; }
.pv__icon .tile__ext { font-size: 32px; }
.pv__icon small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.detail h2.pv__name { font-size: 18px; margin-bottom: var(--s1); }
.pv__meta { font-size: 13px; color: var(--muted); margin: 0 0 var(--s3); }
.pv__mail { color: var(--teal-dark); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.pv__mail:hover { text-decoration: underline; text-underline-offset: 3px; }
.pv__from { font-size: 13px; color: var(--muted); margin: var(--s1) 0 0; overflow-wrap: anywhere; }

/* Fragen */
/* BETA: Kennzeichnung bleibt über dem Verlauf sichtbar, auch auf schmalen Geräten. */
.beta-badge { display: inline-block; padding: 3px 7px; border-radius: 6px; background: #FCE9E2; color: var(--warm-ink); font: 500 11px/1.2 var(--font); vertical-align: middle; }
.chat__beta { flex: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.5; color: var(--muted); }
.chat__beta p { margin: 0; flex: 1 1 260px; }
.chat__beta a { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 3px; }
.view--chat { max-width: 960px; width: 100%; }
html.is-chat #app { display: flex; flex-direction: column; height: 100dvh; }
html.is-chat .top { flex: none; }
html.is-chat .view--chat { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-bottom: calc(var(--s4) + env(safe-area-inset-bottom)); }
html.has-detail .view--chat { max-width: 1440px; }
.chatsplit { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: var(--s4); }
.chatsplit.has-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.chatsplit .detail { position: relative; top: auto; max-height: none; height: 100%; }
.chat { min-height: 0; display: flex; flex-direction: column; padding: var(--s4); transition: box-shadow .2s; }
.chat.is-over { box-shadow: inset 0 0 0 2px var(--teal), 0 8px 32px -16px rgba(13,13,13,.14); }
.chat__head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.chat__head h2 { margin: 0; font-size: 22px; font-weight: 600; }
.chat__controls { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; min-width: 0; }
.chat__controls select { max-width: 260px; }
.chat__note { flex: none; font-size: 13px; color: var(--muted); margin: var(--s2) 0 0; }
.chat__note .linkbtn { padding: 0; min-height: 0; font-size: inherit; }
.chat__note.is-warn { color: var(--warm-ink); }
/* Kosten unter einer Paid-Antwort, leise */
.cost { margin: var(--s2) 0 0; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chat__log { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: var(--s4) 0; display: flex; flex-direction: column; gap: var(--s3); }
.chat__empty { margin: auto; text-align: center; color: var(--muted); max-width: 36ch; }
.chat__empty b { display: block; color: var(--text); font-weight: 500; margin-bottom: 4px; }
.chat__new { gap: 6px; }
.chat__new svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.chat__new .is-narrow { display: none; }
.chat__long { margin: var(--s3) auto 0; text-align: center; font-size: 12px; color: var(--muted); max-width: 46ch; }
.chat__long .btn { margin-top: var(--s2); }
.msg { max-width: 80%; padding: 12px 16px; border-radius: 20px; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg--user { align-self: flex-end; background: var(--text); color: #fff; border-bottom-right-radius: 4px; }
.msg--bot { align-self: flex-start; max-width: min(100%, 76ch); background: rgba(255,255,255,.8); border-bottom-left-radius: 4px; white-space: normal; }
.msg--bot.is-thinking { color: var(--muted); font-style: italic; }
.msg--bot.is-thinking .md { animation: pulse 1.6s ease-in-out infinite; }
.msg--err { align-self: flex-start; background: rgba(232,105,74,.12); color: var(--danger); }
@keyframes pulse { 50% { opacity: .45; } }
/* Rückfall bei leerem Cloudflare-Kontingent: eine leise Zeile über der Antwort */
.fb { display: flex; align-items: baseline; gap: 6px; margin: 0 0 var(--s2); font-size: 12px; color: var(--muted); font-style: normal; }
.fb::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--warm); transform: translateY(-1px); }
.fb + .srcs { margin-top: 0; padding-top: 0; border-top: 0; }
.fb__go { margin-top: var(--s3); }
.msg__files { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; white-space: normal; }
.msg__files.is-solo { margin-bottom: 0; }
.fchip { display: inline-block; max-width: 100%; padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fchip b { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
/* Markdown in Antworten */
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p, .md ul, .md ol, .md blockquote, .md pre, .md-table { margin: 0 0 10px; }
.md h2, .md h3, .md h4, .md h5 { margin: 16px 0 6px; font-weight: 600; line-height: 1.3; }
.md h2 { font-size: 18px; } .md h3 { font-size: 16px; } .md h4 { font-size: 15px; } .md h5 { font-size: 14px; color: var(--muted); }
.md ul, .md ol { padding-left: 22px; }
.md li { margin: 3px 0; }
.md li > ul, .md li > ol { margin: 3px 0 0; }
.md li > p { margin: 4px 0; }
.md li::marker { color: var(--teal-dark); }
.md strong { font-weight: 600; }
.md a { color: var(--teal-dark); text-underline-offset: 2px; }
.md code { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface); padding: 1px 6px; border-radius: 6px; }
.md pre { background: var(--surface); border-radius: 12px; padding: 12px 14px; overflow-x: auto; white-space: pre; overflow-wrap: normal; }
.md pre code { background: none; padding: 0; }
.md blockquote { padding: 2px 0 2px 12px; border-left: 3px solid var(--teal); color: var(--muted); }
.md hr { border: 0; border-top: 1px solid var(--surface-2); margin: 14px 0; }
.md-table { overflow-x: auto; max-width: 100%; }
.md table { border-collapse: collapse; min-width: 100%; font-size: 14px; overflow-wrap: normal; }
.md th, .md td { border: 1px solid var(--surface-2); padding: 6px 10px; text-align: left; vertical-align: top; }
.md th { background: rgba(237,234,229,.7); font-weight: 600; }
.md td { font-variant-numeric: tabular-nums; }
.md .al-r { text-align: right; white-space: nowrap; } .md .al-c { text-align: center; }
/* Quellen unter der Antwort */
.srcs { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--surface-2); }
.srcs .label { margin: 0 0 4px; }
.srcs ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; }
.src { display: flex; align-items: flex-start; gap: 8px; width: calc(100% + 12px); min-width: 0; margin: 0 -6px; padding: 4px 6px; border: 0; border-radius: 8px; background: none; text-align: left; font-size: 12px; line-height: 1.45; color: var(--muted); cursor: pointer; font-style: normal; }
.src:hover { background: rgba(37,168,171,.08); }
.src__n { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--surface-2); font-size: 11px; font-weight: 600; }
.src.is-cited .src__n { background: var(--teal-dark); color: #fff; box-shadow: none; }
.src__b { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.src__t { flex: 0 1 auto; max-width: 60%; min-width: 0; color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src__s { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Angeheftetes und Anhänge über dem Eingabefeld */
.chat__pins { flex: none; display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: var(--s2); }
.pin { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: min(100%, 320px); height: 32px; padding: 0 2px 0 12px; border-radius: 999px; background: rgba(37,168,171,.12); color: var(--teal-dark); font-size: 13px; }
.pin__k { flex: none; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.pin__t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pin small { flex: none; color: var(--muted); font-size: 12px; }
.pin img { flex: none; width: 22px; height: 22px; margin-left: -6px; border-radius: 6px; object-fit: cover; }
.pin button { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: inherit; font-size: 17px; line-height: 1; cursor: pointer; }
.pin button:hover { background: rgba(13,13,13,.07); }
.pin--file { background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px var(--surface-2); color: var(--text); }
.pin--file .pin__k { color: var(--muted); }
.pin.is-reading small { animation: pulse 1.6s ease-in-out infinite; }
.pin.is-off { opacity: .5; }
/* Moduswechsel direkt über dem Eingabefeld */
.chat__mode { flex: none; display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; padding: 0 0 var(--s2); }
.seg--mode button { padding: 6px 18px; }
.seg--mode button[aria-pressed="true"] { background: var(--text); color: #fff; box-shadow: none; }
.seg--mode button[data-cm="backlog"][aria-pressed="true"] { background: var(--teal-dark); }
.chat__modehint { margin: 0; font-size: 13px; color: var(--muted); min-width: 0; }
.chat__modehint b { font-weight: 500; color: var(--text); }
.chat__form { flex: none; display: flex; gap: var(--s2); align-items: flex-end; }
.chat__form textarea { flex: 1; min-width: 0; resize: none; border: 1px solid var(--surface-2); background: rgba(255,255,255,.85); border-radius: 20px; padding: 12px 16px; max-height: 200px; outline: none; font-size: 16px; }
.chat__form textarea:focus { border-color: var(--teal-dark); box-shadow: 0 0 0 1px var(--teal-dark); }
.chat__attach { width: 44px; height: 44px; box-shadow: inset 0 0 0 1px var(--surface-2); }
.chat__attach svg { width: 20px; height: 20px; stroke-width: 1.8; }
.chat__send svg { display: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Status: Kartenraster wie früher */
.status { display: grid; gap: var(--s5); max-width: 1040px; margin: 0 auto; }
.status section { min-width: 0; }
.status h2 { font-size: 22px; font-weight: 600; margin: 0 0 var(--s3); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s3); }
.card { padding: var(--s4); min-width: 0; }
.card h3 { margin: 0 0 var(--s1); font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.card p { margin: 0 0 var(--s2); font-size: 14px; color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card .btn { margin-top: var(--s2); }
.card .note { margin-top: var(--s2); }
.card--wide { grid-column: 1 / -1; }
.num { font-size: 32px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.num small { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.bar { position: relative; height: 6px; border-radius: 999px; background: var(--surface-2); margin: var(--s2) 0; }
.bar i { display: block; height: 100%; background: var(--teal); border-radius: 999px; transition: width .6s var(--ease); }
.bar.warn i { background: var(--warm); }
.bar b { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--muted); opacity: .55; }
.use { margin: 0 0 var(--s3); }
.use:last-child { margin-bottom: 0; }
.use p { margin: 0; }
.use .use__line { color: var(--text); font-size: 14px; }
.use .bar { margin: 6px 0; }
.banner { padding: var(--s4); border-radius: var(--radius); font-size: 14px; display: flex; gap: var(--s3); align-items: flex-start; }
.banner .dot { width: 10px; height: 10px; margin: 7px 0 0; }
.banner p { margin: 0; }
.banner p.lead { font-size: 17px; font-weight: 500; line-height: 1.45; }
.banner p + p { margin-top: 4px; color: var(--muted); }
/* Stand der Zahlen und Neu laden, leise unter dem Satz oben im Status */
.banner p.stand { margin-top: 2px; font-size: 12px; color: var(--muted); }
.stand .linkbtn { padding: 0; min-height: 0; font-size: inherit; }
.banner--warn { background: rgba(232,105,74,.10); border: 1px solid rgba(232,105,74,.3); }
.banner h3 { margin: 0 0 var(--s2); font-size: 16px; font-weight: 600; }
.banner ol { margin: var(--s2) 0 0; padding-left: 20px; } .banner li { margin-bottom: var(--s1); }
.banner code, .status code { background: rgba(255,255,255,.7); padding: 1px 6px; border-radius: 6px; font-size: 13px; overflow-wrap: anywhere; }
.drop { border: 1.5px dashed var(--surface-2); border-radius: 20px; padding: var(--s4); text-align: center; color: var(--muted); font-size: 14px; cursor: pointer; }
.drop.is-over { border-color: var(--teal); background: rgba(37,168,171,.08); }
.check { display: flex; gap: var(--s2); align-items: center; font-size: 14px; color: var(--muted); margin: 0 0 var(--s1); }
/* Postfach-Karte: Sicherungspunkt klein, darunter Sichern und Aufräumen (klappt auf) */
.card .box__sp { font-size: 12px; }
.box__acts { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.card .box__acts .btn { margin-top: 0; }
.btn--ghost[aria-expanded="true"] { background: rgba(255,255,255,.7); }
.box__clean { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line); }
.box__clean .btn--wrap { white-space: normal; text-align: left; justify-content: flex-start; border-radius: 18px; max-width: 100%; line-height: 1.35; }
.warnline { color: var(--warm-ink) !important; }
/* Passkeys: Liste in der Karte */
.boxes { list-style: none; margin: var(--s2) 0 0; padding: 0; }
.boxes li { display: grid; grid-template-columns: auto 1fr auto; gap: 2px var(--s3); align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.boxes .dot { grid-row: 1 / span 2; align-self: start; margin: 8px 0 0; }
.boxes b { font-weight: 500; overflow-wrap: anywhere; }
.boxes small { grid-column: 2; font-size: 13px; color: var(--muted); }
.boxes .btn { grid-column: 3; grid-row: 1 / span 2; margin: 0; }

/* Hinweis nach der Code-Anmeldung: Passkey anlegen */
.nudge { position: fixed; z-index: 25; left: var(--outer); bottom: calc(var(--s4) + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: var(--s2) var(--s3); max-width: min(560px, calc(100vw - 2 * var(--outer))); padding: 10px 8px 10px 20px; border-radius: 20px; background: rgba(255,255,255,.85); font-size: 14px; }
.nudge p { margin: 0; }
.nudge .iconbtn { width: 36px; height: 36px; }
html.is-chat .nudge { display: none; }
.toast { position: fixed; left: 50%; bottom: calc(var(--s4) + env(safe-area-inset-bottom)); transform: translateX(-50%); width: max-content; display: flex; align-items: center; gap: var(--s3); background: var(--text); color: #fff; padding: 12px 24px; border-radius: 999px; font-size: 14px; z-index: 40; max-width: calc(100vw - 32px); box-shadow: 0 12px 40px -12px rgba(0,0,0,.4); }
.toast button { border: 0; background: none; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 4px 0; white-space: nowrap; }
html.is-chat .toast { bottom: calc(120px + env(safe-area-inset-bottom)); }
.spin { display: inline-block; flex: none; width: 14px; height: 14px; border: 2px solid var(--surface-2); border-top-color: var(--teal-dark); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Unter 1024 px: Mail und Datei als Vollbild mit klebender Leiste, die Seite dahinter steht still */
@media (max-width: 1023px) {
  :root { --outer: 32px; }
  .split.has-detail, .split.is-media.has-detail, .chatsplit.has-detail { grid-template-columns: minmax(0, 1fr); }
  .detail, .chatsplit .detail { position: fixed; inset: 0; z-index: 30; height: auto; max-height: none; border: 0; border-radius: 0; box-shadow: none; background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0 var(--s4) var(--s5); }
  .detail__bar { margin: 0 calc(-1 * var(--s4)) var(--s3); padding: max(10px, env(safe-area-inset-top)) var(--s4) 10px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .detail__close .is-wide { display: none; }
  .detail__close .is-narrow { display: inline; }
  html.has-detail, html.has-detail body { overflow: hidden; }
  .pv__img { max-height: 60vh; }
}
@media (max-width: 767px) {
  :root { --outer: 16px; --radius: 20px; }
  .top { grid-template-columns: minmax(0, 1fr) auto; row-gap: var(--s2); padding-top: max(var(--s2), env(safe-area-inset-top)); padding-bottom: var(--s2); position: static; background: none; }
  .top__logo .label { display: none; }
  .tabs { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; }
  .tabs a { flex: 1; text-align: center; padding: 8px; }
  .who #userMail { display: none; }
  .who__zoho { font-size: 12px; }
  .view { padding-top: var(--s3); }
  .search { padding-top: var(--s4); }
  .claim--hero { font-size: 30px; padding-bottom: var(--s4); }
  .search__bar { padding-left: var(--s3); padding-right: 6px; }
  .search__bar input { font-size: 16px; padding: 10px 6px; }
  .search__bar .iconbtn { width: 36px; height: 36px; }
  .deep { min-width: 0; padding: 10px 14px; min-height: 40px; }
  .modes { margin-top: var(--s3); }
  /* Filter auf dem Handy eingeklappt, damit die Treffer oben bleiben */
  .chip--toggle { display: inline-flex; }
  .filterarea:not(.is-open) { display: none; }
  .filters { justify-content: flex-start; gap: 6px; }
  .chip { padding: 6px 12px; min-height: 34px; }
  .chip--select { padding-right: 28px; background-position: right 10px center; max-width: 100%; }
  .chip--drop { padding-right: 28px; background-position: right 10px center; }
  .chip--round { width: 34px; padding: 0; }
  .panel { padding: var(--s3); }
  .period { grid-template-columns: 1fr 1fr; }
  .cond { flex-wrap: wrap; gap: 6px; padding-bottom: var(--s2); border-bottom: 1px solid var(--line); }
  .cond:last-child { padding-bottom: 0; border-bottom: 0; }
  .cond select { flex: 1; }
  .cond .input[type="text"] { order: 3; flex-basis: 100%; }
  .split { margin-top: var(--s4); }
  .item { padding: var(--s3); }
  .answer { padding: var(--s3); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
  .tile__cap { padding: 6px 10px 8px; }
  .tile__ext { font-size: 16px; }
  .detail, .chatsplit .detail { padding: 0 var(--s3) var(--s5); }
  .detail__bar { margin: 0 calc(-1 * var(--s3)) var(--s3); padding-left: var(--s2); padding-right: var(--s2); }
  html.is-chat .view--chat { padding: var(--s2) var(--outer) calc(var(--s2) + env(safe-area-inset-bottom)); }
  .chat { padding: var(--s3) 12px 12px; }
  .chat__head h2 { display: none; }
  .chat__controls { width: 100%; flex-wrap: nowrap; gap: 6px; }
  .chat__controls .seg button { padding: 4px 10px; font-size: 12px; min-height: 30px; }
  .chat__controls select { flex: 1 1 0; min-width: 0; max-width: none; padding: 6px 26px 6px 10px; font-size: 12px; min-height: 32px; }
  .chat__controls .btn--small { padding: 6px 12px; min-height: 32px; font-size: 12px; }
  .chat__new .is-wide { display: none; }
  .chat__new .is-narrow { display: inline; }
  .chat__log { padding: var(--s3) 0; }
  .msg { max-width: 92%; }
  .msg--bot { max-width: 100%; }
  .chat__mode { gap: 4px var(--s2); }
  .seg--mode button { padding: 5px 14px; }
  .chat__modehint { font-size: 12px; }
  .chat__form .chat__send { width: 44px; padding: 0; }
  .chat__send svg { display: block; }
  .chat__send span { display: none; }
  .chat__pins { flex-wrap: wrap; }
  .pin { max-width: 100%; }
  .src__b { flex-direction: column; gap: 0; align-items: stretch; }
  .src__t { max-width: none; }
  .src__s { flex: none; }
  html.is-chat .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .status { gap: var(--s4); }
  .status h2 { font-size: 20px; }
  .card { padding: var(--s3) var(--s4) var(--s4); }
  .banner { padding: var(--s3); }
  .banner p.lead { font-size: 16px; }
  .boxes li { grid-template-columns: auto 1fr; }
  .boxes .btn { grid-column: 2; grid-row: auto; justify-self: start; margin-top: var(--s2); }
  .box__acts .btn, .box__clean .btn { min-height: 44px; }
  .box__clean .check { min-height: 44px; margin: 0; }
  .login__card { padding: var(--s5) var(--s4); }
  .nudge { right: var(--outer); max-width: none; grid-template-columns: 1fr auto; padding: 12px 8px 14px 16px; }
  .nudge .btn { grid-row: 2; grid-column: 1; justify-self: start; }
  .nudge .iconbtn { grid-row: 1; grid-column: 2; }
}
@media (max-width: 359px) {
  .top__logo img { height: 15px; }
  .top__user .btn--small { padding: 6px 12px; }
}

/* ---------- Kontakte ---------- */
/* Kontaktkarten (kontakte.js): klein und dicht, Foto oder Initialen auf neutralem Grund. Ausgewählt schwarz,
   Teal nur für die Hauptaktion. Schriftgrößen 11 bis 16, Radien 999px, 12px, 20px. */
.kc-av { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; overflow: hidden; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; line-height: 1; }
.kc-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kc-av--s { width: 20px; height: 20px; font-size: 11px; }
.kc-av--l { width: 48px; height: 48px; font-size: 16px; }
.kc-av svg { width: 62%; height: 62%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.kc-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 400; line-height: 18px; vertical-align: 1px; white-space: nowrap; }
.kc-dim { color: var(--subtle); }
.kc-tag--on { background: rgba(37,168,171,.14); color: var(--teal-ink); }
.kc-mini__b { flex: 1; min-width: 0; display: grid; }
.kc-mini__n { font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-mini__s { font-size: 12px; line-height: 1.4; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Zeile "Kontakte" über den Suchtreffern */
.kc-row { margin: 0 0 var(--s3); }
.kc-row .label { margin-bottom: var(--s2); }
.kc-row__l { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.kc-mini { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 12px 8px 8px; border: 1px solid rgba(255,255,255,.7); border-radius: 12px; background: rgba(255,255,255,.42); text-align: left; cursor: pointer; transition: background .2s, box-shadow .2s; }
.kc-mini:hover { background: rgba(255,255,255,.75); }
.kc-mini[aria-expanded="true"] { background: #fff; box-shadow: inset 0 0 0 1.5px var(--text); }

/* Absender in der Mail */
.kc-from { display: flex; align-items: flex-start; gap: 10px; max-width: 100%; margin: -4px 0 2px -4px; padding: 4px 10px 4px 4px; border: 0; border-radius: 12px; background: none; text-align: left; cursor: pointer; font-size: 13px; line-height: 1.45; }
.kc-from:hover, .kc-from[aria-expanded="true"] { background: rgba(255,255,255,.7); }
.kc-from .kc-av { margin-top: 2px; }
.kc-from__b { min-width: 0; overflow-wrap: anywhere; }
.kc-from__n { font-weight: 500; }
.kc-from__o, .kc-from__e { color: var(--muted); }
.kc-from__e { display: block; }
.kc-name { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--surface-2); text-underline-offset: 3px; }
.kc-name:hover, .kc-name[aria-expanded="true"] { text-decoration-color: currentColor; }

/* Karte (Popover und "Deine Karte") */
.kc-card { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.kc-card__b { flex: 1; min-width: 0; }
.kc-card .kc-card__n { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--text); overflow-wrap: anywhere; }
.kc-card .kc-card__o { margin: 2px 0 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.kc-card__l { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; line-height: 1.5; }
.kc-card__l li { overflow-wrap: anywhere; }
.kc-card__l a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--surface-2); }
.kc-card__l .kc-card__st { color: var(--muted); }

/* Popover am Element, auf dem Handy als Blatt von unten */
.kc-pop { position: fixed; z-index: 35; top: 0; left: 0; width: min(340px, calc(100vw - 16px)); padding: var(--s3); border: 1px solid rgba(255,255,255,.7); border-radius: 20px; background: #fff; box-shadow: 0 1px 3px rgba(13,13,13,.06), 0 16px 48px -16px rgba(13,13,13,.3); }
.kc-pop:focus { outline: none; }
.kc-pop__acts { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.kc-pop__acts .btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.kc-pop--sheet { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 85dvh; overflow-y: auto; overscroll-behavior: contain; padding: var(--s2) var(--s3) calc(var(--s3) + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; animation: kc-up .25s var(--ease); }
.kc-pop--sheet .kc-pop__acts .btn { flex: 1 1 auto; min-height: 44px; }
.kc-pop__grip { display: block; width: 36px; height: 4px; margin: 0 auto var(--s3); border-radius: 999px; background: var(--surface-2); }
.kc-scrim { position: fixed; inset: 0; z-index: 34; background: rgba(13,13,13,.28); animation: kc-fade .2s; }
@keyframes kc-up { from { transform: translateY(100%); } }
@keyframes kc-fade { from { opacity: 0; } }

/* Auswahlfeld in den Bedingungen */
.kc-fchips { display: contents; }
.kc-pick { flex: 1; min-width: 0; position: relative; }
.cond--kc { min-width: 0; } /* die Marke mit langer Adresse kürzt, statt die Zeile zu verbreitern */
.kc-cb { position: relative; }
.kc-cb__in::-webkit-search-cancel-button { -webkit-appearance: none; }
.kc-lb, .kc-sug { position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; right: 0; max-height: min(392px, 60vh); overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 4px; list-style: none; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(13,13,13,.08), 0 16px 40px -16px rgba(13,13,13,.3); }
.kc-opt { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 10px 6px 6px; border-radius: 12px; cursor: pointer; }
.kc-opt:hover { background: var(--surface); }
.kc-opt[aria-selected="true"] { background: var(--text); }
.kc-opt[aria-selected="true"] .kc-mini__n { color: #fff; }
.kc-opt[aria-selected="true"] .kc-mini__s, .kc-opt[aria-selected="true"] .kc-opt__n, .kc-opt[aria-selected="true"] .kc-dim { color: rgba(255,255,255,.72); }
.kc-opt[aria-selected="true"] .kc-tag { background: rgba(255,255,255,.16); color: #fff; }
.kc-opt__n { flex: none; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.kc-lb__note { padding: 8px 10px; font-size: 13px; color: var(--muted); }
.kc-token { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; min-height: 40px; padding: 6px 14px 6px 10px; border: 1px solid var(--surface-2); border-radius: 12px; background: rgba(255,255,255,.85); text-align: left; cursor: pointer; font-size: 14px; }
.kc-token:hover { border-color: var(--muted); }
.kc-token__n { flex: 0 1 auto; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-token__e { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Vorschläge unter dem Suchfeld: über den Treffern, unter der Kopfzeile (z-index 20) */
.search__bar.has-sug { position: relative; z-index: 19; }
.kc-sug { top: calc(100% + 6px); left: 12px; right: 12px; max-height: min(320px, 50vh); }
.kc-sug .kc-opt { padding: 8px 8px 8px 8px; }
.kc-sug__f { flex: none; margin-left: 2px; padding: 3px 10px; border: 1px solid var(--surface-2); border-radius: 999px; background: #fff; color: var(--text); font: inherit; font-size: 12px; line-height: 18px; cursor: pointer; }
.kc-sug__f:hover { border-color: var(--text); }
.kc-opt[aria-selected="true"] .kc-sug__f { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }

/* Status: Deine Karte und Zoho-Kontakte */
#kcMine .kc-card { margin: var(--s2) 0 var(--s1); }
.card .kc-note { margin-top: var(--s2); font-size: 13px; }
.kc-zl { list-style: none; margin: var(--s2) 0; padding: 0; font-size: 13px; }
.kc-zl li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.kc-zl .dot { margin: 0; }
.kc-zl small { font-size: 13px; color: var(--muted); }
.kc-form { display: grid; gap: var(--s2); margin-top: var(--s2); }
.kc-form .input { min-height: 40px; padding: 7px 12px; border-radius: 12px; }
.kc-form .error { margin: 0; }
.kc-form__acts { display: flex; flex-wrap: wrap; gap: var(--s2); }
.card .kc-form__acts .btn { margin-top: 0; }

@media (max-width: 767px) {
  .kc-row__l { display: flex; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 calc(-1 * var(--outer)); padding: 0 var(--outer) 2px; scroll-padding: 0 var(--outer); scrollbar-width: none; }
  .kc-row__l::-webkit-scrollbar { display: none; }
  .kc-row__l .kc-mini { flex: 0 0 auto; width: min(240px, 76vw); scroll-snap-align: start; }
  .cond .kc-pick { order: 3; flex-basis: 100%; }
  .kc-sug { left: 0; right: 0; }
  .kc-sug .kc-opt__n { display: none; }
}

/* ---------- Lokal sichern (sichern.js) ---------- */
/* Banner mit Knopf oben im Status, Karte "Speicher", Ansicht #sichern. Bausteine wie im Status: Karten, Balken, Chips. */
.banner__acts { margin-top: var(--s3); }
.banner__acts .btn { margin: 0; }
.sichern { max-width: 760px; }
.sp-intro { margin: 0 0 var(--s3); font-size: 14px; color: var(--muted); }
.sp-cards { display: grid; gap: var(--s3); }
.sp-cfg .chips { margin: var(--s2) 0 var(--s3); }
.card .sp-range, .card .sp-line { color: var(--text); }
.sp-pick { list-style: none; margin: 0 0 var(--s2); padding: 0; max-height: 380px; overflow: auto; border-top: 1px solid var(--line); }
.sp-pick li { border-bottom: 1px solid var(--line); }
.sp-pick .check { margin: 0; padding: 6px 0; min-height: 44px; flex-wrap: wrap; gap: 2px var(--s2); color: var(--text); cursor: pointer; }
.sp-pick .check input { flex: none; width: 18px; height: 18px; accent-color: var(--teal-dark); }
.sp-pick .check small { margin-left: auto; font-size: 13px; color: var(--muted); }
.sp-list { list-style: none; margin: var(--s2) 0 var(--s3); padding: 0; font-size: 14px; }
.sp-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 2px var(--s3); align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); }
.sp-list small { font-size: 13px; color: var(--muted); }
.sp-list b { font-size: 13px; font-weight: 500; color: var(--muted); }
.sp-list b.is-ok { color: var(--teal-dark); }
.sp-list b.is-warn { color: var(--warm-ink); }
.sp-mon, .sp-miss { margin: var(--s2) 0; font-size: 14px; }
.sp-mon summary, .sp-miss summary { cursor: pointer; color: var(--muted); padding: 4px 0; }
.sp-mon .sp-list { margin-bottom: 0; }
.sp-miss ul { margin: var(--s2) 0 0; padding-left: 20px; color: var(--muted); }
.sp-miss li { margin-bottom: 4px; overflow-wrap: anywhere; }
.sp-miss b { font-weight: 500; color: var(--text); }
.sp-del, .sp-confirm { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line); }
#spaceCard .box__sp { margin-top: var(--s2); }
.sp-del .btn--wrap { white-space: normal; text-align: left; max-width: 100%; line-height: 1.35; border-radius: 18px; }
@media (max-width: 767px) {
  .sp-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .sp-list small { grid-column: 1; grid-row: 2; }
  .sp-list b { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .sp-cards .btn, #spaceCard .btn, .banner__acts .btn { min-height: 44px; }
}

/* ---------- Chat: Regler und Gegenprüfung (06.10.2026) ---------- */
/* Regler Schnell bis Akkurat neben dem Schalter Chat/Backlog, die Hinweiszeile nennt die Stufe. Im Modus Chat ausgegraut.
   Unter der Antwort leise Zeilen wie der Rückfall-Hinweis (.fb): grün geprüft, petrol korrigiert, grau ohne Ergebnis.
   Widerspruch: dezenter Kasten in Bernstein, [n] wie ein Zitat. Zeitraum aus dem Kopf als leise Zeile über den Quellen. */
.chat__depth { flex: 0 1 232px; min-width: 150px; display: grid; }
.chat__depth.is-off { opacity: .45; }
.chat__depth input { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 20px; margin: 0; padding: 0; background: transparent; cursor: pointer; --fill: 50%; }
.chat__depth input[disabled], .chat__depth-marks [disabled] { opacity: 1; }
.chat__depth input:focus-visible { outline: none; }
.chat__depth input::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: linear-gradient(var(--teal-dark), var(--teal-dark)) 0 0 / var(--fill) 100% no-repeat, var(--surface-2); }
.chat__depth input::-moz-range-track { height: 4px; border-radius: 999px; background: var(--surface-2); }
.chat__depth input::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--teal-dark); }
.chat__depth input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin-top: -7px; border: 0; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 5px var(--teal-dark), 0 1px 3px rgba(13,13,13,.18); transition: box-shadow .15s; }
.chat__depth input::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 5px var(--teal-dark), 0 1px 3px rgba(13,13,13,.18); }
.chat__depth input:focus-visible::-webkit-slider-thumb { box-shadow: inset 0 0 0 5px var(--teal-dark), 0 0 0 4px rgba(22,117,120,.25); }
.chat__depth input:focus-visible::-moz-range-thumb { box-shadow: inset 0 0 0 5px var(--teal-dark), 0 0 0 4px rgba(22,117,120,.25); }
.chat__depth-marks { display: grid; grid-template-columns: 1fr auto 1fr; }
.chat__depth-marks button { border: 0; background: none; padding: 0; font-size: 11px; line-height: 16px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.chat__depth-marks button:first-child { justify-self: start; }
.chat__depth-marks button:last-child { justify-self: end; }
.chat__depth-marks button:hover:not([disabled]) { color: var(--text); }
.chat__depth-marks button.is-on { color: var(--text); font-weight: 500; }

.chk-slot:empty { display: none; }
.chk { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); font-style: normal; }
.chk::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #A8A29A; transform: translateY(-1px); }
.chk + .chk { margin-top: 4px; }
.chk--ok { color: #2B6E48; }
.chk--ok::before { background: #3C9A64; }
.chk--fix { color: var(--teal-ink); }
.chk--fix::before { background: var(--teal); }
.chk--wait { animation: pulse 1.6s ease-in-out infinite; }
.chk--wait::before { background: var(--teal); }
.chk--warn { display: block; margin-top: 12px; padding: 10px 14px 12px; border: 1px solid rgba(214,146,40,.3); border-radius: 14px; background: rgba(236,163,52,.1); color: var(--text); font-size: 13px; }
.chk--warn::before { content: none; }
.chk__h { display: flex; align-items: baseline; gap: 6px; margin: 0; font-weight: 600; color: #84500F; }
.chk__h::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #E0A13A; transform: translateY(-1px); }
.chk__l { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.chk__l li + li { padding-top: 8px; border-top: 1px solid rgba(214,146,40,.22); }
.chk__l p { margin: 0; }
.chk__c { font-weight: 500; }
.chk__nb { white-space: nowrap; }
.chk__k { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #84500F; }
.chk__q { margin-top: 2px !important; color: var(--muted); font-style: italic; }
.chk__f { margin-top: 2px !important; }
.chk__by { margin-top: 2px !important; font-size: 12px; color: var(--muted); }
.chk__redo { margin-top: 10px; }
.chk-plan { margin: 12px 0 0; padding-top: 8px; border-top: 1px solid var(--surface-2); font-size: 12px; color: var(--muted); font-style: normal; }
.chk-plan + .srcs { margin-top: 2px; padding-top: 0; border-top: 0; }
.chk-trace { margin: 12px 0 0; padding-top: 8px; border-top: 1px solid var(--surface-2); font-size: 12px; color: var(--muted); font-style: normal; }
.chk-trace summary { display: block; list-style: none; cursor: pointer; border-radius: 6px; }
.chk-trace__w { display: flex; align-items: center; min-width: 0; }
.chk-trace summary::-webkit-details-marker { display: none; }
.chk-trace__w::after { content: ''; flex: none; width: 5px; height: 5px; margin: 0 4px 2px 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .15s; }
.chk-trace[open] .chk-trace__w::after { margin-bottom: -2px; transform: rotate(-135deg); }
.chk-trace summary:hover { color: var(--text); }
.chk-trace__s { flex: 0 1 auto; min-width: 4em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chk-trace__t { flex: 0 0 auto; max-width: 72%; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.chk-trace__l { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.chk-trace__l li { max-width: 100%; padding: 1px 8px; border-radius: 999px; background: var(--surface); color: var(--text); overflow-wrap: anywhere; }
.chk-trace__z { margin: 4px 0 0; }
.chk-trace + .srcs { margin-top: 2px; padding-top: 0; border-top: 0; }
.chk-sec { margin-left: 6px; font-size: 12px; font-variant-numeric: tabular-nums; }
@media (pointer: coarse) {
  .chat__depth input { height: 26px; }
  .chat__depth input::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -9px; box-shadow: inset 0 0 0 6px var(--teal-dark), 0 1px 3px rgba(13,13,13,.18); }
  .chat__depth input::-moz-range-thumb { width: 22px; height: 22px; }
}
@media (max-width: 767px) {
  .chat__mode .seg--mode button { padding: 5px 12px; }
  .chat__depth { flex: 1 1 160px; min-width: 160px; }
  .chat__mode .chat__modehint { flex-basis: 100%; }
  .chk--warn { padding: 10px 12px 12px; }
}
