:root {
  /* Yeia identity: navy #1E3A5F, pink #EB4899, cream #FAF5EF, ink #1F2B3B */
  --navy: #1E3A5F; --pink: #EB4899; --pink-2: #FDE8F2; --cream: #FAF5EF; --label: #6B6250;
  --bg: #F7F5F2; --panel: #ffffff; --ink: #1F2B3B; --ink-2: #3F4859; --muted: #6B7280; --line: #EAE5E1; --soft: #F3F0EC; --hover: #EEF2F7;
  --accent: #1E3A5F; --accent-2: #E8EEF5; --accent-ink: #ffffff;
  --ok: #17803d; --ok-bg: #e4f4ea; --warn: #8f5a00; --warn-bg: #fff3d6; --err: #b42318; --err-bg: #fdecea;
  --weekend: #f2f3f6; --holiday: #fbf0e8;
  --p0: #2a78d6; --p1: #1baf7a; --p2: #6250d6; --p3: #eb6834; --p4: #e87ba4; --p5: #008300;
  --a-other: #9aa3b2; --a-hol: #e2a92b; --a-sick: #e5675c; --a-train: #4bb0d6; --a-abs: #b9a28c; --a-nw: #d5d9e0; --a-par: #f29fc5; --a-mis: #7a6fd0;
  --s-plan: #2a78d6; --s-rec: #eb6834; --s-ref: #6b7385;
  --radius: 10px; --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.07);
  --side: 236px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #10151d; --panel: #18202b; --ink: #eef1f5; --ink-2: #c6ccd6; --muted: #98a0ad; --line: #2b3441; --soft: #202a36; --hover: #223047;
    --accent: #9DB7DA; --accent-2: #22324a; --accent-ink: #0d1726; --pink: #F26BAE; --pink-2: #3a1a2c; --cream: #FAF5EF; --label: #b9ae97; --ok: #5cc28d; --ok-bg: #16301f; --warn: #f0b64a; --warn-bg: #362a12;
    --err: #ff7b6e; --err-bg: #3a1c1a; --weekend: #1d2028; --holiday: #2e241d; --a-nw: #3a404c;
    --p0: #3987e5; --p1: #199e70; --p2: #9085e9; --p3: #d95926; --p4: #d55181; --s-plan: #3987e5; --s-rec: #d95926; --s-ref: #959cab; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); }
h1 { font-size: 22px; margin: 0; letter-spacing: -.01em; } h2 { font-size: 16px; margin: 0 0 10px; } h3 { font-size: 14px; margin: 14px 0 8px; }
a { color: var(--accent); }
code { background: var(--soft); padding: 1px 5px; border-radius: 4px; font-size: 12px; }

/* ---------- shell */
.shell { display: flex; min-height: 100vh; }
.side { width: var(--side); flex: none; background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; height: 100dvh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; font-weight: 700; font-size: 16px; }
.logo { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.brand small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); }
.ctx { margin: 0 12px 10px; padding: 8px 10px; border-radius: 8px; background: var(--soft); font-size: 12px; color: var(--ink-2); }
.ctx b { color: var(--ink); }
.nav { flex: 1; overflow: auto; padding: 4px 10px; }
.nav .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 8px 4px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.nav a:hover { background: var(--soft); color: var(--ink); }
.nav a.on { background: var(--accent-2); color: var(--accent); box-shadow: inset 3px 0 0 var(--pink); }
.nav .count { margin-left: auto; background: var(--err); color: #fff; border-radius: 9px; padding: 0 7px; font-size: 11px; line-height: 18px; }
.me { border-top: 1px solid var(--line); padding: 12px 16px; font-size: 13px; }
.me .role { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 10px; background: var(--accent-2); color: var(--accent); font-weight: 600; margin-top: 2px; }
.content { flex: 1; min-width: 0; }
.page { max-width: 1320px; margin: 0 auto; padding: 24px 28px 60px; }
.phead { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.phead .sub { color: var(--muted); margin-top: 4px; }
.phead .act { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.mobilebar { display: none; }
@media (max-width: 900px) {
  .shell { display: block; } .side { display: none; position: fixed; z-index: 40; height: 100vh; height: 100dvh; box-shadow: 0 0 40px rgba(0,0,0,.3); padding-bottom: env(safe-area-inset-bottom); }
  .scrim { position: fixed; inset: 0; background: rgba(10, 15, 25, .35); z-index: 35; }
  .mobilebar .brandimg { height: 22px; }
  .side.open { display: flex; }
  .mobilebar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
  .page { padding: 16px; }
}

/* ---------- building blocks */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.panel.flat { box-shadow: none; }
.panel > h2:first-child { margin-top: 0; }
.row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.grow { flex: 1; min-width: 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .right { text-align: right; } td.right { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
button, .btn { font: inherit; font-weight: 500; border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 7px 13px; border-radius: 8px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; line-height: 1.3; }
button:hover, .btn:hover { border-color: var(--accent); }
button.primary, .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
button.ghost { border-color: transparent; background: none; color: var(--accent); }
button.danger { color: var(--err); }
button.sm, .btn.sm { padding: 3px 9px; font-size: 12px; }
button:disabled { opacity: .5; cursor: not-allowed; }
button.link { border: 0; background: none; color: var(--accent); padding: 0; }
input, select, textarea { font: inherit; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-2); border-color: var(--accent); }
input[type=number] { width: 100px; }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-2); font-weight: 500; }
label.f .hint { font-weight: 400; color: var(--muted); }
label.chk { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; margin-right: 10px; }
.formgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; align-items: end; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 7px 9px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--soft); }
tr.total td { font-weight: 700; border-top: 2px solid var(--ink-2); }
tbody tr:hover td { background: var(--hover); }
.scroll { overflow-x: auto; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border-radius: 10px; font-size: 12px; font-weight: 600; background: var(--soft); color: var(--muted); white-space: nowrap; }
.badge.approved, .badge.ok, .badge.submitted-eu { background: var(--ok-bg); color: var(--ok); }
.badge.submitted, .badge.signed_person, .badge.validated, .badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.rejected, .badge.err { background: var(--err-bg); color: var(--err); }
.badge.blue { background: var(--accent-2); color: var(--accent); }
.msg { padding: 10px 14px; border-radius: 8px; margin: 10px 0; }
.msg.err { background: var(--err-bg); color: var(--err); } .msg.warn { background: var(--warn-bg); color: var(--warn); } .msg.ok { background: var(--ok-bg); color: var(--ok); } .msg.info { background: var(--accent-2); color: var(--ink); }
.msg ul { margin: 4px 0 0; padding-left: 18px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; font-weight: 500; }
.tabs a.on { color: var(--ink); border-color: var(--accent); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: block; }
a.tile:hover { border-color: var(--accent); }
.tile .k { font-size: 12px; color: var(--muted); font-weight: 500; } .tile .v { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; }
.tile .s { font-size: 12px; color: var(--ink-2); }
.tile.alert .v { color: var(--err); } .tile.good .v { color: var(--ok); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 10px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; background: var(--panel); }
.card .k { font-size: 12px; color: var(--muted); } .card .v { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.chip { display: inline-block; padding: 1px 7px; border-radius: 5px; background: var(--err-bg); color: var(--err); font-size: 12px; margin: 1px; }
.chip.w { background: var(--warn-bg); color: var(--warn); } .chip.g { background: var(--ok-bg); color: var(--ok); } .chip.n { background: var(--soft); color: var(--ink-2); }
.bar { height: 8px; background: var(--soft); border-radius: 4px; overflow: hidden; min-width: 80px; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.bar.over > i { background: var(--err); }
.help { font-size: 12px; color: var(--muted); }
.empty { text-align: center; padding: 30px; color: var(--muted); }

/* ---------- project cards & timeline */
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.pcard { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: block; }
a.pcard:hover { border-color: var(--accent); }
.pcard .acr { font-size: 18px; font-weight: 800; letter-spacing: .01em; }
.pcard .ttl { color: var(--muted); font-size: 13px; margin: 2px 0 10px; }
.pcard .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.timeline { position: relative; height: 34px; background: var(--soft); border-radius: 8px; overflow: hidden; display: flex; }
.timeline .rp { border-right: 2px solid var(--panel); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.timeline .rp.past { background: #dfe7f8; } .timeline .rp.current { background: var(--accent-2); color: var(--accent); }
@media (prefers-color-scheme: dark) { .timeline .rp.past { background: #263048; } }
.timeline .now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--err); }

/* ---------- landing / wizard */
.hero { background: linear-gradient(135deg, var(--accent) 0%, #4b7be0 100%); color: #fff; border-radius: 16px; padding: 34px 36px; margin-bottom: 18px; }
.hero h1 { font-size: 28px; color: #fff; } .hero p { opacity: .92; max-width: 720px; font-size: 15px; }
.hero .btn { background: #fff; color: var(--accent); border-color: #fff; font-weight: 600; }
.who3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.who3 .panel { margin: 0; }
.who3 .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-2); color: var(--accent); display: grid; place-items: center; margin-bottom: 8px; }
.stepper { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.step { flex: 1; min-width: 120px; padding: 10px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; color: var(--muted); cursor: pointer; }
.step b { display: block; color: var(--ink-2); font-size: 12px; }
.step.on { border-color: var(--accent); background: var(--accent-2); color: var(--accent); } .step.on b { color: var(--accent); }
.step.done b::after { content: " ✓"; color: var(--ok); }
.wfoot { display: flex; justify-content: space-between; margin-top: 16px; }
.prow { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 12px; background: var(--panel); }
.prow .ph { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }

/* ---------- time grid */
.palette { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; align-items: center; }
.brush { display: flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 16px; border: 2px solid transparent; background: var(--soft); cursor: pointer; font-size: 13px; user-select: none; }
.brush.on { border-color: var(--ink); background: var(--panel); }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: none; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; user-select: none; }
.cal .dh { font-size: 12px; color: var(--muted); text-align: center; padding: 2px; font-weight: 600; }
.day { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); min-height: 78px; display: flex; flex-direction: column; overflow: hidden; }
.day.weekend { background: var(--weekend); } .day.holiday { background: var(--holiday); } .day.nocontract { opacity: .45; }
.day.blank { border: 0; background: transparent; }
.day.today { border-color: var(--accent); }
.day .dn { font-size: 12px; padding: 3px 7px; display: flex; justify-content: space-between; gap: 4px; cursor: pointer; }
.day .dn .hn { color: var(--warn); font-size: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.day .note { color: var(--accent); }
.slot { flex: 1; margin: 1px 4px; border-radius: 5px; min-height: 22px; font-size: 11px; padding: 2px 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: crosshair; border: 1px dashed var(--line); color: var(--muted); }
.slot.filled { border: 0; color: #fff; text-shadow: 0 0 2px rgba(0,0,0,.35); }
.slot:last-child { margin-bottom: 4px; }
.locked .slot { cursor: default; }
.aside { width: 330px; }
@media (max-width: 1000px) { .aside { width: 100%; } .day { min-height: 60px; } .slot { font-size: 10px; } }
.legend td { padding: 4px 6px; border: 0; }
.progress { height: 8px; border-radius: 4px; background: var(--soft); overflow: hidden; margin: 6px 0; }
.progress i { display: block; height: 100%; background: var(--ok); }
.planbox { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--accent-2); border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; }

/* ---------- planning grid */
.pgrid td, .pgrid th { padding: 4px 5px; text-align: center; }
.pgrid td:first-child, .pgrid th:first-child { text-align: left; }
.pgrid input { width: 56px; padding: 4px 5px; text-align: right; font-variant-numeric: tabular-nums; }
.pgrid input.changed { border-color: var(--accent); background: var(--accent-2); }
.pgrid .act { font-size: 11px; display: block; margin-top: 1px; }
.pgrid .act.ok { color: var(--ok); } .pgrid .act.dev { color: var(--warn); } .pgrid .act.na { color: var(--muted); }
.pgrid tr.person td { background: var(--soft); font-weight: 600; }
.pgrid tr.tot td { font-size: 12px; color: var(--ink-2); }
.pgrid .over { color: var(--err); font-weight: 700; }

/* ---------- chart */
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .tip { position: absolute; pointer-events: none; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.12); min-width: 170px; }
.chart .tip .r { display: flex; justify-content: space-between; gap: 12px; }
.lgd { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }
.lgd span { display: inline-flex; align-items: center; gap: 6px; }
.lgd i { width: 18px; height: 0; border-top: 2px solid; display: inline-block; }

/* ---------- modal, toast, login */
.modal { position: fixed; inset: 0; background: rgba(10, 15, 25, .45); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal-box { background: var(--panel); border-radius: 14px; padding: 22px; width: 560px; max-width: 100%; max-height: 92vh; overflow: auto; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.modal-box.wide { width: 1020px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.toast { position: fixed; bottom: 20px; right: 20px; background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 10px; z-index: 60; max-width: 440px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login .art { background: var(--navy); color: var(--cream); padding: 56px; display: flex; flex-direction: column; justify-content: center; }
.login .art h1 { color: #fff; font-size: 34px; } .login .art p { font-size: 16px; opacity: .9; max-width: 460px; }
.login .art ul { padding-left: 18px; opacity: .92; line-height: 1.9; }
.login .form { display: flex; align-items: center; justify-content: center; padding: 30px; }
.login .box { width: 380px; max-width: 100%; }
.login input { width: 100%; margin-bottom: 10px; padding: 10px 12px; }
.demo-users { display: grid; gap: 6px; margin-top: 8px; }
.demo-users button { justify-content: space-between; width: 100%; font-size: 13px; }
.demo-users button span { color: var(--muted); font-size: 12px; }
@media (max-width: 900px) { .login { grid-template-columns: 1fr; } .login .art { display: none; } }
.decl { border: 1px solid var(--ink); width: 100%; }
.decl td, .decl th { border: 1px solid var(--ink); background: none; color: var(--ink); }
.sigok { color: var(--ok); font-size: 12px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 13px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }

.login .art .lead { font-size: 22px; line-height: 1.35; margin: 6px 0 14px; opacity: 1; }
.login .art { position: relative; }
.brandfoot { position: absolute; left: 56px; bottom: 34px; display: flex; align-items: center; gap: 12px; font-size: 13px; opacity: .95; }
.brandfoot .logochip { display: inline-flex; filter: drop-shadow(0 2px 6px rgba(0,0,0,.18)); }
.brandfoot .wordmark { font-weight: 800; letter-spacing: .12em; font-size: 18px; background: rgba(255,255,255,.14); padding: 4px 10px; border-radius: 6px; }
.logo-img { object-fit: contain; vertical-align: middle; }
.pcard .logo-img { max-width: 90px; }
.login { align-items: start; }
.login .art { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.pgrid td:first-child, .pgrid th:first-child { min-width: 170px; }
.navpick { display: flex; align-items: center; gap: 6px; margin: 2px 8px 6px; }
.navpick select { flex: 1; padding: 5px 8px; font-weight: 600; }
.appicon { width: 76px; height: 56px; border-radius: 14px; background: #fff; display: grid; place-items: center; margin-bottom: 22px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.appicon img { max-width: 62px; max-height: 44px; }
.brandimg { height: 30px; width: auto; }

/* ---------- phones & tablets */
.daylist { display: flex; flex-direction: column; gap: 6px; user-select: none; }
.daylist .drow { min-height: 0; flex-direction: row; align-items: center; padding: 6px 8px; gap: 8px; }
.daylist .drow .dn { width: 84px; flex: none; flex-direction: column; align-items: flex-start; padding: 0; cursor: default; gap: 0; }
.daylist .drow .dn .hn { white-space: normal; }
.daylist .dslots { flex: 1; display: flex; gap: 6px; align-items: center; min-width: 0; }
.daylist .slot { margin: 0; min-height: 40px; display: flex; align-items: center; justify-content: center; font-size: 12px; border-radius: 8px; cursor: pointer; }
.daylist .weekend .slot:not(.filled), .daylist .holiday .slot:not(.filled) { min-height: 26px; }
.daylist .wholeday { flex: none; padding: 6px 8px; }
@media (max-width: 700px) {
  .palette { flex-wrap: nowrap; overflow-x: auto; position: sticky; top: 52px; z-index: 6; background: var(--bg); padding: 8px 0; margin: 0 -16px 10px; padding-left: 16px; padding-right: 16px; }
  .brush { flex: none; }
  .row > .grow { flex-basis: 100%; }
  .panel { overflow-x: auto; }
  .phead .act { margin-left: 0; width: 100%; }
  h1 { font-size: 20px; }
  .modal { padding: 8px; align-items: flex-end; }
  .modal-box { border-radius: 14px 14px 0 0; max-height: 94vh; }
}
.daylist .slot { white-space: normal; text-align: center; line-height: 1.15; padding: 3px 4px; overflow: hidden; word-break: break-word; }
.scrim[hidden] { display: none; }
@media (max-width: 380px) { .mobilebar .mname { display: none; } }

/* hours timesheet (one line per project / mission / absence, one column per day) */
.hrow { flex-direction: column; }
.hrow > .aside { width: auto; max-width: 560px; }
.hpanel { padding: 8px; }
.hgrid { border-collapse: collapse; font-size: 12px; }
.hgrid th, .hgrid td { border: 1px solid var(--line); padding: 0; text-align: center; min-width: 30px; }
.hgrid th { font-weight: 600; font-size: 11px; padding: 2px; cursor: pointer; color: var(--muted); }
.hgrid .l { text-align: left; white-space: nowrap; padding: 3px 8px; position: sticky; left: 0; background: var(--panel, #fff); z-index: 1; min-width: 150px; }
.hgrid .off { background: var(--a-nw); }
.hgrid input { width: 30px; border: 0; padding: 4px 1px; text-align: center; background: transparent; font-variant-numeric: tabular-nums; font-size: 12px; border-radius: 0; }
.hgrid input:focus { outline: 2px solid var(--accent); background: var(--accent-2); }
.hgrid td.t { font-weight: 600; padding: 3px 6px; }
.hgrid tr.tot td { font-weight: 600; padding: 3px 2px; }
.hgrid td.over { background: #f9d4d0; color: #9b1c12; }
.hgrid td.short { color: #b06d00; }
.hday { width: 100%; }
.hday td { padding: 6px 4px; }
.hday input { width: 70px; font-size: 16px; text-align: right; }
.hday tr.tot td { font-weight: 600; }
.choice { display: block; margin: 6px 0 2px; line-height: 1.4; }
.hnav { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .hnav b { flex: 1; text-align: center; }

/* template choice (Declarations) */
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button { flex: 1 1 240px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 14px; border-radius: 10px; }
.seg button span { font-size: 12px; color: var(--muted); font-weight: 400; }
.seg button.on { border-color: var(--accent); background: var(--accent-2); box-shadow: 0 0 0 1px var(--accent) inset; }
.pfbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; margin-bottom: 12px; border-radius: 8px; background: var(--accent-2); font-size: 13px; }

/* recording mode switch (My time) */
.modesw { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--panel, #fff); }
.modesw button { border: 0; background: transparent; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.modesw button.on { background: var(--accent); color: #fff; }
.hday td:last-child { white-space: nowrap; text-align: right; }

/* Yeia identity */
.yeia-word { display: block; height: 64px; width: auto; align-self: flex-start; margin-bottom: 14px; }
.yeia-tag { letter-spacing: .28em; text-transform: uppercase; font-size: 12px; font-weight: 700; color: var(--pink); margin-bottom: 18px; }
.login .art .lead { color: #fff; }
.login .art ul li::marker { color: var(--pink); }
.login .mobilebrand { display: none; }
@media (max-width: 900px) { .login .mobilebrand { display: block; margin-bottom: 18px; } .login .mobilebrand img { height: 40px; } .login .mobilebrand div { letter-spacing: .24em; font-size: 11px; font-weight: 700; color: var(--label); margin-top: 6px; } }
.brand { gap: 0; flex-direction: column; align-items: flex-start; }
.brand .bw { height: 26px; width: auto; }
.brand small { display: block; letter-spacing: .24em; text-transform: uppercase; font-size: 10px; font-weight: 700; color: var(--label); margin-top: 6px; }
.brand .bw.dark { display: none; }
@media (prefers-color-scheme: dark) { .brand .bw.light { display: none; } .brand .bw.dark { display: block; } }
.mobilebar .brandimg { height: 26px; border-radius: 6px; }

/* password rule checklist */
.pwcheck { list-style: none; padding: 0; margin: 6px 0 8px; font-size: 12px; color: var(--muted); }
.pwcheck li::before { content: "○ "; }
.pwcheck li.ok { color: var(--ok); } .pwcheck li.ok::before { content: "✓ "; }
