/* EvolvTal design system. One stylesheet: tokens, base, layout, components, pages, print. */

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

:root {
  --font-display: 'Source Serif 4', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --bg: #f3f6fa;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #eef2f8;
  --ink: #0e1a33;
  --ink-2: #2f3b54;
  --muted: #58595b;
  --line: #dce3ec;
  --line-2: #c3cdda;
  --brand: #00539b;
  --brand-600: #012169;
  --brand-50: #e7f0f8;
  --brand-100: #cfe1f1;
  --teal: #4e732a;
  --teal-50: #edf3e4;
  --amber: #a4521b; /* darkened Duke tertiary orange #CC6628: the palette value is 3.8:1 on white, below the 4.5:1 needed for small text */
  --amber-50: #fdf0e1;
  --red: #ae3e37;
  --red-50: #fbeceb;
  --violet: #693e71;
  --violet-50: #f3edf4;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 26, 43, 0.05), 0 1px 3px rgba(15, 26, 43, 0.04);
  --shadow-lg: 0 12px 32px rgba(15, 26, 43, 0.14);
  --topbar: 60px;
  --focus: 0 0 0 3px rgba(0, 83, 155, 0.3);
  --on-brand: #fff;
  --heading: #012169;
  /* Duke palette reference (Duke School of Medicine brand guide). Use these exact values for solid colours. */
  --duke-royal: #00539b;
  --duke-navy: #012169;
  --duke-gray: #58595b;
  --duke-green: #4e732a;
  --duke-piedmont: #a1b70d;
  --duke-orange: #f8702b; /* EvolvTal page orange (was Duke orange #f28521) */
  --evt-portland: #ff5a36; /* EvolvTal logo arrow */
  --evt-pale-blue: #b4d9f0;
  --duke-purple: #693e71;
  --duke-ironweed: #993399;
  --duke-red: #dc4a38;
  --duke-shale: #0577b1;
  --duke-yellow: #f6c867;
  --duke-gradient: linear-gradient(135deg, #00539b, #012169);
  /* Navigation rail: Duke Navy, with the lighter Duke blue for the current page. */
  --side-bg: #012169;
  --side-ink: #dbe6f5;
  --side-muted: #9db3d6;
  --side-line: rgba(255, 255, 255, 0.14);
  --side-hover: rgba(255, 255, 255, 0.09);
  --side-active: rgba(255, 255, 255, 0.16);
  --side-accent: #6ab3e1;
  --side-alert: #f8702b;
  --side-alert-ink: #012169;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h1 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--heading);
}
h2 {
  font-size: 1.05rem;
  font-weight: 650;
}
h3 {
  font-size: 0.95rem;
  font-weight: 600;
}
p {
  margin: 0 0 0.75rem;
}
small,
.small {
  font-size: 0.8125rem;
}
.muted {
  color: var(--muted);
}
.num {
  font-variant-numeric: tabular-nums;
}
a {
  color: var(--brand);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Form controls ---------- */
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-weight: 550;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.12s,
    border-color 0.12s;
}
.btn:hover {
  background: var(--surface-2);
  border-color: #94a3b8;
}
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.link:focus-visible,
.nav-item:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}
.btn.primary:hover {
  background: var(--brand-600);
}
.btn.danger {
  color: var(--red);
  border-color: #f1b8b3;
}
.btn.danger:hover {
  background: var(--red-50);
}
.btn.ghost {
  border-color: transparent;
  background: transparent;
}
.btn.ghost:hover {
  background: var(--surface-3);
}
.btn.small {
  min-height: 30px;
  padding: 4px 10px;
  font-size: 0.8125rem;
}
.btn.block {
  width: 100%;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a.btn {
  text-decoration: none;
}
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
/* Reminder draft (HR) */
.waiting-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.remind-btn {
  flex: none;
}
.remind-preview {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}
.remind-body {
  margin: 4px 0 0;
  white-space: pre-wrap;
  font: inherit;
  font-size: 0.875rem;
}
.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-weight: 500;
}
@media (max-width: 700px) {
  .check-line {
    margin-top: 0;
  }
}
.actions.row-actions {
  justify-content: flex-end;
}
.manager-line {
  display: flex;
  gap: 8px;
}
.manager-line input {
  flex: 1;
  min-width: 0;
}
.draft-tools {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}
#draftBody {
  min-height: 220px;
  resize: vertical;
}
.rail-status .remind-btn {
  margin-top: 8px;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--brand);
  font-weight: 550;
  cursor: pointer;
  text-align: left;
  border-radius: 4px;
}
.link:hover {
  text-decoration: underline;
}

label,
.label {
  display: block;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 6px;
}
input:not([type='checkbox']):not([type='radio']):not([type='file']),
select,
textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
}
textarea {
  min-height: 84px;
  resize: vertical;
  line-height: 1.5;
}
input[readonly],
textarea[readonly] {
  background: var(--surface-2);
}
input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}
.field {
  margin-bottom: 14px;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0;
  margin: 0;
}
input[type='checkbox'],
input[type='radio'] {
  accent-color: var(--brand);
  width: 16px;
  height: 16px;
}
.req {
  color: var(--red);
  font-weight: 700;
}
.tag-required {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--amber-50);
  color: var(--amber);
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0;
}

/* ---------- Shell ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--topbar);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.topbar::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #012169, #00539b 62%, #f8702b);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--heading);
  text-decoration: none;
  margin-right: auto;
  font-family: var(--font-display);
  font-weight: 700;
}
.evt-logo {
  display: block;
  height: 26px;
  width: auto;
}
.brand .logo-light,
.brand .logo-dark,
.landing-logo .logo-light,
.landing-logo .logo-dark {
  display: block;
  line-height: 0;
}
.brand .logo-dark,
.landing-logo .logo-dark,
:root[data-theme='dark'] .brand .logo-light,
:root[data-theme='dark'] .landing-logo .logo-light {
  display: none;
}
:root[data-theme='dark'] .brand .logo-dark,
:root[data-theme='dark'] .landing-logo .logo-dark {
  display: block;
}
.landing-logo {
  display: block;
  line-height: 0;
}
.landing-logo .evt-logo {
  height: 30px;
}
.brand-sub .tl {
  display: block;
  line-height: 1.3;
}
.brand-sub {
  font-size: 0.75rem;
  font-weight: 550;
  color: var(--muted);
  letter-spacing: 0;
  padding-left: 12px;
  margin-left: 2px;
  border-left: 1px solid var(--line);
}
.persona {
  display: flex;
  align-items: center;
  gap: 10px;
}
.persona label {
  margin: 0;
  white-space: nowrap;
}
.persona select {
  min-width: 260px;
  max-width: 340px;
}
.proto-chip {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--amber);
  background: var(--amber-50);
  padding: 4px 8px;
  border-radius: 6px;
}
.menu-btn {
  display: none;
}
.shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: calc(100vh - var(--topbar));
}
.sidebar {
  position: sticky;
  top: var(--topbar);
  height: calc(100vh - var(--topbar));
  overflow-y: auto;
  padding: 16px 10px 12px;
  background: var(--side-bg);
  color: var(--side-ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--side-line) transparent;
}
/* Client organisation logo and name at the top of the navigation. */
.org-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--side-line);
  min-width: 0;
}
.org-brand.has-logo {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.org-brand.has-logo .org-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--side-muted);
  white-space: normal;
}
.org-logo {
  max-height: 44px;
  max-width: 200px;
  object-fit: contain;
  flex: none;
  background: #fff;
  border-radius: 6px;
  padding: 2px 4px;
}
.org-mark {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8125rem;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.org-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-group {
  padding: 2px 0;
}
.nav-group + .nav-group {
  border-top: 1px solid var(--side-line);
  padding-top: 6px;
}
.nav-group-label,
.nav-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--side-muted);
  text-align: left;
}
.nav-group-toggle {
  cursor: pointer;
}
.nav-group-toggle > span:first-child {
  flex: 1;
}
.nav-group-toggle:hover {
  color: #fff;
  background: var(--side-hover);
}
.nav-group-toggle svg {
  width: 14px;
  height: 14px;
  flex: none;
  transition: transform 0.15s;
}
.nav-group-toggle[aria-expanded='true'] svg {
  transform: rotate(90deg);
}
.nav-group-toggle .count.mini[hidden],
.nav-group-body[hidden] {
  display: none;
}
.nav-group-toggle .count.mini {
  margin-left: 0;
  min-width: 18px;
  padding: 0 6px;
  font-size: 0.6875rem;
  letter-spacing: 0;
}
.nav-sub-label {
  padding: 8px 10px 2px 14px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--side-muted);
  opacity: 0.8;
}
.nav-item {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--side-ink);
  font-weight: 550;
  font-size: 0.875rem;
  cursor: pointer;
  text-align: left;
}
.nav-item svg {
  width: 18px;
  height: 18px;
  color: var(--side-muted);
  flex: none;
}
.nav-item:hover {
  background: var(--side-hover);
  color: #fff;
}
.nav-item:hover svg {
  color: #fff;
}
.nav-item.active {
  background: var(--side-active);
  color: #fff;
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--side-accent);
}
.nav-item.active svg {
  color: var(--side-accent);
}
.count {
  margin-left: auto;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}
.sidebar .count {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.nav-item.active .count {
  background: #fff;
  color: #012169;
}
.count.hot,
.sidebar .count.hot,
.sidebar .nav-group-toggle .count.mini,
.nav-item.active .count.hot {
  background: var(--side-alert);
  color: var(--side-alert-ink);
}
.sidebar-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--side-line);
}
.me {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px 12px;
}
.sidebar .me strong {
  display: block;
  font-size: 0.875rem;
  color: #fff;
}
.sidebar .me small {
  color: var(--side-muted);
}
.main {
  min-width: 0;
  padding: 28px 32px 64px;
}
.container {
  max-width: 1240px;
  margin: 0 auto;
}
.stale-banner {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

/* ---------- Page header ---------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 6px;
}
.page-head p {
  margin: 6px 0 0;
  color: var(--muted);
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---------- Cards and panels ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  margin-bottom: 18px;
}
.panel.flush {
  padding: 0;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}
.flush > .panel-head {
  padding: 16px 20px 0;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.stat {
  position: relative;
  text-align: left;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.stat:hover {
  border-color: var(--brand-100);
  box-shadow: 0 0 0 3px var(--brand-50);
}
.stat .label {
  margin: 0;
}
.stat .value {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 6px 0 2px;
  font-variant-numeric: tabular-nums;
}
.stat .value small {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}
.stat .hint {
  color: var(--muted);
  font-size: 0.8125rem;
}
.stat .go {
  position: absolute;
  right: 14px;
  top: 14px;
  color: #94a3b8;
}
.stat.warn .value {
  color: var(--amber);
}
.notice {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--ink-2);
  margin-bottom: 14px;
  font-size: 0.875rem;
}
.notice > svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  color: var(--brand);
}
.notice strong {
  color: var(--ink);
}
.notice p {
  margin: 4px 0 0;
}
.notice small {
  color: var(--muted);
}
.notice.warn {
  background: var(--amber-50);
  border-color: #f6d9a5;
}
.notice.warn > svg {
  color: var(--amber);
}
.notice.error {
  background: var(--red-50);
  border-color: #f4c2bd;
}
.notice.error > svg {
  color: var(--red);
}
.notice.ok {
  background: var(--teal-50);
  border-color: #b5e3da;
}
.notice.ok > svg {
  color: var(--teal);
}
.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

/* ---------- Badges, avatars, people ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
  background: var(--surface-3);
  color: var(--ink-2);
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
}
.badge.plain::before {
  display: none;
}
.badge.goals,
.badge.agreement,
.badge.draft {
  background: #f1f5f9;
  color: #475569;
}
.badge.manager,
.badge.review {
  background: var(--brand-50);
  color: var(--brand-600);
}
.badge.changes {
  background: var(--amber-50);
  color: var(--amber);
}
.badge.approved {
  background: var(--violet-50);
  color: var(--violet);
}
.badge.released {
  background: #b4d9f0;
  color: #012169;
}
.badge.complete,
.badge.agreed {
  background: var(--teal-50);
  color: var(--teal);
}
.badge.confidential {
  background: var(--violet-50);
  color: var(--violet);
}
.avatar {
  --h: 220;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: hsl(var(--h) 55% 32%);
  background: hsl(var(--h) 70% 92%);
}
.avatar.lg {
  width: 52px;
  height: 52px;
  font-size: 1rem;
}
.person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.person strong {
  display: block;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.person small {
  display: block;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Tables ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.toolbar input[type='search'] {
  max-width: 280px;
}
.toolbar select {
  width: auto;
  min-width: 170px;
}
.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  border: 1px solid var(--line-2);
  background: var(--surface);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.8125rem;
  font-weight: 550;
  cursor: pointer;
  color: var(--ink-2);
}
.chip:hover {
  background: var(--surface-2);
}
.chip[aria-pressed='true'] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tr.clickable {
  cursor: pointer;
}
tr.clickable:hover td {
  background: var(--surface-2);
}
td.right,
th.right {
  text-align: right;
}
td small {
  display: block;
  color: var(--muted);
}
.score-cell strong {
  font-variant-numeric: tabular-nums;
}

/* ---------- Tasks ---------- */
.greeting {
  margin-bottom: 22px;
}
.task-group {
  margin-bottom: 18px;
}
.task-group h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.task {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
}
.task:first-of-type {
  border-top: 0;
}
.task .person {
  flex: 1;
}
.task-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.task.attention .task-label {
  color: var(--amber);
}
.task .btn {
  min-width: 96px;
}
.done-state {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 22px;
}
.done-state svg {
  width: 32px;
  height: 32px;
  color: var(--teal);
}

/* ---------- Appraisal page ---------- */
.back {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--muted);
}
.back svg {
  width: 16px;
  height: 16px;
}
.appraisal-head {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.appraisal-head .who {
  flex: 1;
  min-width: 240px;
}
.appraisal-head h1 {
  font-size: 1.5rem;
}
.appraisal-head .meta {
  color: var(--muted);
  margin-top: 4px;
  font-size: 0.875rem;
}
.steps {
  display: flex;
  gap: 0;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
}
.step {
  flex: 1;
  min-width: 110px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}
.step .bar {
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  margin-right: 6px;
}
.step.done .bar {
  background: var(--teal);
}
.step.current .bar {
  background: var(--brand);
}
.step.current {
  color: var(--ink);
}
.appraisal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
  margin-top: 18px;
}
.rail {
  position: sticky;
  top: calc(var(--topbar) + 16px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rail .panel {
  margin: 0;
  padding: 16px 18px;
}
.rail h2 {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.rail-status {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rail-status .turn {
  font-size: 0.875rem;
  color: var(--ink-2);
}
.save-state {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.save-state svg {
  width: 14px;
  height: 14px;
}
.save-state.saved {
  color: var(--teal);
}
.save-state.error {
  color: var(--red);
}
.mini-scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mini-scores div {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 10px;
}
.mini-scores span {
  display: block;
  font-size: 0.6875rem;
  font-weight: 650;
  color: var(--muted);
}
.mini-scores strong {
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}
.mini-scores .overall {
  grid-column: 1 / -1;
  background: var(--brand-50);
}
.mini-scores .overall strong {
  font-size: 1.35rem;
  color: var(--brand-600);
}
.score-source {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 8px;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8125rem;
}
.checklist li {
  display: flex;
  gap: 8px;
}
.checklist svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 2px;
  color: var(--amber);
}
.checklist .ok svg {
  color: var(--teal);
}
.rail-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.jump a {
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-2);
  background: var(--surface-3);
  padding: 4px 8px;
  border-radius: 6px;
}
.jump a:hover {
  background: var(--brand-50);
  color: var(--brand-600);
}

.section {
  scroll-margin-top: calc(var(--topbar) + 16px);
}
.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.section-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-head .spacer {
  flex: 1;
}
.snum {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 0.72rem;
  font-weight: 750;
}
.confidential-panel {
  border-color: #dccfe0;
  background: linear-gradient(0deg, var(--surface), var(--surface)) padding-box;
}
.confidential-panel .snum {
  background: var(--violet-50);
  color: var(--violet);
}
details.panel > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -4px 0;
  border-radius: 6px;
}
details.panel > summary::-webkit-details-marker {
  display: none;
}
details.panel > summary .chev {
  margin-left: auto;
  color: var(--muted);
  transition: transform 0.15s;
}
details.panel[open] > summary .chev {
  transform: rotate(90deg);
}
details.panel[open] > summary {
  margin-bottom: 14px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px 20px;
}
.info-grid label {
  margin-bottom: 2px;
}
.info-grid span {
  font-weight: 550;
}
.item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  background: var(--surface);
}
.item:last-of-type {
  margin-bottom: 0;
}
.item-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}
.item-head h3 {
  font-size: 0.975rem;
}
.item-head .weight {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-600);
  background: var(--brand-50);
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
}
.target {
  font-size: 0.875rem;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.target b {
  color: var(--muted);
  font-weight: 650;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-right: 6px;
}
.assess {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 16px;
}
.assess .text p {
  white-space: pre-wrap;
  font-size: 0.875rem;
}
.assess .text .field:last-child {
  margin-bottom: 0;
}
.ratings {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  align-self: start;
}
.rating-scale {
  display: flex;
  gap: 4px;
}
.rating-scale label {
  margin: 0;
  flex: 1;
}
.rating-scale input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.rating-scale span {
  display: grid;
  place-items: center;
  height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--ink-2);
  cursor: pointer;
  letter-spacing: 0;
}
.rating-scale label:hover span {
  border-color: var(--brand);
}
.rating-scale input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}
.rating-scale input:focus-visible + span {
  box-shadow: var(--focus);
}
.rating-scale .static {
  display: grid;
  place-items: center;
  flex: 1;
  height: 30px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 650;
  color: #94a3b8;
}
.rating-scale .static.on {
  background: var(--ink-2);
  border-color: var(--ink-2);
  color: #fff;
}
.rating-scale.manager .static.on {
  background: var(--brand);
  border-color: var(--brand);
}
.rating-caption {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 5px;
  min-height: 1.1em;
}
.rating-caption strong {
  color: var(--ink-2);
}
.goal-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 12px;
}
.goal-edit .wide {
  grid-column: 1 / -1;
}
.checks {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  font-weight: 600;
}
.checks span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
}
.checks svg {
  width: 14px;
  height: 14px;
}
.checks .ok {
  background: var(--teal-50);
  color: var(--teal);
}
.checks .bad {
  background: var(--red-50);
  color: var(--red);
}
.section-foot {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.score-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.score-cards > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface-2);
}
.score-cards span {
  display: block;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--muted);
}
.score-cards strong {
  display: block;
  margin-top: 6px;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}
.score-cards small {
  color: var(--muted);
}
.score-cards .headline {
  background: var(--brand-50);
  border-color: var(--brand-100);
}
.score-cards .headline strong {
  color: var(--brand-600);
}
.bands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.bands div {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.8125rem;
}
.bands b {
  display: block;
}
.bands .range {
  color: var(--brand-600);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.inline-details > summary {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
}
.sig-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.sig {
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  padding: 14px;
  min-height: 120px;
}
.sig img {
  max-width: 100%;
  height: 70px;
  object-fit: contain;
  display: block;
}
.sig .typed {
  font-family: 'Segoe Script', 'Brush Script MT', cursive;
  font-size: 1.6rem;
  color: #012169;
  margin: 6px 0;
}
.sig .pending {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 16px;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}
.timeline li:first-child {
  border-top: 0;
}
.form-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 20px;
}

/* ---------- Analytics ---------- */
.bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 190px) 1fr 70px;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 8px 6px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.bar-row:hover {
  background: var(--surface-2);
}
.bar {
  height: 10px;
  border-radius: 99px;
  background: var(--surface-3);
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--brand);
}
.bar.teal span {
  background: var(--teal);
}
.bar.violet span {
  background: var(--violet);
}
.bar-row strong {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.histogram {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 170px;
  padding: 10px 6px 0;
}
.histogram button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  color: inherit;
}
.histogram .col {
  width: 100%;
  max-width: 64px;
  border-radius: 8px 8px 3px 3px;
  background: var(--brand);
  min-height: 3px;
}
.histogram button:hover .col {
  background: var(--brand-600);
}
.histogram small {
  min-height: 2.8em;
  color: var(--muted);
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.3;
}

/* ---------- Dialogs and drawer ---------- */
dialog {
  border: 0;
  padding: 0;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  background: var(--surface);
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
}
dialog.wide {
  width: min(760px, calc(100vw - 32px));
}
dialog::backdrop {
  background: rgba(15, 26, 43, 0.45);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 0;
}
.dialog-body {
  padding: 14px 22px 4px;
}
.dialog-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 22px 20px;
}
.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  color: var(--muted);
}
.icon-btn:hover {
  background: var(--surface-3);
  color: var(--ink);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}
.issue-list {
  margin: 0;
  padding-left: 18px;
}
.issue-list li {
  margin: 6px 0;
}
dialog.drawer {
  margin: 0 0 0 auto;
  height: 100vh;
  max-height: 100vh;
  width: min(560px, 100vw);
  border-radius: 16px 0 0 16px;
  display: none;
  flex-direction: column;
}
dialog.drawer[open] {
  display: flex;
}
.drawer-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
}
.drawer-controls input {
  flex: 1 1 200px;
}
.drawer-controls select {
  width: auto;
}
.drawer-list {
  overflow-y: auto;
  flex: 1;
}
.drawer-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 70px;
  gap: 12px;
  align-items: center;
  padding: 12px 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.drawer-row:hover {
  background: var(--surface-2);
}
.drawer-row .num {
  text-align: right;
  font-weight: 650;
}
canvas.signature-pad {
  width: 100%;
  height: 160px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: #fff;
  touch-action: none;
  display: block;
}
.help-personas {
  display: grid;
  gap: 8px;
}
.help-personas button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.help-personas button:hover {
  border-color: var(--brand-100);
  background: var(--brand-50);
}
.help-personas small {
  display: block;
  color: var(--muted);
}

/* ---------- Settings ---------- */
.scale-row {
  display: grid;
  grid-template-columns: 34px 220px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}
.scale-row .n {
  display: grid;
  place-items: center;
  height: 40px;
  font-weight: 700;
  color: var(--brand-600);
  background: var(--brand-50);
  border-radius: var(--radius-sm);
}
.scale-row textarea {
  min-height: 40px;
}
.alloc {
  height: 10px;
  border-radius: 99px;
  background: var(--violet-50);
  overflow: hidden;
  margin: 10px 0 6px;
}
.alloc span {
  display: block;
  height: 100%;
  background: var(--brand);
}
.kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 18px;
  font-size: 0.875rem;
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  margin: 0;
  font-weight: 550;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .appraisal-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .rail {
    position: static;
    order: -1;
  }
  .rail .jump-panel {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .menu-btn {
    display: grid;
  }
  .sidebar {
    position: fixed;
    z-index: 40;
    left: 0;
    top: var(--topbar);
    width: 270px;
    transform: translateX(-100%);
    transition: transform 0.18s;
    box-shadow: var(--shadow-lg);
  }
  body.nav-open .sidebar {
    transform: none;
  }
  .main {
    padding: 20px 16px 48px;
  }
  .brand-sub,
  .persona label {
    display: none;
  }
  .persona select {
    min-width: 0;
    max-width: 52vw;
  }
  .grid-2,
  .assess,
  .sig-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .score-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .scale-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }
  .scale-row textarea {
    grid-column: 2;
  }
  .task {
    flex-wrap: wrap;
  }
  .task .person {
    flex-basis: 100%;
  }
  .goal-edit {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 520px) {
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }
  h1 {
    font-size: 1.45rem;
  }
  .proto-chip {
    display: none;
  }
}


/* ---------- Print ---------- */
@media print {
  body {
    background: #fff;
    font-size: 11pt;
  }
  .topbar,
  .sidebar,
  .rail,
  .back,
  .btn,
  .link,
  .form-foot,
  .section-foot .actions,
  .stale-banner,
  [data-confidential],
  .no-print {
    display: none !important;
  }
  .shell,
  .appraisal-grid {
    display: block;
  }
  .main {
    padding: 0;
  }
  .panel,
  .item {
    box-shadow: none;
    break-inside: avoid;
  }
  details.panel > summary .chev {
    display: none;
  }
  .rating-scale input:checked + span,
  .rating-scale .static.on,
  .snum,
  .badge {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
.form-foot {
  display: none;
}
@media (max-width: 1100px) {
  .form-foot {
    display: flex;
  }
}
.chev {
  display: inline-flex;
}
.chev svg {
  width: 18px;
  height: 18px;
}
.icon-btn.menu-btn {
  display: none;
}
@media (max-width: 860px) {
  .icon-btn.menu-btn {
    display: grid;
  }
}
.panel-head h2 .count,
.task-group h2 .count,
summary h2 .count {
  margin-left: 4px;
}
summary h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.back svg,
.notice > svg {
  flex: none;
}
.rec-row {
  display: grid;
  grid-template-columns: minmax(0, 420px) max-content max-content;
  justify-items: start;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.rec-row input {
  justify-self: stretch;
}
.rec-row select {
  width: auto;
}
.reason-field {
  border: 0;
  padding: 0;
  margin: 14px 0 0;
}
.reason-field legend {
  font-weight: 600;
  margin-bottom: 6px;
}
.reason-field .check {
  display: flex;
  margin: 4px 0;
}
.reason-list {
  margin: 4px 0 0;
  padding-left: 18px;
}
.rec-row .badge svg {
  width: 12px;
  height: 12px;
}
#allocTotal .checks {
  margin-top: 4px;
}

/* ---------- Organogram ---------- */
.org-wrap {
  overflow: auto;
  max-height: calc(100vh - var(--topbar) - 220px);
  min-height: 360px;
  padding: 24px;
  background: var(--surface-2);
}
.org,
.org ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.org {
  width: max-content;
  min-width: 100%;
}
.org ul {
  padding-top: 22px;
}
.org li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 8px 0;
}
.org > li {
  padding-top: 0;
}
.org li::before,
.org li::after {
  content: '';
  position: absolute;
  top: 0;
  right: 50%;
  width: 50%;
  height: 22px;
  border-top: 1.5px solid var(--line-2);
}
.org li::after {
  right: auto;
  left: 50%;
  border-left: 1.5px solid var(--line-2);
}
.org > li::before,
.org > li::after,
.org li:only-child::before {
  display: none;
}
.org li:only-child::after {
  border-top: 0;
}
.org li:first-child::before,
.org li:last-child::after {
  border-top: 0;
}
.org li:last-child::before {
  border-right: 1.5px solid var(--line-2);
  border-radius: 0 8px 0 0;
}
.org li:first-child::after {
  border-radius: 8px 0 0 0;
}
.org li:only-child::after {
  border-radius: 0;
}
.org ul::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  height: 22px;
  border-left: 1.5px solid var(--line-2);
}
.org-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}
.org-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 220px;
  padding: 12px;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
button.org-card {
  cursor: pointer;
}
button.org-card:hover {
  border-color: var(--brand-100);
  box-shadow: 0 0 0 3px var(--brand-50);
}
.org-card.me {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-100);
}
.org-card.found:not(.me) {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-50);
}
.org-card.inactive {
  opacity: 0.6;
}
.org-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.org-text strong {
  font-size: 0.875rem;
  line-height: 1.3;
}
.org-text small {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--ink-2);
}
.org-text small.muted {
  color: var(--muted);
}
.org-you {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--on-brand);
  background: var(--brand);
  border-radius: 999px;
  padding: 1px 6px;
  margin-left: 4px;
  vertical-align: 1px;
}
.org-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}
.org-meta .badge {
  font-size: 0.6875rem;
  padding: 2px 7px;
  white-space: normal;
}
.org-score {
  font-weight: 700;
  font-size: 0.8125rem;
}
.org-score small {
  color: var(--muted);
  font-weight: 500;
}
.org-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: -9px;
  padding: 1px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
}
.org-toggle svg {
  width: 11px;
  height: 11px;
}
.org-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
}
/* Phones: an indented outline instead of a wide tree. */
@media (max-width: 860px) {
  .org-wrap {
    max-height: none;
    padding: 14px;
  }
  .org,
  .org ul {
    display: block;
    width: auto;
  }
  .org ul {
    padding: 0 0 0 18px;
    border-left: 1.5px solid var(--line-2);
    margin-left: 16px;
  }
  .org li {
    display: block;
    padding: 10px 0 0;
  }
  .org li::before,
  .org li::after,
  .org ul::before {
    display: none;
  }
  .org-node {
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }
  .org-card {
    width: 100%;
    max-width: 340px;
  }
  .org-toggle {
    margin: 0;
  }
}
@media print {
  .org-wrap {
    max-height: none;
    overflow: visible;
  }
}

/* ---------- Printed appraisal document ---------- */
#printRoot {
  display: none;
}
.copy-choice {
  display: grid;
  gap: 10px;
}
.copy {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
}
.copy:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-50);
}
.copy.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.copy small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}
.copy input {
  margin-top: 3px;
}
dialog.preview-dialog {
  width: min(900px, calc(100vw - 32px));
}
.doc-preview {
  background: var(--surface-3);
  padding: 18px;
  border-radius: var(--radius-sm);
  max-height: calc(100vh - 220px);
  overflow: auto;
}
.doc-preview .doc {
  background: #fff;
  margin: 0 auto;
  max-width: 182mm;
  padding: 14mm;
  box-shadow: var(--shadow-lg);
}
.doc {
  position: relative;
  font-family: var(--font);
  font-size: 9pt;
  line-height: 1.4;
  color: #111827;
}
.doc-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 10px;
  border-bottom: 2px solid #111827;
  margin-bottom: 12px;
}
.doc-logo {
  max-height: 40px;
  max-width: 120px;
  object-fit: contain;
}
.doc-title {
  flex: 1;
}
.doc-org {
  font-size: 8pt;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #00539b;
}
.doc h1 {
  font-size: 16pt;
  margin: 2px 0 0;
}
.doc-sub {
  color: #4b5563;
}
.doc-flags {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  font-size: 8pt;
  color: #4b5563;
  text-align: right;
}
.doc-conf {
  font-weight: 700;
  color: #b91c1c;
  border: 1px solid #b91c1c;
  border-radius: 4px;
  padding: 1px 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.doc-sec {
  margin-top: 12px;
}
.doc-keep {
  break-inside: avoid;
}
.doc h2 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 10.5pt;
  margin: 0 0 6px;
  padding-bottom: 3px;
  border-bottom: 1px solid #d1d5db;
  break-after: avoid;
}
.doc h2 > span {
  font-size: 7.5pt;
  font-weight: 800;
  color: #00539b;
}
.doc h2 small {
  margin-left: auto;
  font-size: 7.5pt;
  font-weight: 500;
  color: #6b7280;
}
.doc-kv {
  width: 100%;
  border-collapse: collapse;
  font-size: 8.5pt;
}
.doc-kv th,
.doc-kv td {
  text-align: left;
  padding: 3px 6px 3px 0;
  vertical-align: top;
  border: 0;
  background: none;
  text-transform: none;
  letter-spacing: 0;
  font-size: 8.5pt;
  white-space: normal;
}
.doc-kv th {
  width: 18%;
  color: #6b7280;
  font-weight: 600;
}
.doc-summary {
  display: flex;
  gap: 8px;
}
.doc-summary > div {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 6px 8px;
}
.doc-summary > div:first-child {
  flex: 1.5;
  border-color: #00539b;
}
.doc-summary span {
  display: block;
  font-size: 7.5pt;
  color: #6b7280;
  font-weight: 600;
}
.doc-summary strong {
  display: block;
  font-size: 12pt;
}
.doc-summary small {
  color: #6b7280;
  font-size: 7.5pt;
}
.doc-note {
  font-size: 7.5pt;
  color: #6b7280;
  margin: 5px 0 0;
}
.doc-times {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px 18px;
  font-size: 8pt;
}
.doc-times li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted #d1d5db;
  padding: 2px 0;
}
.doc-times span {
  color: #4b5563;
}
.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 8.5pt;
  table-layout: fixed;
}
.doc-table th {
  background: #f3f4f6;
  color: #374151;
  font-size: 7.5pt;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 5px;
  border: 1px solid #d1d5db;
  white-space: normal;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}
.doc-table td {
  padding: 5px;
  border: 1px solid #d1d5db;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.doc-table tr {
  break-inside: avoid;
}
.doc-table thead {
  display: table-header-group;
}
.doc-table .c {
  text-align: center;
}
.doc-table td.r b {
  display: block;
  font-size: 10pt;
}
.doc-table td.r span {
  font-size: 7pt;
  color: #4b5563;
}
.doc .dim {
  color: #6b7280;
}
.doc-label {
  font-size: 7.5pt;
  font-weight: 700;
  color: #6b7280;
  margin: 8px 0 2px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.doc-text {
  margin: 0 0 4px;
  white-space: pre-wrap;
}
.doc-sigs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 6px;
}
.doc-sig {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 10px;
  min-height: 90px;
}
.doc-sig img {
  height: 40px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.doc-typed {
  font-family: 'Segoe Script', 'Brush Script MT', cursive;
  font-size: 15pt;
  color: #012169;
}
.doc-line {
  border-bottom: 1px solid #6b7280;
  height: 22px;
  font-size: 7pt;
  color: #6b7280;
  display: flex;
  align-items: flex-end;
  padding-bottom: 1px;
}
.doc-conf-sec {
  border: 1px solid #c4b5fd;
  border-radius: 6px;
  padding: 8px 10px;
}
.doc-end {
  margin-top: 14px;
  padding-top: 6px;
  border-top: 1px solid #d1d5db;
  font-size: 7pt;
  color: #6b7280;
}
.doc-watermark {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 44pt;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(185, 28, 28, 0.1);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}
@media print {
  body.print-doc #app,
  body.print-doc dialog,
  body.print-doc > *:not(#printRoot) {
    display: none !important;
  }
  body.print-doc #printRoot {
    display: block;
  }
  body.print-doc {
    background: #fff;
  }
  body.print-doc .doc-watermark {
    position: fixed;
    top: 50%;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .doc-summary > div,
  .doc-conf {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

.doc-table tbody tr:last-child td {
  border-bottom: 1px solid #d1d5db;
}
.doc-watermark {
  font-size: 40pt;
}
.print-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px 20px;
}

/* ---------- Goal pre-fill ---------- */
.badge.prefill {
  background: var(--amber-50);
  color: var(--amber);
}
.prefill-mark {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.prefill-mark small {
  color: var(--muted);
  font-size: 0.78rem;
}
.goal-detail {
  font-size: 0.875rem;
  color: var(--ink-2);
  margin: -4px 0 10px;
}
.toolbar .spacer {
  flex: 1;
}

/* ---------- Promotions (Track B step 5) ---------- */
.section-title {
  font-size: 15px;
  margin: 8px 0 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}
details > summary.section-title {
  cursor: pointer;
}

/* ---------- Feedback round, 5 October 2026 ---------- */

/* Always-visible name bar on someone else's appraisal. */
.who-bar {
  position: sticky;
  top: var(--topbar);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.who-bar > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.who-bar strong {
  font-size: 0.9375rem;
}
.who-bar small {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.appraisal-grid .rail {
  top: calc(var(--topbar) + 72px);
}

/* S1 grouped information. */
.info-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px 22px;
}
.info-group h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 8px;
}
.info-group .info-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}
.info-grid small {
  display: block;
}

/* Change requests. */
.request-card p {
  white-space: pre-wrap;
}
.request-where {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 4px 0 2px;
  font-size: 0.8125rem;
}
.request-where svg {
  width: 14px;
  height: 14px;
  color: var(--amber);
}
.request-where .link {
  font-weight: 600;
}
.request-replies {
  list-style: none;
  margin: 8px 0 0;
  padding: 0 0 0 12px;
  border-left: 2px solid var(--line-2);
}
.request-replies li + li {
  margin-top: 6px;
}
.request-replies p {
  margin: 2px 0 0;
}
.target-list {
  max-height: 260px;
  overflow: auto;
}
.flash {
  animation: accord-flash 1.6s ease-out;
}
@keyframes accord-flash {
  0%,
  40% {
    box-shadow: 0 0 0 3px var(--amber);
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

/* Cancelled goals. */
.cancelled-goal {
  opacity: 0.85;
  background: var(--surface-2);
}
.cancelled-goal s {
  color: var(--muted);
}
.doc-cancelled td {
  color: #6b7280;
}

/* HR record of disputes and returns. */
.hr-record {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.hr-record li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.hr-record p {
  margin: 2px 0 0;
  white-space: pre-wrap;
}

/* Self-assessment card and gaps. */
.self-card {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.self-card summary {
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.self-card .mini-scores {
  margin-top: 8px;
}
.gap-flag {
  color: var(--amber);
  font-weight: 700;
}
.gap.gap-flag {
  background: var(--amber-50);
  padding: 2px 6px;
  border-radius: 6px;
}

/* Menu toggle and theme. */
.nav-toggle,
.theme-btn {
  flex: none;
}
.theme-btn {
  margin-left: 8px;
}
body.nav-collapsed .shell {
  grid-template-columns: minmax(0, 1fr);
}
body.nav-collapsed .sidebar {
  display: none;
}
@media (max-width: 860px) {
  .nav-toggle {
    display: none;
  }
  body.nav-collapsed .sidebar {
    display: flex;
  }
}

/* Organogram hand tool. */
.org-wrap {
  cursor: grab;
}
.org-wrap.panning {
  cursor: grabbing;
  user-select: none;
}
.org-wrap.panning .org-card {
  pointer-events: none;
}
.toolbar .muted svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}

/* Help text. */
.help-text {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 4px 0 10px;
}
.help-text strong {
  color: var(--ink-2);
}

/* Dark mode: the same design tokens, redefined. Printouts always use light colours. */
:root[data-theme='dark'] {
  --bg: #070e22;
  --surface: #0e1a38;
  --surface-2: #12214a;
  --surface-3: #19295a;
  --ink: #e8eef8;
  --ink-2: #c6d1e4;
  --muted: #9aa8c4;
  --line: #223563;
  --line-2: #304678;
  --brand: #6ab3e1;
  --brand-600: #b4d9f0;
  --brand-50: #10294f;
  --brand-100: #173a6b;
  --teal: #d7e07d;
  --teal-50: #1b2a14;
  --amber: #fdbb7f;
  --amber-50: #35240f;
  --red: #fd6f65;
  --red-50: #3a1a1a;
  --violet: #c1b2c4;
  --violet-50: #2b1d31;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --focus: 0 0 0 3px rgba(106, 179, 225, 0.4);
  --on-brand: #04122e;
  --heading: #e8eef8;
  --side-bg: #040c26;
  --side-ink: #d3deef;
  --side-muted: #8fa3c8;
  --side-line: rgba(255, 255, 255, 0.1);
  --side-active: rgba(106, 179, 225, 0.18);
  color-scheme: dark;
}
:root[data-theme='dark'] .chip[aria-pressed='true'] {
  background: var(--brand);
  border-color: var(--brand);
  color: #04122e;
}
:root[data-theme='dark'] .rating-scale .static.on {
  background: var(--ink-2);
  color: #04122e;
}
:root[data-theme='dark'] .badge.goals,
:root[data-theme='dark'] .badge.agreement,
:root[data-theme='dark'] .badge.draft {
  background: var(--surface-3);
  color: var(--ink-2);
}
:root[data-theme='dark'] .badge.released {
  background: #102a3d;
  color: #6ab3e1;
}
:root[data-theme='dark'] .notice.warn {
  border-color: #5c4416;
}
:root[data-theme='dark'] .notice.error {
  border-color: #5e2620;
}
:root[data-theme='dark'] .notice.ok {
  border-color: #1d5149;
}
:root[data-theme='dark'] .confidential-panel {
  border-color: #4a3350;
}
:root[data-theme='dark'] .sig .typed {
  color: #b4d9f0;
}
:root[data-theme='dark'] .btn.danger {
  border-color: #5e2620;
}
@media print {
  :root[data-theme='dark'] {
    --bg: #fff;
    --surface: #fff;
    --surface-2: #f7f9fc;
    --surface-3: #eef2f8;
    --ink: #0f1a2b;
    --ink-2: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --line-2: #cbd5e1;
    color-scheme: light;
  }
}
.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4px 22px;
}
.help-grid p {
  margin: 6px 0;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.item-head .cancel-goal {
  margin-left: auto;
  margin-right: 10px;
  color: var(--muted);
  font-size: 0.8125rem;
}
.item-head .cancel-goal:hover {
  color: var(--red);
}
.target-list + .field {
  margin-top: 14px;
}
/* The name bar overlays the page and appears once the appraisal header scrolls away. */
.who-bar {
  height: 54px;
  margin-bottom: -54px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.15s;
}
.who-bar.show {
  visibility: visible;
  opacity: 1;
}
.appraisal-grid .rail {
  top: calc(var(--topbar) + 66px);
}
fieldset.field {
  border: 0;
  padding: 0;
  margin: 0 0 14px;
  min-width: 0;
}
fieldset.field > legend {
  padding: 0;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
}
/* Bonus review */
.dept-sum {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.dept-sum .bad,
strong.bad {
  color: var(--red);
}
.factor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px 18px;
}
.factor-grid .factor {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0;
  text-transform: none;
}
.placeholder-list {
  columns: 2;
  margin: 8px 0 0;
}
.placeholder-list li {
  margin-bottom: 4px;
}
td.nowrap,
.nowrap {
  white-space: nowrap;
}
.bonus-dept .panel-head h2 .badge {
  margin-left: 6px;
  vertical-align: 2px;
}
/* Figures with explanations, filters, score tags (6 Oct) */
.stats-x {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px 24px;
}
.stat-x label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
}
.stat-x strong {
  display: block;
  font-size: 1.125rem;
  margin: 2px 0;
}
.stat-x small {
  display: block;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--muted);
}
.field .hint {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}
.reward-filter {
  margin: 16px 0 16px;
}
.reward-filter .toolbar {
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}
.score-range {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
}
.score-range input {
  width: 80px;
}
.score-tag {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}
/* The global input rule has three :not() parts, so this needs matching weight to keep the score boxes narrow. */
.reward-filter label.score-range input[type='number'] {
  width: 90px;
  flex: none;
}
.reward-filter select {
  width: auto;
}
.currency-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
}
.currency-card > svg {
  width: 20px;
  height: 20px;
  color: var(--brand);
  flex: none;
}
.currency-card > div {
  flex: 1;
  min-width: 0;
}
.currency-card small {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* Stage strip and disputes on Cycle health (2 Nov; restyled 4 Nov): tiles are set apart by a darker
   background, not by a shadow or an outline. Stage state is also written in words (overdue), never colour alone. */
/* Cycle health headline (12 Nov): the completed share is the first thing read; a finished cycle says so in words. */
.health-score { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 4px 18px 10px; }
.health-pct { font-size: 2.75rem; font-weight: 700; line-height: 1; color: var(--teal); font-variant-numeric: tabular-nums; }
.health-pct small { font-size: 1.5rem; margin-left: 1px; }
.health-count { color: var(--ink-2); }
.health-count strong { font-size: 1.15rem; color: var(--ink); }
.health-bar { position: relative; height: 10px; margin: 0 18px 18px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.health-bar span { display: block; height: 100%; border-radius: 999px; background: var(--teal); }
/* A marker every 10%, so the length of the bar reads as a proportion. */
.health-bar i { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--surface, #fff); }
.stage-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 16px 18px; counter-reset: stage; }
.stage-strip li { position: relative; display: grid; gap: 3px; align-content: start; padding: 12px 14px; border-radius: 10px; border: 0; box-shadow: none; background: var(--surface-3); color: var(--ink); }
.health-sub { margin: 0 18px; color: var(--ink-2); font-weight: 500; }
.health-note { margin: -2px 0 8px; }
.dispute-list, .blocked-list { padding: 8px 18px 4px; border-top: 1px solid var(--line); }
.stage-strip .stage-name { padding-right: 0; }
.stage-strip li:not(:last-child)::after { content: ''; position: absolute; top: 50%; right: -11px; width: 8px; height: 8px; border-top: 2px solid var(--line-2); border-right: 2px solid var(--line-2); transform: translateY(-50%) rotate(45deg); }
.stage-strip .stage-name { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-2); }
.stage-strip .stage-count { font-size: 0.9rem; color: var(--ink-2); }
.stage-strip .stage-count strong { font-size: 1.75rem; line-height: 1.1; color: var(--ink); margin-right: 2px; }
.stage-strip li small { font-size: 0.78rem; color: var(--ink-2); }
.stage-strip li.idle .stage-count strong { color: var(--muted); }
.stage-strip li.live { background: var(--brand-100); }
.stage-strip li.overdue { background: var(--red-50); }
.stage-strip li.overdue .stage-flag { color: var(--red); font-weight: 700; }
.stage-strip .stage-btn { display: grid; gap: 3px; align-content: start; width: 100%; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.stage-strip li { cursor: pointer; transition: outline-color .12s; outline: 2px solid transparent; outline-offset: 0; }
.stage-strip li:hover { outline-color: var(--line-2); }
.stage-strip li.selected { outline-color: var(--ink-2); }
.stage-strip .stage-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
.stage-strip .stage-hint { color: var(--ink-2); text-decoration: underline; margin-top: 2px; }
.stage-strip li.selected .stage-hint::after { content: ' (hide)'; }
.stage-detail { padding: 4px 18px 12px; border-top: 1px solid var(--line); }
.stage-detail[hidden], .stage-detail [hidden] { display: none; }
@media (max-width: 900px) { .stage-strip li:not(:last-child)::after { display: none; } }
.dispute-list { padding: 0 18px 14px; }
.dispute-list .small-title { font-size: 0.95rem; margin: 8px 0; }

.launch-check { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 12px 0; background: var(--surface-2); }
.launch-check .small-title { font-size: 0.95rem; margin: 0 0 6px; }
.launch-check ul { margin: 0 0 6px 18px; padding: 0; }
.visible-to { display: flex; gap: 6px; align-items: center; }
.visible-to svg { width: 14px; height: 14px; flex: none; }

.library-note { margin: 8px 0; border: 1px dashed var(--line-2); border-radius: 8px; padding: 6px 10px; background: var(--surface-2); }
.library-note summary { cursor: pointer; font-size: 0.85rem; color: var(--ink-2); }
.library-note table small { display: block; }

/* Ratings by question and Next step (2 Nov) */
.mx th, .mx td { white-space: nowrap; }
.mx-group th, .mx-group td { background: var(--surface-3); font-weight: 600; }
.mx-group small { display: block; font-weight: 400; }
.mx-cell { display: inline-block; min-width: 2.2em; text-align: center; border-radius: 6px; padding: 1px 6px; font-variant-numeric: tabular-nums; }
.mx-cell.r1 { background: var(--red-50); color: var(--red); }
.mx-cell.r2 { background: var(--amber-50); color: var(--amber); }
.mx-cell.r3 { background: var(--surface-3); }
.mx-cell.r4 { background: var(--teal-50); color: var(--teal); }
.mx-cell.r5 { background: var(--brand-50); color: var(--brand-600); }
.next-step { margin: 6px 0 0; font-size: 0.9rem; color: var(--ink-2); }

/* Calibration tiles (2 Nov): band counts, then each manager's team against everyone in view. */
.cal-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; padding: 4px 20px 16px; }
.cal-tile { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid hsl(var(--h) 35% 85%); background: hsl(var(--h) 60% 96%); cursor: pointer; transition: transform .12s, box-shadow .12s; font: inherit; color: inherit; }
.cal-tile:hover { transform: translateY(-1px); box-shadow: 0 4px 14px hsl(var(--h) 40% 50% / .18); }
.cal-tile:focus-visible { outline: 2px solid hsl(var(--h) 55% 38%); outline-offset: 2px; }
.cal-n { font-size: 1.9rem; font-weight: 650; line-height: 1.1; color: hsl(var(--h) 55% 26%); font-variant-numeric: tabular-nums; }
.cal-share { font-size: .8rem; color: hsl(var(--h) 35% 34%); }
.cal-label { font-size: .85rem; font-weight: 550; margin-top: 4px; }
.cal-bar { display: flex; height: 10px; width: 100%; min-width: 120px; border-radius: 6px; overflow: hidden; background: var(--surface-3); }
.cal-bar span { background: hsl(var(--h) 55% 52%); }

/* ---------- Visual refinement (2 Nov): calmer, lighter, more consistent. Presentation only. ---------- */
/* Stat cards: same top-aligned layout and height, long hints kept to four lines. */
.stats { align-items: stretch; }
.stat { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0; box-shadow: 0 1px 2px rgb(15 23 42 / .04); transition: border-color .12s, box-shadow .12s; }
.stat .hint { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
/* Filters: compact controls so the table starts higher on the page. */
.toolbar { gap: 8px; padding: 12px 20px; }
.toolbar select, .toolbar input[type='search'] { min-height: 34px; padding: 5px 10px; font-size: 0.875rem; }
.toolbar select { min-width: 150px; }
.chip { font-size: 0.8125rem; }
/* Tables: a little tighter, secondary text quieter, quiet row dividers. */
td { padding: 11px 14px; }
th { padding: 9px 14px; }
td small { font-size: 0.78rem; line-height: 1.35; }
tbody tr td { border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent); }
#rows td:nth-child(2) { white-space: nowrap; }
/* Panels: lighter shadow, consistent breathing room between stacked sections. */
.panel { box-shadow: 0 1px 2px rgb(15 23 42 / .04); }
main > .panel, main > section.panel { margin-bottom: 16px; }
/* Calibration: tiles stay legible in dark mode; small teams are summarised, not listed. */
:root[data-theme='dark'] .cal-tile { background: hsl(var(--h) 30% 16%); border-color: hsl(var(--h) 25% 28%); }
:root[data-theme='dark'] .cal-n { color: hsl(var(--h) 60% 78%); }
:root[data-theme='dark'] .cal-share { color: hsl(var(--h) 30% 70%); }
.cal-note { margin: 0; padding: 12px 20px 16px; font-size: 0.8125rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .stat, .cal-tile { transition: none; } }
/* Panel headers: text on the left, filters on the right instead of wrapping underneath. */
.panel-head > div:first-child { flex: 1 1 360px; max-width: 72ch; }
.panel-head > .actions, .panel-head > label { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
#mxDept, #calDept { width: auto; min-width: 150px; min-height: 34px; padding: 5px 10px; font-size: 0.875rem; }
/* Ratings-by-question group rows: sentence case so repeated "fewer than 3" notes read quietly. */
.mx-group th { text-transform: none; letter-spacing: 0; font-size: 0.875rem; color: var(--ink); }
.mx-group th small { font-size: 0.78rem; color: var(--muted); }

/* ---------- Appraisal form, second pass (2 Nov). First version: tag accord-appraisal-form-v1. ---------- */
/* The summary rail never grows taller than the window: the submit checklist and button stay reachable. */
.rail { max-height: calc(100vh - var(--topbar) - 32px); overflow-y: auto; padding: 2px 4px 2px 2px; margin: -2px -4px -2px -2px; scrollbar-width: thin; }
.rail .panel { padding: 14px 16px; }
.rail h2 { margin-bottom: 8px; }
.rail-status { order: 1; } .rail-submit { order: 2; } .rail-score { order: 3; } .jump-panel { order: 4; }
.rail-submit { border-color: var(--brand-100); }
.jump-panel .jump { gap: 4px; }
.jump-panel .jump a { padding: 3px 8px; font-size: 0.75rem; }
/* Comment boxes grow with what is typed instead of reserving a tall empty box on every goal and competency. */
textarea[name*="Comment"], .scale-row textarea { field-sizing: content; min-height: 44px; max-height: 360px; }
/* Cards: calmer spacing between goals and competencies. */
.rail-actions { display: grid; gap: 8px; }
@media (prefers-reduced-motion: no-preference) { details.section > summary .chev { transition: transform .15s; } }
.rating-caption.previewing { color: var(--brand-600); }
.rating-caption { min-height: 2.6em; }

/* ---- Start page and HR home (3 Nov) ---- */
.welcome { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(1200px 520px at 50% -10%, var(--brand-100), var(--bg)); }
.welcome-card { width: min(520px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 28px 28px 20px; }
.welcome-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.welcome-brand img { border-radius: 14px; }
.welcome-brand strong { font-family: var(--font-display); display: block; font-size: 1.6rem; letter-spacing: -0.02em; color: var(--ink); }
.welcome-brand small { color: var(--muted); }
.welcome-card h1 { font-size: 1.15rem; margin: 0 0 14px; color: var(--ink); }
.welcome-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.welcome-tabs button { background: none; border: 0; padding: 8px 12px; font: inherit; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.welcome-tabs button.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.welcome-accounts { display: grid; gap: 8px; }
.welcome-account { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink); font: inherit; cursor: pointer; }
.welcome-account:hover, .welcome-account:focus-visible { border-color: var(--brand); box-shadow: var(--focus); outline: none; }
.welcome-account small { display: block; color: var(--muted); }
.welcome-foot { margin: 16px 0 0; text-align: center; }
.health-link .task { border-bottom: 0; }
.panel + .home-grid, .health-group { margin-bottom: 16px; }
.home-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.home-card .section-head h2 { display: flex; align-items: center; gap: 8px; }
.home-card.locked { opacity: 0.7; }
.home-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.home-step { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.home-step:first-child { border-top: 0; }
.home-step small { display: block; margin-top: 2px; }
.home-step .tone-done { color: var(--teal); }
.home-step .tone-todo { color: var(--amber); }
.home-step .tone-info { color: var(--muted); }

.home-hero { margin: -20px -22px 12px; padding: 10px 22px; background: var(--brand-50); color: var(--brand-600); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.home-hero svg { display: block; width: 100%; height: 56px; }
.home-spread { display: flex; align-items: flex-end; gap: 8px; height: 84px; margin: 10px 0 4px; }
.home-spread span { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 2px; }
.home-spread i { display: block; width: 100%; min-height: 3px; background: var(--brand); border-radius: 3px 3px 0 0; opacity: .85; }
.home-spread small { font-size: .6875rem; color: var(--muted); }

.rv-lab { max-width: 64px; text-align: center; line-height: 1.15; }
.rv-scores { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-end; margin: 4px 0 12px; }
.rv-scores > div { display: grid; gap: 2px; }
.rv-big { font-size: 1.75rem; line-height: 1.1; }
.rv-cmp strong { font-size: 1.125rem; }
.rv-comments { display: grid; gap: 8px; margin-top: 10px; }
.rv-comments blockquote { margin: 0; padding: 8px 12px; border-left: 3px solid var(--brand); background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.rv-comments blockquote small { display: block; margin-bottom: 2px; }
.rv-sum { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1500px) { .rv-sum { grid-template-columns: 1fr 1fr; } }
.rv-sum .home-spread { max-width: 520px; }

/* ---------- KPI library page (4 Nov) ---------- */
.lib-toolbar { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 18px 8px; }
.lib-toolbar input { flex: 1 1 260px; }
.lib-toolbar select { flex: 0 1 240px; width: auto; }
.lib-families { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px 18px 14px; border-bottom: 1px solid var(--line); }
.lib-body { padding: 18px; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.lib-card {
  display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 14px 16px;
  border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; box-shadow: var(--shadow);
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s;
}
.lib-card:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.lib-card:focus-visible { outline: none; box-shadow: var(--focus); border-color: var(--brand); }
.lib-card strong { font-family: var(--font-display); font-size: 1.05rem; font-weight: 650; color: var(--heading); }
.lib-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lib-meta small, .lib-foot small { color: var(--muted); }
.lib-def { color: var(--ink-2); font-size: 0.875rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lib-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 6px; }
.lib-levels { display: flex; gap: 4px; }
.lib-levels i { font-style: normal; font-size: 0.6875rem; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--surface-3); color: var(--ink-2); }
.lib-levels i.on { background: var(--brand); color: var(--on-brand); }
.lib-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 18px; margin: 0 0 14px; }
.lib-facts dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.lib-facts dd { margin: 2px 0 0; font-size: 0.875rem; }
.lib-anchors th[scope='row'] { white-space: nowrap; color: var(--heading); }

.reveal-line { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; }
.reveal-line strong { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; min-width: 7ch; }
.reveal-line .icon-btn { width: 32px; height: 32px; }

/* Client start page (5 Nov): client panel on one side, EvolvTal sign-in on the other. */
.landing { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--bg); }
.landing-card { display: flex; flex-wrap: wrap; width: min(1040px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.landing-client { flex: 1 1 340px; min-height: 480px; padding: 40px 44px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-width: 0; }
.landing-client-brand { display: flex; align-items: center; gap: 14px; }
.landing-client-brand img { border-radius: 14px; background: transparent; }
.landing-client-brand strong { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -0.02em; }
.landing-client-copy h2 { margin: 0 0 12px; font-family: var(--font-display); font-size: 2rem; line-height: 1.15; letter-spacing: -0.02em; color: inherit; max-width: 16ch; }
.landing-client-copy p { margin: 0; max-width: 34ch; line-height: 1.5; }
.landing-form { flex: 1 1 400px; padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; min-width: 0; color: var(--ink); }
.landing-form h1 { font-size: 1.5rem; margin: 6px 0 14px; color: var(--ink); }
.landing-accord { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.landing-accord strong { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.01em; }
.landing-host { margin: 8px 0 0; }
@media (max-width: 640px) { .landing-client, .landing-form { padding: 28px 22px; } .landing-client { min-height: 0; } }

/* Guided set-up (5 Nov): roadmap, home banner and the bar over each section's page. */
.setup-progress, .setup-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-bottom: 16px; }
.setup-progress-row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.setup-group { margin-bottom: 16px; }
.setup-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.setup-num { flex: 0 0 32px; height: 32px; border-radius: 16px; background: var(--surface-2); color: var(--muted); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.setup-what { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.setup-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; font-size: .8rem; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--ink); }
.setup-chip.done { background: #D9F0E6; color: #0B4B3A; }
.setup-chip.opt { background: transparent; border: 1px solid var(--line); color: var(--muted); }
[data-theme='dark'] .setup-chip.done { background: #14463A; color: #CBEFE0; }
.guided-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 18px; margin-bottom: 18px; border: 1px solid var(--brand); border-radius: 12px; background: var(--brand-100); position: sticky; top: 0; z-index: 5; }
.guided-what { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.guided-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.guided-focus .grid-2 { grid-template-columns: 1fr; }

/* ---------- Bonus plan parts and printed bonus letter (7 Nov 2026) ---------- */
.bpart { padding: 16px 0 6px; border-top: 1px solid var(--line); }
.bpart:first-of-type { border-top: 0; padding-top: 4px; }
.bpart h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 1.05rem; }
.bpart .hint-list { margin: 8px 0 12px 18px; padding: 0; color: var(--muted); }
.bpart .hint-list li { margin: 3px 0; }
.bpart .snum { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 12px; background: var(--brand-100); color: var(--brand); font-size: .8rem; font-weight: 700; }
.numunit { display: inline-flex; align-items: center; gap: 6px; }
.numunit input { width: 90px; }
.numunit .unit { color: var(--muted); font-size: .8rem; white-space: nowrap; }
tr.meets-row td { background: var(--brand-50); }
.calc-box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 14px; margin: 8px 0; background: var(--surface-2); }
.calc-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.calc-row:last-child { border-bottom: 0; }
.calc-row.total strong { font-size: 1.1rem; }
.cmp { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin: 10px 0; }
.cmp-col { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 14px 6px; }
.cmp-col.on { border-color: var(--brand); background: var(--brand-50); }
.cmp-col h4 { margin: 4px 0 6px; font-size: .95rem; }
.bpart td small { display: block; color: var(--muted); }

/* The bonus letter: a letter, not a form. One letter per page when several are printed. */
.doc-letter { font-size: 11pt; line-height: 1.55; min-height: 240mm; }
.doc-preview .doc-letter { min-height: 0; margin-bottom: 18px; }
.doc-letter p { margin: 0 0 11pt; }
.letter-head { display: flex; align-items: center; gap: 14px; padding-bottom: 10px; border-bottom: 2px solid #111827; margin-bottom: 18pt; }
.letter-org { font-size: 14pt; font-weight: 700; }
.letter-date { margin-bottom: 4pt; }
.letter-conf { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 9pt; color: #4b5563; }
.letter-to { margin: 16pt 0 18pt; }
.doc-letter .letter-subject { font-family: inherit; color: #111827; font-size: 12.5pt; margin: 0 0 10pt; }
.letter-close { margin-top: 18pt; }
.letter-sign-space { display: block; height: 42pt; }
@media print {
  .doc-letter + .doc-letter { break-before: page; page-break-before: always; }
  .doc-letter { min-height: 0; }
}
/* Held up rows (12 Nov): only the headline takes the attention colour; the reason and the action stay in normal text. */
.blocked-list .task.attention .task-label small { color: var(--ink-2); font-weight: 400; }
.blocked-list .task.attention .task-label small strong { color: var(--ink); font-weight: 700; }
/* Stage break-up (12 Nov): who a mixed stage is waiting on. Manager is set apart by an amber highlight (shape and colour,
   not hue alone: dark text on a light amber chip, 7:1) and always by the word Manager. */
.stage-strip .stage-split { color: var(--ink-2); }
.role-manager { color: #7a3b00; background: #fdebc8; border-radius: 4px; padding: 1px 6px; font-weight: 700; }
.stage-strip .stage-split.role-manager { justify-self: start; }
/* Appraisals page (12 Nov): the same completion bar, break-up lines and manager chip as Home. */
.health-bar.compact { display: block; width: 100%; min-width: 120px; height: 8px; margin: 10px 0 0; }
.stat .hint .stage-split { display: block; width: fit-content; margin-top: 2px; font-size: inherit; }
.stat .hint .stage-split:not(.role-manager) { color: inherit; }
.stat .hint strong { color: var(--ink); }
.stat .hint:has(.health-bar) { width: 100%; }

/* Appraisals (12 Nov): In progress card with clickable "waiting for" lines; no manager highlight on this page. */
.stat.stat-split { cursor: default; text-align: left; }
.stat-split .stat-main { all: unset; display: block; cursor: pointer; width: 100%; }
.stat-split .stat-main:focus-visible { outline: 2px solid var(--accent, #00569e); outline-offset: 2px; }
.stat-split .hint { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 6px; }
.stat-split .wait-link { all: unset; cursor: pointer; font-size: inherit; color: var(--ink-2, #44506a); border-radius: 4px; padding: 1px 6px; margin-left: -6px; }
.stat-split .wait-link:hover { text-decoration: underline; }
.stat-split .wait-link[aria-pressed="true"] { background: #dbe8f6; color: #0b2a57; font-weight: 700; }
.stat-split .wait-link:focus-visible { outline: 2px solid var(--accent, #00569e); }
.stat-split .go { display: none; }
