/* Time Tracking Guru - design system v1.6
   Navy, white and one neon blue. Flat surfaces, hairline borders, one typeface.
   No gradients, no glows, no backdrop blur: it has to load fast and stay quiet. */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/manrope-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/manrope-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #0B1B3F; --slate: #33466F; --mute: #6B7A99; --line: #E2E8F3;
  --paper: #FFFFFF; --surface: #FFFFFF; --surface2: #F3F6FC;
  --brand: #0A84E8; --brand-dark: #0866B8; --brand-soft: rgba(10,132,232,.09);
  --active: #12A66B; --active-soft: rgba(18,166,107,.11);
  --idle: #E58A00; --idle-soft: rgba(229,138,0,.12);
  --danger: #E5484D; --danger-soft: rgba(229,72,77,.10);
  --leave: #7061E8;
  --text: var(--ink); --border: var(--line); --accent: var(--brand); --accent2: var(--brand); --bad: var(--danger); --bg: var(--paper); --muted: var(--mute);
  --shadow: 0 14px 34px -14px rgba(11,27,63,.22);
  --radius-s: 8px; --radius: 12px; --radius-l: 16px;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; font-weight: 600; letter-spacing: -.012em; }
h1 { font-size: 1.65rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.02rem; }
h4 { font-size: .9rem; }
p { margin: 0 0 1em; max-width: 70ch; }
a { color: var(--brand); text-underline-offset: 3px; }
small { font-size: .82rem; }
ul, ol { margin: 0 0 1em; }

.num { font-variant-numeric: tabular-nums; }
.mute { color: var(--mute); }
.small { font-size: .84rem; }
.right { text-align: right; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.tight { gap: 8px; }
.spread { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.stack { display: grid; gap: 16px; }
.grow { flex: 1; }
.hidden { display: none !important; }

/* ------------------------------------------------------------ shell ---- */

.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }

.sidebar { background: var(--surface); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }

.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 10px; text-decoration: none; color: inherit; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand-name { font-weight: 700; letter-spacing: -.015em; line-height: 1.15; color: var(--ink); }
.brand-name span { display: block; font-size: .72rem; font-weight: 500; color: var(--mute); letter-spacing: 0; }

.nav { display: grid; gap: 2px; }
.nav h4 { margin: 16px 10px 4px; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--mute); font-weight: 600; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-s); color: var(--slate); text-decoration: none; font-size: .92rem; font-weight: 500; }
.nav a:hover { background: var(--surface2); color: var(--ink); }
.nav a.on { background: var(--brand-soft); color: var(--ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--brand); }
.nav a .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .4; }
.nav a.on .dot { background: var(--brand); opacity: 1; }
.nav.platform { margin-top: 10px; padding: 4px 6px 8px; border: 1px solid var(--line); border-radius: var(--radius); }
.nav.platform h4 { color: var(--brand-dark); margin-top: 8px; }

.plan-mini { margin-top: auto; border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 13px; display: grid; gap: 2px; font-size: .78rem; }
.plan-mini b { color: var(--ink); } .plan-mini span { color: var(--mute); }

.main { padding: 0 32px 56px; min-width: 0; max-width: 1280px; }

.topbar { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 12px 0; margin-bottom: 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); z-index: 5; }
.topbar select { max-width: 220px; }
.crumbs { margin-right: auto; font-size: .86rem; color: var(--mute); }
.crumbs a { color: var(--mute); text-decoration: none; } .crumbs a:hover { color: var(--ink); }
.usermenu { position: relative; }
.usermenu > button { display: flex; align-items: center; gap: 10px; background: transparent; border-color: transparent; padding: 4px 8px 4px 4px; border-radius: 999px; }
.usermenu > button:hover { background: var(--surface); border-color: var(--line); }
.usermenu .name { font-weight: 600; font-size: .86rem; line-height: 1.2; text-align: left; }
.usermenu .email { font-size: .74rem; color: var(--mute); font-weight: 500; text-align: left; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--paper); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .84rem; flex-shrink: 0; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; z-index: 40; box-shadow: 0 16px 40px -12px rgba(0,0,0,.7); display: grid; gap: 2px; }
.menu-pop a, .menu-pop button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: var(--radius-s); color: var(--slate); text-decoration: none; background: transparent; border: 0; font-weight: 500; font-size: .9rem; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface2); color: var(--ink); }
.menu-pop hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }

.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { margin: 0; }

/* ------------------------------------------------------------ cards ---- */

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card h3 { margin-bottom: 10px; }
/* pages that stack cards directly under the heading get the same rhythm as .stack */
.main > div > .card + .card, .main > div > .card + .grid, .main > div > .grid + .card, .main > div > .grid + .grid, .main > div > .card + .stack { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stat { display: grid; gap: 2px; }
.stat b { font-size: 1.7rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat .label { color: var(--mute); font-size: .84rem; }

/* key figures (home, day, time off, plan) */
.hero { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.hero4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hero4 .tile { border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 8px; align-content: start; box-shadow: var(--shadow); }
.hero4 .tile.main { border-color: var(--brand); }
.hero4 .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--mute); font-weight: 700; }
.hero4 .v { font-size: 2.2rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.hero4 .v.glow { color: var(--pc); font-size: 2.6rem; }
.hero4 .s { font-size: .84rem; color: var(--mute); }
.hero4 .s.strong { color: var(--ink); font-weight: 600; }
.hero4 .ring-row { display: flex; gap: 14px; align-items: center; }
.split-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--surface2); }
.split-bar i { display: block; height: 100%; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pair > div { display: grid; gap: 1px; }
.pair b { font-size: 1.25rem; letter-spacing: -.02em; }
.pair small { color: var(--mute); font-weight: 600; font-size: .74rem; }
.pair .sw { width: 22px; height: 4px; border-radius: 2px; display: block; margin-bottom: 4px; }
.progress { height: 12px; border-radius: 8px; background: var(--surface2); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 8px; transition: width .4s ease; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--slate); border-radius: 999px; padding: 5px 14px; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; }
.chip:hover { border-color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.avg-pill { display: grid; justify-items: end; line-height: 1.1; }
.avg-pill b { font-size: 1.9rem; color: var(--pc); letter-spacing: -.03em; }
.avg-pill span { font-size: .72rem; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.single-day { display: flex; gap: 20px; align-items: center; }
@media (max-width: 1200px) { .hero4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .hero4 { grid-template-columns: 1fr; } }
.hero .tile { border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--line); background: var(--surface); }
.hero .tile.main { border-color: var(--brand); }
.hero .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--mute); font-weight: 600; }
.hero .v { font-size: 2.3rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.hero .v.glow { color: var(--pc); }
.hero .s { font-size: .82rem; color: var(--mute); }
.hero .row { margin-top: 8px; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; } }

/* section "branch" cards: Settings hub, Home shortcuts */
.hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.hub-card { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; transition: border-color .12s; }
.hub-card:hover { border-color: var(--brand); }
.hub-card b { display: flex; justify-content: space-between; align-items: center; font-size: 1rem; margin-bottom: 4px; }
.hub-card b::after { content: "\2192"; color: var(--brand); }
.hub-card span { color: var(--mute); font-size: .88rem; display: block; }
.hub-card .badge { margin-top: 8px; }

.tabs-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tabs-nav a { padding: 9px 14px; color: var(--mute); text-decoration: none; border-bottom: 2px solid transparent; font-weight: 600; font-size: .92rem; margin-bottom: -1px; }
.tabs-nav a:hover { color: var(--ink); }
.tabs-nav a.on { color: var(--ink); border-bottom-color: var(--brand); }

/* ----------------------------------------------------------- calendar --- */

.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--mute); margin-bottom: 12px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.cal-type-toggles { flex-wrap: wrap; gap: 14px; margin-bottom: 10px; }
.cal-type-toggle { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: .84rem; margin-bottom: 0; }
.cal-type-toggle input { width: auto; margin: 0; }
.cal-type-toggle i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-head { text-align: center; font-size: .74rem; color: var(--mute); font-weight: 600; padding-bottom: 2px; }
.cal-cell, .cal-week-cell { border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); padding: 6px; display: flex; flex-direction: column; gap: 4px; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.cal-cell { min-height: 64px; }
.cal-week-cell { min-height: 92px; padding: 10px 8px; gap: 6px; }
.cal-week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-cell:hover, .cal-week-cell:hover { border-color: var(--brand); }
.cal-cell.empty { visibility: hidden; cursor: default; }
.cal-cell.today, .cal-week-cell.today { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.cal-cell.has-time, .cal-week-cell.has-time { background: var(--surface2); }
.cal-cell.leave, .cal-week-cell.leave { background: rgba(157,140,255,.16); }
.cal-date { font-size: .8rem; font-weight: 600; color: var(--mute); }
.cal-weekday { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--mute); }
.cal-total { font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.cal-pct { font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.cal-bar { display: flex; height: 5px; border-radius: 3px; overflow: hidden; background: var(--line); margin-top: auto; }
.cal-bar i { display: block; height: 100%; }
@media (max-width: 640px) { .cal-cell { min-height: 44px; } .cal-total { display: none; } }

.day-expanded { max-width: none; }
.day-hour-grid { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; align-items: end; }
.day-hour-col { display: flex; flex-direction: column; align-items: stretch; gap: 4px; background: none; border: none; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.day-hour-col-track { height: 140px; border-radius: 6px; background: var(--surface2); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column-reverse; }
.day-hour-col:hover .day-hour-col-track { border-color: var(--brand); }
.day-hour-col-seg { width: 100%; flex: 0 0 auto; }
.day-hour-col-label { font-size: .66rem; color: var(--mute); text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .day-hour-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: 10px; } }
.day-nav-label { min-width: 190px; text-align: center; display: inline-block; font-weight: 600; }

/* -------------------------------------------------------- activity ---- */

.activity-bar { display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: var(--line); }
.activity-bar-seg { cursor: pointer; min-width: 2px; }
.activity-bar-seg.dim { opacity: .25; }
.activity-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.activity-legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface2); cursor: pointer; color: inherit; font: inherit; }
.activity-legend-item i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.activity-legend-item b { font-variant-numeric: tabular-nums; }
.activity-legend-item.on { border-color: var(--brand); background: var(--brand-soft); }
.activity-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 220px) 60px; align-items: center; gap: 14px; }
.activity-row-meta small { display: block; margin-top: 2px; }
.activity-row-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.activity-row-bar i { display: block; height: 100%; border-radius: 4px; }
.activity-row-time { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .activity-row { grid-template-columns: 1fr; gap: 6px; } .activity-row-time { text-align: left; } }

.pie-wrap { position: relative; width: 120px; height: 120px; flex: 0 0 auto; }
.pie { width: 100%; height: 100%; border-radius: 50%; }
.pie-hole { position: absolute; inset: 18px; border-radius: 50%; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.pie-hole b { font-size: 1.1rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pie-hole small { font-size: .68rem; color: var(--mute); }
@media (max-width: 640px) { .pie-wrap { width: 92px; height: 92px; } .pie-hole { inset: 14px; } }

/* ----------------------------------------------------------- pieces ---- */

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; background: var(--surface2); color: var(--slate); border: 1px solid var(--line); }
.badge.active { background: var(--active-soft); color: var(--active); border-color: transparent; }
.badge.idle { background: var(--idle-soft); color: var(--idle); border-color: transparent; }
.badge.brand { background: var(--brand-soft); color: var(--brand-dark); border-color: transparent; }
.badge.danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge .pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); }

table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font-weight: 600; color: var(--mute); padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.row-clickable { cursor: pointer; }
.row-clickable:hover td { background: var(--surface2); }

button, .btn { font: inherit; font-weight: 600; font-size: .9rem; padding: 8px 15px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface2); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: border-color .12s, background .12s; }
button:hover, .btn:hover { border-color: var(--brand); }
button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--paper); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-danger { color: var(--danger); border-color: rgba(229,72,77,.4); background: transparent; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--slate); }
.btn-sm { padding: 5px 10px; font-size: .82rem; }
button[disabled] { opacity: .5; cursor: not-allowed; }

label { display: block; font-size: .82rem; font-weight: 600; color: var(--slate); margin-bottom: 5px; }
input, select, textarea { font: inherit; width: 100%; padding: 9px 11px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface2); color: var(--ink); }
input:hover, select:hover, textarea:hover { border-color: #B9C6E2; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input[readonly] { color: var(--mute); }
input::placeholder { color: #5C6E99; }
input[type=checkbox] { accent-color: var(--brand); }
select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
select option { background: var(--surface); color: var(--ink); }
textarea { min-height: 120px; resize: vertical; }
.field { margin-bottom: 14px; }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field-row > * { flex: 1; min-width: 160px; }
.check { display: flex; gap: 9px; align-items: flex-start; font-weight: 500; font-size: .9rem; color: var(--slate); }
.check input { width: auto; margin-top: 3px; }

.notice { padding: 11px 14px; border-radius: var(--radius-s); font-size: .9rem; margin-bottom: 14px; border: 1px solid transparent; }
.notice.error { background: var(--danger-soft); color: var(--danger); }
.notice.ok { background: var(--active-soft); color: var(--active); }
.notice.info { background: var(--brand-soft); color: var(--brand-dark); }
.notice.warn { background: var(--idle-soft); color: var(--idle); }

.toast { background: var(--surface2); border-color: var(--line); box-shadow: 0 16px 40px -12px rgba(0,0,0,.7); margin: 0; }
.empty { text-align: center; padding: 34px 20px; color: var(--mute); }
.empty h3 { color: var(--ink); }
.skeleton { background: var(--surface2); border-radius: var(--radius-s); height: 14px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: var(--radius-s); background: var(--surface2); border: 1px solid var(--line); font-size: .82rem; }
.chip button { padding: 0 2px; border: none; background: none; color: var(--mute); font-size: 1rem; line-height: 1; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(3,8,22,.78); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.modal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); width: min(560px, 100%); max-height: 86vh; overflow: auto; padding: 24px; }
.modal.wide { width: min(820px, 100%); }
.doc { font-size: .93rem; color: var(--slate); }
.doc h1 { font-size: 1.3rem; }
.doc h2 { font-size: 1.05rem; margin-top: 1.2em; }

/* ------------------------------------------------------------- auth ---- */

.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-pitch { background: var(--surface); border-right: 1px solid var(--line); padding: 56px 52px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.auth-pitch h1 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 600; letter-spacing: -.03em; }
.auth-pitch p { color: var(--slate); }
.auth-pitch ul { list-style: none; padding: 0; display: grid; gap: 12px; color: var(--slate); font-size: .95rem; }
.auth-pitch li { display: block; }
.auth-pitch li b { color: var(--ink); font-weight: 600; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-form .inner { width: min(420px, 100%); }
.auth-tabs { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); padding: 4px; border-radius: var(--radius-s); margin-bottom: 20px; }
.auth-tabs button { flex: 1; border: none; background: transparent; justify-content: center; }
.auth-tabs button.on { background: var(--brand); color: var(--paper); }

/* --------------------------------------------- productivity + charts ---- */

.p-green { --pc: #12A66B; } .p-orange { --pc: #E58A00; } .p-red { --pc: #E5484D; } .p-none { --pc: #A3AFC8; } .p-leave { --pc: #7061E8; }
.pct-pill { display: inline-block; min-width: 46px; text-align: center; padding: 2px 8px; border-radius: 6px; font-weight: 700; font-size: .78rem; font-variant-numeric: tabular-nums; background: color-mix(in srgb, var(--pc, #5C6E99) 20%, transparent); color: var(--pc, var(--mute)); }
.cal-cell .pct-pill, .cal-week-cell .pct-pill { align-self: flex-start; }

.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--mute); font-size: 11px; font-family: var(--font); }
.chart .grid-line { stroke: rgba(11,27,63,.08); }
.chart .bar-rect:hover { opacity: .8; }
.chart-tip { position: fixed; z-index: 90; pointer-events: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 10px; font-size: .8rem; max-width: 240px; }

/* pager + search */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; font-size: .84rem; color: var(--mute); flex-wrap: wrap; }
.pager .btn-sm[disabled] { opacity: .35; }
.search { position: relative; }
.search input { padding-left: 34px; }
.search::before { content: "\2315"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%) scaleX(-1); color: var(--mute); font-size: 1.05rem; }
.combo { position: relative; }
.combo-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 260px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.7); }
.combo-opt { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: var(--radius-s); font-weight: 500; }
.combo-opt:hover, .combo-opt.hi { background: var(--brand-soft); }
.combo-opt small { color: var(--mute); }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.filters > div { min-width: 170px; flex: 1; }
.range-seg { display: inline-flex; background: var(--surface2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 3px; gap: 2px; }
.range-seg button { border: 0; background: transparent; padding: 5px 12px; font-size: .84rem; }
.range-seg button.on { background: var(--brand); color: var(--paper); }

/* plan / pricing */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.price-card { border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); background: var(--surface); }
.price-card.hot { border-color: var(--brand); }
.price-card .amt { font-size: 2.5rem; font-weight: 600; letter-spacing: -.03em; }
.price-card ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 7px; color: var(--slate); }
.price-card li::before { content: "\2713"; color: var(--brand); margin-right: 8px; font-weight: 700; }
.site-footer { text-align: center; padding: 30px 0 8px; color: var(--mute); font-size: .82rem; }
.site-footer b { color: var(--slate); }
.vac { border-left: 3px solid var(--leave); padding-left: 12px; }
.bell-btn { position: relative; }
.bell-btn i { position: absolute; top: -6px; right: -6px; background: var(--danger); color: #fff; font-style: normal; font-size: .7rem; border-radius: 999px; padding: 0 6px; }

::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: #CBD5EA; border-radius: 8px; } ::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; }
  .sidebar .nav { display: flex; flex-wrap: wrap; }
  .sidebar .nav h4 { display: none; }
  .plan-mini { display: none; }
  .main { padding: 0 16px 48px; }
  .grid.c4, .grid.c3, .grid.c2, .price-grid { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-pitch { padding: 32px 24px; }
}

/* v1.7 additions */
.bell-btn { background: transparent; border: 1px solid var(--line); border-radius: 10px; width: 38px; height: 38px; display: grid; place-items: center; color: var(--slate); cursor: pointer; }
.bell-btn:hover { border-color: var(--brand); color: var(--brand); }
.bell-pop { width: 340px; right: 0; padding: 0; }
.bell-head { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.bell-list { max-height: 360px; overflow-y: auto; }
.bell-list a { display: grid; gap: 2px; padding: 10px 14px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.bell-list a.unread { background: var(--brand-soft); }
.bell-list a span { color: var(--slate); font-size: .84rem; }
.bell-list a small { color: var(--mute); }
.bell-foot { display: block; padding: 10px 14px; font-size: .84rem; }
.scope-bar { display: flex; align-items: center; gap: 10px; }
.company-pick { padding: 0 6px; }
.kanban { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kan-col { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--surface); min-height: 240px; }
.kan-col h3 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 4px; }
.kan-col.good { border-top: 3px solid var(--active); } .kan-col.bad { border-top: 3px solid var(--idle); }
.kan-col.over { background: var(--brand-soft); border-color: var(--brand); }
.kan-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.site-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface2); font-size: .88rem; cursor: grab; user-select: none; }
.site-chip small { color: var(--mute); }
.site-chip.review { border-style: dashed; border-color: var(--idle); }
.site-chip:active { cursor: grabbing; }
.site-chip button { border: 0; background: transparent; cursor: pointer; color: var(--mute); padding: 0 2px; }
@media (max-width: 760px) { .kanban { grid-template-columns: 1fr; } }
.landing-art { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius-l); }
.auth-simple { grid-template-columns: 1fr; }
.auth-brand { justify-content: center; margin-bottom: 18px; flex-direction: column; text-align: center; }
.auth-brand .brand-name { font-size: 1.15rem; }
