/* Gundi – HR Admin · plain CSS, no build step.
   Look: warm sand and terracotta, a header band with the page tabs and soft cards that overlap it, Lora headings;
   the language switch is a wall of conference name badges.
   Sections: fonts · tokens · base · band + tabs · menus · name badges · frame · overview · people · org chart ·
   time off · recruiting · reviews · settings · forms · overlays · login · responsive · print */

/* fonts (SIL Open Font License, see assets/fonts/OFL.txt) */
@font-face { font-family: "Lora"; font-weight: 600; font-display: swap; src: url("../fonts/lora-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: "Lora"; font-weight: 600; font-display: swap; src: url("../fonts/lora-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: "Lora"; font-weight: 600; font-display: swap; src: url("../fonts/lora-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: "Lora"; font-weight: 700; font-display: swap; src: url("../fonts/lora-latin-700-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: "Lora"; font-weight: 700; font-display: swap; src: url("../fonts/lora-latin-ext-700-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: "Lora"; font-weight: 700; font-display: swap; src: url("../fonts/lora-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("../fonts/manrope-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: "Manrope"; font-weight: 400; font-display: swap; src: url("../fonts/manrope-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: "Manrope"; font-weight: 400; font-display: swap; src: url("../fonts/manrope-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: "Manrope"; font-weight: 600; font-display: swap; src: url("../fonts/manrope-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: "Manrope"; font-weight: 600; font-display: swap; src: url("../fonts/manrope-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: "Manrope"; font-weight: 600; font-display: swap; src: url("../fonts/manrope-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: "Noto Serif Georgian"; font-weight: 600; font-display: swap; src: url("../fonts/noto-serif-georgian-georgian-600-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 Serif Georgian"; font-weight: 700; font-display: swap; src: url("../fonts/noto-serif-georgian-georgian-700-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: 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 {
    --serif: "Lora", "Noto Serif Georgian", Georgia, serif;
    --font: "Manrope", "Noto Sans Georgian", system-ui, sans-serif;
    --r: 22px; --r-s: 14px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --terra: #c8553d; --sage: #6b8f71; --mustard: #e0a83b; --plum: #8e5572; --sky: #5b8bb5; --rose: #e28a8a;
}
:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f7f1ea; --band: #c8553d; --band-2: #b14a34; --band-ink: #fff6ee; --card: #fffdf9; --soft: #f3ebe2; --line: #eadfd2; --line-2: #dccdbd;
    --text: #2b2320; --muted: #76665e; --faint: #a8988e; --accent: #c8553d; --accent-ink: #a8432d; --accent-soft: #f8e1d9;
    --ok: #4f7d57; --ok-soft: #e1ecdf; --warn: #b7841f; --warn-soft: #f8ecd1; --bad: #b23a3a; --bad-soft: #f7dede;
    --shadow: 0 22px 40px -28px rgba(90, 50, 30, .45), 0 2px 6px -3px rgba(90, 50, 30, .1);
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #1a1513; --band: #5b2a1f; --band-2: #4c2219; --band-ink: #f6e7dc; --card: #251e1b; --soft: #2d2522; --line: #3a302b; --line-2: #4a3e37;
    --text: #f1e8e1; --muted: #b5a59b; --faint: #85766d; --accent: #e8836b; --accent-ink: #f2a28e; --accent-soft: rgba(232, 131, 107, .16);
    --ok: #93c39b; --ok-soft: rgba(147, 195, 155, .14); --warn: #e9c06a; --warn-soft: rgba(233, 192, 106, .14); --bad: #f08a8a; --bad-soft: rgba(240, 138, 138, .14);
    --shadow: 0 22px 40px -24px rgba(0, 0, 0, .8);
}

/* 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; font: 400 15px/1.55 var(--font); color: var(--text); background: var(--bg); }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 700; line-height: 1.15; }
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: round; stroke-linejoin: round; flex: none; }
svg.flag { stroke: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.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; border-radius: 12px; background: var(--card); color: var(--text); }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--mustard) 70%, transparent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* header band with tabs */
.band { padding: 0 0 92px; background: radial-gradient(ellipse at 85% -20%, rgba(255, 255, 255, .16), transparent 55%), radial-gradient(ellipse at 0% 120%, var(--band-2), transparent 60%), var(--band); color: var(--band-ink); }
.band-top { display: flex; align-items: center; gap: 14px; max-width: 1360px; margin: 0 auto; padding: 16px 26px 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { position: relative; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.brand-mark i { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--band-ink); }
.brand-mark i:nth-child(1) { left: 6px; top: 8px; } .brand-mark i:nth-child(2) { right: 6px; top: 8px; opacity: .75; } .brand-mark i:nth-child(3) { left: 14px; bottom: 6px; background: var(--mustard); }
.brand-word { font: 700 23px/1 var(--serif); }
.brand-word small { display: block; margin-top: 3px; font: 400 12px var(--font); opacity: .8; }
.search { display: flex; align-items: center; gap: 10px; flex: 1; max-width: 440px; min-width: 0; margin-left: 16px; padding: 10px 16px; border: 0; border-radius: 30px; background: rgba(255, 255, 255, .14); color: var(--band-ink); text-align: left; }
.search:hover { background: rgba(255, 255, 255, .22); }
.search span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .85; }
kbd { padding: 0 7px; border-radius: 6px; background: rgba(0, 0, 0, .15); font: 600 11.5px var(--font); }
.top-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; }
.band .icon-btn:hover { background: rgba(255, 255, 255, .16); }
.card .icon-btn, .modal .icon-btn, .drawer .icon-btn { color: var(--muted); }
.card .icon-btn:hover, .modal .icon-btn:hover, .drawer .icon-btn:hover { background: var(--soft); color: var(--text); }
.dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border: 2px solid var(--band); border-radius: 50%; background: var(--mustard); }
[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: 40px; height: 40px; border-radius: 50%; background: hsl(var(--h, 20) 60% 86%); color: hsl(var(--h, 20) 45% 28%); font: 700 13.5px var(--font); flex: none; }
[data-theme="dark"] .avatar { background: hsl(var(--h, 20) 30% 30%); color: hsl(var(--h, 20) 70% 86%); }
.band .avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.avatar.lg { width: 72px; height: 72px; font-size: 22px; }
.avatar.is-away { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--mustard); }
.tabs { display: flex; gap: 4px; max-width: 1360px; margin: 0 auto; padding: 6px 22px 0; overflow-x: auto; scrollbar-width: none; }
.tabs a { display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 30px; color: var(--band-ink); font-weight: 600; text-decoration: none; white-space: nowrap; opacity: .85; }
.tabs a:hover { background: rgba(255, 255, 255, .12); opacity: 1; }
.tabs a svg { width: 18px; height: 18px; }
.tabs a[aria-current="page"] { background: var(--bg); color: var(--accent-ink); opacity: 1; box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .4); }
.tab-badge { min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--mustard); color: #2b2320; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }

/* menus */
.dd { position: relative; }
.menu { position: absolute; z-index: 50; min-width: 220px; padding: 6px; border-radius: 18px; background: var(--card); color: var(--text); box-shadow: var(--shadow), 0 0 0 1px var(--line); animation: pop .18s var(--ease); }
.menu > a, .menu > button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 12px; background: none; text-align: left; text-decoration: none; }
.menu > a:hover, .menu > button:hover { background: var(--soft); }
.me-menu { right: 0; top: calc(100% + 8px); }
.me-who { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.me-who b { display: block; }
.me-who small { color: var(--muted); }
.me-theme { display: none !important; }
.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 16px; 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: 36px 1fr; gap: 12px; padding: 10px; border-radius: 12px; font-size: 14px; }
.bell-list li.is-new { background: var(--accent-soft); }
.bell-list small { display: block; color: var(--muted); font-size: 12.5px; }
.bell-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c); color: var(--text); }
.bell-ico svg { width: 17px; height: 17px; }
.link { padding: 0; border: 0; background: none; color: var(--accent-ink); font-size: 13.5px; font-weight: 600; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }

/* language switch: conference name badges */
.badge-btn { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border: 0; border-radius: 30px; background: rgba(255, 255, 255, .14); color: inherit; }
.badge-btn:hover { background: rgba(255, 255, 255, .22); }
.badge-mini { display: grid; width: 30px; height: 30px; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); }
.badge-mini .flag { width: 100%; height: 100%; transform: scale(1.6); }
.badge-code { font-weight: 700; font-size: 13px; letter-spacing: .06em; }
.badge-menu { right: 0; top: calc(100% + 10px); width: 320px; padding: 14px; }
.badge-head { margin: 0 0 12px 4px; color: var(--muted); font-size: 13px; font-weight: 600; }
.badge-wall { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.badge-opt { position: relative; display: grid; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; box-shadow: 0 8px 16px -12px rgba(0, 0, 0, .4); transition: transform .25s var(--ease); }
.badge-opt::before { content: ""; position: absolute; left: 50%; top: -1px; width: 26px; height: 8px; margin-left: -13px; border-radius: 0 0 6px 6px; background: var(--line-2); }
.badge-opt:nth-child(odd) { transform: rotate(-2deg); } .badge-opt:nth-child(even) { transform: rotate(2deg); }
.badge-opt:hover { transform: rotate(0) translateY(-2px); }
.badge-hello { padding: 12px 8px 6px; background: var(--accent); color: #fff; font: 700 15px var(--serif); text-align: center; }
.badge-opt:nth-child(2) .badge-hello { background: var(--sage); } .badge-opt:nth-child(3) .badge-hello { background: var(--mustard); color: #2b2320; } .badge-opt:nth-child(4) .badge-hello { background: var(--sky); }
.badge-body { display: grid; justify-items: center; gap: 6px; padding: 10px 8px 12px; }
.badge-photo { display: grid; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 2px var(--line); }
.badge-photo .flag { width: 100%; height: 100%; transform: scale(1.6); }
.badge-name { font-weight: 600; font-size: 13.5px; }
.badge-opt[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 10px 20px -12px rgba(0, 0, 0, .4); }

/* page frame: cards overlap the band */
.main { max-width: 1360px; margin: -78px auto 0; padding: 0 26px 10px; outline: none; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; max-width: 1360px; margin: 0 auto; padding: 22px 26px 26px; color: var(--faint); font-size: 12.5px; }
.hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin: 0 0 22px; padding: 28px 30px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.hero > div:first-child { min-width: 0; max-width: 100%; }
.eyebrow { margin-bottom: 6px; color: var(--accent-ink); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero h1 { font-size: clamp(28px, 3.4vw, 42px); overflow-wrap: anywhere; }
.lead { max-width: 64ch; margin-top: 8px; color: var(--muted); }
.head-actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.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; }
.card { min-width: 0; padding: 20px 22px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.card-head h2 { font-size: 21px; }
.card-head p { margin-top: 3px; color: var(--muted); font-size: 13.5px; }
.keys { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13px; }
.keys > span { display: inline-flex; align-items: center; gap: 6px; }
.keys i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.empty { padding: 28px 12px; color: var(--muted); text-align: center; font-family: var(--serif); font-style: italic; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 20px; background: var(--c, var(--soft)); color: var(--ic, var(--text)); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.team-dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; background: var(--tc); vertical-align: 0; }

/* overview */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }
.stat { display: grid; gap: 2px; padding: 18px 22px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.stat small { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.stat b { font: 700 36px/1.1 var(--serif); }
.stat span[data-e] { color: var(--muted); font-size: 13px; }
.faces { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.faces li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.faces b { display: block; font-weight: 600; }
.faces small { color: var(--muted); font-size: 12.5px; }
.donut-wrap { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 16px; }
.donut { width: 150px; height: 150px; stroke: none; }
.donut path { stroke: var(--card); stroke-width: 3; }
.donut text { fill: var(--text); font: 700 26px var(--serif); }
.donut text.small { fill: var(--muted); font: 400 12px var(--font); }
.legend { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.legend li { display: flex; justify-content: space-between; gap: 8px; }
.legend b { font-weight: 600; }
.celebrate { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.celebrate li { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; background: var(--soft); }
.cal-chip { display: grid; place-items: center; width: 46px; padding: 4px 0; border-radius: 10px; background: var(--card); text-align: center; font-size: 11px; line-height: 1.1; color: var(--muted); }
.cal-chip b { display: block; color: var(--text); font: 700 18px var(--serif); }
.celebrate b { display: block; font-weight: 600; }
.celebrate small { color: var(--muted); font-size: 12.5px; }
.celebrate svg { color: var(--accent); }
.requests { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.requests li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--soft); }
.requests b { display: block; font-weight: 600; }
.requests small { color: var(--muted); font-size: 12.5px; }
.requests .row-btns { display: flex; gap: 6px; }
.post { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px; margin-bottom: 14px; }
.news { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.news li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
.news p { padding: 10px 14px; border-radius: 4px 16px 16px 16px; background: var(--soft); }
.news small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12.5px; }

/* people */
.tools { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 12px; margin-bottom: 20px; }
.tools .field-search { flex: 1 1 220px; max-width: 340px; }
.tools-note { margin-left: auto; color: var(--muted); font-size: 13.5px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 18px; }
.person { display: grid; justify-items: center; gap: 4px; min-width: 0; padding: 22px 16px 18px; border: 0; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); text-align: center; transition: transform .2s var(--ease); }
.person:hover { transform: translateY(-3px); }
.person .avatar { width: 64px; height: 64px; margin-bottom: 8px; font-size: 20px; }
.person b { font: 700 17px var(--serif); }
.person small { color: var(--muted); font-size: 13px; }
.person .pill { margin-top: 6px; }
.people.is-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.people.is-list .person { grid-template-columns: 40px minmax(0, 2fr) minmax(0, 2fr) auto; justify-items: start; align-items: center; gap: 14px; padding: 10px 16px; border-radius: 16px; text-align: left; }
.people.is-list .person .avatar { width: 40px; height: 40px; margin: 0; font-size: 13px; }
.people.is-list .person .pill { margin: 0; }
.people.is-list .person:hover { transform: none; background: var(--soft); }
.drawer { position: fixed; top: 12px; right: 12px; bottom: 12px; z-index: 70; display: flex; flex-direction: column; width: min(440px, calc(100vw - 24px)); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow), 0 0 0 1px var(--line); overflow: hidden; animation: slide .25s var(--ease); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { position: relative; display: grid; justify-items: center; gap: 6px; padding: 26px 20px 20px; background: var(--band); color: var(--band-ink); text-align: center; }
.drawer-head h2 { font-size: 24px; }
.drawer-head .icon-btn { position: absolute; top: 10px; right: 10px; color: var(--band-ink); }
.drawer-head .icon-btn:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.drawer-body { display: grid; gap: 18px; padding: 20px; overflow-y: auto; }
.drawer-body h3 { font-size: 16px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.facts div { min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--soft); }
.facts dt { color: var(--muted); font-size: 12.5px; }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.balances { display: grid; gap: 10px; }
.balances div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 13.5px; }
.bar { grid-column: 1 / -1; display: block; height: 8px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--bc, var(--accent)); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 11px; border-radius: 20px; background: var(--soft); font-size: 13px; }
.mini-team { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-team button { padding: 0; border: 0; border-radius: 50%; background: none; }
.drawer-scrim { position: fixed; inset: 0; z-index: 65; background: rgba(43, 35, 32, .35); }
.drawer-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* org chart */
.org-wrap { overflow-x: auto; padding: 30px 20px; }
.org { display: flex; justify-content: center; min-width: max-content; }
.org ul { position: relative; display: flex; justify-content: center; margin: 0; padding: 26px 0 0; list-style: none; }
.org > ul { padding-top: 0; }
.org li { position: relative; display: flex; flex-direction: column; align-items: center; padding: 26px 8px 0; }
.org > ul > li, .org > ul > li:only-child { padding-top: 0; }
.org li::before, .org li::after { content: ""; position: absolute; top: 0; width: 50%; height: 26px; border-top: 2px solid var(--line-2); }
.org li::before { right: 50%; } .org li::after { left: 50%; border-left: 2px solid var(--line-2); }
.org li:only-child::before, .org li:only-child::after { display: none; }
.org li:only-child { padding-top: 26px; }
.org li:only-child > .node::before { content: ""; position: absolute; top: -26px; left: 50%; height: 26px; border-left: 2px solid var(--line-2); }
.org li:first-child::before, .org li:last-child::after { border: 0; }
.org li:last-child::before { border-right: 2px solid var(--line-2); border-radius: 0 10px 0 0; }
.org li:first-child::after { border-radius: 10px 0 0 0; }
.org > ul > li::before, .org > ul > li::after, .org > ul > li:only-child > .node::before { display: none; }
.org ul ul::before { content: ""; position: absolute; top: 0; left: 50%; height: 26px; border-left: 2px solid var(--line-2); }
.node { position: relative; display: grid; justify-items: center; gap: 3px; width: 160px; padding: 14px 10px 12px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 10px 20px -16px rgba(0, 0, 0, .5); border-top: 5px solid var(--tc); text-align: center; }
.node b { font-weight: 600; font-size: 14px; line-height: 1.25; }
.node small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.node .toggle { margin-top: 6px; padding: 2px 10px; border: 0; border-radius: 20px; background: var(--soft); font-size: 12px; font-weight: 600; }
.node.is-hit { box-shadow: 0 0 0 3px var(--mustard), 0 10px 20px -16px rgba(0, 0, 0, .5); }
.node.is-path { box-shadow: 0 0 0 2px color-mix(in srgb, var(--mustard) 60%, transparent); }
.node.is-dim { opacity: .45; }

/* time off */
.month-nav { display: flex; align-items: center; gap: 6px; }
.month-nav h2 { min-width: 170px; text-align: center; }
.tools-inline { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 18px; }
.cal-wrap { position: relative; overflow-x: auto; margin: 0 -6px; }
.cal { border-collapse: separate; border-spacing: 2px; font-size: 12.5px; }
.cal th { padding: 4px 0; color: var(--muted); font-weight: 600; text-align: center; min-width: 26px; }
.cal th.is-we { color: var(--faint); }
.cal th.is-today { color: var(--accent-ink); }
.cal th.who-h { min-width: 170px; text-align: left; }
.cal td { height: 30px; padding: 0; border-radius: 6px; background: var(--soft); }
.cal td.who { position: sticky; left: 0; z-index: 1; padding: 0 10px 0 4px; background: var(--card); white-space: nowrap; }
.cal td.who span { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.cal td.is-we { background: repeating-linear-gradient(-45deg, var(--soft) 0 4px, transparent 4px 8px); }
.cal td.is-hol { background: color-mix(in srgb, var(--mustard) 25%, transparent); }
.cal td.lv { background: var(--lc); }
.cal td.lv.is-pending { background: repeating-linear-gradient(-45deg, var(--lc) 0 5px, transparent 5px 9px); box-shadow: inset 0 0 0 1.5px var(--lc); }
.cal td.is-today { box-shadow: inset 0 0 0 2px var(--accent); }
.holidays { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.holidays li { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 12px; }
.balance { padding: 10px 14px; border-radius: 12px; background: var(--soft); font-size: 14px; }
.balance.is-bad { background: var(--bad-soft); color: var(--bad); }

/* recruiting */
.jobs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.jobs button { display: grid; gap: 1px; padding: 10px 16px; border: 0; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); text-align: left; }
.jobs button b { font-weight: 600; }
.jobs button small { color: var(--muted); font-size: 12.5px; }
.jobs button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.jobs button[aria-pressed="true"] small { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.col { display: grid; align-content: start; gap: 10px; min-width: 0; padding: 14px; border-radius: var(--r); background: color-mix(in srgb, var(--card) 70%, var(--soft)); box-shadow: inset 0 0 0 1px var(--line); }
.col-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.col-head h3 { font-size: 16px; }
.col-head .pill { background: var(--card); }
.cards { display: grid; gap: 8px; min-height: 80px; margin: 0; padding: 0; list-style: none; border-radius: 14px; transition: background .15s, box-shadow .15s; }
.cards.is-over { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.cand { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 10px; padding: 12px; border-radius: 16px; background: var(--card); box-shadow: 0 8px 18px -14px rgba(0, 0, 0, .5); cursor: grab; touch-action: none; user-select: none; }
.cand.is-dragging { position: relative; z-index: 20; cursor: grabbing; box-shadow: var(--shadow); }
.cand .avatar { width: 34px; height: 34px; font-size: 12px; }
.cand b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.cand small { color: var(--muted); font-size: 12.5px; }
.cand .meta { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.stars { display: inline-flex; gap: 1px; color: var(--mustard); letter-spacing: 1px; }
.stars .off { color: var(--line-2); }
.cand .moves { display: flex; }
.cand .moves button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); }
.cand .moves button:hover { background: var(--soft); color: var(--text); }
.cand .moves svg { width: 15px; height: 15px; }
.rate { display: flex; gap: 4px; }
.rate button { padding: 0 2px; border: 0; background: none; color: var(--line-2); font-size: 24px; line-height: 1; }
.rate button.is-on { color: var(--mustard); }
.timeline { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.timeline li { padding: 8px 12px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--soft); font-size: 13.5px; }
.timeline small { display: block; color: var(--muted); font-size: 12px; }

/* reviews */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step { display: grid; gap: 6px; padding: 14px; border-radius: 16px; background: var(--soft); }
.step small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.step b { font: 700 26px var(--serif); }
.dist { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: 8px; min-height: 150px; }
.dist div { display: grid; align-content: end; justify-items: center; gap: 4px; height: 100%; }
.dist i { width: 100%; max-width: 40px; min-height: 4px; border-radius: 10px 10px 4px 4px; background: var(--dc); }
.dist small { min-height: 2.5em; color: var(--muted); font-size: 12px; line-height: 1.25; text-align: center; overflow-wrap: anywhere; hyphens: auto; }
.dist b { font-size: 14px; }
.table-wrap { position: relative; overflow-x: auto; }
.table-wrap.card { padding: 6px 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: 12.5px; font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--soft); }
.who { display: flex; align-items: center; gap: 10px; }
.who button { padding: 0; border: 0; background: none; font-weight: 600; text-align: left; }
.who button:hover { color: var(--accent-ink); text-decoration: underline; }
.st-done { --c: var(--ok-soft); --ic: var(--ok); }
.st-open { --c: var(--warn-soft); --ic: var(--warn); }
.st-late { --c: var(--bad-soft); --ic: var(--bad); }
.st-wait { --c: var(--soft); --ic: var(--muted); }
.comp { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.comp small { display: block; color: var(--muted); font-size: 12.5px; }
.goal { display: grid; grid-template-columns: minmax(0, 1fr) 140px auto; align-items: center; gap: 10px; padding: 6px 0; }
.goal input[type="range"] { width: 100%; accent-color: var(--accent); }
.goal .num { font-weight: 600; font-size: 13px; min-width: 40px; text-align: right; }

/* settings */
.settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.set-panels { display: grid; gap: 20px; min-width: 0; }
.set-nav { position: sticky; top: 20px; display: grid; gap: 4px; padding: 10px; }
.set-nav button { padding: 10px 14px; border: 0; border-radius: 14px; background: none; color: var(--muted); font-weight: 600; text-align: left; }
.set-nav button[aria-selected="true"] { background: var(--accent-soft); color: var(--accent-ink); }
.team-list { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.team-list li { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; }
.team-list input[type="color"] { width: 40px; height: 36px; padding: 2px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); cursor: pointer; }
.team-list small { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.switches { display: grid; margin: 0; padding: 0; list-style: none; }
.switches li { border-bottom: 1px solid var(--line); }
.switches li:last-child { border-bottom: 0; }
.switches label { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; cursor: pointer; }
.switches b { display: block; font-weight: 600; }
.switches small { color: var(--muted); font-size: 13px; }
.switch { -webkit-appearance: none; appearance: none; position: relative; width: 46px; height: 26px; margin: 0; border-radius: 13px; background: var(--line-2); transition: background .2s; cursor: pointer; flex: none; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .25s var(--ease); }
.switch:checked { background: var(--sage); }
.switch:checked::after { transform: translateX(20px); }
.danger-zone { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.danger-zone h2 { font-size: 18px; }
.danger-zone p { color: var(--muted); font-size: 13.5px; }

/* forms + buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 18px; border: 0; border-radius: 30px; background: var(--soft); font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; transition: background .2s, transform .1s; }
.btn:hover { background: var(--line); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 20px -12px var(--accent); }
.btn-primary:hover { background: var(--accent-ink); }
[data-theme="dark"] .btn-primary { color: #2b1610; }
.btn-light { background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.btn-ok { background: var(--ok-soft); color: var(--ok); }
.btn-ok:hover { background: var(--ok); color: #fff; }
.btn-no { background: var(--bad-soft); color: var(--bad); }
.btn-no:hover { background: var(--bad); color: #fff; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { background: color-mix(in srgb, var(--bad) 85%, #000); }
.btn-ghost { background: none; }
.btn-sm { min-height: 34px; padding: 5px 13px; font-size: 13.5px; }
.btn:disabled { opacity: .45; cursor: default; }
.field { display: grid; gap: 5px; min-width: 0; }
.field > span, .field > label { color: var(--muted); font-size: 13px; font-weight: 600; }
.input, .select { width: 100%; min-width: 0; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); outline: none; transition: border-color .2s, box-shadow .2s; }
textarea.input { resize: vertical; line-height: 1.5; }
.input[type="date"] { -webkit-appearance: none; appearance: none; display: block; max-width: 100%; min-height: 44px; }
.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(--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; }
.input:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.is-invalid .input, .field.is-invalid .select, .input.is-invalid { border-color: var(--bad); }
.field-error { color: var(--bad); font-size: 12.5px; font-weight: 600; }
.field-search { position: relative; }
.field-search svg { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; color: var(--faint); pointer-events: none; }
.field-search .input { padding-left: 40px; border-radius: 30px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid.one { grid-template-columns: minmax(0, 1fr); }
.form-grid .wide { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.mini-field { display: grid; gap: 3px; min-width: 0; }
.mini-field > span { color: var(--muted); font-size: 12px; font-weight: 600; }
.mini-field .select { padding-top: 8px; padding-bottom: 8px; }
.seg { display: inline-flex; max-width: 100%; padding: 4px; overflow-x: auto; scrollbar-width: none; border-radius: 30px; background: var(--soft); }
.seg button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 0; border-radius: 30px; background: none; color: var(--muted); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--accent-ink); box-shadow: 0 2px 8px -4px rgba(0, 0, 0, .25); }
.seg button svg { width: 17px; height: 17px; }
.row-actions { display: flex; gap: 2px; justify-content: flex-end; }
.row-actions button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); }
.row-actions button:hover { background: var(--soft); color: var(--text); }
.row-actions svg { width: 17px; height: 17px; }

/* overlays */
dialog.modal { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: var(--r); background: var(--card); color: var(--text); box-shadow: var(--shadow); }
dialog.modal-wide { width: min(760px, calc(100vw - 24px)); }
dialog.modal::backdrop { background: rgba(43, 35, 32, .45); }
dialog.modal[open] { animation: pop .2s var(--ease); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 0; }
.modal-head h2 { font-size: 22px; }
.modal-body { display: grid; gap: 14px; padding: 18px 24px; }
.modal-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 0 24px 22px; }
.palette { position: fixed; inset: 0; z-index: 90; display: grid; justify-items: center; align-items: start; padding: 14vh 12px 12px; background: rgba(43, 35, 32, .4); }
.palette-box { width: min(600px, 100%); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); overflow: hidden; animation: pop .18s var(--ease); }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.palette-input input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 17px; }
.palette-input kbd { background: var(--soft); color: var(--muted); }
.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: 12px; cursor: pointer; }
.palette-list li[aria-selected="true"] { background: var(--accent-soft); color: var(--accent-ink); }
.palette-list li small { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.palette-list .avatar { width: 28px; height: 28px; font-size: 10px; }
.palette-group { padding: 8px 12px 4px; color: var(--faint); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: default !important; }
.toasts { position: fixed; right: 22px; bottom: 22px; z-index: 95; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: var(--text); color: var(--bg); box-shadow: var(--shadow); font-size: 14px; animation: pop .25s var(--ease); }
.toast span { flex: 1; }
.toast svg { width: 18px; height: 18px; color: var(--mustard); }
.toast button { padding: 4px 11px; border: 0; border-radius: 20px; background: var(--mustard); color: #2b2320; font-weight: 700; font-size: 13px; }
.toast.is-out { opacity: 0; transform: translateY(10px); transition: .25s; }

/* login + 404 */
body.desk-only { background: var(--bg); }
.auth { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.auth-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: min(980px, 100%); border-radius: 28px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.auth-form { display: grid; align-content: center; gap: 22px; padding: clamp(24px, 4.5vw, 52px); }
.auth-form h1 { font-size: 34px; }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.auth-top .brand { color: var(--text); }
.auth-top .brand-mark { background: var(--accent); }
.auth-top .badge-btn { background: var(--soft); color: var(--text); }
.auth-art { position: relative; display: grid; align-content: end; gap: 24px; padding: 40px; background: var(--band); color: var(--band-ink); overflow: hidden; }
.crowd { position: absolute; left: 0; right: 0; top: 50px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding: 0 30px; }
.crowd span { width: 74px; height: 74px; border-radius: 50%; background: hsl(var(--h) 55% 80%); box-shadow: inset 0 -26px 0 hsl(var(--h) 45% 62%), 0 10px 20px -10px rgba(0, 0, 0, .4); }
.crowd span:nth-child(even) { transform: translateY(26px); }
.auth-quote { position: relative; font: 700 21px/1.4 var(--serif); }
.auth-quote small { display: block; margin-top: 10px; font: 400 13px var(--font); opacity: .85; }
.pw { position: relative; }
.pw .input { padding-right: 46px; }
.pw button { position: absolute; right: 4px; top: 50%; display: grid; place-items: center; width: 36px; height: 36px; margin-top: -18px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); }
.lost { display: grid; place-items: center; min-height: 100vh; padding: 70px 16px 30px; }
.lost-card { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px; width: min(560px, 100%); padding: clamp(24px, 5vw, 48px); border-radius: 28px; background: var(--card); box-shadow: var(--shadow); text-align: center; }
.lost-faces { display: flex; gap: 10px; }
.lost-faces span { width: 54px; height: 54px; border-radius: 50%; background: hsl(var(--h) 55% 80%); box-shadow: inset 0 -18px 0 hsl(var(--h) 45% 62%); }
.lost-faces .gone { background: none; box-shadow: inset 0 0 0 3px var(--line-2); border: 0; }
.lost-no { color: var(--accent); font: 700 18px var(--serif); letter-spacing: .3em; }
.lost h1 { font-size: clamp(26px, 4.5vw, 34px); }
.lost p { max-width: 420px; color: var(--muted); }
.lost .btn { white-space: normal; }
.lost-lang { position: fixed; top: 16px; right: 16px; z-index: 5; }
.lost-lang .badge-btn { background: var(--card); color: var(--text); box-shadow: var(--shadow); }

/* responsive */
@media (max-width: 1200px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .span-4, .span-5, .span-7, .span-8 { grid-column: span 6; }
}
@media (max-width: 960px) {
    .band-top { padding: 12px 14px 8px; gap: 8px; }
    .search { margin-left: auto; flex: 0 0 42px; width: 42px; height: 42px; padding: 0; justify-content: center; }
    .search span, .search kbd { display: none; }
    .top-actions { margin-left: 0; gap: 2px; }
    .tabs { padding: 4px 10px 0; }
    .main { padding: 0 14px 10px; }
    .foot { padding: 18px 14px 22px; }
    .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
    .settings { grid-template-columns: minmax(0, 1fr); }
    .set-nav { position: static; display: flex; overflow-x: auto; }
    .set-nav button { white-space: nowrap; }
    .auth-box { grid-template-columns: minmax(0, 1fr); }
    .auth-art { display: none; }
    .top .menu, .band .menu { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; }
    .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .brand-word small { display: none; }
    .top-theme { display: none !important; }
    .me-theme { display: flex !important; }
    .icon-btn { width: 38px; height: 38px; }
    .stats { gap: 12px; }
    .stat { padding: 14px 16px; }
    .stat b { font-size: 28px; }
    .hero { padding: 20px; }
    .card { padding: 16px; }
    .hero .head-actions { width: 100%; }
    .hero .head-actions .btn { flex: 1; }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .tools .mini-field { flex: 1 1 140px; }
    .tools-note { margin-left: 0; }
    .donut-wrap { grid-template-columns: minmax(0, 1fr); justify-items: center; }
    .legend { width: 100%; }
    .post { grid-template-columns: minmax(0, 1fr); }
    .requests li { grid-template-columns: 40px minmax(0, 1fr); }
    .requests .row-btns { grid-column: 2; flex-wrap: wrap; }
    .requests .row-btns .btn { flex: 1 1 auto; padding: 8px 12px; }
    .head-actions .btn { white-space: normal; text-align: center; }
    .people.is-list .person { grid-template-columns: 40px minmax(0, 1fr); }
    .people.is-list .person > :nth-child(3), .people.is-list .person .pill { grid-column: 2; }
    .facts { grid-template-columns: minmax(0, 1fr); }
    .goal { grid-template-columns: minmax(0, 1fr) auto; }
    .goal input[type="range"] { grid-column: 1 / -1; grid-row: 2; }
    .team-list li { grid-template-columns: 42px minmax(0, 1fr) auto; }
    .team-list small { grid-column: 2; }
    .month-nav h2 { min-width: 0; font-size: 18px; }
    .toasts { right: 12px; width: calc(100vw - 24px); }
}
@media (max-width: 380px) {
    .stats { grid-template-columns: minmax(0, 1fr); }
    .brand-word { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
    body { background: #fff; }
    .band, .foot, .toasts, .head-actions { display: none !important; }
    .main { margin-top: 0; }
    .card, .hero { box-shadow: none; break-inside: avoid; }
}
