/* ===== Erstantwort design layer 0.7 =====
   One system on top of style.css: a single header, three button tiers, sentence-case labels,
   inset grouped lists and the "waiting clock" on the inbox. Colours still come from the
   Telegram theme (--tg-theme-*); only the HOT/WARM/COLD scale is ours. Loaded after style.css. */

:root {
  --gap: 16px;
  --r: 14px;
  --r-sm: 12px;
  --tap: 44px;
  --btn-soft: color-mix(in srgb, var(--btn) 12%, transparent);
  --hot-line: #e4572e;
  --warm-line: #d99a1e;
  --cold-line: #8a93a6;
  --shadow: none;
  --ring: 0 0 0 3px color-mix(in srgb, var(--btn) 35%, transparent);
}
html[data-theme="dark"] { --shadow: none; }

/* --- numbers line up: times, counts, money --- */
.time, .wait, .fnum, .hd-count, .an-stats b, .fact b, .tabs .bd, .day b { font-variant-numeric: tabular-nums; }

/* --- demo strip: quieter, one line --- */
#app .demo { font-size: 12px; padding: 6px 16px 2px; letter-spacing: 0; }

/* --- one header for every main screen --- */
#app .hd { padding: 10px var(--gap) 6px; }
#app .hd h1 { font-size: 28px; font-weight: 750; letter-spacing: -.025em; gap: 6px; }
#app .hd-count { font-size: 28px; font-weight: 500; color: var(--hint); letter-spacing: -.02em; }
#app .hd p { font-size: 14px; margin-top: 2px; }
#app .hd-tools { display: flex; align-items: center; gap: 8px; }
#app .hd-ico { width: var(--tap); height: var(--tap); border-radius: 50%; display: grid; place-items: center; background: var(--sec); box-shadow: none; }
#app .backrow { padding: 6px 8px 0; min-height: var(--tap); display: flex; align-items: center; }
#app .back { min-height: var(--tap); display: inline-flex; align-items: center; padding: 0 8px; font-size: 16px; font-weight: 500; }
#app .langsw { box-shadow: none; background: var(--bg2); }
#app .langsw button { min-height: 32px; min-width: 40px; }

/* --- section labels: sentence case, never shouted --- */
#app .section-label, #app .fact small, #app .card.answer .bh .lbl,
#app .card.answer .slots .lbl, #app .optimes .lbl, #app .propcard small, #app .nextaction small, #app #scoreWhy small {
  text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: var(--hint);
}
#app .section-label { padding: 22px calc(var(--gap) + 4px) 8px; margin: 0; }

/* --- surfaces: flat grouped lists, no floating shadows --- */
#app .card, #app .folder, #app .fact, #app .optcard, #app .propcard, #app .seg { box-shadow: none; }
#app .card { margin-inline-start: var(--gap); margin-inline-end: var(--gap); border-radius: var(--r); }

/* --- buttons: primary / secondary / text, all reachable with a thumb --- */
#app .btn { min-height: 50px; padding: 13px 16px; border-radius: var(--r-sm); font-weight: 650; font-size: 16px; letter-spacing: -.005em;
  display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform .12s ease, filter .12s ease; }
#app .btn.sm { min-height: 40px; padding: 8px 14px; font-size: 15px; }
#app .btn.sec { background: var(--btn-soft); color: var(--btn); }
#app .btn.danger, #app .btn.ghost { background: transparent; color: var(--danger); min-height: var(--tap); }
#app .btn:active, #app .iconbtn:active, #app .item:active { transform: scale(.98); }
#app .btn:disabled { opacity: .45; transform: none; }
#app a:focus-visible, #app button:focus-visible, #app input:focus-visible, #app select:focus-visible, #app textarea:focus-visible { outline: none; box-shadow: var(--ring); }
#app .iconbtn { min-width: var(--tap); min-height: var(--tap); border-radius: 50%; }
#app .link { min-height: 32px; display: inline-flex; align-items: center; }

/* --- inbox: two folders --- */
#app .folders { margin: 10px var(--gap) 4px; gap: 10px; }
#app .folder { min-height: 0; padding: 12px 14px; border-radius: var(--r); background: var(--sec); }
#app .folder .fico { display: none; }
#app .folder b { margin: 0; font-size: 15px; font-weight: 650; padding-inline-end: 34px; }
#app .folder small { font-size: 12.5px; margin-top: 2px; }
#app .folder .fnum { top: 10px; inset-inline-end: 14px; font-size: 22px; font-weight: 700; }
#app .folder.processed .fnum { color: var(--btn); }

/* --- filter: plain segmented control --- */
#app .seg { margin: 12px var(--gap) 10px; background: color-mix(in srgb, var(--text) 7%, transparent); border-radius: 10px; padding: 2px; }
#app .seg button { min-height: 34px; padding: 6px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; }
#app .seg button.on { background: var(--sec); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.12); }

/* --- inbox rows: urgency edge + waiting clock --- */
#app .card.list .item { min-height: 64px; padding: 11px 14px 11px 16px; border-bottom: 0; }
#app .card.list .item + .item::before { inset-inline-start: 64px; }
#app .card.list .item::after { content: ""; position: absolute; inset-inline-start: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: transparent; }
#app .card.list .item.u-HOT::after { background: var(--hot-line); }
#app .card.list .item.u-WARM::after { background: var(--warm-line); }
#app .item .av { width: 38px; height: 38px; font-size: 15px; }
#app .item .t { font-size: 16px; font-weight: 650; gap: 6px; }
#app .item .t .g { font-size: 12px; padding: 2px 7px; letter-spacing: .03em; }
#app .item .s { font-size: 13.5px; }
#app .item .r { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; max-width: 96px; }
#app .item .r .time { font-size: 12.5px; color: var(--hint); }
#app .item .wait { font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--text); line-height: 1.15; }
#app .item.u-HOT .wait { color: var(--hot); }
#app .item.u-WARM .wait { color: var(--warm); }
#app .item .wait small { display: block; font-size: 12px; font-weight: 500; color: var(--hint); letter-spacing: 0; }
#app .item .state { font-size: 12px; font-weight: 600; padding: 0; background: none; }
#app .item .state.wait { padding: 0; }
#app .item .newmsg { font-size: 12px; }
#app .sim-new { margin: 8px var(--gap) 0; width: auto; }
#app .foot.empty { padding: 32px var(--gap); text-align: center; }

/* --- lead card --- */
#app .leadhead { padding: 4px var(--gap) 8px; }
#app .thread { padding: 0 var(--gap); }
#app .facts { margin: 10px var(--gap) 0; gap: 0; background: var(--sec); border-radius: var(--r); overflow: hidden; }
#app .fact { border-radius: 0; padding: 10px 14px; background: transparent; }
#app .fact:nth-child(odd) { border-inline-end: 1px solid var(--sep); }
#app .fact:nth-child(n+3) { border-top: 1px solid var(--sep); }
#app .fact b { font-size: 15.5px; font-weight: 650; display: block; margin-top: 1px; overflow-wrap: anywhere; }
#app .nextaction { margin: 10px var(--gap) 0; border-radius: var(--r); padding: 12px 14px; border: 0;
  background: color-mix(in srgb, var(--hot-line) 12%, var(--sec)); }
#app .nextaction b { font-size: 15.5px; font-weight: 650; display: block; margin-top: 2px; }
#app #scoreWhy { padding: 12px 14px; }
#app #scoreWhy p { margin: 4px 0 0; font-size: 15px; }
#app .leadhead ~ .propcard { margin: 10px var(--gap) 0; border-radius: var(--r); }
#app .card.answer { padding: 14px; }
#app .card.answer .slots .chips, #app .optimes .chips { gap: 8px; }
#app .tslot { min-height: 40px; border-radius: 10px; padding: 8px 12px; font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
#app .vhead, #app .vsub { padding-inline-start: var(--gap); padding-inline-end: var(--gap); }
#app .vhead h2 { font-size: 20px; letter-spacing: -.015em; }
#app .optcards { padding: 0 var(--gap); gap: 10px; }
#app .optcard { border-radius: var(--r); border-width: 2px; }
#app .optcard .optmain { padding: 12px 14px; min-height: var(--tap); }
#app .optcard .rec { font-size: 12px; }

/* --- action bar above the tabs --- */
#app .actbar { padding: 10px var(--gap) 10px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
#app .actbar .sendbar .iconbtn { width: 50px; height: 50px; border-radius: var(--r-sm); }
#app .actbar .btn.go { font-size: 16px; }

/* --- tab bar --- */
#app .tabs { padding-top: 6px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
#app .tabs a { min-height: 48px; justify-content: center; font-size: 12px; }
#app .tabs .bd { background: var(--hot-line); font-weight: 700; }

/* --- viewings: date strip stays inside the screen --- */
#app .hd-sub { padding: 0 var(--gap); margin: 2px 0 0; color: var(--hint); font-size: 14px; }
#app .datescroll { scroll-padding-inline: var(--gap); }
#app .datescroll .day { min-height: 58px; border-radius: 12px; box-shadow: none; }

/* --- properties --- */
#app .queuebtn { margin: 8px var(--gap) 12px; width: auto; }
#app .proplist { padding: 0 var(--gap); display: grid; gap: 8px; }
#app .proplist .propcard { margin: 0; border-radius: var(--r); box-shadow: none; }
#app .prophead { min-height: 64px; }

/* --- settings --- */
#app .setting-row { min-height: 56px; padding: 12px 14px; }
#app .setting-row .num { display: none; }
#app .set-input, #app .set-select, #app input.set-time { min-height: var(--tap); border-radius: 10px; }

/* --- processed / confirmed rows: button never squeezes the name --- */
#app .confirmrow { flex-direction: column; align-items: stretch; gap: 0; padding: 0 14px 12px 0; }
#app .confirmrow .item { padding: 11px 0 8px 16px; }
#app .confirmrow .btn { width: auto; margin: 0 0 0 66px; min-height: 40px; font-size: 15px; border-radius: 10px; padding: 8px 14px; white-space: nowrap; }

/* grade is already in the pill and the edge: no extra dot on the avatar */
#app .card.list .item .av i { display: none; }
#app .folder b, #app .folder .folder-title { word-break: normal; overflow-wrap: normal; hyphens: manual; }
#app .team-card .foot { padding-inline-start: 0; padding-inline-end: 0; }

/* ===== Reply screen: client message → your reply → send. Context about the client sits below. ===== */
#app .waithead { margin-top: 4px; font-size: 13.5px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--hint); }
#app .waithead.u-HOT { color: var(--hot); }
#app .waithead.u-WARM { color: var(--warm); }
#app .thread .msg.in { border-radius: 18px 18px 18px 6px; }
#app .nextaction { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; padding: 10px 14px; }
#app .nextaction small { font-size: 13px; }
#app .nextaction b { font-size: 14.5px; margin: 0; display: inline; }
#app .card.answer { margin-top: 10px; }
#app .card.answer .bh .lbl { font-size: 15px; font-weight: 650; color: var(--text); }
#app .card.answer .draftmsg { background: color-mix(in srgb, var(--btn) 13%, var(--sec)); border: 0; border-radius: 18px 18px 6px 18px;
  padding: 11px 14px; font-size: 15.5px; line-height: 1.42; margin-inline-start: 18px; }
#app .card.answer .draftmsg[contenteditable="true"]:focus { box-shadow: var(--ring); outline: none; }
#app .card.answer .slots { margin-top: 14px; }
#app .card.answer .slots .btn.sec { background: transparent; min-height: 40px; margin-top: 4px; }
#app .card.answer .closes { margin-top: 10px; font-size: 12.5px; }

#app .vswitch { margin: 18px var(--gap) 0; }
#app .vswitch .vhead { padding: 0 4px 8px; }
#app .vswitch .vhead h2 { font-size: 15px; font-weight: 650; color: var(--hint); letter-spacing: 0; margin: 0; }
#app .vlist { background: var(--sec); border-radius: var(--r); overflow: hidden; }
#app .vopt { display: grid; grid-template-columns: 1fr 24px; grid-template-areas: "t k" "s k"; column-gap: 8px; row-gap: 2px; width: 100%;
  text-align: start; padding: 11px 14px; min-height: 56px; position: relative; }
#app .vopt + .vopt { border-top: 1px solid var(--sep); }
#app .vopt .vt { grid-area: t; display: flex; align-items: center; gap: 8px; font-size: 15px; }
#app .vopt .vs { grid-area: s; color: var(--hint); font-size: 13px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#app .vopt .vtick { grid-area: k; align-self: center; color: var(--btn); font-weight: 800; font-size: 17px; text-align: center; }
#app .vopt.on { background: color-mix(in srgb, var(--btn) 7%, transparent); }
#app .vopt .rec { font-size: 12px; font-weight: 650; color: var(--ok); background: var(--ok-bg); border-radius: 999px; padding: 1px 7px; }


/* quiet "what to do" line inside the reply card (replaces the coloured panel) */
#app .replyhint { margin: -2px 0 10px; font-size: 13.5px; color: var(--hint); line-height: 1.35; }

/* ===== "More" sheet: grouped actions with icons ===== */
#app .moremenu { gap: 10px; background: var(--bg2); padding: 8px 12px calc(12px + env(safe-area-inset-bottom));
  max-height: 86vh; overflow-y: auto; overscroll-behavior: contain; }
#app .moremenu .grab { margin-bottom: 2px; }
#app .mgroup { background: var(--sec); border-radius: var(--r); overflow: hidden; }
#app .menuitem { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 14px; border: 0; position: relative; font-size: 16px; }
#app .menuitem + .menuitem::before { content: ""; position: absolute; top: 0; inset-inline-start: 50px; inset-inline-end: 0; height: 1px; background: var(--sep); }
#app .menuitem .mi-ico { width: 24px; height: 24px; flex: none; color: var(--btn); display: grid; place-items: center; }
#app .menuitem .mi-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#app .menuitem.danger, #app .menuitem.danger .mi-ico { color: var(--danger); }
#app .menuitem:active { background: color-mix(in srgb, var(--text) 6%, transparent); transform: none; }
#app .menuclose { margin-top: 2px; background: var(--sec); color: var(--btn); }

/* grade badge opens "why this grade" right under the header */
#app .gradebtn { border: 0; cursor: pointer; min-height: 24px; }
#app .gradebtn[aria-expanded="true"] { box-shadow: 0 0 0 2px currentColor inset; }
#app .leadhead + #scoreWhy { margin: 0 var(--gap) 10px; }

/* --- team: colleagues list, invite link, invite screen (ui-intl/team.js) --- */
#app .team-card .tm-list { margin: 4px 0 10px; }
#app .tm-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--text) 8%, transparent); }
#app .tm-row:first-child { border-top: 0; }
#app .tm-av { flex: 0 0 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--btn-soft); color: var(--btn); }
#app .tm-av.link { font-weight: 600; }
#app .tm-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#app .tm-main b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#app .tm-main small { font-size: 13px; color: var(--hint); }
#app .tm-act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
#app .tm-act .btn.sm { width: auto; padding: 6px 10px; min-height: 32px; }
#app .tm-role { width: auto; min-height: 32px; padding: 4px 8px; font-size: 13px; }
#app .tm-seg { margin: 8px 0 4px; }
#app .tm-link { margin: 6px 0 10px; padding: 12px; border-radius: var(--r-sm); background: var(--btn-soft); }
#app .tm-url { display: block; margin: 6px 0 10px; font-size: 12.5px; word-break: break-all; }
#app .tm-link .btnrow { display: flex; gap: 8px; }
#app .tm-link .btnrow .btn { flex: 1 1 0; }
#app .invite-card { margin: 8px var(--gap); display: flex; flex-direction: column; gap: 10px; }
#app .invite-card .inv-lead { font-size: 17px; font-weight: 600; line-height: 1.35; }
#app.no-tabs .tabs { display: none; }
#app .leadhead .answeredby { margin-top: 2px; font-size: 13px; color: var(--hint); }
#app .invite-card .foot { padding: 0; margin: 0; }

/* ===== 0.8.0 stage 3: states, readability, touch targets ===== */
/* Loading skeleton (index.html draws it before any script runs). */
#app .skeleton { padding: 20px var(--gap); }
#app .sk-title { width: 46%; height: 30px; border-radius: 10px; background: color-mix(in srgb, var(--text) 9%, transparent); margin: 8px 0 20px; }
#app .sk-card { background: var(--sec); border-radius: var(--r); box-shadow: var(--shadow); padding: 4px 0; }
#app .sk-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
#app .sk-av { flex: none; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--text) 9%, transparent); }
#app .sk-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }
#app .sk-lines i { display: block; height: 12px; border-radius: 6px; background: color-mix(in srgb, var(--text) 9%, transparent); }
#app .sk-lines i + i { width: 60%; }
@media (prefers-reduced-motion: no-preference) {
  #app .sk-title, #app .sk-av, #app .sk-lines i { animation: sk-pulse 1.2s ease-in-out infinite alternate; }
}
@keyframes sk-pulse { from { opacity: .55; } to { opacity: 1; } }

/* "No connection / something went wrong": the Retry button sits low, in the thumb zone. */
#app .errscreen { min-height: calc(100vh - 140px); display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 24px var(--gap) calc(32px + env(safe-area-inset-bottom)); text-align: center; }
#app .errscreen .err-ico { font-size: 44px; line-height: 1; margin-bottom: auto; padding-top: 18vh; color: var(--hint); }
#app .errscreen h1 { margin: 0; font-size: 24px; }
#app .errscreen p { margin: 0 0 12px; color: var(--hint); font-size: 16px; }
#app .errscreen .btn { min-height: 52px; }

/* Long words and links in messages wrap instead of running off the bubble. */
#app .msg, #app .draftmsg, #app .fact b, #app .leadfacts dd, #app .item .t bdi { overflow-wrap: anywhere; }

/* Toast in theme colours; it hides itself after a few seconds (states.js). */
#app .toast { background: var(--toast-bg); color: var(--toast-text); }
#app .toast .undo { color: var(--toast-text); text-decoration: underline; min-height: 44px; }

/* The AI badge is readable in the light theme too. */
#app .vhead .aibadge { color: var(--ai); }

/* Touch targets: filters, "Edit reply", the language switch and folder buttons are at least 44 px high. */
#app .seg button { min-height: 44px; }
#app .card.answer .bh .link { min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; }
#app .langsw button { min-height: 44px; min-width: 44px; }
#app .confirmrow .btn { min-height: 44px; margin: 0; margin-inline-start: 66px; }
#app .confirmrow { padding: 0; padding-inline-end: 14px; padding-bottom: 12px; }
#app .confirmrow .item { padding: 11px 0 8px; padding-inline-start: 16px; }

/* Urgency edge mirrors in RTL. */
#app .card.list .item::after { border-radius: 0; border-start-end-radius: 3px; border-end-end-radius: 3px; }

/* Search, "Show more", first-run checklist */
#app .searchbar { margin: 10px var(--gap) 0; }
#app .searchbar input { width: 100%; min-height: 44px; border: 0; border-radius: 12px; padding: 10px 14px; background: color-mix(in srgb, var(--text) 7%, transparent); font-size: 16px; }
#app .showmore { margin: 10px var(--gap) 0; width: calc(100% - 2 * var(--gap)); }
#app .onboarding { margin: 12px var(--gap); }
#app .onboarding h2 { margin: 0 0 6px; font-size: 20px; }
#app .onboarding .ob-intro { margin: 0 0 10px; color: var(--hint); font-size: 15px; }
#app .ob-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
#app .ob-step { display: flex; gap: 12px; align-items: flex-start; }
#app .ob-num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--btn-soft); color: var(--btn); }
#app .ob-step.done .ob-num { background: var(--ok-bg); color: var(--ok); }
#app .ob-step.done .ob-tx p, #app .ob-step.done .ob-tx b { color: var(--hint); }
#app .ob-tx b { display: block; font-size: 16px; }
#app .ob-tx p { margin: 2px 0 6px; font-size: 14px; color: var(--hint); overflow-wrap: anywhere; }
#app .ob-tx .btn.sm { width: auto; display: inline-block; min-height: 44px; padding: 10px 14px; }
#app .onboarding .ob-after { padding: 12px 0 0; }
#app .onboarding #obHide { min-height: 44px; }

/* Request card: facts block, file preview, the 5-second "Undo" bar */
#app .leadfacts { margin: 4px var(--gap) 10px; padding: 10px 14px; background: var(--sec); border-radius: var(--r-sm); box-shadow: var(--shadow); display: grid; gap: 4px; }
#app .fact-row { display: flex; gap: 10px; font-size: 14px; }
#app .fact-row dt { flex: none; width: 96px; color: var(--hint); }
#app .fact-row dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
#app .filepeek { margin: 10px 0 0; }
#app .filepeek img { display: block; max-width: 100%; border-radius: 12px; }
#app .undobar { display: flex; align-items: center; gap: 12px; padding: 0 var(--gap); min-height: 56px; }
#app .undobar span { flex: 1; font-weight: 600; }
#app .undobar .btn { width: auto; min-height: 48px; padding: 10px 18px; }

/* Settings: automation warning, working days, profile, property times, reminder problem */
#app .prefs-warn { margin: 0; padding: 12px 16px 4px; font-size: 14px; font-weight: 600; color: var(--warm); }
#app .set-tail.hours { display: flex; align-items: center; gap: 8px; }
#app .daychips { display: flex; flex-wrap: wrap; gap: 6px; }
#app .daychip { min-width: 44px; min-height: 44px; border-radius: 10px; background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--hint); font-weight: 600; font-size: 14px; }
#app .daychip.on { background: var(--btn); color: var(--btn-text); }
#app .profile { display: flex; flex-direction: column; gap: 10px; margin: 0 var(--gap); }
#app .profile .field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--hint); }
#app .profile input, #app .profile select { min-height: 44px; border-radius: 10px; border: 1px solid var(--sep); padding: 8px 12px; background: var(--bg); color: var(--text); font-size: 16px; }
#app .propslots { margin-top: 12px; }
#app .propslots ul { list-style: none; margin: 6px 0; padding: 0; }
#app .propslots li { display: flex; justify-content: space-between; align-items: center; min-height: 44px; border-bottom: 1px solid var(--sep); }
#app .propslots li .link { padding: 0 8px; min-height: 44px; }
#app .slot-add { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
#app .slot-add input { flex: 1; min-width: 0; min-height: 44px; border-radius: 10px; border: 1px solid var(--sep); padding: 6px 10px; background: var(--bg); color: var(--text); }
#app .slot-add .btn { width: auto; min-height: 44px; }
#app .remind-problem { margin: 6px 0 0; font-size: 13px; color: var(--danger); }
#app .setting-row .set-tail { flex-wrap: wrap; justify-content: flex-end; gap: 8px; min-width: 0; }
/* The digest on/off switch sits inside a small button: without this it had zero size and was invisible. */
#app .sw-btn { display: inline-flex; align-items: center; min-height: 44px; }
/* 0.8.1 (QA N12): the folder count sits on its own line above the title, so a long title
   ("Подтверждённые") never runs into the number at 375 px, in any language. */
#app .folder .fnum { position: static; order: -1; inset: auto; font-size: 22px; line-height: 1.1; }
#app .folder b { padding-inline-end: 0; }
