/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--t1); font-family: var(--font-sans); font-size: 14.5px; line-height: 1.45;
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom)) fixed var(--bg-base);
  transition: background var(--slow), color var(--slow);
}
h1, h2, h3, p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--t2); }
.faint { color: var(--t3); font-size: 12.5px; }
.grow { flex: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid rgba(var(--accent-rgb), 0.8); outline-offset: 2px; }

.ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ambient i { position: absolute; border-radius: 999px; }
.ambient__arc { top: -380px; right: -260px; width: 820px; height: 820px; border: 1.5px solid var(--arc); box-shadow: 0 0 60px var(--bloom), inset 0 0 80px var(--bloom); }
.ambient__haze1 { top: -200px; right: 10%; width: 700px; height: 500px; background: radial-gradient(closest-side, var(--haze1), transparent); }
.ambient__haze2 { bottom: -260px; left: -200px; width: 700px; height: 600px; background: radial-gradient(closest-side, var(--haze2), transparent); }
#app { position: relative; z-index: 1; }

/* Glass ----------------------------------------------------------------- */
.glass {
  background: var(--glass); border: 1px solid var(--border); box-shadow: var(--shadow), var(--edge);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.card { border-radius: var(--radius-card); padding: 18px 20px; }
.card h3 { font-size: 12.5px; font-weight: 620; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t3); margin-bottom: 12px; }

/* Top bar --------------------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 12px var(--gutter); border-width: 0 0 1px; border-radius: 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--t1); }
.brand:hover { text-decoration: none; }
.brand__mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.45); }
.brand__name { font-size: 16px; font-weight: 620; letter-spacing: -0.01em; }
.brand__co { font-size: 12.5px; color: var(--t3); }
.topbar__search { flex: 1 1 200px; position: relative; max-width: 360px; margin-left: auto; }
.topbar__search svg { position: absolute; left: 13px; top: 11px; color: var(--t3); }
.avatar { width: 38px; height: 38px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--t2); cursor: pointer; transition: border-color var(--fast), color var(--fast); }
.avatar:hover { border-color: var(--border-strong); color: var(--t1); }
.offline-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--warn); border: 1px solid currentColor; }

/* Tabs / segmented ------------------------------------------------------ */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--border); flex-wrap: wrap; }
.tab { height: 30px; padding: 0 12px; border-radius: 999px; border: 0; background: transparent; color: var(--t2); font-size: 13px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: background var(--fast), color var(--fast); }
.tab:hover { color: var(--t1); background: var(--glass-hover); text-decoration: none; }
.tab.on { color: var(--t1); background: var(--glass-strong); box-shadow: var(--edge); }
.tab .count { font-family: var(--font-mono); font-size: 11.5px; color: var(--t3); }
.tabs--fill .tab { flex: 1; justify-content: center; height: 40px; font-size: 14px; font-weight: 600; }

/* Buttons --------------------------------------------------------------- */
.btn { height: 36px; padding: 0 14px; border-radius: var(--radius-btn); font-size: 13.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; transition: transform var(--fast), box-shadow var(--slow), background var(--fast), border-color var(--fast); }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--on-accent); border: 1px solid transparent; box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 8px 28px rgba(var(--accent-rgb), 0.5), 0 0 0 4px rgba(var(--accent-rgb), 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-ghost { background: var(--glass); color: var(--t1); border: 1px solid var(--border); }
.btn-ghost:hover:not(:disabled) { background: var(--glass-hover); border-color: var(--border-strong); }
.btn-danger { background: transparent; color: var(--bad); border: 1px solid currentColor; }
.btn-danger:hover { background: var(--glass-hover); }
.btn-lg { height: 52px; width: 100%; border-radius: 12px; font-size: 16px; font-weight: 650; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.icon-btn { width: 38px; height: 38px; flex: none; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--glass); border: 1px solid var(--border); color: var(--t2); cursor: pointer; transition: border-color var(--fast), color var(--fast), box-shadow var(--slow); }
.icon-btn:hover { border-color: var(--border-strong); color: var(--t1); box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.25); }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-size: 13px; font-weight: 600; }
.link-btn:hover { text-decoration: underline; }

/* Badges, dots ---------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; border: 1px solid currentColor; white-space: nowrap; }
.s-ok { color: var(--ok); } .s-warn { color: var(--warn); } .s-bad { color: var(--bad); } .s-info { color: var(--info); } .s-int { color: var(--t2); } .s-accent { color: var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 999px; background: currentColor; box-shadow: 0 0 8px currentColor; flex: none; transition: box-shadow var(--slow); }

/* Page ------------------------------------------------------------------ */
.page { max-width: var(--page-max); margin: 0 auto; padding: 32px var(--gutter) 64px; display: flex; flex-direction: column; gap: 24px; }
.page--narrow { max-width: 860px; }
.pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.pagehead__text { flex: 1 1 280px; min-width: 0; }
.eyebrow { font-size: 12.5px; font-weight: 620; letter-spacing: 0.16em; text-transform: uppercase; color: var(--t3); }
.eyebrow a { color: inherit; }
.pagehead h1 { margin-top: 8px; font-size: 26px; font-weight: 620; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.pagehead__sub { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--t2); font-size: 13.5px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.stat { border-radius: var(--radius-card); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.stat__label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.stat__value { font-family: var(--font-mono); font-size: 28px; font-weight: 600; color: var(--t1); }

/* Rows ------------------------------------------------------------------ */
.list { display: flex; flex-direction: column; gap: 10px; }
.list__head, .row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 2.4fr); gap: 12px 16px; align-items: center; }
.list__head { padding: 0 20px; font-size: 12.5px; font-weight: 620; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t3); }
.row { border-radius: var(--radius-card); padding: 14px 20px; color: var(--t1); text-align: left; width: 100%; cursor: pointer; transition: transform var(--slow), border-color var(--fast), box-shadow var(--slow), background var(--fast); }
.row:hover { transform: translateY(-2px); border-color: var(--border-strong); background: var(--glass-hover); box-shadow: var(--shadow-float), var(--edge); text-decoration: none; }
.row:hover .dot { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04), 0 0 14px currentColor; }
.row--3 { grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1.6fr); }
.list__head.row--3 { grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1.6fr); }
.row__main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tile { width: 40px; height: 40px; border-radius: 12px; background: var(--glass-strong); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--t2); flex: none; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; }
.row__name { font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.row__sub { font-size: 12.5px; color: var(--t3); }
.row__cell { min-width: 0; font-size: 13.5px; }
.row__next { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.static-row { border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.empty { border-radius: var(--radius-card); padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: var(--t2); border-style: dashed; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 10px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--border); font-size: 12.5px; color: var(--t2); }
.chip button { background: none; border: 0; padding: 0; cursor: pointer; color: var(--t3); display: inline-flex; }
.chip button:hover { color: var(--bad); }
.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 16px; font-size: 13.5px; }
.kv dt { color: var(--t3); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.log { display: flex; flex-direction: column; }
.log__item { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--divider); font-size: 13.5px; }
.log__item:first-child { border-top: 0; padding-top: 0; }
.log__item .dot { margin-top: 6px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.photos img, .photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); display: block; }
.photo-wrap { position: relative; }
.photo-wrap button { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 999px; border: 0; background: rgba(0, 0, 0, 0.65); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qr { background: #fff; border-radius: 12px; padding: 8px; width: 148px; height: 148px; flex: none; }
.qr svg { width: 100%; height: 100%; display: block; }
.notice { border-radius: 12px; padding: 10px 14px; font-size: 13.5px; border: 1px solid currentColor; display: flex; gap: 10px; align-items: flex-start; }
.notice span { color: var(--t1); }

/* Forms ----------------------------------------------------------------- */
.input, .search { height: 38px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--glass-strong); color: var(--t1); padding: 0 12px; font-size: 14px; width: 100%; outline: none; transition: box-shadow var(--slow), border-color var(--fast); }
textarea.input { height: auto; min-height: 76px; padding: 9px 12px; resize: vertical; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--t3) 50%), linear-gradient(135deg, var(--t3) 50%, transparent 50%); background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px; background-size: 5px 5px; background-repeat: no-repeat; }
.eq select.input option { color: #0f1117; background: #fff; }
.search { border-radius: 999px; padding: 0 14px 0 36px; font-size: 13.5px; }
.input::placeholder, .search::placeholder { color: var(--t3); }
.input:focus, .search:focus { border-color: rgba(var(--accent-rgb), 0.7); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.15); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .label { font-size: 12.5px; font-weight: 600; color: var(--t2); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form__foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.form__error { color: var(--bad); font-size: 13.5px; }
.repeat { display: flex; flex-direction: column; gap: 8px; }
.repeat__row { display: grid; grid-template-columns: minmax(0, 1fr) 76px 38px; gap: 8px; }
.picklist { max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; padding: 4px; display: flex; flex-direction: column; }
.pick { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; cursor: pointer; min-height: 44px; }
.pick:hover { background: var(--glass-hover); }
.pick input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.pick--off { opacity: 0.55; cursor: not-allowed; }
.pick__text { flex: 1; min-width: 0; }

/* Dialog, toast, menu --------------------------------------------------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: var(--scrim); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; overflow-y: auto; }
.dialog { width: 100%; max-width: 520px; border-radius: 20px; background: var(--panel); box-shadow: var(--shadow-float), var(--edge); }
.dialog--wide { max-width: 720px; }
.dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 0; }
.dialog__head h2 { font-size: 18px; font-weight: 620; }
.dialog__body { padding: 16px 20px 20px; }
#toast-root { position: fixed; left: 0; right: 0; bottom: 24px; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { background: var(--panel); border: 1px solid var(--border-strong); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; box-shadow: var(--shadow-float); display: flex; gap: 10px; align-items: center; max-width: 440px; animation: rise 200ms ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.menu { position: absolute; right: var(--gutter); top: 60px; z-index: 30; min-width: 230px; border-radius: 14px; background: var(--panel); padding: 6px; display: flex; flex-direction: column; }
.menu__who { padding: 10px 12px; border-bottom: 1px solid var(--divider); margin-bottom: 4px; }
.menu button { height: 38px; border: 0; background: none; text-align: left; padding: 0 12px; border-radius: 9px; cursor: pointer; color: var(--t1); font-size: 13.5px; }
.menu button:hover { background: var(--glass-hover); }

/* Calendar -------------------------------------------------------------- */
.cal { border-radius: var(--radius-card); overflow: hidden; }
.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal__dow span { padding: 10px 10px; font-size: 11.5px; font-weight: 620; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t3); }
.cal__day { min-height: 112px; padding: 6px; border-top: 1px solid var(--divider); border-left: 1px solid var(--divider); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal__day:nth-child(7n + 1) { border-left: 0; }
.cal__day--out { opacity: 0.38; }
.cal__num { font-family: var(--font-mono); font-size: 12px; color: var(--t3); padding: 2px 4px; align-self: flex-start; border-radius: 999px; }
.cal__day--today .cal__num { background: var(--accent); color: var(--on-accent); font-weight: 700; box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.6); }
.ev { display: block; padding: 3px 7px; border-radius: 6px; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid currentColor; background: var(--glass-strong); transition: background var(--fast); }
.ev:hover { text-decoration: none; background: var(--glass-hover); }
.ev--buffer { border-style: dashed; opacity: 0.7; font-weight: 500; }
.agenda { display: none; }

/* Scan ------------------------------------------------------------------ */
.scan { max-width: 520px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.scan__head { display: flex; align-items: center; gap: 12px; padding: 20px 16px 12px; }
.scan__head .icon-btn { width: 44px; height: 44px; }
.scan__title { font-size: 18px; font-weight: 620; }
.scan__top { padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }
.viewfinder { position: relative; height: 230px; border-radius: 20px; background: var(--viewfinder); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow); }
.viewfinder video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viewfinder__frame { position: absolute; left: 50%; top: 50%; width: 170px; height: 170px; transform: translate(-50%, -50%); }
.corner { position: absolute; width: 34px; height: 34px; border-color: var(--accent); border-style: solid; filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.8)); }
.corner.tl { top: 0; left: 0; border-width: 3px 0 0 3px; border-top-left-radius: 12px; }
.corner.tr { top: 0; right: 0; border-width: 3px 3px 0 0; border-top-right-radius: 12px; }
.corner.bl { bottom: 0; left: 0; border-width: 0 0 3px 3px; border-bottom-left-radius: 12px; }
.corner.br { bottom: 0; right: 0; border-width: 0 3px 3px 0; border-bottom-right-radius: 12px; }
.scanline { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.9); animation: sweep 2.4s ease-in-out infinite alternate; }
@keyframes sweep { from { top: 18px; } to { top: calc(100% - 20px); } }
.viewfinder__hint { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; }
.viewfinder__hint span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); color: #f2f3f5; font-size: 12.5px; }
.scanner-box { border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.scanner-box .input { height: 48px; font-family: var(--font-mono); font-size: 16px; }
.progress { border-radius: 16px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.progress__bar { margin-top: 6px; height: 6px; border-radius: 999px; background: var(--glass-strong); overflow: hidden; }
.progress__bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.8); transition: width var(--slow); }
.progress__n { font-family: var(--font-mono); font-size: 20px; font-weight: 600; }
.scan__list { flex: 1; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.sitem { border-radius: 14px; padding: 10px 14px; box-shadow: var(--edge); display: flex; flex-direction: column; gap: 10px; }
.sitem--flash { animation: flash 900ms ease; }
@keyframes flash { from { border-color: var(--ok); box-shadow: 0 0 24px rgba(var(--ok-rgb), 0.5); } }
.sitem__row { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.sitem__name { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.check { width: 32px; height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: center; flex: none; cursor: pointer; padding: 0; background: none; }
.check.done { border: 0; background: rgba(var(--ok-rgb), 0.16); color: var(--ok); box-shadow: 0 0 12px rgba(var(--ok-rgb), 0.35); }
.check.todo { border: 1.5px dashed var(--border-strong); color: var(--t3); }
.pieces { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 44px; }
.piece { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1.5px dashed var(--border-strong); background: none; color: var(--t2); font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.piece.on { border: 1.5px solid transparent; background: rgba(var(--ok-rgb), 0.16); color: var(--ok); }
.sitem__extra { padding-left: 44px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sitem__extra .input { height: 36px; flex: 1 1 140px; width: auto; }
.scan__foot { position: sticky; bottom: 0; padding: 12px 16px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, transparent, var(--bg-bottom) 40%); }
.scan__warn { font-size: 13px; color: var(--warn); text-align: center; }

/* Labels ---------------------------------------------------------------- */
.labels { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.label-card { background: #fff; color: #0b0c0f; border-radius: 10px; padding: 10px; display: flex; gap: 10px; align-items: center; break-inside: avoid; }
.label-card svg { width: 84px; height: 84px; flex: none; }
.label-card b { display: block; font-size: 13px; line-height: 1.2; overflow-wrap: anywhere; }
.label-card small { display: block; font-family: var(--font-mono); font-size: 10.5px; color: #444; margin-top: 3px; overflow-wrap: anywhere; }

/* Welcome --------------------------------------------------------------- */
.welcome { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.welcome__card { width: 100%; max-width: 440px; border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.welcome h1 { font-size: 24px; font-weight: 620; letter-spacing: -0.015em; }
.who { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--glass); cursor: pointer; text-align: left; transition: border-color var(--fast), background var(--fast), transform var(--slow); }
.who:hover { border-color: var(--border-strong); background: var(--glass-hover); transform: translateY(-1px); }

/* Small screens --------------------------------------------------------- */
@media (max-width: 760px) {
  .eq { --gutter: 16px; }
  .hide-sm { display: none !important; }
  .topbar { gap: 10px; position: static; }
  .brand { flex: 1; }
  .toolbar .tabs { border-radius: 22px; }
  .topbar .tabs { order: 5; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .topbar .tabs .tab { height: 38px; flex: 1 0 auto; justify-content: center; }
  .topbar__search { order: 6; max-width: none; flex-basis: 100%; }
  .page { padding-top: 20px; gap: 18px; }
  .btn { height: 44px; } .btn-sm { height: 36px; } .icon-btn, .avatar { width: 44px; height: 44px; }
  .input, .search { height: 44px; font-size: 16px; }
  .tab { height: 36px; }
  .list__head { display: none; }
  .row, .row--3 { grid-template-columns: minmax(0, 1fr) auto; }
  .row__main { grid-column: 1 / -1; }
  .row__next { grid-column: 1 / -1; }
  .cols, .form__grid { grid-template-columns: minmax(0, 1fr); }
  .cal { display: none; } .agenda { display: flex; }
  .kv { grid-template-columns: 110px minmax(0, 1fr); }
  .overlay { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .scanline { top: 50%; }
  .row:hover, .who:hover { transform: none; }
}
@media print {
  body { background: #fff !important; color: #000; }
  .ambient, .topbar, .no-print, #toast-root { display: none !important; }
  .page { padding: 0; max-width: none; }
  .labels { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .label-card { border: 1px solid #bbb; border-radius: 6px; }
}
