/* ComplyHub II — neumorphic design system (light + dark) */
:root {
  --bg: #eceef2;
  --bg-2: #f2f3f6;
  --sh-d: rgba(163, 171, 186, 0.55);
  --sh-l: rgba(255, 255, 255, 0.95);
  --text: #2a2f38;
  --muted: #6c7380;
  --faint: #9aa1ad;
  --line: rgba(120, 128, 145, 0.18);
  --accent: #e8772e;
  --accent-2: #f3a25c;
  --accent-soft: rgba(232, 119, 46, 0.13);
  --ok: #2f9e6f; --ok-soft: rgba(47, 158, 111, 0.14);
  --warn: #c98a12; --warn-soft: rgba(201, 138, 18, 0.15);
  --hi: #dd6b20; --hi-soft: rgba(221, 107, 32, 0.15);
  --crit: #d64545; --crit-soft: rgba(214, 69, 69, 0.14);
  --radius: 18px;
  --radius-s: 12px;
  --raise: 7px 7px 16px var(--sh-d), -7px -7px 16px var(--sh-l);
  --raise-s: 4px 4px 9px var(--sh-d), -4px -4px 9px var(--sh-l);
  --inset: inset 4px 4px 9px var(--sh-d), inset -4px -4px 9px var(--sh-l);
  --inset-s: inset 2px 2px 5px var(--sh-d), inset -2px -2px 5px var(--sh-l);
  --font: "Poppins", "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
[data-theme="dark"] {
  --bg: #22272f;
  --bg-2: #262c35;
  --sh-d: rgba(0, 0, 0, 0.5);
  --sh-l: rgba(255, 255, 255, 0.045);
  --text: #e2e7ee;
  --muted: #9aa6b8;
  --faint: #6f7b8e;
  --line: rgba(255, 255, 255, 0.07);
  --accent: #ff9149;
  --accent-2: #ffb57a;
  --accent-soft: rgba(255, 145, 73, 0.16);
  --ok: #4cc490; --warn: #e4ab3c; --hi: #f08a4b; --crit: #f06b6b;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; transition: background .25s, color .25s; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: 24px; } h2 { font-size: 18px; } h3 { font-size: 15px; } h4 { font-size: 13px; }
p { margin: 0 0 8px; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12px; } .tiny { font-size: 11px; }
.mono { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* ── Layout: side menu with collapsible ISO 37301 clause groups + slim top bar */
.app { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.side::-webkit-scrollbar { width: 6px; } .side::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.logo { display: flex; align-items: center; gap: 12px; padding: 2px 8px 22px; cursor: pointer; }
.logo-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; box-shadow: var(--raise-s); color: var(--accent); font-weight: 800; font-size: 16px; flex: none; }
.logo-name { font-weight: 800; letter-spacing: .02em; font-size: 15px; line-height: 1.1; }
.logo-name span { color: var(--accent); }
.logo-sub { font-size: 10.5px; color: var(--muted); font-weight: 500; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-top { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; color: var(--text); font-weight: 560; font-size: 13.5px; }
.side-top:hover { color: var(--accent); }
.side-top.active { color: var(--accent); box-shadow: var(--inset-s); }
.side-head { font: inherit; width: 100%; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 0; background: transparent; border-radius: 12px; color: var(--text); font-weight: 560; font-size: 13.5px; cursor: pointer; text-align: left; }
.side-head:hover { color: var(--accent); }
.side-group.pinned > .side-head { color: var(--accent); font-weight: 650; }
.side-group.pinned > .side-head .tiny { display: none; }
.side-group.pinned > .side-head .grow { min-width: 0; }
.side-badge { flex-shrink: 0; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--crit); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.side-group.has-active > .side-head { color: var(--accent); }
.side-head .chev { display: grid; place-items: center; color: var(--faint); transition: transform .2s; }
.side-group.open > .side-head .chev { transform: rotate(90deg); }
.side-items { display: none; flex-direction: column; gap: 2px; margin: 2px 0 8px 22px; padding-left: 12px; border-left: 2px solid var(--line); }
.side-group.open > .side-items { display: flex; }
.side-items a { padding: 7px 10px; border-radius: 10px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.side-items a:hover { color: var(--accent); }
.side-items a.active { color: var(--accent); box-shadow: var(--inset-s); font-weight: 600; }
.side-items a.planned { color: var(--faint); }
.side-items a.planned::after { content: " ·"; }
.side-sep { height: 1px; background: var(--line); margin: 10px 8px; }
/* ch-update-146: SetupHub section titles with a separator line */
.side-sec { font-size: 11px; font-weight: 650; color: var(--muted); padding: 12px 10px 4px; margin-top: 6px; border-top: 1px solid var(--line); }
.side-sec.first { border-top: 0; margin-top: 0; padding-top: 4px; }
.side-foot { margin-top: auto; padding: 16px 12px 0; font-size: 10.5px; color: var(--faint); line-height: 1.6; }
.main { padding: 20px 34px 44px; min-width: 0; max-width: 1360px; }
.topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.crumb { font-size: 13px; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 6px 12px 6px 6px; border-radius: 16px; box-shadow: var(--raise-s); cursor: pointer; }
.user-chip .avatar { background: var(--accent); color: #fff; box-shadow: none; }
.icon-btn { position: relative; }
.icon-btn .badge { position: absolute; top: -5px; right: -5px; }
.page-head { margin-bottom: 26px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 12px; box-shadow: var(--raise-s); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.page-title { font-size: 34px; line-height: 1.15; margin-top: 18px; letter-spacing: -0.02em; }
.page-title .l1 { font-weight: 300; display: block; }
.page-title .l2 { font-weight: 750; display: block; }
.page-desc { color: var(--muted); max-width: 760px; margin-top: 12px; font-size: 14px; }
.audit-strip { margin-top: 30px; }
.hash { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: var(--faint); }
.foot { text-align: center; font-size: 11px; color: var(--faint); margin-top: 26px; letter-spacing: .02em; }
@media (max-width: 1000px) { .app { grid-template-columns: 1fr; } .side { position: static; height: auto; } .main { padding: 16px; } .topbar { flex-wrap: wrap; } .page-title { font-size: 26px; } }

/* legacy (sidebar) classes kept for small components */
.nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.brand-mark { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; box-shadow: var(--raise-s); color: var(--accent); }

/* ── Surfaces */
.card { background: var(--bg); border-radius: var(--radius); box-shadow: var(--raise); padding: 20px; min-width: 0; }
.card.flat { box-shadow: var(--inset); }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-h h2, .card-h h3 { flex: 1; }
.well { border-radius: var(--radius-s); box-shadow: var(--inset); padding: 14px; }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.mt { margin-top: 22px; } .mt-s { margin-top: 12px; } .mb { margin-bottom: 18px; }
@media (max-width: 1200px) { .g5 { grid-template-columns: repeat(3, 1fr); } .g-2-1, .g-1-2 { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .app { grid-template-columns: 1fr; } .sidebar { position: static; height: auto; } .g2, .g3, .g5 { grid-template-columns: 1fr; } .main { padding: 18px; } }

/* ── Buttons & controls */
.btn { font: inherit; font-weight: 580; font-size: 13px; color: var(--text); background: var(--bg); border: 0; border-radius: 12px; padding: 9px 16px; box-shadow: var(--raise-s); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: box-shadow .15s, transform .1s, color .15s; white-space: nowrap; }
.btn:hover { color: var(--accent); }
.btn:active, .btn.pressed { box-shadow: var(--inset-s); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { color: #fff; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--accent-2))); box-shadow: 5px 5px 12px var(--sh-d), -4px -4px 10px var(--sh-l); }
.btn.primary:hover { color: #fff; filter: brightness(1.06); }
.btn.ok { color: var(--ok); } .btn.danger { color: var(--crit); }
.btn.accent { color: var(--accent); } /* orange-text raised button (secondary action that must look clickable) */
.btn.sm { padding: 6px 11px; font-size: 12px; border-radius: 10px; }
.btn.icon { padding: 9px; border-radius: 12px; }
.btn.ghost { box-shadow: none; background: transparent; }
.btn.ghost:hover { box-shadow: var(--raise-s); }

.seg { display: inline-flex; padding: 4px; border-radius: 13px; box-shadow: var(--inset-s); gap: 2px; }
.seg button { white-space: nowrap; font: inherit; font-size: 12px; font-weight: 600; border: 0; background: transparent; color: var(--muted); padding: 6px 11px; border-radius: 10px; cursor: pointer; }
.seg button.on { background: var(--bg); color: var(--accent); box-shadow: var(--raise-s); }
/* scope decisions: in scope = green, out of scope = red (always), selected one raised */
.seg button[data-v="in"] { color: var(--ok); } .seg button[data-v="out"] { color: var(--crit); }
.seg button[data-v="in"]:not(.on), .seg button[data-v="out"]:not(.on) { opacity: .6; }
.seg button.on[data-v="in"] { color: var(--ok); opacity: 1; } .seg button.on[data-v="out"] { color: var(--crit); opacity: 1; } .seg button.on[data-v="review"] { color: var(--warn); }

input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  font: inherit; color: var(--text); background: var(--bg); border: 0; border-radius: 12px; padding: 10px 13px; box-shadow: var(--inset-s); outline: none; width: 100%; transition: box-shadow .15s; }
input:focus, select:focus, textarea:focus { box-shadow: var(--inset-s), 0 0 0 2px var(--accent-soft); }
textarea { resize: vertical; min-height: 90px; line-height: 1.55; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
select.sm, input.sm { padding: 6px 10px; font-size: 12px; border-radius: 10px; }
select.sm { padding-right: 26px; background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%; }
label.field { display: block; }
label.field > span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
/* cz-17: reporter form question headings one step larger and bold */
.qform .field > span:first-child, .qform .q-head { display: block; font-size: 13.5px; font-weight: 700; }

.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice label { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 12px; box-shadow: var(--raise-s); font-size: 13px; font-weight: 520; color: var(--muted); transition: all .15s; }
.choice span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; box-shadow: var(--inset-s); flex: none; }
.choice input:checked + span { box-shadow: var(--inset-s); color: var(--accent); }
.choice input:checked + span::before { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.toggle { position: relative; width: 44px; height: 24px; border-radius: 20px; box-shadow: var(--inset-s); cursor: pointer; flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); box-shadow: var(--raise-s); transition: all .2s; }
.toggle.on::after { left: 23px; background: var(--accent); }

/* ── Chips, badges */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); } .chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.hi { background: var(--hi-soft); color: var(--hi); } .chip.crit { background: var(--crit-soft); color: var(--crit); }
.chip.gray { background: var(--line); color: var(--muted); }
.chip.out { box-shadow: var(--raise-s); background: transparent; color: var(--muted); }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; background: var(--crit); color: #fff; }
.badge.soft { background: var(--accent-soft); color: var(--accent); }
.demo-tag { font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 4px 9px; border-radius: 8px; color: var(--warn); box-shadow: var(--inset-s); }
.score-pill { font-weight: 750; font-size: 12px; min-width: 34px; text-align: center; padding: 3px 8px; border-radius: 9px; }
.r-low { background: var(--ok-soft); color: var(--ok); } .r-med { background: var(--warn-soft); color: var(--warn); }
.r-hi { background: var(--hi-soft); color: var(--hi); } .r-crit { background: var(--crit-soft); color: var(--crit); }

/* ── KPI */
.kpi { display: flex; flex-direction: column; gap: 6px; }
.kpi .k-label { font-size: 12px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.kpi .k-val { font-size: 28px; font-weight: 750; letter-spacing: -0.03em; line-height: 1.1; }
.kpi .k-sub { font-size: 12px; color: var(--muted); }
.k-icon { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; box-shadow: var(--inset-s); color: var(--accent); }
.ring { --p: 0; --c: var(--accent); width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), transparent 0); box-shadow: var(--raise-s); position: relative; flex: none; }
.ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--bg); box-shadow: var(--inset-s); }
.ring b { position: relative; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }

.bar { height: 8px; border-radius: 6px; box-shadow: var(--inset-s); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ── Heatmap */
.heat { display: grid; grid-template-columns: 22px repeat(5, 1fr); gap: 7px; align-items: center; }
.heat .cell { aspect-ratio: 1.6; border-radius: 10px; display: grid; place-items: center; font-weight: 750; font-size: 14px; box-shadow: var(--inset-s); color: var(--faint); }
.heat .cell.has { box-shadow: var(--raise-s); }
.heat .ax { font-size: 10.5px; color: var(--faint); text-align: center; }

/* ── Lists & tables */
.list > .item { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.list > .item:last-child { border-bottom: 0; }
.item .grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; }
table.t th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 650; padding: 8px 10px; }
table.t td { padding: 11px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--accent-soft); }
table.t tr.click:hover td:first-child { border-radius: 10px 0 0 10px; } table.t tr.click:hover td:last-child { border-radius: 0 10px 10px 0; }

.reg-group { margin-bottom: 18px; }
.reg-head { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; box-shadow: var(--raise-s); margin-bottom: 8px; }
.jur { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; width: 38px; height: 26px; border-radius: 8px; display: grid; place-items: center; box-shadow: var(--inset-s); color: var(--accent); flex: none; }
.jur.TR { color: var(--crit); } .jur.US { color: #3b6fd8; } .jur.UK { color: #7a4fd1; } .jur.EU { color: #1e9aa8; } .jur.DE { color: #555; } .jur.INTL, .jur.GRP { color: var(--warn); } .jur.CTR { color: var(--accent); font-size: 9.5px; }
.reasons { margin: 6px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.reasons li::before { content: "↳ "; color: var(--faint); }

/* ── Stepper (profiler) */
.steps { display: flex; gap: 10px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 13px; box-shadow: var(--raise-s); cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--muted); transition: all .15s; }
.step .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; box-shadow: var(--inset-s); }
.step.on { box-shadow: var(--inset-s); color: var(--accent); }
.step.done .n { background: var(--ok); color: #fff; box-shadow: none; }
.q { padding: 16px 0; border-bottom: 1px solid var(--line); }
.q:last-child { border-bottom: 0; }
.q-label { font-weight: 620; margin-bottom: 4px; }
.q-label .req { color: var(--crit); margin-left: 3px; }
.q-help { font-size: 12px; color: var(--muted); margin-bottom: 10px; display: flex; gap: 6px; }

/* ── Onboarding route */
.route { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.route .stop { padding: 18px; border-radius: 16px; box-shadow: var(--raise-s); }
.route .stop.cur { box-shadow: var(--inset-s); }
.route .stop .num { font-size: 11px; font-weight: 800; color: var(--accent); letter-spacing: .08em; }

/* ── Kanban */
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.col { border-radius: var(--radius); box-shadow: var(--inset); padding: 14px; min-height: 240px; }
.col h3 { display: flex; align-items: center; gap: 8px; margin: 2px 4px 14px; font-size: 13px; }
.tcard { background: var(--bg); border-radius: 14px; box-shadow: var(--raise-s); padding: 13px 14px; margin-bottom: 12px; cursor: pointer; transition: transform .12s; }
.tcard:hover { transform: translateY(-1px); }
.tcard .t-title { font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.prio { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.prio.high { background: var(--crit); } .prio.medium { background: var(--warn); } .prio.low { background: var(--ok); }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 750; box-shadow: var(--raise-s); color: var(--accent); flex: none; }
.avatar.lg { width: 44px; height: 44px; font-size: 14px; }
.overdue { color: var(--crit); font-weight: 600; }
@media (max-width: 1000px) { .kanban { grid-template-columns: 1fr; } }

/* ── Chat */
.chat { display: flex; flex-direction: column; height: calc(100vh - 150px); min-height: 480px; }
.chat-log { flex: 1; overflow-y: auto; padding: 8px 6px 18px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 78%; padding: 13px 16px; border-radius: 16px; line-height: 1.6; }
.msg.user { align-self: flex-end; box-shadow: var(--inset-s); border-bottom-right-radius: 4px; }
.msg.ai { align-self: flex-start; box-shadow: var(--raise-s); border-bottom-left-radius: 4px; }
.msg.ai .who { font-size: 11px; font-weight: 700; color: var(--accent); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.msg p { margin: 0 0 6px; } .msg ul, .msg ol { margin: 4px 0 6px; padding-left: 20px; }
.chat-in { display: flex; gap: 12px; padding-top: 12px; }
.chat-in textarea { min-height: 50px; height: 50px; }
.suggest { display: flex; flex-wrap: wrap; gap: 10px; }
.typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); margin-right: 4px; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }

/* ── Drawer, modal, toast */
.scrim { position: fixed; inset: 0; background: rgba(20, 26, 36, 0.28); backdrop-filter: blur(2px); z-index: 40; animation: fade .15s; }
.drawer { position: fixed; top: 0; right: 0; height: 100vh; width: min(560px, 96vw); background: var(--bg); box-shadow: -10px 0 30px var(--sh-d); z-index: 41; padding: 24px 26px; overflow-y: auto; animation: slide .2s ease-out; }
.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(560px, 94vw); max-height: 90vh; overflow-y: auto; background: var(--bg); border-radius: 22px; box-shadow: 12px 12px 34px var(--sh-d), -8px -8px 24px var(--sh-l); z-index: 41; padding: 24px 26px; animation: fade .15s; }
.modal.wide { width: min(820px, 94vw); }
@keyframes fade { from { opacity: 0; } } @keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.toasts { position: fixed; bottom: 22px; right: 22px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--bg); padding: 12px 16px; border-radius: 14px; box-shadow: var(--raise); font-weight: 560; font-size: 13px; display: flex; gap: 10px; align-items: center; animation: fade .2s; }
.toast.err { color: var(--crit); }

/* ── Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 30px; }
.login .panel { width: min(880px, 100%); }
.user-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.user-card { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; box-shadow: var(--raise-s); cursor: pointer; transition: all .15s; }
.user-card:hover { box-shadow: var(--inset-s); }

.ai-box { border-radius: 16px; padding: 16px 18px; box-shadow: var(--inset-s); position: relative; }
.ai-box .ai-h { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.flag { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; padding: 8px 0; }
.flag svg { color: var(--warn); flex: none; margin-top: 2px; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .big { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin: 0 auto 14px; box-shadow: var(--raise-s); color: var(--accent); }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--accent-soft); border-top-color: var(--accent); animation: rot .8s linear infinite; display: inline-block; }
@keyframes rot { to { transform: rotate(360deg); } }
.doc { white-space: pre-wrap; line-height: 1.7; font-size: 13.5px; }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tabs button { font: inherit; font-weight: 600; font-size: 13px; border: 0; background: var(--bg); color: var(--muted); padding: 9px 16px; border-radius: 12px; box-shadow: var(--raise-s); cursor: pointer; }
.tabs button.on { box-shadow: var(--inset-s); color: var(--accent); }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.s { width: 15px; height: 15px; } svg.i.l { width: 26px; height: 26px; }

@media print {
  .sidebar, .topbar, .btn, .no-print { display: none !important; }
  .app { display: block; } .card { box-shadow: none; } body { background: #fff; color: #000; }
}

/* ── applicability classes */
.app-cls { font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 3px 8px; border-radius: 7px; text-transform: uppercase; }
.app-cls.direct { color: var(--accent); background: var(--accent-soft); }
.app-cls.indirect { color: #3b6fd8; background: rgba(59, 111, 216, .12); }
.app-cls.threshold { color: var(--warn); background: var(--warn-soft); }
.app-cls.watch { color: var(--muted); background: var(--line); }
.stat { text-align: center; padding: 22px 12px; }
.stat b { display: block; font-size: 34px; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; line-height: 1.1; }
.stat span { font-size: 12px; color: var(--muted); }
.area-chip { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 13px; box-shadow: var(--raise-s); cursor: pointer; font-size: 12.5px; }
.area-chip .num { font-size: 11px; font-weight: 800; color: var(--faint); width: 20px; }
.area-chip.out { box-shadow: var(--inset-s); color: var(--faint); }
.area-chip .st { margin-left: auto; font-size: 10px; font-weight: 800; letter-spacing: .06em; color: var(--ok); }
.area-chip.out .st { color: var(--crit); }
.entity { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; box-shadow: var(--raise-s); font-size: 13px; font-weight: 520; margin: 0 10px 10px 0; }
.entity::before { content: "⬢"; color: var(--accent); }
.attn { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px; box-shadow: var(--raise-s); margin-bottom: 12px; color: inherit; }
.attn:hover { box-shadow: var(--inset-s); }
.attn .ic { width: 32px; height: 32px; border-radius: 10px; box-shadow: var(--inset-s); display: grid; place-items: center; flex: none; }
.attn.crit .ic { color: var(--crit); } .attn.hi .ic { color: var(--hi); } .attn.warn .ic { color: var(--warn); }
.clause-row { display: grid; grid-template-columns: 170px 1fr 64px; gap: 12px; align-items: center; margin: 11px 0; font-size: 12.5px; }
.clause-row .bar > i.c-crit { background: var(--crit); } .clause-row .bar > i.c-warn { background: var(--warn); } .clause-row .bar > i.c-ok { background: var(--ok); }
.pulse { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.pulse .p { padding: 13px 14px; border-radius: 14px; box-shadow: var(--raise-s); }
.pulse .p .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.planned-hero { padding: 30px; }
.ai-fab { position: fixed; right: 26px; bottom: 26px; z-index: 30; }
.drawer.chat-drawer { width: min(620px, 96vw); display: flex; flex-direction: column; }
.drawer.chat-drawer .chat { height: calc(100vh - 110px); box-shadow: none; padding: 0; }

.drop { border-radius: 16px; box-shadow: var(--inset); padding: 26px; text-align: center; cursor: pointer; transition: all .15s; }
.drop.over { box-shadow: var(--inset), 0 0 0 2px var(--accent); }
.drop input { display: none; }
.quote { font-style: italic; color: var(--muted); font-size: 12px; border-left: 3px solid var(--accent-soft); padding-left: 10px; margin-top: 4px; }

/* KPI board */
.kline { display: flex; align-items: center; gap: 10px; padding: 7px 8px; margin: 0 -8px; border-radius: 10px; font-size: 12.5px; cursor: pointer; border-bottom: 1px solid var(--line); transition: background .12s, box-shadow .12s; }
.kline:hover { background: var(--accent-soft); box-shadow: var(--inset-s); }
.kline .chev { color: var(--faint); display: grid; place-items: center; opacity: 0; transition: opacity .12s; }
.kline:hover .chev { opacity: 1; color: var(--accent); }
.kpi-mod { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.kpi-mod svg { width: 12px; height: 12px; }

.md-table { overflow-x: auto; margin: 8px 0 10px; }
.md-table table.t { font-size: 12.5px; }
.md-table th, .md-table td { padding: 7px 9px; vertical-align: top; }
.msg-tools { display: flex; justify-content: flex-end; margin-top: 8px; }
.src-list { display: flex; flex-wrap: wrap; gap: 6px; }
.src-list .btn.src { font-size: 12px; text-align: left; white-space: normal; max-width: 100%; }

/* page guide */
.guide-wrap { margin-top: 14px; }
.guide { padding: 16px 18px; border-left: 4px solid var(--accent); }
.guide-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; }
.guide-grid ul { margin: 6px 0 0 18px; padding: 0; font-size: 13px; line-height: 1.55; }
.guide-grid li { margin-bottom: 4px; }
.guide-grid p { margin-top: 6px; line-height: 1.55; }
@media (max-width: 900px) { .guide-grid { grid-template-columns: 1fr; } }
.guide-open { margin-top: 2px; }
.gd-page h3 { margin-top: 4px; }
.gd-step { padding: 14px 16px; }

/* landing: four hubs */
.landing-head { margin: 28px 0 22px; }
.hub-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hub-grid { grid-template-columns: 1fr; } }
.card.hub { display: flex; flex-direction: column; gap: 10px; color: inherit; min-height: 230px; padding: 22px 20px; transition: transform .15s ease, box-shadow .15s ease; }
.card.hub:hover { transform: translateY(-3px); }
.card.hub h3 { font-size: 19px; letter-spacing: -.01em; }
.card.hub p { flex: 1; line-height: 1.5; }
.hub-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: var(--accent); }
.login .kicker.mt { display: inline-flex; margin-top: 14px; }
.login .user-grid { grid-template-columns: 1fr 1fr; }
.login .user-grid .user-card { padding: 10px 12px; }
.field.invalid > span { color: var(--crit); }
.field.invalid input, .field.invalid select, .field.invalid textarea, .field.invalid .well { box-shadow: 0 0 0 2px var(--crit) inset; }
a.clause-row { cursor: pointer; border-radius: 10px; }
a.clause-row:hover { background: rgba(232,119,46,.06); }
/* EmployeeHub */
.sc-ring { --v: 0; width: 112px; height: 112px; border-radius: 50%; flex: none; display: grid; place-items: center; align-content: center;
  background: radial-gradient(closest-side, var(--bg) 78%, transparent 79% 100%), conic-gradient(var(--accent) calc(var(--v) * 1%), rgba(127,127,127,.15) 0); }
.sc-ring b { font-size: 30px; line-height: 1; }
.sc-mini { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; border-bottom: 1px dashed rgba(127,127,127,.2); padding-bottom: 6px; }
.attn.info .ic { color: var(--accent); }
.mt-card { cursor: pointer; transition: transform .15s ease; }
.mt-card:hover { transform: translateY(-2px); }
.mt-card.late { border-left: 4px solid var(--crit); }
.mt-content p { margin: 0 0 8px; line-height: 1.55; }
.mt-content ul { margin: 6px 0 0 18px; padding: 0; line-height: 1.55; }
.mt-content li { margin-bottom: 5px; }
.item.nt.unread { background: rgba(232,119,46,.06); }
.item.nt .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.ppl { width: 100%; font-size: 12.5px; border-collapse: collapse; }
.ppl td { padding: 6px 4px; border-bottom: 1px solid rgba(127,127,127,.15); }
.mt-num { font-size: 32px; font-weight: 700; margin-top: 6px; line-height: 1; }
/* communication calendar */
.cal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1200px) { .cal-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .cal-grid { grid-template-columns: 1fr 1fr; } }
.cal-month { padding: 14px; min-height: 150px; }
.cal-month.now { box-shadow: var(--raise-s), 0 0 0 2px var(--accent) inset; }
.cal-item { display: flex; gap: 8px; align-items: flex-start; padding: 7px 9px; border-radius: 10px; color: inherit; background: rgba(127,127,127,.07); border-left: 3px solid var(--warn); }
.cal-item.sent { border-left-color: var(--ok); }
.cal-item.late { border-left-color: var(--crit); }
.cal-item .grow { display: flex; flex-direction: column; min-width: 0; }
.cal-item:hover { background: rgba(232,119,46,.09); }
/* tests */
.qz-q { padding: 12px; margin-bottom: 10px; }
.qz-q textarea { width: 100%; margin: 6px 0; }
.qz-opt { gap: 8px; margin: 4px 0; } .qz-opt input[type=text] { flex: 1; }
.qz-take { padding: 12px 14px; }
.qz-choice { gap: 8px; align-items: flex-start; cursor: pointer; padding: 4px 2px; }
/* awareness heat map */
.hm-wrap { overflow-x: auto; }
.hm { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.hm th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #8a8f98); text-align: left; padding: 4px 8px; font-weight: 600; }
.hm td { padding: 2px 8px; }
.hm-cell { display: inline-block; min-width: 58px; text-align: center; padding: 6px 8px; border-radius: 9px; font-size: 12.5px; font-weight: 600; }
.hm-cell.strong { font-weight: 800; }
.hm-ok { background: rgba(46,160,90,.16); color: #1f8a4c; }
.hm-warn { background: rgba(232,160,46,.18); color: #b5730f; }
.hm-crit { background: rgba(214,69,65,.16); color: #c0392b; }
.hm-none { background: rgba(127,127,127,.08); color: var(--muted, #8a8f98); }
[data-theme=dark] .hm-ok { color: #6fd39a; } [data-theme=dark] .hm-warn { color: #f0b860; } [data-theme=dark] .hm-crit { color: #f08a80; }
/* annual training plan */
.plan-wrap { overflow-x: auto; padding: 14px; }
.plan { width: 100%; border-collapse: collapse; min-width: 1100px; }
.plan th { font-size: 11px; text-transform: uppercase; color: var(--muted, #8a8f98); font-weight: 600; text-align: left; padding: 6px; }
.plan th.nowm { color: var(--accent); }
.plan td { padding: 6px; border-top: 1px solid rgba(127,127,127,.14); vertical-align: top; }
.plan-chip { display: flex; justify-content: space-between; gap: 4px; font-size: 11px; padding: 4px 6px; border-radius: 7px; margin-bottom: 4px; background: rgba(232,160,46,.16); color: inherit; white-space: nowrap; }
.plan-chip.ok { background: rgba(46,160,90,.16); } .plan-chip.late { background: rgba(214,69,65,.16); }
.plan-chip span { font-weight: 700; }
.plan-add { display: block; text-align: center; color: var(--muted, #8a8f98); opacity: 0; border-radius: 7px; font-weight: 700; }
.plan td:hover .plan-add { opacity: 1; background: rgba(232,119,46,.08); color: var(--accent); }
.tiny-chip { font-size: 10px; padding: 1px 6px; }
.obj { margin: 0 0 0 18px; padding: 0; line-height: 1.55; }
.plan { table-layout: fixed; min-width: 1000px; }
.plan th:first-child { width: 210px; } .plan th:nth-child(2) { width: 84px; }
.plan-chip { font-size: 10.5px; padding: 3px 5px; overflow: hidden; }
.plan-chip { display: block; text-overflow: ellipsis; }
.plan-chip span { display: block; }
/* responsibilities: status marks, continuous chip, calendar */
.item.resp { gap: 10px; }
.rc-mark { width: 18px; display: inline-flex; justify-content: center; flex: none; }
.rc-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.rc-dot.yellow { background: #e8b52e; box-shadow: 0 0 0 3px rgba(232,181,46,.18); }
.rc-dot.red { background: #d64541; box-shadow: 0 0 0 3px rgba(214,69,65,.2); }
.rc-dot.done { background: #2ea05a; }
.rc-check { color: #2ea05a; display: inline-flex; }
.chip.cont { background: rgba(56,132,196,.14); color: #2f78b7; }
[data-theme="dark"] .chip.cont { color: #7ab8ec; }
.chip.own { background: rgba(140,90,200,.14); color: #7a4fc0; }
[data-theme="dark"] .chip.own { color: #b893ef; }
.rc-period { display: flex; align-items: center; gap: 12px; }
.rc-period.red { border-left: 4px solid #d64541; } .rc-period.yellow { border-left: 4px solid #e8b52e; } .rc-period.done { border-left: 4px solid #2ea05a; }
.rc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.rc-wk { font-size: 10.5px; text-transform: uppercase; color: var(--muted, #8a8f98); text-align: center; padding: 2px 0; }
.rc-day { min-height: 54px; border-radius: 8px; padding: 3px; background: rgba(127,127,127,.06); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rc-day.empty { background: transparent; }
.rc-day.today { box-shadow: 0 0 0 2px var(--accent) inset; }
.rc-n { font-size: 10.5px; color: var(--muted, #8a8f98); }
.rc-ev { all: unset; cursor: pointer; display: flex; align-items: center; gap: 2px; font-size: 10px; line-height: 1.2; padding: 2px 4px; border-radius: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rc-ev span { overflow: hidden; text-overflow: ellipsis; }
.rc-ev.yellow { background: rgba(232,181,46,.22); }
.rc-ev.red { background: rgba(214,69,65,.2); }
.rc-ev.done { background: rgba(46,160,90,.2); color: #1f8a4c; }
[data-theme="dark"] .rc-ev.done { color: #6fd39a; }
.rc-ev.focus { outline: 2px solid var(--accent); }
.rc-ev:hover { filter: brightness(.95); }
.rc-title { min-width: 120px; text-align: center; text-transform: capitalize; }
.rc-add input[type=text] { width: 100%; }
.doc-body { font-size: 13.5px; line-height: 1.6; }
.doc-row:hover { background: rgba(232,119,46,.05); }
/* policy authority matrix */
.pa-flow { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.pa-step { flex: 1; min-width: 150px; display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; background: rgba(127,127,127,.07); }
.pa-arrow { display: flex; align-items: center; color: var(--accent); }
.doc-h { margin: 14px 0 6px; font-size: 14px; }
.doc-body .doc-h:first-child { margin-top: 0; }

/* ── Case workspace (ch-update-59) ───────────────────────────────── */
.cw-head h2 { font-size: 21px; }
.cw-steps { display: flex; gap: 8px; flex-wrap: wrap; }
.cw-step { display: inline-flex; align-items: center; gap: 9px; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--bg); border: 0; border-radius: 14px; padding: 9px 14px; box-shadow: var(--raise-s); cursor: pointer; }
.cw-step:hover { color: var(--text); }
.cw-step.on { color: var(--accent); box-shadow: var(--inset-s); }
.cw-step .cw-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; box-shadow: var(--inset-s); }
.cw-step.m-ok .cw-n { color: var(--ok); } .cw-step.m-crit .cw-n { color: var(--crit); } .cw-step.m-run .cw-n { color: var(--warn); }
/* 11 steps in two rows: office (1–5), field and outcome (6–11) (ch-update-61) */
.cw-steps { flex-direction: column; gap: 8px; }
.cw-steprow { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.cw-phase { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); width: 40px; flex: none; }
.cw-steprow .cw-step { font-size: 12px; padding: 6px 10px; gap: 6px; }
.cw-steprow .cw-step .cw-n { width: 20px; height: 20px; }
.cw-step.locked { opacity: .55; }
.cw-step.locked .cw-n { color: var(--faint); }
.side-top .badge { margin-left: auto; }
.tg-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tg-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--bg); box-shadow: var(--raise-s); cursor: pointer; font-size: 13px; line-height: 1.4; }
.tg-opt > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.tg-opt input { margin-top: 3px; accent-color: var(--accent); }
.tg-opt.on { box-shadow: var(--inset-s); color: var(--accent); }
.tg-opt.on .tiny { color: var(--muted); }
.tg-opt.off { opacity: .55; cursor: not-allowed; }
@media (max-width: 700px) { .tg-opts { grid-template-columns: 1fr; } }
.cw { display: grid; grid-template-columns: minmax(320px, 5fr) 7fr; gap: 18px; align-items: start; }
.cw.wide { grid-template-columns: 56px 1fr; }
.cw.wide .cw-verb { padding: 14px 8px; } .cw.wide .cw-verb .kicker, .cw.wide .cw-verb h3 { display: none; }
.cw-verb { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
.cw-text { white-space: pre-wrap; font-size: 15px; line-height: 1.7; padding: 14px 16px; border-radius: var(--radius-s); box-shadow: var(--inset-s); }
.cw-main h3 { font-size: 17px; }
@media (max-width: 1100px) { .cw, .cw.wide { grid-template-columns: 1fr; } .cw-verb { position: static; max-height: none; } }

/* ── Notes on the report as written (ch-update-60) ───────────────── */
:root { --info: #2f6fd0; } [data-theme="dark"] { --info: #6fa5ff; }
.t-observation { --nc: var(--info); } .t-discrepancy { --nc: var(--crit); } .t-action { --nc: var(--warn); }
.cn-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--nc); margin-right: 2px; }
.cw-text { user-select: text; cursor: text; }
.cn-mark { color: inherit; background: color-mix(in srgb, var(--nc) 20%, transparent); border-bottom: 2px solid var(--nc); border-radius: 3px; padding: 0 1px; cursor: pointer; transition: background .3s; }
.cn-mark.draft { border-bottom-style: dashed; background: color-mix(in srgb, var(--nc) 10%, transparent); }
.cn-mark.pending { background: color-mix(in srgb, var(--nc) 32%, transparent); cursor: text; }
.cn-mark.flash { background: color-mix(in srgb, var(--nc) 55%, transparent); }
.cn-bar { position: absolute; z-index: 60; display: flex; gap: 6px; padding: 6px; border-radius: 14px; background: var(--bg); box-shadow: var(--raise); }
.cn-card { border-left: 4px solid var(--nc); border-radius: var(--radius-s); padding: 12px 14px; box-shadow: var(--raise-s); margin-bottom: 12px; }
.cn-card.wd { opacity: .55; } .cn-card.focus { box-shadow: 0 0 0 2px var(--nc), var(--raise-s); }
.cn-chip { background: color-mix(in srgb, var(--nc) 16%, transparent); color: var(--nc); }
.cn-quote { display: block; width: 100%; text-align: left; font: inherit; font-size: 12.5px; font-style: italic; color: var(--muted); background: transparent; border: 0; border-radius: 8px; padding: 6px 9px; box-shadow: var(--inset-s); cursor: pointer; }
button.cn-quote:hover { color: var(--text); }
.cn-card input[data-nreason], .cn-card input[data-ndnote] { flex: 1; min-width: 180px; }

/* ── ComplAInce Assistant case analysis (ch-update-62) ───────────────────── */
.t-ai { --nc: var(--accent); }
.cn-mark.t-ai { background: color-mix(in srgb, var(--accent) 38%, transparent); }
tr.ca-flash td { background: color-mix(in srgb, var(--accent) 22%, transparent); transition: background .3s; }
.ca-sec { margin-top: 16px; }
.ca-sec h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
.ca-sec.sum { padding: 12px 14px; border-radius: var(--radius-s); box-shadow: var(--inset-s); }
.ca-sec.sum h4 { color: var(--accent); }
.ca-st { padding: 9px 0; border-bottom: 1px solid var(--line); }
.ca-st:last-child { border-bottom: 0; }
.ca-text { font-size: 13.5px; line-height: 1.5; }
.ca-text.inf { font-style: italic; color: var(--muted); }
.ca-text.struck { text-decoration: line-through; opacity: .6; }
.ca-st.unverified .ca-text { color: var(--muted); }
.ca-corr { font-size: 13px; margin-top: 4px; color: var(--accent); }
.ca-src { font: inherit; font-size: 11px; font-weight: 600; border: 0; border-radius: 9px; padding: 3px 8px; cursor: pointer; background: var(--bg); box-shadow: var(--raise-s); color: var(--muted); }
.ca-src.passage { color: var(--info); } .ca-src.field { color: var(--ok); } .ca-src.message { color: var(--accent); } .ca-src.registry { color: var(--warn); }
.ca-src.inference { font-style: italic; } .ca-src.bad { color: var(--crit); }
.ca-src:hover { box-shadow: var(--inset-s); }
.ca-rev { display: inline-flex; gap: 4px; } .ca-rev .btn { padding: 4px 8px; }
.ca-srcbox { font-size: 12px; color: var(--muted); margin-top: 6px; padding: 6px 10px; border-radius: 8px; box-shadow: var(--inset-s); }
.ca-st input[data-rvt] { flex: 1; min-width: 200px; }

/* ComplAInce Assistant risk assessment (ch-update-ca2) */
.cr-grp { margin-top: 10px; }
.cr-gh { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.cr-dim { padding: 6px 0 0; }
.cr-dim .ca-st { padding-top: 4px; }

/* ch-update-101 (Tayfun 20.11.2026): hub accents. EmployeeHub + ComplianceHub keep orange; DileGetirmeMerkezi
   (SpeakUpHub) is plum, ThirdPartyHub is the sky blue Tayfun picked (#65BAD3); in the light theme the same hue is
   darkened (#316777) so text and lines stay readable on white (contrast ≥ 4.5). Status colours never change.
   The accent follows the hub: <html data-hub>, the landing card, the menu group. */
[data-hub="speakup"], .side-group[data-g="speakuphub"] { --accent: #7b2d6e; --accent-2: #a0568f; --accent-soft: rgba(123, 45, 110, 0.12); }
[data-hub="thirdparty"], .side-group[data-g="tphub"] { --accent: #316777; --accent-2: #65bad3; --accent-soft: rgba(101, 186, 211, 0.2); }
[data-theme="dark"][data-hub="speakup"], [data-theme="dark"] [data-hub="speakup"], [data-theme="dark"] .side-group[data-g="speakuphub"] { --accent: #d08ac4; --accent-2: #e3b0d9; --accent-soft: rgba(208, 138, 196, 0.16); }
[data-theme="dark"][data-hub="thirdparty"], [data-theme="dark"] [data-hub="thirdparty"], [data-theme="dark"] .side-group[data-g="tphub"] { --accent: #65bad3; --accent-2: #9ad3e4; --accent-soft: rgba(101, 186, 211, 0.16); }
/* Light accents on the dark theme carry dark text on filled buttons. */
[data-theme="dark"][data-hub="speakup"] .btn.primary, [data-theme="dark"][data-hub="thirdparty"] .btn.primary,
[data-theme="dark"] [data-hub="speakup"] .btn.primary, [data-theme="dark"] [data-hub="thirdparty"] .btn.primary { color: #1b1f26; }
/* The ComplyHub brand mark stays orange in every hub. */
.logo { --accent: #e8772e; --accent-2: #f3a25c; }
[data-theme="dark"] .logo { --accent: #ff9149; --accent-2: #ffb57a; }

/* ch-update-103: product brand titles in the side menu; each brand word keeps its own hub colour on every page. */
/* ch-update-112: EmployeeHub / PersonalHub orange; ComplianceHub red (see the end of the file). */
[data-hub="employee"] { --accent: #e8772e; --accent-2: #f3a25c; --accent-soft: rgba(232, 119, 46, 0.13); }
[data-theme="dark"] [data-hub="employee"], [data-theme="dark"][data-hub="employee"] { --accent: #ff9149; --accent-2: #ffb57a; --accent-soft: rgba(255, 145, 73, 0.16); }
.side-brand { padding: 8px 12px 6px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; color: var(--text); }
.side-brand .acc { color: var(--accent); }
/* ch-update-104: SetupHub title ("Setup" in neutral slate; setup is not a product hub). */
[data-hub="setup"] { --accent: #5b6b80; }
[data-theme="dark"] [data-hub="setup"] { --accent: #9aa6b8; }
/* ch-update-106: "CCO Ana Panel" is a title link, not a button: no raised or inset effect, title size. */
.side-top.side-title, .side-top.side-title.active { box-shadow: none; background: none; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; padding: 8px 12px 6px; }
/* ch-update-107: ComplAInce Assistant — "AI" always in ComplianceHub orange. */
.ai-name { white-space: nowrap; }
.ai-acc { color: var(--accent); font-weight: 700; }
/* ch-update-108: the AI notice at the end of every employee answer: separator, space, contrasting box. */
.msg .ai-notice { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 4px; padding: 10px 12px; border-top: 1px solid var(--line); border-radius: 10px; background: var(--warn-soft); border-left: 4px solid var(--warn); color: var(--text); font-size: 12.5px; font-weight: 600; line-height: 1.45; }
.msg .ai-notice svg { flex: none; margin-top: 2px; color: var(--warn); }
.msg.ai + .msg { margin-top: 14px; }
/* ch-update-109: landing — ComplianceHub as one wide card on its own row, edges aligned with the square cards;
   QualityHub "coming soon" (green accent provisional until Bölüm XII settles it). */
.card.hub.wide { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; gap: 18px; padding: 22px 24px; }
.card.hub.wide .grow { display: flex; flex-direction: column; gap: 4px; }
.card.hub.wide p { flex: none; }
.card.hub.soon { cursor: default; opacity: .78; }
.card.hub.soon:hover { transform: none; }
.card.hub.soon .hub-go { color: var(--muted); }
[data-hub="quality"] { --accent: #2b6e3f; --accent-2: #4f9a63; --accent-soft: rgba(43, 110, 63, 0.14); }
[data-theme="dark"] [data-hub="quality"] { --accent: #6cc38a; --accent-2: #9bd9ae; --accent-soft: rgba(108, 195, 138, 0.16); }
@media (max-width: 560px) { .card.hub.wide { flex-direction: column; align-items: flex-start; } }
.brand-h .acc { color: var(--accent); }
.brand-w { white-space: nowrap; }
.brand-w .acc { color: var(--accent); }
/* Brand words inside flex labels must not add an extra flex gap before the following text. */
.kicker .brand-w { margin-right: calc(-8px + .4em); }
.kicker .brand-w ~ .brand-w { margin-right: 0; }
.msg.ai .who .ai-name { margin-right: calc(-6px + .3em); }
.msg.ai .who .ai-name ~ .ai-name { margin-right: 0; }
/* ch-update-112 (Tayfun 21.11.2026): ComplianceHub accent is red — its brand word, its menu (CCO panel title, the
   clause groups, setup) and its pages. Deeper than the "critical" status red (#d64545) so the two stay apart. */
[data-hub="compliance"], .side.team { --accent: #b3192b; --accent-2: #d9485a; --accent-soft: rgba(179, 25, 43, 0.11); }
[data-theme="dark"][data-hub="compliance"], [data-theme="dark"] [data-hub="compliance"], [data-theme="dark"] .side.team { --accent: #ff7584; --accent-2: #ffa3ad; --accent-soft: rgba(255, 117, 132, 0.15); }
[data-theme="dark"][data-hub="compliance"] .btn.primary { color: #1b1f26; }
/* Personal links in the team menu stay EmployeeHub orange; the hub groups keep their own colours (rules above). */
.side.team [data-hub="employee"] { --accent: #e8772e; }
[data-theme="dark"] .side.team [data-hub="employee"] { --accent: #ff9149; }

/* ch-update-120 (Bölüm XII, Tayfun 21.11.2026): QualityHub green, settled. Dark forest green in the light theme
   (#1E6B3A, ~6.9:1 on white), a yellow-leaning green in the dark theme (#9BCF6E) so it never reads as the status
   colour "ok" (#2f9e6f / #4cc490). */
[data-hub="quality"] { --accent: #1e6b3a; --accent-2: #3f8f5a; --accent-soft: rgba(30, 107, 58, 0.13); }
[data-theme="dark"][data-hub="quality"], [data-theme="dark"] [data-hub="quality"] { --accent: #9bcf6e; --accent-2: #c2e3a3; --accent-soft: rgba(155, 207, 110, 0.16); }
[data-theme="dark"][data-hub="quality"] .btn.primary { color: #16210f; }

/* ch-update-122 (Tayfun 21.11.2026): ComplianceHub logo. White in the dark theme, navy in the light theme.
   Landing and sign-in: larger and higher on the page; side menu: medium. */
.logo.brand-logo { flex-direction: column; align-items: flex-start; gap: 4px; color: #0b2342; text-decoration: none; }
[data-theme="dark"] .logo.brand-logo { color: #fff; }
.logo-svg { display: block; line-height: 0; }
.logo-svg svg { height: 84px; width: auto; display: block; }
.side .logo.brand-logo { padding: 0 8px 18px; }
.login { place-items: start center; padding-top: 24px; }
.login .logo-svg svg { height: 132px; }
.login .logo.brand-logo { padding: 0 0 6px; }
.login .logo-sub { font-size: 12px; }
@media (max-width: 560px) { .login .logo-svg svg { height: 96px; } }

/* ch-update-133 (Tayfun 21.11.2026 14:04): the ComplAInce Assistant conversation sits on a lighter panel than the page,
   so it reads as a chat window even when the page scrolls. */
:root { --chat-bg: #f9fafc; --chat-ai: #ffffff; }
[data-theme="dark"] { --chat-bg: #2f3742; --chat-ai: #373f4b; }
.chat .chat-log { background: var(--chat-bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--inset-s); padding: 18px 16px 20px; min-height: 360px; }
.chat .chat-log .msg.ai { background: var(--chat-ai); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); border: 1px solid var(--line); }
.chat .chat-log .msg.user { background: var(--accent-soft); box-shadow: none; }
.drawer.chat-drawer .chat .chat-log { min-height: 0; }

/* ch-update-134 (Tayfun 21.11.2026 14:05): assistant split screen, chat left, my questions right */
.as-split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 22px; align-items: start; }
.as-split > .chat { height: calc(100vh - 170px); }
.as-split > .as-side { max-height: calc(100vh - 170px); overflow-y: auto; }
@media (max-width: 1050px) { .as-split { grid-template-columns: 1fr; } .as-split > .as-side { max-height: none; } }
.as-split.solo { grid-template-columns: 1fr; }

/* ch-update-136: score tiles are buttons */
.card.stat { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.card.stat:hover { transform: translateY(-2px); }
.card.stat:active { box-shadow: var(--inset-s); transform: none; }
.card.stat.on { outline: 2px solid var(--accent); outline-offset: -2px; }
.flash { animation: ch-flash 1.4s ease; }
@keyframes ch-flash { 0%, 40% { outline: 2px solid var(--accent); outline-offset: 2px; } 100% { outline: 2px solid transparent; outline-offset: 2px; } }

/* ── ch-update-140 (Bölüm XIV): screen lock curtain, PROTECT MY SCREEN, default-PIN warning ── */
.lk { position: fixed; inset: 0; z-index: 9999; color: #e2e7ee; background: #22272f; font-family: "Inter", "Helvetica Neue", "Segoe UI", system-ui, -apple-system, sans-serif; overflow: hidden; outline: none; }
.lk.intro { cursor: pointer; }
/* ch-update-144 (Tayfun 22.11.2026): Sherpa photographs behind the curtain; text on the dark left side. */
.lk-photo { position: absolute; inset: -2%; background: #22272f center / cover no-repeat; transform-origin: 70% 55%; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), opacity 1s ease .15s, filter 1s ease; }
.lk.intro .lk-photo { background-image: url('/img/sherpa-start.webp'); background-position: 68% 50%; animation: lkDrift 38s ease-in-out infinite alternate; }
.lk.pin .lk-photo { background-image: url('/img/sherpa-camp.webp'); background-position: 72% 50%; }
@keyframes lkDrift { from { transform: scale(1); } to { transform: scale(1.06); } }
.lk-shade { position: absolute; inset: 0; pointer-events: none; transition: opacity .8s ease .1s;
  background: linear-gradient(90deg, rgba(34, 39, 47, .94) 0%, rgba(34, 39, 47, .82) 28%, rgba(34, 39, 47, .38) 52%, rgba(34, 39, 47, 0) 70%), linear-gradient(0deg, rgba(34, 39, 47, .45), rgba(34, 39, 47, 0) 30%); }
.lk-body { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px; padding: 40px 40px 40px clamp(32px, 7vw, 120px); text-align: left; z-index: 1; transition: opacity .45s, transform .6s; }
.lk-logo { color: #fff; opacity: .95; line-height: 0; }
.lk-logo svg { height: 150px; width: auto; display: block; filter: drop-shadow(0 2px 18px rgba(0, 0, 0, .35)); }
.lk-in { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: min(620px, 46vw); }
.lk-l1 { margin: 0; font-weight: 200; font-size: clamp(18px, 2.6vw, 30px); letter-spacing: .16em; line-height: 1.45; text-transform: uppercase; }
.lk-l2 { margin: 0; font-weight: 300; font-size: clamp(12px, 1.25vw, 15px); letter-spacing: .32em; color: rgba(238, 242, 248, .72); text-transform: uppercase; }
.lk-hint { margin: 26px 0 0; font-weight: 300; font-size: 12px; letter-spacing: .4em; color: rgba(238, 242, 248, .5); animation: lkPulse 2.6s ease-in-out infinite; }
@keyframes lkPulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.lk-pin { display: flex; gap: 14px; margin-top: 18px; }
.lk-pin input { width: 54px; height: 64px; text-align: center; font-size: 26px; font-weight: 300; color: #fff; caret-color: #ff9149;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; outline: none; box-shadow: none; padding: 0; transition: border-color .2s, background .2s, box-shadow .2s; }
.lk-pin input:focus { border-color: rgba(255, 145, 73, .9); background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 4px rgba(255, 145, 73, .14); }
.lk-msg { margin: 0; min-height: 18px; font-size: 12px; letter-spacing: .18em; font-weight: 300; color: #ffb48a; text-transform: uppercase; max-width: 640px; line-height: 1.6; }
.lk-links { display: flex; gap: 12px; align-items: center; justify-content: flex-start; flex-wrap: wrap; }
.lk-link { background: none; border: 0; color: rgba(238, 242, 248, .6); font: inherit; font-size: 12px; letter-spacing: .12em; cursor: pointer; padding: 4px 2px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(238, 242, 248, .25); }
.lk-link:hover, .lk-link:focus-visible { color: #fff; }
.lk-dot { color: rgba(238, 242, 248, .3); }
.lk-btn { background: rgba(255, 145, 73, .14); border: 1px solid rgba(255, 145, 73, .6); color: #fff; border-radius: 999px; padding: 9px 22px; font: inherit; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; cursor: pointer; }
.lk-btn:hover, .lk-btn:focus-visible { background: rgba(255, 145, 73, .3); }
.lk-confirm, .lk-done { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.lk [hidden] { display: none !important; }
.lk.shake .lk-pin { animation: lkShake .4s; }
@keyframes lkShake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
/* Opening (ch-update-144): the photograph moves toward the viewer and dissolves; the page shows through. */
.lk { transition: opacity .7s ease .55s; }
.lk.opening { opacity: 0; pointer-events: none; }
.lk.opening .lk-body { opacity: 0; transform: translateX(-24px); }
.lk.opening .lk-photo { transform: scale(1.14); filter: blur(3px); animation: none; }
.lk.opening .lk-shade { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .lk-photo, .lk-body, .lk-shade { transition: none; animation: none !important; }
  .lk-hint, .lk.shake .lk-pin { animation: none; }
  .lk { transition: opacity .3s; }
  .lk.opening .lk-photo { transform: none; filter: none; }
  .lk.opening .lk-body { transform: none; }
}
@media (max-width: 760px) {
  .lk-shade { background: linear-gradient(0deg, rgba(34, 39, 47, .3), rgba(34, 39, 47, .86) 55%, rgba(34, 39, 47, .94)); }
  .lk-in { max-width: 100%; }
}
@media (max-width: 560px) { .lk-logo svg { height: 104px; } .lk-pin input { width: 46px; height: 56px; } }
.btn.protect { font-size: 11px; letter-spacing: .08em; font-weight: 600; }
.btn.protect span { white-space: nowrap; }
@media (max-width: 1100px) { .btn.protect span { display: none; } }
.pin-warn { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; background: var(--warn-soft, var(--bg-2)); border: 1px solid var(--warn); border-left-width: 5px; }
.pin-warn > svg { color: var(--warn); flex: none; }

/* ── ch-update-142 (Tayfun 22.11.2026 13:52): dark theme hub colours brighter and higher-contrast, not pastel, not neon.
   Light theme unchanged. Each accent keeps ≥4.5:1 on the dark ground (#22272f); filled buttons carry dark text. ── */
[data-theme="dark"] { --accent: #ff7a21; --accent-2: #ff9a4d; --accent-soft: rgba(255, 122, 33, 0.18); }
[data-theme="dark"] .logo { --accent: #ff7a21; --accent-2: #ff9a4d; }
[data-theme="dark"] [data-hub="employee"], [data-theme="dark"][data-hub="employee"] { --accent: #ff7a21; --accent-2: #ff9a4d; --accent-soft: rgba(255, 122, 33, 0.18); }
[data-theme="dark"] .side.team [data-hub="employee"] { --accent: #ff7a21; }
[data-theme="dark"][data-hub="compliance"], [data-theme="dark"] [data-hub="compliance"], [data-theme="dark"] .side.team { --accent: #ff4a5f; --accent-2: #ff7584; --accent-soft: rgba(255, 74, 95, 0.17); }
[data-theme="dark"][data-hub="speakup"], [data-theme="dark"] [data-hub="speakup"], [data-theme="dark"] .side-group[data-g="speakuphub"] { --accent: #e05ccb; --accent-2: #ec8fdc; --accent-soft: rgba(224, 92, 203, 0.17); }
[data-theme="dark"][data-hub="thirdparty"], [data-theme="dark"] [data-hub="thirdparty"], [data-theme="dark"] .side-group[data-g="tphub"] { --accent: #1fb0e0; --accent-2: #6ccbec; --accent-soft: rgba(31, 176, 224, 0.17); }
[data-theme="dark"][data-hub="quality"], [data-theme="dark"] [data-hub="quality"] { --accent: #9ed238; --accent-2: #c3e67a; --accent-soft: rgba(158, 210, 56, 0.17); }
[data-theme="dark"] [data-hub="setup"] { --accent: #b3c1d6; }
[data-theme="dark"] .btn.primary, [data-theme="dark"] .btn.primary:hover { color: #15181d; }
/* lock screen orange */
.lk-pin input { caret-color: #ff7a21; }
.lk-pin input:focus { border-color: #ff7a21; box-shadow: 0 0 0 4px rgba(255, 122, 33, .2); }
.lk-msg { color: #ff9a4d; }
.lk-btn { background: rgba(255, 122, 33, .16); border-color: #ff7a21; }
.lk-btn:hover, .lk-btn:focus-visible { background: rgba(255, 122, 33, .32); }

/* ── CENGİZ SpeakUpHub: layout additions and mobile-first rules ───────────── */
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.case-grid { display: grid; gap: 22px; align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.brand-w .acc { color: var(--accent); }
@media (max-width: 1100px) { .case-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  /* Side menu becomes a compact top bar */
  .app { display: block; }
  .side { position: sticky; top: 0; z-index: 50; height: auto; flex-direction: row; align-items: center; gap: 8px; padding: 8px 12px; overflow: visible; background: var(--bg); box-shadow: var(--raise-s); }
  .side .logo-svg svg { height: 34px; width: auto; }
  .side-nav { display: flex; flex-direction: row; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; flex: 1; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav .side-brand, .side-nav .side-sep, .side-foot { display: none; }
  .side-top { padding: 9px 10px; font-size: 13px; white-space: nowrap; flex: 0 0 auto; }
  .main { padding: 14px 16px 36px; }
  .topbar { flex-wrap: wrap; margin-bottom: 14px; }
  .topbar .crumb { display: none; }
  .user-chip .small { display: none; }
  .page-title { font-size: 24px; }
  .page-desc { font-size: 13px; }
  .card { padding: 16px; }
  .hide-m { display: none; }
  table.t td, table.t th { padding: 9px 6px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 4px 2px; }
  .tabs button { white-space: nowrap; flex: 0 0 auto; }
  .login { padding: 12px; }
  .login .panel { padding: 16px; }
  .user-grid { grid-template-columns: 1fr; }
  .stat { padding: 16px 8px; } .stat b { font-size: 28px; }
  .item[style*="margin-left:40px"] { margin-left: 16px !important; }
  .item[style*="margin-right:40px"] { margin-right: 16px !important; }
  /* iOS zooms into inputs under 16px */
  input, select, textarea { font-size: 16px !important; }
  .btn { min-height: 40px; }
}
@media (max-width: 420px) { .g4 { gap: 10px; } .row.wrap > select, .row.wrap > input { width: 100%; } }
@media (max-width: 760px) { [data-key] { font-size: clamp(15px, 4.6vw, 24px) !important; letter-spacing: .02em !important; white-space: nowrap; } }
.m-list { display: none; }
.m-case { cursor: pointer; align-items: center; }
@media (max-width: 760px) { .tbl-wrap.case-tbl { display: none; } .m-list { display: grid; gap: 10px; } }
.m-case { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; box-shadow: var(--raise-s); overflow: hidden; }
.m-case > .grow { min-width: 0; overflow: hidden; }
.m-case > .grow > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-case > .grow > .row { white-space: normal; }
.m-case > svg { flex: 0 0 auto; color: var(--faint); }
.case-grid > * { min-width: 0; }
.case-grid .mono, .case-grid .doc { overflow-wrap: anywhere; word-break: break-word; }

/* ── cz-update-3: Cengiz Holding brand. Logo on the landing page; accent dark blue #00416E (light theme),
   light blue #14A8D5 (dark theme). In the dark theme the logo is drawn in light blue through a mask,
   because the dark blue would vanish on the dark ground. ─────────────────────────────── */
.client-logo { margin: 4px auto 6px; width: min(440px, 86%); aspect-ratio: 2056 / 569; position: relative; }
.client-logo img, .client-logo-dark { position: absolute; inset: 0; width: 100%; height: 100%; }
.client-logo-dark { display: none; background: #14a8d5; -webkit-mask: url(/img/cengiz-logo.png) center / contain no-repeat; mask: url(/img/cengiz-logo.png) center / contain no-repeat; }
[data-theme="dark"] .client-logo img { display: none; }
[data-theme="dark"] .client-logo-dark { display: block; }
[data-hub="speakup"] { --accent: #00416e; --accent-2: #14a8d5; --accent-soft: rgba(0, 65, 110, 0.10); }
[data-theme="dark"][data-hub="speakup"], [data-theme="dark"] [data-hub="speakup"] { --accent: #14a8d5; --accent-2: #6fcbea; --accent-soft: rgba(20, 168, 213, 0.16); }
[data-theme="dark"][data-hub="speakup"] .btn.primary { color: #10202b; }

/* cz-update-4: reports page */
.rp-row { display: grid; grid-template-columns: minmax(120px, 1.3fr) 2fr 34px 40px; gap: 10px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line); }
.rp-row:last-child { border-bottom: 0; }
.rp-row .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-bar { height: 8px; border-radius: 6px; background: var(--line); overflow: hidden; }
.rp-bar i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.rp-row b { text-align: right; }
@media print { .side, .topbar, .no-print, .foot { display: none !important; } .main { padding: 0 !important; } .app { display: block !important; } .card { break-inside: avoid; box-shadow: none !important; border: 1px solid #ddd; } }

/* cz-update-5/6: company buttons grouped by sector, vertical separator between sectors; one company per row, all buttons the same size */
.co-groups { display: grid; grid-template-columns: repeat(var(--co-n, 4), minmax(0, 1fr)); margin: 8px -14px 0; }
.co-group { padding: 0 14px; min-width: 0; }
.co-group + .co-group { border-left: 1px solid var(--line); }
.co-sec { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.co-chips { display: flex; flex-direction: column; gap: 8px; }
.co-chips .chip { display: flex; align-items: center; width: 100%; min-height: 54px; padding: 8px 12px !important; border-radius: 12px; white-space: normal; line-height: 1.3; }
@media (max-width: 760px) {
  .co-groups { grid-template-columns: 1fr; margin: 8px 0 0; }
  .co-group { padding: 10px 0; }
  .co-group + .co-group { border-left: 0; border-top: 1px solid var(--line); }
  .co-chips .chip { min-height: 44px; }
}

/* cz-update-7: 112 emergency notice under the company choice: larger text, red frame, red fill at 50% */
.emergency-box { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 2px solid #d64545; border-radius: 12px; background: rgba(214, 69, 69, .85); color: #fff; font-size: 16px; font-weight: 700; line-height: 1.4; }
.emergency-box svg { flex: none; width: 22px; height: 22px; }
[data-theme="dark"] .emergency-box { color: #fff; border-color: #f06b6b; }

/* cz-update-12: date and time-of-day boxes line up (labels of different length; same box height) */
.g-end { align-items: end; }
.g-end input, .g-end select { box-sizing: border-box; height: 48px; }

/* cz-17: 'Süresi geçen' and 'Cevap bekleyen mesaj' tiles in red */
.card.stat.alert b, .card.stat.alert span { color: var(--crit); }
/* cz-18 (PO): home cards — first three navy (Cengiz #00416E), exit interview blue (#14A8D5). Dark theme: navy → light text. */
.user-card.hc-navy h3, .user-card.hc-navy p { color: #00416E; }
.user-card.hc-blue h3, .user-card.hc-blue p { color: #14A8D5; }
[data-theme="dark"] .user-card.hc-navy h3, [data-theme="dark"] .user-card.hc-navy p { color: var(--text, #e8edf3); }
@media (max-width: 900px) { .cd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
