/* Contralio Task. The family layout of CLM, Board and HQ: navy top bar with the "C" mark, white sidebar,
   centred page. Sky + Lime (product definition section 8); font Inter.
   Logical properties (inline-start/end) everywhere, so Arabic (dir="rtl") mirrors the layout. */
:root {
  --navy: #0b1530;
  --navy-2: #14213d;
  --accent: #0369a1;        /* buttons, links, active items (white text passes contrast) */
  --accent-hover: #075985;
  --accent-bright: #38bdf8; /* highlights on navy */
  --accent-light: #bae6fd;
  --accent-tint: #f0f9ff;
  --accent-tint-2: #e0f2fe;
  /* Lime, the second accent: the brand word, the active marker, the logo dot, badges; always with navy text,
     never white text on lime or lime text on white (too little contrast). */
  --accent-2: #84cc16;
  --accent-2-light: #a3e635;
  --accent-2-tint: #ecfccb;
  --text: #1f2937;
  --text-2: #374151;
  --muted: #6b7280;
  --faint: #9ca3af;
  --line: #e5e7eb;
  --line-2: #f1f5f9;
  --bg: #f4f6f9;
  --card: #ffffff;
  --danger: #b91c1c;
  --ok: #15803d;
  --navbar: 60px;
  --sidebar: 220px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif; font-size: 14px; line-height: 1.55; color: var(--text); background: var(--bg); }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
h1 { font-size: 22px; font-weight: 700; margin: 0 0 4px; line-height: 1.3; }
h2 { font-size: 16px; font-weight: 600; margin: 0 0 12px; color: var(--text-2); }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- top bar */
.navbar { position: sticky; inset-block-start: 0; z-index: 50; height: var(--navbar); padding: 0 24px; display: flex; align-items: center; gap: 12px; background: var(--navy); color: #fff; }
.brand { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: .5px; text-decoration: none; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand span { color: var(--accent-light); }
.brand .brand-text { color: #fff; }
.brand-product { color: var(--accent-2); font-weight: 800; }
.brand-mark { width: 1.35em; height: 1.35em; vertical-align: middle; position: relative; top: -.08em; margin-inline-end: .4em; border-radius: .3em; }
.topbar-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }

.topbar-name { font-size: 13px; font-weight: 600; color: #fff; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-bright); color: var(--navy); font-size: 12px; font-weight: 800; flex-shrink: 0; }
.chevron { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.nav-toggle { display: none; background: none; border: 1px solid #ffffff33; border-radius: 8px; padding: 6px; cursor: pointer; line-height: 0; color: #fff; }
.nav-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* user and language menus (details elements) */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 999px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { background: #f1f5f9; }
.navbar .menu > summary, .on-dark > summary { color: #e2e8f0; border: 1px solid #ffffff26; font-size: 13px; font-weight: 500; }
.navbar .menu > summary:hover, .on-dark > summary:hover { background: #ffffff14; }
.menu-panel { position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 6px); min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px #0b153022; padding: 6px; z-index: 60; color: var(--text); }
.menu-panel a, .menu-panel button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 7px; background: none; color: var(--text); font: inherit; font-size: 14px; font-weight: 500; text-align: start; text-decoration: none; cursor: pointer; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--accent-tint); color: var(--text); }
.menu-panel form { margin: 0; }
.menu-head { padding: 6px 10px 8px; border-block-end: 1px solid var(--line); margin-block-end: 4px; font-size: 13px; }
.flag { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; }

/* ---------------------------------------------------------------- sidebar and page */
.app-shell { display: flex; align-items: flex-start; }
.sidebar { position: sticky; inset-block-start: var(--navbar); height: calc(100vh - var(--navbar)); width: var(--sidebar); flex-shrink: 0; background: #fff; border-inline-end: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.side-section { margin: 14px 12px 4px; font-size: 11px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .5px; }
.side-link { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500; background: none; border: none; text-align: start; font-family: inherit; cursor: pointer; }
.side-link svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.side-link:hover { background: var(--line-2); color: #111827; }
.side-link.active { background: var(--accent-tint); color: var(--accent); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent-2); }
[dir="rtl"] .side-link.active { box-shadow: inset -3px 0 0 var(--accent-2); }
.side-manual { margin-block-start: auto; }  /* the User Manual sits at the bottom, above the line (as CLM's) */
.side-logout { border-block-start: 1px solid var(--line-2); padding-block-start: 8px; margin-block-start: 8px; }
.side-logout .side-link { color: var(--muted); }
.side-logout .side-link:hover { background: #fef2f2; color: var(--danger); }
.side-version { padding: 6px 12px 2px; font-size: 11px; color: var(--faint); }

.main { flex: 1; min-width: 0; }
.page { max-width: 1100px; margin: 32px auto; padding: 0 24px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-block-end: 20px; }
.page-intro { color: var(--muted); font-size: 14px; margin: 2px 0 0; max-width: 680px; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 4px; }
.eyebrow a { color: inherit; }

/* ---------------------------------------------------------------- building blocks */
.card { background: var(--card); border-radius: 10px; padding: 24px 28px; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); margin-block-end: 24px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-block-end: 24px; }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; margin-block-end: 24px; }
.grid > .card, .grid-2 > .card, .grid-2 > div > .card:last-child { margin-block-end: 0; }
.stat { display: flex; flex-direction: column; gap: .2rem; }
.stat-label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.stat-value { font-size: 1.6rem; font-weight: 750; color: var(--navy); }
.stat-note { font-size: .8rem; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 6px; padding: 8px 18px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn.secondary { background: #fff; color: var(--accent); }
.btn.secondary:hover { background: var(--accent-tint); color: var(--accent-hover); }
.btn.danger { background: #fff; color: var(--danger); border-color: #fecaca; }
.btn.danger:hover { background: #fef2f2; }
.btn.small { padding: .35rem .7rem; font-size: .86rem; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }
.actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-block-start: 1rem; }
.actions form { margin: 0; }
.actions.no-margin { margin-block-start: 0; }
.narrow-card { max-width: 640px; }

.flash { padding: .7rem 1rem; border-radius: 8px; margin-block-end: 1rem; background: var(--accent-tint); border: 1px solid #bae6fd; }
.flash.success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.flash.error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.flash.warning { background: var(--accent-tint); border-color: #bae6fd; color: #075985; }
.banner { padding: 10px 24px; font-size: .9rem; background: var(--accent-tint-2); color: #075985; border-block-end: 1px solid #bae6fd; }
.banner.danger { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

.badge { display: inline-block; padding: .08rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 650; white-space: nowrap; background: #f1f5f9; color: #475569; }
.badge.accent { background: var(--accent-tint-2); color: #075985; }
.badge.ok { background: #dcfce7; color: #166534; }
.badge.off { background: #f1f5f9; color: #64748b; }
.badge.warn { background: #ffedd5; color: #9a3412; }
.badge.danger { background: #fee2e2; color: #991b1b; }
.badges { display: flex; flex-wrap: wrap; gap: .3rem; }

.table-wrap { overflow-x: auto; background: var(--card); border-radius: 10px; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 14px; border-block-end: 1px solid var(--line-2); text-align: start; vertical-align: middle; }
.table th { background: #f8fafc; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; padding-block: 10px; border-block-end-color: var(--line); }
.table tbody tr:last-child td { border-block-end: 0; }
.table tbody tr:hover { background: #fffdf7; }
.row-title { color: var(--text); text-decoration: none; font-weight: 650; }
.row-title:hover { color: var(--accent); text-decoration: underline; }
.section-title { margin: 1.75rem 0 .6rem; }
.matrix td { text-align: center; }
.matrix-check { display: inline-flex; padding: 4px; cursor: pointer; }
.matrix-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.matrix-info td { background: #f8fafc; }
.matrix td.matrix-rule { text-align: start; color: var(--muted); font-size: 13px; }
.matrix-later td { color: var(--faint); }
.matrix-foot { display: flex; gap: 10px; margin-block: 20px 8px; position: sticky; inset-block-end: 0; padding-block: 12px; background: linear-gradient(transparent, var(--bg) 30%); }
.role-card .card-head { margin-block-end: 4px; }
.ob-dialog input[type=text] { width: 100%; }
.ob-dialog-actions .spacer { flex: 1; }
.matrix td:first-child { text-align: start; }
.yes { color: var(--ok); font-weight: 700; }
.no { color: #cbd5e1; }
.cond { font-size: .8rem; color: var(--muted); }

.empty-state { padding: 2.5rem 1.5rem; border: 1px dashed #cbd5e1; border-radius: 12px; text-align: center; background: #fff; }
.empty-state h2 { margin: .7rem 0 .25rem; }
.empty-state p { color: var(--muted); max-width: 520px; margin: 0 auto 1rem; }
.empty-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent-tint-2); color: var(--accent); }
.empty-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.25rem; margin: 0; }
dl.facts dt { color: var(--muted); font-size: .88rem; }
dl.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.mono, code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; }

/* ---------------------------------------------------------------- forms */
.form-grid { display: grid; gap: .25rem 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.field { margin-block-end: .85rem; }
.field label, .field > .label { display: block; font-weight: 600; margin-block-end: .3rem; font-size: .92rem; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=file], input[type=url],
input[type=date], input[type=time], input[type=number], input[type=tel], select, textarea {
  width: 100%; padding: .6rem .75rem; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; color: var(--text); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent-bright); box-shadow: 0 0 0 3px #38bdf833; }
.helptext, .field .help { display: block; color: var(--muted); font-size: .84rem; margin-block-start: .25rem; }
.errorlist { color: var(--danger); margin: .25rem 0; padding-inline-start: 1rem; font-size: .88rem; }
.check { display: flex; align-items: flex-start; gap: .6rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px; margin-block-end: .5rem; background: #fff; }
.check input { margin-block-start: .2rem; width: 1rem; height: 1rem; accent-color: var(--accent); flex: none; }
.check strong { display: block; }
.check .help { margin: 0; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-block-end: 1rem; }
.filters select { width: auto; }
.filters input[type=search] { flex: 1 1 280px; width: auto; }

/* Vault home (as the family's): cards of settings, each a link and what it is for */
.vault-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.vault-grid > .card { margin-block-end: 0; }
.vault-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.vault-table td { padding: 10px 0; border-block-end: 1px solid var(--line-2); vertical-align: top; }
.vault-table tr:last-child td { border-block-end: 0; }
.vault-table td:first-child { width: 45%; padding-inline-end: 14px; font-weight: 600; }
.vault-table a { text-decoration: none; }
.vault-table a:hover { text-decoration: underline; }
@media (max-width: 900px) { .vault-grid { grid-template-columns: 1fr; gap: 14px; } }
.pager { display: flex; gap: 1rem; justify-content: center; align-items: center; margin-block-start: 1rem; }
.changes { margin: .3rem 0 0; padding: 0; list-style: none; font-size: .82rem; color: var(--muted); }

/* ---------------------------------------------------------------- sign-in pages
   Split screen as in CLM and Board (brand panel + form), in Task's sky. */
.auth-body { background: #f8fafc; min-height: 100vh; }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: 100vh; }

/* brand panel */
.auth-brand { position: relative; overflow: hidden; color: #e2e8f0;
  background: url('../img/auth-panel.svg') center / cover no-repeat, linear-gradient(145deg, #070e20 0%, var(--navy) 50%, var(--navy-2) 100%); }
.auth-brand-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; gap: 28px; padding: 44px 56px 32px; max-width: 760px; animation: auth-rise .6s ease-out both; }
.auth-logo { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: .3px; }
.auth-logo span { color: var(--accent-light); }
.auth-hero { margin-block-start: 20px; }
.auth-hero-title { font-size: 40px; line-height: 1.15; font-weight: 800; color: #fff; margin: 0 0 14px; letter-spacing: -.5px; }
.auth-hero p:not(.auth-hero-title) { font-size: 16px; line-height: 1.6; color: #cbd5e1; margin: 0; max-width: 460px; }
.auth-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.auth-features li { display: flex; gap: 12px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: #94a3b8; }
.auth-features strong { color: #f1f5f9; font-weight: 600; font-size: 13.5px; }
.auth-feature-icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(167, 139, 250, .14); border: 1px solid rgba(167, 139, 250, .3); }
.auth-feature-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--accent-light); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* product preview card */
.auth-preview { margin-block-start: 4px; max-width: 420px; padding: 18px 20px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 20px 40px rgba(2, 6, 23, .35); }
.auth-preview-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.auth-preview-title { color: #fff; font-weight: 700; font-size: 14px; }
.auth-preview-sub { color: #94a3b8; font-size: 12px; margin-block-start: 2px; }
.auth-preview-badge { font-size: 11px; font-weight: 700; color: var(--accent-2); background: rgba(132, 204, 22, .18); border: 1px solid rgba(132, 204, 22, .6); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.auth-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 16px 0 14px; }
.auth-steps span { position: relative; font-size: 11px; font-weight: 600; color: #64748b; padding-block-start: 10px; text-align: center; }
.auth-steps span::before { content: ''; position: absolute; inset-block-start: 0; inset-inline: 0; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.auth-steps span.done { color: var(--accent-light); }
.auth-steps span.done::before { background: var(--accent-bright); }
.auth-steps span.active { color: #fff; }
.auth-steps span.active::before { background: linear-gradient(90deg, var(--accent-light), var(--accent-bright)); animation: auth-pulse 1.8s ease-in-out infinite; }
.auth-approvers { display: flex; align-items: center; }
.auth-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; border: 2px solid var(--navy); margin-inline-end: -6px; }
.auth-avatar.ok { background: var(--accent); }
.auth-avatar.wait { background: #475569; }
.auth-approvers-text { margin-inline-start: 16px; font-size: 12px; color: #cbd5e1; }
.auth-brand-foot { margin-block-start: auto; font-size: 12px; color: #64748b; }

/* form side */
.auth-main { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px;
  background: url('../img/auth-form-bg.svg') center / cover no-repeat, #f8fafc; }
.auth-lang { position: absolute; inset-block-start: 20px; inset-inline-end: 24px; }
.auth-lang .menu > summary { background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--text-2); }
.auth-lang .menu > summary:hover { background: #f8fafc; }
.auth-card { width: 100%; max-width: 400px; background: #fff; color: var(--text); border: 1px solid #eef2f7; border-radius: 16px; padding: 36px 36px 30px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 16px 40px rgba(15, 23, 42, .08); animation: auth-rise .5s ease-out .05s both; }
.auth-logo-mobile { display: none; color: var(--navy); margin-block-end: 18px; }
.auth-logo-mobile span { color: var(--accent); }
.auth-logo-mobile .brand-product { color: var(--accent); }
.auth-card h1 { font-size: 24px; font-weight: 800; color: #0f172a; margin: 0 0 6px; letter-spacing: -.2px; }
.auth-card h1 + .muted, .auth-subtitle { font-size: 14px; color: #64748b; margin: 0 0 24px; line-height: 1.55; }
.auth-card .btn { width: 100%; height: 46px; margin-block-start: .5rem; border-radius: 10px; font-size: 15px; font-weight: 700; }
.auth-card .btn:not(.secondary):not(.danger), .auth-submit { border: none; color: #fff; background: linear-gradient(180deg, var(--accent), var(--accent-hover));
  box-shadow: 0 1px 2px rgba(15, 23, 42, .1), 0 8px 18px rgba(109, 40, 217, .25); transition: transform .08s, box-shadow .15s, filter .15s; }
.auth-card .btn:not(.secondary):not(.danger):hover, .auth-submit:hover { filter: brightness(1.08); color: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .1), 0 10px 22px rgba(109, 40, 217, .32); }
.auth-links { margin: 1rem 0 0; font-size: .9rem; }

.auth-label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin: 0 0 6px; }
.auth-label-row { display: flex; justify-content: space-between; align-items: baseline; margin-block-start: 16px; }
.auth-link { font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-field { position: relative; }
.auth-field > svg { position: absolute; inset-block-start: 50%; inset-inline-start: 14px; transform: translateY(-50%); pointer-events: none;
  width: 18px; height: 18px; fill: none; stroke: #94a3b8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.auth-field input { height: 46px; margin: 0; font-size: 15px; color: #0f172a; padding-inline: 42px 44px; border: 1px solid #dbe2ea; border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.auth-field input:hover { border-color: #c3ccd8; }
.auth-field input:focus { border-color: var(--accent-bright); box-shadow: 0 0 0 4px rgba(167, 139, 250, .18); }
.auth-field:focus-within > svg { stroke: var(--accent-bright); }
.auth-eye { position: absolute; inset-block-start: 50%; inset-inline-end: 8px; transform: translateY(-50%); background: none; border: none; padding: 6px; border-radius: 6px; cursor: pointer; line-height: 0; color: #94a3b8; }
.auth-eye:hover { background: #f1f5f9; color: #475569; }
.auth-eye svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.auth-capslock { font-size: 12px; font-weight: 600; color: var(--accent); margin-block-start: 6px; }
.auth-capslock::before { content: '\26A0\FE0E  '; }
.auth-gap { height: 22px; }
.auth-submit { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 46px; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.auth-submit:active { transform: translateY(1px); }
.auth-submit:disabled { cursor: wait; filter: none; opacity: .9; }
.auth-spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-block-start-color: #fff; animation: spin .7s linear infinite; }
.auth-submit.loading .auth-submit-text { visibility: hidden; }
.auth-submit.loading .auth-spinner { display: block; position: absolute; }
.auth-alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; margin-block-end: 18px; }
.auth-alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-block-start: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.auth-alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.auth-alert-info { background: var(--accent-tint); color: #075985; border: 1px solid #bae6fd; }
.auth-main-foot { margin: 22px 0 0; font-size: 12.5px; color: #94a3b8; }
.auth-main-foot a { color: #64748b; text-decoration: none; font-weight: 600; }
.auth-main-foot a:hover { color: var(--accent); }

@keyframes auth-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes auth-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
[dir="rtl"] .auth-hero-title, [dir="rtl"] .auth-card h1 { letter-spacing: 0; }
@media (max-width: 1100px) {
  .auth-brand-inner { padding: 36px 40px 28px; }
  .auth-hero-title { font-size: 34px; }
  .auth-features { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand-inner { padding: 26px 24px; gap: 14px; max-width: none; }
  .auth-hero { margin-block-start: 6px; }
  .auth-hero-title { font-size: 26px; margin-block-end: 6px; }
  .auth-hero p:not(.auth-hero-title) { font-size: 14px; }
  .auth-features, .auth-preview, .auth-brand-foot { display: none; }
  .auth-main { padding: 28px 16px 40px; justify-content: flex-start; }
  .auth-lang { position: static; align-self: flex-end; margin-block-end: 14px; }
  .auth-card { padding: 28px 22px 24px; }
}
.mfa-qr { display: grid; place-items: center; margin: 1rem auto; }
.mfa-qr svg { width: min(240px, 100%); height: auto; }
.mfa-manual { margin: .5rem 0 1rem; color: var(--muted); }
.mfa-manual summary { cursor: pointer; }
.mfa-key { display: block; margin-block-start: .5rem; padding: .6rem; border-radius: 6px; background: #f1f5f9; text-align: center; overflow-wrap: anywhere; }
.mfa-digits { direction: ltr; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; margin: .45rem 0 .75rem; }
.mfa-digits input { min-width: 0; height: 3.3rem; padding: .25rem; border: 1px solid #cbd5e1; border-radius: 9px; background: #f8fafc; color: var(--navy); text-align: center; font: 700 1.4rem/1 system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.mfa-digits input:focus { border-color: var(--accent-bright); background: #fff; box-shadow: 0 0 0 4px #38bdf833; outline: 0; }
.mfa-progress { display: flex; align-items: center; gap: .6rem; margin-block-start: .75rem; color: var(--muted); font-weight: 600; }
.mfa-spinner { width: 1.1rem; height: 1.1rem; border: 2px solid #bae6fd; border-block-start-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.mfa-result { text-align: center; padding: .5rem 0; }
.mfa-result-icon { display: grid; place-items: center; width: 4rem; height: 4rem; margin: 0 auto .75rem; border-radius: 50%; color: var(--ok); background: #f0fdf4; box-shadow: 0 0 0 8px #22c55e12; }
.mfa-result-icon svg { width: 2.3rem; height: 2.3rem; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mfa-codes { direction: ltr; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; padding: 1rem; margin: 1rem 0; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; list-style: none; }
.mfa-codes li { text-align: center; }
.mfa-codes code { font-size: 1rem; font-weight: 700; letter-spacing: .04em; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 900px) {
  .sidebar { position: fixed; inset-block: var(--navbar) 0; inset-inline-start: 0; height: auto; width: min(280px, 85vw); z-index: 40; transform: translateX(-100%); transition: transform .2s ease; }
  [dir="rtl"] .sidebar { transform: translateX(100%); }
  .nav-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax #0b153066; }
  .nav-toggle { display: inline-flex; }
  .navbar { padding: 0 14px; }
  .topbar-name, .lang-menu summary span { display: none; }
  .page { margin: 20px auto; padding: 0 14px; }
  .card { padding: 18px; }
}
/* Phones: the top bar (menu, brand, bell, language, person) is wider than a 390 px screen with the product name
   written out, so only the "C" mark stays; the family's other products get the same rule with their next release. */
@media (max-width: 520px) {
  .navbar .brand-text { display: none; }
  .navbar .brand-mark { margin-inline-end: 0; }
  .photo-card { flex-direction: column; }  /* the file input beside the picture ran off a 390 px screen */
  .photo-form input[type=file] { width: 100%; }
}
@media (max-width: 480px) {
  .mfa-digits { gap: .35rem; }
  .mfa-digits input { height: 3rem; font-size: 1.2rem; }
  dl.facts { grid-template-columns: 1fr; gap: .1rem; }
  dl.facts dd { margin-block-end: .5rem; }
}
/* ---------------------------------------------------------------- Dashboard (0.8.2, as CLM's home page) */
:root {
  /* status and chart colours of the home cards (the family's home page) */
  --st-draft: #94a3b8; --st-filling: #38bdf8; --st-submitted: #3b82f6; --st-pending: #38bdf8;
  --st-approved: #15803d; --st-suspended: #ea580c; --st-inactive: #64748b;
  --chart-series: #0369a1; --chart-series-soft: #bae6fd; --chart-grid: #eef1f5; --chart-tooltip: #0b1530;
  --chart-bad: #ef4444; --chart-warn: #f97316; --chart-warn-soft: #fed7aa;
  --risk-low: #22c55e; --risk-medium: #38bdf8; --risk-high: #ef4444; --risk-none: #cbd5e1;
}
.dash { display: flex; flex-direction: column; gap: 20px; }
.dash > * { min-width: 0; }
.dash-hello { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; padding: 22px 24px; border-radius: 16px; color: #fff; background: radial-gradient(circle at 85% -20%, rgba(56, 189, 248, .35), transparent 55%), linear-gradient(120deg, var(--navy), var(--navy-2)); }
.dash-hello-title { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.dash-date { color: rgba(255, 255, 255, .7); margin-block-start: 2px; }
.dash-tasks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-block-start: 12px; font-size: 13px; }
.dash-tasks-label { color: rgba(255, 255, 255, .75); margin-inline-end: 2px; }
.dash-task { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding-block: 0; padding-inline: 10px 4px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-weight: 500; text-decoration: none; }
.dash-task:hover { background: rgba(255, 255, 255, .18); text-decoration: none; }
.dash-task b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; background: var(--accent-bright); color: var(--navy); }
.dash-task-alert b { background: #f87171; color: #fff; }
.dash-hello-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dash-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 10px; font-weight: 600; font-size: 14px; border: 1px solid transparent; text-decoration: none; }
.dash-btn:hover { text-decoration: none; }
.dash-btn-primary { background: var(--accent-bright); color: var(--navy); }
.dash-btn-primary:hover { background: var(--accent-light); }
.dash-btn-accent { background: var(--accent-2); color: var(--navy); }
.dash-btn-accent:hover { background: var(--accent-2-light); color: var(--navy); }
.badge.accent-2 { background: var(--accent-2-tint); color: var(--navy); }
.dash-btn-ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); color: #fff; }
.dash-btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.dash-section { margin: 8px 0 -6px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }

.dash-card { background: var(--card); border-radius: 16px; padding: 20px; min-width: 0; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 8px rgba(16, 24, 40, .05); }
a.dash-card { color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
a.dash-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16, 24, 40, .09); text-decoration: none; }
.dash-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-block-end: 14px; }
.dash-card-head h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--text); }
.dash-meta { color: var(--muted); font-size: 13px; }
.dash-more { color: var(--accent); font-size: 13px; font-weight: 600; text-decoration: none; }
.dash-more:hover { text-decoration: underline; }
.dash-empty { color: var(--muted); margin: 4px 0 0; }
.dash-note { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.dash-ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dash-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.dash-kpi { display: flex; flex-direction: column; gap: 10px; }
.dash-kpi-top { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); font-size: 14px; }
.dash-kpi-arrow { margin-inline-start: auto; color: var(--faint); }
.dash-kpi-value { font-size: 34px; font-weight: 650; color: var(--navy); letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.dash-kpi-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; min-width: 0; }
.dash-ico { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.dash-ico-sm { width: 34px; height: 34px; flex-basis: 34px; }
.dash-ico-green { background: #dcfce7; color: #15803d; }
.dash-ico-amber { background: var(--accent-tint-2); color: #0369a1; }
.dash-ico-red { background: #fee2e2; color: #b91c1c; }
.dash-ico-violet { background: #e0f2fe; color: #0369a1; }
.dash-ico-blue { background: #dbeafe; color: #1d4ed8; }
.dash-ico-teal { background: #e0f2fe; color: #0369a1; }
.dash-chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.dash-chip-green { background: #dcfce7; color: #15803d; }
.dash-chip-amber { background: var(--accent-tint-2); color: #075985; }
.dash-chip-red { background: #fee2e2; color: #b91c1c; }
.dash-chip-blue { background: #dbeafe; color: #1d4ed8; }
.dash-chip-neutral { background: #f1f5f9; color: #475569; }

.dash-st-draft { --st: var(--st-draft); }
.dash-st-filling { --st: var(--st-filling); }
.dash-st-submitted { --st: var(--st-submitted); }
.dash-st-pending { --st: var(--st-pending); }
.dash-st-approved { --st: var(--st-approved); }
.dash-st-suspended { --st: var(--st-suspended); }
.dash-st-inactive { --st: var(--st-inactive); }

/* onboarding pipeline: rings joined by a line; suspended / inactive beside it */
.dash-pipe-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dash-pipe-scroll { overflow-x: auto; flex: 1 1 520px; min-width: 0; }
.dash-pipe { list-style: none; margin: 0; padding: 6px 0 2px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(96px, 1fr); min-width: 520px; }
.dash-step { position: relative; }
.dash-step::before { content: ""; position: absolute; top: 27px; inset-inline-start: -50%; width: 100%; height: 2px; background: var(--line); }
.dash-step:first-child::before { display: none; }
.dash-step a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 0 6px 4px; color: inherit; text-decoration: none; }
.dash-step a:hover .dash-ring { transform: scale(1.06); }
.dash-step a:hover .dash-step-label { color: var(--accent); }
.dash-ring { width: 56px; height: 56px; border-radius: 50%; border: 4px solid var(--st); background: #f8fafc; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; transition: transform .15s ease; }
.dash-step-end .dash-ring { width: 64px; height: 64px; margin-block-start: -4px; font-size: 21px; background: #f0fdf4; }
.dash-step-label { font-weight: 600; color: var(--text-2); font-size: 13px; }
.dash-pipe-side { list-style: none; margin: 0; padding-block: 0; padding-inline: 16px 0; border-inline-start: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.dash-pipe-side a { display: flex; align-items: center; gap: 8px; color: var(--text-2); text-decoration: none; }
.dash-pipe-side a:hover { color: var(--accent); }
.dash-pipe-side b { margin-inline-start: 4px; color: var(--navy); }
.dash-dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: var(--st, var(--faint)); display: inline-block; }
.dash-dot-red { background: var(--chart-bad); }
.dash-dot-amber { background: var(--st-pending); }
.dash-dot-slate { background: var(--st-inactive); }

.dash-row { display: grid; gap: 16px; align-items: start; }
.dash-row-wide { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.dash-row-half { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.dash-big-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-block-start: 6px; }
.dash-big { font-size: 28px; font-weight: 650; color: var(--navy); letter-spacing: -.02em; }

/* columns: new suppliers per month, documents expiring per week */
.dash-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; align-items: end; height: 190px; padding-block-start: 8px; border-block-end: 1px solid var(--line); background-image: linear-gradient(var(--chart-grid) 1px, transparent 1px); background-size: 100% 47px; background-position: 0 7px; }
.dash-bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.dash-bar { display: block; width: 100%; max-width: 34px; height: 4px; border-radius: 999px 999px 6px 6px; background: var(--chart-series-soft); }
.dash-bar-now { background: var(--chart-series); }
.dash-bar-warn { background: var(--chart-warn-soft); }
.dash-bar-warn.dash-bar-now { background: var(--chart-warn); }
.dash-bar-n { font-size: 11px; color: var(--muted); font-weight: 600; min-height: 1em; }
.dash-bar-tag { font-size: 12px; font-weight: 700; color: #fff; background: var(--chart-series); border-radius: 6px; padding: 2px 7px; }
.dash-bar-tag-warn { background: var(--chart-warn); }
.dash-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; margin-block-start: 8px; text-align: center; font-size: 12px; color: var(--muted); }
.dash-weeks span { white-space: nowrap; font-size: 11px; }
.dash-month-now { color: var(--navy); font-weight: 700; }

/* doughnuts */
.status-donut { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.status-donut-plot { position: relative; flex: 0 0 170px; width: 170px; }
.status-donut-small { flex-basis: 150px; width: 150px; }
.status-donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.status-donut-total { font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.status-donut-caption { font-size: 12px; color: var(--muted); margin-block-start: 4px; }
.status-legend { list-style: none; margin: 0; padding: 0; flex: 1 1 200px; min-width: 200px; }
.status-legend li { display: grid; grid-template-columns: 12px 1fr auto 44px; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 6px; font-size: 13px; color: var(--text); cursor: default; }
.status-legend li:hover { background: #f8fafc; }
.status-legend li + li { border-block-start: 1px solid var(--line-2); }
.status-legend-swatch { width: 12px; height: 12px; border-radius: 3px; background: var(--st); }
.status-legend-count { font-weight: 700; font-variant-numeric: tabular-nums; text-align: end; }
.status-legend-pct { color: var(--muted); font-size: 12px; text-align: end; font-variant-numeric: tabular-nums; }
.status-legend li.is-empty { color: var(--faint); }
.status-legend li.is-empty .status-legend-swatch { opacity: .45; }
.dash-compliance-text { flex: 1 1 200px; min-width: 200px; }
.dash-compliance-text p { margin: 0 0 10px; color: var(--text-2); }
.dash-mini { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; font-size: 13px; }
.dash-mini a { display: flex; align-items: center; gap: 8px; color: var(--text-2); text-decoration: none; padding: 4px 0; }
.dash-mini a:hover { color: var(--accent); }
.dash-mini b { margin-inline-start: auto; color: var(--navy); }

/* risk mix: one stacked bar */
.dash-stack { display: flex; height: 18px; border-radius: 999px; overflow: hidden; background: var(--line-2); gap: 2px; }
.dash-stack-part { display: block; flex: 0 1 0; min-width: 6px; }
.dash-stack-part:hover { filter: brightness(.92); }
.risk-part-low { background: var(--risk-low); }
.risk-part-medium { background: var(--risk-medium); }
.risk-part-high { background: var(--risk-high); }
.risk-part-none { background: var(--risk-none); }
.dash-stack-legend { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; }
.dash-stack-legend a { display: flex; align-items: center; gap: 7px; color: var(--text-2); text-decoration: none; }
.dash-stack-legend a:hover { color: var(--accent); }
.dash-stack-legend b { color: var(--navy); }

/* lists */
.dash-list { list-style: none; margin: 0; padding: 0; }
.dash-li { display: flex; align-items: center; gap: 12px; padding: 11px 6px; margin: 0 -6px; border-block-start: 1px solid var(--line-2); border-radius: 10px; color: inherit; text-decoration: none; }
.dash-list li:first-child .dash-li { border-block-start: 0; }
.dash-li:hover { background: #f8fafc; text-decoration: none; }
.dash-list-tight .dash-li { padding-block: 7px; }
.dash-datebox { width: 46px; height: 50px; flex: 0 0 46px; border-radius: 12px; background: var(--accent-tint); border: 1px solid #bae6fd; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dash-datebox b { font-size: 17px; color: var(--navy); line-height: 1.1; }
.dash-datebox span { font-size: 11px; color: #075985; text-transform: uppercase; letter-spacing: .04em; }
.dash-li-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.dash-li-title { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-li-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-when { font-size: 12px; color: var(--faint); white-space: nowrap; }

/* tiles, meters and horizontal bars */
.dash-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-block-end: 18px; }
.dash-tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block-end: 10px; }
.dash-tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dash-tile { display: block; background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; color: inherit; text-decoration: none; }
a.dash-tile:hover { border-color: var(--accent-bright); text-decoration: none; }
.dash-tile-l { font-size: 12px; color: var(--muted); font-weight: 500; }
.dash-tile-v { font-size: 22px; font-weight: 650; color: var(--navy); margin-block-start: 2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dash-tile-v small { font-size: 13px; color: var(--muted); font-weight: 500; }
.dash-tile-s { font-size: 12px; color: var(--muted); }
.dash-tile-alert { background: #fef2f2; border-color: #fecaca; }
.dash-tile-alert .dash-tile-l, .dash-tile-alert .dash-tile-v { color: #b91c1c; }
.dash-tile-warn { background: var(--accent-tint); border-color: #bae6fd; }
.dash-tile-warn .dash-tile-v { color: #0369a1; }
.dash-meter { display: block; height: 6px; margin-block-start: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.dash-meter-fill { display: block; height: 6px; width: 0; border-radius: 999px; background: var(--chart-series); }
.dash-sub-h { font-size: 13px; font-weight: 600; color: var(--muted); margin: 18px 0 10px; }
.dash-hbars { display: flex; flex-direction: column; gap: 10px; }
.dash-hb { display: grid; grid-template-columns: minmax(110px, 190px) minmax(0, 1fr) 40px; align-items: center; gap: 10px; font-size: 13px; }
.dash-hb-name { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-hb-track { display: block; height: 10px; border-radius: 999px; background: var(--line-2); }
.dash-hb-fill { display: block; height: 10px; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent-bright), var(--accent)); }
[dir="rtl"] .dash-hb-fill { background: linear-gradient(270deg, var(--accent-bright), var(--accent)); }
.dash-hb-v { font-weight: 600; color: var(--navy); text-align: end; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .dash-row-wide { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .dash-tiles, .dash-tiles-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-hello { padding: 18px; }
  .dash-hello-title { font-size: 22px; }
  .dash-bars, .dash-months { gap: 4px; }
  .dash-weeks span:nth-child(even) { visibility: hidden; }
  .dash-pipe-side { border: 0; padding: 0; flex-direction: row; flex-wrap: wrap; gap: 14px; }
}

/* Profile pictures (V-2, as CLM's) */
img.avatar-img { object-fit: cover; padding: 0; background: var(--line); }
.profile-avatar-lg, .avatar-lg { width: 72px; height: 72px; font-size: 24px; }
.person-cell { display: inline-flex; align-items: center; gap: 8px; }
.photo-card { display: flex; gap: 16px; align-items: flex-start; }
.photo-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-block-end: 6px; }
.photo-form input[type=file] { width: auto; max-width: 100%; }

/* Top-bar search, "+ New Supplier" and notification bell (V-1, as CLM's top bar) */
.navbar .topbar-actions { gap: 14px; }
.topbar-search { position: relative; display: flex; align-items: center; margin: 0; }
.topbar-search svg { position: absolute; inset-inline-start: 12px; width: 16px; height: 16px; fill: none; stroke: #94a3b8; stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.topbar-search input[type=search] { width: clamp(160px, 20vw, 280px); height: 38px; margin: 0; padding: 0; padding-inline: 34px 12px; border: 1px solid #ffffff2e; border-radius: 999px; background: #ffffff14; color: #fff; font-size: 14px; }
.topbar-search input[type=search]::placeholder { color: #94a3b8; opacity: 1; }
.topbar-search input[type=search]:focus { outline: none; border-color: #ffffff73; background: #ffffff24; }
.topbar-search-phone { display: none; }
.topbar-search-phone svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.navbar a.topbar-new { margin: 0; padding: 7px 14px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.navbar a.topbar-new:hover { background: var(--accent-hover); color: #fff; }
.bell-menu > summary.bell-btn { position: relative; padding: 6px 8px; }
.bell-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bell-count { position: absolute; inset-block-start: -4px; inset-inline-end: -4px; min-width: 18px; padding: 0 5px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.menu-panel.bell-panel { width: 360px; max-width: calc(100vw - 24px); padding: 0; }
.bell-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-block-end: 1px solid var(--line); }
.bell-head form { border: 0; margin: 0; padding: 0; }
.bell-head .link { width: auto; padding: 0; color: var(--accent); }
.bell-caughtup { padding: 10px 14px; color: var(--ok); font-size: 13px; }
.bell-list { max-height: 380px; overflow-y: auto; }
.bell-section { padding: 8px 14px 4px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.bell-empty { padding: 14px; }
.bell-item, .menu-panel a.bell-item { display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 14px; border-radius: 0; border-block-end: 1px solid var(--line-2); color: var(--text); text-decoration: none; }
.bell-item.unread { background: var(--accent-tint); }
.bell-item.unread .bell-item-text { font-weight: 700; }
.bell-item-text { font-size: 14px; }
.bell-item-detail { color: var(--muted); font-size: 12px; }
.bell-item-time { color: var(--faint); font-size: 12px; }
.menu-panel a.bell-all { justify-content: center; padding: 10px; border-radius: 0 0 10px 10px; color: var(--accent); font-weight: 600; }
.notifications-list { padding: 0; overflow: hidden; }
.notifications-list > p { padding: 18px; margin: 0; }
.notifications-list .pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
@media (max-width: 900px) {
  .topbar-search { display: none; }
  .navbar a.topbar-search-phone { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #ffffff26; border-radius: 999px; background: #ffffff14; color: #e2e8f0; }
  .navbar .topbar-actions { gap: 8px; }
  .topbar-new-label { display: none; }
  .navbar a.topbar-new { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 10px; font-size: 22px; line-height: 1; }
}

/* Printing (the recovery codes page): no top bar, sidebar or tools on paper. */
@media print {
  .navbar, .sidebar, .no-print, .banner, .flash { display: none !important; }
  body, .main { background: #fff; }
  .page { max-width: none; margin: 0; padding: 0; }
}

/* ---------------------------------------------------------------- Task 0.1: registration, verification, restore, settings */
.auth-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-field-plain input { padding-inline: 14px; }
.auth-help { margin: 6px 0 0; }
.auth-remember { display: flex; align-items: center; gap: 8px; margin-block-start: 14px; font-size: 13.5px; color: #475569; cursor: pointer; }
.auth-remember input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.auth-submit-secondary { background: #fff; color: var(--accent); border: 1px solid var(--accent-light); }
.auth-submit-secondary:hover { background: var(--accent-tint); }
.auth-inline-form { margin-block-start: 14px; }
.auth-inline-form .link { font-size: 13.5px; }
.auth-details { margin-block-start: 18px; }
.auth-details > summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 13.5px; }
.auth-details form { margin-block-start: 12px; }
.auth-restore { margin-block-end: 6px; }
.auth-field .errorlist, .auth-card .errorlist { list-style: none; margin: 4px 0 0; padding: 0; color: var(--danger); font-size: 13px; }
.card.narrow { max-width: 480px; }
.card.danger-zone { border-color: #fecaca; }
.dash-plain { margin: 0; padding-inline-start: 18px; color: var(--text-2); }
.dash-plain li { margin: 4px 0; }
.dash-btn-accent { background: var(--accent-2); color: var(--navy); }
.dash-btn-accent:hover { background: var(--accent-2-light); color: var(--navy); }
.plain-list li.danger { color: var(--danger); }
@media (max-width: 520px) {
  .auth-two { grid-template-columns: 1fr; }
}

/* Tabs (settings, notifications), tables, the sign-in divider and card titles that the pruned sections held. */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-block-end: 16px; border-block-end: 1px solid var(--line); }
.tabs a { padding: 8px 14px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; border-block-end: 2px solid transparent; margin-block-end: -1px; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--accent); border-block-end-color: var(--accent-2); }
.table.compact th, .table.compact td { padding: 8px 10px; }
.table.compact form { margin: 0; }
.dash-card-title { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; color: #94a3b8; font-size: 12.5px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }

/* ---------------------------------------------------------------- Tasks (0.2): rows, My Day, projects, tags */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.quick-add { display: flex; gap: 8px; margin-block-end: 12px; }
.quick-add input[type=text] { flex: 1 1 auto; min-width: 0; }
.quick-menu { position: relative; }
.menu-panel.quick-panel { width: 340px; max-width: calc(100vw - 24px); padding: 10px; }
.menu-panel.quick-panel .quick-add { margin: 0; }
.menu-panel.quick-panel button { width: auto; justify-content: center; background: var(--accent); color: #fff; padding: 8px 14px; }
.menu-panel.quick-panel button:hover { background: var(--accent-hover); color: #fff; }

.group-title { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 18px 0 6px; }
.task-list { list-style: none; margin: 0; padding: 0; }
.task-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 4px; border-block-end: 1px solid var(--line-2); background: #fff; }
.task-row:last-child { border-block-end: 0; }
.task-row[draggable=true] { cursor: grab; }
.task-row.dragging { opacity: .5; }
.task-row form { margin: 0; }
.task-check { width: 22px; height: 22px; flex: 0 0 22px; margin-block-start: 1px; border: 2px solid #94a3b8; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.task-check svg { width: 13px; height: 13px; fill: none; stroke: transparent; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.task-check:hover { border-color: var(--accent); }
.task-check:hover svg { stroke: var(--accent); }
.done .task-check { background: var(--accent-2); border-color: var(--accent-2); }
.done .task-check svg { stroke: var(--navy); }
.small-check { width: 18px; height: 18px; flex-basis: 18px; }
.task-main { flex: 1 1 auto; min-width: 0; }
.task-title { color: var(--text); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.task-title:hover { color: var(--accent); text-decoration: underline; }
.done .task-title, .subtask.done .subtask-title { color: var(--muted); text-decoration: line-through; }
.task-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 4px; font-size: 12.5px; }
.task-chip, .tag-chip, .status-chip, .prio { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; background: var(--line-2); color: var(--text-2); text-decoration: none; }
a.task-chip:hover, a.tag-chip:hover { background: var(--accent-tint-2); }
.task-chip.due-late { background: #fee2e2; color: #991b1b; }
.task-chip.due-today { background: #ffedd5; color: #9a3412; }
.status-chip { background: var(--accent-2-tint); color: #4d7c0f; font-weight: 600; }
.prio-1 { background: #f1f5f9; color: #64748b; }
.prio-3 { background: #ffedd5; color: #c2410c; font-weight: 600; }
.prio-4 { background: #fee2e2; color: #dc2626; font-weight: 700; }
.task-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; flex: 0 0 auto; }
.icon-btn { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 6px; background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; color: var(--text-2); }
.icon-btn:hover { background: var(--accent-tint); color: var(--accent); }
.icon-btn.danger:hover { background: #fef2f2; color: var(--danger); }
.icon-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.link.muted { color: var(--muted); }
.link.danger { color: var(--danger); }

.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; }
.dot.dot-lg { width: 14px; height: 14px; vertical-align: middle; }
.pc-sky { background: #0369a1; } .pc-lime { background: #84cc16; } .pc-navy { background: #0b1530; }
.pc-slate { background: #64748b; } .pc-orange { background: #ea580c; } .pc-red { background: #dc2626; }
.pc-pink { background: #db2777; } .pc-indigo { background: #4f46e5; }

progress.progress { appearance: none; width: 140px; height: 8px; border: 0; border-radius: 999px; background: var(--line); overflow: hidden; vertical-align: middle; }
progress.progress::-webkit-progress-bar { background: var(--line); border-radius: 999px; }
progress.progress::-webkit-progress-value { background: var(--accent-2); border-radius: 999px; }
progress.progress::-moz-progress-bar { background: var(--accent-2); border-radius: 999px; }
progress.progress-dark { background: rgba(255, 255, 255, .2); }
progress.progress-dark::-webkit-progress-bar { background: rgba(255, 255, 255, .2); }
progress.progress-wide { display: block; width: 100%; margin-block-end: 16px; }
.project-card progress.progress { width: 100%; margin: 10px 0 6px; }

.project-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-block-end: 20px; }
.project-card { display: block; color: var(--text); text-decoration: none; margin: 0; }
.project-card:hover { box-shadow: 0 4px 14px rgba(11, 21, 48, .1); }
.project-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.archived-projects { margin-block-end: 20px; }
.task-filters .more-filters { display: contents; }
.task-filters .more-filters summary { cursor: pointer; color: var(--accent); }

.subtask-list { list-style: none; margin: 0 0 12px; padding: 0; }
.subtask { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-block-end: 1px solid var(--line-2); }
.subtask form { margin: 0; }
.subtask-title { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.subtask-actions { display: flex; gap: 4px; }

.tag-edit-list { list-style: none; margin: 0; padding: 0; }
.tag-edit-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-block-end: 1px solid var(--line-2); }
.tag-edit { flex: 1 1 100%; }
.tag-edit summary { cursor: pointer; color: var(--accent); }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.inline-form input, .inline-form select { width: auto; }

@media (max-width: 600px) {
  .task-row { flex-wrap: wrap; }
  .task-actions { flex-basis: 100%; padding-inline-start: 32px; }
  .quick-add .btn { padding-inline: 12px; }
}

/* ---------------------------------------------------------------- Calendar, Board, Completed (0.3) */
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.cal-bar .tabs, .view-switch { margin-block-end: 12px; }
.cal-nav .btn { min-width: 40px; }
.cal { background: var(--card); border-radius: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); overflow: hidden; }
.card .cal { box-shadow: none; border-radius: 0; }
.cal-head, .cal-month .cal-grid, .cal-week .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-head div { padding: 8px 10px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; border-block-end: 1px solid var(--line); }
.cal-day { min-height: 110px; padding: 6px; border-block-end: 1px solid var(--line-2); border-inline-end: 1px solid var(--line-2); min-width: 0; }
.cal-week .cal-day { min-height: 320px; }
.cal-day.out { background: #fafbfc; }
.cal-day.out .cal-date { color: var(--faint); }
.cal-day.today .cal-date { background: var(--accent); color: #fff; }
.cal-day.drop { background: var(--accent-tint); outline: 2px dashed var(--accent-light); outline-offset: -2px; }
.cal-day-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-block-end: 4px; }
.cal-date { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; font-size: 13px; font-weight: 700; color: var(--text); text-decoration: none; }
a.cal-date:hover { background: var(--accent-tint-2); }
.cal-count { display: none; font-size: 12px; font-weight: 700; padding: 0 7px; border-radius: 999px; background: var(--accent-tint-2); color: var(--accent-hover); text-decoration: none; }
.cal-count.late { background: #fee2e2; color: #991b1b; }
.cal-entries { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.cal-chip { display: flex; align-items: center; gap: 5px; padding: 3px 6px; border-radius: 6px; font-size: 12.5px; line-height: 1.3; color: var(--text); background: var(--accent-tint); border-inline-start: 3px solid var(--accent); text-decoration: none; cursor: grab; min-width: 0; }
.cal-chip:hover { background: var(--accent-tint-2); }
.cal-chip.kind-plan { background: var(--accent-2-tint); border-inline-start-color: var(--accent-2); }
.cal-chip.late { background: #fee2e2; border-inline-start-color: #dc2626; color: #991b1b; }
.cal-chip.done { opacity: .55; }
.cal-chip.done .cal-title { text-decoration: line-through; }
.cal-chip.dragging { opacity: .4; }
.cal-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cal-time { font-weight: 700; flex: 0 0 auto; }
.cal-flag { width: 13px; height: 13px; flex: 0 0 13px; fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.cal-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #4d7c0f; }
.cal-more { font-size: 12px; color: var(--accent); }
.cal-day .cal-entries li.muted { padding: 8px 2px; }
.cal-grid > .cal-day:nth-child(7n) { border-inline-end: 0; }
.cal-day .cal-title { white-space: normal; }
.cal-month .cal-title { white-space: nowrap; }

.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.board-col { background: #eef2f6; border-radius: 12px; padding: 10px; min-height: 160px; }
.board-col.drop { background: var(--accent-tint-2); outline: 2px dashed var(--accent-light); }
.board-col-head { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 2px 4px 10px; }
.board-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.board-card { background: #fff; border-radius: 9px; padding: 10px 12px; box-shadow: 0 1px 2px rgba(11, 21, 48, .08); cursor: grab; }
.board-card.dragging { opacity: .4; }
.board-card.done .task-title { color: var(--muted); text-decoration: line-through; }
.board-moves { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-block-start: 6px; }
.board-moves form { margin: 0; }
.board-moves .link { font-size: 12px; color: var(--muted); }
.board-moves .link:hover { color: var(--accent); }
.board-empty { padding: 10px 4px; }

@media (max-width: 900px) {
  .board { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cal-month .cal-day { min-height: 56px; padding: 4px; }
  .cal-month .cal-entries { display: none; }
  .cal-month .cal-count { display: inline-flex; }
  .cal-month .cal-day-head { flex-direction: column; align-items: flex-start; }
  .cal-head div { padding: 6px 4px; font-size: 10.5px; text-align: center; }
  .cal-week .cal-grid { grid-template-columns: 1fr; }
  .cal-week .cal-day { min-height: 0; border-inline-end: 0; }
  .cal-week .cal-head { display: none; }
}

/* ---------------------------------------------------------------- Repeats (0.4) */
.repeat-icon { width: 13px; height: 13px; vertical-align: -2px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 13px; }
.repeat-card h2 .repeat-icon { width: 16px; height: 16px; stroke: var(--accent); }
/* 0.5: reminders (bell mark on rows, cards and chips; the Reminder card; the suppressed-address banner). */
.reminder-icon { width: 13px; height: 13px; vertical-align: -2px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 13px; }
.reminder-card h2 .reminder-icon { width: 16px; height: 16px; stroke: var(--accent); }
.pick-row { display: flex; flex-wrap: wrap; gap: 6px; margin-block-end: 10px; }
.reminder-row { display: flex; flex-wrap: wrap; gap: 10px; margin-block-end: 10px; }
.reminder-row label { flex: 1 1 140px; }
.reminder-fields { border: 0; padding: 0; margin: 12px 0 0; }
.reminder-fields legend { font-weight: 600; margin-block-end: 6px; }
.banner-form { display: inline; }
.banner-form .link { font-size: inherit; }
.notif-table td, .notif-table th { text-align: start; }
.notif-table .switch-cell { text-align: center; width: 90px; }
/* 0.6: sharing, comments, history. */
.shared-icon { width: 14px; height: 14px; vertical-align: -2px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 14px; }
.people-card h2 .shared-icon { width: 17px; height: 17px; stroke: var(--accent); }
.assignee-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 999px; background: var(--accent-tint-2); color: #075985; font-size: 10px; font-weight: 800; vertical-align: 1px; }
.side-badge { margin-inline-start: auto; min-width: 20px; padding: 0 6px; border-radius: 999px; background: #84cc16; color: #0b1530; font-size: 11px; font-weight: 800; text-align: center; }
.people-list { list-style: none; margin: 0 0 12px; padding: 0; }
.people-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-block-end: 1px solid var(--line-2); }
.people-list li:last-child { border-block-end: 0; }
.people-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.people-name .small { display: block; }
.danger-link { color: var(--danger); }
.talk-grid { margin-block-start: 20px; }
.comment { padding-block: 10px; border-block-end: 1px solid var(--line-2); }
.comment header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.comment-body { margin: 6px 0; overflow-wrap: anywhere; }
.comment-actions { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.comment-form { margin-block-start: 12px; }
.comment-form textarea, .comment-actions textarea { width: 100%; }
.history-list { list-style: none; margin: 0; padding: 0; }
.history-list li { padding: 6px 0; border-block-end: 1px solid var(--line-2); overflow-wrap: anywhere; }
.history-who { font-weight: 600; }
.invitation-list { list-style: none; margin: 0; padding: 0; }
.invitation-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-block-end: 1px solid var(--line-2); }
.narrow-card { max-width: 560px; }
/* 0.7: attachments, Insights, the offline page. */
.clip-icon { width: 13px; height: 13px; vertical-align: -2px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 13px; }
.attachments-card h2 .clip-icon { width: 16px; height: 16px; stroke: var(--accent); }
.file-list { list-style: none; margin: 0 0 12px; padding: 0; }
.file-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 8px 0; border-block-end: 1px solid var(--line-2); }
.file-name { font-weight: 600; overflow-wrap: anywhere; }
.file-list .muted { flex: 1 1 auto; }
.upload-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-block-end: 6px; }
.upload-form input[type=file] { flex: 1 1 200px; min-width: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-block-end: 20px; }
.stat { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.stat-value { font-size: 1.9rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat-value.stat-late { color: var(--danger); }
.stat-label { color: var(--muted); font-size: .86rem; }
.chart-wrap { width: 100%; overflow: hidden; }
.week-chart { width: 100%; height: auto; max-height: 260px; display: block; }
.chart-base { stroke: #cbd5e1; stroke-width: 1; }
.chart-bar { fill: #bae6fd; }
.chart-bar.current { fill: #0369a1; }
.chart-num { font-size: 11px; font-weight: 700; fill: #0b1530; }
.chart-label { font-size: 10px; fill: #64748b; }
.progress-list { list-style: none; margin: 0; padding: 0; }
.progress-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 2fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-block-end: 1px solid var(--line-2); }
.progress-list progress { width: 100%; accent-color: #0369a1; }
.offline-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #f0f9ff; padding: 16px; }
.offline-card { max-width: 420px; text-align: center; background: #fff; border-radius: 16px; padding: 32px 24px; box-shadow: 0 10px 30px rgba(11, 21, 48, .08); }
@media (max-width: 600px) { .progress-list li { grid-template-columns: 1fr; } }
/* 1.0: Help, terms. */
.help-layout { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: 20px; align-items: start; }
.help-toc { position: sticky; inset-block-start: 76px; }
.help-toc ol { margin: 0; padding-inline-start: 1.2rem; }
.help-toc li { margin-block: 6px; }
.help-section dl { margin: 0; }
.help-section dt { font-weight: 700; margin-block-start: 12px; }
.help-section dd { margin: 4px 0 0; color: var(--text-2); }
.auth-terms { align-items: flex-start; margin-block: 12px; }
.side-version a { color: inherit; }
@media (max-width: 800px) { .help-layout { grid-template-columns: 1fr; } .help-toc { position: static; } }
.cal-chip.ghost { width: 100%; border: 1px dashed var(--accent-light); border-inline-start-width: 3px; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; text-align: start; }
.cal-chip.ghost:hover { background: var(--accent-tint); color: var(--text); }
.cal-entries form { margin: 0; }
.task-skipped { flex: 0 0 auto; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--line-2); color: var(--muted); margin-block-start: 2px; }
fieldset.scope { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 12px 0 0; }
fieldset.scope legend { font-weight: 700; font-size: 14px; padding: 0 4px; }
fieldset.scope label { display: block; margin: 4px 0; font-size: 14px; }
.repeat-fields .field ul, .repeat-fields .field > div > div { display: inline-flex; }
.repeat-fields [id$="weekdays"] { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.repeat-fields [id$="weekdays"] label { font-weight: 500; }
.repeat-card details { margin-block: 8px; }
.repeat-card summary { cursor: pointer; color: var(--accent); }
