/* QuAc — styles. No framework, no webfonts. */

:root {
  --bg: #f3f2ee;
  --card: #fbfaf7;
  --sunk: #ebe9e3;
  --fg: #1d1d1b;
  --muted: #7f7d77;
  --faint: #b9b7b0;
  --line: #e2e0d9;
  --primary: #1d1d1b;
  --on-primary: #fbfaf7;
  --danger: #c4402f;
  --warn: #c98316;
  --shadow: 0 18px 50px rgba(30, 28, 20, .14), 0 2px 8px rgba(30, 28, 20, .06);
  --radius: 26px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --kb: 0px;

  --t-ink: #3a3a36;  --t-gray: #737a83; --t-green: #4c8a3a; --t-yellow: #c99a00; --t-blue: #3a72d4;
  --t-teal: #1d8c83; --t-orange: #dd741a; --t-red: #d0463a; --t-purple: #7559d2; --t-pink: #cf4f87;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11110f; --card: #1b1b19; --sunk: #232320; --fg: #eeede8; --muted: #8f8d86; --faint: #4d4c47;
    --line: #2b2b28; --primary: #eeede8; --on-primary: #151513; --danger: #ec6a59; --warn: #e6a640;
    --shadow: 0 18px 50px rgba(0, 0, 0, .5), 0 2px 8px rgba(0, 0, 0, .3);
    --t-ink: #d8d7d1; --t-gray: #a0a7b0; --t-green: #7dbd67; --t-yellow: #e6c23e; --t-blue: #6f9ef1;
    --t-teal: #4ec4b9; --t-orange: #f29a4b; --t-red: #ef7062; --t-purple: #a38cf1; --t-pink: #ee80b1;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11110f; --card: #1b1b19; --sunk: #232320; --fg: #eeede8; --muted: #8f8d86; --faint: #4d4c47;
  --line: #2b2b28; --primary: #eeede8; --on-primary: #151513; --danger: #ec6a59; --warn: #e6a640;
  --shadow: 0 18px 50px rgba(0, 0, 0, .5), 0 2px 8px rgba(0, 0, 0, .3);
  --t-ink: #d8d7d1; --t-gray: #a0a7b0; --t-green: #7dbd67; --t-yellow: #e6c23e; --t-blue: #6f9ef1;
  --t-teal: #4ec4b9; --t-orange: #f29a4b; --t-red: #ef7062; --t-purple: #a38cf1; --t-pink: #ee80b1;
  color-scheme: dark;
}

.tone-ink { --tone: var(--t-ink); }     .tone-gray { --tone: var(--t-gray); }   .tone-green { --tone: var(--t-green); }
.tone-yellow { --tone: var(--t-yellow); } .tone-blue { --tone: var(--t-blue); } .tone-teal { --tone: var(--t-teal); }
.tone-orange { --tone: var(--t-orange); } .tone-red { --tone: var(--t-red); }   .tone-purple { --tone: var(--t-purple); }
.tone-pink { --tone: var(--t-pink); }

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
body { overflow: hidden; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }

.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.flex { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ stage (always dark) */

/* Layout: symbols sit on a ring of slots along the screen edges; the inner area shows the clock,
   what's next, or the selected symbol. Slot geometry in app.js: x = pad + 38, y = pad + 54 / H - pad - 80. */
.stage {
  --stage-bg: #08080a;
  --stage-fg: #ededf2;
  --stage-muted: #85858f;
  --stage-faint: #2c2c33;
  --stage-sunk: #17171c;
  position: fixed;
  inset: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: var(--stage-bg);
  color: var(--stage-fg);
  color-scheme: dark;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
}
.stage .tone-ink { --neon: #f2f2ff; }    .stage .tone-gray { --neon: #c3cfe6; }  .stage .tone-green { --neon: #3dff7f; }
.stage .tone-yellow { --neon: #f4ff3a; } .stage .tone-blue { --neon: #3d9dff; }  .stage .tone-teal { --neon: #1df2d0; }
.stage .tone-orange { --neon: #ff9b26; } .stage .tone-red { --neon: #ff3d63; }   .stage .tone-purple { --neon: #b66bff; }
.stage .tone-pink { --neon: #ff4fd8; }

/* edge symbols: line icon only, neon glow grows with urgency */
.symbols { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.sym {
  position: absolute; left: 0; top: 0;
  width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border: 0; padding: 0; background: none;
  display: grid; place-items: center;
  color: var(--neon);
  pointer-events: auto;
  transition: transform .7s var(--ease);
}
.sym .ic {
  width: var(--is, 24px); height: var(--is, 24px);
  stroke-width: 1.7;
  filter: drop-shadow(0 0 var(--glow, 3px) var(--neon)) drop-shadow(0 0 calc(var(--glow, 3px) * 2.2) color-mix(in srgb, var(--neon) 40%, transparent));
  transition: width .9s var(--ease), height .9s var(--ease), filter .9s, opacity .4s, transform .4s var(--ease);
}
.sym.enter .ic { opacity: 0; transform: scale(.3); }
.sym.leave { pointer-events: none; }
.sym.leave .ic { opacity: 0; transform: scale(1.7); }
.sym.ripe .ic { animation: neon 4s ease-in-out infinite; }
@keyframes neon { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }
.sym.sel .ic { transform: scale(1.25); }
.sym.dim .ic { opacity: .25; filter: none; animation: none; }
.sym:focus-visible { outline: 1px solid var(--neon); outline-offset: -4px; border-radius: 50%; }

/* inner area */
.center {
  position: absolute; z-index: 1;
  left: calc(env(safe-area-inset-left) + 70px); right: calc(env(safe-area-inset-right) + 70px);
  top: calc(env(safe-area-inset-top) + 88px); bottom: calc(env(safe-area-inset-bottom) + 114px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.center-overview { display: flex; flex-direction: column; align-items: center; gap: 30px; width: 100%; max-width: 300px; animation: fade-in .4s var(--ease); }
.clock { border: 0; background: none; color: inherit; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 12px; }
.clock-time { font-size: 68px; font-weight: 200; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.clock-date { font-size: 15px; color: var(--stage-muted); }
/* temperature curve over the clock: one thin line, dashed 15 °C middle line, low bottom left, high top right;
   a tap switches the place */
.clock-box { display: flex; flex-direction: column; align-items: center; width: 100%; }
.temp-btn { display: block; width: 100%; max-width: 284px; border: 0; background: none; color: inherit; padding: 0 12px; margin-bottom: 4px; }
.temp-btn:active .temp-curve { opacity: .6; }
.temp-curve { display: block; width: 100%; height: auto; overflow: visible; transition: opacity .2s; }
.tc-line { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tc-past { stop-color: var(--stage-fg); stop-opacity: .28; }
.tc-next { stop-color: var(--stage-fg); stop-opacity: .92; }
.tc-mid { stroke: var(--stage-muted); stroke-width: 1; stroke-dasharray: 1.5 4; stroke-linecap: round; opacity: .6; }
.tc-label { fill: var(--stage-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.tc-now { fill: var(--stage-fg); }
.tc-preview { stroke: var(--stage-fg); stroke-opacity: .72; }          /* tomorrow's 0–18 h, until midnight */
.tc-tag { fill: var(--stage-muted); font-size: 9.5px; letter-spacing: 1.5px; }
.agenda { display: flex; flex-direction: column; width: 100%; }
.agenda-head { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--stage-muted); margin-bottom: 8px; }
.agenda-line {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 10px;
  border: 0; background: none; color: var(--stage-fg); text-align: left;
  padding: 7px 4px; font-size: 15px; border-radius: 10px;
}
.agenda-line:active { background: var(--stage-sunk); }
.agenda-icons { display: inline-flex; gap: 3px; }
.agenda-icons span { color: var(--neon); display: grid; }
.agenda-icons .ic { width: 16px; height: 16px; filter: drop-shadow(0 0 3px var(--neon)); }
.agenda-day { color: var(--stage-muted); white-space: nowrap; }
.agenda-what { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* "Als Nächstes" as a quick view (v1.14): the next three entries, two lines each – symbol · title · when,
   below it the one detail that matters for its kind; a small button on the right for call / map / list */
.qrow { position: relative; }
.qmain {
  width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; row-gap: 2px; align-items: baseline;
  border: 0; background: none; color: var(--stage-fg); text-align: left; padding: 6px 4px; font-size: 15px; border-radius: 10px;
}
.qmain:active { background: var(--stage-sunk); }
.qicons { grid-row: 1 / span 2; align-self: start; display: inline-flex; gap: 3px; padding-top: 2px; }
.qicons span { color: var(--neon); display: grid; }
.qicons .ic { width: 16px; height: 16px; filter: drop-shadow(0 0 3px var(--neon)); }
.qtitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qwhen { color: var(--stage-muted); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qinfo { grid-column: 2 / 4; color: var(--stage-muted); font-size: 13px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qrow.has-act .qinfo { padding-right: 30px; }
.qwhen.soon, .qinfo.soon { color: var(--neon); }
.qact {
  position: absolute; right: 0; bottom: 0; width: 40px; height: 32px; display: grid; place-items: center;
  color: var(--stage-muted); border: 0; background: none; padding: 0; border-radius: 10px;
}
.qact .ic { width: 17px; height: 17px; }
.qact:active { background: var(--stage-sunk); color: var(--stage-fg); }
.quick-more { align-self: flex-start; border: 0; background: none; color: var(--stage-muted); font-size: 13px; padding: 2px 4px 0 30px; }
.tight .qmain { padding-block: 4px; }
.tight .quick-more { display: none; }
.quiet { color: var(--stage-muted); font-size: 14px; }
.quiet-link { border: 0; background: none; padding: 4px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--stage-faint); }
.net { font-size: 13px; color: #ffb547; }
.ask-link {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; background: none; color: var(--stage-fg); font-size: 15px; padding: 6px 10px; border-radius: 99px;
}
.ask-link .ic { width: 18px; height: 18px; color: #b66bff; filter: drop-shadow(0 0 4px #b66bff); animation: neon 3s ease-in-out infinite; }
.ask-link:active { background: var(--stage-sunk); }
.who-item i { width: 7px; height: 7px; border-radius: 50%; background: var(--dot); flex: none; }
.sel-owner { font-size: 13px; color: var(--stage-muted); margin-top: -4px; }
.sym.own .ic { stroke-width: 1.9; }

.center-sel {
  width: 100%; max-width: 320px; max-height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  overflow-y: auto; touch-action: none; padding: 4px 2px;
  animation: fade-in .35s var(--ease);
}
.sel-icon { color: var(--neon); display: grid; margin-bottom: 6px; }
.sel-icon .ic { width: 46px; height: 46px; stroke-width: 1.5; filter: drop-shadow(0 0 6px var(--neon)) drop-shadow(0 0 18px color-mix(in srgb, var(--neon) 50%, transparent)); }
.sel-title { font-size: 24px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; text-wrap: balance; }
.sel-when { color: var(--neon); font-size: 15px; }
.sel-detail { color: var(--stage-muted); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; user-select: text; -webkit-user-select: text; }
.sel-detail a { color: var(--stage-fg); }
.sel-contact { display: flex; flex-direction: column; width: 100%; border-block: 1px solid var(--stage-faint); padding: 6px 0; }
.sel-line { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 4px; border: 0; background: none; color: var(--stage-fg); text-decoration: none; font-size: 15px; }
.sel-line .ic { width: 18px; height: 18px; color: var(--stage-muted); flex: none; }
.sel-name { font-weight: 600; }
.sel-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 8px; }
.btn-neon { background: var(--neon); color: #0a0a0c; box-shadow: 0 0 22px color-mix(in srgb, var(--neon) 40%, transparent); }
.btn-dark { background: var(--stage-sunk); color: var(--stage-fg); }
.stage .chip { border-color: var(--stage-faint); color: var(--stage-fg); }
.stage .chip:active { background: var(--stage-sunk); }
.stage .meta, .stage .meta-link { color: var(--stage-muted); }
.stage .meta-link { text-decoration-color: var(--stage-faint); }
.stage .meta-link .ic { color: var(--stage-muted); }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } }

.handle {
  position: absolute; z-index: 2; left: 50%; bottom: env(safe-area-inset-bottom);
  transform: translateX(-50%);
  border: 0; background: none; padding: 16px 44px 14px;
}
.handle span { display: block; width: 40px; height: 4px; border-radius: 9px; background: var(--stage-faint); }

/* swipe legend: first 30 days only, fading */
.legend { --fresh: 1; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: calc(.35 + .65 * var(--fresh)); }
.legend[hidden] { display: none; }
.lg { position: absolute; color: #4c4c56; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.lg i { font-style: normal; letter-spacing: 0; }
.lg-top { top: calc(env(safe-area-inset-top) + 14px); left: 50%; transform: translateX(-50%); }
.lg-bottom { bottom: calc(env(safe-area-inset-bottom) + 34px); left: 50%; transform: translateX(-50%); }
.lg-left, .lg-right { top: 50%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lg-left { left: max(4px, env(safe-area-inset-left)); transform: translateY(-50%); }
.lg-right { right: max(4px, env(safe-area-inset-right)); transform: translateY(-50%); }
.lg-left span, .lg-right span { writing-mode: vertical-rl; }
.lg-left span { transform: rotate(180deg); }

/* ------------------------------------------------------------------ layers */

.layers { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
.layer { position: absolute; inset: 0; pointer-events: none; }
.layer.open, .layer.dragging { pointer-events: auto; }
.scrim {
  position: absolute; inset: 0;
  background: rgba(10, 10, 8, .28);
  opacity: 0;
  transition: opacity .38s var(--ease);
}
.layer.open .scrim { opacity: 1; }
.layer.dragging .scrim, .layer.dragging .sheet { transition: none !important; }

.sheet {
  position: absolute;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform .4s var(--ease);
  display: flex;
  flex-direction: column;
  max-width: 640px;
  margin: 0 auto;
}

.layer--bottom .sheet {
  left: 0; right: 0; bottom: var(--kb);
  max-height: calc(100% - 48px - var(--kb));
  border-radius: var(--radius) var(--radius) 0 0;
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(105%);
  touch-action: none;
}
.layer--top .sheet {
  left: 0; right: 0; top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  padding-top: env(safe-area-inset-top);
  transform: translateY(-105%);
  touch-action: none;
}
.layer--right .sheet, .layer--left .sheet {
  top: 0; bottom: 0; left: 0; right: 0;
  max-width: none;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
}
.layer--right .sheet, .layer--left .sheet,
.layer--right .scroll, .layer--left .scroll { touch-action: pan-y; }     /* vertical scroll stays native, sideways swipes close */
.layer--right .sheet { transform: translateX(104%); }
.layer--left .sheet { transform: translateX(-104%); }
.layer.open .sheet { transform: none; }

@media (min-width: 720px) {
  .layer--right .sheet, .layer--left .sheet { max-width: 560px; }
  .layer--right .sheet { left: auto; border-radius: var(--radius) 0 0 var(--radius); }
  .layer--left .sheet { right: auto; border-radius: 0 var(--radius) var(--radius) 0; }
  .layer--bottom .sheet, .layer--top .sheet { max-width: 560px; }
}

.sheet > * { min-height: 0; }
.grip { display: grid; place-items: center; padding: 10px 0 6px; cursor: grab; touch-action: none; }
.grip span { width: 40px; height: 5px; border-radius: 9px; background: var(--line); }

/* ------------------------------------------------------------------ screens */

.screen { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.sheet-head {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 8px 10px 6px;
  touch-action: pan-y;
  user-select: none;
}
.sheet-head h2 { flex: 1; font-size: 22px; font-weight: 650; letter-spacing: -.01em; padding-left: 4px; }
.head-actions { display: flex; gap: 2px; }
.screen-body {
  flex: 1;
  min-height: 0;
  padding: 4px 16px calc(24px + env(safe-area-inset-bottom));
}
.scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.form { display: flex; flex-direction: column; gap: 16px; }

.icon-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: none;
  color: var(--fg);
  flex: none;
}
.icon-btn:active { background: var(--sunk); }
.icon-btn.sm { width: 36px; height: 36px; color: var(--muted); }
.icon-btn.sm .ic { width: 20px; height: 20px; }
.icon-btn.filled { background: var(--primary); color: var(--on-primary); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 99px;
  font-weight: 560;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn .ic { width: 20px; height: 20px; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:disabled { opacity: .35; }
.btn-soft { background: var(--sunk); color: var(--fg); }
.btn-wide { width: 100%; }
.btn-row { display: flex; gap: 8px; }
.btn-row > * { flex: 1; }
.link { border: 0; background: none; padding: 6px 4px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.field {
  width: 100%;
  border: 1.5px solid transparent;
  border-radius: 16px;
  background: var(--sunk);
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
  transition: border-color .2s, background .2s;
}
.field:focus { border-color: var(--line); background: var(--card); }
.field.invalid { border-color: var(--danger); }
.field-lg { font-size: 20px; font-weight: 560; padding: 14px 16px; }
.field-sm { width: auto; max-width: 150px; padding: 8px 10px; font-size: 14px; border-radius: 12px; }
textarea.field { resize: none; line-height: 1.45; }
select.field { appearance: none; -webkit-appearance: none; background-image: none; }
.field-wrap { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; color: var(--muted); padding-left: 4px; }
.field-help { font-size: 13px; color: var(--muted); padding-left: 4px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dated { display: flex; flex-direction: column; gap: 16px; }

.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button {
  border: 0; border-radius: 99px;
  padding: 9px 14px;
  background: var(--sunk);
  font-size: 14px;
}
.seg button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }

.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.icon-pick {
  aspect-ratio: 1;
  border: 0; border-radius: 14px;
  display: grid; place-items: center;
  background: none;
  color: var(--tone);
}
.icon-pick[aria-checked="true"] { background: color-mix(in srgb, var(--tone) 20%, var(--card)); box-shadow: inset 0 0 0 1.5px var(--tone); }

.badge {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 16%, var(--card));
  flex: none;
}
.badge-lg { width: 60px; height: 60px; }
.badge-lg .ic { width: 28px; height: 28px; }
.badge-sm { width: 38px; height: 38px; }
.badge-sm .ic { width: 20px; height: 20px; }

.section { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 22px 4px 8px; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin: 22px 4px 6px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.section-head .link { text-transform: none; letter-spacing: 0; font-weight: 400; }
.empty { color: var(--muted); padding: 28px 8px; text-align: center; }
.empty-block { text-align: center; padding: 40px 12px; display: grid; gap: 6px; }

.row { display: flex; align-items: center; }
.row-main {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 12px;
  border: 0; background: none; text-align: left;
  padding: 8px 4px;
  border-radius: 16px;
}
.row-main:active { background: var(--sunk); }
.row-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.row-title { font-weight: 540; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.more { margin-top: 14px; }

.searchrow { display: flex; align-items: center; gap: 8px; background: var(--sunk); border-radius: 16px; padding-left: 12px; color: var(--muted); margin-bottom: 8px; }
.searchrow .field { background: none; padding-left: 0; }
.searchrow .field:focus { background: none; border-color: transparent; }

.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sunk); color: var(--muted);
  font-size: 14px; font-weight: 600; flex: none;
}

/* ------------------------------------------------------------------ notes sheet */

.layer[data-route="notiz"] .sheet, .layer[data-route="notizen"] .sheet { height: calc(100% - 40px - var(--kb)); }
.notesheet { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.compose { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 12px; border-bottom: 1px solid var(--line); }
.composer-input {
  border: 0; outline: none; background: none;
  font-size: 19px; line-height: 1.45;
  min-height: 48px; resize: none;
  padding: 6px 2px;
}
.composer-input::placeholder { color: var(--faint); }
.compose-row { display: flex; align-items: flex-start; gap: 6px; }
.compose-row .composer-input { flex: 1; min-width: 0; }
.icon-btn.compose-cam { margin-top: 6px; color: var(--muted); }
.icon-btn.compose-cam .ic { width: 22px; height: 22px; }
.attach-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px; }
.attach-row[hidden] { display: none; }
.attach { position: relative; flex: none; width: 60px; height: 78px; border-radius: 10px; overflow: hidden; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); }
.attach img { width: 100%; height: 100%; object-fit: cover; display: block; }
.attach.loading img { opacity: .55; }
.attach.loading::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 7px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--fg), transparent); background-size: 200% 100%; animation: shimmer 1.1s linear infinite; opacity: .5; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.attach.failed { box-shadow: inset 0 0 0 2px var(--danger); }
.attach-pdf { display: grid; place-items: center; align-content: center; gap: 2px; height: 100%; font: 700 11px/1 system-ui, sans-serif; color: var(--muted); }
.attach-pdf .ic { width: 24px; height: 24px; }
.icon-btn.attach-x { position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; background: rgba(0,0,0,.55); color: #fff; }
.icon-btn.attach-x .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.attach-add { flex: none; width: 60px; height: 78px; border-radius: 10px; border: 1.5px dashed var(--line); background: none; color: var(--muted); display: grid; place-items: center; }
.composer-foot { display: none; gap: 10px; align-items: center; }
.composer-foot.show { display: flex; animation: rise .25s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.hint { font-size: 13px; color: var(--muted); }
.compose-hint:empty { display: none; }
.own-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--line); border-radius: 99px; background: none;
  padding: 7px 12px 7px 9px; font-size: 14px; color: var(--muted);
}
.own-toggle .ic { width: 17px; height: 17px; }
.own-toggle[aria-pressed="true"] { border-color: var(--tone); color: var(--fg); background: color-mix(in srgb, var(--tone) 14%, transparent); }
.own-toggle[aria-pressed="true"] .ic { color: var(--tone); }

.notes-scroll { flex: 1; min-height: 0; padding: 4px 16px calc(24px + env(safe-area-inset-bottom)); touch-action: pan-y; }
.notes-head { display: flex; align-items: center; gap: 10px; padding: 8px 0 6px; position: sticky; top: 0; background: var(--card); z-index: 1; }
.notes-title { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.notes-sub { font-size: 13px; color: var(--muted); }
.notes-title { white-space: nowrap; }
.notes-chips { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.notes-chips > * { white-space: nowrap; }
.searchrow[hidden] { display: none; }

/* ------------------------------------------------------------------ menu */

.menu { padding: 12px 16px 0; display: flex; flex-direction: column; gap: 12px; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  border: 0; border-radius: 22px;
  background: var(--sunk);
  padding: 16px;
  display: grid; justify-items: start; gap: 2px;
  text-align: left;
  min-height: 108px;
}
.tile .ic { width: 26px; height: 26px; margin-bottom: 10px; }
.tile-title { font-weight: 620; font-size: 17px; }
.tile-sub { font-size: 14px; color: var(--muted); }
.tile-wide { grid-column: 1 / -1; min-height: 0; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 14px; }
.tile-wide .ic { margin: 0; grid-column: 1; grid-row: 1 / span 2; }
.tile-wide .tile-title { grid-column: 2; grid-row: 1; }
.tile-wide .tile-sub { grid-column: 2; grid-row: 2; }
.tile-wide .tile-hint { grid-column: 3; grid-row: 1 / span 2; font-size: 12px; color: var(--muted); opacity: .75; max-width: 84px; text-align: right; line-height: 1.3; }
.push-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: 0; border-radius: 18px; background: var(--sunk); padding: 12px 16px; text-align: left; font-weight: 560;
}
.push-row .ic { width: 20px; height: 20px; }
.push-state { font-weight: 400; color: var(--muted); }
.push-row[aria-pressed="true"] .push-state { color: var(--fg); font-weight: 600; }
.tile:active { transform: scale(.98); }
.menu-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.menu-foot { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); padding: 4px 4px 0; }
.sync-state { font-size: 12px; }

/* ------------------------------------------------------------------ shared bits */

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: none; border-radius: 99px; padding: 9px 14px; font-size: 15px; }
.chip:active { background: var(--sunk); }
.meta { font-size: 13px; color: var(--muted); }
.meta-link { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 4px 0; font-size: 13px; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.meta-link .ic { width: 16px; height: 16px; color: var(--muted); }
.quick { display: flex; gap: 8px; flex-wrap: wrap; }
.quick .btn { flex: 1; }

/* ------------------------------------------------------------------ groceries */

.addrow { display: flex; gap: 8px; align-items: center; position: sticky; top: 0; background: var(--card); padding: 4px 0 10px; z-index: 1; }
.glist { list-style: none; margin: 0; padding: 0; }
.grow-row { display: flex; align-items: center; }
.gcheck {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 14px;
  border: 0; background: none; text-align: left;
  padding: 12px 4px; font-size: 17px;
}
.box {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.8px solid var(--faint);
  display: grid; place-items: center; flex: none;
  transition: background .2s, border-color .2s;
}
.box .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.gtext { flex: 1; overflow-wrap: anywhere; }
.by { font-size: 12px; color: var(--muted); }
.box .ic { opacity: 0; transform: scale(.4); transition: opacity .15s, transform .25s var(--ease); }
.grow-row { transition: opacity .3s .12s, transform .35s .1s var(--ease); }
.grow-row.ticked .gtext { color: var(--muted); text-decoration: line-through; }
.grow-row.ticked .box { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.grow-row.ticked .box .ic { opacity: 1; transform: none; }
.grow-row.ticked { opacity: 0; transform: translateX(24px); }

/* the bell: what you just typed in, a tap tells the other one (nothing is sent without it) */
.shop-screen { position: relative; }
.screen-body.with-bell { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.gbell {
  position: absolute; z-index: 5;
  left: 50%; bottom: calc(22px + env(safe-area-inset-bottom) + var(--kb));
  transform: translateX(-50%);
  display: flex; align-items: center;
  height: 50px; max-width: calc(100% - 32px);
  padding: 0 4px 0 0;
  border-radius: 25px;
  background: var(--primary); color: var(--on-primary);
  box-shadow: var(--shadow);
  font-size: 15px; font-weight: 600;
  white-space: nowrap;
  touch-action: manipulation;
  transition: bottom .35s var(--ease);
}
.gbell-go {
  display: flex; align-items: center; gap: 10px; min-width: 0; height: 100%;
  padding: 0 12px 0 13px; border: 0; border-radius: 25px 0 0 25px; background: none; color: inherit;
  font: inherit; cursor: pointer; touch-action: manipulation;
}
/* the ×: resets the bell without telling anyone (v1.15) */
.gbell-x {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
  border: 0; border-radius: 21px; color: inherit; cursor: pointer; touch-action: manipulation;
  background: color-mix(in srgb, var(--on-primary) 12%, transparent);
}
.gbell-x .ic { width: 18px; height: 18px; opacity: .8; }
.gbell-x:active { background: color-mix(in srgb, var(--on-primary) 24%, transparent); }
.gbell[hidden] { display: none; }
html.toasting .gbell { bottom: calc(86px + env(safe-area-inset-bottom) + var(--kb)); }   /* above the toast */
.gbell-ic { position: relative; display: grid; place-items: center; width: 30px; height: 30px; transform-origin: 50% 12%; }
.gbell-ic .ic { width: 23px; height: 23px; }
.gbell-n {
  position: absolute; top: -5px; right: -8px;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--t-orange); color: #151513;
  box-shadow: 0 0 0 2px var(--primary);
  font-size: 11.5px; font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums;
}
.gbell-t { overflow: hidden; text-overflow: ellipsis; }
.gbell.in { animation: gbell-in .38s var(--ease); }
.gbell.in .gbell-ic, .gbell.bump .gbell-ic { animation: gbell-swing .7s ease-out; }
.gbell.bump .gbell-n { animation: gbell-pop .32s var(--ease); }
.gbell.rung { animation: gbell-off .74s var(--ease) forwards; pointer-events: none; }
.gbell.rung .gbell-ic { animation: gbell-swing .55s ease-out; }
.gbell.leaving { animation: gbell-out .26s ease-in forwards; pointer-events: none; }
@keyframes gbell-in { from { opacity: 0; transform: translate(-50%, 26px) scale(.92); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes gbell-out { to { opacity: 0; transform: translate(-50%, 20px) scale(.96); } }
@keyframes gbell-off {
  0%, 55% { opacity: 1; transform: translateX(-50%); }
  100% { opacity: 0; transform: translate(-50%, -28px) scale(.9); }
}
@keyframes gbell-swing {
  0% { transform: rotate(0); } 15% { transform: rotate(16deg); } 32% { transform: rotate(-13deg); }
  50% { transform: rotate(8deg); } 68% { transform: rotate(-4deg); } 100% { transform: rotate(0); }
}
@keyframes gbell-pop { 0% { transform: scale(1); } 45% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ------------------------------------------------------------------ calendar (v1.16, formerly Bald) */

/* a month as tiles; with something in the quick access (v1.17) a tap on a day puts it there in turn
   (… → empty), a long press takes one of the day's entries into the quick access */
.cal-screen { position: relative; }
.cal { margin: 2px 0 6px; user-select: none; -webkit-user-select: none; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin: 0 -6px 6px; }
.cal-title { border: 0; background: none; color: var(--fg); font: inherit; font-size: 17px; font-weight: 650; padding: 6px 10px; border-radius: 10px; }
.cal-title:active { background: var(--sunk); }
.cal-next .ic { transform: scaleX(-1); }
.cal-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.cal-quick-head {
  border: 0; background: none; padding: 6px 4px 6px 2px; font: inherit; font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.cal-chip {
  display: inline-flex; align-items: center; min-width: 0; max-width: 100%; border-radius: 99px;
  background: color-mix(in srgb, var(--tone) 15%, var(--card)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tone) 55%, transparent);
  transition: opacity .2s, filter .2s;
}
.cal-chip-main {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0; border: 0; background: none;
  padding: 6px 2px 6px 9px; font: inherit; font-size: 14px; color: var(--fg);
}
.cal-chip .ic { width: 17px; height: 17px; color: var(--tone); flex: none; }
.cal-chip-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-chip-time { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.cal-chip-x { display: grid; place-items: center; width: 30px; height: 30px; margin-right: 1px; border: 0; border-radius: 15px; background: none; color: var(--muted); padding: 0; }
.cal-chip-x .ic { width: 14px; height: 14px; color: var(--muted); }
.cal-chip-x:active { background: var(--sunk); }
.cal-quick.off .cal-chip { opacity: .5; filter: grayscale(.7); box-shadow: inset 0 0 0 1px var(--line); }
.cal-wd { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.cal-wd span { text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-day {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  min-height: 50px; padding: 5px 3px 5px 5px; border: 0; border-radius: 10px; font: inherit; color: var(--fg); text-align: left;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  -webkit-touch-callout: none; touch-action: manipulation; cursor: pointer;
  transition: background .15s, box-shadow .15s;
}
.cal-day:active { background: var(--sunk); }
.cal-num { font-size: 13px; font-weight: 600; line-height: 20px; min-width: 20px; height: 20px; border-radius: 10px; font-variant-numeric: tabular-nums; }
.cal-day.past .cal-num { color: var(--muted); font-weight: 500; }
.cal-day.today .cal-num { background: var(--primary); color: var(--on-primary); text-align: center; padding: 0 4px; margin-left: -2px; }
.cal-day.out { opacity: .42; }
.cal-day.sel { box-shadow: inset 0 0 0 2px var(--fg); }
.cal-marks { display: flex; align-items: center; gap: 1px; min-height: 13px; flex-wrap: nowrap; overflow: hidden; max-width: 100%; }
.cal-marks span { display: grid; color: var(--tone); }
.cal-marks .ic { width: 11.5px; height: 11.5px; stroke-width: 2.1; }
.cal-marks .again { opacity: .45; }
.cal-more { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-dayhead { margin-top: 16px; }
.cal-dayhead .icon-btn { margin: -8px -6px -8px 0; }
.cal-empty { font-size: 15px; padding: 2px 4px 4px; }
.cal-hint { padding: 6px 4px 0; }
/* bottom panel: several entries on the long-pressed day — which one goes into the quick access? */
.cal-bar {
  position: absolute; z-index: 5; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 10px 10px 12px; border-radius: 18px;
  background: var(--card); box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  animation: rise .25s var(--ease);
  transition: bottom .3s var(--ease);
}
.cal-bar[hidden] { display: none; }
html.toasting .cal-bar { bottom: calc(80px + env(safe-area-inset-bottom)); }      /* above a toast */
.cal-bar-q { width: 100%; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 2px 2px 0; }
.cal-pick { width: 100%; display: flex; flex-direction: column; gap: 4px; }
.cal-pick-row {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 10px; border: 0; border-radius: 12px; font: inherit; font-size: 15px;
  color: var(--fg); text-align: left; background: color-mix(in srgb, var(--tone) 10%, var(--card));
}
.cal-pick-row .ic { width: 20px; height: 20px; color: var(--tone); flex: none; }
.cal-pick-row .cal-chip-t { flex: 1; }
.cal-body.with-bar { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }

/* ------------------------------------------------------------------ notes */

.notes { display: flex; flex-direction: column; gap: 10px; }
.note-wrap { position: relative; border-radius: 20px; }
.note-wrap > .note { position: relative; z-index: 1; transition: transform .25s var(--ease), opacity .22s; }
.note-wrap > .note.swiping { transition: none; }
.note-bin {
  position: absolute; inset: 0; border-radius: 20px; z-index: 0;
  display: flex; align-items: center; gap: 8px; padding: 0 22px;
  background: color-mix(in srgb, var(--danger) 16%, var(--card)); color: var(--danger);
  font-weight: 600; font-size: 15px; opacity: 0; transition: background .2s, color .2s;
}
.note-bin .ic { width: 22px; height: 22px; }
.note-wrap.armed .note-bin { opacity: 1; }
.note-wrap.to-left .note-bin { justify-content: flex-end; flex-direction: row-reverse; }
.note-wrap.will-delete .note-bin { background: var(--danger); color: #fff; }
.note { background: var(--sunk); border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.note-text { white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.note.open .note-text { -webkit-line-clamp: unset; display: block; }
.note-summary { display: flex; gap: 8px; font-size: 14px; color: var(--muted); }
.note-summary .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--t-purple); }
.note-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; color: var(--muted); }
.pill { background: var(--primary); color: var(--on-primary); border-radius: 99px; padding: 1px 8px; font-size: 12px; font-weight: 600; }
.note.own { box-shadow: inset 3px 0 0 var(--tone); }
.note-doc { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.note-doc .ic { width: 20px; height: 20px; }
.note-files { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.nf { flex: none; width: 64px; height: 84px; border: 0; padding: 0; border-radius: 10px; overflow: hidden; background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.nf img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nf-pdf { display: grid; place-items: center; align-content: center; gap: 4px; text-decoration: none; color: var(--muted); font: 700 11px/1 system-ui, sans-serif; }
.nf-pdf .ic { width: 26px; height: 26px; }
.note-extract { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--card); border-radius: 14px; padding: 10px 12px; color: var(--fg); }
.doc-filter { display: inline-flex; align-items: center; gap: 5px; border: 1.5px solid var(--line); border-radius: 99px; background: none; padding: 3px 10px 3px 7px; font-size: 13px; color: var(--muted); }
.doc-filter .ic { width: 15px; height: 15px; }
.doc-filter[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.own-tag { color: var(--tone); font-weight: 560; }
.pill-ask { background: var(--t-purple); color: #fff; }
.thread { display: flex; flex-direction: column; gap: 6px; }
.thread-line { display: flex; gap: 8px; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.thread-line b { font-weight: 620; }
.thread-line.from-claude .ic { width: 16px; height: 16px; margin-top: 3px; color: var(--t-purple); }
.thread-line:not(.from-claude) { padding-left: 24px; color: var(--muted); }
.note.asking { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--t-purple) 55%, transparent); }
.note.asking.own { box-shadow: inset 3px 0 0 var(--tone), inset 0 0 0 1.5px color-mix(in srgb, var(--t-purple) 55%, transparent); }
.reply { display: flex; gap: 8px; align-items: flex-end; cursor: auto; }
.reply-input { min-height: 44px; padding: 10px 14px; background: var(--card); border-radius: 22px; }
.reply .icon-btn { width: 44px; height: 44px; }
.reply .icon-btn .ic { width: 20px; height: 20px; }
.note-actions { display: flex; gap: 8px; }
.note.fresh { animation: land .9s var(--ease); }
@keyframes land { from { transform: translateY(-10px); box-shadow: 0 0 0 2px var(--fg); } to { box-shadow: 0 0 0 0 transparent; } }
.note.editing { box-shadow: inset 0 0 0 1.5px var(--fg); }
.note-actions .btn { min-height: 40px; flex: 1; }
.contact-row { margin-bottom: 4px; }

/* ------------------------------------------------------------------ import */

.lead-text { color: var(--muted); }
.filter-note { display: block; width: 100%; margin: 4px 0 6px; border: 0; border-radius: 14px; background: var(--sunk); color: var(--muted); padding: 10px 12px; font-size: 14px; text-align: left; }

/* ------------------------------------------------------------------ photos: flash, full-screen view */

@keyframes flash { from { opacity: .85; } to { opacity: 0; } }
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 16px; animation: fade-in .2s; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.lb-count { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: rgba(255,255,255,.75); font-size: 14px; font-variant-numeric: tabular-nums; }
.icon-btn.lb-close { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; color: #fff; background: rgba(255,255,255,.12); }

/* ------------------------------------------------------------------ document camera */

.scanner { position: fixed; inset: 0; z-index: 65; background: #000; color: #fff; overflow: hidden; animation: fade-in .2s; touch-action: none; }
.scanner.leaving { opacity: 0; transition: opacity .2s; }
.sc-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-frame {
  position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%);
  width: min(82vw, calc(66vh / 1.414)); aspect-ratio: 1 / 1.414;
  border-radius: 6px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.32); pointer-events: none;
}
.sc-frame i { position: absolute; width: 26px; height: 26px; border: 3px solid #fff; }
.sc-frame i:nth-child(1) { left: -3px; top: -3px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.sc-frame i:nth-child(2) { right: -3px; top: -3px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.sc-frame i:nth-child(3) { left: -3px; bottom: -3px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.sc-frame i:nth-child(4) { right: -3px; bottom: -3px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.scanner.nocam .sc-frame { display: none; }
.sc-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 6px; padding: calc(8px + env(safe-area-inset-top)) 10px 8px; background: linear-gradient(rgba(0,0,0,.55), transparent); }
.sc-top .icon-btn { color: #fff; }
.sc-title { font-weight: 600; letter-spacing: .02em; }
.sc-pick { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 99px; padding: 8px 14px 8px 11px; background: rgba(255,255,255,.16); color: #fff; font-weight: 560; }
.sc-pick .ic { width: 18px; height: 18px; }
.icon-btn.sc-torch[aria-pressed="true"] { background: #ffd84a; color: #111; }
.sc-msg { position: absolute; left: 16px; right: 16px; bottom: calc(132px + env(safe-area-inset-bottom)); text-align: center; font-size: 14px; color: rgba(255,255,255,.85); text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.scanner.nocam .sc-msg { bottom: auto; top: 45%; font-size: 16px; }
.sc-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px 22px calc(22px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.6));
}
.sc-shutter { width: 76px; height: 76px; border-radius: 50%; border: 4px solid #fff; background: none; padding: 5px; display: grid; }
.sc-shutter span { border-radius: 50%; background: #fff; transition: transform .1s; }
.sc-shutter:active span { transform: scale(.86); }
.scanner.nocam .sc-shutter { opacity: .3; }
.sc-thumb { justify-self: start; position: relative; width: 52px; height: 68px; border: 2px solid #fff; border-radius: 8px; padding: 0; overflow: hidden; background: #222; color: #fff; display: grid; place-items: center; }
.sc-thumb[hidden] { display: grid; visibility: hidden; }
.sc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sc-thumb b { position: absolute; right: -2px; top: -2px; min-width: 22px; height: 22px; border-radius: 11px; background: #fff; color: #000; font-size: 12px; display: grid; place-items: center; padding: 0 5px; }
.sc-done { justify-self: end; border: 0; border-radius: 99px; padding: 11px 18px; background: #fff; color: #111; font-weight: 650; }
.scanner.flash::after { content: ""; position: absolute; inset: 0; background: #fff; animation: flash .3s ease-out forwards; pointer-events: none; }

/* ------------------------------------------------------------------ misc */

.import-row { display: flex; align-items: center; gap: 10px; }
.import-row.off { opacity: .4; }

/* ------------------------------------------------------------------ toast */

.toast {
  position: fixed;
  left: 0; right: 0; bottom: calc(24px + env(safe-area-inset-bottom) + var(--kb));
  margin: 0 auto;
  width: max-content;
  max-width: calc(100% - 32px);
  transform: translateY(30px);
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px 12px 20px;
  border-radius: 24px;
  background: var(--primary); color: var(--on-primary);
  box-shadow: var(--shadow);
  font-size: 15px;
  transition: transform .35s var(--ease), opacity .25s;
}
.toast.show { transform: none; opacity: 1; pointer-events: auto; }
.toast-btn { border: 0; background: none; color: inherit; font-weight: 650; padding: 4px 6px; text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ login & coach */

.login {
  position: fixed; inset: 0; z-index: 60;
  background: var(--bg);
  display: grid; place-items: center;
  padding: 24px;
  transition: opacity .35s;
}
.login.leaving { opacity: 0; }
.login-form { width: min(360px, 100%); display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.logo { width: 72px; height: 72px; align-self: center; fill: var(--fg); }
.logo circle:last-child { fill: var(--t-orange); }
.login-title { text-align: center; font-size: 30px; font-weight: 680; letter-spacing: -.02em; margin-bottom: 18px; }
.login-err { color: var(--danger); min-height: 1.4em; text-align: center; font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ------------------------------------------------------------------ dish of the day (start screen) */

.meal .meal-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 2px; }
.meal-what {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px;
  border: 0; background: none; color: var(--stage-fg); text-align: left; padding: 7px 4px; font-size: 15px; border-radius: 10px; min-width: 0;
}
.meal-what:active { background: var(--stage-sunk); }
.meal-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; background: none; color: var(--stage-muted); border-radius: 50%;
}
.thumb .ic { width: 20px; height: 20px; transition: color .2s, filter .2s; }
.thumb:active { background: var(--stage-sunk); }
.thumb[aria-pressed="true"] { color: var(--neon); }
.thumb[aria-pressed="true"] .ic { filter: drop-shadow(0 0 4px var(--neon)); }
.voters { position: absolute; bottom: 4px; right: 5px; display: flex; gap: 2px; }
.voters i { width: 6px; height: 6px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 4px var(--dot); }
.meal-ok { display: grid; place-items: center; width: 40px; height: 40px; color: var(--neon); grid-column: 2 / span 2; justify-self: end; }
.meal-ok .ic { width: 20px; height: 20px; filter: drop-shadow(0 0 4px var(--neon)); }

/* ------------------------------------------------------------------ recipes */

.tile-sub { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-grid .tile { min-height: 96px; padding: 14px 16px; }
.menu-grid .tile .ic { margin-bottom: 8px; }

.meal-card { display: flex; flex-direction: column; gap: 10px; background: var(--sunk); border-radius: 22px; padding: 14px; margin-top: 4px; }
.meal-card-flat { margin: 6px 0 2px; }
.meal-card-main { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border: 0; background: none; text-align: left; padding: 2px 2px 0; }
.meal-card-k { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--t-orange); }
.meal-card-title { font-size: 21px; font-weight: 620; line-height: 1.25; }
.meal-card-sub { font-size: 14px; color: var(--muted); }
.meal-status { font-size: 14px; color: var(--muted); padding: 0 2px; }
.meal-card .btn .ic, .recipe .btn .ic, .recipes .btn .ic { width: 20px; height: 20px; }
.meal-card .btn-soft { background: var(--card); }

.cat-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 10px; padding: 0 16px; touch-action: pan-x; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip { flex: none; border: 1.5px solid var(--line); background: none; border-radius: 99px; padding: 7px 13px; font-size: 14px; white-space: nowrap; }
.cat-chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.dice-box { display: flex; flex-direction: column; gap: 12px; border: 1.5px dashed var(--line); border-radius: 22px; padding: 16px 14px 14px; text-align: center; }
.dice-result { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.dice-title { border: 0; background: none; font-size: 21px; font-weight: 620; line-height: 1.25; padding: 0 4px; text-wrap: balance; }
.dice-sub { font-size: 14px; color: var(--muted); }
.dice-result .btn-row { width: 100%; margin-top: 10px; }
.dice-hint { color: var(--muted); font-size: 14px; padding: 6px 0; }
.dice-btn .ic { transition: transform .5s var(--ease); }
.dice-box.rolling .dice-btn .ic { transform: rotate(200deg); }
.dice-box.rolling .dice-title { opacity: .55; }

.recipe-top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 4px 0 8px; }
.recipe-title { font-size: 24px; font-weight: 640; line-height: 1.2; text-wrap: balance; }
.recipe-sub { font-size: 14px; color: var(--muted); }
.recipe .section-head { margin-top: 24px; }
.ing-hint { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 12px; color: var(--muted); opacity: .85; }
.ing-list { list-style: none; margin: 0 0 12px; padding: 0; touch-action: pan-y; }
.ing-head { font-size: 13px; color: var(--muted); padding: 12px 4px 4px; font-weight: 600; }
.ing-row { position: relative; transition: transform .22s var(--ease); }
.ing-row.swiping { transition: none; }
.ing-row.will-flip .ing-btn { background: var(--sunk); }
.ing-btn {
  display: flex; align-items: center; gap: 12px; width: 100%;
  border: 0; background: none; text-align: left; padding: 9px 4px; border-radius: 14px; font-size: 16px;
}
.ing-btn:active { background: var(--sunk); }
.ing-btn .box { width: 24px; height: 24px; flex: none; border-radius: 7px; border: 0; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); transition: background .15s; }
.ing-btn .box .ic { width: 16px; height: 16px; stroke-width: 2.4; opacity: 1; transform: none; }
.ing-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ing-tag { flex: none; font-size: 12px; color: var(--muted); background: var(--sunk); border-radius: 99px; padding: 2px 8px; }
.ing-row.out .box { background: none; box-shadow: inset 0 0 0 1.5px var(--faint); }
.ing-row.out .box .ic { opacity: 0; transform: scale(.4); }
.ing-row.out .ing-text { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.ing-add .ic { width: 20px; height: 20px; }
.steps { margin: 0; padding: 0 0 0 4px; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 12px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 26px 1fr; gap: 8px; line-height: 1.5; user-select: text; -webkit-user-select: text; }
.steps li::before { content: counter(step); width: 24px; height: 24px; border-radius: 50%; background: var(--sunk); color: var(--muted); font-size: 13px; font-weight: 600; display: grid; place-items: center; margin-top: 1px; }
.recipe-src { margin-top: 22px; }
.recipe-empty { text-align: center; padding: 20px 0; }

/* ------------------------------------------------------------------ dish of the day: doubt */

.meal.doubt .meal-title { color: var(--stage-muted); }
.meal.doubt .agenda-icons .ic { opacity: .5; filter: none; }
.thumb-down[aria-pressed="true"] { color: #ffb547; }
.thumb-down[aria-pressed="true"] .ic { filter: drop-shadow(0 0 4px #ffb547); }
.meal-doubt {
  display: flex; align-items: center; gap: 8px; border: 0; background: none; text-align: left;
  color: var(--stage-muted); font-size: 13px; padding: 2px 4px 0; line-height: 1.35;
}
.doubt-mark {
  flex: none; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center;
  font: 700 11px/1 system-ui, sans-serif; color: #0a0a0c; background: #ffb547; box-shadow: 0 0 6px #ffb547;
}
.meal-status.doubt { color: var(--warn); }

/* ------------------------------------------------------------------ shopping list by aisle */

.grow-main { display: flex; align-items: center; min-width: 0; flex: 1; }
.grow-row { flex-direction: column; align-items: stretch; }
.gcheck { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.icon-btn.aisle-more { flex: none; opacity: .45; }
.icon-btn.aisle-more:hover, .grow-row.picking .icon-btn.aisle-more { opacity: 1; }
.aisle-chip {
  flex: none; border: 1.5px dashed var(--faint); background: none; color: var(--muted);
  border-radius: 99px; padding: 4px 10px; font-size: 13px; margin-left: 6px;
}
.aisle { margin-bottom: 4px; }
.aisle-head {
  display: flex; align-items: baseline; gap: 8px; margin: 18px 4px 2px;
  font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
.aisle:first-child .aisle-head { margin-top: 10px; }
.aisle-n { font-weight: 500; letter-spacing: 0; opacity: .7; }
.aisle-pick { display: flex; flex-direction: column; gap: 8px; padding: 4px 4px 12px 40px; animation: fade-in .25s var(--ease); }
.aisle-pick-k { font-size: 12px; color: var(--muted); }
.aisle-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.aisle-chips .cat-chip { padding: 6px 11px; font-size: 13.5px; }
.grow-row.picking .gcheck { background: var(--sunk); }
.aisle-hint { text-align: center; padding: 22px 12px 6px; line-height: 1.45; }
.aisle .gcheck { padding: 9px 4px; }

/* ------------------------------------------------------------------ plants (Athena feeding schedule) */

/* start screen: under the dish, in the style of "Als Nächstes" */
.plant-line {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 10px;
  border: 0; background: none; color: var(--stage-fg); text-align: left; padding: 7px 4px; font-size: 15px; border-radius: 10px;
}
.plant-line:active { background: var(--stage-sunk); }
.plant-line .agenda-icons { padding-top: 3px; }
.plant-text { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.plant-dose { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plant-when { display: flex; min-width: 0; font-size: 13px; color: var(--stage-muted); white-space: pre; }
.plant-where { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.plant-chg { flex: none; }
.plant-new { color: var(--neon); text-shadow: 0 0 6px color-mix(in srgb, var(--neon) 60%, transparent); }

/* a full start screen on a small phone (set in renderCenter when the content would not fit) */
.center-overview.tight { gap: 14px; }
.tight .clock-time { font-size: 60px; }
.tight .agenda-head { margin-bottom: 4px; }
.tight .agenda-line, .tight .plant-line, .tight .meal-what { padding-block: 5px; }

/* screens */
.plants-screen { display: flex; flex-direction: column; gap: 10px; }
.menu-grid .tile-wide { min-height: 0; padding: 16px; }
.menu-grid .tile-wide .tile-hint { max-width: 132px; font-size: 13px; }
.plant-card {
  display: flex; flex-direction: column; gap: 6px; width: 100%;
  border: 0; background: var(--sunk); border-radius: 22px; padding: 14px 16px 15px; text-align: left;
}
.plant-card:active { background: color-mix(in srgb, var(--fg) 6%, var(--sunk)); }
.plant-card-top { display: flex; align-items: baseline; gap: 10px; }
.plant-card-name { flex: 1; min-width: 0; font-size: 18px; font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plant-card-week { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.plant-card-sub { font-size: 14px; color: var(--t-green); font-weight: 560; }
.plant-card-dose { font-size: 15px; font-variant-numeric: tabular-nums; }
.plant-card .plant-bar { margin: 4px 0 2px; }
.plant-foot { text-align: center; padding: 18px 8px 6px; }

.plant-bar { display: flex; gap: 3px; height: 6px; }
.pb-seg { position: relative; flex-basis: 0; border-radius: 99px; overflow: hidden; }
.pb-veg { background: color-mix(in srgb, var(--t-green) 22%, transparent); }
.pb-bloom { background: color-mix(in srgb, var(--t-orange) 22%, transparent); }
.pb-fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; }
.pb-veg .pb-fill { background: var(--t-green); }
.pb-bloom .pb-fill { background: var(--t-orange); }
.plant-bar-labels { position: relative; height: 18px; margin-top: 6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.plant-bar-labels span { position: absolute; top: 0; }
.lb-start { left: 0; }
.lb-bloom { margin-left: 3px; }
.lb-end { right: 0; }

.plant-top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 6px 0 16px; }
.plant-k { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--t-green); }
.plant-big { font-size: 34px; font-weight: 640; letter-spacing: -.02em; line-height: 1.15; }
.plant-sub { font-size: 14px; color: var(--muted); }
.plant .section-head { margin-top: 24px; }
.litres-wrap { display: inline-flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.field.litres { width: 64px; padding: 4px 8px; min-height: 32px; text-align: center; border-radius: 10px; font-size: 15px; }

.mix { list-style: none; margin: 0; padding: 0; counter-reset: mix; }
.mix-row {
  counter-increment: mix; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px;
  padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: 17px;
}
.mix-row::before {
  content: counter(mix); width: 22px; height: 22px; border-radius: 50%; background: var(--sunk); color: var(--muted);
  font-size: 12px; font-weight: 600; display: grid; place-items: center;
}
.mix-name { font-weight: 560; }
.mix-ml { font-variant-numeric: tabular-nums; font-weight: 620; }
.mix-ph { font-size: 15px; }
.mix-ph .mix-name { font-weight: 400; color: var(--muted); }
.mix-ph .mix-ml { font-weight: 400; color: var(--muted); font-size: 14px; }
.mix-ec { font-size: 14px; color: var(--muted); padding: 8px 4px 0; text-align: right; font-variant-numeric: tabular-nums; }

.plant-next { display: flex; flex-direction: column; gap: 2px; margin-top: 20px; padding: 12px 14px; border-radius: 18px; border: 1.5px dashed var(--line); }
.plant-next-k { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.plant-next-when { font-size: 17px; font-weight: 600; }
.plant-next-what { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }

.plan { list-style: none; margin: 0; padding: 0; }
.plan-step { display: grid; grid-template-columns: 102px 1fr; gap: 8px; padding: 9px 6px; border-radius: 12px; font-variant-numeric: tabular-nums; }
.plan-when { font-size: 14px; color: var(--muted); padding-top: 1px; white-space: nowrap; }
.plan-what { display: flex; flex-direction: column; min-width: 0; }
.plan-phase { font-weight: 560; }
.plan-dose { font-size: 14px; color: var(--muted); }
.plan-step.past { opacity: .5; }
.plan-step.now { background: color-mix(in srgb, var(--t-green) 14%, transparent); }
.plan-step.now .plan-phase { color: var(--t-green); }
.form-err { color: var(--danger); font-size: 15px; }
.form-err:empty { display: none; }

/* the menu has no scroll (swipe up closes it): on short phones the tiles get a little flatter */
@media (max-height: 800px) {
  .menu { gap: 8px; padding-top: 8px; }
  .menu-grid { gap: 8px; }
  .menu-grid .tile { min-height: 0; padding: 11px 14px; }
  .menu-grid .tile .ic { width: 22px; height: 22px; margin-bottom: 4px; }
  .menu-grid .tile-wide { padding: 11px 14px; }
  .menu-grid .tile-wide .ic { margin: 0; }
}

/* ------------------------------------------------------------------ lists (v1.11): checklists / packing lists */

/* Einkauf | Listen: two tabs in the header, the open one in full colour */
.head-tabs { flex: 1; display: flex; align-items: baseline; gap: 18px; padding-left: 4px; min-width: 0; }
.head-tab {
  border: 0; background: none; padding: 2px 0 4px; position: relative;
  font-size: 22px; font-weight: 650; letter-spacing: -.01em; color: var(--muted); white-space: nowrap;
}
.head-tab[aria-selected="true"] { color: var(--fg); }
.head-tab[aria-selected="true"]::after {
  content: ''; position: absolute; left: 1px; right: 1px; bottom: -1px; height: 2px; border-radius: 2px; background: currentColor;
}
.head-tab:active { opacity: .6; }
@media (max-width: 370px) { .head-tabs { gap: 14px; } .head-tab { font-size: 20px; } }

.list-hint { text-align: center; padding: 22px 12px 6px; line-height: 1.45; }
.screen-body[hidden] { display: none; }
.lists-tab { padding-top: 8px; }
.tab-in-r { animation: tab-in-r .26s var(--ease); }
.tab-in-l { animation: tab-in-l .26s var(--ease); }
@keyframes tab-in-r { from { opacity: .3; transform: translateX(28px); } }
@keyframes tab-in-l { from { opacity: .3; transform: translateX(-28px); } }

/* a list: open entries, then the ticked ones (they stay — lists get used again) */
.checklist .glist { margin-top: 2px; }
.check-row .gcheck { padding: 11px 4px; }
.check-row.done .gtext { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.check-row.done .box, .check-row.ticking .box { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.check-row.done .box .ic, .check-row.ticking .box .ic { opacity: 1; transform: none; }
.check-row.ticking .gtext { color: var(--muted); text-decoration: line-through; }
.check-row.unticking .box { background: none; border-color: var(--faint); }
.check-row.unticking .box .ic { opacity: 0; transform: scale(.4); }
.check-row.unticking .gtext { color: var(--fg); text-decoration: none; }
.done-list .check-row .box { width: 24px; height: 24px; }
.check-row.done.unticking .box { background: none; border-color: var(--faint); }
.entry-edit { display: flex; align-items: center; gap: 4px; padding: 2px 0 10px 40px; animation: fade-in .25s var(--ease); }
.entry-edit .field { flex: 1; min-width: 0; }
.all-done { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); }
.all-done .ic { width: 20px; height: 20px; color: var(--t-green); stroke-width: 2.2; }
.list-owner { font-size: 13px; color: var(--tone); font-weight: 560; margin: 0 4px 4px; }
.checklist .section-head .link { padding: 4px 2px; }
.list-link { margin-top: 6px; color: var(--muted); }
.list-eve { margin-top: 8px; }

/* the reminder's card on the start screen: the list it carries */
.sel-list .ic { color: var(--neon); filter: drop-shadow(0 0 3px var(--neon)); }
.sel-list { border-bottom: 1px solid var(--stage-faint); padding-block: 9px; width: 100%; }

/* ------------------------------------------------------------------ settings: updates per day */

.settings .section:first-child { margin-top: 8px; }
.set-lead { font-size: 15px; color: var(--muted); line-height: 1.45; margin: 0 4px 14px; }
.set-count { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 2px 0 16px; }
.icon-btn.set-step { width: 52px; height: 52px; background: var(--sunk); }
.icon-btn.set-step .ic { width: 22px; height: 22px; }
.icon-btn.set-step:disabled { opacity: .3; }
.set-num { display: flex; align-items: baseline; justify-content: center; gap: 4px; min-width: 132px; font-variant-numeric: tabular-nums; }
.set-num b { font-size: 46px; font-weight: 300; letter-spacing: -.02em; line-height: 1; }
.set-num span { font-size: 15px; color: var(--muted); }
.set-hours { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.set-hour {
  height: 42px; border: 0; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted); font: inherit; font-size: 15px; font-variant-numeric: tabular-nums;
  touch-action: manipulation; transition: background .15s, color .15s, transform .1s;
}
.set-hour[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); box-shadow: none; font-weight: 600; }
.set-hour:active { transform: scale(.95); }
.set-times { margin: 12px 4px 4px; font-size: 15px; font-weight: 560; font-variant-numeric: tabular-nums; text-align: center; }
.set-hint { margin: 0 4px; line-height: 1.45; }
.set-count + .set-hours + .set-times + .set-hint { text-align: center; }
.set-facts { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 4px; padding: 14px 16px; border-radius: 18px; background: var(--sunk); font-size: 14px; }
.set-facts p { display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; }
.set-facts .ic { width: 18px; height: 18px; flex: none; color: var(--muted); margin-top: 1px; }
.set-cron-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.set-cron {
  flex: 1; min-width: 0; padding: 11px 14px; border-radius: 16px; background: var(--sunk);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; line-height: 1.45;
  overflow-wrap: anywhere; user-select: all; -webkit-user-select: all;
}
