/* Smart Inventory — mobile-first UI. No framework, no build step. */
:root {
  --bg: #f4f5f1; --card: #ffffff; --card2: #eef0eb; --text: #17201c; --muted: #66716b; --line: #dfe3dc;
  --accent: #23705a; --accent-text: #ffffff; --accent-soft: #dcefe7;
  --warn: #a15c00; --warn-soft: #fbecd2; --bad: #b3261e; --bad-soft: #fbe3e1; --info: #1f5fa8; --info-soft: #dfeaf8;
  --radius: 18px; --tap: 48px; --shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 6px 20px rgba(20, 30, 25, .06);
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101312; --card: #1a1f1d; --card2: #232a27; --text: #e9eeeb; --muted: #9aa6a0; --line: #2c3431;
    --accent: #5fcfa5; --accent-text: #06241a; --accent-soft: #17352b;
    --warn: #f2b556; --warn-soft: #3a2c12; --bad: #ff8a80; --bad-soft: #3d1b19; --info: #8fc0ff; --info-soft: #16293f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overscroll-behavior-y: contain; min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
h1 { font-size: 26px; line-height: 1.15; margin: 0; letter-spacing: -.02em; }
h2 { font-size: 15px; margin: 22px 4px 8px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
h3 { font-size: 17px; margin: 0; }
p { margin: 0 0 8px; }
[hidden] { display: none !important; }

#app { max-width: 640px; margin: 0 auto; padding: calc(14px + var(--safe-t)) 14px calc(96px + var(--safe-b)); }
.boot { padding: 40vh 0 0; text-align: center; font-size: 22px; font-weight: 700; color: var(--muted); }
.top { display: flex; align-items: center; gap: 10px; margin: 2px 2px 14px; min-height: 44px; }
.top h1 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.top .sub { color: var(--muted); font-size: 14px; }
.back { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); box-shadow: var(--shadow); font-size: 20px; flex: none; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; } .grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; } .wrap { flex-wrap: wrap; } .col { display: flex; flex-direction: column; gap: 10px; }
.sp { height: 10px; }

/* cards */
.card { background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); margin-bottom: 10px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card.tap { cursor: pointer; } .card.tap:active { transform: scale(.985); }
.card h3 + .muted { margin-top: 2px; }
.list { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 10px; }
.list > * { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: var(--tap); border-bottom: 1px solid var(--line); color: inherit; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.list > *:last-child { border-bottom: 0; }
.list .ttl { font-weight: 600; overflow-wrap: anywhere; } .list .chev { color: var(--muted); flex: none; }
.empty { text-align: center; color: var(--muted); padding: 28px 16px; }
.empty .big { font-size: 40px; display: block; margin-bottom: 6px; }

/* home */
.hero { display: flex; align-items: center; gap: 14px; margin: 4px 2px 16px; }
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 15px;
  background: radial-gradient(closest-side, var(--bg) 78%, transparent 80% 100%), conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line) 0); }
.today { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -14px 6px; padding-left: 14px; padding-right: 14px; scrollbar-width: none; }
.today::-webkit-scrollbar { display: none; }
.stat { flex: none; min-width: 108px; background: var(--card); border-radius: 16px; padding: 10px 12px; box-shadow: var(--shadow); border: 0; text-align: left; }
.stat b { display: block; font-size: 24px; line-height: 1.1; } .stat span { font-size: 12.5px; color: var(--muted); display: block; margin-top: 2px; }
.stat.warn b { color: var(--warn); } .stat.bad b { color: var(--bad); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--card); border: 0; border-radius: 22px; padding: 16px 14px; min-height: 112px; text-align: left; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.tile:active { transform: scale(.97); }
.tile .em { font-size: 30px; line-height: 1; } .tile b { font-size: 17px; } .tile small { color: var(--muted); display: block; font-size: 12.5px; margin-top: 1px; }
.tile.primary { background: var(--accent); color: var(--accent-text); } .tile.primary small { color: inherit; opacity: .85; }
.tile .badge { position: absolute; top: 12px; right: 12px; }
.badge { display: inline-block; min-width: 24px; padding: 2px 8px; border-radius: 12px; background: var(--bad); color: #fff; font-size: 13px; font-weight: 700; text-align: center; }
.badge.soft { background: var(--card2); color: var(--text); }

/* buttons, inputs */
.btn { min-height: var(--tap); padding: 0 16px; border-radius: 14px; border: 0; background: var(--card2); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.btn:active { transform: scale(.97); } .btn[disabled] { opacity: .5; }
.btn.primary { background: var(--accent); color: var(--accent-text); } .btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn.ghost { background: transparent; border: 1px solid var(--line); } .btn.block { width: 100%; } .btn.big { min-height: 60px; font-size: 18px; border-radius: 18px; }
.btn.sm { min-height: 38px; padding: 0 12px; font-size: 14px; border-radius: 11px; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; } .btns .btn { flex: 1 1 auto; }
.field { display: block; margin-bottom: 10px; } .field > span { display: block; font-size: 13px; color: var(--muted); margin: 0 4px 4px; }
input[type=text], input[type=search], input[type=password], input[type=email], input[type=number], input[type=date], select, textarea {
  width: 100%; min-height: var(--tap); padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); outline: none; }
textarea { min-height: 92px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.search { position: sticky; top: calc(6px + var(--safe-t)); z-index: 5; display: flex; gap: 8px; margin-bottom: 12px; }
.search input { box-shadow: var(--shadow); border-color: transparent; }
.seg { display: flex; background: var(--card2); border-radius: 13px; padding: 3px; margin-bottom: 12px; }
.seg button { flex: 1; min-height: 38px; border: 0; background: none; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--text); box-shadow: var(--shadow); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 13px; background: var(--card2); border: 0; max-width: 100%; overflow-wrap: anywhere; }
.chip.ok { background: var(--accent-soft); color: var(--accent); } .chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); } .chip.info { background: var(--info-soft); color: var(--info); }
button.chip { min-height: 36px; padding: 6px 12px; font-size: 14px; } button.chip.on { background: var(--accent); color: var(--accent-text); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: currentColor; flex: none; }

/* items */
.item { display: flex; gap: 12px; align-items: center; }
.thumb { width: 52px; height: 52px; border-radius: 12px; background: var(--card2) center/cover no-repeat; flex: none; display: grid; place-items: center; font-size: 22px; color: var(--muted); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.lg { width: 84px; height: 84px; border-radius: 16px; }
.photos { display: flex; gap: 6px; overflow-x: auto; margin: 0 -14px 10px; padding: 0 14px; scrollbar-width: none; }
.photos img { height: 130px; border-radius: 14px; flex: none; background: var(--card2); }
.where { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; margin-top: 8px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }

/* progress */
.bar { height: 8px; border-radius: 6px; background: var(--line); overflow: hidden; } .bar > i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .4s; }
.steps { display: flex; gap: 6px; margin: 0 2px 14px; } .steps i { flex: 1; height: 4px; border-radius: 3px; background: var(--line); } .steps i.on { background: var(--accent); }
.route { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.route .stop { flex: none; background: var(--card); border-radius: 14px; padding: 8px 12px; box-shadow: var(--shadow); font-size: 14px; } .route .stop b { display: block; }
.route .arr { color: var(--muted); flex: none; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.grid3 .ph { aspect-ratio: 1; border-radius: 12px; background: var(--card2) center/cover; position: relative; overflow: hidden; }
.grid3 .ph img { width: 100%; height: 100%; object-fit: cover; }
.grid3 .ph span { position: absolute; inset: auto 4px 4px auto; font-size: 11px; padding: 1px 6px; border-radius: 8px; background: rgba(0, 0, 0, .6); color: #fff; }

/* chat */
.bubble { max-width: 92%; padding: 10px 14px; border-radius: 18px; margin-bottom: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.me { background: var(--accent); color: var(--accent-text); margin-left: auto; border-bottom-right-radius: 6px; }
.bubble.bot { background: var(--card); box-shadow: var(--shadow); border-bottom-left-radius: 6px; }
.ask { position: sticky; bottom: calc(86px + var(--safe-b)); display: flex; gap: 8px; margin-top: 12px; }
.ask input { box-shadow: var(--shadow); border-color: transparent; }

/* nav */
#nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around; align-items: center; background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + var(--safe-b)); }
#nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 11.5px; color: var(--muted); padding: 5px 0; min-height: var(--tap); justify-content: center; }
#nav a .ic { font-size: 21px; line-height: 1; filter: grayscale(1); opacity: .75; } #nav a.on { color: var(--accent); font-weight: 600; } #nav a.on .ic { filter: none; opacity: 1; }
#scanbtn { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-text); font-size: 26px; margin-top: -22px; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); flex: none; }

/* sheet */
.sheet { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.sheet-body { position: relative; width: 100%; max-width: 640px; max-height: 92dvh; overflow-y: auto; background: var(--bg); border-radius: 24px 24px 0 0; padding: 10px 14px calc(18px + var(--safe-b)); animation: up .22s ease-out; overscroll-behavior: contain; }
.sheet-body::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 10px; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.sheet-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; } .sheet-head h3 { flex: 1; font-size: 20px; overflow-wrap: anywhere; }
.x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--card2); font-size: 18px; flex: none; }
video.cam { width: 100%; border-radius: 16px; background: #000; aspect-ratio: 3/4; object-fit: cover; }

/* toasts */
#toasts { position: fixed; left: 0; right: 0; bottom: calc(88px + var(--safe-b)); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 12px; }
.toast { pointer-events: auto; max-width: 560px; width: 100%; background: #1d2622; color: #fff; border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); animation: up .2s ease-out; }
.toast.err { background: #7a1d17; } .toast span { flex: 1; overflow-wrap: anywhere; } .toast button { border: 0; background: none; color: #8fe3c0; font-weight: 700; min-height: 36px; padding: 0 6px; }
.offline { background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: 8px 12px; font-size: 14px; margin-bottom: 10px; }
.login { max-width: 380px; margin: 12vh auto 0; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: sp .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes sp { to { transform: rotate(360deg); } }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* 0.3: inventory candidates, sorting, scanner ladder */
.tile.accent2 { background: var(--accent-soft); }
.card.unknown { border: 1px dashed var(--bad); }
.quote { margin: 10px 0 0; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--card2); border-radius: 0 12px 12px 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.plain { border: 0; background: none; padding: 0; text-align: left; min-width: 0; color: inherit; }
button.plain.item { width: 100%; }
.thumb.zoom { position: relative; }
.thumb.zoom img { position: absolute; left: 0; top: 0; width: auto; height: auto; max-width: none; object-fit: fill; }
.shot { position: relative; margin-bottom: 10px; }
.shot img { width: 100%; display: block; border-radius: 14px; }
.shot i { position: absolute; border: 3px solid #ff3b30; border-radius: 6px; box-shadow: 0 0 0 2000px rgba(0, 0, 0, .28); pointer-events: none; }
.shot i.approx { border-style: dashed; border-color: #ffb020; box-shadow: none; }
.shot { overflow: hidden; border-radius: 14px; }
.offline.info { background: var(--info-soft); color: var(--info); } .offline.bad { background: var(--bad-soft); color: var(--bad); }
.ladder { list-style: none; margin: 10px 0 0; padding: 0; }
.ladder li { position: relative; padding: 4px 0 4px 28px; font-size: 14.5px; overflow-wrap: anywhere; }
.ladder li::before { position: absolute; left: 2px; top: 4px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.ladder li.ok::before { content: "✓"; background: var(--accent-soft); color: var(--accent); }
.ladder li.no::before { content: "!"; background: var(--warn-soft); color: var(--warn); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
details.card summary { font-weight: 600; cursor: pointer; min-height: 28px; }
.list > .wraprow { flex-wrap: wrap; }
.list .row.plain { display: flex; align-items: center; gap: 12px; }

/* 0.4: Склад, places, storage plans, audit log, labels, the guided tour */
.code { display: inline-block; font: 600 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 1px 6px; border-radius: 6px; background: var(--info-soft); color: var(--info); margin-left: 4px; vertical-align: 1px; }
.steps-path { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-weight: 600; margin-top: 2px; }
.steps-path .arr { color: var(--muted); font-weight: 400; }
.tree { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 8px; margin-bottom: 10px; }
.tree .sum { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 6px; border-radius: 10px; cursor: pointer; list-style: none; }
.tree summary::-webkit-details-marker { display: none; }
.tree details > summary .ic::before { content: "▸ "; color: var(--muted); font-size: 12px; }
.tree details[open] > summary .ic::before { content: "▾ "; }
.tree .leafnode .ic::before { content: "  "; white-space: pre; font-size: 12px; }
.tree .kids { margin-left: 16px; border-left: 1px solid var(--line); padding-left: 6px; }
.tree .root .sum { cursor: default; }
.tree .ttl { font-weight: 600; overflow-wrap: anywhere; }
.tree .open { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--card2); color: var(--text); font-size: 18px; flex: none; }
.tree .leaf { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; text-align: left; min-height: 38px; padding: 4px 6px 4px 22px; font-size: 15px; border-radius: 10px; }
.tree .leaf:active, .tree .sum:active { background: var(--card2); }
.cand { display: flex; align-items: flex-start; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.cand .ic { font-size: 20px; width: 26px; text-align: center; flex: none; }
.card.prop[data-state="PROPOSED"] { border: 1px dashed var(--warn); }
.card.prop[data-state="DONE"] { opacity: .7; }
.audit { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.auditlist { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 10px; }
.audit .row { gap: 8px; flex-wrap: wrap; }
.label-one { display: flex; gap: 14px; align-items: center; background: #fff; color: #000; border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.label-one img.qr, .label img { width: 120px; height: 120px; flex: none; }
.big-code { font: 700 26px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; }
.label-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin-top: 12px; }
.label { display: flex; gap: 10px; align-items: center; background: #fff; color: #000; border: 1px dashed #999; border-radius: 8px; padding: 8px; break-inside: avoid; }
#tour { position: fixed; inset: 0; z-index: 80; }
#tour.pass { pointer-events: none; }
.tour-hole { position: fixed; border-radius: 14px; box-shadow: 0 0 0 4000px rgba(0, 0, 0, .62); outline: 3px solid var(--accent); pointer-events: none; transition: all .25s; }
.tour-tip { position: fixed; left: 12px; right: 12px; max-width: 520px; margin: 0 auto; background: var(--card); color: var(--text); border-radius: 18px; padding: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, .45); pointer-events: auto; }
.tour-tip h3 { margin: 2px 0 6px; }
@media print {
  #nav, #toasts, #sheet, #tour, .noprint { display: none !important; }
  body { background: #fff; } #app { max-width: none; padding: 0; }
  .label-sheet { grid-template-columns: repeat(2, 1fr); }
}

/* evidence behind an identification */
.why { margin-top: 8px; font-size: 14px; }
.why summary { cursor: pointer; color: var(--muted); padding: 6px 0; min-height: 32px; }
.why-row { display: flex; gap: 8px; align-items: baseline; padding: 5px 0; border-top: 1px solid var(--line); }
.why-row .dot { flex: 0 0 9px; height: 9px; border-radius: 50%; background: var(--muted); transform: translateY(1px); }
.why-row .dot.strong { background: var(--accent); }
.why-row .dot.medium { background: var(--warn); }
.why-row .dot.weak { background: var(--line); border: 1px solid var(--muted); }
.conf-HIGH { color: var(--accent); } .conf-MEDIUM { color: var(--warn); } .conf-LOW { color: var(--bad); }

/* ---- 1.0: home screen, picker, tasks, statistics */
.tiles { margin-bottom: 10px; }
.tile.sm { min-height: 92px; padding: 14px 12px; border-radius: 18px; gap: 8px; }
.tile.sm .em { font-size: 26px; } .tile.sm b { font-size: 15.5px; line-height: 1.2; display: block; } .tile.sm small { font-size: 12px; line-height: 1.25; }
.home-name { text-align: left; padding: 0; color: inherit; } .home-name h1 { margin: 0; } .caret { color: var(--muted); font-size: .7em; }
.start-btn { width: 100%; display: flex; align-items: center; gap: 14px; background: var(--accent); color: var(--accent-text); border: 0; border-radius: 22px; padding: 18px 18px; margin: 4px 0 14px; text-align: left; box-shadow: var(--shadow); min-height: 76px; }
.start-btn:active { transform: scale(.985); } .start-btn .em { font-size: 26px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center; flex: none; }
.start-btn b { font-size: 21px; display: block; } .start-btn small { opacity: .88; font-size: 13px; display: block; margin-top: 1px; }
.start-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.start-tile { background: var(--card2); border: 0; border-radius: 18px; padding: 14px 12px; text-align: left; min-height: 96px; display: flex; flex-direction: column; gap: 4px; color: inherit; }
.start-tile:active { transform: scale(.97); } .start-tile .em { font-size: 26px; line-height: 1; } .start-tile b { font-size: 15.5px; } .start-tile small { color: var(--muted); font-size: 12px; line-height: 1.25; }
a.card.cont { display: flex; color: inherit; align-items: center; }
.bar { display: block; height: 6px; border-radius: 3px; background: var(--card2); margin-top: 6px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.picker .sheet-body { max-height: 88vh; }
.picklist { display: flex; flex-direction: column; gap: 6px; }
.pick-row { display: flex; align-items: center; gap: 8px; background: var(--card2); border-radius: 14px; padding: 4px 8px 4px 4px; }
.pick-row > .plain { display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 6px 8px; text-align: left; color: inherit; min-width: 0; }
.pick-row .ic { font-size: 20px; flex: none; width: 26px; text-align: center; } .pick-row .ttl { overflow-wrap: anywhere; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 8px 0 4px; } .crumbs .arr { color: var(--muted); }
.field-pick { text-align: left; justify-content: flex-start; font-weight: 500; overflow-wrap: anywhere; }
.need.done { opacity: .72; } .need.skipped { opacity: .5; } .need .match { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; color: inherit; background: var(--card2); border-radius: 12px; padding: 8px 10px; margin-top: 8px; min-height: var(--tap); }
ol.route { margin: 8px 0 0; padding-left: 20px; } ol.route li { margin: 6px 0; line-height: 1.35; }
.statgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 10px; } .statgrid .stat { min-width: 0; display: block; color: inherit; } .statgrid .stat b { font-size: 22px; overflow-wrap: anywhere; }
@media (min-width: 520px) { .statgrid { grid-template-columns: repeat(3, 1fr); } }
.bars { display: flex; flex-direction: column; gap: 8px; } .bar-row { display: grid; grid-template-columns: minmax(84px, 34%) 1fr auto; gap: 8px; align-items: center; color: inherit; font-size: 14px; min-height: 28px; }
.bar-row .bl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bar-row .bt { height: 10px; background: var(--card2); border-radius: 5px; overflow: hidden; } .bar-row .bt i { display: block; height: 100%; background: var(--accent); border-radius: 5px; }
.bar-row .bv { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.spark { width: 100%; height: 90px; color: var(--accent); display: block; }
.center { text-align: center; }

/* ------------------------------------------------------------------ 1.3: the personal part (today, tasks, notes, links, habits) and the wide screen
   One scale for gaps (4 · 8 · 12 · 16 · 24), one height for a control (--tap), one radius for a surface. */
:root { --g1: 4px; --g2: 8px; --g3: 12px; --g4: 16px; --g5: 24px; --side: 0px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.h2row { display: flex; align-items: baseline; gap: var(--g2); margin: 22px 4px 8px; } .h2row h2 { margin: 0; flex: 1; } .h2row a, .h2row button { font-size: 14px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); box-shadow: var(--shadow); font-size: 19px; flex: none; position: relative; cursor: pointer; display: inline-grid; place-items: center; color: inherit; }
.icon-btn .n { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.help-q { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--muted); font-size: 13px; font-weight: 700; flex: none; cursor: pointer; }
.hint { background: var(--info-soft); color: var(--text); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.hint .x { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 16px; min-width: 36px; min-height: 36px; }
.qadd { display: flex; gap: 8px; margin-bottom: 10px; } .qadd input { box-shadow: var(--shadow); border-color: transparent; }
.qadd-hint { font-size: 13px; color: var(--muted); margin: -4px 6px 10px; min-height: 18px; }
.trow { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); min-height: var(--tap); background: none; width: 100%; text-align: left; color: inherit; }
.trow:last-child { border-bottom: 0; } .trow .body { flex: 1; min-width: 0; cursor: pointer; padding-top: 3px; }
.trow .ttl { font-weight: 600; overflow-wrap: anywhere; } .trow.done .ttl { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.trow .meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; } .trow .meta .late { color: var(--bad); font-weight: 600; }
.cbx { width: 38px; height: 38px; border: 0; background: none; flex: none; cursor: pointer; position: relative; padding: 0; margin: -3px -4px 0 -6px; }
.cbx::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 2px solid var(--muted); }
.cbx.on::before { background: var(--accent); border-color: var(--accent); } .cbx.on::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent-text); font-size: 14px; font-weight: 700; }
.cbx.p1::before { border-color: var(--bad); } .cbx.p2::before { border-color: var(--warn); } .cbx.p3::before { border-color: var(--info); } .cbx.sq::before { border-radius: 7px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 -14px 12px; padding: 2px 14px; scrollbar-width: none; } .tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; min-height: 38px; padding: 0 14px; border-radius: 19px; border: 0; background: var(--card2); font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.tabs button.on { background: var(--accent); color: var(--accent-text); } .tabs button .n { opacity: .8; font-weight: 500; margin-left: 4px; }
.mods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.mod { background: var(--card); border: 0; border-radius: 16px; padding: 10px 4px 8px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 68px; color: inherit; font-size: 12.5px; position: relative; cursor: pointer; }
.mod .em { font-size: 24px; line-height: 1.1; } .mod .n { position: absolute; top: 6px; right: 8px; font-size: 11px; font-weight: 700; color: var(--accent); }
.kcard { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); min-height: var(--tap); color: inherit; }
.kcard:last-child { border-bottom: 0; } .kcard .em { font-size: 20px; width: 26px; text-align: center; flex: none; } .kcard .ttl { font-weight: 600; overflow-wrap: anywhere; }
.kcard .sub { font-size: 13px; color: var(--muted); display: block; } .kcard.late .sub { color: var(--bad); } .kcard.done .ttl { color: var(--muted); text-decoration: line-through; }
.kcard a.body, .kcard .body { flex: 1; min-width: 0; color: inherit; }
.pbar { height: 6px; border-radius: 3px; background: var(--card2); overflow: hidden; margin-top: 5px; } .pbar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.rel { display: flex; flex-wrap: wrap; gap: 6px; } .rel a, .rel button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 12px; background: var(--card2); color: inherit; font-size: 14px; border: 0; max-width: 100%; min-height: 36px; }
.rel .lbl { color: var(--muted); font-size: 12px; }
.sugg { background: var(--accent-soft); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; } .sugg .btns { margin-top: 8px; }
/* notes */
.note-ed { width: 100%; min-height: 52vh; border: 0; background: var(--card); border-radius: var(--radius); padding: 16px; font-size: 17px; line-height: 1.5; box-shadow: var(--shadow); resize: none; outline: none; }
.note-title { width: 100%; border: 0 !important; background: none !important; font-size: 22px; font-weight: 700; padding: 4px 4px 8px !important; min-height: 0 !important; }
.note-bar { display: flex; gap: 6px; align-items: center; margin: 8px 0; flex-wrap: wrap; } .note-bar .state { margin-left: auto; font-size: 13px; color: var(--muted); }
.note-card { display: block; background: var(--card); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); margin-bottom: 8px; color: inherit; border: 0; width: 100%; text-align: left; cursor: pointer; }
.note-card b { display: block; overflow-wrap: anywhere; } .note-card .pv { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.note-card .ft { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; gap: 10px; }
/* links */
.bm { display: flex; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); color: inherit; align-items: flex-start; min-height: var(--tap); cursor: pointer; background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; }
.bm:last-child { border-bottom: 0; } .bm .pic { width: 64px; height: 64px; border-radius: 12px; background: var(--card2); flex: none; overflow: hidden; display: grid; place-items: center; font-size: 22px; }
.bm .pic img { width: 100%; height: 100%; object-fit: cover; } .bm .ttl { font-weight: 600; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bm .dom { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 2px; } .bm.sel { background: var(--accent-soft); }
.bm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 10px; }
.bm-grid .bm { flex-direction: column; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); border: 0; padding: 0 0 10px; gap: 6px; overflow: hidden; }
.bm-grid .bm .pic { width: 100%; height: 100px; border-radius: 0; } .bm-grid .bm .grow { padding: 0 10px; }
.bm-compact .bm { padding: 8px 12px; } .bm-compact .bm .pic { width: 22px; height: 22px; border-radius: 5px; font-size: 14px; } .bm-compact .bm .ttl { -webkit-line-clamp: 1; font-weight: 500; }
.dotst { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted); flex: none; } .dotst.ok { background: var(--accent); } .dotst.warn { background: var(--warn); } .dotst.bad { background: var(--bad); }
.coll { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; border: 0; background: none; width: 100%; text-align: left; color: inherit; min-height: 42px; cursor: pointer; }
.coll.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; } .coll .n { margin-left: auto; color: var(--muted); font-size: 13px; } .coll.drop { outline: 2px dashed var(--accent); }
.viewer { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 10px; }
.viewer iframe { width: 100%; height: 72vh; border: 0; display: block; background: #fff; } .viewer img.shot { width: 100%; display: block; } .viewer .reader { padding: 16px; font-size: 17px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 760px; margin: 0 auto; }
.diff div { padding: 2px 10px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; } .diff .add { background: var(--accent-soft); } .diff .del { background: var(--bad-soft); text-decoration: line-through; } .diff .gap { color: var(--muted); text-align: center; }
mark.hl { background: #ffe58a; color: #17201c; border-radius: 3px; padding: 0 2px; }
/* habits */
.habit { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 12px; margin-bottom: 10px; display: flex; gap: 12px; align-items: center; }
.habit .em { font-size: 28px; width: 40px; text-align: center; flex: none; } .habit .body { flex: 1; min-width: 0; cursor: pointer; } .habit .ttl { font-weight: 700; overflow-wrap: anywhere; }
.habit .sub { font-size: 13px; color: var(--muted); } .habit .week { display: flex; gap: 4px; margin-top: 6px; }
.habit .week i { width: 16px; height: 16px; border-radius: 5px; background: var(--card2); display: block; } .habit .week i.d { background: var(--accent); } .habit .week i.p { background: color-mix(in srgb, var(--accent) 45%, var(--card2)); } .habit .week i.s { background: var(--info-soft); } .habit .week i.f { background: var(--bad-soft); } .habit .week i.n { opacity: .35; } .habit .week i.t { outline: 2px solid var(--text); outline-offset: 1px; }
.hbtn { min-width: 52px; min-height: 52px; border-radius: 50%; border: 2px solid var(--accent); background: none; color: var(--accent); font-size: 20px; font-weight: 700; flex: none; cursor: pointer; } .hbtn.on { background: var(--accent); color: var(--accent-text); }
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 13px); gap: 3px; overflow-x: auto; padding-bottom: 6px; justify-content: start; }
.heat i { width: 13px; height: 13px; border-radius: 3px; background: var(--card2); display: block; } .heat i.l1 { background: color-mix(in srgb, var(--accent) 30%, var(--card2)); } .heat i.l2 { background: color-mix(in srgb, var(--accent) 55%, var(--card2)); } .heat i.l3 { background: color-mix(in srgb, var(--accent) 78%, var(--card2)); } .heat i.l4 { background: var(--accent); } .heat i.sk { background: var(--info-soft); } .heat i.fl { background: var(--bad-soft); }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; } .nums > div { background: var(--card); border-radius: 14px; padding: 10px; box-shadow: var(--shadow); text-align: center; } .nums b { display: block; font-size: 22px; } .nums span { font-size: 12px; color: var(--muted); }
/* settings */
.set { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); min-height: var(--tap); } .set:last-child { border-bottom: 0; } .set .grow b { display: block; } .set .grow span { font-size: 13px; color: var(--muted); display: block; }
.sw { appearance: none; -webkit-appearance: none; width: 48px; height: 28px; border-radius: 14px; background: var(--line); position: relative; flex: none; cursor: pointer; border: 0; transition: background .15s; } .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); } .sw:checked { background: var(--accent); } .sw:checked::after { left: 23px; }
.chan { display: grid; grid-template-columns: 1fr repeat(3, 56px); align-items: center; gap: 4px; padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: 14px; } .chan:last-child { border-bottom: 0; } .chan.head { font-size: 12px; color: var(--muted); } .chan > :not(:first-child) { justify-self: center; }
.chan input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--accent); }
.prov { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 10px; } .prov .kv { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: 14px; margin-top: 8px; } .prov .kv span:nth-child(odd) { color: var(--muted); }
/* the palette and the global search */
.palette { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: center; align-items: flex-start; padding: 8vh 12px 0; background: rgba(0, 0, 0, .45); }
.palette .box { width: 100%; max-width: 620px; background: var(--bg); border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); overflow: hidden; display: flex; flex-direction: column; max-height: 76vh; }
.palette input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; min-height: 56px; font-size: 18px; background: var(--card); } .palette .res { overflow-y: auto; padding: 6px; }
.palette .it { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 0; background: none; width: 100%; text-align: left; color: inherit; min-height: 44px; cursor: pointer; } .palette .it.on, .palette .it:hover { background: var(--accent-soft); }
.palette .it .t { font-size: 12px; color: var(--muted); margin-left: auto; flex: none; } .palette .it .s { font-size: 13px; color: var(--muted); display: block; } .palette .grp { font-size: 12px; color: var(--muted); padding: 8px 12px 2px; text-transform: uppercase; letter-spacing: .04em; }
kbd { font: 12px ui-monospace, Menlo, Consolas, monospace; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; background: var(--card); color: var(--muted); }
/* the wide screen: a sidebar instead of the bottom bar, more room for lists, a list beside what is open */
#side { display: none; }
@media (min-width: 1000px) {
  :root { --side: 248px; }
  body.has-side #nav { display: none; }
  body.has-side #side { display: flex; flex-direction: column; position: fixed; left: 0; top: 0; bottom: 0; width: var(--side); background: var(--card); border-right: 1px solid var(--line); padding: 14px 10px; overflow-y: auto; z-index: 15; gap: 2px; }
  #side .brand { font-weight: 800; font-size: 18px; padding: 6px 10px 12px; display: flex; align-items: center; gap: 8px; } #side .grp { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 12px 10px 4px; }
  #side a, #side button.sb { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: inherit; font-size: 15px; min-height: 38px; border: 0; background: none; width: 100%; text-align: left; cursor: pointer; }
  #side a:hover, #side button.sb:hover { background: var(--card2); } #side a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; } #side a .em { width: 22px; text-align: center; } #side a .n { margin-left: auto; font-size: 12px; color: var(--muted); }
  #side .find { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); width: 100%; cursor: pointer; margin-bottom: 4px; font-size: 14px; } #side .find kbd { margin-left: auto; }
  body.has-side #app { max-width: 1040px; margin: 0 0 0 calc(var(--side) + max(0px, (100vw - var(--side) - 1040px) / 2)); padding: 22px 28px 40px; }
  body.has-side #toasts { left: var(--side); }
  body.has-side .sheet { align-items: center; padding-left: var(--side); } body.has-side .sheet-body { border-radius: 22px; max-width: 680px; max-height: 88vh; } body.has-side .sheet-body::before { display: none; }
  body.has-side .tiles { grid-template-columns: repeat(4, 1fr); } body.has-side .mods { grid-template-columns: repeat(8, 1fr); }
  .split { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 20px; align-items: start; } .split > .pane { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
  .cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; } .cols3 { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
  .note-ed { min-height: 64vh; } .ask { bottom: 16px; } .trow:hover, .kcard:hover, .bm:hover { background: color-mix(in srgb, var(--card2) 55%, transparent); }
  .tabs { margin: 0 0 12px; padding: 2px 0; flex-wrap: wrap; }
}
@media (max-width: 999px) { .split > .pane.detail:empty { display: none; } .cols3 > .tree-pane { display: none; } .only-wide { display: none !important; } }
@media (min-width: 1000px) { .only-narrow { display: none !important; } }
@media (max-width: 360px) { .mods { grid-template-columns: repeat(4, 1fr); gap: 6px; } .mod { font-size: 11px; min-height: 62px; } #app { padding-left: 10px; padding-right: 10px; } .chan { grid-template-columns: 1fr repeat(3, 44px); } }
/* === 1.4 begin === */
/* ------------------------------------------------------------------ 1.4: one shell - the look, the navigation, the home screen
   The design system in one place. Spacing: --g1…--g6 (4 8 12 16 24 32). Controls: --ctl (a button, a field), --ctl-sm.
   Type: --fs-s 13, --fs 16 (15 compact), --fs-l 18; headings h1 26 / h2 15 caps / h3 17. Radius: --radius, --radius-s.
   Colour comes only from the tokens of :root - a theme and an accent change the tokens, never a component. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root { --g6: 32px; --ctl: 44px; --ctl-sm: 36px; --fs-s: 13px; --fs: 16px; --fs-l: 18px; --radius-s: 12px; --pad: 14px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
body { font-family: var(--font); font-size: var(--fs); font-feature-settings: "cv11", "ss01", "calt"; -webkit-font-smoothing: antialiased; }
h1 { letter-spacing: -.025em; font-weight: 700; } h2 { letter-spacing: .05em; } button, input, select, textarea { font-family: var(--font); }
/* themes: the person's choice wins over the system's (the attribute is set before the first screen is drawn) */
:root[data-theme="light"] { color-scheme: light; --bg: #f4f5f1; --card: #ffffff; --card2: #eef0eb; --text: #17201c; --muted: #66716b; --line: #dfe3dc;
  --warn: #a15c00; --warn-soft: #fbecd2; --bad: #b3261e; --bad-soft: #fbe3e1; --info: #1f5fa8; --info-soft: #dfeaf8; --ok: #1f6f52; --ok-soft: #dcefe7; --shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 6px 20px rgba(20, 30, 25, .06); }
:root[data-theme="dark"] { color-scheme: dark; --bg: #101312; --card: #1a1f1d; --card2: #232a27; --text: #e9eeeb; --muted: #9aa6a0; --line: #2c3431;
  --warn: #f2b556; --warn-soft: #3a2c12; --bad: #ff8a80; --bad-soft: #3d1b19; --info: #8fc0ff; --info-soft: #16293f; --ok: #6fd3aa; --ok-soft: #17352b; --shadow: 0 1px 2px rgba(0, 0, 0, .4); }
:root[data-theme="light"], :root[data-theme="light"][data-accent="green"] { --accent: #23705a; --accent-text: #ffffff; --accent-soft: #dcefe7; }
:root[data-theme="dark"], :root[data-theme="dark"][data-accent="green"] { --accent: #5fcfa5; --accent-text: #06241a; --accent-soft: #17352b; }
:root[data-theme="light"][data-accent="blue"] { --accent: #1d5bb8; --accent-text: #ffffff; --accent-soft: #dfe9fa; }
:root[data-theme="dark"][data-accent="blue"] { --accent: #8ab4ff; --accent-text: #071a3a; --accent-soft: #172a4a; }
:root[data-theme="light"][data-accent="violet"] { --accent: #6546c0; --accent-text: #ffffff; --accent-soft: #e9e3fa; }
:root[data-theme="dark"][data-accent="violet"] { --accent: #b9a4ff; --accent-text: #1c0f45; --accent-soft: #2a2150; }
:root[data-theme="light"][data-accent="amber"] { --accent: #8f5200; --accent-text: #ffffff; --accent-soft: #fbecd2; }
:root[data-theme="dark"][data-accent="amber"] { --accent: #f2b556; --accent-text: #2b1a00; --accent-soft: #3a2c12; }
:root[data-theme="light"][data-accent="rose"] { --accent: #b02e5a; --accent-text: #ffffff; --accent-soft: #fbe1ea; }
:root[data-theme="dark"][data-accent="rose"] { --accent: #ff9db8; --accent-text: #3d0a1c; --accent-soft: #40202b; }
:root[data-theme="light"][data-accent="graphite"] { --accent: #3d4852; --accent-text: #ffffff; --accent-soft: #e4e8ec; }
:root[data-theme="dark"][data-accent="graphite"] { --accent: #c5ced6; --accent-text: #12171b; --accent-soft: #2a3238; }
:root[data-density="compact"] { --tap: 42px; --ctl: 40px; --radius: 14px; --fs: 15px; --pad: 11px; }
:root[data-density="compact"] .list > *, :root[data-density="compact"] .set { padding: 9px 12px; } :root[data-density="compact"] .card { padding: 11px; } :root[data-density="compact"] h2 { margin-top: 16px; }
/* «готово» is green in every accent: a status colour is not the accent */
:root { --ok: #1f6f52; --ok-soft: #dcefe7; } @media (prefers-color-scheme: dark) { :root:not([data-theme]) { --ok: #6fd3aa; --ok-soft: #17352b; } }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
/* controls of one height */
.btn { min-height: var(--ctl); border-radius: var(--radius-s); } .btn.sm { min-height: var(--ctl-sm); border-radius: 10px; } .icon-btn.sm { width: var(--ctl-sm); height: var(--ctl-sm); font-size: 15px; box-shadow: none; background: var(--card2); }
.icon-btn[disabled] { opacity: .35; } .seg button { min-height: var(--ctl-sm); } select { min-height: var(--ctl); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
/* the one emoji set */
img.emo { width: 1.25em; height: 1.25em; vertical-align: -.24em; display: inline-block; flex: none; user-select: none; } .em > img.emo, .ic > img.emo { width: 1em; height: 1em; vertical-align: -.12em; }
#nav a .ic img.emo { filter: grayscale(1); opacity: .7; } #nav a.on .ic img.emo { filter: none; opacity: 1; }
.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; display: block; }
.scope { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--card2); color: var(--muted); white-space: nowrap; } .scope.home { background: var(--info-soft); color: var(--info); }
/* a long name of a home never pushes anything out */
.hero .grow, .top .grow, .dtop .grow { min-width: 0; } #house-name, #greeting { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.home-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; border: 0; background: var(--card); box-shadow: var(--shadow); border-radius: 999px; padding: 0 12px; min-height: var(--ctl-sm); font-weight: 600; font-size: 14px; margin: 0 0 10px; color: inherit; cursor: pointer; }
.home-chip .chev { color: var(--muted); flex: none; }
/* the bottom bar of a phone */
#nav #newbtn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-text); font-size: 26px; font-weight: 500; flex: none; margin: -14px 4px 0; box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; }
#nav a span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; } #nav a { min-width: 0; }
/* every part in one place */
.mgroup { margin-bottom: 4px; } .mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mtile { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; min-height: 64px; color: inherit; position: relative; min-width: 0; }
.mtile .em { font-size: 26px; line-height: 1; flex: none; } .mtile b { display: block; font-weight: 600; overflow-wrap: anywhere; } .mtile small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.25; margin-top: 1px; }
.mtile:hover { background: color-mix(in srgb, var(--card) 80%, var(--accent-soft)); } .mtile .n:not(:empty) { position: absolute; top: 8px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
@media (max-width: 359px) { .mgrid { grid-template-columns: 1fr; } }
@media (max-width: 699px) { .mtile { min-height: 52px; padding: 8px 12px; } .mtile small { display: none; } .mtile .em { font-size: 22px; } }
/* the home screen */
.dtop { display: flex; align-items: flex-start; gap: 10px; margin: 2px 2px 12px; } .dtop h1 { font-size: 24px; } .dtop .muted { font-size: 14px; margin-top: 2px; }
.dgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: start; } .dcard { margin-bottom: 0; min-width: 0; } .dcard .list { box-shadow: none; border-radius: 0; margin: 0 -14px; background: none; } .dcard .list:last-child { margin-bottom: -8px; }
.dhead { margin-bottom: 6px; gap: 8px; } .dhead b { font-size: 16px; } .dfoot { gap: 6px; margin-top: 10px; } .dfoot:empty { display: none; } .late-h { color: var(--bad); font-weight: 600; margin: 6px 0 0; }
.dlinks { gap: 8px; margin: 14px 2px 0; align-items: center; } .dlinks .muted { margin-left: auto; }
.wx-top { display: flex; align-items: center; gap: 10px; } .wx-ic { font-size: 40px; line-height: 1; flex: none; } .wx-t { font-size: 38px; font-weight: 700; letter-spacing: -.03em; line-height: 1; } .wx-l { font-weight: 600; } .wx-l::first-letter { text-transform: uppercase; }
.wx-place { padding: 0; min-height: 36px; text-align: left; margin: -6px 0; } .wx-adv { margin: 12px 0 0; font-size: 15.5px; line-height: 1.4; } .wx-things { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .wx-things .chip { background: var(--accent-soft); color: var(--text); }
.wx-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; } .fact small { display: block; color: var(--muted); font-size: 12px; } .fact b { font-weight: 600; font-size: 14.5px; }
.wx-hours { display: flex; gap: 2px; margin: 12px -6px 0; overflow-x: auto; scrollbar-width: none; } .wx-hours::-webkit-scrollbar { display: none; }
.wx-hours > span { flex: 1 0 46px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 10px; } .wx-hours small { color: var(--muted); font-size: 11.5px; } .wx-hours .ic { font-size: 20px; line-height: 1.1; } .wx-hours b { font-size: 14px; } .wx-hours .pr { color: var(--info); }
.wx-credit { font-size: 11.5px; margin-top: 8px; } .wx-credit a { color: inherit; text-decoration: underline; }
.rates { display: flex; gap: 22px; margin: 8px 0 6px; } .rate small { display: block; color: var(--muted); font-size: 12px; } .rate b { font-size: 20px; font-weight: 700; display: block; letter-spacing: -.01em; } .rate .up { color: var(--bad); } .rate .down { color: var(--ok); }
/* settings of the surface */
.mv { display: inline-flex; gap: 4px; flex: none; } .star { color: var(--muted); } .star.on { color: var(--warn); background: var(--warn-soft); }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .swatch { display: flex; align-items: center; gap: 8px; border: 2px solid transparent; background: var(--card); border-radius: var(--radius-s); padding: 0 10px; min-height: var(--ctl); cursor: pointer; color: inherit; box-shadow: var(--shadow); font-size: 14px; min-width: 0; }
.swatch.on { border-color: var(--accent); } .swatch i { width: 20px; height: 20px; border-radius: 50%; flex: none; } .swatch span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swatch[data-accent="green"] i { background: #2a8a6e; } .swatch[data-accent="blue"] i { background: #3b7be0; } .swatch[data-accent="violet"] i { background: #8062dc; } .swatch[data-accent="amber"] i { background: #d18a1c; } .swatch[data-accent="rose"] i { background: #d6507c; } .swatch[data-accent="graphite"] i { background: #6b7782; }
.matrix-wrap { overflow-x: auto; margin: 0 -4px; } .matrix { border-collapse: collapse; width: 100%; font-size: 13.5px; } .matrix th, .matrix td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.matrix thead th { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; } .matrix tbody th { text-align: left; font-weight: 500; min-width: 150px; } .matrix td.y { color: var(--ok); font-weight: 700; } .matrix td.n { color: var(--muted); }
.plain-list { margin: 0; padding: 0 0 0 20px; } .plain-list li { margin: 4px 0; }
@media (max-width: 699px) { .set[data-module] .grow span { display: none; } .set[data-module] { gap: 8px; padding-left: 10px; padding-right: 10px; } }
/* notes: the page of a note, the toolbar, the history */
#note-editor { border-left: 4px solid var(--note-color, transparent); padding-left: 8px; margin-left: -12px; } .note-w-narrow .note-ed, .note-w-narrow .md { max-width: 620px; } .note-w-normal .note-ed, .note-w-normal .md { max-width: 820px; }
.note-tools { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 8px; padding-bottom: 2px; scrollbar-width: none; } .note-tools::-webkit-scrollbar { display: none; }
.tbtn { min-width: var(--ctl-sm); height: var(--ctl-sm); padding: 0 8px; border: 0; border-radius: 9px; background: var(--card); box-shadow: var(--shadow); color: inherit; cursor: pointer; flex: none; font-size: 15px; display: inline-grid; place-items: center; }
.tbtn:hover { background: var(--card2); } .note-stats { margin: 6px 4px 0; } .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.md { font-size: 17px; line-height: 1.55; min-height: 40vh; overflow-wrap: anywhere; } .md-h { font-weight: 700; margin: 14px 0 6px; line-height: 1.25; } .md-h1 { font-size: 24px; } .md-h2 { font-size: 20px; } .md-h3 { font-size: 18px; } .md-h4 { font-size: 16px; color: var(--muted); }
.md-h:first-child { margin-top: 0; } .md-gap { height: 10px; } .md-li { display: flex; gap: 8px; padding: 1px 0; } .md-li .mk { flex: none; width: 14px; text-align: center; color: var(--muted); } .md-li .mk.num { width: auto; min-width: 20px; text-align: right; font-variant-numeric: tabular-nums; }
.md-check { display: flex; gap: 8px; padding: 4px 0; align-items: flex-start; cursor: pointer; } .md-check input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; margin: 1px 0 0; } .md-check .on { text-decoration: line-through; color: var(--muted); }
.md-quote { margin: 8px 0; padding: 4px 12px; border-left: 3px solid var(--line); color: var(--muted); } .md code { font: 14px ui-monospace, Menlo, Consolas, monospace; background: var(--card2); padding: 1px 5px; border-radius: 5px; }
.md-code { background: var(--card2); border-radius: 10px; padding: 10px 12px; overflow-x: auto; margin: 8px 0; } .md-code code { background: none; padding: 0; white-space: pre; } .md-hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.md-table { overflow-x: auto; margin: 8px 0; } .md-table table { border-collapse: collapse; font-size: 15px; } .md-table th, .md-table td { border: 1px solid var(--line); padding: 5px 9px; text-align: left; } .md-table th { background: var(--card2); font-weight: 600; }
.dstat { display: inline-flex; gap: 6px; font-size: 13px; font-weight: 600; flex: none; } .dstat .add { color: var(--ok); } .dstat .del { color: var(--bad); }
.diff { font: 14px/1.45 ui-monospace, Menlo, Consolas, monospace; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; max-height: 55vh; overflow-y: auto; } .dl { display: flex; gap: 6px; padding: 2px 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.dl .sg { flex: none; width: 12px; color: var(--muted); user-select: none; } .dl.add { background: var(--ok-soft); } .dl.add .sg { color: var(--ok); } .dl.del { background: var(--bad-soft); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.dl.del .sg { color: var(--bad); text-decoration: none; } .dl.gap { color: var(--muted); justify-content: center; background: var(--card2); }
/* links: folders that collapse and scroll by themselves, the stage of a copy */
.links-cols { grid-template-columns: 280px minmax(0, 1fr) !important; } .links-side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; scrollbar-width: thin; } .links-main { min-width: 0; }
.coll-row { display: flex; align-items: center; min-width: 0; } .coll-row .coll { flex: 1; min-width: 0; padding-left: 6px; } .caret { width: 26px; height: 36px; border: 0; background: none; color: var(--muted); cursor: pointer; flex: none; font-size: 13px; padding: 0; display: inline-block; }
.tree-sheet { max-height: 60vh; overflow-y: auto; margin: 0 -6px; } .tree-sheet .coll { min-height: 44px; }
.steps { display: flex; gap: 6px; margin: 10px 0 8px; } .steps i { flex: 1; height: 6px; border-radius: 3px; background: var(--card2); } .steps i.done { background: var(--accent); } .steps i.on { background: var(--accent); opacity: .55; animation: stepping 1.2s ease-in-out infinite; }
@keyframes stepping { 50% { opacity: 1; } }
.facts > div { padding: 3px 0; } .chip-x { border: 0; background: none; color: inherit; cursor: pointer; padding: 0 0 0 2px; min-width: 24px; min-height: 24px; font-size: 12px; }
/* things with other people; interesting products */
.linkish { border: 0; background: none; padding: 0; color: var(--ink); font: inherit; font-weight: 650; text-align: left; cursor: pointer; display: block; min-height: 28px; } .linkish:hover { text-decoration: underline; }
.give .where { margin-top: 2px; } .krow { display: flex; align-items: center; gap: 8px; padding: 6px 0; } .krow + .krow { border-top: 1px solid var(--line); } .krow .grow { min-width: 0; flex: 1; } .krow .icon-btn { flex: none; } .kcard.wish.on { outline: 2px solid var(--accent); } .kcard .thumb { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; flex: none; background: var(--card2); } .kcard .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wish-pic { margin: -14px -14px 12px; max-height: 240px; overflow: hidden; border-radius: 18px 18px 0 0; } .wish-pic img { width: 100%; max-height: 240px; object-fit: contain; display: block; background: var(--card2); }
.cmp-wrap { overflow-x: auto; margin: 0 -6px 10px; } .cmp { border-collapse: collapse; min-width: 100%; font-size: 14px; } .cmp th, .cmp td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; min-width: 130px; } .cmp tbody th { color: var(--muted); font-weight: 500; min-width: 96px; position: sticky; left: 0; background: var(--card); }
#saved-refs .cmt { flex-wrap: wrap; } #saved-refs .cmt .grow { min-width: 170px; }
/* the wide screen */
#side { display: none; }
@media (min-width: 1000px) {
  :root { --side: 236px; } body.side-rail { --side: 64px; }
  body.has-side #nav { display: none; }
  body.has-side #side { display: flex; flex-direction: column; position: fixed; left: 0; top: 0; bottom: 0; width: var(--side); background: var(--card); border-right: 1px solid var(--line); padding: 10px 8px 8px; overflow: hidden; z-index: 15; gap: 4px; }
  #side .scroll { flex: 1; overflow-y: auto; min-height: 0; margin: 4px -4px 0; padding: 0 4px; scrollbar-width: thin; } #side .foot { border-top: 1px solid var(--line); padding-top: 6px; display: flex; flex-direction: column; gap: 1px; }
  #side a, #side button { display: flex; align-items: center; gap: 10px; padding: 0 10px; border-radius: 9px; color: inherit; font-size: 14.5px; min-height: 36px; border: 0; background: none; width: 100%; text-align: left; cursor: pointer; min-width: 0; font-weight: 500; }
  #side .lb { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #side .em { width: 22px; text-align: center; flex: none; font-size: 17px; line-height: 1; }
  #side a:hover, #side button:hover { background: var(--card2); } #side a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
  #side a .n:not(:empty) { margin-left: auto; font-size: 11.5px; font-weight: 700; background: var(--bad); color: #fff; border-radius: 9px; padding: 1px 6px; flex: none; }
  #side .grp { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 12px 10px 3px; font-weight: 600; }
  #side .home-sw { min-height: 44px; font-weight: 700; font-size: 15.5px; } #side .home-sw .chev { color: var(--muted); font-size: 12px; flex: none; }
  #side .find { border: 1px solid var(--line); background: var(--bg); color: var(--muted); font-weight: 400; } #side .find kbd { flex: none; }
  #side .sb { background: var(--accent); color: var(--accent-text); font-weight: 600; margin: 2px 0; } #side .sb:hover { background: var(--accent); filter: brightness(1.06); } #side .sb .em { font-size: 20px; }
  #side .collapse { color: var(--muted); font-size: 13px; }
  #side.rail { padding: 10px 8px 8px; } #side.rail .lb, #side.rail .grp, #side.rail kbd, #side.rail .chev { display: none; } #side.rail a, #side.rail button { justify-content: center; padding: 0; gap: 0; position: relative; }
  #side.rail a .n:not(:empty) { position: absolute; top: 2px; right: 6px; padding: 0 4px; font-size: 10px; } #side.rail .scroll { scrollbar-width: none; } #side.rail .grp + a { margin-top: 8px; }
  body.has-side #app { max-width: 1080px; margin: 0 0 0 calc(var(--side) + max(0px, (100vw - var(--side) - 1080px) / 2)); padding: 22px 28px 40px; }
  .only-narrow { display: none !important; }
  .dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .dgrid > .wx { grid-row: span 2; } .dtop h1 { font-size: 28px; }
  .dash .qadd { max-width: 640px; } .mgrid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; } .wide-page .list { max-width: 720px; }
  .swatches { grid-template-columns: repeat(6, 1fr); max-width: 720px; } .seg { max-width: 420px; }
}
@media (min-width: 1500px) { .dgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* the organizer: tasks, reminders, timers */
.trow { position: relative; } .trow .tcolor { position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--tc); }
.trow .star { margin: 1px -4px 0 0; background: none; } .trow .star.on { background: var(--warn-soft); } .trow.fav .ttl::before { content: "★ "; color: var(--warn); font-size: .85em; }
.trow.dragging { opacity: .45; } .trow.over { box-shadow: inset 0 3px 0 var(--accent); } .trow[draggable="true"] { cursor: grab; } .trow .meta .lbl { color: var(--info); } .trow .meta .forme { color: var(--accent); font-weight: 600; }
.coll .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; } .coll .clip { display: inline-block; }
.done-box { margin-top: 6px; } .done-box > summary { cursor: pointer; padding: 10px 6px; color: var(--muted); font-weight: 600; font-size: 14px; list-style: none; min-height: var(--ctl-sm); display: flex; align-items: center; gap: 6px; }
.done-box > summary::-webkit-details-marker { display: none; } .done-box > summary::after { content: "▾"; margin-left: 4px; } .done-box[open] > summary::after { content: "▴"; }
.substeps { padding-left: 34px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--card2) 40%, transparent); } .list > .substeps { display: block; padding-top: 0; padding-bottom: 0; padding-right: 0; }
.cmt { align-items: flex-start !important; } .cmt .raw { white-space: pre-wrap; overflow-wrap: anywhere; }
.rrow { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 12px; border-bottom: 1px solid var(--line); min-height: var(--tap); } .rrow:last-child { border-bottom: 0; }
.rrow .body { text-align: left; min-height: 40px; padding: 0; } .rrow .ttl { font-weight: 600; overflow-wrap: anywhere; display: block; } .rrow .sub { font-size: 13px; color: var(--muted); display: block; } .rrow.late .sub { color: var(--bad); }
.rrow.done .ttl { text-decoration: line-through; color: var(--muted); font-weight: 500; } .rrow .em { font-size: 20px; width: 30px; text-align: center; flex: none; } .ract { display: inline-flex; gap: 4px; flex: none; }
.plain { border: 0; background: none; color: inherit; cursor: pointer; font: inherit; }
.tgrid { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); margin-bottom: 4px; } .timer { margin: 0; } .timer .em { font-size: 26px; } .tclock { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.timer.done { background: var(--ok-soft); } .timer.done .tclock { color: var(--ok); } .timer .pbar { display: block; height: 6px; border-radius: 3px; background: var(--card2); margin: 10px 0 2px; overflow: hidden; } .timer .pbar i { display: block; height: 100%; background: var(--accent); }
.presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .preset { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: var(--card); box-shadow: var(--shadow); border-radius: var(--radius); padding: 12px 6px; min-height: 92px; cursor: pointer; color: inherit; }
.preset .em { font-size: 26px; line-height: 1.1; } .preset b { font-weight: 600; font-size: 14.5px; text-align: center; overflow-wrap: anywhere; } .preset small { color: var(--muted); font-size: 12.5px; } .preset.add { background: none; box-shadow: none; border: 1.5px dashed var(--line); } .preset:active { transform: scale(.97); }
@media (min-width: 1000px) { .tgrid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } .presets { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); max-width: 900px; } }
.stages { display: flex; flex-direction: column; gap: 2px; } .stage { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; } .stage .em { width: 24px; text-align: center; flex: none; font-size: 17px; } .stage.bad b { color: var(--bad); }
.same-q .btns { margin-top: 8px; }
.help-art p { margin: 0 0 10px; line-height: 1.5; } .help-art h3 { font-size: 15px; margin: 14px 0 6px; } .help-steps, .help-ex { margin: 0; padding-left: 22px; } .help-steps li, .help-ex li, .help-art .plain-list li { margin: 5px 0; line-height: 1.45; }
.help-ex li { color: var(--text); } .help-art code { font: 14px ui-monospace, Menlo, Consolas, monospace; background: var(--card2); padding: 1px 5px; border-radius: 5px; } .help-start { display: flex; align-items: center; gap: 12px; color: inherit; } .help-start .em { font-size: 28px; }
.help-q { width: var(--ctl-sm); height: var(--ctl-sm); }

/* voice input */
.btn.mic { min-width: 44px; padding: 0 10px; } .btn.mic.on { background: var(--bad, #b3261e); color: #fff; border-color: transparent; animation: micpulse 1.2s infinite; }
@keyframes micpulse { 50% { opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .btn.mic.on { animation: none; } }
/* === 1.4 end === */
