@font-face { font-family: 'DM Sans'; src: url('/assets/dm-regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/assets/dm-medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/assets/dm-semibold.ttf') format('truetype'); font-weight: 600 800; font-display: swap; }

:root {
  --ink: #171b2d;
  --muted: #58617a;
  --muted-light: #68728b;
  --accent: #4a5fab;
  --accent-dark: #394e99;
  --line: #e1e5f0;
  --surface: #f7f8fd;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fcfcfe; font: 14px/1.55 var(--sans); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #6477c8; outline-offset: 3px; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.loading-page { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  transition: background .18s, border-color .18s, box-shadow .18s;
}
.primary { background: var(--accent); color: #fff; box-shadow: 0 5px 14px #4155a222; }
.primary:hover { background: var(--accent-dark); }
.secondary { background: #fff; border-color: #dbe1f1; color: #34456f; }
.secondary:hover { border-color: #9eacda; background: #f7f8fe; }
.button.text { min-height: 30px; padding: 5px 9px; border: 0; background: transparent; color: var(--accent-dark); }
.button.text:hover { background: #edf0fb; }

.wordmark { display: block; position: relative; width: 142px; height: 30px; overflow: hidden; mix-blend-mode: multiply; }
.wordmark img { position: absolute; width: 144%; max-width: none; left: -22%; top: -70%; }
.signin { display: grid; grid-template-columns: minmax(390px, 1fr) minmax(0, 1.1fr); min-height: 100dvh; background: #fff; }
.signin-content { display: flex; flex-direction: column; padding: clamp(26px, 5vw, 72px); }
.signin-form { width: min(390px, 100%); margin: auto; padding: 64px 0; }
.eyebrow { color: var(--accent-dark); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.signin h1 { font: 400 clamp(44px, 5vw, 68px)/.98 var(--serif); letter-spacing: -.06em; margin: 14px 0; }
.signin .lead { color: var(--muted); font-size: 16px; margin-bottom: 28px; }
.signin form { display: grid; gap: 14px; }
.signin form .button { justify-content: space-between; }
.signin-art {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f2f5ff 0%, #f4f6ff00 64%, #eef4ff 100%), url('/assets/hero-mountains.png') 53% bottom / auto 85% no-repeat;
  border-left: 1px solid var(--line);
}
.signin-art p { font: 400 clamp(26px, 3.6vw, 50px)/1.1 var(--serif); letter-spacing: -.04em; color: #243656; margin: 0 24px 18vh; text-align: center; }
.authenticator-setup { display: grid; gap: 9px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: #f5f7ff; }
.authenticator-setup p { font-size: 12px; color: var(--muted); }
.authenticator-setup .button { justify-self: start; min-height: 35px; }
.recovery-list { display: grid; gap: 5px; padding: 13px 13px 13px 30px; margin-bottom: 16px; border-block: 1px solid var(--line); }
.recovery-list code { font-size: 13px; }
.demo-entry { margin-top: 25px; padding-top: 19px; border-top: 1px solid var(--line); }
.demo-entry p { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.demo-entry div { display: flex; gap: 8px; flex-wrap: wrap; }

.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100dvh; }
.skip-link { position: fixed; z-index: 10; top: -100px; left: 12px; padding: 8px 14px; background: #fff; border: 1px solid var(--accent); border-radius: 7px; }
.skip-link:focus { top: 12px; }
.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-self: start;
  height: 100dvh;
  overflow: auto;
  padding: 20px 14px 14px;
  border-right: 1px solid #e0e5f3;
  background: linear-gradient(155deg, #eef1fd 0%, #f7f8fc 37%, #f9faff 100%);
}
.sidebar-brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 19px; }
.logo-link { display: block; padding: 4px 9px; }
.sidebar .wordmark { width: 126px; height: 27px; }
.drawer-close { display: none; }
.workspace-select {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 47px;
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #dce2f3;
  border-radius: 10px;
  background: #ffffffdd;
  box-shadow: 0 2px 5px #5263a208;
  margin-bottom: 18px;
}
.workspace-select:focus-within { border-color: #98a8dd; }
.workspace-icon {
  flex: 0 0 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(135deg, #e2e9fc, #eee8fc);
  color: #3e5198;
  font-size: 10px;
  font-weight: 700;
}
.workspace-select select {
  appearance: none;
  min-width: 0;
  width: 100%;
  min-height: 30px;
  padding: 3px 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  text-overflow: ellipsis;
}
.workspace-select > .nav-icon { color: #7582ab; pointer-events: none; }
.workspace-select strong { font-size: 13px; overflow-wrap: anywhere; }
.sidebar nav { display: grid; gap: 14px; }
.nav-group { display: grid; gap: 2px; }
.nav-group + .nav-group { border-top: 1px solid #e2e6f3; padding-top: 13px; }
.nav-group > p { padding: 0 10px 4px; color: #62708d; font-size: 10px; font-weight: 700; letter-spacing: .085em; text-transform: uppercase; }
.sidebar nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #414a63;
  font-weight: 500;
}
.sidebar nav a:hover { background: #eef0f9; color: var(--accent-dark); }
.sidebar nav a[aria-current="page"] { border-color: #dce3fa; background: #e9edfc; color: #2c418a; font-weight: 700; }
.sidebar nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: -1px;
  width: 3px;
  border-radius: 4px;
  background: #596bc0;
}
.nav-count { margin-left: auto; padding: 1px 6px; border-radius: 6px; background: #e2e7fc; color: #3d4d90; font-size: 10px; font-weight: 700; }
.nav-icon {
  display: inline-block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: #586ba7;
  background: currentColor;
  mask: url('/assets/portal-icons.png') calc(var(--icon-slot, 0) * -18px) 0 / 234px 18px no-repeat;
}
.icon-overview { --icon-slot: 0; }
.icon-hiring { --icon-slot: 1; }
.icon-team { --icon-slot: 2; }
.icon-onboarding { --icon-slot: 3; }
.icon-documents { --icon-slot: 4; }
.icon-payroll { --icon-slot: 5; }
.icon-clients { --icon-slot: 6; }
.icon-support { --icon-slot: 7; }
.icon-settings { --icon-slot: 8; }
.icon-logout { --icon-slot: 9; }
.icon-menu { --icon-slot: 10; }
.icon-close { --icon-slot: 11; }
.icon-chevron { --icon-slot: 12; }
.sidebar-foot { margin-top: auto; padding-top: 16px; }
.demo-switch { display: flex; align-items: center; gap: 7px; width: 100%; padding: 7px 8px 10px; border: 0; background: transparent; font-size: 12px; color: #455998; text-align: left; }
.demo-switch:hover { text-decoration: underline; }
.demo-dot, .mode-label i { flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: #7b8acc; }
.profile { display: grid; grid-template-columns: 33px minmax(0,1fr) 32px; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding: 11px 2px 1px; }
.avatar { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 9px; background: #e1e8fc; color: #3a4f99; font-size: 11px; font-weight: 700; }
.profile strong { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile div > span { color: var(--muted); font-size: 11px; display: block; }
.signout, .drawer-close {
  display: grid;
  place-items: center;
  padding: 0;
  width: 32px;
  height: 32px;
  border: 1px solid #e0e5f2;
  border-radius: 8px;
  background: #fff;
}
.drawer-close { display: none; }
.signout:hover, .drawer-close:hover { background: #edf1fc; }

.main-layout { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 17px; height: 60px; border-bottom: 1px solid var(--line); padding-inline: clamp(22px, 3.6vw, 52px); background: #fff; }
.crumb { font-size: 13px; color: var(--muted); margin-right: auto; }
.crumb > span { margin: 0 7px; color: #9aa4bc; }
.crumb strong { font-weight: 600; color: var(--ink); }
.mode-label { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.top-help { color: var(--accent-dark); font-size: 13px; font-weight: 600; white-space: nowrap; }
.top-help:hover, .section-heading a:hover { text-decoration: underline; }
.menu-button, .mobile-scrim { display: none; }
.content { width: min(1500px, 100%); margin-inline: auto; padding: 0 clamp(22px, 3.6vw, 52px) 62px; }

.overview-hero {
  position: relative;
  isolation: isolate;
  margin: clamp(16px, 2.5vw, 30px) 0 20px;
  padding: clamp(23px, 3.4vw, 42px) clamp(18px, 3.2vw, 43px) 29px;
  border: 1px solid #e3e7f6;
  border-radius: 16px;
  min-height: 252px;
  overflow: hidden;
  background: linear-gradient(110deg, #f3f5ff, #fff 55%, #eff5ff);
}
.overview-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 34%;
  background: linear-gradient(90deg, #f6f7ff 0%, #f6f7ffb0 27%, transparent 68%), url('/assets/hero-mountains.png') 55% 93% / cover no-repeat;
  mask-image: linear-gradient(transparent 1%, black 26%, black 86%, transparent);
}
.hero-copy { max-width: 690px; position: relative; }
.hero-copy h1, .page-heading h1 { font: 400 clamp(40px, 4.6vw, 65px)/.99 var(--serif); letter-spacing: -.057em; text-wrap: balance; }
.hero-copy h1 { margin: 11px 0 14px; }
.hero-copy > p:not(.eyebrow) { font-size: 15px; color: var(--muted); }
.hero-actions { display: flex; gap: 9px; margin-top: 22px; flex-wrap: wrap; }
.hero-actions .button { border-radius: 100px; padding-inline: 18px; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-block: 1px solid var(--line); margin-bottom: 28px; }
.metrics a { display: flex; flex-direction: column; gap: 4px; padding: 16px clamp(10px, 2vw, 26px); border-right: 1px solid var(--line); }
.metrics a:first-child { padding-left: 0; }
.metrics a:last-child { border-right: 0; }
.metrics a:hover { background: #f4f6ff; }
.metrics strong { font: 400 32px/1.05 var(--serif); letter-spacing: -.04em; color: #24386f; }
.metrics span { color: var(--muted); font-size: 12px; }
.overview-columns { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(220px, 1fr); gap: clamp(22px, 3vw, 42px); align-items: start; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-heading h2, .approval-callout h2 { font-size: 17px; font-weight: 700; letter-spacing: -.025em; }
.section-heading a { color: var(--accent-dark); font-size: 12px; font-weight: 600; white-space: nowrap; }
.overview-section + .overview-section { margin-top: 28px; }
.activity-side { border-left: 1px solid var(--line); padding-left: clamp(17px, 2.3vw, 30px); }
.activity-list { list-style: none; padding: 2px 0; }
.activity-list li { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 10px 0 14px; }
.activity-list li + li { border-top: 1px solid var(--line); }
.activity-dot { flex: 0 0 7px; width: 7px; height: 7px; background: #697ac4; border-radius: 50%; margin-top: 6px; box-shadow: 0 0 0 4px #e7ebfb; }
.activity-list strong { font-size: 13px; }
.activity-list p, .activity-list small { color: var(--muted); font-size: 12px; }
.activity-list small { display: block; margin-top: 2px; }
.approval-callout { padding: 14px 0 17px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.approval-callout h2 { margin-top: 5px; }
.approval-callout p { color: var(--muted); font-size: 13px; margin: 3px 0 10px; }
.approval-callout .button { min-height: 34px; font-size: 12px; }
.task-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.task-list li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 46px; border-bottom: 1px solid var(--line); }
.task-check { width: 11px; height: 11px; border: 1px solid #b9c4e7; border-radius: 3px; }
.task-list li > span:last-child { color: var(--muted); font-size: 11px; }

.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 38px 0 25px; }
.page-heading h1 { font-size: clamp(39px, 4.5vw, 62px); }
.page-heading p { margin-top: 11px; color: var(--muted); font-size: 14px; }
.page-heading .button { margin-bottom: 1px; }
.toolbar { display: flex; gap: 9px; justify-content: space-between; align-items: center; margin: 1px 0 17px; }
.search { display: flex; align-items: center; gap: 7px; width: min(350px, 100%); border: 1px solid #dfe4f1; border-radius: 8px; padding: 0 10px; background: #fff; }
.search > span:first-child { color: var(--accent-dark); font-size: 18px; }
.search input, .filter select { color: var(--ink); min-height: 39px; background: #fff; }
.search input { flex: 1; width: 100%; border: 0; padding: 6px 3px; border-radius: 5px; }
.filter select { max-width: 190px; border: 1px solid #dfe4f1; border-radius: 8px; padding: 6px 9px; }
.table-wrap { width: 100%; overflow-x: auto; border-block: 1px solid var(--line); background: #fff; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { text-align: left; vertical-align: middle; padding: 13px 14px; border-bottom: 1px solid #edf0f7; }
thead th { color: var(--muted); background: #f6f7fc; font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
tbody th { min-width: 155px; font-weight: 600; }
tbody td { color: #46516c; font-size: 13px; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover { background: #f9faff; }
.row-name { display: block; color: var(--ink); overflow-wrap: anywhere; }
.row-detail { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.table-link { display: inline; padding: 0; background: none; border: 0; font-size: inherit; font-weight: 600; text-align: left; color: #354a90; overflow-wrap: anywhere; }
.table-link:hover { text-decoration: underline; }
.download { white-space: nowrap; }
.currency { font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.status { display: inline-flex; gap: 6px; align-items: center; padding: 3px 8px; border-radius: 100px; color: #47536c; background: #edf0f6; font-weight: 600; font-size: 11px; white-space: nowrap; }
.status i { width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.status-active, .status-approved, .status-paid, .status-done, .status-filled, .status-resolved { background: #e6f3ec; color: #246347; }
.status-interviewing, .status-in_progress, .status-sourcing { background: #e7f0ff; color: #315b9f; }
.status-pending, .status-onboarding, .status-shortlisted, .status-offered { background: #eeebfe; color: #534695; }
.status-changes_requested { background: #fff1dd; color: #8b5419; }
.empty { padding: 28px 15px; border-block: 1px solid var(--line); background: #fff; text-align: center; }
.empty p { font-weight: 600; }
.empty span { color: var(--muted); font-size: 13px; }
.text-back { display: inline-block; border: 0; background: transparent; color: var(--accent-dark); padding: 20px 0 0; font-size: 13px; }
.text-back + .page-heading { padding-top: 15px; }
.client-section + .client-section { margin-top: 23px; }
.settings-row { display: flex; gap: 15px; justify-content: space-between; align-items: center; padding: 19px 0; border-top: 1px solid var(--line); }
.settings-row h2 { font-size: 15px; }
.settings-row p { color: var(--muted); font-size: 13px; margin-top: 3px; }

label { font-size: 13px; font-weight: 600; color: #35415b; }
form label { display: grid; gap: 6px; }
form input, form select, form textarea {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
  border: 1px solid #d9dfed;
  border-radius: 7px;
}
form textarea { resize: vertical; }
form input[type="file"] { height: auto; }
.form-error { font-size: 13px; font-weight: 500; color: #97363e; }
.form-error:empty { display: none; }
.muted { color: var(--muted); font-size: 13px; }

/* Dedicated record pages keep the workspace navigation in view. */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(205px, 1fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: start;
  padding-top: 6px;
}
.detail-main { min-width: 0; }
.detail-layout:not(:has(.detail-aside)) { grid-template-columns: minmax(0, 680px); }
.detail-aside { border-left: 1px solid var(--line); padding: 2px 0 7px clamp(18px, 2.6vw, 30px); min-width: 0; }
.detail-aside > h2, .record-section h2, .conversation h2 {
  font-size: 17px;
  letter-spacing: -.025em;
  font-weight: 700;
  margin-bottom: 12px;
}
.detail-aside > p { color: var(--muted); margin: 0 0 10px; }
.detail-aside > p + p { margin-top: 14px; }
.record-form {
  max-width: 680px;
  display: grid;
  gap: 18px;
  padding: 1px 0 10px;
}
.record-form label { font-size: 13px; }
.record-form input, .record-form textarea, .record-form select { border-radius: 8px; }
.record-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 4px; }
.record-section + .record-section { margin-top: 26px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.record-description { white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 17px; color: #35415b; max-width: 75ch; }
.detail-list { margin: 13px 0; border-top: 1px solid var(--line); }
.detail-list div, .payroll-summary { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 11px; border-bottom: 1px solid var(--line); }
.detail-list dt, .payroll-summary span:not(.status), .payroll-summary p { color: var(--muted); font-size: 13px; }
.detail-list dd { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.payroll-summary { padding: 17px 21px; margin-bottom: 0; border-block: 1px solid #dce3f4; background: #f2f5ff; }
.payroll-summary p { margin-top: 4px; }
.payroll-summary > div:last-child { text-align: right; }
.payroll-summary strong { display: block; color: #30458c; font: 400 clamp(27px, 4vw, 42px)/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.payroll-actions { border-top: 1px solid var(--line); padding-top: 15px; margin-top: 18px; }
.review-note { margin: 0 0 13px; padding: 10px 13px; border-left: 3px solid #9aabdf; background: #f2f4fd; overflow-wrap: anywhere; }
.review-note p { white-space: pre-wrap; color: var(--muted); }
.amount-input input { width: min(100%, 130px); min-height: 35px; }
.conversation { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.reply { border-bottom: 1px solid var(--line); padding: 11px 0; }
.reply small { color: var(--muted); margin-left: 9px; }
.reply p { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); margin-top: 5px; }
.conversation form { margin-top: 16px; }
.invite-url { display: grid; gap: 6px; }
.invite-url input { width: 100%; min-height: 42px; border: 1px solid #dce2ef; border-radius: 7px; padding: 8px 10px; background: #fff; }
.invite-url + .record-actions { margin-top: 13px; }
.run-history { max-height: 560px; overflow: auto; padding: 2px 5px; }
.run-history p { overflow-wrap: anywhere; }
.stage-line {
  display: flex;
  margin: 0 0 23px;
  padding: 16px 0;
  overflow-x: auto;
  list-style: none;
  border-bottom: 1px solid var(--line);
}
.stage-line li {
  position: relative;
  display: grid;
  flex: 1 0 83px;
  gap: 6px;
  justify-items: center;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
}
.stage-line li:not(:last-child)::after {
  position: absolute;
  content: "";
  top: 6px;
  left: 50%;
  right: -50%;
  border-top: 1px solid #dce2f0;
}
.stage-dot { z-index: 1; width: 13px; height: 13px; border: 2px solid #dce2f0; border-radius: 50%; background: #fff; }
.stage-line .complete .stage-dot { border-color: #7082c7; background: #7082c7; }
.stage-line .complete::after { border-color: #a2afda !important; }
.stage-line .current { font-weight: 700; color: var(--accent-dark); }
.stage-line .current .stage-dot { border-color: var(--accent); background: #edf0fc; }
.workspace-facts { display: flex; flex-wrap: wrap; gap: 10px 34px; padding: 16px 0; margin: 0 0 21px; border-block: 1px solid var(--line); }
.workspace-facts span { display: block; color: var(--muted); font-size: 12px; }
.workspace-facts strong { display: block; color: var(--ink); margin-top: 3px; font-size: 15px; overflow-wrap: anywhere; }

.toast { position: fixed; bottom: 18px; right: 18px; z-index: 5; max-width: min(420px, calc(100% - 36px)); border: 1px solid #d7def6; border-radius: 9px; padding: 10px 15px; color: #26396f; background: #f0f3ff; box-shadow: 0 7px 23px #24346a23; }

@media (max-width: 1030px) {
  .shell { grid-template-columns: 195px minmax(0,1fr); }
  .sidebar { padding-inline: 12px; }
  .overview-columns { grid-template-columns: minmax(0, 1.7fr) minmax(185px, 1fr); }
}
@media (max-width: 820px) {
  .shell { display: block; }
  .sidebar { display: none; position: fixed; z-index: 3; inset: 0 auto 0 0; width: min(274px,87vw); height: 100dvh; border-radius: 0 15px 15px 0; box-shadow: 0 18px 65px #202b5a36; }
  .nav-open .sidebar { display: flex; }
  .nav-open .drawer-close { display: grid; }
  .nav-open .mobile-scrim { display: block; position: fixed; z-index: 2; inset: 0; background: #222e5459; border: 0; backdrop-filter: blur(2px); }
  body:has(.nav-open) { overflow: hidden; }
  .topbar { height: 55px; gap: 10px; }
  .menu-button { display: inline-grid; place-items: center; padding: 0; width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
}
@media (max-width: 720px) {
  .overview-columns { grid-template-columns: 1fr; }
  .activity-side { border-left: 0; border-top: 1px solid var(--line); padding: 17px 0 0; }
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-aside { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0 0; }
}
@media (max-width: 600px) {
  .overview-hero { min-height: 228px; border-radius: 12px; }
  .overview-hero::before { inset-inline-start: 0; opacity: .55; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metrics a { padding: 11px 9px; }
  .metrics a:nth-child(odd) { padding-left: 0; }
  .metrics a:nth-child(even) { border-right: 0; }
  .metrics a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 13px; padding-top: 28px; }
  .top-help { display: none; }
  .crumb { font-size: 11px; }
  .mode-label { font-size: 10px; }
  .signin { display: block; }
  .signin-content { min-height: 100dvh; }
  .signin-art { display: none; }
  .signin-form { padding-block: 45px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
