/* Gegma – Project Admin · plain CSS, no build step.
   Look: Bauhaus – red, yellow, blue and black, sharp edges, circles and squares, a floating dock.
   Sections: fonts · tokens · base · top bar · dock · menus · shape switch · layout · overview · board · timeline ·
   time · team · docs · settings · forms · overlays · login · responsive · print */

/* fonts (SIL Open Font License, see assets/fonts/OFL.txt) */
@font-face { font-family: "Jost"; font-weight: 400; font-display: swap; src: url("../fonts/jost-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+2122, U+2212, U+FEFF; }
@font-face { font-family: "Jost"; font-weight: 500; font-display: swap; src: url("../fonts/jost-latin-500-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+2122, U+2212, U+FEFF; }
@font-face { font-family: "Jost"; font-weight: 400; font-display: swap; src: url("../fonts/jost-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: "Jost"; font-weight: 500; font-display: swap; src: url("../fonts/jost-latin-ext-500-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: "Jost"; font-weight: 400; font-display: swap; src: url("../fonts/jost-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: "Jost"; font-weight: 500; font-display: swap; src: url("../fonts/jost-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Code"; font-weight: 500; font-display: swap; src: url("../fonts/fira-code-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }
@font-face { font-family: "Fira Code"; font-weight: 500; font-display: swap; src: url("../fonts/fira-code-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF; }
@font-face { font-family: "Fira Code"; font-weight: 500; font-display: swap; src: url("../fonts/fira-code-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1; }
@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: "Jost", "Noto Sans Georgian", system-ui, sans-serif;
    --mono: "Fira Code", ui-monospace, monospace;
    --red: #e63b2e; --yellow: #f7c217; --blue: #1f4bd6; --on-color: #fff;
    --ease: cubic-bezier(.25, .8, .25, 1);
}
:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f4efe6; --card: #fffdf9; --sunk: #ebe5d9; --ink: #111; --muted: #5f5a52; --faint: #948e84; --line: #ddd5c6; --strong: #111;
    --green: #1a8a4a; --shadow: 0 18px 40px -22px rgba(17, 17, 17, .35);
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #131313; --card: #1d1d1c; --sunk: #262624; --ink: #f2ede3; --muted: #b3aca0; --faint: #7d776d; --line: #34322e; --strong: #f2ede3;
    --green: #4cc382; --red: #ff5a4d; --blue: #5b80ff; --shadow: 0 18px 40px -16px rgba(0, 0, 0, .7);
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.i18n-wait body { visibility: hidden; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; padding-bottom: 96px; font: 400 16px/1.5 var(--font); color: var(--ink); background: var(--bg); }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
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.8; stroke-linecap: square; stroke-linejoin: miter; flex: none; }
svg.flag { stroke: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mono { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
:lang(ka) .mono { font-family: var(--font); }
.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: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--yellow); color: #111; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
::selection { background: var(--yellow); color: #111; }

/* top bar */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 14px clamp(16px, 3vw, 40px); background: var(--bg); border-bottom: 2px solid var(--strong); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo-mark { display: grid; grid-template-columns: 1fr 1fr; width: 34px; height: 34px; background: #111; }
.logo-mark i:nth-child(1) { margin: 3px; border-radius: 50%; background: var(--red); }
.logo-mark i:nth-child(2) { margin: 3px; background: var(--yellow); }
.logo-mark i:nth-child(3) { margin: 3px; background: var(--blue); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.logo-mark i:nth-child(4) { margin: 3px; background: #f4efe6; border-radius: 0 100% 0 0; }
.logo-word { font-size: 22px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }
.project-btn { display: flex; align-items: center; gap: 10px; max-width: 260px; padding: 7px 12px; border: 2px solid var(--strong); background: var(--card); }
.project-swatch { width: 14px; height: 14px; border-radius: 50%; background: var(--c, var(--red)); flex: none; }
.project-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.caret { width: 16px; height: 16px; }
.search { display: flex; align-items: center; gap: 10px; flex: 1; max-width: 360px; min-width: 0; margin-left: auto; padding: 8px 12px; border: 2px solid transparent; background: var(--sunk); color: var(--muted); text-align: left; }
.search:hover { border-color: var(--strong); }
.search span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
kbd { padding: 0 6px; border: 1.5px solid var(--faint); font: 500 12px var(--mono); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; }
.icon-btn:hover { background: var(--sunk); }
.dot { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; 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: 36px; height: 36px; border-radius: 50%; background: var(--c, var(--blue)); color: #fff; font-size: 13px; font-weight: 500; flex: none; }
.avatar.sm { width: 26px; height: 26px; font-size: 10.5px; }

/* dock */
.dock { position: fixed; left: 50%; bottom: 18px; z-index: 40; display: flex; gap: 4px; padding: 8px; border-radius: 40px; background: #111; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55); transform: translateX(-50%); }
.dock a { position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; color: #f4efe6; text-decoration: none; transition: transform .2s var(--ease), background .2s; }
.dock a svg { width: 22px; height: 22px; position: relative; z-index: 1; }
.dock a:hover { transform: translateY(-6px); background: #2a2a28; }
.dock a[aria-current="page"] { background: var(--yellow); color: #111; }
.dock a:nth-child(3n+2)[aria-current="page"] { background: var(--red); color: #fff; }
.dock a:nth-child(3n)[aria-current="page"] { background: var(--blue); color: #fff; }
.dock-tip { position: absolute; bottom: calc(100% + 14px); left: 50%; padding: 4px 10px; background: #111; color: #f4efe6; font-size: 13px; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .15s, transform .15s; }
.dock a:hover .dock-tip, .dock a:focus-visible .dock-tip { opacity: 1; transform: translate(-50%, 0); }
.dock-badge { position: absolute; top: 4px; right: 4px; z-index: 2; width: 12px; height: 12px; border: 2px solid #111; border-radius: 50%; background: var(--red); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* menus */
.dd { position: relative; }
.menu { position: absolute; z-index: 50; min-width: 210px; padding: 6px; border: 2px solid var(--strong); background: var(--card); box-shadow: 8px 8px 0 var(--strong); animation: pop .15s var(--ease); }
.menu > a, .menu > button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; text-align: left; text-decoration: none; }
.menu > a:hover, .menu > button:hover { background: var(--sunk); }
.project-menu { left: 0; top: calc(100% + 8px); width: 280px; }
.project-menu button small { margin-left: auto; color: var(--muted); font: 500 12px var(--mono); }
.me-menu { right: 0; top: calc(100% + 8px); }
.me-theme { display: none !important; }
.me-who { display: grid; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 2px 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: 2px 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: 14px 1fr; gap: 12px; padding: 10px; font-size: 15px; }
.bell-list li::before { content: ""; width: 12px; height: 12px; margin-top: 6px; background: var(--c, var(--blue)); }
.bell-list li:nth-child(3n+1)::before { border-radius: 50%; background: var(--red); }
.bell-list li:nth-child(3n+2)::before { background: var(--yellow); }
.bell-list li:nth-child(3n)::before { clip-path: polygon(0 100%, 50% 0, 100% 100%); background: var(--blue); }
.bell-list li.is-new { background: var(--sunk); }
.bell-list small { display: block; color: var(--muted); font-size: 13px; }
.link { padding: 0; border: 0; background: none; color: var(--blue); font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }

/* language switch: every language gets its own Bauhaus shape */
.shape-btn { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 4px; border: 0; background: none; }
.shape-btn:hover { background: var(--sunk); }
.shape { display: grid; place-items: center; overflow: hidden; flex: none; }
.shape .flag { width: 150%; height: 100%; }
.shape-btn .shape { width: 30px; height: 30px; }
.shape-circle { border-radius: 50%; }
.shape-square { border-radius: 0; }
.shape-triangle { clip-path: polygon(50% 4%, 100% 96%, 0 96%); }
.shape-quarter { border-radius: 0 100% 0 0; }
.shape-code { font: 500 13px var(--mono); }
.shape-menu { right: 0; top: calc(100% + 8px); width: 280px; padding: 14px; }
.shape-head { margin-bottom: 12px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
:lang(ka) .shape-head { text-transform: none; letter-spacing: 0; }
.shape-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shape-opt { display: grid; justify-items: center; gap: 8px; padding: 12px 6px 10px; border: 2px solid var(--line); background: none; font-size: 14px; transition: border-color .15s, transform .15s; }
.shape-opt .shape { width: 54px; height: 54px; transition: transform .3s var(--ease); }
.shape-opt:hover { border-color: var(--strong); }
.shape-opt:hover .shape { transform: rotate(-8deg) scale(1.06); }
.shape-opt[aria-current="true"] { border-color: var(--strong); background: var(--yellow); color: #111; }

/* layout */
.main { flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; padding: 32px clamp(16px, 3vw, 40px) 40px; outline: none; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 30px; }
.page-head h1 { position: relative; padding-left: 26px; font-size: clamp(32px, 4.4vw, 58px); letter-spacing: -.03em; }
.page-head h1::before { content: ""; position: absolute; left: 0; top: .18em; width: 12px; height: .8em; background: var(--red); }
:lang(ka) .page-head h1 { font-size: clamp(26px, 3.4vw, 42px); letter-spacing: 0; }
.page-head p { margin-top: 10px; max-width: 640px; color: var(--muted); font-size: 17px; }
.head-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 22px; }
.card { position: relative; min-width: 0; padding: 24px; background: var(--card); box-shadow: var(--shadow); }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 14px; margin-bottom: 18px; }
.card-head h2 { font-size: 20px; }
.card-head p { margin-top: 2px; color: var(--muted); font-size: 14.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; }
.corner { position: absolute; top: 0; right: 0; width: 22px; height: 22px; background: var(--c, var(--yellow)); }
.corner.round { border-radius: 0 0 0 100%; }

/* overview */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0; }
.stats > div { position: relative; display: grid; gap: 4px; padding: 22px 24px 22px 70px; }
.stats > div + div { border-left: 2px solid var(--bg); }
.stats .shape { position: absolute; left: 24px; top: 24px; width: 30px; height: 30px; background: var(--c); }
.stats small { color: var(--muted); font-size: 14px; }
.stats b { font: 500 32px/1.1 var(--font); letter-spacing: -.02em; }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.proj { position: relative; display: grid; gap: 14px; padding: 20px; background: var(--card); box-shadow: var(--shadow); text-decoration: none; border-top: 8px solid var(--c); transition: transform .2s var(--ease); }
.proj:hover { transform: translateY(-4px); }
.proj h3 { font-size: 20px; }
.proj-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 14px; }
.bar { height: 10px; background: var(--sunk); }
.bar i { display: block; width: var(--v); height: 100%; background: var(--c, var(--ink)); transition: width .8s var(--ease); }
.health { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; }
.health::before { content: ""; width: 10px; height: 10px; background: var(--c); }
.health.ok::before { border-radius: 50%; }
.health.risk::before { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.faces { display: flex; }
.faces .avatar { margin-left: -6px; border: 2px solid var(--card); }
.faces .avatar:first-child { margin-left: 0; }
.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(--muted); font: 500 11.5px var(--mono); }
:lang(ka) .chart .axis { font-family: var(--font); }
.chart .ideal { fill: none; stroke: var(--faint); stroke-width: 2; stroke-dasharray: 6 5; }
.chart .real { fill: none; stroke: var(--red); stroke-width: 3.5; stroke-linejoin: miter; }
.chart .pt { fill: var(--card); stroke: var(--red); stroke-width: 3; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; color: var(--muted); font-size: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 18px; height: 3px; background: var(--c); }
.legend i.dash { height: 0; border-top: 2px dashed var(--faint); background: none; }
.mine { margin: 0; padding: 0; list-style: none; }
.mine li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 2px solid var(--sunk); }
.mine li:last-child { border-bottom: 0; }
.mine .mk { width: 12px; height: 12px; background: var(--c); }
.mine b { font-weight: 500; }
.mine small { display: block; color: var(--muted); font-size: 13.5px; }
.tag { display: inline-flex; align-items: center; padding: 2px 8px; background: var(--c, var(--sunk)); color: var(--tc, var(--ink)); font-size: 12.5px; font-weight: 500; white-space: nowrap; }

/* board */
.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: 340px; }
.board { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 16px; overflow-x: auto; padding-bottom: 10px; }
.lane { display: flex; flex-direction: column; min-height: 460px; background: var(--sunk); transition: background .15s; }
.lane.is-over { background: color-mix(in srgb, var(--yellow) 30%, var(--sunk)); }
.lane.is-full .lane-head { background: var(--red); color: #fff; }
.lane-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; background: var(--strong); color: var(--bg); }
.lane-head b { font-weight: 500; font-size: 16px; }
.lane-head span { font: 500 13px var(--mono); }
.lane-body { flex: 1; display: grid; align-content: start; gap: 10px; padding: 12px; }
.task { position: relative; display: grid; gap: 10px; padding: 14px 14px 12px; background: var(--card); cursor: grab; box-shadow: 0 1px 0 var(--line); border-left: 6px solid var(--c); transition: transform .15s, box-shadow .15s; text-align: left; }
.task:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.task.is-drag { opacity: .4; }
.task b { font-weight: 500; line-height: 1.3; }
.task-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.task-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; }
.task-meta svg { width: 14px; height: 14px; }
.est { font: 500 12.5px var(--mono); padding: 1px 6px; background: var(--sunk); }
.check-mini { display: inline-flex; align-items: center; gap: 4px; }
.task-move { display: none; position: absolute; top: 8px; right: 8px; }
.add-task { margin: 0 12px 12px; padding: 10px; border: 2px dashed var(--faint); background: none; color: var(--muted); }
.add-task:hover { border-color: var(--strong); color: var(--ink); }
.wip { font-size: 12px; opacity: .8; }

/* timeline (gantt) */
.gantt-wrap { overflow-x: auto; background: var(--card); box-shadow: var(--shadow); }
.gantt { position: relative; display: grid; grid-template-columns: 240px 1fr; min-width: 900px; }
.g-names { position: sticky; left: 0; z-index: 5; border-right: 2px solid var(--strong); background: var(--card); }
.g-head { height: 54px; border-bottom: 2px solid var(--strong); }
.g-row { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.g-row b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-row.is-group { background: var(--sunk); font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
:lang(ka) .g-row.is-group { text-transform: none; letter-spacing: 0; }
.g-area { position: relative; }
.g-scale { position: relative; height: 54px; border-bottom: 2px solid var(--strong); }
.g-scale span { position: absolute; top: 0; height: 100%; padding: 6px 0 0 6px; border-left: 1px solid var(--line); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.g-scale span b { display: block; color: var(--ink); font: 500 13px var(--mono); }
:lang(ka) .g-scale span b { font-family: var(--font); }
.g-scale span.is-weekend { background: color-mix(in srgb, var(--sunk) 60%, transparent); }
.g-lines { position: absolute; inset: 54px 0 0 0; pointer-events: none; }
.g-lines i { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line); }
.g-lines i.is-weekend { background: color-mix(in srgb, var(--sunk) 45%, transparent); border-left-color: transparent; }
.g-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--red); z-index: 3; pointer-events: none; }
.g-today::before { content: ""; position: absolute; top: 0; left: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.g-bar { position: absolute; height: 26px; margin-top: 9px; display: flex; align-items: center; padding: 0 8px; background: var(--c); color: var(--tc, #fff); font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; cursor: grab; touch-action: none; user-select: none; z-index: 2; }
.g-bar.is-drag { cursor: grabbing; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .45); z-index: 4; }
.g-bar i { position: absolute; inset: 0 auto 0 0; width: var(--p); background: rgba(0, 0, 0, .18); pointer-events: none; }
.g-bar span { position: relative; overflow: hidden; text-overflow: ellipsis; }
.g-bar .g-handle { position: absolute; right: 0; top: 0; bottom: 0; width: 10px; cursor: ew-resize; background: rgba(0, 0, 0, .15); }
.g-mile { position: absolute; width: 18px; height: 18px; margin: 13px 0 0 -9px; background: var(--strong); transform: rotate(45deg); z-index: 2; }
.g-links { position: absolute; left: 0; top: 54px; pointer-events: none; z-index: 1; color: var(--muted); }
.g-links path { fill: none; stroke: var(--faint); stroke-width: 1.5; }

/* time */
.timer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 18px; padding: 22px 24px; background: #111; color: #f4efe6; }
.timer .play { display: grid; place-items: center; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; background: var(--yellow); color: #111; }
.timer .play svg { width: 26px; height: 26px; fill: currentColor; stroke: none; }
.timer.is-on .play { background: var(--red); color: #fff; }
.timer-clock { font: 500 clamp(30px, 4vw, 48px)/1 var(--mono); letter-spacing: -.02em; }
.timer .input, .timer .select { border-color: #3a3a37; background: #1d1d1c; color: #f4efe6; }
.timer-fields { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 10px; }
.sheet { width: 100%; border-collapse: collapse; font-size: 15px; }
.sheet th, .sheet td { padding: 10px 8px; border-bottom: 2px solid var(--sunk); text-align: center; white-space: nowrap; }
.sheet th:first-child, .sheet td:first-child { text-align: left; }
.sheet th { font-weight: 500; color: var(--muted); font-size: 13.5px; }
.sheet th.is-today { color: var(--red); }
.sheet td .input { width: 64px; padding: 6px; text-align: center; font: 500 14px var(--mono); }
:lang(ka) .sheet td .input { font-family: var(--font); }
.sheet tfoot td { border-bottom: 0; font: 500 15px var(--mono); }
:lang(ka) .sheet tfoot td, :lang(ka) .est, :lang(ka) .shape-code, :lang(ka) .g-scale span b { font-family: var(--font); }
.sheet .proj-cell { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.sheet .proj-cell i { width: 12px; height: 12px; background: var(--c); }
.log { margin: 0; padding: 0; list-style: none; }
.log li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 2px solid var(--sunk); }
.log li i { width: 12px; height: 12px; background: var(--c); }
.log li small { display: block; color: var(--muted); font-size: 13px; }

/* team */
.load { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: 14px; }
.load th { padding: 6px; color: var(--muted); font-weight: 500; font-size: 13px; }
.load th.is-today { color: var(--red); }
.load td.who { padding-right: 12px; white-space: nowrap; }
.load td.who span { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.load td.cell { height: 44px; min-width: 52px; text-align: center; font: 500 12.5px var(--mono); background: color-mix(in srgb, var(--blue) calc(var(--v) * .9%), var(--sunk)); color: var(--tc, var(--ink)); }
.load td.cell.is-over { background: var(--red); color: #fff; }
.load td.cell.is-off { background: repeating-linear-gradient(45deg, var(--sunk) 0 6px, var(--bg) 6px 12px); color: var(--muted); font-family: var(--font); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.person { display: grid; gap: 12px; padding: 20px; background: var(--card); box-shadow: var(--shadow); }
.person-top { display: flex; align-items: center; gap: 12px; }
.person-top .avatar { width: 48px; height: 48px; font-size: 16px; }
.person-top b { display: block; font-weight: 500; font-size: 17px; }
.person-top small { color: var(--muted); }
.skills { display: flex; flex-wrap: wrap; gap: 6px; }

/* docs */
.docs { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; align-items: start; }
.doc-list { display: grid; gap: 4px; padding: 10px; background: var(--card); box-shadow: var(--shadow); }
.doc-list button { display: grid; gap: 2px; padding: 10px 12px; border: 0; border-left: 4px solid transparent; background: none; text-align: left; }
.doc-list button:hover { background: var(--sunk); }
.doc-list button[aria-current="true"] { border-left-color: var(--red); background: var(--sunk); }
.doc-list b { font-weight: 500; }
.doc-list small { color: var(--muted); font-size: 13px; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--card); box-shadow: var(--shadow); min-height: 520px; }
.editor-pane { display: flex; flex-direction: column; min-width: 0; }
.editor-pane + .editor-pane { border-left: 2px solid var(--sunk); }
.editor-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 2px solid var(--sunk); }
.editor-bar .title-in { flex: 1 1 160px; border: 0; background: none; font-size: 18px; font-weight: 500; outline: none; padding: 4px; }
.editor-bar .icon-btn { width: 34px; height: 34px; border-radius: 0; }
.editor textarea { flex: 1; min-height: 440px; padding: 16px; border: 0; background: none; outline: none; font: 400 14.5px/1.7 var(--mono); resize: vertical; }
:lang(ka) .editor textarea { font-family: var(--font); }
.preview { padding: 18px 22px; overflow-wrap: anywhere; }
.preview h1 { font-size: 28px; margin: 4px 0 12px; }
.preview h2 { font-size: 21px; margin: 18px 0 8px; }
.preview h3 { font-size: 17px; margin: 14px 0 6px; }
.preview p { margin: 0 0 10px; }
.preview ul, .preview ol { margin: 0 0 12px; padding-left: 22px; }
.preview li.done { color: var(--muted); text-decoration: line-through; }
.preview code { padding: 1px 5px; background: var(--sunk); font: 500 .9em var(--mono); }
.preview blockquote { margin: 0 0 12px; padding: 6px 14px; border-left: 4px solid var(--yellow); color: var(--muted); }
.saved-note { margin-left: auto; color: var(--muted); font-size: 13px; }

/* settings */
.settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.set-nav { position: sticky; top: 100px; display: grid; gap: 4px; }
.set-nav button { padding: 10px 14px; border: 0; border-left: 4px solid transparent; background: none; text-align: left; font-weight: 500; color: var(--muted); }
.set-nav button[aria-selected="true"] { border-left-color: var(--blue); background: var(--card); color: var(--ink); }
.set-panel { display: grid; gap: 22px; }
.labels { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.labels li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.labels input[type="color"] { width: 36px; height: 36px; padding: 0; border: 2px solid var(--strong); background: none; cursor: pointer; }
.days { display: flex; flex-wrap: wrap; gap: 6px; }
.days label { position: relative; }
.days input { position: absolute; opacity: 0; }
.days span { display: grid; place-items: center; min-width: 52px; height: 44px; padding: 0 8px; border: 2px solid var(--strong); font-weight: 500; cursor: pointer; }
.days input:checked + span { background: var(--strong); color: var(--bg); }
.days input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

/* forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 18px; border: 2px solid var(--strong); background: none; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.btn:hover { background: var(--strong); color: var(--bg); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { border-color: var(--blue); background: var(--blue); color: #fff; }
.btn-primary:hover { border-color: var(--strong); background: var(--strong); color: var(--bg); }
.btn-red { border-color: var(--red); background: var(--red); color: #fff; }
.btn-yellow { border-color: var(--yellow); background: var(--yellow); color: #111; }
.btn-ghost { border-color: transparent; }
.btn-sm { min-height: 36px; padding: 5px 12px; font-size: 14.5px; }
.btn:disabled { opacity: .45; cursor: default; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span, .field > label, legend { font-size: 13.5px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
:lang(ka) .field > span, :lang(ka) .field > label, :lang(ka) legend { text-transform: none; letter-spacing: 0; }
.input, .select, .textarea { width: 100%; min-width: 0; padding: 10px 12px; border: 2px solid var(--line); border-radius: 0; background: var(--card); outline: none; transition: border-color .15s; }
.input[type="date"] { -webkit-appearance: none; appearance: none; display: block; max-width: 100%; min-height: 46px; }
.input[type="date"]::-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(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.textarea { min-height: 90px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); }
.field.is-invalid .input, .field.is-invalid .select { border-color: var(--red); }
.field-error { color: var(--red); font-size: 13px; text-transform: none; letter-spacing: 0; }
.field-search { position: relative; }
.field-search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--muted); pointer-events: none; }
.field-search .input { padding-left: 40px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .wide { grid-column: 1 / -1; }
.seg { display: inline-flex; border: 2px solid var(--strong); }
.seg button { padding: 7px 14px; border: 0; background: none; font-weight: 500; white-space: nowrap; }
.seg button + button { border-left: 2px solid var(--strong); }
.seg button[aria-pressed="true"] { background: var(--strong); color: var(--bg); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 2px solid var(--sunk); cursor: pointer; }
.switch:last-child { border-bottom: 0; }
.switch b { display: block; font-weight: 500; }
.switch small { color: var(--muted); font-size: 14px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { position: relative; width: 52px; height: 28px; background: var(--sunk); border: 2px solid var(--strong); flex: none; transition: background .2s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; background: var(--strong); transition: transform .2s var(--ease), border-radius .2s; }
.switch input:checked + i { background: var(--yellow); }
.switch input:checked + i::after { transform: translateX(24px); border-radius: 50%; background: #111; }
.switch input:focus-visible + i { outline: 3px solid var(--blue); outline-offset: 2px; }
.checklist { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.checklist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.checklist li.done span { color: var(--muted); text-decoration: line-through; }
.tick { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); }
.row-actions { display: flex; gap: 2px; }
.row-actions button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--muted); }
.row-actions button:hover { background: var(--sunk); color: var(--ink); }
.row-actions svg { width: 16px; height: 16px; }

/* overlays */
dialog.modal { width: min(600px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 2px solid var(--strong); border-radius: 0; background: var(--card); color: var(--ink); box-shadow: 12px 12px 0 var(--strong); }
dialog.modal::backdrop { background: rgba(17, 17, 17, .5); }
dialog.modal[open] { animation: pop .2s var(--ease); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; background: var(--strong); color: var(--bg); }
.modal-head h2 { font-size: 21px; }
.modal-head .icon-btn { color: var(--bg); }
.modal-head .icon-btn:hover { background: rgba(255, 255, 255, .12); }
.modal-body { display: grid; gap: 16px; padding: 22px; }
.modal-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 0 22px 22px; }
.modal-foot .btn-red { 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(17, 17, 17, .45); }
.palette-box { width: min(620px, 100%); border: 2px solid var(--strong); background: var(--card); box-shadow: 12px 12px 0 var(--strong); animation: pop .18s var(--ease); }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 2px solid var(--strong); }
.palette-input input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 18px; }
.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; cursor: pointer; }
.palette-list li[aria-selected="true"] { background: var(--yellow); color: #111; }
.palette-list li small { margin-left: auto; opacity: .7; font-size: 13px; }
.palette-group { padding: 8px 12px 4px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; cursor: default !important; }
:lang(ka) .palette-group { text-transform: none; letter-spacing: 0; }
.toasts { position: fixed; right: 18px; bottom: 100px; z-index: 95; display: grid; gap: 8px; width: min(400px, calc(100vw - 36px)); }
.toast { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--strong); color: var(--bg); box-shadow: 6px 6px 0 var(--yellow); font-size: 15px; animation: slide .25s var(--ease); }
.toast span { flex: 1; }
.toast svg { width: 18px; height: 18px; }
.toast button { padding: 3px 9px; border: 0; background: var(--yellow); color: #111; font-weight: 500; }
.toast.is-out { opacity: 0; transform: translateX(20px); transition: .25s; }
@keyframes slide { from { opacity: 0; transform: translateX(20px); } }

/* 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(420px, 100%); margin: 0 auto; padding: 40px 20px; }
.auth-form h1 { font-size: 46px; letter-spacing: -.03em; }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.auth-art { position: relative; overflow: hidden; background: #111; }
.auth-art svg { position: absolute; inset: 0; width: 100%; height: 100%; stroke: none; }
.auth-art p { position: absolute; left: 40px; right: 40px; bottom: 40px; padding: 18px 20px; background: #f4efe6; color: #111; font-size: 19px; line-height: 1.45; }
.auth-art small { display: block; margin-top: 8px; color: #5f5a52; font-size: 14px; }
.pw { position: relative; }
.pw .input { padding-right: 48px; }
.pw button { position: absolute; right: 6px; top: 50%; display: grid; place-items: center; width: 34px; height: 34px; margin-top: -17px; padding: 0; border: 0; background: none; }
.lost { display: grid; place-items: center; align-content: center; gap: 18px; min-height: 100vh; padding: 30px 16px; text-align: center; }
.lost-shapes { display: flex; gap: 12px; }
.lost-shapes i { display: grid; place-items: center; width: clamp(70px, 14vw, 120px); aspect-ratio: 1; color: #fff; font: 500 clamp(40px, 8vw, 72px) var(--font); font-style: normal; }
.lost-shapes i:nth-child(1) { background: var(--red); border-radius: 50%; }
.lost-shapes i:nth-child(2) { background: var(--yellow); color: #111; }
.lost-shapes i:nth-child(3) { background: var(--blue); clip-path: polygon(50% 0, 100% 100%, 0 100%); padding-top: 22%; }
.lost p { max-width: 440px; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; max-width: 1440px; width: 100%; margin: 0 auto; padding: 18px clamp(16px, 3vw, 40px); color: var(--faint); font-size: 14px; }

/* responsive */
@media (max-width: 1200px) {
    .span-4, .span-5, .span-7 { grid-column: span 6; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats > div:nth-child(3) { border-left: 0; }
    .stats > div:nth-child(n+3) { border-top: 2px solid var(--bg); }
}
@media (max-width: 980px) {
    .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
    .search kbd, .logo-word { display: none; }
    .docs { grid-template-columns: minmax(0, 1fr); }
    .doc-list { display: flex; overflow-x: auto; }
    .doc-list button { flex: none; min-width: 180px; }
    .timer { grid-template-columns: auto minmax(0, 1fr); }
    .timer-fields { grid-column: 1 / -1; grid-row: 2; }
    .timer > .btn { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    body { padding-bottom: 88px; }
    .top { gap: 8px; padding: 10px 12px; }
    .project-btn { max-width: 150px; padding: 6px 8px; }
    .search { flex: 0 0 40px; width: 40px; height: 40px; padding: 0; justify-content: center; background: none; }
    .search span, .search kbd { display: none; }
    .shape-code { display: none; }
    .shape-btn { padding: 0 4px; }
    .top-actions { gap: 2px; }
    .icon-btn { width: 36px; height: 36px; }
    .dock { left: 8px; right: 8px; bottom: 8px; justify-content: space-between; padding: 6px; border-radius: 32px; transform: none; }
    .dock a { width: auto; flex: 1; height: 46px; border-radius: 23px; }
    .dock a:hover { transform: none; }
    .dock-tip { display: none; }
    .toasts { right: 12px; bottom: 76px; width: calc(100vw - 24px); }
    .main { padding-top: 22px; }
    .card { padding: 18px; }
    .stats > div { padding: 16px 16px 16px 56px; }
    .stats .shape { left: 16px; top: 18px; width: 26px; height: 26px; }
    .stats b { font-size: 25px; }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .settings { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .set-nav { position: static; display: flex; overflow-x: auto; }
    .set-nav button { white-space: nowrap; border-left: 0; border-bottom: 4px solid transparent; }
    .set-nav button[aria-selected="true"] { border-bottom-color: var(--blue); }
    .board { grid-template-columns: repeat(4, 82%); scroll-snap-type: x mandatory; }
    .lane { scroll-snap-align: start; }
    .task { cursor: default; padding-right: 44px; }
    .task-move { display: grid; }
    .editor { grid-template-columns: minmax(0, 1fr); }
    .editor-pane + .editor-pane { border-left: 0; border-top: 2px solid var(--sunk); }
    .editor textarea { min-height: 260px; }
    .page-head .head-actions { width: 100%; }
    .page-head .head-actions .btn { flex: 1; }
    .timer { gap: 12px; padding: 16px; }
    .timer .play { width: 52px; height: 52px; }
    .timer-fields { grid-template-columns: minmax(0, 1fr); }
    .auth { grid-template-columns: minmax(0, 1fr); }
    .auth-art { display: none; }
}
@media (max-width: 400px) {
    .logo-mark { width: 30px; height: 30px; }
    .project-btn { max-width: 116px; gap: 6px; }
    .project-btn .caret { display: none; }
    .top-theme { display: none; }
    .me-theme { display: flex !important; }
    .top { gap: 6px; }
    .me .avatar { width: 32px; height: 32px; }
}
/* dark mode: black tags and avatars get a fine outline so they do not vanish */
[data-theme="dark"] .tag, [data-theme="dark"] .avatar, [data-theme="dark"] .g-bar { box-shadow: inset 0 0 0 1px #55514a; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
    .top, .dock, .foot, .toasts, .head-actions { display: none !important; }
    body { background: #fff; padding: 0; }
}
