:root {
  color-scheme: light dark;
  --ink: #18243a;
  --muted: #54627a;
  --line: #e2e8f2;
  --paper: #fff;
  --canvas: #f4f6fb;
  --blue: #304ac5;
  --blue-dark: #253b9b;
  --blue-soft: #eef1ff;
  --night: #17233c;
  --green: #14604d;
  --green-soft: #e1f3ed;
  --orange: #804611;
  --orange-soft: #fff0d8;
  --red: #962f42;
  --red-soft: #fbe9ed;
  --side: 218px;
  --radius: 12px;
  font-family: "Avenir Next", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  background: var(--canvas);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.55; }
button, select, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button, input, select, textarea { border-radius: 7px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.8rem, 2.8vw, 2.48rem); font-weight: 710; line-height: 1.2; letter-spacing: -.047em; overflow-wrap: anywhere; }
h2 { font-size: 1.075rem; line-height: 1.35; letter-spacing: -.015em; }
h3 { font-size: 1rem; }
strong { font-weight: 660; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.mono { font-family: "SFMono-Regular", Consolas, monospace; font-size: .81rem; letter-spacing: -.02em; }
.tabular, .metric strong { font-variant-numeric: tabular-nums; }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
.compact { margin: 0 0 14px; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed; inset: 10px auto auto 10px; z-index: 30; background: var(--paper); padding: 8px 12px; }

.workspace { min-height: 100vh; }
.sidebar {
  width: var(--side); height: 100dvh; position: fixed; top: 0; left: 0;
  display: flex; flex-direction: column; background: var(--night); color: #f1f5ff;
  padding: 29px 16px 18px;
}
.brand { color: white; display: flex; align-items: center; gap: 11px; font-size: 1.38rem; font-weight: 750; line-height: 1.05; letter-spacing: -.055em; text-decoration: none; }
.brand:hover { text-decoration: none; }
.sidebar .brand { margin: 2px 11px 42px; }
.brand small { display: block; color: #afbfdb; font-size: .75rem; margin-top: 8px; letter-spacing: .02em; font-weight: 500; }
.brand-mark {
  display: grid; width: 39px; height: 39px; place-content: center; flex: 0 0 auto;
  grid-template-columns: repeat(2, 7px); grid-template-rows: repeat(2, 7px); gap: 3px;
  background: #536dee; border-radius: 10px; box-shadow: inset 0 0 0 1px #7990f4;
}
.brand-mark i { border: 1.5px solid #fff; border-radius: 2px; }
.brand-mark i:first-child, .brand-mark i:last-child { background: white; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav a {
  position: relative; display: flex; align-items: center; gap: 13px; min-height: 44px;
  padding: 9px 13px; color: #bfcae2; font-size: .94rem; font-weight: 540;
  border-radius: 8px;
}
.sidebar nav a:hover { background: #223352; color: white; text-decoration: none; }
.sidebar nav a[aria-current] { background: #2a3c67; color: white; font-weight: 660; }
.sidebar nav a[aria-current]::before { content: ""; position: absolute; height: 16px; left: 0; width: 3px; border-radius: 0 4px 4px 0; background: #9eafff; }
.sidebar-bottom { margin-top: auto; padding: 17px 9px 0; border-top: 1px solid #33435e; color: #c4cfe4; font-size: .81rem; }
.status-light { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #64d7b8; margin-right: 7px; vertical-align: .05em; }
.surface { margin-left: var(--side); min-width: 0; }
.topbar { min-height: 66px; padding: 0 clamp(18px, 3vw, 46px); display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.workspace-label { font-size: .89rem; color: var(--muted); font-weight: 600; }
.topbar-right { display: flex; gap: 12px; align-items: center; margin-left: auto; }
.sandbox-label { background: var(--soft); border: 1px solid var(--line); color: var(--secondary-ink); font-size: .78rem; font-weight: 650; padding: 3px 9px; border-radius: 5px; white-space: nowrap; width: fit-content; }
.user-avatar, .account-avatar { display: grid; place-items: center; width: 33px; height: 33px; flex: 0 0 auto; border-radius: 50%; color: var(--blue-dark); background: var(--blue-soft); font-size: .94rem; font-weight: 700; }
.user-name { font-size: .86rem; white-space: nowrap; }
.user-name small { color: var(--muted); font-size: .74rem; margin-left: 2px; }
.topbar .logout { min-height: 36px; font-size: .82rem; padding-inline: 7px; }
.content { max-width: 1510px; margin-inline: auto; padding: 33px clamp(18px, 3vw, 46px) 48px; display: grid; gap: 19px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 13px 24px; padding: 2px 0 5px; }
.page-heading > div { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.page-heading p { font-size: .93rem; color: var(--muted); margin-top: 8px; overflow-wrap: anywhere; }
.page-heading .heading-date { margin: 0 0 10px; font-size: .8rem; display: flex; align-items: center; gap: 9px; font-weight: 600; }
.date-line { display: block; width: 17px; height: 2px; border-radius: 3px; background: var(--accent); }
.heading-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.heading-meta .mono { min-width: 0; max-width: 100%; color: var(--muted); font-weight: 650; overflow-wrap: anywhere; }
.back-link { color: var(--muted); width: fit-content; max-width: 100%; overflow-wrap: anywhere; font-size: .86rem; font-weight: 600; margin-bottom: -7px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px;
  padding: 8px 14px; border-radius: 7px; border: 1px solid transparent;
  gap: 5px; color: var(--ink); background: transparent;
  font-size: .88rem; font-weight: 660; line-height: 1.3; text-decoration: none;
}
.button:hover { text-decoration: none; }
.button.primary { background: var(--primary-fill); color: #fff; box-shadow: 0 1px 2px #26345c35; }
.button.primary:hover { background: var(--primary-hover); }
.button.secondary { background: var(--paper); border-color: var(--control-border); color: var(--secondary-ink); }
.button.secondary:hover, .button.quiet:hover { background: var(--blue-soft); }
.button.quiet { color: var(--muted); }
.button.danger { color: var(--red); background: var(--red-soft); border-color: var(--danger-line); }
.button.danger:hover { background: var(--danger-hover); }
.button:disabled { background: var(--soft); color: var(--muted); box-shadow: none; }
.button.small { min-height: 34px; padding: 5px 9px; font-size: .8rem; }
.text-link { font-weight: 630; font-size: .86rem; }
.row-title { color: var(--ink); font-weight: 660; overflow-wrap: anywhere; }
.row-title:hover { color: var(--blue); }
.row-sub { display: block; color: var(--muted); margin-top: 3px; max-width: 36ch; overflow-wrap: anywhere; }

.nav-icon { width: 16px; height: 16px; display: inline-block; position: relative; flex: 0 0 auto; color: inherit; }
.nav-icon::before, .nav-icon::after { content: ""; display: block; position: absolute; }
.icon-grid::before { inset: 2px; background: linear-gradient(currentColor 0 0) left top/5px 5px no-repeat, linear-gradient(currentColor 0 0) right top/5px 5px no-repeat, linear-gradient(currentColor 0 0) left bottom/5px 5px no-repeat, linear-gradient(currentColor 0 0) right bottom/5px 5px no-repeat; }
.icon-briefcase::before { inset: 5px 1px 2px; border: 1.4px solid currentColor; border-radius: 3px; }
.icon-briefcase::after { width: 6px; height: 4px; top: 2px; left: 5px; border: 1.4px solid currentColor; border-bottom: 0; border-radius: 2px 2px 0 0; }
.icon-document::before { inset: 1px 2.5px; border: 1.4px solid currentColor; border-radius: 2px; }
.icon-document::after { width: 6px; height: 1.5px; top: 6px; left: 5px; background: currentColor; box-shadow: 0 3px currentColor; }
.icon-people::before { width: 6px; height: 6px; border: 1.4px solid currentColor; border-radius: 50%; left: 5px; top: 1px; }
.icon-people::after { inset: 8px 2px 1px; border: 1.4px solid currentColor; border-radius: 7px 7px 2px 2px; }
.icon-chart::before { inset: 1px 1px 2px 2px; border: 1.4px solid currentColor; border-width: 0 0 1.4px 1.4px; border-radius: 0 0 0 2px; }
.icon-chart::after { bottom: 5px; left: 6px; width: 2px; height: 4px; background: currentColor; box-shadow: 3px -2px currentColor, 6px -5px currentColor; }
.icon-history::before { inset: 1px; border: 1.4px solid currentColor; border-radius: 50%; }
.icon-history::after { inset: 4px 5px 7px 7px; border: 1.4px solid currentColor; border-width: 0 0 1.4px 1.4px; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric { min-width: 0; display: grid; gap: 5px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--ink); box-shadow: 0 1px 1px #293e6310; }
a.metric:hover { text-decoration: none; border-color: var(--selected-line); box-shadow: 0 3px 12px #233c8714; }
.metric-label { display: flex; align-items: center; justify-content: space-between; gap: 4px; font-weight: 640; font-size: .87rem; color: var(--secondary-ink); }
.metric .nav-icon { color: var(--blue); }
.metric strong { font-size: clamp(1.95rem, 3vw, 2.5rem); letter-spacing: -.06em; line-height: 1.06; font-weight: 720; }
.metric .metric-small { font-size: 1.46rem; letter-spacing: -.03em; }
.metric small { color: var(--muted); font-size: .76rem; line-height: 1.3; }
.report-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.report-metrics .metric { padding: 12px; }

.dashboard-columns { display: grid; grid-template-columns: minmax(0, 2.04fr) minmax(252px, 1fr); gap: 19px; align-items: start; }
.detail-columns { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 19px; align-items: start; }
.application-layout { grid-template-columns: minmax(0, 1.75fr) minmax(250px, .85fr); }
.stack { display: grid; gap: 19px; min-width: 0; }
.panel { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 1px #293e630d; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { color: var(--ink); }
.panel-heading p { color: var(--muted); font-size: .8rem; margin-top: 4px; }
.panel-body, .panel-footer { padding: 17px 18px; }
.panel-footer { border-top: 1px solid var(--line); }
.panel-footer .button { margin-block: 2px; }
.count { font-size: .8rem; font-weight: 660; color: var(--secondary-ink); background: var(--soft); border-radius: 5px; padding: 3px 8px; white-space: nowrap; }
.badge {
  display: inline-block; width: fit-content; border-radius: 5px; padding: 3px 7px;
  font-size: .76rem; line-height: 1.4; font-weight: 650; white-space: nowrap;
  background: var(--soft); color: var(--secondary-ink);
}
.badge-open, .badge-screening, .badge-first_passed, .badge-final_passed { background: var(--blue-soft); color: var(--blue-dark); }
.badge-hired, .badge-pass, .badge-filled, .badge-confirmed, .badge-offer_accepted { background: var(--green-soft); color: var(--green); }
.badge-pending, .badge-review, .badge-unverified, .badge-offer_draft, .badge-hold { background: var(--orange-soft); color: var(--orange); }
.badge-first_scheduled, .badge-final_scheduled, .badge-offer_sent, .badge-offer_approved { background: var(--blue-soft); color: var(--blue-dark); }
.badge-error, .badge-rejected, .badge-withdrawn, .badge-fail { background: var(--red-soft); color: var(--red); }
.quota { display: flex; align-items: center; gap: 7px; white-space: nowrap; font-size: .78rem; color: var(--muted); }
progress { display: inline-block; appearance: none; border: 0; width: 64px; height: 6px; border-radius: 8px; background: var(--track); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--track); }
progress::-webkit-progress-value { background: var(--accent); border-radius: 8px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 8px; }
.table-wrap { overflow-x: auto; width: 100%; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .87rem; line-height: 1.4; }
th, td { padding: 11px 13px; border-bottom: 1px solid var(--divider); vertical-align: middle; }
th:first-child, td:first-child { padding-left: 18px; }
th:last-child, td:last-child { padding-right: 18px; }
th { white-space: nowrap; background: var(--soft); font-size: .78rem; color: var(--secondary-ink); font-weight: 650; text-align: left; }
td { min-width: 78px; }
td:first-child { min-width: 140px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--hover); }
.table-wrap:last-child tr:last-child td:first-child { border-bottom-left-radius: var(--radius); }
.table-wrap:last-child tr:last-child td:last-child { border-bottom-right-radius: var(--radius); }

.queue-list, .checklist, .simple-list { margin: 0; padding: 0; list-style: none; }
.queue-list li + li { border-top: 1px solid var(--divider); }
.queue-list a { display: flex; align-items: center; gap: 11px; padding: 11px 17px; color: var(--ink); }
.queue-list a:hover { text-decoration: none; background: var(--soft); }
.queue-mark { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.queue-text { min-width: 0; font-size: .86rem; }
.queue-text strong { display: block; line-height: 1.35; overflow-wrap: anywhere; }
.queue-text small { display: block; color: var(--muted); font-size: .77rem; margin-top: 3px; }
.pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 18px; }
.pipeline > div { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; color: var(--muted); font-size: .85rem; min-width: 0; }
.pipeline strong { color: var(--ink); font-size: 1.15rem; }
.pipeline progress { grid-column: 1/-1; width: 100%; height: 7px; }
.empty-state { padding: 30px 18px; color: var(--muted); text-align: center; font-size: .9rem; }
.empty-state strong { color: var(--secondary-ink); }
.empty-state p { font-size: .82rem; margin-top: 4px; }

.form-panel { scroll-margin-top: 16px; }
.form-panel > summary { padding: 13px 18px; font-size: .9rem; font-weight: 650; cursor: pointer; }
.form-panel[open] > summary { border-bottom: 1px solid var(--line); }
.form-panel:target { border-color: var(--selected-line); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 16px; align-items: start; }
.form-grid.single { grid-template-columns: minmax(0, 1fr); }
.form-grid .wide { grid-column: 1/-1; }
label { display: grid; gap: 4px; font-size: .86rem; color: var(--secondary-ink); font-weight: 620; min-width: 0; }
input, select, textarea {
  width: 100%; min-height: 40px; padding: 7px 9px; color: var(--ink);
  background-color: var(--paper); border: 1px solid var(--control-border); font-weight: 490; font-size: .93rem;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
select { appearance: none; padding-right: 25px; background-image: linear-gradient(45deg, transparent 49%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 49%, transparent 50%); background-position: right 13px center, right 9px center; background-size: 4px 4px; background-repeat: no-repeat; }
input[type=file] { min-height: 44px; }
input::file-selector-button { margin-right: 10px; border: 0; border-radius: 4px; padding: 4px 7px; color: var(--blue-dark); background: var(--blue-soft); font: inherit; }
input:disabled, select:disabled { background-color: var(--soft); color: var(--muted); }
textarea { resize: vertical; }
.checkbox { display: flex; gap: 8px; align-items: center; font-weight: 520; }
.checkbox input { width: 16px; min-height: auto; height: 16px; margin: 0; accent-color: var(--blue); flex: 0 0 auto; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.filter-bar { padding: 14px 18px; display: flex; align-items: flex-end; flex-wrap: wrap; gap: 9px; }
.filter-search { flex: 1 1 220px; max-width: 360px; }
.report-filter label { min-width: 150px; }
.hint { font-size: .8rem; color: var(--muted); font-weight: 480; }
p.hint { margin-bottom: 11px; }
.inline-details { color: var(--muted); font-size: .82rem; }
.inline-details summary { cursor: pointer; }
.inline-details .checkbox { margin-top: 6px; }
.pdf-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; padding: 18px; min-height: 260px; max-height: 440px; overflow-y: auto; color: var(--secondary-ink); background: var(--hover); font-family: "SFMono-Regular", Consolas, monospace; font-size: .88rem; line-height: 1.6; }
.facts-strip { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 17px 30px; padding: 16px 18px; }
.facts-strip > div { min-width: 120px; max-width: 100%; }
.facts-strip span { display: block; color: var(--muted); font-size: .8rem; margin-bottom: 2px; }
.facts-strip strong { font-size: .9rem; overflow-wrap: anywhere; }
.approval-inbox { list-style: none; margin: 0; padding: 0; }
.approval-item { display: grid; gap: 9px; padding: 16px 18px; scroll-margin-top: 20px; overflow-wrap: anywhere; }
.approval-item + .approval-item { border-top: 1px solid var(--line); }
.approval-item-heading { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; }
.approval-confirm { display: flex; flex-wrap: wrap; align-items: end; gap: 9px 12px; }
.approval-confirm label { flex: 0 1 260px; min-width: 0; }
.approval-item > .text-link { justify-self: start; }
.batch-progress { display: grid; gap: 9px; }
.batch-progress:not(:has(*)) { display: none; }
.batch-progress form:not(:has(button:not([hidden]))):not(:has([data-form-error])) { position: absolute; }
.detail-list { margin: 0; display: grid; gap: 9px; }
.detail-list > div { display: grid; grid-template-columns: minmax(76px, auto) 1fr; gap: 12px; align-items: baseline; font-size: .87rem; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 580; overflow-wrap: anywhere; }
.notice { border: 1px solid var(--line); border-radius: 9px; background: var(--blue-soft); color: var(--blue-dark); padding: 10px 14px; font-size: .9rem; }
.notice.success { border-color: var(--success-line); background: var(--green-soft); color: var(--green); }
.notice.error { border-color: var(--danger-line); background: var(--red-soft); color: var(--red); }
.phase-list { margin: 0; padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.phase-list li { display: flex; gap: 7px; align-items: center; position: relative; color: var(--muted); font-size: .83rem; font-weight: 530; }
.phase-list li.active { color: var(--blue-dark); font-weight: 720; }
.phase-list li.done { color: var(--green); }
.phase-dot { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--control-border); background: var(--soft); flex: 0 0 auto; }
.phase-list li.active .phase-dot { border: 3px solid var(--accent); }
.phase-list li.done .phase-dot { border-color: #49a58c; background: #62b19c; }
.record-list { display: grid; }
.record-list article { padding: 15px 18px; font-size: .9rem; }
.record-list article + article { border-top: 1px solid var(--line); }
.record-list article header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.record-list article p { margin-top: 5px; }
.checklist li, .simple-list li { margin: 0 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; font-size: .87rem; }
.checklist li + li, .simple-list li + li { border-top: 1px solid var(--line); }
.simple-list .stage-record { align-items: start; flex-wrap: wrap; overflow-wrap: anywhere; }
.checklist + form { border-top: 1px solid var(--line); }
.narrow-panel { max-width: 820px; }

.public-area { min-height: 100vh; display: grid; place-content: center; padding: 22px; }
.login-layout { width: min(840px, 100%); display: grid; grid-template-columns: .95fr 1.05fr; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 16px 56px #20315a13; overflow: hidden; }
.login-brand { min-height: 450px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: clamp(22px, 4vw, 40px); background: var(--night); color: #f4f7ff; border-bottom: 6px solid #536dee; }
.login-brand h1 { font-size: clamp(2.2rem, 5vw, 3.35rem); margin-top: 10px; line-height: 1.12; }
.login-tag { color: #aebffe; font-size: .84rem; }
.login-note { color: #bdcbe5; font-size: .82rem; }
.login-panel { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(22px, 5vw, 47px); gap: 10px; }
.login-panel h2 { font-size: 1.67rem; margin-top: 4px; }
.login-panel > p { font-size: .9rem; }
.account-list { display: grid; gap: 8px; margin-top: 12px; }
.account { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 57px; padding: 8px 11px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-align: left; }
.account.featured { background: var(--blue-soft); border-color: var(--selected-line); }
.account:hover { background: var(--blue-soft); border-color: var(--selected-line); }
.account strong, .account small { display: block; line-height: 1.3; }
.account strong { font-size: .9rem; }
.account small { color: var(--muted); font-size: .77rem; margin-top: 3px; }
.account-avatar { width: 36px; height: 36px; }
.failure { max-width: 540px; padding: 22px; }
.failure h1 { margin: 10px 0; }
.failure p { margin-bottom: 16px; }

@media (max-width: 1200px) {
  .report-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quota progress { width: 38px; }
}

@media (max-width: 1000px) {
  :root { --side: 179px; }
  .sidebar { padding-inline: 12px; }
  .sidebar .brand { margin-inline: 3px; }
  .dashboard-columns, .detail-columns { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  :root { --side: 0px; }
  .sidebar { display: none; }
  .topbar { min-height: 56px; padding-inline: 12px; gap: 8px; }
  .topbar-right { gap: 6px; }
  .workspace-label { font-size: .8rem; }
  .user-name { display: none; }
  .enterprise-workspace .workspace-label { display: none; }
  .enterprise-workspace .topbar-right { min-width: 0; }
  .enterprise-workspace .user-name { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .enterprise-workspace .user-name small { display: none; }
  .enterprise-workspace .logout { flex-shrink: 0; }
  .content { padding-top: 21px; padding-inline: 13px; }
  .page-heading .button { flex: 0 0 auto; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .metric { padding: 11px; }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phase-list { gap: 6px; padding: 12px 9px; }
  .phase-list li { font-size: .74rem; white-space: normal; gap: 3px; }
  .phase-dot { width: 8px; height: 8px; }
  .phase-list li.active .phase-dot { border-width: 2px; }
  .login-layout { grid-template-columns: 1fr; }
  .login-brand { min-height: 0; gap: 16px; padding-block: 16px 20px; }
  .login-brand h1 br { display: none; }
  .login-brand h1 { font-size: 1.8rem; }
  .login-tag, .login-note { display: none; }
  .login-panel { padding: 20px 18px; }
}

@media (max-width: 440px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .facts-strip { gap: 10px 17px; }
  .report-filter label { min-width: 0; }
  .filter-bar label { flex: 1 1 auto; }
  .filter-bar .filter-search { flex-basis: 100%; }
  .panel-heading, .panel-body, .panel-footer { padding-inline: 13px; }
  .dashboard-metrics .metric small { min-height: 2.5em; }
  .req-table { table-layout: fixed; }
  .req-table :is(th, td) { min-width: 0; padding-inline: 6px; }
  .req-table th { white-space: normal; }
  .req-table th:first-child { width: 38%; }
  .req-table :is(th, td):first-child { padding-left: 12px; }
  .req-table th:nth-child(2) { width: 23%; }
  .req-table th:nth-child(3) { width: 18%; }
  .req-table th:last-child { width: 21%; }
  .req-table .quota progress { display: none; }
  .req-table .badge { padding-inline: 5px; }
  input, select, textarea { font-size: 1rem; }
}
