/* HR Assist — shared design system for every page (landing, sign-up,
   reset, employee app, admin app). Tokens, auth screen, sidebar app
   shell, chat, documents, settings, admin tables, modals.
   Brand palette (Nov 2026):
     Smoky Navy #252D4A      primary: logo, headings, nav, icons, important text, dark UI
     Smoky Ivory #E8E2D8     main background
     Dusty Periwinkle #899BBE signature: accents, AI identity, highlighted sections
     Muted Cornflower #637DAA interactive: buttons, links, selected states, chat bubbles
     Cloud Blue #B9C5D6      secondary: cards, secondary bubbles, dividers, borders
     Porcelain #F5F2ED       clean surfaces: chat windows, forms, cards
     Accent #D12251          sparingly: notification badges, alerts/errors, small highlights
   Token names (--blue, --salmon…) are kept from the old palette so every
   rule keeps working; only their values changed. */

:root {
  --blue: #637DAA;          /* Muted Cornflower: interactive */
  --blue-hover: #52699A;
  --navy: #252D4A;          /* Smoky Navy */
  --blue-400: #899BBE;      /* Dusty Periwinkle */
  --blue-300: #A3B1CC;
  --blue-200: #B9C5D6;      /* Cloud Blue */
  --blue-50: #E4E8EF;
  --accent: #D12251;
  --accent-hover: #B71C46;

  --bg: #E8E2D8;            /* Smoky Ivory */
  --bg-soft: #EEE9E1;
  --surface: #F5F2ED;       /* Porcelain */
  --surface-2: #EDE8E0;
  --border: #D4D9E1;
  --border-strong: #B9C5D6; /* Cloud Blue */
  --text: #252D4A;          /* Smoky Navy */
  --text-2: #545B72;
  --text-3: #858A9C;
  --accent-text: #637DAA;
  --tint: #DDE3EC;
  --tint-strong: #B9C5D6;
  --user-bubble: #637DAA;
  --salmon: #D12251;        /* alerts and errors use the accent */
  --salmon-bg: #F6E1E6;
  --salmon-text: #A81A41;
  --shadow-sm: 0 1px 2px rgba(37, 45, 74, .07);
  --shadow-md: 0 6px 24px -8px rgba(37, 45, 74, .20);
  --shadow-lg: 0 24px 60px -20px rgba(37, 45, 74, .38);

  --radius: 6px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --sidebar-w: 268px;

  --font-display: "Wix Madefor Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-text: "Wix Madefor Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  color-scheme: light;
  font-size: 16px;
}

:root[data-textsize="large"] { font-size: 18px; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #181D30;
    --bg-soft: #1D2338;
    --surface: #232A42;
    --surface-2: #2A3250;
    --border: #343D5C;
    --border-strong: #46507A;
    --text: #F5F2ED;
    --text-2: #B9C5D6;
    --text-3: #8790A8;
    --accent-text: #A3B1CC;
    --tint: rgba(137, 155, 190, .16);
    --tint-strong: rgba(137, 155, 190, .28);
    --salmon-bg: rgba(209, 34, 81, .16);
    --salmon-text: #F08AA5;
    --shadow-md: 0 6px 24px -8px rgba(0, 0, 0, .5);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #181D30;
  --bg-soft: #1D2338;
  --surface: #232A42;
  --surface-2: #2A3250;
  --border: #343D5C;
  --border-strong: #46507A;
  --text: #F5F2ED;
  --text-2: #B9C5D6;
  --text-3: #8790A8;
  --accent-text: #A3B1CC;
  --tint: rgba(137, 155, 190, .16);
  --tint-strong: rgba(137, 155, 190, .28);
  --salmon-bg: rgba(209, 34, 81, .16);
  --salmon-text: #F08AA5;
  --shadow-md: 0 6px 24px -8px rgba(0, 0, 0, .5);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--accent-text); }
button { font-family: inherit; }
.hidden, [hidden] { display: none !important; }
.ic { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 2px; }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  font-weight: 500;
  margin-bottom: 10px;
}

/* ---------- Buttons (from the Wix mockup) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--blue-hover); box-shadow: 0 4px 14px -4px rgba(99, 125, 170, .5); }
.btn-outline { background: var(--surface); color: var(--accent-text); border-color: var(--blue-400); }
.btn-outline:hover:not(:disabled) { background: var(--tint); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { color: var(--salmon-text); border-color: var(--salmon); }
.btn-danger:hover:not(:disabled) { background: var(--salmon-bg); }
.btn-block { width: 100%; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 0.875rem; }
.btn-xs { height: 30px; padding: 0 10px; font-size: 0.8125rem; gap: 6px; }
.btn-xs .ic, .btn-sm .ic { width: 16px; height: 16px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--blue-400), var(--blue) 55%, var(--navy));
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(37, 45, 74, .45);
}
.brand-mark svg { width: 22px; height: 22px; color: rgba(255,255,255,.18); }
.brand-name { font-family: var(--font-display); font-size: 1.125rem; letter-spacing: -0.01em; }

/* ---------- Loading + toast ---------- */
.loading-view { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 50; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--tint-strong); border-top-color: var(--blue); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed; left: 50%; bottom: 28px;
  transform: translate(-50%, 20px);
  background: #252D4A; color: #fff;
  padding: 10px 16px; border-radius: 8px;
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 60;
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =============================== AUTH =============================== */
.auth { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-main { display: flex; flex-direction: column; padding: 28px 40px; }
.auth-card { width: 100%; max-width: 380px; margin: auto; padding: 40px 0; }
.auth-title { font-size: 2.75rem; line-height: 1.1; margin-bottom: 10px; }
.auth-sub { color: var(--text-2); margin-bottom: 28px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form .btn-primary { margin-top: 6px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { display: flex; justify-content: space-between; font-size: 0.8125rem; font-weight: 500; color: var(--text-2); }
.field-link { font-weight: 400; text-decoration: none; }
.field-link:hover { text-decoration: underline; }
.field-hint { font-size: 0.8125rem; color: var(--accent-text); min-height: 0; }
.field input {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font: inherit;
  font-size: 16px; /* prevents iOS zoom */
  color: var(--text);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: var(--text-3); }
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--tint-strong); }
.form-error { color: var(--salmon-text); font-size: 0.875rem; min-height: 0; }
.form-error:empty { display: none; }
.auth-foot { margin-top: 28px; font-size: 0.875rem; color: var(--text-3); text-align: center; }
.auth-foot a { text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

.auth-aside {
  position: relative;
  overflow: hidden;
  margin: 14px;
  border-radius: 22px;
  background:
    radial-gradient(1200px 500px at 110% -10%, rgba(185,197,214,.45), transparent 60%),
    radial-gradient(700px 400px at -20% 110%, rgba(37,45,74,.92), transparent 60%),
    linear-gradient(160deg, #899BBE, #637DAA 45%, #252D4A);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}
.auth-aside::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 70%);
  pointer-events: none;
}
.preview { position: relative; z-index: 1; max-width: 440px; width: 100%; }
.eyebrow-light { color: var(--blue-200); }
.preview-title { font-size: 2rem; line-height: 1.2; margin-bottom: 28px; }
.preview-chat {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.5);
}
.pv-msg { font-size: 0.875rem; padding: 10px 14px; border-radius: 12px; max-width: 88%; line-height: 1.5; }
.pv-user { align-self: flex-end; background: #fff; color: var(--navy); border-bottom-right-radius: 4px; }
.pv-bot { align-self: flex-start; background: rgba(37,45,74,.38); border-bottom-left-radius: 4px; }
.pv-source { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 0.75rem; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.16); }
.pv-source svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.pv-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: rgba(37,45,74,.38); border-radius: 12px; }
.pv-typing span { width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .5; animation: blink 1.2s infinite; }
.pv-typing span:nth-child(2) { animation-delay: .15s; }
.pv-typing span:nth-child(3) { animation-delay: .3s; }
.preview-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; font-size: 0.9375rem; }
.preview-points li { display: flex; align-items: center; gap: 10px; }
.preview-points svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: rgba(255,255,255,.2); fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { padding: 20px; }
  .auth-title { font-size: 2.25rem; }
}

/* =============================== APP SHELL =============================== */
.app { height: 100dvh; display: grid; grid-template-columns: var(--sidebar-w) 1fr; background: var(--bg); }

.sidebar {
  display: flex; flex-direction: column; gap: 18px;
  padding: 20px 14px 14px;
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
  min-height: 0;
}
.sidebar-top { padding: 0 6px; }
.company-tag { margin-top: 8px; font-size: 0.8125rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.company-tag:empty { display: none; }
.new-chat .ic { width: 16px; height: 16px; stroke-width: 2.2; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: background .12s, color .12s;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--tint); color: var(--accent-text); font-weight: 500; }
.nav-count { margin-left: auto; font-size: 0.75rem; color: var(--text-3); background: var(--surface-2); border-radius: 999px; padding: 1px 8px; }
.nav-count:empty { display: none; }
.nav-item.active .nav-count { background: var(--surface); color: var(--accent-text); }

.sidebar-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.help-card {
  display: flex; gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: var(--salmon-bg);
  color: var(--salmon-text);
}
.help-card .ic { margin-top: 2px; }
.help-title { font-size: 0.8125rem; font-weight: 500; }
.help-text { font-size: 0.75rem; line-height: 1.45; color: var(--text-2); margin-top: 2px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 8px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
.user-meta { flex: 1; min-width: 0; }
.user-email { font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 0.75rem; color: var(--text-3); }
.avatar {
  display: grid; place-items: center; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(140deg, var(--blue-300), var(--blue));
  color: #fff; font-size: 0.8125rem; font-weight: 500;
  text-transform: uppercase;
}
.avatar-lg { width: 56px; height: 56px; font-size: 1.25rem; }

.mobile-top, .tabbar { display: none; }

.main { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.panel-page { overflow-y: auto; }
.page-inner { width: 100%; max-width: 860px; margin: 0 auto; padding: 44px 32px 64px; }
.page-head { margin-bottom: 24px; }
.page-title { font-size: 2.125rem; line-height: 1.15; }
.page-sub { color: var(--text-2); margin-top: 8px; }

/* =============================== CHAT =============================== */
.chat-scroll { flex: 1; overflow-y: auto; scroll-behavior: smooth; }
.chat-inner { max-width: 780px; margin: 0 auto; padding: 32px 24px 24px; min-height: 100%; display: flex; flex-direction: column; }

.chat-empty { margin: auto 0; padding: 24px 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-mark {
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 18px; margin-bottom: 22px;
  background: linear-gradient(140deg, var(--blue-400), var(--blue) 55%, var(--navy));
  color: rgba(255,255,255,.18);
  box-shadow: 0 16px 34px -12px rgba(37, 45, 74, .45);
}
.hero-mark svg { width: 40px; height: 40px; }
.hero-title { font-size: 2.5rem; line-height: 1.12; }
.hero-sub { color: var(--text-2); max-width: 520px; margin-top: 12px; }
.notice {
  display: flex; gap: 10px; align-items: flex-start; text-align: left;
  margin-top: 22px; max-width: 520px;
  padding: 12px 14px; border-radius: 10px;
  background: var(--salmon-bg); color: var(--salmon-text);
  font-size: 0.875rem;
}
.notice .ic { margin-top: 2px; }
.suggestions { margin-top: 32px; width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.suggestion {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
}
.suggestion:hover { border-color: var(--blue-300); background: var(--tint); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.suggestion .s-ic { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; background: var(--tint); color: var(--accent-text); }
.suggestion:hover .s-ic { background: var(--surface); }

.messages { display: flex; flex-direction: column; gap: 22px; }
.messages:empty { display: none; }

.msg { display: flex; gap: 12px; animation: rise .25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg-user { justify-content: flex-end; }
.msg-user .bubble {
  max-width: 78%;
  background: var(--user-bubble); color: #fff;
  padding: 11px 16px;
  border-radius: 16px 16px 4px 16px;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.bot-avatar {
  display: grid; place-items: center; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(140deg, var(--blue-400), var(--blue) 55%, var(--navy));
  color: rgba(255,255,255,.18);
}
.bot-avatar svg { width: 20px; height: 20px; }
.msg-bot .body { flex: 1; min-width: 0; max-width: 92%; }
.msg-bot .bubble {
  padding: 4px 0 0;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.msg-bot .bubble a { overflow-wrap: anywhere; }
.bubble-label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 500; letter-spacing: .02em; margin-bottom: 6px; }
.msg-escalated .bubble, .msg-error .bubble {
  padding: 14px 16px; border-radius: 4px 14px 14px 14px;
  background: var(--salmon-bg); border-left: 3px solid var(--salmon);
}
.msg-escalated .bubble-label, .msg-error .bubble-label { color: var(--salmon-text); }

.sources { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.sources-label { font-size: 0.75rem; color: var(--text-3); margin-right: 2px; }
.source-chip {
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.source-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.source-chip .ic { width: 13px; height: 13px; }
.source-chip:hover { border-color: var(--blue-300); color: var(--accent-text); background: var(--tint); }

.msg-actions { display: flex; gap: 4px; margin-top: 8px; opacity: .0; transition: opacity .15s; }
.msg:hover .msg-actions, .msg-actions:focus-within { opacity: 1; }
@media (hover: none) { .msg-actions { opacity: 1; } }
.msg-actions .icon-btn { width: 30px; height: 30px; }
.msg-actions .ic { width: 15px; height: 15px; }

.typing { display: inline-flex; gap: 5px; padding: 12px 0 0; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-300); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.composer-wrap { padding: 8px 24px 18px; background: linear-gradient(to top, var(--bg) 70%, transparent); }
.composer {
  max-width: 780px; margin: 0 auto;
  display: flex; align-items: flex-end; gap: 8px;
  padding: 8px 8px 8px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transition: border-color .15s, box-shadow .15s;
}
.composer:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--tint-strong), var(--shadow-md); }
.composer textarea {
  flex: 1; overflow-y: auto; resize: none; border: none; outline: none; background: transparent;
  font: inherit; font-size: 16px; color: var(--text);
  padding: 9px 0; max-height: 180px; line-height: 1.45;
}
.composer textarea::placeholder { color: var(--text-3); }
.send-btn {
  display: grid; place-items: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 10px; border: none;
  background: var(--blue); color: #fff; cursor: pointer;
  transition: background .15s, opacity .15s;
}
.send-btn .ic { stroke-width: 2.2; }
.send-btn:hover:not(:disabled) { background: var(--blue-hover); }
.send-btn:disabled { background: var(--border-strong); cursor: default; }
.composer-note { max-width: 780px; margin: 10px auto 0; text-align: center; font-size: 0.75rem; color: var(--text-3); }

/* =============================== DOCUMENTS =============================== */
.search { position: relative; margin-bottom: 18px; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.search input {
  width: 100%; height: 46px; padding: 0 14px 0 42px;
  border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--surface); color: var(--text);
  font: inherit; font-size: 16px;
}
.search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--tint-strong); }

.doc-list { display: grid; gap: 10px; }
.doc-card {
  display: flex; align-items: center; gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.doc-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow-md); }
.doc-tile {
  position: relative; flex-shrink: 0;
  width: 44px; height: 52px; border-radius: 8px;
  display: grid; place-items: end center; padding-bottom: 7px;
  background: var(--tint); color: var(--accent-text);
  font-size: 0.625rem; font-weight: 500; letter-spacing: .06em;
}
.doc-tile::before {
  content: ""; position: absolute; top: 0; right: 0;
  border-style: solid; border-width: 0 12px 12px 0;
  border-color: transparent var(--bg) var(--tint-strong) transparent;
  border-radius: 0 8px 0 3px;
}
.doc-tile.pdf { background: var(--blue); color: #fff; }
.doc-tile.pdf::before { border-color: transparent var(--bg) var(--navy) transparent; }
.doc-tile.docx { background: var(--blue-300); color: var(--navy); }
.doc-tile.docx::before { border-color: transparent var(--bg) var(--blue-400) transparent; }
.doc-info { flex: 1; min-width: 0; }
.doc-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-meta { font-size: 0.8125rem; color: var(--text-3); margin-top: 2px; }
.doc-actions { display: flex; gap: 8px; flex-shrink: 0; }
.doc-unlinked { font-size: 0.75rem; color: var(--text-3); align-self: center; }

.empty-state { text-align: center; padding: 56px 24px; border: 1px dashed var(--border-strong); border-radius: 14px; color: var(--text-2); }
.empty-state .empty-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--tint); color: var(--accent-text); margin-bottom: 14px; }
.empty-state .empty-ic .ic { width: 24px; height: 24px; }
.empty-state h3 { font-size: 1.25rem; color: var(--text); margin-bottom: 6px; }
.empty-state p { max-width: 380px; margin: 0 auto; font-size: 0.875rem; }
.empty-state .btn { margin-top: 18px; }

.skeleton { height: 86px; border-radius: 12px; background: linear-gradient(90deg, var(--surface-2), var(--bg-soft), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* =============================== SETTINGS =============================== */
.card { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 6px 22px; margin-bottom: 16px; }
.card-title { font-size: 1.0625rem; padding: 16px 0 6px; }
.profile-card { display: flex; align-items: center; gap: 16px; padding: 20px 22px; }
.profile-meta { min-width: 0; }
.profile-email { font-family: var(--font-display); font-size: 1.125rem; overflow: hidden; text-overflow: ellipsis; }
.profile-company { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text-2); font-size: 0.875rem; margin-top: 2px; }
.badge { font-size: 0.6875rem; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--tint); color: var(--accent-text); font-weight: 500; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid var(--border); }
.card-title + .setting-row { border-top: none; }
.setting-row[hidden] { display: none; }
.setting-name { font-weight: 500; }
.setting-desc { font-size: 0.8125rem; color: var(--text-3); margin-top: 2px; }
.segmented { display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); flex-shrink: 0; }
.segmented button {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px; border: none; border-radius: 6px;
  background: transparent; color: var(--text-2); font-size: 0.8125rem; cursor: pointer;
}
.segmented button .ic { width: 15px; height: 15px; }
.segmented button[aria-checked="true"] { background: var(--surface); color: var(--accent-text); box-shadow: var(--shadow-sm); font-weight: 500; }
.privacy-list { list-style: none; margin: 0; padding: 4px 0 16px; display: grid; gap: 14px; }
.privacy-list li { display: flex; gap: 12px; font-size: 0.875rem; color: var(--text-2); }
.privacy-list .ic { color: var(--accent-text); margin-top: 2px; }
.privacy-list strong { color: var(--text); font-weight: 500; }

/* =============================== MOBILE =============================== */
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .sidebar { display: none; }
  .mobile-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 12px 10px 16px;
    padding-top: max(10px, env(safe-area-inset-top));
    border-bottom: 1px solid var(--border);
    background: var(--bg);
  }
  .mobile-top .brand-mark { width: 30px; height: 30px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    background: var(--bg);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tab {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 9px 0 8px;
    font-size: 0.6875rem; color: var(--text-3); text-decoration: none;
  }
  .tab .ic { width: 22px; height: 22px; }
  .tab.active { color: var(--accent-text); }
  .tab.active .ic { stroke-width: 2.1; }

  .chat-inner { padding: 20px 16px 16px; }
  .hero-title { font-size: 2rem; }
  .suggestions { grid-template-columns: 1fr; margin-top: 24px; }
  .suggestion:nth-child(n+5) { display: none; }
  .composer-wrap { padding: 6px 12px 10px; }
  .composer-note { display: none; }
  .msg-user .bubble { max-width: 88%; }
  .bot-avatar { display: none; }
  .msg-bot .body { max-width: 100%; }

  .page-inner { padding: 24px 16px 40px; }
  .page-title { font-size: 1.75rem; }
  .doc-card { flex-wrap: wrap; }
  .doc-actions { width: 100%; padding-left: 60px; }
  .card { padding: 4px 16px; }
  .setting-row { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* =============================== SHARED ADDITIONS =============================== */

/* Back button — top-left of every screen that has somewhere to go back to. */
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px 0 8px; margin: 0 0 14px -8px;
  border: none; border-radius: 8px; background: transparent;
  color: var(--text-2); font-size: 0.875rem; text-decoration: none; cursor: pointer;
}
.back-btn:hover { background: var(--surface-2); color: var(--text); }
.back-btn .ic { width: 18px; height: 18px; stroke-width: 2; }
.auth-main > .back-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-main > .back-row .back-btn { margin: 0; }

/* Mobile top bar: back arrow replaces the logo on inner screens. */
.mobile-top .mt-left { display: flex; align-items: center; gap: 4px; min-width: 0; }
.mobile-top .mt-back { display: none; }
.app.inner .mobile-top .mt-back { display: inline-grid; }
.app.inner .mobile-top .brand { display: none; }
.mt-title { display: none; font-family: var(--font-display); font-size: 1.0625rem; }
.app.inner .mt-title { display: block; }
.mt-right { display: flex; align-items: center; gap: 2px; }
.text-btn { border: none; background: transparent; color: var(--text-2); font-size: 0.8125rem; padding: 8px 10px; border-radius: 8px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.text-btn:hover { background: var(--surface-2); color: var(--text); }
.text-btn .ic { width: 16px; height: 16px; }
@media (max-width: 760px) { .page-inner > .back-btn { display: none; } }

/* Sidebar log out — labelled, not just an icon. */
.logout-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: none; border-radius: 8px; background: transparent; color: var(--text-2); font-size: 0.875rem; cursor: pointer; }
.logout-row:hover { background: var(--salmon-bg); color: var(--salmon-text); }

/* Company identity in the sidebar */
.company-brand { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.company-brand img { width: 32px; height: 32px; object-fit: contain; border-radius: 6px; background: #fff; flex-shrink: 0; }
.company-brand .cb-initial { width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; background: var(--tint); color: var(--accent-text); font-weight: 500; flex-shrink: 0; }
.company-brand .cb-name { font-size: 0.875rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.company-brand .cb-sub { font-size: 0.75rem; color: var(--text-3); }
.company-brand:empty { display: none; }

/* Preview banner (admin viewing the employee app) */
.preview-banner { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 8px 16px; background: var(--navy); color: #fff; font-size: 0.8125rem; text-align: center; }
.preview-banner a { color: #fff; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.app.has-banner { grid-template-rows: auto 1fr; }
.app.has-banner .preview-banner { grid-column: 1 / -1; }

/* Markdown inside answers */
.md p { margin: 0 0 10px; }
.md p:last-child { margin-bottom: 0; }
.md ul, .md ol { margin: 4px 0 10px; padding-left: 22px; }
.md li { margin: 3px 0; }
.md li::marker { color: var(--accent-text); }
.md strong { font-weight: 500; color: var(--text); }
.md code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.msg-bot .bubble.md { white-space: normal; }

/* Escalation / crisis actions */
.esc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.msg-crisis .bubble { padding: 16px 18px; border-radius: 4px 14px 14px 14px; background: var(--tint); border-left: 3px solid var(--blue); }
.msg-crisis .bubble-label { color: var(--accent-text); }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(24, 29, 48, .45); backdrop-filter: blur(2px); display: grid; place-items: center; padding: 16px; z-index: 70; animation: fade .15s ease-out; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 440px; background: var(--surface); border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: 24px; animation: rise .2s ease-out; }
.modal h2 { font-size: 1.375rem; margin-bottom: 8px; }
.modal p { color: var(--text-2); font-size: 0.9375rem; }
.modal .field { margin-top: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.btn-danger-solid { background: #B71C46; color: #fff; }
.btn-danger-solid:hover:not(:disabled) { background: #A81A41; }

/* Generic form fields outside the auth card */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: 4px 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field textarea { padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius); font: inherit; font-size: 16px; color: var(--text); background: var(--surface); resize: vertical; min-height: 320px; line-height: 1.5; }
.field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--tint-strong); }
.card-actions { display: flex; align-items: center; gap: 12px; padding: 0 0 18px; }
.card-desc { color: var(--text-3); font-size: 0.875rem; margin: -2px 0 10px; }
@media (max-width: 760px) { .form-grid { grid-template-columns: 1fr; } }

/* Copy rows (invite link, company ID) */
.copy-row { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 10px; }
.copy-row code { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Logo uploader */
.logo-row { display: flex; align-items: center; gap: 18px; padding: 4px 0 18px; flex-wrap: wrap; }
.logo-preview { width: 84px; height: 84px; border-radius: 14px; border: 1px dashed var(--border-strong); display: grid; place-items: center; overflow: hidden; background: #fff; color: var(--text-3); flex-shrink: 0; }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.logo-preview .ic { width: 26px; height: 26px; }
.logo-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Upload dropzone + progress */
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 32px 20px; border: 1.5px dashed var(--border-strong); border-radius: 14px;
  background: var(--bg-soft); color: var(--text-2); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--blue-300); background: var(--tint); }
.dropzone.dragover { border-style: solid; border-color: var(--blue); background: var(--tint); }
.dz-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--surface); color: var(--accent-text); box-shadow: var(--shadow-sm); margin-bottom: 6px; }
.dz-icon .ic { width: 24px; height: 24px; }
.dz-title { color: var(--text); font-weight: 500; }
.dz-sub { font-size: 0.8125rem; color: var(--text-3); }

.upload-queue { display: grid; gap: 10px; margin-top: 14px; }
.upload-queue:empty { display: none; }
.upload-item { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.ui-top { display: flex; align-items: center; gap: 12px; }
.ui-name { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-status { font-size: 0.8125rem; color: var(--text-3); flex-shrink: 0; }
.ui-hint { font-size: 0.75rem; color: var(--text-3); margin-top: 8px; }
.upload-item.done .ui-status { color: var(--accent-text); }
.upload-item.failed { border-color: var(--salmon); background: var(--salmon-bg); }
.upload-item.failed .ui-status, .upload-item.failed .ui-hint { color: var(--salmon-text); }
.progress { position: relative; height: 6px; margin-top: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress-bar { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--blue-400), var(--blue)); transition: width .25s ease; }
.progress.indeterminate .progress-bar { width: 35%; animation: slide 1.3s ease-in-out infinite; }
@keyframes slide { 0% { left: -35%; } 100% { left: 100%; } }
.upload-item.done .progress-bar { width: 100% !important; animation: none; left: 0; }
.upload-item.failed .progress { display: none; }

/* Admin documents table */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 32px 0 12px; }
.section-head h2 { font-size: 1.25rem; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); font-size: 0.875rem; }
.data-table th { text-align: left; font-weight: 500; font-size: 0.75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); padding: 12px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table .t-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.data-table .t-name .doc-tile { width: 32px; height: 38px; font-size: 0.5rem; padding-bottom: 4px; }
.data-table .t-name .doc-tile::before { border-width: 0 9px 9px 0; }
.data-table .t-title { font-weight: 500; overflow-wrap: anywhere; }
.data-table .t-sub { font-size: 0.75rem; color: var(--text-3); }
.data-table .t-actions { display: flex; justify-content: flex-end; gap: 4px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 500; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ready { background: var(--tint); color: var(--accent-text); }
.pill-processing { background: var(--surface-2); color: var(--text-2); }
.pill-processing::before { animation: blink 1.2s infinite; }
.pill-error { background: var(--salmon-bg); color: var(--salmon-text); }
.access { font-size: 0.8125rem; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.access .ic { width: 15px; height: 15px; color: var(--accent-text); }
.access.none { color: var(--text-3); }
.icon-btn.danger:hover { background: var(--salmon-bg); color: var(--salmon-text); }
@media (max-width: 760px) {
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table thead { display: none; }
  .data-table tr { padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .data-table tr:last-child { border-bottom: none; }
  .data-table td { border: none; padding: 4px 0; }
  .data-table td[data-label]:not([data-label=""])::before { content: attr(data-label) ": "; color: var(--text-3); font-size: 0.75rem; }
  .data-table .t-actions { justify-content: flex-start; margin-top: 6px; }
}

/* Instructions disclosure */
.tips { margin: 0 0 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.tips summary { cursor: pointer; padding: 12px 16px; font-size: 0.875rem; font-weight: 500; color: var(--text-2); display: flex; align-items: center; gap: 8px; list-style: none; }
.tips summary::-webkit-details-marker { display: none; }
.tips summary .ic { color: var(--accent-text); }
.tips ul { margin: 0; padding: 0 16px 14px 42px; color: var(--text-2); font-size: 0.875rem; display: grid; gap: 6px; }

/* Templates */
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.template-card { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.template-card:hover { border-color: var(--blue-300); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.template-card .tc-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--tint); color: var(--accent-text); margin-bottom: 6px; }
.template-card .tc-name { font-weight: 500; }
.template-card .tc-desc { font-size: 0.8125rem; color: var(--text-3); }
.template-card.other { border-style: dashed; }

.danger-card { border-color: color-mix(in srgb, var(--salmon) 55%, var(--border)); }
.danger-card .card-title { color: var(--salmon-text); }

/* =============================== ENTRY PAGES =============================== */
.entry-page { min-height: 100dvh; display: flex; flex-direction: column; }
.entry-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 32px; }
.entry-top .actions { display: flex; gap: 10px; }
.hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 20px 40px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 360px at 50% 35%, var(--tint), transparent 70%); z-index: -1; pointer-events: none; }
.hero .eyebrow { margin-bottom: 14px; }
.hero-name { font-family: var(--font-display); font-size: clamp(3.25rem, 9vw, 6rem); line-height: 1; letter-spacing: -0.03em; font-weight: 400; margin: 0; }
.hero-hook { font-size: clamp(1.0625rem, 2.2vw, 1.375rem); color: var(--text-2); margin-top: 18px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.hero-actions .btn { height: 48px; padding: 0 30px; font-size: 1rem; min-width: 132px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1040px; width: 100%; margin: 0 auto; padding: 0 24px 56px; }
.feature { padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.feature .f-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--tint); color: var(--accent-text); margin-bottom: 14px; }
.feature h3 { font-size: 1.125rem; margin-bottom: 6px; }
.feature p { font-size: 0.875rem; color: var(--text-2); }
.entry-foot { text-align: center; font-size: 0.8125rem; color: var(--text-3); padding: 0 20px 28px; }
.choice-grid { display: grid; gap: 12px; margin-top: 8px; }
.choice-card { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.choice-card:hover { border-color: var(--blue-300); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.choice-card .cc-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--accent-text); flex-shrink: 0; }
.choice-card .cc-title { font-weight: 500; }
.choice-card .cc-desc { font-size: 0.8125rem; color: var(--text-3); margin-top: 2px; }
.choice-card .cc-arrow { margin-left: auto; color: var(--text-3); }
.join-chip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--tint); margin-bottom: 18px; }
.join-chip img { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; background: #fff; }
.join-chip .jc-label { font-size: 0.75rem; color: var(--text-3); }
.join-chip .jc-name { font-weight: 500; }
.info-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); font-size: 0.875rem; margin-bottom: 16px; }
.info-note .ic { color: var(--accent-text); margin-top: 2px; }
@media (max-width: 760px) {
  .entry-top { padding: 16px; }
  .entry-top .actions .btn-outline { display: none; }
  .features { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; width: 100%; max-width: 320px; }
}
@media (max-width: 760px) { .app.has-banner { grid-template-rows: auto auto 1fr auto; } }

/* =====================================================================
   V2 ADDITIONS (Nov 2026): single login, company logo in the corner,
   chat history + incognito, Contact HR / Inbox, employees, insights,
   settings layout, policy editor, charts, owner metrics page.
   ===================================================================== */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.min-0 { min-width: 0; }
.pre-wrap { white-space: pre-wrap; }
.muted, .field-hint.muted { color: var(--text-3); }
.ic-sm { width: 15px; height: 15px; }
.modal p { white-space: pre-line; }
.modal-wide { max-width: 560px; }
.modal-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.modal-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.modal .form-error { margin-top: 12px; }
.modal textarea { min-height: 120px; }
.retry-btn { margin-top: 12px; }
.skeleton-gap { margin-bottom: 10px; }
.t-error { color: var(--salmon-text); }
.doc-tile-sm { width: 30px; height: 36px; font-size: 0.5rem; padding-bottom: 4px; }
.ui-status-done { display: inline-flex; gap: 4px; }
.logo-hint { margin-top: 8px; }
.fine-print { font-size: 0.8125rem; color: var(--text-3); margin: 12px 2px 0; }
.list-empty { padding: 18px; border: 1px dashed var(--border-strong); border-radius: 12px; color: var(--text-3); font-size: 0.875rem; }

/* ---------- Auth pages: one centred column, no side image ---------- */
.auth-single { grid-template-columns: 1fr; }
.auth-card-wide { max-width: 460px; }
.auth-title-sm { font-size: 2rem; }
.auth-single .auth-title { margin-bottom: 26px; }
.auth-single .auth-title-sm, .auth-single .auth-title:has(+ .auth-sub) { margin-bottom: 10px; }
.status-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--tint); color: var(--accent-text); margin-bottom: 18px; }
.status-ic .ic { width: 24px; height: 24px; }

/* ---------- Brand block with the company logo in the corner ---------- */
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.brand-text .brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.brand-sub { font-size: 0.75rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.brand-sub:empty { display: none; }
.brand-logo { width: 38px; height: 38px; border-radius: 9px; object-fit: contain; background: #fff; border: 1px solid var(--border); flex-shrink: 0; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sidebar-close { display: none; }
.mobile-top .brand-logo { width: 30px; height: 30px; }
.mobile-top .brand-sub { display: none; }

/* ---------- Sidebar: badges, recent chats, employee-view switch ---------- */
.nav-badge { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.6875rem; font-weight: 500; text-align: center; line-height: 1.6; }
.nav-badge:empty { display: none; }
.tab-ic { position: relative; display: inline-flex; }
.tab-ic .nav-badge { position: absolute; top: -6px; left: 14px; margin: 0; min-width: 17px; padding: 0 4px; font-size: 0.625rem; }
.tabbar.tabbar-4 { grid-template-columns: repeat(4, 1fr); }
.tabbar.tabbar-5 { grid-template-columns: repeat(5, 1fr); }

.history { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.history-title { padding: 0 12px 6px; font-size: 0.6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.history-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.history-empty { padding: 4px 12px; font-size: 0.8125rem; color: var(--text-3); }
.history-item { display: flex; align-items: center; border-radius: 8px; }
.history-item:hover, .history-item:focus-within { background: var(--surface-2); }
.history-item.active { background: var(--tint); }
.history-open { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 4px 7px 12px; border: none; background: transparent; color: var(--text-2); text-align: left; cursor: pointer; font-size: 0.8125rem; }
.history-item.active .history-open { color: var(--accent-text); }
.history-name { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-time { font-size: 0.6875rem; color: var(--text-3); }
.history-del { width: 28px; height: 28px; margin-right: 4px; opacity: 0; }
.history-del .ic { width: 14px; height: 14px; }
.history-item:hover .history-del, .history-del:focus-visible { opacity: 1; }
@media (hover: none) { .history-del { opacity: .7; } }
.sidebar .history + .sidebar-bottom { margin-top: 0; }

.view-switch { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-size: 0.875rem; }
.view-switch:hover { border-color: var(--blue-300); background: var(--tint); }
.view-switch > .ic:first-child { color: var(--accent-text); }
.view-switch span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.view-switch strong { font-weight: 500; }
.view-switch small { font-size: 0.75rem; color: var(--text-3); }
.drawer-backdrop { display: none; }

/* ---------- Chat header + incognito ---------- */
.chat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 24px; border-bottom: 1px solid var(--border); }
.chat-title { font-size: 0.875rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.incognito-toggle { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font-size: 0.8125rem; cursor: pointer; flex-shrink: 0; }
.incognito-toggle .ic { width: 15px; height: 15px; }
.incognito-toggle:hover { border-color: var(--text-3); color: var(--text); }
.incognito-toggle.on { background: #252D4A; border-color: #252D4A; color: #fff; }
:root[data-theme="dark"] .incognito-toggle.on { background: #F5F2ED; border-color: #F5F2ED; color: #252D4A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .incognito-toggle.on { background: #F5F2ED; border-color: #F5F2ED; color: #252D4A; } }
.incognito-banner { display: flex; gap: 10px; align-items: flex-start; padding: 10px 24px; background: var(--surface-2); color: var(--text-2); font-size: 0.8125rem; border-bottom: 1px solid var(--border); }
.incognito-banner .ic { width: 16px; height: 16px; margin-top: 2px; }
.is-incognito .composer { border-style: dashed; }
.msg-actions { gap: 2px; }

/* ---------- Page headers with an action on the right ---------- */
.page-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.page-head-row .btn { flex-shrink: 0; margin-top: 4px; }
.page-title-sm { font-size: 1.5rem; margin-bottom: 4px; }
.page-inner-wide { max-width: 980px; }
.back-btn-inline { display: inline-flex !important; }
.notice-block { max-width: none; margin: 0 0 16px; align-items: center; }
.notice-block span { flex: 1; }
.notice-info { background: var(--tint); color: var(--text); }
.notice-info > .ic { color: var(--accent-text); }

/* ---------- Message threads (Contact HR + admin Inbox) ---------- */
.compose-card { padding-top: 6px; }
.form-stack { display: grid; gap: 14px; padding: 4px 0 16px; }
.form-stack-pad { padding-top: 18px; }
.field textarea.textarea-sm { min-height: 130px; }
.field textarea.textarea-xs { min-height: 76px; }
textarea.textarea-sm { width: 100%; min-height: 96px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius); font: inherit; font-size: 16px; color: var(--text); background: var(--surface); resize: vertical; line-height: 1.5; }
textarea.textarea-sm:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--tint-strong); }
.thread-list { display: grid; gap: 8px; margin-bottom: 20px; }
.thread-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.thread-row:hover { border-color: var(--blue-200); box-shadow: var(--shadow-md); }
.thread-main { flex: 1; min-width: 0; }
.thread-subject { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-row.unread .thread-subject { font-weight: 500; }
.thread-preview { font-size: 0.8125rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.thread-from { font-size: 0.75rem; color: var(--text-3); margin-top: 2px; }
.thread-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.thread-time { font-size: 0.75rem; color: var(--text-3); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.thread-messages { display: grid; gap: 14px; margin: 18px 0; }
.tmsg { max-width: 82%; }
.tmsg-mine { justify-self: end; }
.tmsg-head { font-size: 0.75rem; color: var(--text-3); margin-bottom: 4px; }
.tmsg-mine .tmsg-head { text-align: right; }
.tmsg-body { padding: 12px 16px; border-radius: 4px 14px 14px 14px; background: var(--surface-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.tmsg-mine .tmsg-body { border-radius: 14px 4px 14px 14px; background: var(--tint); }
.reply-box { display: grid; gap: 10px; }
.reply-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.reply-actions .form-error { flex: 1; }

/* ---------- Settings: section list on the left ---------- */
.settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.settings-nav { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 2px; }
.settings-nav button { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: none; border-radius: 8px; background: transparent; color: var(--text-2); font: inherit; font-size: 0.875rem; text-align: left; cursor: pointer; }
.settings-nav button:hover { background: var(--surface-2); color: var(--text); }
.settings-nav button.active { background: var(--tint); color: var(--accent-text); font-weight: 500; }
.settings-nav .ic { width: 17px; height: 17px; }
.settings-heading { font-size: 1.25rem; margin-bottom: 14px; }
.settings-section h3.card-title { font-size: 1rem; }
.setting-row-first { border-top: none; }
.quiet-link { margin: 18px 4px 0; font-size: 0.8125rem; }
.link-btn { border: none; background: none; padding: 0; font: inherit; color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--text); }
.link-danger:hover { color: var(--salmon-text); }
.email-status:empty { display: none; }
.email-status { padding-bottom: 16px; }
@media (max-width: 760px) {
  .settings { grid-template-columns: 1fr; gap: 16px; }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .settings-nav button { flex-shrink: 0; border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; }
  .settings-nav button.active { border-color: transparent; }
  .settings-heading { display: none; }
}

/* Switch */
.switch { position: relative; display: inline-flex; flex-shrink: 0; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch-track { width: 44px; height: 26px; border-radius: 999px; background: var(--border-strong); transition: background .15s; position: relative; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .15s; }
.switch input:checked + .switch-track { background: var(--blue); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--blue-400); outline-offset: 2px; }

/* Email chips + inline add */
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 999px; background: var(--tint); font-size: 0.8125rem; max-width: 100%; }
.chip span { overflow: hidden; text-overflow: ellipsis; }
.chip-x { display: grid; place-items: center; width: 20px; height: 20px; border: none; border-radius: 50%; background: transparent; color: var(--text-2); cursor: pointer; }
.chip-x:hover { background: var(--surface); color: var(--salmon-text); }
.chip-x .ic { width: 12px; height: 12px; }
.inline-add { display: flex; gap: 8px; padding-bottom: 12px; }
.inline-add input { flex: 1; min-width: 0; height: 36px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius); font: inherit; font-size: 16px; color: var(--text); background: var(--surface); }
.inline-add input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--tint-strong); }

/* ---------- Employees ---------- */
.steps { margin: 4px 0 14px; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); font-size: 0.9375rem; }
.steps strong { color: var(--text); font-weight: 500; }
.member-list { display: grid; gap: 8px; }
.member-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.member-info { flex: 1; min-width: 0; }
.member-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-meta { font-size: 0.75rem; color: var(--text-3); }
.member-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ---------- Insights ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stat { padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.stat-label { font-size: 0.8125rem; color: var(--text-2); }
.stat-value { font-family: var(--font-display); font-size: 1.875rem; line-height: 1.2; margin-top: 4px; }
.stat-note { font-size: 0.75rem; color: var(--text-3); margin-top: 2px; }
.card-pad { padding: 18px 22px; }
.locked-card { text-align: center; padding: 36px 24px; border: 1px dashed var(--border-strong); border-radius: 14px; color: var(--text-2); }
.locked-card .empty-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--tint); color: var(--accent-text); margin-bottom: 14px; }
.locked-card h3 { font-size: 1.25rem; color: var(--text); margin-bottom: 6px; }
.locked-card p { max-width: 460px; margin: 0 auto; font-size: 0.875rem; }
.locked-list { list-style: none; padding: 0; margin: 14px 0 0; font-size: 0.875rem; color: var(--text); display: grid; gap: 4px; }
.faq-list { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.faq-row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.faq-row:last-child { border-bottom: none; }
.faq-rank { width: 22px; font-size: 0.8125rem; color: var(--text-3); padding-top: 2px; }
.faq-main { flex: 1; min-width: 0; }
.faq-q { overflow-wrap: anywhere; }
.faq-track { height: 6px; border-radius: 999px; background: var(--surface-2); margin: 8px 0 6px; overflow: hidden; }
.faq-fill { height: 100%; border-radius: 999px; background: var(--blue); }
.faq-meta { font-size: 0.75rem; color: var(--text-3); }
.faq-count { font-family: var(--font-display); font-size: 1.125rem; }
.report-card { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin-bottom: 8px; display: grid; gap: 6px; }
.report-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.report-note { font-weight: 500; overflow-wrap: anywhere; }
.report-q, .report-a { font-size: 0.875rem; color: var(--text-2); overflow-wrap: anywhere; }
.report-time { font-size: 0.75rem; color: var(--text-3); }

/* ---------- Policy editor ---------- */
.resume-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 14px; border-radius: 12px; background: var(--tint); }
.resume-card > div { flex: 1; }
.editor-card { padding: 20px 22px 6px; }
.editor-card > .field { margin-bottom: 14px; }
.editor-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.editor-spacer { flex: 1; }
.select-wrap select { height: 30px; padding: 0 28px 0 10px; border: 1px solid var(--blue-400); border-radius: var(--radius); background: var(--surface); color: var(--accent-text); font: inherit; font-size: 0.8125rem; cursor: pointer; }
.select-wrap select:disabled { opacity: .55; }
.editor-status { font-size: 0.75rem; color: var(--text-3); margin: -6px 0 12px; }
.policy-preview { min-height: 320px; padding: 22px 26px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft); }
.pp-title { font-size: 1.5rem; margin-bottom: 14px; }
.pp-heading { font-family: var(--font-text); font-size: 1rem; font-weight: 500; margin: 18px 0 4px; }
.pp-para { margin-bottom: 10px; color: var(--text-2); max-width: 68ch; }
mark.blank { background: var(--salmon-bg); color: var(--salmon-text); padding: 0 3px; border-radius: 3px; }

/* ---------- Bar chart ---------- */
.chart-plot { position: relative; height: 150px; border-bottom: 1px solid var(--border-strong); border-top: 1px dashed var(--border); }
.chart-max { position: absolute; top: -9px; left: 0; padding-right: 6px; background: var(--surface); font-size: 0.6875rem; color: var(--text-3); z-index: 1; }
.chart-cols { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.chart-col { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; min-width: 0; cursor: default; outline: none; }
.chart-bar { width: 100%; max-width: 28px; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--blue); }
.chart-bar.zero { background: var(--border-strong); min-height: 1px; }
.chart-col:hover .chart-bar, .chart-col:focus-visible .chart-bar { background: var(--navy); }
:root[data-theme="dark"] .chart-bar { background: var(--blue-400); }
:root[data-theme="dark"] .chart-col:hover .chart-bar { background: var(--blue-200); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chart-bar { background: var(--blue-400); } :root:not([data-theme="light"]) .chart-col:hover .chart-bar { background: var(--blue-200); } }
.chart-tip { position: absolute; top: 4px; transform: translateX(-50%); display: none; flex-direction: column; padding: 6px 10px; border-radius: 8px; background: #252D4A; color: #fff; font-size: 0.75rem; white-space: nowrap; pointer-events: none; z-index: 2; }
.chart-tip.show { display: flex; }
.chart-tip strong { font-weight: 500; font-size: 0.8125rem; }
.chart-tip span { color: #B9C5D6; }
.chart-axis { display: flex; gap: 2px; margin-top: 6px; }
.chart-axis span { flex: 1; min-width: 0; font-size: 0.6875rem; color: var(--text-3); text-align: center; white-space: nowrap; overflow: visible; }
.chart-empty { padding: 28px 0; text-align: center; color: var(--text-3); font-size: 0.875rem; }

/* ---------- Owner metrics page (/ops/) ---------- */
.ops { max-width: 1180px; margin: 0 auto; padding: 24px 24px 80px; }
.ops-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.ops-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ops-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 18px 0 22px; overflow-x: auto; }
.ops-tabs button { padding: 10px 14px; border: none; border-bottom: 2px solid transparent; background: none; color: var(--text-2); font: inherit; font-size: 0.9375rem; cursor: pointer; white-space: nowrap; }
.ops-tabs button.active { color: var(--accent-text); border-bottom-color: var(--blue); font-weight: 500; }
.ops h2 { font-size: 1.125rem; margin: 30px 0 4px; }
.ops .section-note { font-size: 0.8125rem; color: var(--text-3); margin-bottom: 12px; }
.ops-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ops-grid .card { margin: 0; padding: 16px 20px 18px; }
.ops-grid .card h3 { font-family: var(--font-text); font-size: 0.875rem; font-weight: 500; margin-bottom: 14px; }
.ops .data-table { font-size: 0.8125rem; }
.ops .data-table td, .ops .data-table th { padding: 9px 12px; }
.ops .data-table td.num, .ops .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.ops .table-scroll { overflow-x: auto; }
.ops .wrap-cell { max-width: 420px; overflow-wrap: anywhere; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; }
.status-pill .ic { width: 15px; height: 15px; }
.status-ok { color: var(--accent-text); }
.status-bad { color: var(--salmon-text); }
.ops-gate { max-width: 460px; margin: 12vh auto; text-align: center; padding: 0 20px; }
.ops-gate h1 { font-size: 1.75rem; margin-bottom: 10px; }
.ops-gate p { color: var(--text-2); margin-bottom: 18px; }
.ops select { height: 36px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; font-size: 0.875rem; }
@media (max-width: 860px) { .ops-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile: recent chats drawer, tighter headers ---------- */
@media (max-width: 760px) {
  .chat-top, .incognito-banner { padding-left: 16px; padding-right: 16px; }
  .page-head-row { flex-direction: column; }
  .tmsg { max-width: 94%; }
  .member-row { flex-wrap: wrap; }
  .member-actions { width: 100%; padding-left: 46px; }
  .resume-card { flex-wrap: wrap; }
  .app.drawer-open .sidebar {
    display: flex; position: fixed; inset: 0 auto 0 0; z-index: 40;
    width: min(86vw, 320px); box-shadow: var(--shadow-lg);
    padding-top: max(20px, env(safe-area-inset-top));
  }
  .app.drawer-open .drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(24, 29, 48, .45); }
  .app.drawer-open .sidebar-close { display: inline-grid; }
  .tabbar .tab { font-size: 0.625rem; }
}


/* V2.1 (Nov 2026): in-app messaging removed. Contact HR now just shows
   the HR email the admin set; approvals can promote to admin. */
.hr-contact-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 22px; }
.hr-avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--tint); color: var(--accent-text); font-weight: 500; font-size: 1.125rem; flex-shrink: 0; }
.hr-avatar .ic { width: 24px; height: 24px; }
.hr-meta { flex: 1; min-width: 0; }
.hr-name { font-family: var(--font-display); font-size: 1.125rem; }
.hr-contact-card .card-actions { padding: 0; margin: 0; flex-wrap: wrap; }
.member-actions { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) { .member-actions { justify-content: flex-start; } }

/* ---------- Nov 2026: member counts, HR contact as text ---------- */
.count-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; padding: 0 8px; margin-left: 8px; border-radius: 999px; background: var(--tint); color: var(--navy); font-family: var(--font-text); font-size: 0.8125rem; font-weight: 500; vertical-align: middle; }
:root[data-theme="dark"] .count-pill { color: var(--text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .count-pill { color: var(--text); } }
.hr-details { display: flex; flex-direction: column; gap: 6px; flex-basis: 100%; }
.hr-details-sm { margin-top: 12px; gap: 4px; }
.hr-line { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; color: var(--text); user-select: text; overflow-wrap: anywhere; }
.hr-line .ic { width: 16px; height: 16px; color: var(--blue-400); }
.hr-line-sm { font-size: 0.875rem; }
.hr-line-label { color: var(--text-3); min-width: 44px; }
.hr-line-value { font-weight: 500; }
.hr-line-intro { font-size: 0.8125rem; color: var(--text-2); }
