/* Peoplevero design system — layered on the self-hosted Bootstrap 5 build. No external fonts/CDNs; system font stack.
   Primary #2f5bea on white meets WCAG AA for text. The sidebar is light (#f5f5f7) with dark text. */
:root {
  --hr-primary: #2f5bea; --hr-primary-rgb: 47, 91, 234; --hr-primary-dark: #1f44c4; --hr-primary-soft: #eef1fb;
  --hr-on-primary: #fff; --hr-link: #1f44c4;
  /* Button fills. Light mode matches the previous primary and Bootstrap secondary styles. Dark mode redefines these so a button is never a bright white slab. */
  --hr-btn-primary-bg: #2f5bea; --hr-btn-primary-border: #2f5bea; --hr-btn-primary-fg: #fff;
  --hr-btn-primary-hover-bg: #1f44c4; --hr-btn-primary-hover-border: #1f44c4;
  --hr-btn-primary-active-bg: #1f44c4; --hr-btn-primary-active-border: #1f44c4;
  --hr-btn-outline-bg: transparent; --hr-btn-outline-fg: #2f5bea; --hr-btn-outline-border: #2f5bea;
  --hr-btn-outline-hover-bg: #2f5bea; --hr-btn-outline-hover-fg: #fff; --hr-btn-outline-hover-border: #2f5bea;
  --hr-btn-outline-active-bg: #1f44c4; --hr-btn-outline-active-fg: #fff; --hr-btn-outline-active-border: #1f44c4;
  --hr-btn-quiet-bg: transparent; --hr-btn-quiet-fg: #6c757d; --hr-btn-quiet-border: #6c757d;
  --hr-btn-quiet-hover-bg: #6c757d; --hr-btn-quiet-hover-fg: #fff; --hr-btn-quiet-hover-border: #6c757d;
  --hr-btn-quiet-active-bg: #6c757d; --hr-btn-quiet-active-fg: #fff; --hr-btn-quiet-active-border: #6c757d;
  --hr-btn-solid-bg: #6c757d; --hr-btn-solid-fg: #fff; --hr-btn-solid-border: #6c757d;
  --hr-btn-solid-hover-bg: #5c636a; --hr-btn-solid-hover-fg: #fff; --hr-btn-solid-hover-border: #565e64;
  --hr-btn-solid-active-bg: #565e64; --hr-btn-solid-active-fg: #fff; --hr-btn-solid-active-border: #51585e;
  --hr-btn-light-bg: #f8f9fa; --hr-btn-light-fg: #000; --hr-btn-light-border: #f8f9fa;
  --hr-btn-light-hover-bg: #d3d4d5; --hr-btn-light-hover-fg: #000; --hr-btn-light-hover-border: #c6c7c8;
  --hr-btn-light-active-bg: #c6c7c8; --hr-btn-light-active-fg: #000; --hr-btn-light-active-border: #babbbc;
  --hr-btn-disabled-bg: var(--hr-bg); --hr-btn-disabled-fg: var(--hr-muted); --hr-btn-disabled-border: var(--hr-line);
  --hr-page-fg: #2f5bea;
  --hr-accent: #0d7c72; --hr-ink: #1d1d1f; --hr-muted: #6e6e73; --hr-line: #d2d2d7; --hr-bg: #f5f5f7; --hr-card: #fff;
  --hr-side-bg: #f5f5f7; --hr-side-ink: #1d1d1f; --hr-side-active: #2f5bea; --hr-side-hover: #e8e8ed;
  --hr-ok: #11643a; --hr-ok-bg: #dcf3e6; --hr-warn: #6b4e00; --hr-warn-bg: #fff1cc;
  --hr-bad: #9b1c1c; --hr-bad-bg: #fde2e2; --hr-info: #0b5567; --hr-info-bg: #ddf2f7;
  --hr-track: #e7eaf3; --hr-soft: #eef0f6; --hr-table-head: #f8f9fc; --hr-hover: #f4f6fd;
  --hr-tile: #eef1fb; --hr-tile-ink: #2f5bea;
  --hr-tile-teal: #e0f3f1; --hr-tile-teal-ink: #0d7c72;
  --hr-tile-amber: #fff3d6; --hr-tile-amber-ink: #8a5a00;
  --hr-tile-rose: #fde7ec; --hr-tile-rose-ink: #a12f5e;
  --hr-radius: 12px; --hr-shadow: 0 0 0 1px #d2d2d7;
  /* Okabe–Ito palette: distinguishable for the common colour-blindness types, and paired with a unique marker shape. */
  --hr-plot-self: #0072b2; --hr-plot-manager: #009e73; --hr-plot-additional: #56b4e9;
  --hr-plot-direct: #e69f00; --hr-plot-peers: #d55e00; --hr-plot-anonymous: #cc79a7;
  --hr-plot-spread: #5b6478; --hr-plot-gap: #fff6e8; --hr-plot-gap-ink: #8a5a00;
  --hr-side-w: 15.5rem;
  --bs-primary: var(--hr-primary); --bs-primary-rgb: var(--hr-primary-rgb);
  --bs-link-color: var(--hr-primary); --bs-link-color-rgb: var(--hr-primary-rgb); --bs-link-hover-color: var(--hr-primary-dark);
  --bs-body-color: var(--hr-ink); --bs-body-bg: var(--hr-bg); --bs-border-color: var(--hr-line); --bs-secondary-color: var(--hr-muted);
  --bs-body-font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-border-radius: 12px; --bs-focus-ring-color: rgba(47, 91, 234, .45);
}
html { font-size: 16px; }
body { min-height: 100vh; background: var(--hr-bg); -webkit-font-smoothing: antialiased; }
h1, .h1 { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; }
h2, .h2 { font-size: 1.25rem; font-weight: 620; }
h3, .h3 { font-size: 1.08rem; font-weight: 620; }
a { color: var(--hr-link); text-decoration: none; text-underline-offset: .15em; }
p a, .form-text a, .small a, .sub a { text-decoration: underline; }
a:hover { text-decoration: underline; }
.text-muted { color: var(--hr-muted) !important; }
.pre-wrap { white-space: pre-wrap; }
.w-6r { width: 6rem; } .w-12r { width: 12rem; } .w-14r { width: 14rem; } .mw-40r { max-width: 40rem; } .mw-28r { max-width: 28rem; }
:focus-visible { outline: 3px solid rgba(var(--hr-primary-rgb), .55); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: var(--hr-radius); }
.skip-link:focus { left: .5rem; }

/* Buttons */
.btn { font-weight: 550; border-radius: 12px; min-height: 36px; }
.btn:hover, .btn:focus, a.btn, a.btn:hover { text-decoration: none; }
.btn:disabled, .btn.disabled { background: var(--hr-btn-disabled-bg); color: var(--hr-btn-disabled-fg); border-color: var(--hr-btn-disabled-border); opacity: 1; }
.table a, .list-group a, .pick-name { text-decoration: none; }
.table .small a, .table p a, .table .form-text a, .table .sub a { color: var(--hr-link); text-decoration: underline; }
form[data-autosave] { max-width: 720px; }
.rate-grid { display: flex; flex-wrap: wrap; gap: .35rem; }
.rate-grid.rate-stack { flex-direction: column; align-items: stretch; }
.rate-grid.rate-stack .rate-opt { width: 100%; }
textarea.form-control { min-height: 6.5rem; }
.survey-bars { display: flex; flex-direction: column; gap: .35rem; max-width: 36rem; }
.survey-bar { display: grid; grid-template-columns: 2.5rem 1fr 2rem; gap: .5rem; align-items: center; font-size: 13px; }
.survey-bar-track { height: .55rem; background: #e7e7ec; border-radius: 999px; overflow: hidden; }
.survey-bar-fill { display: block; height: 100%; background: var(--hr-primary); }
.survey-bar-fill.w0 { width: 0; } .survey-bar-fill.w1 { width: 10%; } .survey-bar-fill.w2 { width: 20%; } .survey-bar-fill.w3 { width: 30%; } .survey-bar-fill.w4 { width: 40%; }
.survey-bar-fill.w5 { width: 50%; } .survey-bar-fill.w6 { width: 60%; } .survey-bar-fill.w7 { width: 70%; } .survey-bar-fill.w8 { width: 80%; } .survey-bar-fill.w9 { width: 90%; } .survey-bar-fill.w10 { width: 100%; }
.side-admin { margin: .25rem .6rem 1rem; }
.side-admin > summary { cursor: pointer; font-size: 13px; font-weight: 650; color: var(--hr-ink); padding: .45rem .7rem; list-style: none; }
.side-admin > summary::-webkit-details-marker { display: none; }
.side-admin[open] > summary { color: var(--hr-primary); }
@media (max-width: 720px) { .rate-grid { flex-direction: column; } .btn { min-height: 44px; } }
.btn-primary { --bs-btn-color: var(--hr-btn-primary-fg); --bs-btn-bg: var(--hr-btn-primary-bg); --bs-btn-border-color: var(--hr-btn-primary-border);
  --bs-btn-hover-color: var(--hr-btn-primary-fg); --bs-btn-hover-bg: var(--hr-btn-primary-hover-bg); --bs-btn-hover-border-color: var(--hr-btn-primary-hover-border);
  --bs-btn-active-color: var(--hr-btn-primary-fg); --bs-btn-active-bg: var(--hr-btn-primary-active-bg); --bs-btn-active-border-color: var(--hr-btn-primary-active-border);
  --bs-btn-disabled-color: var(--hr-btn-disabled-fg); --bs-btn-disabled-bg: var(--hr-btn-disabled-bg); --bs-btn-disabled-border-color: var(--hr-btn-disabled-border); }
.btn-outline-primary { --bs-btn-color: var(--hr-btn-outline-fg); --bs-btn-bg: var(--hr-btn-outline-bg); --bs-btn-border-color: var(--hr-btn-outline-border);
  --bs-btn-hover-color: var(--hr-btn-outline-hover-fg); --bs-btn-hover-bg: var(--hr-btn-outline-hover-bg); --bs-btn-hover-border-color: var(--hr-btn-outline-hover-border);
  --bs-btn-active-color: var(--hr-btn-outline-active-fg); --bs-btn-active-bg: var(--hr-btn-outline-active-bg); --bs-btn-active-border-color: var(--hr-btn-outline-active-border);
  --bs-btn-disabled-color: var(--hr-btn-disabled-fg); --bs-btn-disabled-bg: var(--hr-btn-disabled-bg); --bs-btn-disabled-border-color: var(--hr-btn-disabled-border); }
.btn-outline-secondary, .btn-outline-light { --bs-btn-color: var(--hr-btn-quiet-fg); --bs-btn-bg: var(--hr-btn-quiet-bg); --bs-btn-border-color: var(--hr-btn-quiet-border);
  --bs-btn-hover-color: var(--hr-btn-quiet-hover-fg); --bs-btn-hover-bg: var(--hr-btn-quiet-hover-bg); --bs-btn-hover-border-color: var(--hr-btn-quiet-hover-border);
  --bs-btn-active-color: var(--hr-btn-quiet-active-fg); --bs-btn-active-bg: var(--hr-btn-quiet-active-bg); --bs-btn-active-border-color: var(--hr-btn-quiet-active-border);
  --bs-btn-disabled-color: var(--hr-btn-disabled-fg); --bs-btn-disabled-bg: var(--hr-btn-disabled-bg); --bs-btn-disabled-border-color: var(--hr-btn-disabled-border); }
.btn-secondary { --bs-btn-color: var(--hr-btn-solid-fg); --bs-btn-bg: var(--hr-btn-solid-bg); --bs-btn-border-color: var(--hr-btn-solid-border);
  --bs-btn-hover-color: var(--hr-btn-solid-hover-fg); --bs-btn-hover-bg: var(--hr-btn-solid-hover-bg); --bs-btn-hover-border-color: var(--hr-btn-solid-hover-border);
  --bs-btn-active-color: var(--hr-btn-solid-active-fg); --bs-btn-active-bg: var(--hr-btn-solid-active-bg); --bs-btn-active-border-color: var(--hr-btn-solid-active-border);
  --bs-btn-disabled-color: var(--hr-btn-disabled-fg); --bs-btn-disabled-bg: var(--hr-btn-disabled-bg); --bs-btn-disabled-border-color: var(--hr-btn-disabled-border); }
.btn-light { --bs-btn-color: var(--hr-btn-light-fg); --bs-btn-bg: var(--hr-btn-light-bg); --bs-btn-border-color: var(--hr-btn-light-border);
  --bs-btn-hover-color: var(--hr-btn-light-hover-fg); --bs-btn-hover-bg: var(--hr-btn-light-hover-bg); --bs-btn-hover-border-color: var(--hr-btn-light-hover-border);
  --bs-btn-active-color: var(--hr-btn-light-active-fg); --bs-btn-active-bg: var(--hr-btn-light-active-bg); --bs-btn-active-border-color: var(--hr-btn-light-active-border);
  --bs-btn-disabled-color: var(--hr-btn-disabled-fg); --bs-btn-disabled-bg: var(--hr-btn-disabled-bg); --bs-btn-disabled-border-color: var(--hr-btn-disabled-border); }
.btn-link { --bs-btn-color: var(--hr-primary); --bs-btn-disabled-color: var(--hr-btn-disabled-fg); }
.btn-outline-warning { --bs-btn-color: #6b4e00; --bs-btn-border-color: #8a6a2a;
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #6b4e00; --bs-btn-hover-border-color: #6b4e00;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #5a4000; --bs-btn-active-border-color: #5a4000; }
.btn.is-busy { pointer-events: none; opacity: .8; }
.btn.is-busy::before { content: ""; display: inline-block; width: .85em; height: .85em; margin-right: .45em; vertical-align: -.1em; border: .15em solid currentColor; border-right-color: transparent; border-radius: 50%; animation: hr-spin .7s linear infinite; }
@keyframes hr-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.is-busy::before { animation: none; } }

/* Forms */
.form-control, .form-select { border-radius: .5rem; border-color: #cfd4e0; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--hr-primary); box-shadow: none; }
input[type="file"].form-control::file-selector-button { height: 36px; margin-right: 12px; border: 0; border-radius: 8px; background: var(--hr-bg); color: var(--hr-ink); padding: 0 12px; font: inherit; }
.form-check-input:checked { background-color: var(--hr-primary); border-color: var(--hr-primary); }
.form-label { font-weight: 550; margin-bottom: .3rem; }
.form-text { color: var(--hr-muted); }
.input-validation-error { border-color: #b02a37 !important; }
.field-validation-error, .validation-summary-errors { color: #b02a37; font-size: .9rem; }

/* Cards / surfaces */
.card { border: 1px solid var(--hr-line); border-radius: var(--hr-radius); box-shadow: none; background: var(--hr-card); color: var(--hr-ink); }
.card-header { background: transparent; border-bottom-color: var(--hr-line); font-weight: 620; }
.surface { background: var(--hr-card); border: 1px solid var(--hr-line); border-radius: var(--hr-radius); box-shadow: none; padding: 1.25rem; color: var(--hr-ink); }
.list-group { border-radius: var(--hr-radius); box-shadow: none; }
.list-group-item { border-color: var(--hr-line); }
.list-group-item-action:hover { background: var(--hr-primary-soft); }

/* Tables */
.table { --bs-table-bg: var(--hr-card); --bs-table-color: var(--hr-ink); --bs-table-hover-bg: var(--hr-hover); margin-bottom: 0; vertical-align: middle; }
.table > thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--hr-muted); font-weight: 650; background: var(--hr-table-head); border-bottom-width: 1px; white-space: nowrap; }
.table-wrap { background: var(--hr-card); border: 1px solid var(--hr-line); border-radius: var(--hr-radius); box-shadow: none; overflow-x: auto; margin-bottom: 1rem; }
.people-dept { display: none; }
@media (max-width: 991.98px) {
  .people-dept { display: block; }
  .table-wrap { overflow-x: visible; }
}
.table-wrap .table > :last-child > tr:last-child > * { border-bottom: 0; }

/* Badges / status */
.badge { font-weight: 600; letter-spacing: .01em; padding: .38em .6em; border-radius: 999px; }
.badge-soft { background: var(--hr-primary-soft); color: var(--hr-primary-dark); }
.badge.bg-secondary { background: var(--hr-soft) !important; color: var(--hr-ink) !important; }
.badge.bg-success { background: var(--hr-ok-bg) !important; color: var(--hr-ok) !important; }
.badge.bg-warning { background: var(--hr-warn-bg) !important; color: var(--hr-warn) !important; }
.badge.bg-danger { background: var(--hr-bad-bg) !important; color: var(--hr-bad) !important; }
.badge.bg-info { background: var(--hr-info-bg) !important; color: var(--hr-info) !important; }
.badge.bg-primary { background: var(--hr-primary-soft) !important; color: var(--hr-primary-dark) !important; }
.badge.bg-dark { background: #2a3146 !important; color: #fff !important; }
.alert { border-radius: var(--hr-radius); border-width: 1px; }
.alert-success { --bs-alert-bg: var(--hr-ok-bg); --bs-alert-border-color: var(--hr-line); --bs-alert-color: var(--hr-ok); }
.alert-danger { --bs-alert-bg: var(--hr-bad-bg); --bs-alert-border-color: var(--hr-line); --bs-alert-color: var(--hr-bad); }
.alert-warning { --bs-alert-bg: var(--hr-warn-bg); --bs-alert-border-color: var(--hr-line); --bs-alert-color: var(--hr-warn); }
.alert-info { --bs-alert-bg: var(--hr-info-bg); --bs-alert-border-color: var(--hr-line); --bs-alert-color: var(--hr-info); }

/* App shell */
.app { display: flex; min-height: 100vh; }
.sidebar { width: var(--hr-side-w); flex: 0 0 var(--hr-side-w); background: var(--hr-side-bg); color: var(--hr-side-ink); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; border-right: 1px solid var(--hr-line); }
.brand { display: flex; align-items: center; gap: .6rem; padding: 1.1rem 1.25rem; color: var(--hr-ink); text-decoration: none; font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.brand:hover { color: var(--hr-ink); }
.brand-mark { width: 2rem; height: 2rem; flex: 0 0 auto; }
.brand small { display: block; font-weight: 500; font-size: .75rem; color: var(--hr-muted); letter-spacing: 0; }
.nav-section { font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 550; color: var(--hr-muted); padding: 1rem 1.25rem .35rem; }
.side-nav { list-style: none; margin: 0; padding: 0 .6rem; }
.side-nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 10px; color: var(--hr-side-ink); text-decoration: none; font-weight: 520; }
.side-nav a:hover { background: var(--hr-side-hover); color: var(--hr-ink); }
.side-nav a[aria-current="page"] { background: var(--hr-card); color: var(--hr-primary); box-shadow: inset 0 0 0 1px var(--hr-line); }
.side-nav .ico { width: 20px; height: 20px; opacity: .9; }
.sidebar-foot { margin-top: auto; padding: 1rem 1.25rem; font-size: 14px; color: var(--hr-muted); }
.side-privacy { color: var(--hr-muted); font-size: 14px; text-decoration: none; }
.side-privacy:hover { color: var(--hr-link); }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; vertical-align: -.18em; }
.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: .75rem; padding: .6rem 1.5rem; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--hr-line); min-height: 3.6rem; }
.topbar .crumbs { flex: 1 1 auto; min-width: 0; }
.breadcrumb { margin: 0; font-size: .88rem; flex-wrap: nowrap; overflow: hidden; }
.breadcrumb-item { white-space: nowrap; }
.breadcrumb-item.active { color: var(--hr-ink); font-weight: 560; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: .6rem; color: var(--hr-ink); border: 1px solid transparent; background: transparent; }
.icon-btn:hover { background: var(--hr-primary-soft); color: var(--hr-primary-dark); }
.icon-btn .ico { width: 24px; height: 24px; }
.icon-btn .count { position: absolute; top: .15rem; right: .1rem; min-width: 1.15rem; height: 1.15rem; padding: 0 .25rem; border-radius: 999px; background: #c42b2b; color: #fff; font-size: .68rem; font-weight: 700; line-height: 1.15rem; text-align: center; }
.user-btn { display: inline-flex; align-items: center; gap: .55rem; border: 1px solid var(--hr-line); background: var(--hr-card); border-radius: 999px; padding: .2rem .7rem .2rem .2rem; color: var(--hr-ink); }
.user-btn:hover { border-color: #c5cbe0; }
.user-btn .who { font-weight: 560; font-size: .9rem; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content { padding: 1.5rem; max-width: 75rem; width: 100%; margin-inline: auto; }
.footer { display: none; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-bottom: 1.25rem; }
.page-head .btn { min-height: 40px; }
.table-wrap { overflow-x: auto; }
.row-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.kbd-help { border: 1px solid var(--hr-line); border-radius: 1rem; background: var(--hr-card); color: var(--hr-ink); padding: 1.25rem; max-width: 22rem; }
.kbd-help::backdrop { background: rgba(0, 0, 0, .32); }
.kbd-help kbd { font-family: inherit; border: 1px solid var(--hr-line); border-radius: .35rem; padding: 0 .35rem; }
@media (max-width: 575.98px) {
  .page-head { align-items: stretch; }
  .page-head .btn, .toolbar .btn, .toolbar .form-select, .toolbar .form-control { width: 100%; }
  .toolbar { align-items: stretch; }
  .row-actions { flex-direction: column; align-items: stretch; }
  .row-actions .btn { width: 100%; }
}
.page-head h1 { margin: 0; }
.page-head .sub, .sub { color: var(--hr-muted); margin: .25rem 0 0; font-size: 17px; }
.auth-card > .sub { margin: 0 0 20px; }
@media (max-width: 991.98px) {
  .sidebar { position: fixed; z-index: 1045; left: 0; top: 0; transform: translateX(-100%); transition: none; visibility: hidden; }
  .sidebar.open { transform: none; visibility: visible; transition: transform 200ms ease-out; box-shadow: 0 0 2rem rgba(0, 0, 0, .3); }
  .sidebar-backdrop { position: fixed; inset: 0; background: rgba(16, 26, 58, .45); z-index: 1040; }
  .content { padding: 1rem; }
  .topbar { padding: .5rem 1rem; }
  .user-btn .who { display: none; }
}
@media (min-width: 992px) {
  .nav-toggle { display: none !important; }
  .sidebar-backdrop { display: none !important; }
  .sidebar { transform: none; transition: none; visibility: visible; }
}

.empty-line { display: flex; align-items: center; gap: .5rem; margin: 0 0 1rem; padding: .5rem .85rem; background: var(--hr-card); border: 1px solid var(--hr-line); border-radius: var(--hr-radius); color: var(--hr-muted); font-size: .9rem; }
.empty-line .ico { color: #1c8a4e; }

/* Reviews by year */
.year-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: .9rem; margin-bottom: 1.5rem; }
.year-card { display: flex; flex-direction: column; gap: .45rem; padding: .95rem 1.05rem; background: var(--hr-card); border: 1px solid var(--hr-line); border-radius: var(--hr-radius); box-shadow: none; color: inherit; text-decoration: none; }
a.year-card:hover { border-color: var(--hr-line); box-shadow: none; color: inherit; }
.year-card.active { border-color: var(--hr-primary); box-shadow: 0 0 0 2px rgba(var(--hr-primary-rgb), .18); }
.year-card .year { font-size: 1.45rem; font-weight: 700; line-height: 1.1; }
.year-card .meta { color: var(--hr-muted); font-size: .85rem; }
.year-card .chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--hr-soft); color: var(--hr-muted); }
.chip.ok { background: var(--hr-ok-bg); color: var(--hr-ok); } .chip.open { background: var(--hr-warn-bg); color: var(--hr-warn); }
.year-head { display: flex; align-items: baseline; gap: .6rem; margin: 1.5rem 0 .6rem; }
.year-head h3 { margin: 0; font-size: 1.1rem; }
.nav-tabs .nav-link { color: var(--hr-muted); font-weight: 600; } .nav-tabs .nav-link.active { color: var(--hr-ink); }
.nav-tabs .count { margin-left: .35rem; font-weight: 600; font-size: .75rem; color: var(--hr-muted); }

/* Review: question by question */
.qa { margin-bottom: 1rem; }
.qa .card-header { font-weight: 650; background: var(--hr-card); }
.qa .card-header .qn { color: var(--hr-muted); font-weight: 600; margin-right: .4rem; }
.qa-resp { padding: .75rem 1rem; border-top: 1px solid var(--hr-line); }
.qa-resp:first-child { border-top: 0; }
.qa-resp.self { background: var(--hr-primary-soft); border-left: 3px solid var(--hr-primary); }
.qa-who { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .3rem; font-size: .85rem; color: var(--hr-muted); }
.qa-who .role { font-weight: 650; color: var(--hr-ink); text-transform: uppercase; font-size: .72rem; letter-spacing: .04em; }
.rating { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .85rem; }
.rating .num { display: inline-flex; align-items: center; justify-content: center; min-width: 1.75rem; height: 1.75rem; padding: 0 .35rem; border-radius: 999px; background: var(--hr-btn-primary-bg); color: var(--hr-btn-primary-fg); font-weight: 700; }
.view-switch { display: inline-flex; gap: .25rem; }
@media print { .qa-resp.self { background: none; } .rating .num { background: none; color: inherit; border: 1px solid #888; } }

/* Avatars */
.avatar { --size: 2.25rem; width: var(--size); height: var(--size); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 650; font-size: calc(var(--size) * .4); color: var(--hr-btn-primary-fg); background: var(--hr-btn-primary-bg); flex: 0 0 auto; letter-spacing: .02em; }
.avatar-sm { --size: 1.9rem; } .avatar-lg { --size: 3.5rem; } .avatar-xl { --size: 4.5rem; }
.av-0 { background: #3446c4; } .av-1 { background: #0d7c72; } .av-2 { background: #8a3fb8; } .av-3 { background: #b4532a; } .av-4 { background: #2b6cb0; } .av-5 { background: #a12f5e; } .av-6 { background: #4a6b1f; } .av-7 { background: #5a4fcf; }
.person { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.person .name { font-weight: 580; color: var(--hr-ink); text-decoration: none; }
a.name:hover { color: var(--hr-primary); text-decoration: underline; }
.person .meta { color: var(--hr-muted); font-size: .85rem; }

/* Dashboard */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
@media (max-width: 991.98px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .stat-grid { grid-template-columns: 1fr; } }
h2.section-label, h3.section-label { font-size: 13px; font-weight: 600; color: var(--hr-muted); letter-spacing: 0; text-transform: none; margin: 0; line-height: 1.3; }
.auth-card h2.agreement-label { font-size: 15px; font-weight: 600; color: var(--hr-ink); letter-spacing: 0; text-transform: none; margin: 8px 0 8px; line-height: 1.3; }
.stat { display: flex; gap: .9rem; align-items: center; padding: 1rem 1.1rem; background: var(--hr-card); border: 1px solid var(--hr-line); border-radius: var(--hr-radius); box-shadow: none; color: inherit; text-decoration: none; }
a.stat:hover { border-color: #c5cbe0; box-shadow: 0 4px 14px rgba(16, 26, 58, .08); color: inherit; }
.stat .stat-ico { width: 2.6rem; height: 2.6rem; border-radius: .7rem; display: inline-flex; align-items: center; justify-content: center; background: var(--hr-tile); color: var(--hr-tile-ink); flex: 0 0 auto; }
.stat .stat-ico.teal { background: var(--hr-tile-teal); color: var(--hr-tile-teal-ink); } .stat .stat-ico.amber { background: var(--hr-tile-amber); color: var(--hr-tile-amber-ink); } .stat .stat-ico.rose { background: var(--hr-tile-rose); color: var(--hr-tile-rose-ink); }
.stat .value { font-size: 1.55rem; font-weight: 700; line-height: 1.1; }
.stat .label { color: var(--hr-muted); font-size: .85rem; }
.task-list .list-group-item { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; }
.due { font-size: .82rem; white-space: nowrap; }

/* Empty states */
.empty { text-align: center; padding: 32px 1rem; color: var(--hr-muted); background: var(--hr-card); border: 1px dashed var(--hr-line); border-radius: var(--hr-radius); }
.empty .ico { width: 24px; height: 24px; color: var(--hr-muted); margin-bottom: .5rem; }
.empty .title { font-weight: 600; font-size: 17px; color: var(--hr-ink); margin-bottom: .2rem; }

/* Toolbar (search/filter) + pagination */
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.toolbar .search { position: relative; flex: 1 1 16rem; max-width: 26rem; }
.toolbar .search .ico { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--hr-muted); }
.toolbar .search input { padding-left: 2.2rem; }
.pagination { --bs-pagination-color: var(--hr-page-fg); --bs-pagination-active-color: var(--hr-btn-primary-fg);
  --bs-pagination-active-bg: var(--hr-btn-primary-bg); --bs-pagination-active-border-color: var(--hr-btn-primary-border); margin: 0; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; color: var(--hr-muted); font-size: .88rem; }

/* Progress */
.progress { height: .55rem; border-radius: 999px; background: var(--hr-track); }
.progress-bar { background: var(--hr-primary); }
progress.bar { appearance: none; width: 100%; height: .55rem; border: 0; border-radius: 999px; background: var(--hr-track); overflow: hidden; vertical-align: middle; }
progress.bar::-webkit-progress-bar { background: var(--hr-track); border-radius: 999px; }
progress.bar::-webkit-progress-value { background: var(--hr-primary); border-radius: 999px; }
progress.bar::-moz-progress-bar { background: var(--hr-primary); border-radius: 999px; }
progress.bar.done::-webkit-progress-value { background: #1c8a4e; } progress.bar.done::-moz-progress-bar { background: #1c8a4e; }
.steps { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.steps li { display: flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; background: var(--hr-soft); color: var(--hr-ink); font-size: .82rem; font-weight: 560; }
.steps li.done { background: #dcf3e6; color: #11643a; } .steps li.current { background: var(--hr-btn-primary-bg); color: var(--hr-btn-primary-fg); }

/* Org chart */
.org-tree, .org-tree ul { list-style: none; margin: 0; padding: 0; }
.org-tree ul { margin-left: 1.2rem; padding-left: 1.1rem; border-left: 2px solid #dfe3ee; }
.org-tree li { position: relative; padding: .3rem 0; }
.org-tree ul > li::before { content: ""; position: absolute; left: -1.1rem; top: 1.55rem; width: 1rem; border-top: 2px solid #dfe3ee; }
.org-node { display: inline-flex; align-items: center; gap: .6rem; background: var(--hr-card); border: 1px solid var(--hr-line); border-radius: .7rem; padding: .45rem .8rem .45rem .5rem; box-shadow: var(--hr-shadow); min-width: 15rem; max-width: 100%; }
.org-node .name { font-weight: 600; } .org-node .name a { color: var(--hr-ink); text-decoration: none; } .org-node .name a:hover { color: var(--hr-primary); text-decoration: underline; }
.org-node .meta { color: var(--hr-muted); font-size: .82rem; }
.org-node.is-me { border-color: var(--hr-primary); box-shadow: 0 0 0 2px rgba(var(--hr-primary-rgb), .25); background: rgba(var(--hr-primary-rgb), .08); }
.org-toggle { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid var(--hr-line); background: var(--hr-card); display: inline-flex; align-items: center; justify-content: center; color: var(--hr-muted); padding: 0; flex: 0 0 auto; }
.org-toggle:hover { color: var(--hr-primary); border-color: var(--hr-primary); }
.org-toggle .ico { width: .9rem; height: .9rem; transition: transform .15s; }
.org-toggle[aria-expanded="false"] .ico { transform: rotate(-90deg); }
.org-count { font-size: .75rem; color: var(--hr-muted); background: #eef0f6; border-radius: 999px; padding: .05rem .5rem; }
.org-spacer { width: 1.6rem; flex: 0 0 auto; }

/* Auth pages */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; background: radial-gradient(1200px 600px at 10% -10%, #dfe5ff 0, transparent 60%), radial-gradient(900px 500px at 110% 110%, #d9f1ee 0, transparent 55%), var(--hr-bg); }
.auth-card { width: 100%; max-width: 27rem; background: #fff; border: 1px solid var(--hr-line); border-radius: 1rem; box-shadow: 0 10px 40px rgba(16, 26, 58, .1); padding: 2rem; }
.auth-card.wide { max-width: 34rem; }
.auth-brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.2rem; color: var(--hr-ink); margin-bottom: 1.5rem; text-decoration: none; }
.slug-field { display: flex; align-items: stretch; border: 1px solid var(--hr-line); border-radius: .5rem; background: var(--hr-card); overflow: hidden; }
.slug-field:focus-within { border-color: var(--hr-primary); }
.slug-field .form-control { border: 0; border-radius: 0; box-shadow: none; min-width: 0; background: transparent; }
.slug-suffix { display: flex; align-items: center; padding: 0 .75rem; color: var(--hr-muted); background: var(--hr-bg); border-left: 1px solid var(--hr-line); white-space: nowrap; font-size: .9rem; flex: 0 0 auto; }
.auth-card h1 { font-size: 1.4rem; margin-bottom: .35rem; }
.auth-card .lead-text { color: var(--hr-muted); margin-bottom: 1.25rem; }
.auth-foot-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; margin-top: 20px; max-width: 40rem; }
.auth-foot { text-align: center; color: var(--hr-muted); font-size: 13px; margin: 0; }
.auth .theme-opt { font-size: 12px; min-height: 24px; padding: 0 8px; }
.otp-input { font-size: 1.5rem; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.qr { display: inline-block; background: #fff; padding: .75rem; border: 1px solid var(--hr-line); border-radius: .7rem; }
.qr svg { width: 11rem; height: 11rem; display: block; }
.secret, #shared-key { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #f3f4f9; border: 1px solid var(--hr-line); border-radius: .5rem; padding: .4rem .6rem; word-break: break-all; color: var(--hr-ink); }
.step-list { counter-reset: s; list-style: none; padding: 0; }
.step-list > li { counter-increment: s; position: relative; padding-left: 2.3rem; margin-bottom: 1rem; }
.step-list > li::before { content: counter(s); position: absolute; left: 0; top: -.05rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--hr-primary-soft); color: var(--hr-primary-dark); font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.pw-rules { font-size: .85rem; color: var(--hr-muted); padding-left: 1.1rem; margin-bottom: 1rem; }

/* Definition lists / profile */
.kv dt { color: var(--hr-muted); font-weight: 560; font-size: .88rem; }
.kv dd { margin-bottom: .6rem; }
.offcanvas.offcanvas-end, .profile-panel { --bs-offcanvas-width: min(560px, 100vw); width: min(560px, 100vw); max-width: 100vw; box-sizing: border-box; }
.profile-panel { display: flex; flex-direction: column; }
.profile-panel .offcanvas-header { border-bottom: 1px solid var(--hr-line); flex: 0 0 auto; }
.profile-panel .offcanvas-body { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; }
.profile-panel .offcanvas-body > form.row { width: 100%; margin-left: 0; margin-right: 0; }
.profile-panel .offcanvas-body form > .col-12:last-child { position: sticky; bottom: 0; z-index: 2; margin-top: .5rem; padding-top: .75rem; padding-bottom: .35rem; background: var(--hr-card); border-top: 1px solid var(--hr-line); }
.panel-list .list-group-item { display: flex; align-items: center; gap: .6rem; font-weight: 560; }
.panel-list .list-group-item .chev { margin-left: auto; color: var(--hr-muted); transform: rotate(-90deg); }
.panel-list .list-group-item .hint { font-weight: 400; color: var(--hr-muted); font-size: .8rem; }
.profile-head { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

/* Error pages */
.error-page { text-align: center; padding: 4rem 1rem; }
.error-page .code { font-size: 4rem; font-weight: 800; color: var(--hr-primary); line-height: 1; letter-spacing: -.03em; }

/* Print: reviews and other detail pages print cleanly */
@media print {
  .sidebar, .topbar, .footer, .no-print, button.btn, a.btn, .sidebar-backdrop, .toolbar, .pager { display: none !important; }
  .app { display: block; background: none !important; }
  body, .content { background: #fff !important; padding: 0 !important; max-width: none; }
  .card, .surface, .table-wrap, .list-group { box-shadow: none !important; border-color: #bbb !important; break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  .print-only { display: block !important; }
}
.print-only { display: none; }
.min-w-0 { min-width: 0; }
@media (min-width: 992px) { .app { background: linear-gradient(to right, var(--hr-side-bg) var(--hr-side-w), transparent 0); } }
fieldset.card > .card-body > legend, .card legend { float: none; width: auto; padding: 0; }
fieldset.card { min-width: 0; }
/* Plain tables placed directly on a page get the same surface as wrapped ones. */
.content > .table, .content > form > .table, .content > div > .table:not(.table-wrap .table) { background: var(--hr-card); border: 1px solid var(--hr-line); box-shadow: var(--hr-shadow); }
.content h2 { margin-top: .5rem; }
.page-head + p.text-muted { margin-top: -.75rem; margin-bottom: 1.25rem; }
/* template builder */
.scope-card { cursor: pointer; }
.scope-card:has(input:checked) { border-color: var(--bs-primary); }
.q-summary span { margin-right: .35rem; }
.timeline { border-left: 2px solid var(--bs-border-color); margin-left: .9rem; padding-left: 1.25rem; }
.timeline-step { padding-bottom: 1rem; }
.timeline-num { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--bs-light); border: 1px solid var(--bs-border-color); font-size: .8rem; margin-left: -2.15rem; margin-right: .5rem; }
/* score comparison (inline SVG dot plot, colours via classes only) */
.score-plot, .radar-svg { width: 100%; max-width: 760px; height: auto; display: block; margin: 0 auto; }
.plot-axis, .plot-grid { stroke: var(--hr-line); stroke-width: 1; }
.plot-spread { stroke: var(--hr-plot-spread); stroke-width: 1.5; stroke-linecap: round; }
.plot-label { font-size: 12px; fill: var(--hr-ink); }
.plot-tick { font-size: 11px; fill: var(--hr-muted); }
.plot-gap-band { fill: var(--hr-plot-gap); }
.plot-gap-pill { fill: var(--hr-plot-gap-ink); }
.plot-gap-badge { font-size: 9px; font-weight: 700; fill: #fff; }
.radar-self { --plot: var(--hr-plot-self); }
.radar-manager { --plot: var(--hr-plot-manager); }
.radar-additionalmanagers { --plot: var(--hr-plot-additional); }
.radar-directreports { --plot: var(--hr-plot-direct); }
.radar-peers { --plot: var(--hr-plot-peers); }
.radar-anonymous { --plot: var(--hr-plot-anonymous); }
.plot-mark { fill: var(--plot, var(--hr-ink)); stroke: #fff; stroke-width: 1.25; }
.plot-ring { fill: none; stroke: var(--plot, var(--hr-ink)); stroke-width: 2; }
.radar-legend { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.radar-key { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; }
.radar-swatch { width: 14px; height: 14px; flex: none; }
.plot-switch { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.plot-switch-label { display: inline-flex; align-items: center; margin-bottom: .75rem; padding: .25rem .65rem; border: 1px solid var(--hr-line); border-radius: .4rem; background: var(--hr-card); color: var(--hr-primary); font-size: .8rem; font-weight: 650; cursor: pointer; }
.plot-switch:focus-visible + .plot-switch-label { outline: 3px solid rgba(var(--hr-primary-rgb), .55); outline-offset: 2px; }
.plot-switch-label .when-table { display: none; }
.plot-switch:checked + .plot-switch-label .when-chart { display: none; }
.plot-switch:checked + .plot-switch-label .when-table { display: inline; }
.plot-table-off { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.plot-switch:checked ~ .plot-figure { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.plot-switch:checked ~ .plot-table-off { position: static; width: auto; height: auto; margin: 0; overflow: auto; clip: auto; white-space: normal; }
.score-view { position: relative; }
@media print {
  .plot-switch, .plot-switch-label { display: none !important; }
  .plot-figure, .plot-table-off { position: static !important; width: auto !important; height: auto !important; margin: 0 0 1rem !important; overflow: visible !important; clip: auto !important; white-space: normal !important; }
}
.gap-flag { display: inline-flex; align-items: center; padding: .1rem .45rem; border-radius: 999px; background: var(--hr-plot-gap); color: var(--hr-plot-gap-ink); font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
/* level selector tooltips (CSS only; also exposed via aria-describedby) */
.level-pick { position: relative; display: inline-block; }
.level-tip { display: none; position: absolute; z-index: 20; left: 0; top: calc(100% + 6px); width: 18rem; padding: .5rem .65rem; border-radius: .4rem; background: #1f2433; color: #fff; font-size: .8rem; line-height: 1.35; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.level-pick:hover .level-tip, .level-pick .btn-check:focus-visible ~ .level-tip { display: block; }
.capability-desc { font-style: italic; }
.level-list dt { font-weight: 600; } .level-list dd { margin-bottom: .35rem; }
/* review results: capability text, score table, response cards (classes only; CSP forbids inline styles) */
.cap { display: flex; flex-direction: column; gap: .15rem; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.cap-group { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--hr-muted); }
.cap-heading { font-weight: 650; color: var(--hr-ink); line-height: 1.35; }
.cap-points { margin-top: .2rem; font-size: .85rem; font-weight: 400; }
.cap-points summary { cursor: pointer; color: var(--hr-primary); font-weight: 600; font-size: .8rem; width: max-content; }
.cap-points ul { margin: .35rem 0 0; padding-left: 1.1rem; color: var(--hr-muted); line-height: 1.45; }
.cap-points li { margin-bottom: .15rem; }
.cap-points li::marker { color: #b3b9c7; }
.score-table-wrap { border: 1px solid var(--hr-line); border-radius: var(--hr-radius); }
.score-table { --bs-table-bg: transparent; margin: 0; }
.score-table caption { caption-side: bottom; padding: .5rem .75rem; }
.score-table thead th { position: sticky; top: 0; z-index: 1; background: #f7f8fb; border-bottom: 1px solid var(--hr-line); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--hr-muted); padding: .6rem .75rem; vertical-align: bottom; }
.score-table th.cap-col { width: 100%; min-width: 16rem; }
.score-table th.persp-col { text-align: center; white-space: nowrap; }
.persp-key { display: inline-flex; align-items: center; gap: .3rem; }
.score-table tbody th, .score-table tbody td { padding: .75rem; border-bottom: 1px solid var(--hr-line); vertical-align: top; }
.score-table tbody tr:nth-child(even) { background: #fafbfd; }
.score-table tbody tr.plot-gap-row { background: var(--hr-plot-gap); }
.score-table tbody tr:hover { background: var(--hr-primary-soft); }
.score-table .cap-cell { font-weight: 400; }
.score-table .score-col { text-align: center; white-space: nowrap; padding-top: .8rem; }
.score-pill { display: inline-flex; align-items: baseline; justify-content: center; gap: .05rem; min-width: 3.1rem; padding: .2rem .55rem; border-radius: 999px; font-weight: 700; font-size: .85rem; font-variant-numeric: tabular-nums; background: #eef0f5; color: var(--hr-ink); }
.score-pill .of { font-weight: 500; font-size: .72rem; opacity: .75; }
.score-pill.tone-hi { background: #dff3e7; color: #135c34; } .score-pill.tone-good { background: #e1effa; color: #17507a; }
.score-pill.tone-mid { background: #fff1d1; color: #7a4f00; } .score-pill.tone-low { background: #fde3e3; color: #9b1c1c; }
.score-pill.strong { font-size: .95rem; min-width: 3.4rem; box-shadow: inset 0 0 0 1.5px currentColor; }
.score-n { display: block; margin-top: .15rem; font-size: .68rem; font-weight: 550; color: var(--hr-muted); }
.score-none { color: var(--hr-muted); }
.score-table .overall-row th, .score-table .overall-row td { background: #f2f4fb; border-top: 2px solid #d5daea; padding: .75rem; font-weight: 700; }
.score-table .overall-row .of { font-weight: 500; color: var(--hr-muted); font-size: .85rem; }
@media (max-width: 575.98px) {
  .score-table thead { display: none; }
  .score-table, .score-table tbody, .score-table tfoot, .score-table tr { display: block; width: 100%; }
  .score-table tr { padding: .6rem .75rem; border-bottom: 1px solid var(--hr-line); }
  .score-table tbody th, .score-table tbody td, .score-table .overall-row th, .score-table .overall-row td { display: flex; justify-content: space-between; align-items: center; border: 0; padding: .25rem 0; background: transparent; }
  .score-table .cap-cell { display: block; padding-bottom: .5rem; }
  .score-table td[data-label]::before { content: attr(data-label); font-size: .78rem; font-weight: 600; color: var(--hr-muted); }
  .score-table th.cap-col { min-width: 0; }
}
.qa-head { display: flex; align-items: flex-start; gap: .25rem; font-weight: 400 !important; }
.qa-head .qn { padding-top: 0; }
.qa-head:has(.cap-group) .qn { padding-top: 1.05rem; }
.qa-head .cap { flex: 1; }
.resp-list { display: flex; flex-direction: column; gap: .6rem; padding: .75rem; }
.resp { border: 1px solid var(--hr-line); border-left: 4px solid #c3c8d4; border-radius: .5rem; background: #fff; padding: .7rem 1rem .8rem; }
.resp-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .35rem; }
.resp-name { font-weight: 600; font-size: .9rem; color: var(--hr-ink); }
.resp-score { display: inline-flex; align-items: center; gap: .4rem; }
.resp-score-label { font-size: .8rem; font-weight: 600; color: var(--hr-muted); }
.resp-body { max-width: 80ch; line-height: 1.55; overflow-wrap: anywhere; word-break: break-word; }
.resp-body p { margin: 0 0 .5rem; white-space: pre-wrap; } .resp-body p:last-child { margin-bottom: 0; }
.resp-body.muted { color: var(--hr-muted); font-style: italic; }
/* structured answer text (ReviewText.Rich): paragraphs, line breaks kept (pre-line), bullet lists */
.rt p, .rt li { white-space: pre-line; }
.rt p { margin: 0 0 .5rem; } .rt p:last-child { margin-bottom: 0; }
.rt ul { margin: .15rem 0 .5rem; padding-left: 1.35rem; list-style: disc; } .rt ul:last-child { margin-bottom: 0; }
.rt ul ul { margin: .15rem 0 .1rem; list-style: circle; } .rt ul ul ul { list-style: square; }
.rt li { margin: 0 0 .2rem; } .rt li:last-child { margin-bottom: 0; }
.role-chip { display: inline-flex; align-items: center; padding: .12rem .55rem; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: #eef0f5; color: #4a5263; }
.role-chip.role-self { background: #ecebfd; color: #4b3fc4; } .resp.role-self { border-left-color: #6f63e8; background: #faf9ff; }
.role-chip.role-manager { background: #e2f1ed; color: #1f5f52; } .resp.role-manager { border-left-color: #2f7d6d; }
.role-chip.role-addmanager { background: #e5f0f7; color: #2f6a8c; } .resp.role-addmanager { border-left-color: #6aa6c8; }
.role-chip.role-direct { background: #fcefdf; color: #8a4f0b; } .resp.role-direct { border-left-color: #d98a2b; }
.role-chip.role-peer { background: #f9e4ed; color: #962f5a; } .resp.role-peer { border-left-color: #c2477a; }
.role-chip.role-anon { background: #eceef2; color: #4f5664; } .resp.role-anon { border-left-color: #7a8291; }
@media print {
  .score-table thead th { position: static; }
  .resp { break-inside: avoid; background: none; }
  .score-pill, .role-chip { background: none !important; border: 1px solid #888; color: inherit !important; }
}
/* template builder: question cards and calibration scope */
.question-list { display: flex; flex-direction: column; gap: .6rem; }
.qcard { margin: 0; }
.qcard-body { display: flex; gap: .85rem; align-items: flex-start; padding: .85rem 1rem; }
.qnum { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--hr-primary-soft); color: var(--hr-primary); font-weight: 700; font-size: .85rem; }
.qnum.sm { width: 1.6rem; height: 1.6rem; font-size: .78rem; }
.qcard-main { flex: 1; min-width: 0; }
.qtext { display: flex; flex-direction: column; gap: .15rem; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.qtext-title { font-weight: 650; font-size: 1rem; color: var(--hr-ink); line-height: 1.35; }
.qtext-desc { color: var(--hr-muted); font-size: .88rem; line-height: 1.45; max-width: 80ch; }
.qtext-full { white-space: pre-line; line-height: 1.45; }
.qtext-levels { margin-top: .4rem; font-size: .85rem; }
.qtext-levels summary, .cal-body .cap-points summary { cursor: pointer; color: var(--hr-primary); font-weight: 600; font-size: .8rem; width: max-content; }
.level-rows { list-style: none; margin: .45rem 0 0; padding: 0; border: 1px solid var(--hr-line); border-radius: .5rem; overflow: hidden; }
.level-rows li { display: grid; grid-template-columns: 1.6rem 10rem 1fr; gap: .6rem; align-items: start; padding: .45rem .65rem; border-top: 1px solid var(--hr-line); line-height: 1.4; }
.level-rows li:first-child { border-top: 0; }
.level-rows li:nth-child(even) { background: #fafbfd; }
.level-num { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #eef0f5; font-weight: 700; font-size: .75rem; color: var(--hr-ink); }
.level-rows li:nth-child(1) .level-num { background: #fde3e3; color: #9b1c1c; } .level-rows li:nth-child(2) .level-num { background: #fff1d1; color: #7a4f00; }
.level-rows li:nth-child(3) .level-num { background: #fdf6d8; color: #6b5800; } .level-rows li:nth-child(4) .level-num { background: #e1effa; color: #17507a; }
.level-rows li:nth-child(5) .level-num { background: #dff3e7; color: #135c34; } .level-rows li:nth-child(6) .level-num { background: #d3ecdf; color: #0e4a29; }
.level-name { font-weight: 650; padding-top: .1rem; }
.level-desc { color: #3d4557; overflow-wrap: anywhere; }
@media (max-width: 575.98px) { .level-rows li { grid-template-columns: 1.6rem 1fr; } .level-desc { grid-column: 2; } }
.qmeta { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .55rem; }
.meta-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 550; background: #f1f3f7; color: var(--hr-muted); border: 1px solid var(--hr-line); }
.meta-chip .meta-k { font-weight: 700; color: var(--hr-ink); }
.meta-chip.req { background: var(--hr-primary-soft); color: var(--hr-primary-dark); border-color: #d5dbf5; }
.meta-chip.ok { background: #e3f4ea; color: #17673b; border-color: #c9e8d5; }
.meta-chip.warn { background: #fff3d6; color: #7a4f00; border-color: #f2dfae; }
.meta-chip .ico { width: .85rem; height: .85rem; }
.qactions { flex: none; display: flex; gap: .3rem; }
.qactions form { margin: 0; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: .45rem; border: 1px solid var(--hr-line); background: var(--hr-card); color: var(--hr-muted); padding: 0; text-decoration: none; }
.btn-icon:hover, .btn-icon:focus-visible { color: var(--hr-primary); border-color: var(--hr-primary); background: var(--hr-primary-soft); }
.btn-icon .ico { width: 1rem; height: 1rem; }
@media (max-width: 575.98px) { .qcard-body { flex-wrap: wrap; } .qactions { width: 100%; justify-content: flex-end; } }
.cal-toggle { padding: .85rem 1rem; display: flex; flex-direction: column; gap: .35rem; }
.cal-toggle .form-check-input { width: 2.4em; height: 1.3em; }
.cal-list { display: flex; flex-direction: column; gap: .5rem; }
.cal-item { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem 1rem; border: 1px solid var(--hr-line); border-radius: .55rem; background: #fff; }
.cal-item:has(.cal-check:checked) { border-color: #b9c2ef; background: #f8f9ff; }
.cal-check.form-check-input { flex: none; width: 1.3rem; height: 1.3rem; margin: .2rem 0 0; cursor: pointer; }
.cal-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; align-items: flex-start; }
.cal-label { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; width: 100%; }
.cal-off-note { display: none; }
.builder-section:has(#CalibrationEnabled:not(:checked)) .cal-off-note { display: block; }
.builder-section:has(#CalibrationEnabled:not(:checked)) .cal-settings { display: none; }
.qpreview { padding: .6rem .8rem; border: 1px dashed var(--hr-line); border-radius: .5rem; background: #fafbfd; }
.qpreview-k { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--hr-muted); margin-bottom: .25rem; }
.cal-scope-legend { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .85rem; }
.cal-scope-legend li { display: inline-flex; align-items: center; gap: .4rem; overflow-wrap: anywhere; }
.cal-scope-legend .qnum.sm { width: auto; padding: 0 .45rem; border-radius: 999px; }
/* review admin sub-navigation */
.admin-subnav { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; padding: .3rem; background: var(--hr-card); border: 1px solid var(--hr-line); border-radius: .65rem; width: max-content; max-width: 100%; }
.admin-subnav-link { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .9rem; border-radius: .45rem; font-weight: 600; color: var(--hr-muted); text-decoration: none; }
.admin-subnav-link:hover { background: var(--hr-primary-soft); color: var(--hr-primary); }
.admin-subnav-link.active { background: var(--hr-btn-primary-bg); color: var(--hr-btn-primary-fg); }
.admin-subnav-link .ico { width: 1rem; height: 1rem; }
.danger-zone { border-color: #f1c7c7; }
.delete-confirm > summary { list-style: none; width: max-content; }
.delete-confirm > summary::-webkit-details-marker { display: none; }
.delete-confirm[open] > summary { opacity: .7; }
/* participant picker */
.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .4rem; max-height: 28rem; overflow-y: auto; padding: .15rem; }
.pick-item { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border: 1px solid var(--hr-line); border-radius: .5rem; background: #fff; }
.pick-item:has(.pick-check:checked) { border-color: #b9c2ef; background: #f8f9ff; }
.pick-check.form-check-input { flex: none; width: 1.15rem; height: 1.15rem; margin: 0; cursor: pointer; }
.pick-label { display: flex; align-items: center; gap: .55rem; cursor: pointer; min-width: 0; flex: 1; }
.pick-name { font-weight: 600; }
.pick-meta { display: block; font-size: .78rem; color: var(--hr-muted); overflow-wrap: anywhere; }
/* write review */
.wq { border-left: 4px solid var(--hr-line); }
.wq.is-done { border-left-color: #8fd0a9; }
.wq-head { display: flex; gap: .75rem; align-items: flex-start; float: none; width: 100%; margin-bottom: .5rem; font-size: 1rem; }
.wq-titles { display: flex; flex-direction: column; gap: .2rem; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.wq-title { font-weight: 650; font-size: 1.05rem; line-height: 1.35; color: var(--hr-ink); }
.wq-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.wq-desc { color: var(--hr-muted); line-height: 1.5; max-width: 80ch; margin: 0 0 .75rem 2.65rem; overflow-wrap: anywhere; }
.wq .cap-points { margin-left: 2.65rem; }
.rate { margin: .25rem 0 .5rem; }
.rate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: .4rem; }
.rate-opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-height: 3.6rem; padding: .45rem .4rem; border: 1.5px solid var(--hr-line);
  border-radius: .55rem; background: var(--hr-card); cursor: pointer; text-align: center; line-height: 1.2; transition: border-color .12s, background-color .12s; }
.rate-opt:hover { border-color: var(--hr-primary); background: var(--hr-primary-soft); }
.rate-num { font-weight: 800; font-size: 1.05rem; color: var(--hr-primary); }
.rate-label { font-size: .76rem; font-weight: 600; color: var(--hr-ink); overflow-wrap: anywhere; }
.rate-opt.na .rate-num { color: var(--hr-muted); font-size: .9rem; }
.btn-check:checked + .rate-opt { border-color: var(--hr-btn-primary-border); background: var(--hr-btn-primary-bg); box-shadow: 0 0 0 3px rgba(var(--hr-primary-rgb), .18); }
.btn-check:checked + .rate-opt .rate-num, .btn-check:checked + .rate-opt .rate-label { color: var(--hr-btn-primary-fg); }
.btn-check:focus-visible + .rate-opt { outline: 3px solid rgba(var(--hr-primary-rgb), .55); outline-offset: 2px; }
.btn-check:disabled + .rate-opt { cursor: default; opacity: .75; }
.rate-selected { margin-top: .5rem; padding: .55rem .75rem; border-radius: .5rem; background: #f7f8fb; border: 1px solid var(--hr-line); font-size: .88rem; line-height: 1.45; }
.rate-selected p { margin: 0; }
.sel-desc { display: none; }
.rate:has(.btn-check:checked) .rate-hint { display: none; }
.rate:has(.btn-check[value="1"]:checked) .sel-desc-1, .rate:has(.btn-check[value="2"]:checked) .sel-desc-2, .rate:has(.btn-check[value="3"]:checked) .sel-desc-3,
.rate:has(.btn-check[value="4"]:checked) .sel-desc-4, .rate:has(.btn-check[value="5"]:checked) .sel-desc-5, .rate:has(.btn-check[value="6"]:checked) .sel-desc-6,
.rate:has(.btn-check[value="7"]:checked) .sel-desc-7, .rate:has(.btn-check[value="8"]:checked) .sel-desc-8, .rate:has(.btn-check[value="9"]:checked) .sel-desc-9,
.rate:has(.btn-check[value="10"]:checked) .sel-desc-10 { display: block; }
.rate-hint { color: var(--hr-muted); font-style: italic; }
.wq-comment { field-sizing: content; min-height: 6rem; max-height: 30rem; line-height: 1.5; }
form[data-autosave] { padding-bottom: 88px; }
.write-bar { z-index: 5; background: var(--hr-card); border-top: 1px solid var(--hr-line); box-shadow: none; }
@media (max-width: 575.98px) { .rate-grid { grid-template-columns: repeat(2, 1fr); } .wq-desc, .wq .cap-points { margin-left: 0; } }
/* review progress dashboards (SVG/CSS only; colours follow the radar scheme) */
.dash-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.dash-card { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; }
.dash-card .value { font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.dash-card .label { color: var(--hr-muted); font-size: .85rem; }
.dash-card.dash-alert .value { color: #b8323b; }
.donut { width: 92px; height: 92px; flex: none; }
.donut-track { fill: none; stroke: #e6e9f0; stroke-width: 14; }
.donut-value { fill: none; stroke: #2f7d6d; stroke-width: 14; stroke-linecap: butt; }
.donut-text { font-size: 22px; font-weight: 700; fill: var(--hr-ink); }
.hbars { width: 100%; max-width: 660px; height: auto; display: block; }
.hbar-label, .hbar-count { font-size: 12px; fill: #4b5466; }
.hbar-track { fill: #eceff5; }
.hbar-value.bar-done { fill: #2f7d6d; }
.trend { width: 100%; max-width: 640px; height: auto; display: block; }
.trend-grid { stroke: #e5e8ee; stroke-width: 1; }
.trend-axis { font-size: 11px; fill: #6b7385; }
.trend-line { fill: none; stroke: #6f63e8; stroke-width: 2.5; }
.trend-prev { fill: none; stroke: #7a8291; stroke-width: 2; stroke-dasharray: 5 4; }
.trend-dot { fill: #6f63e8; stroke: #fff; stroke-width: 1.5; }
.trend-legend { display: flex; gap: 1rem; margin-top: .35rem; }
.trend-legend .key::before { content: ""; display: inline-block; width: 18px; height: 0; border-top: 3px solid #6f63e8; vertical-align: middle; margin-right: .35rem; }
.trend-legend .key-prev::before { border-top: 2px dashed #7a8291; }
.steps { display: flex; flex-wrap: wrap; gap: .25rem .6rem; list-style: none; margin: 0; padding: 0; }
.step { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; color: var(--hr-ink); white-space: nowrap; }
.step-dot { width: .7rem; height: .7rem; border-radius: 50%; display: inline-block; border: 2px solid #c5cad6; background: #fff; }
.st-done .step-dot { background: #2f7d6d; border-color: #2f7d6d; }
.st-progress .step-dot { background: #fff; border-color: #6f63e8; box-shadow: inset 0 0 0 2px #6f63e8; }
.st-overdue .step-dot { background: #b8323b; border-color: #b8323b; }
.st-overdue .step-name { color: #9b1c1c; font-weight: 600; }
:root[data-theme-choice="dark"] .st-overdue .step-name { color: var(--hr-bad); }
@media (prefers-color-scheme: dark) { :root[data-theme-choice="system"] .st-overdue .step-name { color: var(--hr-bad); } }
.st-hidden .step-dot { background: repeating-linear-gradient(45deg, #c5cad6 0 2px, #fff 2px 4px); border-color: #9aa1b1; }
.st-todo .step-name, .st-done .step-name, .st-progress .step-name { color: var(--hr-ink); }
.steps-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.team-tree { padding: .5rem 1rem; }
.team-node { margin: .25rem 0 .25rem .25rem; }
.team-node .team-node { margin-left: 1.5rem; border-left: 2px solid var(--hr-line); padding-left: .75rem; }
.team-node > summary { display: flex; align-items: center; gap: .75rem; cursor: pointer; padding: .35rem 0; }
.team-name { font-weight: 650; min-width: 12rem; }
.team-meta { color: var(--hr-muted); font-size: .85rem; min-width: 14rem; }
.team-bar { width: 12rem; }
.team-pct { font-weight: 650; font-size: .85rem; }
.team-people { list-style: none; margin: .25rem 0 .5rem 1.25rem; padding: 0; }
.team-people li { display: grid; grid-template-columns: 12rem 1fr auto; gap: .75rem; align-items: center; padding: .3rem 0; border-bottom: 1px solid #f0f2f6; }
.team-people li.late .person-name { color: #b8323b; }

/* Review page: "Past feedback" panel (right column on wide screens, below the answers on narrow ones). Widths via classes (strict CSP). */
.pf-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (min-width: 1200px) { .pf-layout { grid-template-columns: minmax(0, 1fr) 21rem; } .pf-panel { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; } }
.pf-panel { background: var(--hr-card); border: 1px solid var(--hr-line); border-radius: var(--hr-radius); box-shadow: var(--hr-shadow); padding: .9rem; }
.pf-title { margin: 0 0 .15rem; color: var(--hr-muted); font-weight: 650; }
.pf-sub { font-size: .8rem; color: var(--hr-muted); margin: 0 0 .6rem; }
.pf-q { border-top: 1px solid var(--hr-line); padding: .45rem 0; }
.pf-q > summary { cursor: pointer; font-size: .86rem; font-weight: 600; color: var(--hr-ink); list-style-position: outside; margin-left: 1rem; }
.pf-q > summary .qn { color: var(--hr-muted); }
.pf-q:target > summary, .pf-q.pf-active > summary { color: var(--hr-primary); }
.pf-count { display: inline-block; min-width: 1.4rem; padding: 0 .35rem; margin-left: .25rem; border-radius: 999px; background: var(--hr-primary-soft); color: var(--hr-primary); font-size: .72rem; text-align: center; }
.pf-card { border: 1px solid var(--hr-line); border-radius: .5rem; padding: .6rem .75rem; margin-top: .5rem; background: #fff; }
.pf-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .3rem; }
.pf-name { font-weight: 650; font-size: .88rem; }
.pf-body { font-size: .86rem; color: #3b4356; }
.pf-meta { margin: .45rem 0 0; font-size: .76rem; color: var(--hr-muted); }
.pf-empty { margin: .35rem 0 0 1rem; font-size: .8rem; color: var(--hr-muted); }
.pf-count.pf-none { background: #eef0f4; color: var(--hr-muted); }
.pf-pick { margin: 0 0 .5rem; }
.pf-pick label { display: block; margin-bottom: .25rem; }
.pf-pick-row { display: flex; gap: .4rem; align-items: center; }
.pf-pick-row select { min-width: 0; flex: 1 1 auto; }
.pf-score { display: flex; align-items: center; gap: .5rem; margin-bottom: .35rem; }
.pf-score-text { font-size: .76rem; font-weight: 600; color: var(--hr-muted); }
.pf-bar { display: inline-block; width: 4.5rem; height: .35rem; border-radius: 999px; background: #e6e8f0; overflow: hidden; flex: none; }
.pf-fill { display: block; height: 100%; border-radius: 999px; background: var(--hr-primary); }
.pf-w-0 { width: 0; } .pf-w-10 { width: 10%; } .pf-w-20 { width: 20%; } .pf-w-30 { width: 30%; } .pf-w-40 { width: 40%; } .pf-w-50 { width: 50%; }
.pf-w-60 { width: 60%; } .pf-w-70 { width: 70%; } .pf-w-80 { width: 80%; } .pf-w-90 { width: 90%; } .pf-w-100 { width: 100%; }
.pf-link { display: inline-block; margin-left: auto; padding-left: .5rem; font-size: .78rem; font-weight: 600; white-space: nowrap; }
/* Writing page: the same panel beside the form (wide screens) or as a collapsible tab above it (narrow screens). */
.wf-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
.wf-layout.has-pf .pf-write { order: -1; }
.pf-tab > .pf-tab-sum { cursor: pointer; font-weight: 650; color: var(--hr-primary); }
.pf-tab[open] > .pf-tab-sum { margin-bottom: .5rem; }
.pf-write .pf-title { display: none; }
.wq-chips .pf-link { margin-left: .25rem; padding-left: 0; }
.pf-write.pf-loading [data-pf-body] { opacity: .55; }
@media (min-width: 1200px) {
  .wf-layout.has-pf { grid-template-columns: minmax(0, 1fr) 21rem; }
  .wf-layout.has-pf .pf-write { order: 0; position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
  .pf-tab > .pf-tab-sum { display: none; }
  .pf-write .pf-title { display: block; }
}

/* Review cycle dashboard */
.cd-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; margin: 0 0 1rem; font-size: .92rem; }
.cd-crumb a { color: var(--hr-primary); text-decoration: none; font-weight: 550; }
.cd-crumb a:hover { text-decoration: underline; }
.cd-crumb-sep { color: var(--hr-muted); }
.cd-crumb-current { font-weight: 620; color: var(--hr-ink); }
.cd-filters { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: end; margin-bottom: 1.25rem; }
.cd-filter { min-width: 10rem; }
.cd-filter-search { flex: 1 1 14rem; min-width: 14rem; }
.cd-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.cd-tile { padding: 1rem 1.15rem; display: flex; flex-direction: column; gap: .25rem; }
.cd-tile-k { color: var(--hr-muted); font-size: .8rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.cd-tile-v { font-size: 1.7rem; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.cd-tile-s { color: var(--hr-muted); font-size: .85rem; }
.cd-tile-alert .cd-tile-v { color: #b8323b; }
.cd-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.cd-type { text-align: left; border: 1px solid var(--hr-line); border-radius: var(--hr-radius); padding: 1rem 1.1rem; cursor: pointer; background: var(--hr-card); width: 100%; }
.cd-type:hover { border-color: var(--hr-primary); box-shadow: var(--hr-shadow); }
.cd-type.is-on { border-color: var(--hr-primary); background: var(--hr-primary-soft); box-shadow: var(--hr-shadow); }
.cd-type-h { font-weight: 620; }
.cd-type-p { font-size: 1.15rem; font-weight: 700; color: var(--hr-primary); margin: .15rem 0 .4rem; }
.cd-type-counts { list-style: none; margin: 0 0 .4rem; padding: 0; font-size: .85rem; color: var(--hr-muted); }
.cd-type-counts li { display: flex; align-items: center; gap: .4rem; }
.cd-dot { width: .55rem; height: .55rem; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.cd-dot-ns { background: #8b93a7; } .cd-dot-ip { background: var(--hr-primary); } .cd-dot-ok { background: #1c8a4e; } .cd-dot-late { background: #b8323b; }
.cd-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.cd-chart-card { padding: 1rem 1.15rem 1.1rem; }
.cd-chart-box { position: relative; height: 16rem; }
.cd-chart-box.cd-chart-tall { height: 22rem; }
.cd-chart-box canvas { display: block; width: 100% !important; height: 100% !important; }
.cd-dept-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.cd-dept-list li { display: grid; grid-template-columns: 10rem minmax(0, 1fr) auto; gap: .75rem; align-items: center; }
.cd-dept-btn { background: none; border: 0; padding: 0; text-align: left; color: var(--hr-primary); font-weight: 550; cursor: pointer; }
.cd-dept-btn:hover { text-decoration: underline; }
.cd-sort { background: none; border: 0; padding: 0; color: inherit; font: inherit; font-weight: 620; cursor: pointer; text-align: inherit; }
.cd-sort:hover { color: var(--hr-primary); }
.cd-badge { display: inline-block; font-size: .72rem; font-weight: 620; letter-spacing: .01em; padding: .15rem .45rem; border-radius: 999px; vertical-align: middle; }
.cd-badge-notstarted { background: #e7eaf3; color: #3a4256; }
.cd-badge-inprogress { background: var(--hr-primary-soft); color: var(--hr-primary-dark); }
.cd-badge-submitted { background: #e3f5ea; color: #146338; }
.cd-badge-overdue { background: #fde8e9; color: #92262d; }
.cd-mini { display: flex; align-items: center; gap: .4rem; min-width: 6.5rem; margin-top: .2rem; }
.cd-mini .bar { width: 4.5rem; flex: 0 0 4.5rem; }
.cd-profile { display: inline-block; margin-left: .45rem; font-size: .78rem; color: var(--hr-muted); text-decoration: none; }
.cd-profile:hover { color: var(--hr-primary); text-decoration: underline; }
.cd-mx-wrap { max-height: min(70vh, 44rem); overflow: auto; }
.cd-mx thead th { position: sticky; top: 0; background: var(--hr-card); z-index: 1; box-shadow: 0 1px 0 var(--hr-line); }
.cd-loading { opacity: .65; pointer-events: none; }
@media (max-width: 1100px) {
  .cd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cd-charts { grid-template-columns: 1fr; }
  .cd-dept-list li { grid-template-columns: 1fr; gap: .25rem; }
}
@media (max-width: 640px) {
  .cd-tiles { grid-template-columns: 1fr; }
  .cd-filter { min-width: 100%; }
}
@media print {
  .cd-filters, .cd-charts { break-inside: avoid; }
  .cd-mx-wrap { max-height: none; }
}
@media (prefers-reduced-motion: reduce) { .cd-loading { transition: none; } }

/* Passkeys */
.passkey-alt { margin-top: 1.25rem; }
.passkey-or { text-align: center; color: var(--bs-secondary-color, #6c757d); margin: 0.75rem 0; text-transform: lowercase; }
.passkey-or::before, .passkey-or::after { content: none; }

.passkey-manage-box { max-width: 28rem; }

/* Submit validation: named missing questions */
.wq.is-incomplete { border-color: #b42318; box-shadow: 0 0 0 1px #b42318; }

/* Calendar */
.cal-toolbar { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; justify-content: space-between; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.cal-filters { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: flex-end; }
.cal-filters label { display: flex; flex-direction: column; gap: .2rem; font-size: .78rem; font-weight: 600; color: var(--hr-muted); margin: 0; }
.cal-filters .form-control, .cal-filters .form-select { width: auto; min-width: 8.5rem; }
.cal-toolbar-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.cal-swatch { display: inline-block; width: .75rem; height: .75rem; border-radius: 50%; background: var(--cal-colour, #64748B); vertical-align: middle; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.cal-swatch.is-lg { width: 1.15rem; height: 1.15rem; }
.cal-swatches { display: flex; flex-wrap: wrap; gap: .4rem .6rem; }
.cal-swatch-btn { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid transparent; background: transparent; border-radius: 999px; padding: .2rem .55rem .2rem .25rem; color: var(--hr-ink); cursor: pointer; }
.cal-swatch-btn:hover, .cal-swatch-btn:focus-visible { border-color: var(--hr-line); background: #f8f9fc; }
.cal-swatch-btn.is-selected { border-color: var(--hr-ink); background: #f4f5f8; }
.cal-swatch-name { font-size: .8rem; }

.cal-legend { display: flex; flex-wrap: wrap; gap: .65rem 1.1rem; align-items: center; margin: 1rem 0 0; font-size: .82rem; color: var(--hr-muted); }
.cal-legend-item { display: inline-flex; align-items: center; gap: .35rem; }
.cal-legend-diamond { width: .7rem; height: .7rem; background: var(--hr-ink); transform: rotate(45deg); display: inline-block; }
.cal-legend-weekend { width: 1rem; height: .75rem; background: rgba(92, 100, 120, .12); border: 1px solid var(--hr-line); border-radius: 2px; display: inline-block; }
.cal-legend-done { display: inline-flex; align-items: center; justify-content: center; width: 1.35rem; height: .85rem; border-radius: 999px; background: #94a3b8; color: #fff; }
.cal-legend-done .cal-check { width: .7rem; height: .7rem; }

/* Timeline */
.cal-tl-card { padding: 0; overflow: hidden; }
.cal-tl { --cal-stub: 16.5rem; --cal-day-w: 1.85rem; --cal-days: 30; --cal-today-i: -1; }
.cal-tl-scroll { overflow-x: auto; }
.cal-tl-inner { position: relative; width: max-content; min-width: 100%; }
.cal-tl-table { table-layout: fixed; border-collapse: collapse; width: calc(var(--cal-stub) + (var(--cal-days) * var(--cal-day-w))); font-size: .82rem; }
.cal-tl-table th, .cal-tl-table td { border-bottom: 1px solid var(--hr-line); vertical-align: middle; }
.cal-tl-stub { position: sticky; left: 0; z-index: 4; width: var(--cal-stub); min-width: var(--cal-stub); max-width: var(--cal-stub); background: #fff; box-shadow: 6px 0 8px -8px rgba(16, 26, 58, .35); text-align: left; padding: .45rem .75rem; font-weight: 500; }
thead .cal-tl-stub { z-index: 6; background: #f8f9fc; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--hr-muted); font-weight: 650; }
.cal-tl-months th:not(.cal-tl-stub) { text-align: center; font-size: .72rem; letter-spacing: .08em; color: var(--hr-muted); font-weight: 700; padding: .4rem .35rem .15rem; background: #f8f9fc; border-bottom: 0; }
.cal-tl-dow th, .cal-tl-dom th { width: var(--cal-day-w); min-width: var(--cal-day-w); max-width: var(--cal-day-w); text-align: center; padding: 0; font-weight: 500; color: var(--hr-muted); background: #f8f9fc; line-height: 1.2; }
.cal-tl-dow th { font-size: .65rem; text-transform: uppercase; border-bottom: 0; padding-top: .1rem; }
.cal-tl-dom th { font-size: .75rem; color: var(--hr-ink); padding-bottom: .35rem; font-weight: 600; }
.cal-tl-dow th.is-weekend, .cal-tl-dom th.is-weekend, .cal-tl-lane { }
.cal-tl-table th.is-weekend, .cal-month-day.is-weekend { background-color: rgba(91, 100, 120, .08); }
.cal-tl-track .cal-tl-stub { background: #f4f5f8; }
.cal-tl-track.is-finished .cal-tl-stub, .cal-tl-track.is-finished .cal-tl-track-name { color: var(--hr-muted); }
.cal-tl-track-name { font-weight: 650; color: var(--hr-ink); text-decoration: none; }
.cal-tl-track-name:hover { text-decoration: underline; }
.cal-tl-step.is-unset .cal-step-link, .cal-tl-step.is-unset .muted { color: var(--hr-muted); }
.cal-tl-step.is-done .cal-tl-stub { color: var(--hr-muted); }
.cal-tl-plot { position: relative; padding: 0; height: 1px; }
.cal-tl-lane { position: relative; min-height: 2.15rem; height: 100%; }
.cal-tl-track .cal-tl-plot, .cal-tl-track .cal-tl-lane { min-height: 0; background: #f4f5f8; }
.cal-bar { position: absolute; top: .35rem; height: 1.45rem; border: 0; border-radius: 999px; background: var(--cal-colour, #4F46E5); color: #fff; padding: 0 .45rem; display: inline-flex; align-items: center; gap: .2rem; cursor: pointer; white-space: nowrap; min-width: 1.45rem; box-shadow: 0 1px 2px rgba(16, 26, 58, .12); }
.cal-bar:focus-visible, .cal-chip:focus-visible, .cal-step-link:focus-visible { outline: 2px solid var(--hr-ink); outline-offset: 2px; }
.cal-bar.is-milestone { width: 1.1rem; min-width: 1.1rem; height: 1.1rem; padding: 0; top: .52rem; border-radius: 0; background: var(--cal-colour, #4F46E5); transform: rotate(45deg); box-shadow: none; }
.cal-bar.is-milestone .cal-check { transform: rotate(-45deg); }
.cal-bar.is-done, .cal-chip.is-done { filter: saturate(.3) brightness(1.18); }
.cal-check { width: .75rem; height: .75rem; flex: 0 0 auto; color: #fff; }
.cal-bar.is-done::before, .cal-chip.is-done:not(.is-milestone)::before {
  content: "✓"; font-size: .72rem; font-weight: 700; line-height: 1; color: #fff;
}
.cal-bar.is-milestone.is-done::before { content: "✓"; display: block; transform: rotate(-45deg); font-size: .62rem; color: #fff; }
.cal-tl-step.is-done .cal-step-link, .cal-tl-step.is-done .muted { color: var(--hr-muted); }
.cal-tl-plot, .cal-tl-lane { overflow: hidden; }
.cal-tl-lane { background-image: repeating-linear-gradient(to right,
    transparent 0,
    transparent calc(var(--cal-we-start, 5) * 100% / var(--cal-days)),
    rgba(91, 100, 120, .08) calc(var(--cal-we-start, 5) * 100% / var(--cal-days)),
    rgba(91, 100, 120, .08) calc((var(--cal-we-start, 5) + 2) * 100% / var(--cal-days)),
    transparent calc((var(--cal-we-start, 5) + 2) * 100% / var(--cal-days)),
    transparent calc(7 * 100% / var(--cal-days))); }
.cal-tl-now { position: absolute; top: 0; bottom: 0; left: calc(var(--cal-stub) + (var(--cal-today-i) * var(--cal-day-w))); width: 1px; background: #c45c26; pointer-events: none; z-index: 3; }
.cal-today-col { color: #c45c26 !important; }

/* Month */
.cal-month-wrap { padding: 1rem 1.1rem 1.15rem; }
.cal-month-heading h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
.cal-month-dow { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: .78rem; font-weight: 650; color: var(--hr-muted); text-transform: uppercase; letter-spacing: .04em; padding: .35rem 0; border-bottom: 1px solid var(--hr-line); }
.cal-month-week { border-bottom: 1px solid var(--hr-line); }
.cal-month-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-month-day { min-height: 2rem; padding: .35rem .4rem 0; }
.cal-month-day.is-outside { color: var(--hr-muted); background: #fafbfc; }
.cal-month-day.is-weekend { background-color: rgba(91, 100, 120, .08); }
.cal-month-day.is-today .cal-month-num { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #c45c26; color: #fff; font-weight: 700; }
.cal-month-num { font-size: .8rem; font-weight: 600; }
.cal-month-lanes { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 4px; padding: 0 .2rem .45rem; min-height: 1.7rem; align-items: start; }
.cal-chip { display: inline-flex; align-items: center; gap: .2rem; min-width: 0; border: 0; border-radius: 999px; background: var(--cal-colour, #4F46E5); color: #fff; font-size: .72rem; line-height: 1.15; padding: .15rem .45rem; text-align: left; cursor: pointer; }
.cal-chip-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-chip.is-milestone { border-radius: 0; width: 1rem; min-width: 1rem; height: 1rem; padding: 0; justify-content: center; transform: rotate(45deg); justify-self: center; }
.cal-chip.is-milestone .cal-chip-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.cal-chip.is-milestone .cal-check { transform: rotate(-45deg); }
.cal-mcol-1 { grid-column-start: 1; } .cal-mcol-2 { grid-column-start: 2; } .cal-mcol-3 { grid-column-start: 3; } .cal-mcol-4 { grid-column-start: 4; }
.cal-mcol-5 { grid-column-start: 5; } .cal-mcol-6 { grid-column-start: 6; } .cal-mcol-7 { grid-column-start: 7; }
.cal-mspan-1 { grid-column-end: span 1; } .cal-mspan-2 { grid-column-end: span 2; } .cal-mspan-3 { grid-column-end: span 3; } .cal-mspan-4 { grid-column-end: span 4; }
.cal-mspan-5 { grid-column-end: span 5; } .cal-mspan-6 { grid-column-end: span 6; } .cal-mspan-7 { grid-column-end: span 7; }
.cal-unset-list { margin: 1rem 0 0; }
.cal-unset-list h3 { font-size: .9rem; margin: 0 0 .35rem; color: var(--hr-muted); }
.cal-unset-list ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .25rem; }
.cal-unset-list li { display: flex; gap: .4rem; align-items: center; }
.cal-linked-list { margin: .75rem 0 0; padding-left: 1.1rem; }

.cal-step-link { border: 0; background: none; padding: 0; color: var(--hr-ink); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.cal-step-link:hover { text-decoration: underline; }
.cal-step-link.is-unset, .is-unset .cal-step-link { color: var(--hr-muted); font-weight: 500; }
.cal-list .table { margin: 0; }

/* Side panel */
.cal-panel[hidden] { display: none !important; }
.cal-panel { position: fixed; inset: 0; z-index: 1050; }
.cal-panel-backdrop { position: absolute; inset: 0; background: rgba(28, 35, 51, .35); cursor: pointer; }
.cal-panel-card { position: absolute; top: 0; right: 0; bottom: 0; width: min(24rem, 100%); background: #fff; box-shadow: -8px 0 28px rgba(16, 26, 58, .18); display: flex; flex-direction: column; overflow: auto; padding: 0; }
.cal-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: 1.1rem 1.15rem .5rem; border-bottom: 1px solid var(--hr-line); }
.cal-panel-head h2 { font-size: 1.05rem; margin: 0; }
.cal-panel-body { padding: 1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.cal-panel-dl { margin: 0; display: grid; gap: .55rem; }
.cal-panel-dl > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: .4rem; }
.cal-panel-dl dt { color: var(--hr-muted); font-weight: 600; font-size: .8rem; }
.cal-panel-dl dd { margin: 0; }
.cal-panel-form label, .cal-step-edit-form label { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; font-weight: 600; color: var(--hr-muted); margin-bottom: .55rem; }
.cal-panel-dates { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.cal-check-label { flex-direction: row !important; align-items: center; gap: .4rem !important; font-weight: 500 !important; color: var(--hr-ink) !important; }
.cal-panel-footer, .cal-card-footer { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; align-items: center; }
.cal-panel-footer { margin-top: .4rem; }
.cal-panel-open { margin: 0; }
.cal-panel-actions-inline { margin-bottom: .35rem; }

/* Track / new */
.cal-crumb { margin: 0 0 .25rem; font-size: .82rem; }
.cal-crumb a { color: var(--hr-muted); text-decoration: none; }
.cal-crumb a:hover { text-decoration: underline; }
.cal-form { max-width: 52rem; }
.cal-card { padding: 1.15rem 1.2rem; margin-bottom: 1.15rem; }
.cal-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.1rem; }
.cal-card-span { grid-column: 1 / -1; }
.cal-card-footer { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--hr-line); }
.cal-card-footer-end { display: flex; flex-wrap: wrap; gap: .5rem; margin-left: auto; }
.cal-read-dl { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.1rem; margin: 0; }
.cal-read-dl dt { font-size: .78rem; color: var(--hr-muted); font-weight: 650; }
.cal-read-dl dd { margin: 0; }
.cal-steps-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: 0 0 .75rem; }
.cal-steps-head h2, .cal-card h2 { font-size: 1.05rem; margin: 0 0 .4rem; }
.cal-step-list { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: .45rem; }
.cal-step-item { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; padding: .7rem .85rem; border: 1px solid var(--hr-line); border-radius: var(--hr-radius); background: #fff; }
.cal-step-item.is-done { background: #f7f8fb; }
.cal-step-main { flex: 1 1 14rem; }
.cal-step-title { font-weight: 650; }
.cal-step-actions { display: flex; flex-wrap: wrap; gap: .3rem; align-items: flex-start; }
.cal-step-edit { position: relative; }
.cal-step-edit > summary { list-style: none; }
.cal-step-edit > summary::-webkit-details-marker { display: none; }
.cal-step-edit-form, .cal-add-step form { padding: .75rem 0 0; max-width: 36rem; }
.cal-step-edit[open] { flex: 1 1 100%; }
.cal-step-edit-actions { display: flex; gap: .4rem; }
.cal-add-step > summary { cursor: pointer; font-weight: 650; }
.cal-suggest-list { list-style: none; padding: 0; margin: 0; }
.cal-suggest-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; padding: .35rem 0; border-bottom: 1px solid var(--hr-line); }

@media (max-width: 720px) {
  .cal-card-grid, .cal-read-dl, .cal-panel-dl > div { grid-template-columns: 1fr; }
  .cal-tl { --cal-stub: 12rem; --cal-day-w: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cal-tl-scroll { scroll-behavior: auto; }
}

/* Year view */
.cal-year-wrap { padding: 1rem 1.1rem 1.15rem; }
.cal-year-heading h2 { font-size: 1.15rem; margin: 0 0 .85rem; }
.cal-ygantt { --cal-ygantt-stub: 11.5rem; --cal-days: 365; --cal-today-i: -1; margin-bottom: 1.15rem; border: 1px solid var(--hr-line); border-radius: var(--hr-radius); background: #fff; overflow: hidden; }
.cal-ygantt-scroll { overflow-x: auto; overflow-y: hidden; }
.cal-ygantt-inner { position: relative; display: grid; grid-template-columns: minmax(0, var(--cal-ygantt-stub)) minmax(0, 1fr); min-width: 48rem; align-items: stretch; }
.cal-ygantt-stub { position: sticky; left: 0; z-index: 2; display: flex; align-items: center; gap: .35rem; padding: .4rem .7rem; background: #fff; box-shadow: 6px 0 8px -8px rgba(16, 26, 58, .35); font-size: .82rem; min-width: 0; border-top: 1px solid var(--hr-line); }
.cal-ygantt-corner { border-top: 0; background: #f8f9fc; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--hr-muted); font-weight: 650; }
.cal-ygantt-stub.is-finished .cal-tl-track-name { color: var(--hr-muted); }
.cal-ygantt-scale { display: flex; width: 100%; min-width: 0; font-size: .72rem; font-weight: 650; color: var(--hr-muted); text-transform: uppercase; letter-spacing: .03em; background: #f8f9fc; }
.cal-ygantt-m { text-align: center; padding: .4rem 0; border-left: 1px solid var(--hr-line); min-width: 0; overflow: hidden; }
.cal-flex-28 { flex: 28 0 0; } .cal-flex-29 { flex: 29 0 0; } .cal-flex-30 { flex: 30 0 0; } .cal-flex-31 { flex: 31 0 0; }
.cal-ygantt-lane { position: relative; min-height: 2.05rem; min-width: 0; overflow: hidden; border-top: 1px solid var(--hr-line); }
.cal-ygantt-guides { position: absolute; inset: 0; display: flex; pointer-events: none; }
.cal-ygantt-guides span { border-left: 1px solid var(--hr-line); min-width: 0; }
.cal-ygantt-now-wrap { position: absolute; top: 0; bottom: 0; left: var(--cal-ygantt-stub); right: 0; pointer-events: none; z-index: 3; }
.cal-ygantt-now { position: absolute; top: 0; bottom: 0; left: calc(var(--cal-today-i) * 100% / var(--cal-days)); width: 1px; background: #c45c26; }
.cal-ygantt-lane { isolation: isolate; }
.cal-ygantt-lane .cal-bar { top: 50%; height: .72rem; min-width: 0; padding: 0; box-shadow: none; transform: translateY(-50%); }
.cal-ygantt-lane .cal-bar.is-milestone { top: 50%; width: .64rem; min-width: .64rem; height: .64rem; transform: translateY(-50%) rotate(45deg); }
.cal-ygantt-lane .cal-bar.is-milestone .cal-check, .cal-ygantt-lane .cal-bar.is-done::before, .cal-ygantt-lane .cal-bar.is-milestone.is-done::before { display: none; }
.cal-ygantt-lane .cal-bar.is-done { filter: none; opacity: .72; }
.cal-year-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem 1.2rem; }
.cal-year-month-title { display: block; font-weight: 650; color: var(--hr-ink); text-decoration: none; margin: 0 0 .35rem; font-size: .92rem; }
.cal-year-month-title:hover { text-decoration: underline; }
.cal-ymin-dow, .cal-ymin-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-ymin-dow { text-align: center; font-size: .65rem; font-weight: 650; color: var(--hr-muted); text-transform: uppercase; letter-spacing: .04em; padding-bottom: .15rem; }
.cal-yday { min-height: 2rem; text-align: center; padding: .1rem 0 .15rem; border-radius: .25rem; }
.cal-yday.is-outside { color: var(--hr-muted); opacity: .55; }
.cal-yday.is-weekend { background-color: rgba(91, 100, 120, .08); }
.cal-yday.is-today .cal-yday-num { display: inline-flex; align-items: center; justify-content: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: #c45c26; color: #fff; font-weight: 700; }
.cal-yday-num { font-size: .75rem; font-weight: 600; line-height: 1.3rem; }
.cal-yday.is-active { cursor: pointer; }
.cal-yday.is-active:hover { background: var(--hr-hover); }
.cal-yday-open { display: block; width: 100%; border: 0; background: transparent; color: inherit; font: inherit; padding: 0; cursor: pointer; }
.cal-yday-open:focus-visible { outline: 2px solid var(--hr-primary); outline-offset: 2px; }
.cal-yday-marks { display: flex; justify-content: center; align-items: center; gap: 2px; min-height: .45rem; margin-top: 1px; }
.cal-ydot { width: .45rem; height: .45rem; padding: 0; border: 0; border-radius: 50%; background: var(--cal-colour, #4F46E5); cursor: pointer; }
.cal-ydot.is-milestone { border-radius: 0; transform: rotate(45deg); width: .4rem; height: .4rem; }
.cal-ydot.is-done { filter: saturate(.3) brightness(1.18); }
.cal-ydot:focus-visible { outline: 2px solid var(--hr-ink); outline-offset: 1px; }
.cal-day-list[hidden] { display: none !important; }
.cal-day-list { position: fixed; inset: 0; z-index: 1040; }
.cal-day-list-backdrop { position: absolute; inset: 0; background: rgba(28, 35, 51, .25); cursor: pointer; }
.cal-day-list-card { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(22rem, calc(100% - 2rem)); background: #fff; border-radius: var(--hr-radius); box-shadow: 0 12px 36px rgba(16, 26, 58, .18); padding: 0; overflow: hidden; }
.cal-day-list-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1rem .5rem; border-bottom: 1px solid var(--hr-line); }
.cal-day-list-head h2 { font-size: 1rem; margin: 0; }
.cal-day-list-items { list-style: none; margin: 0; padding: .4rem 0 .6rem; }
.cal-day-list-items li { margin: 0; }
.cal-day-list-items button { display: flex; width: 100%; align-items: center; gap: .5rem; border: 0; background: none; text-align: left; padding: .45rem 1rem; font: inherit; color: var(--hr-ink); cursor: pointer; }
.cal-day-list-items button:hover, .cal-day-list-items button:focus-visible { background: #f4f5f8; }
.cal-day-list-meta { color: var(--hr-muted); font-size: .8rem; }

@media (max-width: 1100px) {
  .cal-year-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .cal-year-grid { grid-template-columns: repeat(2, 1fr); }
  .cal-ygantt { --cal-ygantt-stub: 8.5rem; }
}
@media (max-width: 520px) {
  .cal-year-grid { grid-template-columns: 1fr; }
}

.mkt-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.5rem; background: var(--hr-side-bg); color: var(--hr-side-ink); }
.mkt-brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 680; text-decoration: none; }
.mkt-nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.mkt-nav a { color: var(--hr-side-ink); text-decoration: none; }
.mkt-main { max-width: 64rem; margin: 0 auto; padding: 2.5rem 1.25rem 3rem; }
.mkt-hero h1 { font-size: 2rem; max-width: 22ch; }
.mkt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.mkt-list { padding-left: 1.1rem; }
.mkt-list li { margin: .6rem 0; }
.mkt-price { font-size: 1.4rem; font-weight: 680; color: var(--hr-primary-dark); }
.mkt-foot { display: flex; gap: 1rem; flex-wrap: wrap; padding: 1.5rem; border-top: 1px solid var(--hr-line); color: var(--hr-muted); }
.mkt-foot a { color: var(--hr-muted); }
.agreement-box { height: 240px; max-height: 240px; overflow: auto; border: 1px solid var(--hr-line); border-radius: 12px; padding: .75rem 1rem; margin: .75rem 0 1rem; background: var(--hr-card); color: var(--hr-ink); -webkit-overflow-scrolling: touch; }
.agreement-box:focus { outline: 2px solid var(--hr-primary); outline-offset: 2px; }
.agreement-box h2 { font-size: 1.15rem; }
.agreement-box h3 { font-size: 1rem; }
.agreement-box p, .agreement-box blockquote { margin: .4rem 0; }
.agreement-box blockquote { border-left: 3px solid var(--hr-line); padding-left: .6rem; color: var(--hr-muted); }

.survey-dept thead th.survey-col { font-size: 14px; text-transform: none; letter-spacing: 0; font-weight: 600; white-space: normal; max-width: 9rem; }
.survey-bar-track { background: var(--hr-track); }
.form-control, .form-select, .dropdown-menu, .offcanvas, .list-group-item, .auth-card { background-color: var(--hr-card); color: var(--hr-ink); }
:root[data-theme-choice="dark"] .topbar { background: #000000eb; }
@media (prefers-color-scheme: dark) { :root[data-theme-choice="system"] .topbar { background: #000000eb; } }
.theme-switch { display: inline-flex; }
.theme-switch-set { display: inline-flex; margin: 0; padding: 0; border: 1px solid var(--hr-line); border-radius: 980px; overflow: hidden; background: var(--hr-card); }
.theme-opt { border: 0; background: transparent; color: var(--hr-muted); font: inherit; font-size: 13px; min-height: 32px; padding: 0 10px; cursor: pointer; }
.theme-opt.is-on { background: var(--hr-btn-primary-bg); color: var(--hr-btn-primary-fg); }
.theme-opt:focus-visible { outline: 3px solid rgba(var(--hr-primary-rgb), .55); outline-offset: 2px; }
.topbar { gap: .5rem; }
.topbar .theme-switch { margin-left: auto; }

@media (prefers-color-scheme: dark) {
  :root[data-theme-choice="system"] { color-scheme: dark; }
}
:root[data-theme-choice="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root[data-theme-choice="system"] {
    --hr-primary: #8eb4ff; --hr-primary-rgb: 142, 180, 255; --hr-primary-dark: #a8c4ff; --hr-primary-soft: #1a2444;
    --hr-on-primary: #1d1d1f; --hr-link: #a8c4ff;
    --hr-ink: #f5f5f7; --hr-muted: #98989d; --hr-line: #38383a; --hr-bg: #000; --hr-card: #1c1c1e;
    --hr-side-bg: #1c1c1e; --hr-side-ink: #f5f5f7; --hr-side-hover: #2c2c2e; --hr-side-active: #8eb4ff;
    --hr-ok: #b7ebc8; --hr-ok-bg: #123524; --hr-warn: #f6d48a; --hr-warn-bg: #3a2c10;
    --hr-bad: #ffb4ab; --hr-bad-bg: #3b1714; --hr-info: #9ad7e6; --hr-info-bg: #0d2c33;
    --hr-track: #2c2c2e; --hr-soft: #2c2c2e; --hr-table-head: #2c2c2e; --hr-hover: #2c2c2e;
    --hr-tile: #1a2444; --hr-tile-ink: #8eb4ff;
    --hr-tile-teal: #12302c; --hr-tile-teal-ink: #8ee0d6;
    --hr-tile-amber: #3a2c10; --hr-tile-amber-ink: #f6d48a;
    --hr-tile-rose: #3b1724; --hr-tile-rose-ink: #ffb4c8;
    --bs-body-color: #f5f5f7; --bs-body-bg: #000; --bs-secondary-color: #98989d; --bs-border-color: #38383a;
    --bs-emphasis-color: #f5f5f7; --bs-heading-color: #f5f5f7; --bs-link-color: #a8c4ff; --bs-link-hover-color: #c9d6ff;
    /* Lifted brand blue. White text is 4.7:1; the fill is 3.6:1 on a card and 4.4:1 on black. Not the pale link blue. */
    --hr-btn-primary-bg: #3d68f0; --hr-btn-primary-border: #3d68f0; --hr-btn-primary-fg: #fff;
    --hr-btn-primary-hover-bg: #2f5bea; --hr-btn-primary-hover-border: #2f5bea;
    --hr-btn-primary-active-bg: #244ed4; --hr-btn-primary-active-border: #244ed4;
    --hr-btn-outline-bg: rgba(255, 255, 255, .06); --hr-btn-outline-fg: #f5f5f7; --hr-btn-outline-border: #8e8e93;
    --hr-btn-outline-hover-bg: rgba(255, 255, 255, .12); --hr-btn-outline-hover-fg: #fff; --hr-btn-outline-hover-border: #aeaeb2;
    --hr-btn-outline-active-bg: rgba(255, 255, 255, .18); --hr-btn-outline-active-fg: #fff; --hr-btn-outline-active-border: #aeaeb2;
    --hr-btn-quiet-bg: rgba(255, 255, 255, .06); --hr-btn-quiet-fg: #f5f5f7; --hr-btn-quiet-border: #8e8e93;
    --hr-btn-quiet-hover-bg: rgba(255, 255, 255, .12); --hr-btn-quiet-hover-fg: #fff; --hr-btn-quiet-hover-border: #aeaeb2;
    --hr-btn-quiet-active-bg: rgba(255, 255, 255, .18); --hr-btn-quiet-active-fg: #fff; --hr-btn-quiet-active-border: #aeaeb2;
    --hr-btn-solid-bg: rgba(255, 255, 255, .06); --hr-btn-solid-fg: #f5f5f7; --hr-btn-solid-border: #8e8e93;
    --hr-btn-solid-hover-bg: rgba(255, 255, 255, .12); --hr-btn-solid-hover-fg: #fff; --hr-btn-solid-hover-border: #aeaeb2;
    --hr-btn-solid-active-bg: rgba(255, 255, 255, .18); --hr-btn-solid-active-fg: #fff; --hr-btn-solid-active-border: #aeaeb2;
    --hr-btn-light-bg: rgba(255, 255, 255, .06); --hr-btn-light-fg: #f5f5f7; --hr-btn-light-border: #8e8e93;
    --hr-btn-light-hover-bg: rgba(255, 255, 255, .12); --hr-btn-light-hover-fg: #fff; --hr-btn-light-hover-border: #aeaeb2;
    --hr-btn-light-active-bg: rgba(255, 255, 255, .18); --hr-btn-light-active-fg: #fff; --hr-btn-light-active-border: #aeaeb2;
    --hr-btn-disabled-bg: rgba(255, 255, 255, .04); --hr-btn-disabled-fg: #8e8e93; --hr-btn-disabled-border: #3a3a3c;
    --hr-page-fg: #f5f5f7;
    --bs-pagination-bg: rgba(255, 255, 255, .06); --bs-pagination-border-color: #8e8e93;
    --bs-pagination-hover-bg: rgba(255, 255, 255, .12); --bs-pagination-hover-color: #fff; --bs-pagination-hover-border-color: #aeaeb2;
    --bs-pagination-focus-bg: rgba(255, 255, 255, .12); --bs-pagination-focus-color: #fff; --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(142, 180, 255, .45);
    --bs-pagination-disabled-bg: transparent; --bs-pagination-disabled-color: #8e8e93; --bs-pagination-disabled-border-color: #3a3a3c;
  }
}
:root[data-theme-choice="dark"] {
  --hr-primary: #8eb4ff; --hr-primary-rgb: 142, 180, 255; --hr-primary-dark: #a8c4ff; --hr-primary-soft: #1a2444;
  --hr-on-primary: #1d1d1f; --hr-link: #a8c4ff;
  --hr-ink: #f5f5f7; --hr-muted: #98989d; --hr-line: #38383a; --hr-bg: #000; --hr-card: #1c1c1e;
  --hr-side-bg: #1c1c1e; --hr-side-ink: #f5f5f7; --hr-side-hover: #2c2c2e; --hr-side-active: #8eb4ff;
  --hr-ok: #b7ebc8; --hr-ok-bg: #123524; --hr-warn: #f6d48a; --hr-warn-bg: #3a2c10;
  --hr-bad: #ffb4ab; --hr-bad-bg: #3b1714; --hr-info: #9ad7e6; --hr-info-bg: #0d2c33;
  --hr-track: #2c2c2e; --hr-soft: #2c2c2e; --hr-table-head: #2c2c2e; --hr-hover: #2c2c2e;
  --hr-tile: #1a2444; --hr-tile-ink: #8eb4ff;
  --hr-tile-teal: #12302c; --hr-tile-teal-ink: #8ee0d6;
  --hr-tile-amber: #3a2c10; --hr-tile-amber-ink: #f6d48a;
  --hr-tile-rose: #3b1724; --hr-tile-rose-ink: #ffb4c8;
  --bs-body-color: #f5f5f7; --bs-body-bg: #000; --bs-secondary-color: #98989d; --bs-border-color: #38383a;
  --bs-emphasis-color: #f5f5f7; --bs-heading-color: #f5f5f7; --bs-link-color: #a8c4ff; --bs-link-hover-color: #c9d6ff;
  --hr-btn-primary-bg: #3d68f0; --hr-btn-primary-border: #3d68f0; --hr-btn-primary-fg: #fff;
  --hr-btn-primary-hover-bg: #2f5bea; --hr-btn-primary-hover-border: #2f5bea;
  --hr-btn-primary-active-bg: #244ed4; --hr-btn-primary-active-border: #244ed4;
  --hr-btn-outline-bg: rgba(255, 255, 255, .06); --hr-btn-outline-fg: #f5f5f7; --hr-btn-outline-border: #8e8e93;
  --hr-btn-outline-hover-bg: rgba(255, 255, 255, .12); --hr-btn-outline-hover-fg: #fff; --hr-btn-outline-hover-border: #aeaeb2;
  --hr-btn-outline-active-bg: rgba(255, 255, 255, .18); --hr-btn-outline-active-fg: #fff; --hr-btn-outline-active-border: #aeaeb2;
  --hr-btn-quiet-bg: rgba(255, 255, 255, .06); --hr-btn-quiet-fg: #f5f5f7; --hr-btn-quiet-border: #8e8e93;
  --hr-btn-quiet-hover-bg: rgba(255, 255, 255, .12); --hr-btn-quiet-hover-fg: #fff; --hr-btn-quiet-hover-border: #aeaeb2;
  --hr-btn-quiet-active-bg: rgba(255, 255, 255, .18); --hr-btn-quiet-active-fg: #fff; --hr-btn-quiet-active-border: #aeaeb2;
  --hr-btn-solid-bg: rgba(255, 255, 255, .06); --hr-btn-solid-fg: #f5f5f7; --hr-btn-solid-border: #8e8e93;
  --hr-btn-solid-hover-bg: rgba(255, 255, 255, .12); --hr-btn-solid-hover-fg: #fff; --hr-btn-solid-hover-border: #aeaeb2;
  --hr-btn-solid-active-bg: rgba(255, 255, 255, .18); --hr-btn-solid-active-fg: #fff; --hr-btn-solid-active-border: #aeaeb2;
  --hr-btn-light-bg: rgba(255, 255, 255, .06); --hr-btn-light-fg: #f5f5f7; --hr-btn-light-border: #8e8e93;
  --hr-btn-light-hover-bg: rgba(255, 255, 255, .12); --hr-btn-light-hover-fg: #fff; --hr-btn-light-hover-border: #aeaeb2;
  --hr-btn-light-active-bg: rgba(255, 255, 255, .18); --hr-btn-light-active-fg: #fff; --hr-btn-light-active-border: #aeaeb2;
  --hr-btn-disabled-bg: rgba(255, 255, 255, .04); --hr-btn-disabled-fg: #8e8e93; --hr-btn-disabled-border: #3a3a3c;
  --hr-page-fg: #f5f5f7;
  --bs-pagination-bg: rgba(255, 255, 255, .06); --bs-pagination-border-color: #8e8e93;
  --bs-pagination-hover-bg: rgba(255, 255, 255, .12); --bs-pagination-hover-color: #fff; --bs-pagination-hover-border-color: #aeaeb2;
  --bs-pagination-focus-bg: rgba(255, 255, 255, .12); --bs-pagination-focus-color: #fff; --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(142, 180, 255, .45);
  --bs-pagination-disabled-bg: transparent; --bs-pagination-disabled-color: #8e8e93; --bs-pagination-disabled-border-color: #3a3a3c;
}
:root[data-theme-choice="dark"] .auth,
:root[data-theme-choice="system"] .auth { background: var(--hr-bg); }
:root[data-theme-choice="dark"] .btn-close { filter: invert(1) grayscale(1) brightness(1.8); }
:root[data-theme-choice="dark"] .nav-tabs { --bs-nav-tabs-link-active-bg: var(--hr-card); --bs-nav-tabs-link-active-color: var(--hr-ink); --bs-nav-tabs-link-active-border-color: var(--hr-line) var(--hr-line) var(--hr-card); border-color: var(--hr-line); }
:root[data-theme-choice="dark"] .nav-tabs .nav-link { border-color: transparent; }
:root[data-theme-choice="dark"] .nav-tabs .nav-link.active { background: var(--hr-card); color: var(--hr-ink); border-color: var(--hr-line) var(--hr-line) var(--hr-card); }
:root[data-theme-choice="dark"] .btn-success { --bs-btn-color: var(--hr-ok); --bs-btn-bg: var(--hr-ok-bg); --bs-btn-border-color: #2f6b48;
  --bs-btn-hover-color: #e7ffef; --bs-btn-hover-bg: #184830; --bs-btn-hover-border-color: var(--hr-ok);
  --bs-btn-active-color: #e7ffef; --bs-btn-active-bg: #0e281a; --bs-btn-active-border-color: var(--hr-ok); }
:root[data-theme-choice="dark"] .btn-warning,
:root[data-theme-choice="dark"] .btn-outline-warning { --bs-btn-color: var(--hr-warn); --bs-btn-bg: var(--hr-warn-bg); --bs-btn-border-color: #8a6a2a;
  --bs-btn-hover-color: #fff4d4; --bs-btn-hover-bg: #4a3814; --bs-btn-hover-border-color: var(--hr-warn);
  --bs-btn-active-color: #fff4d4; --bs-btn-active-bg: #2a200c; --bs-btn-active-border-color: var(--hr-warn); }
:root[data-theme-choice="dark"] .btn-outline-danger { --bs-btn-color: var(--hr-bad); --bs-btn-bg: rgba(255, 180, 171, .08); --bs-btn-border-color: #a85a54;
  --bs-btn-hover-color: var(--hr-bad); --bs-btn-hover-bg: var(--hr-bad-bg); --bs-btn-hover-border-color: var(--hr-bad);
  --bs-btn-active-color: var(--hr-bad); --bs-btn-active-bg: #4e1e1a; --bs-btn-active-border-color: var(--hr-bad); }
:root[data-theme-choice="dark"] .btn-outline-success { --bs-btn-color: var(--hr-ok); --bs-btn-bg: rgba(183, 235, 200, .08); --bs-btn-border-color: #2f6b48;
  --bs-btn-hover-color: var(--hr-ok); --bs-btn-hover-bg: var(--hr-ok-bg); --bs-btn-hover-border-color: var(--hr-ok);
  --bs-btn-active-color: var(--hr-ok); --bs-btn-active-bg: #0e281a; --bs-btn-active-border-color: var(--hr-ok); }
:root[data-theme-choice="dark"] input[type="file"].form-control::file-selector-button { background: rgba(255, 255, 255, .06); color: #f5f5f7; border: 1px solid #8e8e93; }
@media (prefers-color-scheme: dark) {
  :root[data-theme-choice="system"] .btn-close { filter: invert(1) grayscale(1) brightness(1.8); }
  :root[data-theme-choice="system"] .nav-tabs { --bs-nav-tabs-link-active-bg: var(--hr-card); --bs-nav-tabs-link-active-color: var(--hr-ink); --bs-nav-tabs-link-active-border-color: var(--hr-line) var(--hr-line) var(--hr-card); border-color: var(--hr-line); }
  :root[data-theme-choice="system"] .nav-tabs .nav-link { border-color: transparent; }
  :root[data-theme-choice="system"] .nav-tabs .nav-link.active { background: var(--hr-card); color: var(--hr-ink); border-color: var(--hr-line) var(--hr-line) var(--hr-card); }
  :root[data-theme-choice="system"] .btn-success { --bs-btn-color: var(--hr-ok); --bs-btn-bg: var(--hr-ok-bg); --bs-btn-border-color: #2f6b48;
    --bs-btn-hover-color: #e7ffef; --bs-btn-hover-bg: #184830; --bs-btn-hover-border-color: var(--hr-ok);
    --bs-btn-active-color: #e7ffef; --bs-btn-active-bg: #0e281a; --bs-btn-active-border-color: var(--hr-ok); }
  :root[data-theme-choice="system"] .btn-warning,
  :root[data-theme-choice="system"] .btn-outline-warning { --bs-btn-color: var(--hr-warn); --bs-btn-bg: var(--hr-warn-bg); --bs-btn-border-color: #8a6a2a;
    --bs-btn-hover-color: #fff4d4; --bs-btn-hover-bg: #4a3814; --bs-btn-hover-border-color: var(--hr-warn);
    --bs-btn-active-color: #fff4d4; --bs-btn-active-bg: #2a200c; --bs-btn-active-border-color: var(--hr-warn); }
  :root[data-theme-choice="system"] .btn-outline-danger { --bs-btn-color: var(--hr-bad); --bs-btn-bg: rgba(255, 180, 171, .08); --bs-btn-border-color: #a85a54;
    --bs-btn-hover-color: var(--hr-bad); --bs-btn-hover-bg: var(--hr-bad-bg); --bs-btn-hover-border-color: var(--hr-bad);
    --bs-btn-active-color: var(--hr-bad); --bs-btn-active-bg: #4e1e1a; --bs-btn-active-border-color: var(--hr-bad); }
  :root[data-theme-choice="system"] .btn-outline-success { --bs-btn-color: var(--hr-ok); --bs-btn-bg: rgba(183, 235, 200, .08); --bs-btn-border-color: #2f6b48;
    --bs-btn-hover-color: var(--hr-ok); --bs-btn-hover-bg: var(--hr-ok-bg); --bs-btn-hover-border-color: var(--hr-ok);
    --bs-btn-active-color: var(--hr-ok); --bs-btn-active-bg: #0e281a; --bs-btn-active-border-color: var(--hr-ok); }
  :root[data-theme-choice="system"] input[type="file"].form-control::file-selector-button { background: rgba(255, 255, 255, .06); color: #f5f5f7; border: 1px solid #8e8e93; }
}
@media (prefers-color-scheme: light) {
  :root[data-theme-choice="system"] .auth { background: radial-gradient(1200px 600px at 10% -10%, #dfe5ff 0, transparent 60%), radial-gradient(900px 500px at 110% 110%, #d9f1ee 0, transparent 55%), var(--hr-bg); }
}

@media (prefers-reduced-motion: no-preference) {
  .content > *:not(.offcanvas):not(.offcanvas-backdrop):not(.modal):not(.modal-backdrop) { animation: hr-rise 200ms ease-out both; }
  .btn, .side-nav a, .stat, .theme-opt, .form-control, .form-select { transition: background-color 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out; }
  .offcanvas { transition: transform 220ms ease-out; }
  .side-admin[open] > .side-nav { animation: hr-rise 180ms ease-out both; }
}
@keyframes hr-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.offcanvas, .offcanvas-backdrop, .modal, .modal-backdrop, dialog { animation: none; }
/* Scrim stays translucent. Bootstrap paints #000 and fades opacity; a full-opacity animation made that a solid black sheet. */
.offcanvas-backdrop, .modal-backdrop { background-color: rgba(0, 0, 0, .32); }
.offcanvas-backdrop.show, .modal-backdrop.show { opacity: 1; }
dialog::backdrop { background-color: rgba(0, 0, 0, .32); }
:root[data-theme-choice="dark"] .offcanvas-backdrop,
:root[data-theme-choice="dark"] .modal-backdrop,
:root[data-theme-choice="dark"] dialog::backdrop { background-color: rgba(0, 0, 0, .5); }
@media (prefers-color-scheme: dark) {
  :root[data-theme-choice="system"] .offcanvas-backdrop,
  :root[data-theme-choice="system"] .modal-backdrop,
  :root[data-theme-choice="system"] dialog::backdrop { background-color: rgba(0, 0, 0, .5); }
}
@media (prefers-reduced-motion: no-preference) {
  .offcanvas-backdrop.show, .modal-backdrop.show, dialog::backdrop { backdrop-filter: blur(2px); }
}
@media (prefers-reduced-motion: reduce) {
  .content > *, .side-admin[open] > .side-nav, .btn.is-busy::before { animation: none; }
  .btn, .side-nav a, .stat, .theme-opt, .form-control, .form-select, .offcanvas, .offcanvas-backdrop, .modal, .modal-backdrop, .sidebar { transition: none; }
  .offcanvas-backdrop, .modal-backdrop, dialog::backdrop { backdrop-filter: none; }
}
