/* Kavshiri – CRM Admin · plain CSS, no build step.
   Look: calm editorial minimalism – hairlines, lots of white space, one electric blue.
   Sections: fonts · tokens · base · rail · top bar · menus · chat switch · layout · today · deals (kanban) · contacts ·
   calendar · tasks · reports · settings · forms · overlays · login · responsive · print */

/* fonts (SIL Open Font License, see assets/fonts/OFL.txt) */
@font-face { font-family: "Inter Tight"; font-weight: 400; font-display: swap; src: url("../fonts/inter-tight-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BE, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "Inter Tight"; font-weight: 600; font-display: swap; src: url("../fonts/inter-tight-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BE, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "Inter Tight"; font-weight: 400; font-display: swap; src: url("../fonts/inter-tight-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-weight: 600; font-display: swap; src: url("../fonts/inter-tight-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-weight: 400; font-display: swap; src: url("../fonts/inter-tight-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter Tight"; font-weight: 600; font-display: swap; src: url("../fonts/inter-tight-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20BE, U+2212; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Noto Sans Georgian"; font-weight: 400; font-display: swap; src: url("../fonts/noto-sans-georgian-georgian-400-normal.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F; }
@font-face { font-family: "Noto Sans Georgian"; font-weight: 600; font-display: swap; src: url("../fonts/noto-sans-georgian-georgian-600-normal.woff2") format("woff2"); unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F; }

/* tokens */
:root {
    --font: "Inter Tight", "Noto Sans Georgian", system-ui, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, monospace;
    --r: 12px; --r-s: 8px; --rail: 68px;
    --ease: cubic-bezier(.2, .8, .2, 1);
}
:root[data-theme="light"] {
    color-scheme: light;
    --bg: #fafaf8; --surface: #fff; --sunk: #f3f3f0; --line: #e7e6e1; --line-2: #d6d5ce;
    --text: #131417; --muted: #686b73; --faint: #9a9ca3;
    --blue: #2f5bff; --blue-soft: #edf1ff; --blue-ink: #1d3fd1; --on-blue: #fff;
    --green: #128a47; --amber: #b86e00; --red: #d93a3f; --violet: #6e4ff6;
    --av-l: 92%; --av-d: 30%;
    --shadow: 0 12px 32px -14px rgba(20, 22, 30, .22), 0 1px 2px rgba(20, 22, 30, .05);
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0d0e11; --surface: #15171b; --sunk: #1c1f24; --line: #272a31; --line-2: #343843;
    --text: #ececef; --muted: #a0a3ad; --faint: #6f7380;
    --blue: #6b8bff; --blue-soft: rgba(107, 139, 255, .14); --blue-ink: #a9bbff; --on-blue: #0d0e11;
    --green: #4cc38a; --amber: #f0b44c; --red: #ff6b6f; --violet: #a28bff;
    --av-l: 26%; --av-d: 82%;
    --shadow: 0 16px 40px -12px rgba(0, 0, 0, .6);
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.i18n-wait body { visibility: hidden; }
body { margin: 0; font: 400 15px/1.55 var(--font); color: var(--text); background: var(--bg); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
:lang(ka) h1, :lang(ka) h2, :lang(ka) h3 { letter-spacing: 0; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.flag { stroke: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mono, .num { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 80px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--blue); color: var(--on-blue); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
::selection { background: var(--blue-soft); }

/* rail */
.rail { position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 22px; width: var(--rail); padding: 16px 0; border-right: 1px solid var(--line); background: var(--surface); }
.rail-logo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--blue); color: #fff; }
.rail-logo svg { width: 30px; height: 30px; stroke-width: 3; }
.rail-links { display: grid; gap: 6px; }
.rail-links a { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; color: var(--muted); text-decoration: none; transition: background .15s, color .15s; }
.rail-links a:hover { background: var(--sunk); color: var(--text); }
.rail-links a[aria-current="page"] { background: var(--blue-soft); color: var(--blue); }
.rail-links a[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue); }
.rail-tip { position: absolute; left: calc(100% + 12px); top: 50%; padding: 5px 10px; border-radius: 7px; background: var(--text); color: var(--bg); font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-4px, -50%); transition: opacity .15s, transform .15s; }
.rail-links a:hover .rail-tip, .rail-links a:focus-visible .rail-tip { opacity: 1; transform: translate(0, -50%); }
.rail-badge { position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border: 2px solid var(--surface); border-radius: 9px; background: var(--red); color: #fff; font: 600 10px/13px var(--font); text-align: center; }
.rail-close { display: none; }

/* top bar */
.frame { min-height: 100vh; margin-left: var(--rail); display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 clamp(16px, 3vw, 36px); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.menu-btn { display: none !important; }
.crumb { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: 14.5px; white-space: nowrap; }
.crumb-home { color: var(--faint); }
.crumb-sep { color: var(--line-2); }
.crumb b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.search { display: flex; align-items: center; gap: 10px; flex: 1; max-width: 380px; min-width: 0; margin-left: auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--faint); text-align: left; }
.search:hover { border-color: var(--line-2); }
.search span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
kbd { padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px; font: 500 11.5px var(--mono); color: var(--muted); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--muted); }
.icon-btn:hover { background: var(--sunk); color: var(--text); }
.dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border: 2px solid var(--bg); border-radius: 50%; background: var(--red); }
[data-theme="dark"] .t-sun, [data-theme="light"] .t-moon { display: none; }
.me { padding: 0; border: 0; background: none; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: hsl(var(--h, 222) 70% var(--av-l)); color: hsl(var(--h, 222) 55% var(--av-d)); font-weight: 600; font-size: 12.5px; flex: none; }
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }

/* menus */
.dd { position: relative; }
.menu { position: absolute; z-index: 50; min-width: 200px; margin: 0; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); animation: pop .16s var(--ease); }
.menu > a, .menu > button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; text-align: left; text-decoration: none; font-size: 14px; }
.menu > a:hover, .menu > button:hover { background: var(--sunk); }
.menu svg { width: 17px; height: 17px; color: var(--muted); }
.quick-menu, .me-menu { right: 0; top: calc(100% + 8px); }
.me-who { display: grid; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.me-who small { color: var(--muted); }
.bell-menu { right: 0; top: calc(100% + 8px); width: min(360px, calc(100vw - 28px)); padding: 0; }
.bell-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.bell-list { max-height: 360px; margin: 0; padding: 6px; list-style: none; overflow-y: auto; }
.bell-list li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 9px; border-radius: 9px; font-size: 14px; }
.bell-list li.is-new { background: var(--blue-soft); }
.bell-list small { color: var(--muted); font-size: 12.5px; }
.link { padding: 0; border: 0; background: none; color: var(--blue); font-size: 13px; font-weight: 600; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }

/* language switch: a little chat – every language greets you in its own words */
.chat-btn { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 10px 0 6px; border: 1px solid var(--line); border-radius: 19px 19px 19px 6px; background: var(--surface); }
.chat-btn:hover { border-color: var(--line-2); }
.chat-flag { display: grid; width: 26px; height: 26px; border-radius: 50%; overflow: hidden; }
.chat-flag .flag { width: 40px; height: 26px; margin-left: -7px; }
.chat-code { font: 500 12px var(--mono); color: var(--muted); }
.chat-menu { right: 0; top: calc(100% + 10px); width: 270px; padding: 12px; background: var(--sunk); }
.chat-head { margin: 0 0 10px 4px; color: var(--muted); font-size: 12.5px; }
.bubble { display: flex; align-items: flex-end; gap: 8px; width: 100%; margin: 0 0 8px; padding: 0; border: 0; background: none; text-align: left; animation: rise .3s var(--ease) backwards; }
.bubble:nth-of-type(2) { animation-delay: .05s; } .bubble:nth-of-type(3) { animation-delay: .1s; } .bubble:nth-of-type(4) { animation-delay: .15s; }
.bubble:nth-of-type(even) { flex-direction: row-reverse; }
.chat-menu > .bubble { padding: 0; margin-bottom: 6px; }
.chat-menu > .bubble:hover { background: none; }
.bubble-av { display: grid; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 2px var(--surface); }
.bubble-av .flag { width: 42px; height: 28px; margin-left: -7px; }
.bubble-text { display: grid; padding: 8px 12px; border-radius: 16px 16px 16px 4px; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); transition: background .15s, color .15s; }
.bubble:nth-of-type(even) .bubble-text { border-radius: 16px 16px 4px 16px; }
.bubble-text b { font-weight: 600; font-size: 14.5px; }
.bubble-text small { color: var(--muted); font-size: 12px; }
.bubble:hover .bubble-text { background: var(--blue-soft); }
.bubble[aria-current="true"] .bubble-text { background: var(--blue); color: var(--on-blue); }
.bubble[aria-current="true"] .bubble-text small { color: inherit; opacity: .8; }
@keyframes rise { from { opacity: 0; transform: translateY(6px) scale(.97); } }

/* layout */
.main { flex: 1; width: 100%; max-width: 1400px; margin: 0 auto; padding: 32px clamp(16px, 3vw, 36px) 48px; outline: none; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.035em; }
:lang(ka) .page-head h1 { font-size: clamp(24px, 2.8vw, 34px); }
.page-head p { margin-top: 8px; color: var(--muted); max-width: 640px; }
.head-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 14px; margin-bottom: 16px; }
.card-head h2 { font-size: 16px; letter-spacing: -.01em; }
.card-head p { margin-top: 3px; color: var(--muted); font-size: 13.5px; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; }
.strip > div { display: grid; gap: 6px; padding: 20px 22px; border-left: 1px solid var(--line); }
.strip > div:first-child { border-left: 0; }
.strip small { color: var(--muted); font-size: 13px; }
.strip b { font: 500 clamp(22px, 2.2vw, 30px)/1.1 var(--mono); letter-spacing: -.03em; }
.strip em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.strip em.up { color: var(--green); }
.strip em.down { color: var(--red); }

/* today */
.task-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.task-row:last-child { border-bottom: 0; }
.task-row .t-main { min-width: 0; }
.task-row .t-main b { display: block; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-row .t-main small { color: var(--muted); font-size: 13px; }
.task-row.is-done .t-main b { color: var(--faint); text-decoration: line-through; }
.tick { position: relative; width: 22px; height: 22px; margin: 0; border: 1.5px solid var(--line-2); border-radius: 7px; background: var(--surface); cursor: pointer; -webkit-appearance: none; appearance: none; transition: background .15s, border-color .15s; flex: none; }
.tick:checked { border-color: var(--blue); background: var(--blue); }
.tick:checked::after { content: ""; position: absolute; left: 6.5px; top: 3px; width: 6px; height: 11px; border: solid var(--on-blue); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.due { font: 500 12px var(--mono); color: var(--muted); white-space: nowrap; }
.due.is-late { color: var(--red); }
.prio { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.agenda { margin: 0; padding: 0; list-style: none; }
.agenda li { display: grid; grid-template-columns: 58px 3px minmax(0, 1fr); gap: 14px; padding: 10px 0; }
.agenda time { font: 500 13px var(--mono); color: var(--muted); padding-top: 2px; }
.agenda i { border-radius: 3px; background: var(--c, var(--blue)); }
.agenda b { display: block; font-weight: 600; }
.agenda small { color: var(--muted); font-size: 13px; }
.agenda .is-now time { color: var(--blue); }
.feed { margin: 0; padding: 0; list-style: none; }
.feed li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 10px 0; }
.feed p { font-size: 14px; }
.feed small { color: var(--muted); font-size: 12.5px; }
.feed .ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sunk); color: var(--muted); }
.feed .ico svg { width: 16px; height: 16px; }
.quota { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 22px; }
.ring { position: relative; width: 132px; height: 132px; }
.ring svg { width: 132px; height: 132px; transform: rotate(-90deg); stroke-width: 10; }
.ring .track { stroke: var(--sunk); }
.ring .val { stroke: var(--blue); stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 500 26px var(--mono); }
.kv { display: grid; gap: 8px; font-size: 14px; }
.kv div { display: flex; justify-content: space-between; gap: 10px; }
.kv dt, .kv span:first-child { color: var(--muted); }

/* deals: kanban */
.board-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.board-tools .field-search { flex: 1 1 220px; max-width: 360px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; }
.col { display: flex; flex-direction: column; min-height: 420px; border-radius: var(--r); background: var(--sunk); scroll-snap-align: start; transition: background .15s, box-shadow .15s; }
.col.is-over { background: var(--blue-soft); box-shadow: inset 0 0 0 1.5px var(--blue); }
.col-head { display: grid; gap: 2px; padding: 14px 14px 10px; }
.col-head div { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.col-head b { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.col-head b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.col-head .count { font: 500 12px var(--mono); color: var(--muted); }
.col-head small { font: 500 13px var(--mono); color: var(--muted); }
.col-body { flex: 1; display: grid; align-content: start; gap: 10px; padding: 4px 10px 12px; }
.deal { display: grid; gap: 8px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: grab; transition: box-shadow .15s, transform .15s; }
.deal:hover { box-shadow: var(--shadow); }
.deal.is-drag { opacity: .45; transform: rotate(1.5deg); }
.deal-top { display: flex; justify-content: space-between; gap: 8px; }
.deal-top b { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.deal-co { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.deal-co svg { width: 14px; height: 14px; }
.deal-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.deal-val { font: 500 14px var(--mono); }
.deal-foot .avatar { width: 24px; height: 24px; font-size: 10px; }
.deal-meta { display: flex; gap: 6px; align-items: center; }
.deal-move { display: none; }
.prob { height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.prob i { display: block; height: 100%; width: var(--v); background: var(--c, var(--blue)); }
.add-deal { margin: 0 10px 12px; padding: 9px; border: 1px dashed var(--line-2); border-radius: 10px; background: none; color: var(--muted); font-size: 13.5px; }
.add-deal:hover { border-color: var(--blue); color: var(--blue); }

/* tables (deals list view, tasks) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: 12.5px; font-weight: 600; background: var(--surface); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--sunk); }
td.num, th.num { text-align: right; }
.th-sort { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: inherit; font: inherit; }
.th-sort::after { content: "↕"; opacity: .4; }
.th-sort[data-dir="asc"]::after { content: "↑"; opacity: 1; color: var(--blue); }
.th-sort[data-dir="desc"]::after { content: "↓"; opacity: 1; color: var(--blue); }
.stage { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.stage::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* contacts: split view */
.split { display: grid; grid-template-columns: 360px minmax(0, 1fr); min-height: 640px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.split-list { display: flex; flex-direction: column; border-right: 1px solid var(--line); min-width: 0; }
.split-tools { display: grid; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 10px; border: 1px solid var(--line); border-radius: 20px; background: none; font-size: 13px; color: var(--muted); }
.chip[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.people { flex: 1; margin: 0; padding: 6px; list-style: none; overflow-y: auto; max-height: 720px; }
.people button { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: none; text-align: left; }
.people button:hover { background: var(--sunk); }
.people button[aria-current="true"] { background: var(--blue-soft); }
.people .avatar { width: 38px; height: 38px; }
.people b { display: block; font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people small { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people .fav { color: #e6a700; }
.people .fav svg { width: 15px; height: 15px; fill: currentColor; }
.split-detail { min-width: 0; padding: 28px; overflow-y: auto; max-height: 800px; }
.person-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.person-head h2 { font-size: 24px; letter-spacing: -.03em; }
.person-head p { color: var(--muted); }
.person-head .head-actions { margin-left: auto; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.facts small { display: block; color: var(--muted); font-size: 12.5px; }
.facts b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.log-tabs { display: flex; gap: 6px; margin: 20px 0 12px; }
.log-form { display: grid; gap: 10px; margin-bottom: 18px; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding-bottom: 18px; }
.timeline li::after { content: ""; position: absolute; left: 15.5px; top: 34px; bottom: 2px; border-left: 1px solid var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c, var(--sunk)); color: var(--muted); }
.timeline .ico svg { width: 15px; height: 15px; }
.timeline p { font-size: 14.5px; }
.timeline small { color: var(--muted); font-size: 12.5px; }
.split-detail .back-btn { display: none; }

/* calendar */
.cal-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.cal-tools h2 { margin-right: auto; font-size: 18px; }
.week { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.week-head { display: contents; }
.week-head > div { padding: 10px 8px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--muted); }
.week-head > div:first-child { border-left: 0; }
.week-head b { display: block; font: 500 20px var(--mono); color: var(--text); }
.week-head .is-today b { display: grid; margin: 2px auto 0; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: var(--on-blue); }
.hours { position: relative; border-right: 1px solid var(--line); }
.hours span { display: block; height: 52px; padding: 2px 8px 0 0; font: 500 11px var(--mono); color: var(--faint); text-align: right; }
.day { position: relative; border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, transparent 0 51px, var(--line) 51px 52px); cursor: copy; }
.day:first-of-type { border-left: 0; }
.day.is-today { background-color: color-mix(in srgb, var(--blue-soft) 50%, transparent); }
.now-line { position: absolute; left: 0; right: 0; height: 2px; background: var(--red); z-index: 2; }
.now-line::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.event { position: absolute; left: 4px; right: 4px; z-index: 1; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 1px; padding: 5px 8px; overflow: hidden; border-left: 3px solid var(--c); border-radius: 6px; background: color-mix(in srgb, var(--c) 14%, var(--surface)); font-size: 12.5px; cursor: pointer; text-align: left; border-top: 0; border-right: 0; border-bottom: 0; }
.event b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event small { color: var(--muted); font: 500 11px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event.is-short { flex-direction: row; align-items: center; gap: 6px; padding-top: 2px; padding-bottom: 2px; }
.event.is-short b { flex: 1; min-width: 0; }
.event:hover { box-shadow: var(--shadow); }
.day-pick { display: none; }

/* tasks */
.task-groups { display: grid; gap: 22px; }
.task-group h2 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.task-group h2 span { font: 500 12px var(--mono); }
.task-list { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 0 16px; }
.task-list .task-row { grid-template-columns: auto auto minmax(0, 1fr) auto auto; }
.task-list .row-actions { display: flex; gap: 2px; opacity: .25; transition: opacity .15s; }
.task-list .task-row:hover .row-actions, .task-list .task-row:focus-within .row-actions { opacity: 1; }
.row-actions button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); }
.row-actions button:hover { background: var(--sunk); color: var(--text); }
.row-actions svg { width: 16px; height: 16px; }
.link-chip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 6px; background: var(--sunk); font-size: 12.5px; color: var(--muted); text-decoration: none; }

/* reports */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; stroke: none; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--faint); font: 500 11px var(--mono); }
.chart .bar-won { fill: var(--blue); }
.chart .bar-goal { fill: none; stroke: var(--text); stroke-width: 1.5; stroke-dasharray: 4 3; }
.chart-tip { position: absolute; z-index: 5; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: var(--shadow); font-size: 13px; pointer-events: none; transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap; }
.chart-tip b { display: block; }
.funnel-rows { display: grid; gap: 8px; }
.funnel-rows div { display: grid; grid-template-columns: 120px minmax(0, 1fr) 80px; align-items: center; gap: 12px; font-size: 14px; }
.funnel-rows .track { height: 26px; border-radius: 6px; background: var(--sunk); overflow: hidden; }
.funnel-rows .track i { display: block; height: 100%; width: var(--v); background: var(--c); border-radius: 6px; transition: width .8s var(--ease); }
.funnel-rows .num { text-align: right; font-size: 13px; }
.board-rank { margin: 0; padding: 0; list-style: none; }
.board-rank li { display: grid; grid-template-columns: 22px 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.board-rank li:last-child { border-bottom: 0; }
.board-rank .pos { font: 500 13px var(--mono); color: var(--faint); }
.board-rank .bar { height: 4px; margin-top: 6px; border-radius: 2px; background: var(--sunk); overflow: hidden; }
.board-rank .bar i { display: block; height: 100%; width: var(--v); background: var(--blue); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.sw { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.sw.dash { height: 0; border-top: 1.5px dashed var(--text); background: none; border-radius: 0; width: 14px; }
.sources { display: grid; gap: 10px; }
.sources div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 14px; }
.sources .track { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--sunk); overflow: hidden; }
.sources .track i { display: block; height: 100%; width: var(--v); background: var(--c); }

/* settings */
.settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.set-nav { position: sticky; top: 96px; display: grid; gap: 2px; }
.set-nav button { padding: 9px 12px; border: 0; border-radius: 8px; background: none; color: var(--muted); text-align: left; font-weight: 600; }
.set-nav button:hover { color: var(--text); }
.set-nav button[aria-selected="true"] { background: var(--sunk); color: var(--text); }
.set-panel { display: grid; gap: 20px; }
.stage-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.stage-list li { display: grid; grid-template-columns: 20px 28px minmax(0, 1fr) 90px auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.stage-list li.is-over { border-color: var(--blue); }
.stage-list li.is-drag { opacity: .4; }
.stage-list .grip { color: var(--faint); cursor: grab; }
.stage-list input[type="color"] { width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
.stage-list .input { padding: 7px 10px; }
.stage-list .lock { font-size: 12px; color: var(--faint); }

/* forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { border-color: var(--line-2); background: var(--sunk); }
.btn svg { width: 17px; height: 17px; }
.btn-sm { min-height: 36px; padding: 6px 12px; }
.btn-primary { border-color: var(--blue); background: var(--blue); color: var(--on-blue); }
.btn-primary:hover { border-color: var(--blue-ink); background: var(--blue-ink); color: var(--on-blue); box-shadow: 0 6px 18px -8px var(--blue); }
.btn-danger { border-color: var(--red); background: var(--red); color: #fff; }
.btn-danger:hover { background: var(--red); filter: brightness(1.08); }
.btn-ghost { border-color: transparent; background: none; }
.btn:disabled { opacity: .45; cursor: default; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span, .field > label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input, .select, .textarea { width: 100%; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s; }
.input[type="date"], .input[type="time"] { -webkit-appearance: none; appearance: none; display: block; max-width: 100%; min-height: 42px; }
.input[type="date"]::-webkit-date-and-time-value, .input[type="time"]::-webkit-date-and-time-value { min-height: 1.4em; text-align: left; }
.select { -webkit-appearance: none; appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.textarea { min-height: 84px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.field.is-invalid .input, .field.is-invalid .select { border-color: var(--red); }
.field-error { color: var(--red); font-size: 12.5px; }
.field-search { position: relative; }
.field-search svg { position: absolute; left: 11px; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; color: var(--faint); pointer-events: none; }
.field-search .input { padding-left: 36px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--sunk); }
.seg button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch:last-child { border-bottom: 0; }
.switch b { display: block; font-weight: 600; }
.switch small { color: var(--muted); font-size: 13px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { position: relative; width: 40px; height: 24px; border-radius: 12px; background: var(--line-2); transition: background .2s; flex: none; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.switch input:checked + i { background: var(--blue); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { outline: 2px solid var(--blue); outline-offset: 2px; }
.range-out { font: 500 13px var(--mono); color: var(--blue); }
input[type="range"] { accent-color: var(--blue); }

/* overlays */
dialog.modal { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
dialog.modal::backdrop { background: rgba(10, 12, 18, .4); backdrop-filter: blur(2px); }
dialog.modal[open] { animation: pop .2s var(--ease); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 0; }
.modal-head h2 { font-size: 19px; }
.modal-body { display: grid; gap: 14px; padding: 18px 22px; }
.modal-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 0 22px 20px; }
.modal-foot .btn-danger { margin-right: auto; }
.palette { position: fixed; inset: 0; z-index: 90; display: grid; justify-items: center; align-items: start; padding: 14vh 12px 12px; background: rgba(10, 12, 18, .35); }
.palette-box { width: min(600px, 100%); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; animation: pop .18s var(--ease); }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.palette-input input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 16px; }
.palette-list { max-height: 52vh; margin: 0; padding: 6px; list-style: none; overflow-y: auto; }
.palette-list li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; cursor: pointer; font-size: 14.5px; }
.palette-list li[aria-selected="true"] { background: var(--blue-soft); color: var(--blue); }
.palette-list li small { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.palette-list li .avatar { width: 24px; height: 24px; font-size: 10px; }
.palette-group { padding: 8px 12px 4px; color: var(--faint); font-size: 12px; cursor: default !important; }
.toasts { position: fixed; left: 50%; bottom: 22px; z-index: 95; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); transform: translateX(-50%); }
.toast { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; background: var(--text); color: var(--bg); box-shadow: var(--shadow); font-size: 14px; animation: rise .25s var(--ease); }
.toast span { flex: 1; }
.toast svg { width: 17px; height: 17px; opacity: .8; }
.toast button { padding: 3px 8px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .16); color: inherit; font-size: 13px; font-weight: 600; }
.toast.is-out { opacity: 0; transform: translateY(8px); transition: .25s; }

/* login + 404 */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-form { display: grid; align-content: center; gap: 22px; width: min(400px, 100%); margin: 0 auto; padding: 40px 20px; }
.auth-form h1 { font-size: 34px; letter-spacing: -.035em; }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.auth-art { position: relative; display: grid; align-content: center; justify-items: center; padding: 40px; border-left: 1px solid var(--line); background: var(--sunk); overflow: hidden; }
.auth-art svg.art { width: min(440px, 90%); height: auto; stroke: none; }
.auth-art p { max-width: 420px; margin-top: 24px; font-size: 19px; line-height: 1.45; letter-spacing: -.01em; text-align: center; }
.auth-art small { margin-top: 10px; color: var(--muted); }
.brand-row { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; text-decoration: none; }
.brand-row .rail-logo { width: 34px; height: 34px; border-radius: 9px; }
.pw { position: relative; }
.pw .input { padding-right: 46px; }
.pw button { position: absolute; right: 5px; top: 50%; display: grid; place-items: center; width: 34px; height: 34px; margin-top: -17px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); }
.lost { display: grid; place-items: center; align-content: center; gap: 16px; min-height: 100vh; padding: 30px 16px; text-align: center; }
.lost-code { font: 500 clamp(80px, 18vw, 150px)/1 var(--mono); letter-spacing: -.06em; color: var(--blue); }
.lost p { max-width: 420px; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; max-width: 1400px; width: 100%; margin: 0 auto; padding: 18px clamp(16px, 3vw, 36px); color: var(--faint); font-size: 13px; }

/* responsive */
@media (max-width: 1200px) {
    .span-4, .span-5, .span-7 { grid-column: span 6; }
    .split { grid-template-columns: 300px minmax(0, 1fr); }
}
@media (max-width: 980px) {
    .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
    .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .strip > div:nth-child(3) { border-left: 0; }
    .strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .search kbd { display: none; }
}
@media (max-width: 860px) {
    /* the rail becomes a sheet that slides up from the bottom */
    .frame { margin-left: 0; }
    .menu-btn { display: inline-grid !important; }
    .rail { inset: auto 0 0 0; width: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 14px; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--line); border-radius: 20px 20px 0 0; box-shadow: var(--shadow); transform: translateY(105%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s; }
    .sheet-open .rail { transform: none; visibility: visible; }
    .rail-logo { display: none; }
    .rail-close { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 10px; background: var(--sunk); grid-column: 2; grid-row: 1; }
    .rail-links { grid-column: 1; grid-row: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .rail-links a { width: auto; height: auto; grid-template-columns: 22px minmax(0, 1fr); justify-items: start; gap: 10px; padding: 12px; }
    .rail-links a[aria-current="page"]::before { display: none; }
    .rail-tip { position: static; padding: 0; background: none; color: inherit; opacity: 1; transform: none; font-size: 14.5px; white-space: normal; }
    .rail-badge { top: 6px; right: auto; left: 26px; }
    .sheet-scrim { position: fixed; inset: 0; z-index: 39; background: rgba(10, 12, 18, .4); }
    .crumb-home, .crumb-sep { display: none; }
    .search { flex: 0 0 38px; width: 38px; height: 38px; padding: 0; justify-content: center; border-color: transparent; background: none; }
    .search span, .search kbd { display: none; }
    .settings { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .set-nav { position: static; display: flex; overflow-x: auto; }
    .set-nav button { white-space: nowrap; }
    .split { display: block; min-height: 0; }
    .split-list { border-right: 0; }
    .people { max-height: none; }
    .split-detail { position: fixed; inset: 64px 0 0 0; z-index: 35; max-height: none; padding: 18px 16px 30px; background: var(--surface); transform: translateX(105%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s; }
    .split.is-detail .split-detail { transform: none; visibility: visible; }
    .split-detail .back-btn { display: inline-flex; margin-bottom: 14px; }
    .facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .auth { grid-template-columns: minmax(0, 1fr); }
    .auth-art { display: none; }
    /* the week becomes one day with a day picker */
    .week { grid-template-columns: 50px minmax(0, 1fr); }
    .week-head > div:not(.is-sel):not(:first-child), .day:not(.is-sel) { display: none; }
    .day-pick { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; }
    .day-pick button { display: grid; justify-items: center; min-width: 46px; padding: 6px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 12px; color: var(--muted); }
    .day-pick button b { font: 500 16px var(--mono); color: var(--text); }
    .day-pick button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: var(--on-blue); }
    .day-pick button[aria-pressed="true"] b { color: var(--on-blue); }
    .deal { cursor: default; }
    .deal-move { display: block; }
}
@media (max-width: 600px) {
    .top { gap: 8px; height: 58px; padding: 0 12px; }
    .split-detail { top: 58px; }
    .top-actions { gap: 4px; }
    .quick .btn span { display: none; }
    .quick .btn { width: 36px; padding: 0; }
    .chat-code { display: none; }
    .chat-btn { padding: 0 5px; }
    .icon-btn { width: 34px; height: 34px; }
    .main { padding-top: 22px; }
    .card { padding: 16px; }
    .strip > div { padding: 14px 16px; }
    .strip b { font-size: 20px; }
    .cal-tools h2 { flex-basis: 100%; }
    .day-pick { gap: 4px; }
    .day-pick button { flex: 1; min-width: 38px; }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .quota { grid-template-columns: minmax(0, 1fr); justify-items: center; }
    .quota .kv { width: 100%; }
    .board { grid-auto-columns: 84%; }
    .page-head .head-actions { width: 100%; }
    .page-head .head-actions .btn { flex: 1; }
    .funnel-rows div { grid-template-columns: 90px minmax(0, 1fr) 64px; }
    .task-list { padding: 0 10px; }
    .task-list .task-row { grid-template-columns: auto minmax(0, 1fr) auto; }
    .task-list .task-row .prio, .task-list .task-row .due { display: none; }
    .task-list .row-actions { opacity: 1; }
    .stage-list li { grid-template-columns: 18px 28px minmax(0, 1fr) auto; }
    .stage-list li .prob-in { grid-column: 3; }
    .facts { grid-template-columns: minmax(0, 1fr); }
    .toasts { bottom: 14px; }
}
@media (max-width: 360px) {
    .crumb b { max-width: 90px; }
    .top-actions .icon-btn[data-theme-toggle] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
    .rail, .top, .foot, .toasts, .head-actions { display: none !important; }
    .frame { margin: 0; }
    body { background: #fff; }
}

/* Georgian has no glyphs in the mono font – numbers with Georgian units use the text font with tabular figures */
:lang(ka) .mono, :lang(ka) .num, :lang(ka) .strip b, :lang(ka) .chart .axis, :lang(ka) .due, :lang(ka) .deal-val, :lang(ka) .col-head small, :lang(ka) .event small, :lang(ka) .agenda time { font-family: var(--font); font-variant-numeric: tabular-nums; letter-spacing: 0; }
