/* GnapiGantt — "Fuchsia" theme from the Claude Design file (GnapiGantt-Fuchsia.html). */
:root {
  --bg: oklch(0.984 0.005 345); --surface: oklch(0.998 0.002 345); --surface-2: oklch(0.966 0.008 345);
  --border: oklch(0.918 0.011 345); --border-strong: oklch(0.845 0.016 345); --grid-line: oklch(0.946 0.008 345);
  --weekend: oklch(0.974 0.007 345); --row-hover: oklch(0.54 0.21 348 / 0.05);
  --text: oklch(0.24 0.022 345); --text-muted: oklch(0.47 0.022 345); --text-faint: oklch(0.6 0.018 345);
  --accent: oklch(0.54 0.21 348); --accent-hover: oklch(0.47 0.2 348); --accent-soft: oklch(0.54 0.21 348 / 0.14);
  --accent-text: oklch(0.47 0.2 348); --on-accent: oklch(0.99 0 0);
  --color-on-track: oklch(0.62 0.15 250); --color-on-track-tint: oklch(0.91 0.05 250); --color-on-track-text: oklch(0.45 0.14 250);
  --color-overdue: oklch(0.62 0.2 25); --color-overdue-tint: oklch(0.92 0.05 25); --color-overdue-text: oklch(0.5 0.19 25);
  --color-done: oklch(0.64 0.14 155); --color-done-tint: oklch(0.92 0.05 155); --color-done-text: oklch(0.45 0.12 155);
  --color-over-hours: oklch(0.74 0.16 60); --color-over-hours-text: oklch(0.55 0.15 50);
  --color-baseline: oklch(0.7 0.02 345); --color-baseline-2: oklch(0.88 0.01 345);
  --color-today: oklch(0.61 0.21 25); --on-today: oklch(1 0 0); --today-soft: oklch(0.61 0.21 25 / 0.12);
  --bracket: oklch(0.3 0.03 345);
  --tooltip-bg: oklch(0.25 0.03 345); --tooltip-text: oklch(0.97 0.003 265); --tooltip-muted: oklch(0.76 0.01 265);
  --overlay: oklch(0.2 0.03 345 / 0.35); --banner-bg: oklch(0.54 0.21 348 / 0.06);
  --holiday-col: oklch(0.955 0.045 95); --holiday-col-strong: oklch(0.9 0.08 92); --holiday-marker: oklch(0.7 0.15 80); --holiday-text: oklch(0.48 0.1 75);
  --leave-bg: oklch(0.6 0.12 300 / 0.07); --leave-line: oklch(0.55 0.15 300 / 0.42); --leave-tint: oklch(0.94 0.035 300); --leave-ink: oklch(0.44 0.13 300);
  --dep-line: oklch(0.66 0.025 265); --dep-line-active: var(--accent); --color-warning-tint: oklch(0.94 0.06 80); --color-warning-text: oklch(0.47 0.1 65); --color-info: oklch(0.6 0.15 250);
  --radius-sm: 6px; --radius-md: 8px; --radius-lg: 12px; --radius-pill: 999px;
  --shadow-sm: 0 1px 2px oklch(0.2 0.02 265 / 0.06);
  --shadow-md: 0 1px 2px oklch(0.2 0.02 265 / 0.06), 0 6px 16px -4px oklch(0.2 0.02 265 / 0.14);
  --shadow-lg: 0 2px 4px oklch(0.2 0.02 265 / 0.06), 0 18px 40px -10px oklch(0.2 0.02 265 / 0.3);
  --font-sans: 'Geist', ui-sans-serif, system-ui, sans-serif; --font-mono: 'Geist Mono', ui-monospace, monospace;
  --row-h: 36px;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font-sans);
  font-size: 13.5px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
input::placeholder { color: var(--text-faint); }
button, input, select { font: inherit; }
button { color: inherit; }
.stripes { background: repeating-linear-gradient(135deg, var(--color-baseline) 0 3px, var(--color-baseline-2) 3px 6px); }

/* ---------- Top bar ---------- */
.topbar { height: 52px; display: flex; align-items: center; gap: 4px; padding: 0 20px; background: var(--surface); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px; margin: 0 auto 0 -6px; border-radius: var(--radius-sm); color: var(--text); }
.brand:hover { color: var(--text); text-decoration: none; }
.brand svg { flex: none; display: block; }
.brand-name { font-size: 15px; letter-spacing: -0.015em; font-weight: 500; }
.brand-name b { font-weight: 700; color: var(--accent-text); }
.nav-btn { height: 32px; padding: 0 12px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-muted);
  font-size: 13px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; }
.nav-btn:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav-btn.on { background: var(--surface-2); }

/* ---------- List pages (Projects, Project, Settings) ---------- */
.page { max-width: 860px; margin: 0 auto; padding: 40px 28px 120px; }
.page.nested { padding-top: 32px; }
.crumbs { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.page-title { margin: 0 0 20px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.page-title.tight { margin-bottom: 6px; }
.lead { margin: 0 0 20px; color: var(--text-muted); }
.add-form { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.input { height: 34px; padding: 0 11px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface);
  color: var(--text); font-size: 13.5px; outline: none; flex: 1; min-width: 180px; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.w-360 { max-width: 360px; min-width: 200px; } .input.w-300 { max-width: 300px; min-width: 200px; }
.input.w-260 { max-width: 260px; } .input.w-220 { max-width: 220px; min-width: 160px; }
.btn { height: 34px; padding: 0 14px; border-radius: var(--radius-md); border: 0; background: var(--accent); color: var(--on-accent);
  font-size: 13.5px; font-weight: 500; cursor: pointer; box-shadow: var(--shadow-sm); white-space: nowrap; }
.btn:hover { background: var(--accent-hover); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; box-shadow: none; }
.btn.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn.secondary:hover { background: var(--surface-2); }
.btn.danger { background: var(--color-overdue); color: oklch(1 0 0); font-weight: 600; box-shadow: none; }
.btn.danger:hover { background: var(--color-overdue-text); }
.list { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column;
  gap: 1px; background: var(--border); box-shadow: var(--shadow-sm); }
.list-row { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 10px 0 16px; background: var(--surface); }
.list-row.chart { min-height: 58px; } .list-row.person { min-height: 50px; }
.list-row:hover { background: var(--surface-2); }
.list-row .actions { margin-left: auto; display: flex; gap: 2px; opacity: 0.55; }
.list-row:hover .actions, .list-row:focus-within .actions { opacity: 1; }
.avatar { width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-text);
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; flex: none; }
.avatar.person { border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); font-size: 12px; }
.chart-icon { width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 0 5px; flex: none; }
.chart-icon i { height: 3px; border-radius: 2px; display: block; }
.chart-icon i:nth-child(1) { width: 9px; background: var(--color-on-track); }
.chart-icon i:nth-child(2) { width: 11px; margin-left: 4px; background: var(--color-done); }
.chart-icon i:nth-child(3) { width: 6px; margin-left: 9px; background: var(--color-over-hours); }
.row-link { padding: 4px 2px; font-size: 14px; font-weight: 500; color: var(--text); border-radius: 4px; }
.row-link:hover { color: var(--accent-text); text-decoration: none; }
.row-title { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.row-title .row-link { padding: 0 2px; }
.muted { color: var(--text-muted); font-size: 12.5px; }
.row-title .muted { padding: 0 2px; }
.person-name { font-size: 14px; font-weight: 500; }
.ghost { height: 28px; padding: 0 10px; border-radius: var(--radius-sm); border: 0; background: transparent; color: var(--text-muted);
  font-size: 13px; cursor: pointer; white-space: nowrap; }
.ghost:hover { background: var(--surface-2); color: var(--text); }
.ghost.del:hover { background: var(--color-overdue-tint); color: var(--color-overdue-text); }
.ghost.accent { color: var(--accent-text); font-weight: 500; }
.ghost.accent:hover { background: var(--accent-soft); }
.empty { border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); padding: 56px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty b { font-size: 15px; font-weight: 600; }
.empty p { margin: 0; color: var(--text-muted); max-width: 340px; text-wrap: pretty; }
.empty svg { margin-bottom: 6px; }
.message { max-width: 860px; margin: 0 auto; padding: 64px 28px; text-align: center; color: var(--text-muted); }

/* ---------- Chart page ---------- */
.chart-page { padding: 18px 24px 72px; }
.chart-page.ro { padding: 28px 28px 72px; }
.title-input, .subtitle-input { display: block; width: 100%; max-width: 520px; margin-left: -7px; color: var(--text);
  background: transparent; border: 1px solid transparent; padding: 2px 6px; outline: none; }
.title-input { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; border-radius: var(--radius-md); }
.subtitle-input { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; border-radius: var(--radius-sm); }
.title-input:hover, .subtitle-input:hover { border-color: var(--border-strong); }
.title-input:focus, .subtitle-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface); }
.ro-pill { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--text-muted); background: var(--surface-2);
  border: 1px solid var(--border); padding: 2px 8px; border-radius: var(--radius-pill); margin-bottom: 10px; }
.ro-title { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.ro-sub { font-size: 14px; color: var(--text-muted); margin-top: 2px; }
.ro-meta { font-size: 12.5px; color: var(--text-muted); margin: 10px 0 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.made { display: flex; justify-content: center; margin-top: 18px; font-size: 12px; color: var(--text-muted); gap: 6px; align-items: center; }
.made strong { font-weight: 600; color: var(--text); }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.seg { display: flex; padding: 2px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); }
.seg button { height: 26px; min-width: 52px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--text-muted);
  font-size: 12.5px; font-weight: 500; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.compare { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); }
.select { height: 32px; padding: 0 8px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface);
  color: var(--text); font-size: 13px; cursor: pointer; }
.vsep { width: 1px; height: 20px; background: var(--border); }
.pop-wrap { position: relative; }
.tool-btn { height: 32px; padding: 0 12px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 13px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.tool-btn:hover { border-color: var(--border-strong); }
.tool-btn[aria-expanded="true"] { background: var(--surface-2); border-color: var(--border-strong); }
.popover { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; width: min(400px, 86vw); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 14px; }
.popover.wide { width: min(440px, 86vw); }
.pop-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.pop-head span { font-weight: 600; font-size: 14px; }
.icon-btn { width: 26px; height: 26px; border: 0; background: transparent; color: var(--text-muted); border-radius: var(--radius-sm);
  cursor: pointer; display: flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--surface-2); }
.pop-note { margin: 0 0 6px; color: var(--text-muted); font-size: 12.5px; text-wrap: pretty; }
.pop-form { display: flex; gap: 8px; margin: 6px 0 12px; }
.pop-form .input { height: 32px; min-width: 0; padding: 0 10px; font-size: 13px; }
.pop-create { margin: 6px 0 12px; }
.mini-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.mini-row { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; background: var(--surface); }
.mini-row.active { background: var(--banner-bg); }
.mini-row .grow { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mini-row .nm { font-weight: 500; display: flex; gap: 6px; align-items: center; }
.mini-row .sub { font-size: 12px; color: var(--text-muted); }
.pill-on { font-size: 11px; font-weight: 600; color: var(--accent-text); background: var(--accent-soft); padding: 1px 6px; border-radius: var(--radius-pill); }
.mini-empty { padding: 12px; background: var(--surface); color: var(--text-muted); font-size: 12.5px; }
.mono { font-family: var(--font-mono); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.mono { color: var(--text); }
.copy-btn { height: 28px; min-width: 66px; padding: 0 10px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 12.5px; font-weight: 500; cursor: pointer; }
.copy-btn.copied { background: var(--color-done-tint); color: var(--color-done-text); }
.legend { margin-left: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 18px; height: 8px; border-radius: 3px; display: block; }
.legend .k-track { background: linear-gradient(to right, var(--color-on-track) 50%, var(--color-on-track-tint) 50%); }
.legend .k-overdue { background: linear-gradient(to right, var(--color-overdue) 50%, var(--color-overdue-tint) 50%); }
.legend .k-done { background: var(--color-done); }
.legend .k-over { background: var(--color-over-hours); }
.legend .k-base { height: 5px; }
.banner { display: flex; align-items: center; gap: 12px; padding: 9px 10px 9px 14px; margin-bottom: 12px; background: var(--banner-bg);
  border: 1px solid var(--accent-soft); border-radius: var(--radius-md); font-size: 13px; }
.banner > i { width: 22px; height: 5px; border-radius: 3px; flex: none; }
.banner > span { flex: 1; text-wrap: pretty; }
.banner strong { font-weight: 600; }
.banner .muted { font-size: 13px; }
.banner button { height: 28px; padding: 0 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 12.5px; font-weight: 500; cursor: pointer; flex: none; white-space: nowrap; }
.banner button:hover { border-color: var(--border-strong); }

/* ---------- Gantt grid ---------- */
.gantt { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); }
.gantt-scroll { overflow: auto; height: max(360px, calc(100vh - 300px)); position: relative; overscroll-behavior: contain; }
.gantt-grid { display: grid; width: max-content; position: relative; }
.list-head { position: sticky; top: 0; left: 0; z-index: 6; height: 48px; background: var(--surface); border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border); display: grid; grid-template-columns: var(--cols); align-items: end; padding-bottom: 9px; overflow: hidden; }
.list-head > div { font-size: 12px; font-weight: 500; color: var(--text-muted); padding: 0 8px; white-space: nowrap; overflow: hidden; }
.list-head > .r { text-align: right; }
.tl-head { position: sticky; top: 0; z-index: 5; height: 48px; background: var(--surface); border-bottom: 1px solid var(--border); }
.month { position: absolute; top: 5px; padding-left: 8px; font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap;
  border-left: 1px solid var(--border-strong); height: 16px; line-height: 16px; }
.hcell { position: absolute; top: 22px; height: 26px; display: flex; align-items: center; justify-content: center; }
.hcell span { min-width: 21px; height: 21px; border-radius: var(--radius-pill); display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 500; color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hcell.we { background: var(--weekend); }
.hcell.we span { color: var(--text-faint); }
.hcell.today span { background: var(--color-today); color: var(--on-today); font-weight: 600; }
.hcell.week span { min-width: 0; padding: 0 8px; }
.hcell.week.today span { background: var(--today-soft); color: var(--color-overdue-text); }

.list-body { position: sticky; left: 0; z-index: 4; background: var(--surface); border-right: 1px solid var(--border); }
.lrow { height: var(--row-h); border-bottom: 1px solid var(--grid-line); display: grid; grid-template-columns: var(--cols); align-items: center; overflow: hidden; }
.lrow.hover, .trow.hover { background: var(--row-hover); }
.done-box { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: 4px; cursor: pointer; }
.done-box.locked { cursor: not-allowed; }
.done-box input { width: 15px; height: 15px; margin: 0; accent-color: var(--color-done); cursor: inherit; }
.name-cell { display: flex; align-items: center; gap: 2px; padding-right: 2px; min-width: 0; }
.chev { width: 24px; height: 24px; flex: none; border: 0; background: transparent; color: var(--text-muted); border-radius: var(--radius-sm);
  cursor: pointer; display: flex; align-items: center; justify-content: center; }
.chev:hover { background: var(--surface-2); color: var(--text); }
.chev.closed { transform: rotate(-90deg); }
.cell { padding: 0 2px; min-width: 0; }
.cell-input { width: 100%; height: 28px; border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--text);
  font-size: 13px; padding: 0 6px; outline: none; font-variant-numeric: tabular-nums; min-width: 0; }
.name-cell .cell-input { flex: 1; }
select.cell-input { padding: 0 4px; cursor: pointer; }
select.cell-input.unassigned { color: var(--text-muted); }
.cell-input:hover { border-color: var(--border-strong); background: var(--surface); }
.cell-input:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.lrow.parent .name-cell .cell-input, .lrow.parent .ro-name { font-weight: 600; }
.calc { display: block; padding: 0 7px; font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; cursor: help; font-variant-numeric: tabular-nums; }
.dash { padding: 0 6px; color: var(--text-faint); }
.ro-cell { padding: 0 8px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.ro-cell.faint { color: var(--text-muted); }
.ro-name { padding: 0 6px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog { padding: 0 8px; text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.prog.none { color: var(--text-faint); }
.prog.over { color: var(--color-over-hours-text); font-weight: 600; }
.row-actions { display: flex; justify-content: flex-end; gap: 1px; padding-right: 6px; opacity: 0; }
.lrow.hover .row-actions, .lrow:focus-within .row-actions { opacity: 1; }
.act { width: 24px; height: 24px; border: 0; background: transparent; color: var(--text-muted); border-radius: var(--radius-sm); cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.act:hover { background: var(--surface-2); color: var(--text); }
.act.del:hover { background: var(--color-overdue-tint); color: var(--color-overdue-text); }
.add-task { display: flex; align-items: center; gap: 6px; width: 100%; height: var(--row-h); padding: 0 0 0 44px; border: 0;
  border-bottom: 1px solid var(--grid-line); background: transparent; color: var(--text-muted); font-size: 13px; cursor: pointer; text-align: left; }
.add-task:hover { color: var(--accent-text); background: var(--row-hover); }
.divider { position: absolute; top: -48px; bottom: 0; right: -5px; width: 9px; cursor: col-resize; z-index: 7; display: flex; justify-content: center; touch-action: none; }
.divider:hover { background: var(--accent-soft); }
.divider span { width: 2px; height: 100%; }
.divider.active span { background: var(--accent); }

.tl-body { position: relative; background-image: linear-gradient(to right, var(--grid-line) 1px, transparent 1px); }
.weekend { position: absolute; top: 0; bottom: 0; background: var(--weekend); }
.today-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--color-today); z-index: 1; pointer-events: none; }
.trow { position: relative; height: var(--row-h); border-bottom: 1px solid var(--grid-line); }
.bar { position: absolute; top: 8px; height: 20px; border-radius: 6px; background: var(--tint); overflow: hidden; z-index: 2; touch-action: none; }
.with-base .bar { top: 5px; height: 19px; }
.bar .fill { height: 100%; background: var(--fill); pointer-events: none; }
.st-track { --tint: var(--color-on-track-tint); --fill: var(--color-on-track); }
.st-overdue { --tint: var(--color-overdue-tint); --fill: var(--color-overdue); }
.st-done { --tint: var(--color-done-tint); --fill: var(--color-done); }
.bar.over { --fill: var(--color-over-hours); }
.bar.editable { cursor: grab; }
.bar.hover, .bar.dragging { box-shadow: 0 0 0 1.5px var(--fill), var(--shadow-md); }
.bar.dragging { opacity: 0.7; cursor: grabbing; }
.grip { position: absolute; top: 0; bottom: 0; width: 8px; cursor: ew-resize; display: none; align-items: center; justify-content: center; }
.grip.s { left: 0; } .grip.e { right: 0; }
.grip span { width: 2px; height: 10px; border-radius: 1px; background: var(--text); opacity: 0.35; pointer-events: none; }
.bar.editable.hover .grip, .bar.dragging .grip { display: flex; }
.bracket { position: absolute; top: 12px; height: 12px; z-index: 2; touch-action: none; }
.with-base .bracket { top: 8px; }
.bracket::before { content: ""; display: block; height: 6px; background: var(--bracket); border-radius: 2px 2px 0 0; }
.bracket i { position: absolute; top: 6px; width: 0; height: 0; border-bottom: 6px solid transparent; }
.bracket i:first-child { left: 0; border-left: 7px solid var(--bracket); }
.bracket i:last-child { right: 0; border-right: 7px solid var(--bracket); }
.bracket.editable { cursor: grab; }
.bracket.dragging { opacity: 0.7; cursor: grabbing; }
.baseline { position: absolute; top: 27px; height: 5px; border-radius: 3px; }
.label { position: absolute; top: 0; height: var(--row-h); display: flex; align-items: center; gap: 6px; white-space: nowrap; pointer-events: none; font-size: 12.5px; z-index: 2; }
.with-base .label { height: 28px; }
.label .nm { color: var(--text); }
.trow.parent .label .nm { font-weight: 600; }
.label .hrs { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.label .hrs b { font-weight: 400; }
.label .hrs b.over { color: var(--color-over-hours-text); font-weight: 600; }
.slip { font-size: 11px; font-weight: 600; height: 18px; line-height: 16px; padding: 0 6px; border-radius: var(--radius-pill); border: 1px solid transparent; }
.slip.late { background: var(--color-overdue-tint); color: var(--color-overdue-text); }
.slip.early { background: var(--color-done-tint); color: var(--color-done-text); }
.slip.plan { background: var(--surface-2); color: var(--text-muted); border-color: var(--border); }
.slip.new { background: transparent; color: var(--text-muted); border: 1px dashed var(--border-strong); }

/* ---------- Dialogs & toast ---------- */
.overlay { position: fixed; inset: 0; background: var(--overlay); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.dialog { width: 100%; max-width: 380px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); padding: 18px; }
.dialog-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.dialog-title.tight { margin-bottom: 6px; }
.dialog p { margin: 0; color: var(--text-muted); text-wrap: pretty; }
.dialog .input { width: 100%; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.dialog-actions .btn { height: 32px; font-size: 13px; box-shadow: none; }
.dialog-actions .btn:not(.secondary) { font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 110; display: flex; align-items: center; gap: 10px;
  background: var(--tooltip-bg); color: var(--tooltip-text); padding: 8px 8px 8px 12px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  font-size: 13px; max-width: calc(100vw - 40px); }
.toast .bang { width: 18px; height: 18px; border-radius: 50%; background: var(--color-overdue); color: oklch(1 0 0); display: flex;
  align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex: none; }
.toast button { width: 24px; height: 24px; border: 0; background: transparent; color: var(--tooltip-muted); border-radius: var(--radius-sm);
  cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none; }

/* ---------- Link not found ---------- */
.notfound { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.notfound > div { max-width: 380px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.notfound .glyph { width: 48px; height: 48px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted); margin-bottom: 8px; }
.notfound h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.notfound p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.notfound .made { margin-top: 48px; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: flex; flex-wrap: wrap; background: var(--surface); }
.login-side { flex: 1 1 440px; display: flex; flex-direction: column; padding: 32px 48px; min-width: 0; }
.login-side .brand-name { font-size: 17px; }
.login-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 0; }
.login-form { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 16px; }
.login-form h1 { margin: 0 0 8px; font-size: 30px; font-weight: 600; letter-spacing: -0.03em; }
.login-form .intro { margin: 0; color: var(--text-muted); font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; }
.pw-wrap { position: relative; display: flex; }
.login-input { flex: 1; min-width: 0; height: 40px; padding: 0 64px 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  background: var(--surface); color: var(--text); font-size: 14px; font-weight: 400; outline: none; }
.login-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pw-toggle { position: absolute; right: 6px; top: 6px; height: 28px; padding: 0 8px; border: 0; border-radius: var(--radius-sm); background: transparent;
  color: var(--text-muted); font-size: 12.5px; font-weight: 500; cursor: pointer; }
.pw-toggle:hover { background: var(--surface-2); color: var(--text); }
.remember { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); cursor: pointer; min-height: 24px; }
.remember input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
.login-err { font-size: 13px; color: var(--color-overdue-text); background: var(--color-overdue-tint); padding: 8px 12px; border-radius: var(--radius-md); }
.login-submit { height: 42px; border: 0; border-radius: var(--radius-md); background: var(--accent); color: var(--on-accent); font-size: 14px;
  font-weight: 600; cursor: pointer; box-shadow: var(--shadow-sm); }
.login-submit:hover { background: var(--accent-hover); }
.login-submit:disabled { opacity: 0.7; cursor: progress; }
.login-foot { display: flex; gap: 16px; font-size: 12px; color: var(--text-faint); flex-wrap: wrap; }
.login-art-wrap { flex: 1 1 560px; padding: 12px; display: flex; min-width: 0; }
.login-art { flex: 1; position: relative; overflow: hidden; border-radius: 24px; padding: 56px 48px; display: flex; flex-direction: column; gap: 40px; min-height: 620px;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in oklch, var(--accent) 30%, var(--bg)) 0%, transparent 60%),
    radial-gradient(90% 80% at 0% 100%, color-mix(in oklch, var(--accent) 18%, var(--bg)) 0%, transparent 65%),
    color-mix(in oklch, var(--accent) 7%, var(--bg)); }
.login-art .lines { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, color-mix(in oklch, var(--accent) 12%, transparent) 1px, transparent 1px); background-size: 48px 100%;
  mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent); }
.login-art .copy { position: relative; max-width: 460px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--accent-text); background: var(--surface);
  padding: 4px 10px 4px 6px; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.login-art h2 { margin: 0 0 12px; font-size: 40px; line-height: 1.08; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
.login-art .copy p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-muted); text-wrap: pretty; }
.hero { position: relative; flex: 1; display: flex; align-items: center; }
.hero-card { position: relative; width: 100%; max-width: 560px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lg); overflow: hidden; }
.hero-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.hero-top b { font-weight: 600; font-size: 13.5px; }
.hero-top .muted { font-size: 12.5px; }
.hero-seg { margin-left: auto; display: flex; padding: 2px; background: var(--surface-2); border-radius: 6px; font-size: 11px; font-weight: 500; }
.hero-seg span { padding: 2px 8px; color: var(--text-muted); }
.hero-seg span:first-child { background: var(--surface); border-radius: 4px; box-shadow: var(--shadow-sm); color: var(--text); }
.hero-grid { display: grid; grid-template-columns: 108px 1fr; }
.hero-names { border-right: 1px solid var(--border); }
.hero-names div { height: 34px; display: flex; align-items: center; padding-left: 12px; font-size: 12px; border-bottom: 1px solid var(--grid-line); white-space: nowrap; }
.hero-names .b { font-weight: 600; } .hero-names .in { padding-left: 24px; }
.hero-tl { position: relative; background-image: linear-gradient(to right, var(--grid-line) 1px, transparent 1px); background-size: 7.14% 100%; }
.hero-tl > div { position: relative; height: 34px; border-bottom: 1px solid var(--grid-line); }
.hero-tl .today { position: absolute; top: 0; bottom: 0; left: 37%; width: 2px; height: auto; background: var(--color-today); z-index: 2; border: 0; }
.hero-bar { position: absolute; top: 8px; height: 18px; border-radius: 5px; overflow: hidden; }
.hero-bar i { display: block; height: 100%; }
.hero-br { position: absolute; top: 12px; height: 11px; }
.hero-br::before { content: ""; display: block; height: 5px; background: var(--bracket); border-radius: 2px 2px 0 0; }
.hero-br::after { content: ""; position: absolute; right: 0; top: 5px; border-right: 6px solid var(--bracket); border-bottom: 5px solid transparent; }
.hero-br i { position: absolute; left: 0; top: 5px; border-left: 6px solid var(--bracket); border-bottom: 5px solid transparent; }
.float { position: absolute; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 10px 12px; font-size: 12.5px; }
.float > span:not(.ic) { display: flex; flex-direction: column; }
.float b { font-weight: 600; }
.float small { color: var(--text-muted); font-size: 11.5px; }
.float.a { right: -8px; top: 6%; }
.float.b { left: 8%; bottom: 4%; padding: 10px 14px 10px 10px; }
.float .ic { width: 28px; height: 28px; border-radius: 8px; background: var(--color-done-tint); color: var(--color-done-text); display: flex; align-items: center; justify-content: center; }
.float .late { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: var(--radius-pill); background: var(--color-overdue-tint); color: var(--color-overdue-text); }
@media (max-width: 900px) { .login-art-wrap { display: none; } .login-side { padding: 24px; } }

/* ================= Phase 2 (GnapiGantt-Fuchsia.html) ================= */
.hatch { background: repeating-linear-gradient(45deg, var(--leave-line) 0 1.5px, transparent 1.5px 6px), var(--leave-bg); }

/* Legend additions */
.legend .k-hol { width: 10px; height: 12px; border-radius: 2px; background: var(--holiday-col-strong); display: flex; align-items: flex-end; justify-content: center; }
.legend .k-hol b { width: 4px; height: 4px; margin-bottom: 1px; background: var(--holiday-marker); transform: rotate(45deg); }
.legend .k-leave { width: 14px; height: 12px; border-radius: 2px; background: repeating-linear-gradient(45deg, var(--leave-line) 0 1.5px, transparent 1.5px 4px), var(--leave-bg); }
.legend .k-dep-wrap { gap: 4px; }
.legend .k-dep { width: 14px; height: 1.5px; border-radius: 0; background: var(--dep-line); }
.legend .k-dep-head { width: 0; height: 0; border-radius: 0; border-left: 6px solid var(--dep-line); border-top: 4px solid transparent; border-bottom: 4px solid transparent; margin-left: -4px; }

/* Editor list: assignee and depends-on buttons */
.pick-btn { width: 100%; height: 28px; border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; padding: 0 6px;
  cursor: pointer; font-size: 13px; text-align: left; min-width: 0; display: flex; align-items: center; gap: 6px; color: var(--text); }
.pick-btn:hover { border-color: var(--border-strong); background: var(--surface); }
.pick-btn:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.pick-btn.dep.none { color: var(--text-faint); }
.pick-btn.dep.conflict { color: var(--color-overdue-text); }
.pick-btn .who-short { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; color: var(--text-muted); }
.pick-btn.dep .who-short { font-size: 13px; color: inherit; }
.pick-btn .bang { width: 14px; height: 14px; flex: none; border-radius: 50%; background: var(--color-overdue); color: oklch(1 0 0); font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.muted-text { color: var(--text-muted); }
.avatars { display: flex; flex: none; }
.av { width: 22px; height: 22px; border-radius: 50%; background: color-mix(in oklch, var(--accent) 16%, var(--surface)); color: var(--accent-text);
  border: 1.5px solid var(--surface); font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.av + .av { margin-left: -6px; }

/* Timeline: holidays, leave, arrows, linking, drag chip */
.holiday { position: absolute; top: 0; bottom: 0; background: var(--holiday-col); }
.holiday.week { background: var(--holiday-col-strong); }
.hcell.hol { background: var(--holiday-col); }
.hcell.hol span { color: var(--holiday-text); font-weight: 600; }
.hmark { position: absolute; top: 22px; height: 26px; display: flex; align-items: flex-end; justify-content: center; cursor: help; z-index: 2; border-radius: 3px; }
.hmark.week { top: 36px; height: 12px; }
.hmark span { width: 6px; height: 6px; margin-bottom: 1px; background: var(--holiday-marker); transform: rotate(45deg); border-radius: 1px; }
.hol-tip { position: absolute; top: 50px; width: 180px; text-align: center; background: var(--tooltip-bg); color: var(--tooltip-text); font-size: 12px;
  font-weight: 500; padding: 5px 8px; border-radius: var(--radius-sm); box-shadow: var(--shadow-md); z-index: 10; pointer-events: none; }
.hatch { position: absolute; top: 1px; bottom: 1px; box-shadow: inset 1px 0 0 var(--leave-line), inset -1px 0 0 var(--leave-line); }
.label { z-index: 3; text-shadow: 0 0 3px var(--surface), 0 0 3px var(--surface); }
.label .slip { text-shadow: none; }
.label .names { color: var(--text-muted); }
.slip.warn { background: var(--color-warning-tint); color: var(--color-warning-text); }
.slip.conflict { background: var(--color-overdue); color: oklch(1 0 0); }
.bracket.hover { box-shadow: 0 0 0 1.5px var(--bracket), var(--shadow-md); border-radius: 2px; }
.bar.link-ok, .bracket.link-ok { box-shadow: 0 0 0 2px var(--accent), 0 0 0 5px var(--accent-soft); }
.bar.link-bad, .bracket.link-bad { box-shadow: 0 0 0 2px var(--color-overdue), var(--shadow-md); }
.link-handle { position: absolute; width: 24px; height: 24px; display: none; align-items: center; justify-content: center; cursor: crosshair; z-index: 4; touch-action: none; }
.link-handle span { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--accent); background: var(--surface); box-shadow: var(--shadow-sm); }
.trow.bar-hover .link-handle { display: flex; }
.link-line { position: absolute; height: 0; border-top: 2px dashed var(--accent); transform-origin: 0 0; z-index: 3; pointer-events: none; }
.link-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--accent); z-index: 3; pointer-events: none; }
.link-chip { position: absolute; transform: translate(12px, 12px); z-index: 7; background: var(--tooltip-bg); color: var(--tooltip-text); font-size: 12px;
  font-weight: 500; padding: 4px 9px; border-radius: var(--radius-sm); white-space: nowrap; box-shadow: var(--shadow-md); pointer-events: none; }
.link-chip.bad { background: var(--color-overdue); color: oklch(1 0 0); }
.drag-chip { position: absolute; top: -20px; z-index: 8; font-size: 11.5px; font-weight: 500; background: var(--tooltip-bg); color: var(--tooltip-text);
  padding: 2px 8px; border-radius: var(--radius-sm); white-space: nowrap; pointer-events: none; }
.arrows { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.arrow { --c: var(--dep-line); --lw: 1.5px; }
.arrow.active { --c: var(--dep-line-active); --lw: 2px; }
.arrow.conflict { --c: var(--color-overdue); --lw: 2px; }
.arrow .seg { position: absolute; pointer-events: auto; }
.arrow .seg.hz { height: 8px; background: linear-gradient(var(--c), var(--c)) center / 100% var(--lw) no-repeat; }
.arrow .seg.vt { width: 8px; background: linear-gradient(var(--c), var(--c)) center / var(--lw) 100% no-repeat; }
.arrow .head { position: absolute; width: 0; height: 0; }
.arrow .head.right { border-left: 7px solid var(--c); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.arrow .head.down { border-top: 7px solid var(--c); border-left: 4px solid transparent; border-right: 4px solid transparent; }

/* Pickers (assignees, depends on) */
.picker-scrim { position: fixed; inset: 0; z-index: 70; }
.picker { position: fixed; z-index: 71; max-height: 360px; overflow: auto; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 6px; }
.picker .search { width: 100%; height: 32px; padding: 0 10px; margin-bottom: 4px; border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface-2); color: var(--text); font-size: 13px; outline: none; }
.picker .search:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.pick-row { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 8px; border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; }
.pick-row:hover { background: var(--surface-2); }
.pick-row input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); cursor: inherit; }
.pick-row.dep { min-height: 32px; }
.pick-row.dep .nm { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-row.dep.parent .nm { font-weight: 600; }
.pick-row .why { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }
.pick-row.disabled { opacity: 0.55; cursor: not-allowed; }
.pick-row.disabled:hover { background: transparent; }
.pick-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--border); margin-top: 4px;
  padding: 6px 4px 0 8px; min-height: 28px; font-size: 12px; color: var(--text-muted); }
.pick-foot button { height: 26px; padding: 0 8px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-muted); font-size: 12.5px; cursor: pointer; }
.pick-foot button:hover { background: var(--surface-2); color: var(--text); }
.pick-empty { padding: 8px; font-size: 12.5px; color: var(--text-muted); }
.pick-note { padding: 6px 8px 8px; font-size: 12px; color: var(--text-muted); text-wrap: pretty; }
.pick-note strong { font-weight: 600; color: var(--text); }

/* Toast: info variant */
.toast .bang { font-family: var(--font-mono); }
.toast.info .bang { background: var(--color-info); }

/* Settings tabs */
.page-title.tabs-title { margin-bottom: 16px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; flex-wrap: wrap; }
.tabs a { height: 38px; padding: 0 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--text-muted); font-size: 13.5px;
  font-weight: 500; display: flex; align-items: center; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.lead strong { font-weight: 600; color: var(--text); }
.person-block { display: flex; flex-direction: column; background: var(--surface); }
.person-block > .list-row { min-height: 52px; flex-wrap: wrap; }
.person-block.open > .list-row { background: var(--surface-2); }
.person-block.open .actions { opacity: 1; }
.avatar.person-accent { border-radius: 50%; background: color-mix(in oklch, var(--accent) 16%, var(--surface)); color: var(--accent-text); font-size: 11.5px; }
.away-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--leave-ink); background: var(--leave-tint);
  padding: 2px 8px; border-radius: var(--radius-pill); }
.away-pill i { width: 10px; height: 10px; border-radius: 2px; background: repeating-linear-gradient(45deg, var(--leave-line) 0 1.5px, transparent 1.5px 4px); }
.row-right { margin-left: auto; display: flex; gap: 2px; align-items: center; }
.row-right .actions { margin-left: 0; }
.leave-toggle { height: 28px; padding: 0 8px 0 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: 12.5px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.leave-toggle:hover { border-color: var(--border-strong); }
.leave-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.leave-panel { padding: 4px 16px 16px 56px; background: var(--surface-2); display: flex; flex-direction: column; gap: 12px; }
.leave-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.leave-row { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 6px 0 12px; background: var(--surface); }
.leave-row i { width: 14px; height: 14px; border-radius: 3px; flex: none; border: 1px solid var(--leave-line);
  background: repeating-linear-gradient(45deg, var(--leave-line) 0 1.5px, transparent 1.5px 4px), var(--leave-bg); }
.leave-row .range { font-weight: 500; min-width: 120px; }
.leave-row .days { color: var(--text-muted); font-size: 12.5px; min-width: 48px; }
.leave-row .note { flex: 1; }
.leave-row .note.none { color: var(--text-faint); }
.leave-none { font-size: 12.5px; color: var(--text-muted); padding: 8px 0 0; }
.field-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.field-label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 500; color: var(--text-muted); }
.field-label.grow { flex: 1; min-width: 140px; }
.field-label.max-280 { min-width: 180px; max-width: 280px; }
.field-label .input { flex: none; min-width: 0; width: 100%; }
.hint { font-size: 12px; color: var(--text-muted); margin: 0; }
.section { display: flex; flex-direction: column; gap: 28px; }
.section h2 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.section .lead { margin: 0 0 12px; }
.day-toggles { display: flex; gap: 6px; flex-wrap: wrap; }
.day-toggles button { width: 52px; height: 36px; border-radius: var(--radius-md); border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); font-size: 13px; font-weight: 500; cursor: pointer; }
.day-toggles button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.hol-years { display: flex; flex-direction: column; gap: 18px; }
.hol-year { font-size: 12px; font-weight: 600; color: var(--text-muted); margin: 0 0 8px 2px; }
.hol-row { display: flex; align-items: center; gap: 14px; min-height: 46px; padding: 0 10px 0 16px; background: var(--surface); }
.hol-row .dia { width: 8px; height: 8px; flex: none; background: var(--holiday-marker); transform: rotate(45deg); border-radius: 1px; }
.hol-row .date { font-weight: 500; min-width: 52px; font-variant-numeric: tabular-nums; }
.hol-row .dow { color: var(--text-muted); font-size: 12.5px; min-width: 28px; }
.hol-row .nm { flex: 1; }
.hol-row.past .date, .hol-row.past .nm { color: var(--text-muted); }
.empty.short { padding: 44px 24px; }
.tpl-icon { width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); display: flex;
  flex-direction: column; justify-content: center; gap: 3px; padding: 0 5px; flex: none; }
.tpl-icon i { height: 3px; border-radius: 2px; display: block; background: var(--text-faint); }
.tpl-icon i:nth-child(1) { width: 9px; background: var(--accent); }
.tpl-icon i:nth-child(2) { width: 11px; margin-left: 4px; }
.tpl-icon i:nth-child(3) { width: 6px; margin-left: 9px; }
.tpl-name { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; min-width: 0; }
.tpl-name > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill-builtin { flex: none; white-space: nowrap; font-size: 11px; font-weight: 600; color: var(--text-muted); background: var(--surface-2);
  border: 1px solid var(--border); padding: 1px 7px; border-radius: var(--radius-pill); }
.list-row.template { min-height: 56px; }
.grow-col { display: flex; flex-direction: column; min-width: 0; flex: 1; }

/* Project page: add-chart card */
.add-card { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.select-lg { height: 34px; min-width: 220px; padding: 0 8px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface);
  color: var(--text); font-size: 13.5px; cursor: pointer; }
.add-card .title-field { flex: 1; min-width: 180px; max-width: 260px; }
.add-card .sub-field { flex: 1; min-width: 160px; max-width: 240px; }
.tpl-summary { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); }
.tpl-summary i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Dialogs: leave preview, save as template */
.dialog.wide { max-width: 600px; max-height: calc(100vh - 40px); overflow: auto; }
.dialog.mid { max-width: 440px; }
.lv-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.lv-head .sw { width: 28px; height: 28px; flex: none; border-radius: var(--radius-sm);
  background: repeating-linear-gradient(45deg, var(--leave-line) 0 1.5px, transparent 1.5px 5px), var(--leave-tint); }
.lv-head .t { font-size: 16px; font-weight: 600; }
.lv-note { font-size: 11.5px; font-weight: 600; color: var(--leave-ink); background: var(--leave-tint); padding: 2px 8px; border-radius: var(--radius-pill); }
.dialog p.lv-sub { margin: 0 0 16px 38px; color: var(--text-muted); font-size: 12.5px; }
.lv-h { font-size: 12.5px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.lv-table { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 18px; }
.lv-tr { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 1.3fr) 56px; gap: 10px; align-items: center; padding: 8px 12px;
  border-top: 1px solid var(--border); font-size: 13px; }
.lv-tr.th { padding: 7px 12px; background: var(--surface-2); font-size: 11.5px; font-weight: 500; color: var(--text-muted); border-top: 0; }
.lv-tr .c { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-tr .tk { display: flex; flex-direction: column; min-width: 0; }
.lv-tr .tk b { font-weight: 500; }
.lv-tr .tk small { font-size: 11.5px; color: var(--text-muted); }
.lv-tr .dt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lv-tr .dt strong { font-weight: 600; }
.lv-tr .ch { justify-self: end; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: var(--radius-pill); background: var(--color-overdue-tint); color: var(--color-overdue-text); }
.lv-tr .r { text-align: right; }
.lv-none { font-size: 12.5px; color: var(--text-muted); margin-bottom: 18px; }
.lv-none.last { margin-bottom: 0; }
.lv-partial { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.lv-partial > div { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--surface); font-size: 13px; flex-wrap: wrap; }
.lv-partial .c { color: var(--text-muted); }
.lv-partial b { font-weight: 500; }
.lv-partial .w { font-size: 12.5px; color: var(--color-warning-text); background: var(--color-warning-tint); padding: 1px 8px; border-radius: var(--radius-pill); }
.dialog-actions.wrap { margin-top: 20px; flex-wrap: wrap; }
.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-card { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-md); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.radio-card.on { border-color: var(--accent); background: var(--banner-bg); }
.radio-card > button { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 0; font-size: 13.5px; font-weight: 500;
  color: var(--text); cursor: pointer; text-align: left; min-height: 24px; }
.radio-card .dot { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; }
.radio-card.on .dot { border-color: var(--accent); }
.radio-card.on .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.radio-card .input, .radio-card .select-lg { flex: none; height: 34px; min-width: 0; width: 100%; }
.dialog p.note-small { margin: 12px 0 0; font-size: 12.5px; color: var(--text-muted); text-wrap: pretty; }
.dialog .select-lg { width: 100%; }
.dialog-title.big { font-size: 16px; margin-bottom: 14px; }

@media (max-width: 600px) {
  .chart-page, .chart-page.ro { padding: 20px 14px; }
  .ro-title { font-size: 20px; }
  .gantt-scroll { height: 440px; }
  .page { padding: 28px 16px 80px; }
  .topbar { padding: 0 12px; }
}
