:root {
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color:#223047;
  background:#f4f6f9;
  font-size:14px;
  line-height:1.55;
  font-synthesis:none;
  --blue:#2864d9;
  --border:#e2e7ef;
  --muted:#718096
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
button,input,select,textarea {
  font:inherit
}
button,a,input,select,textarea,summary {
  outline-offset:3px
}
:focus-visible {
  outline:3px solid #6e9ef0
}
a {
  color:#285fae;
  text-decoration:none
}
a:hover {
  text-decoration:underline
}
button {
  cursor:pointer
}
button:disabled {
  cursor:wait;
  opacity:.55
}
h1,h2,p {
  margin-top:0
}
h1 {
  font-size:25px;
  letter-spacing:-.5px;
  margin-bottom:6px;
  line-height:1.4
}
h2 {
  font-size:16px;
  margin:0;
  font-weight:650
}
p {
  margin-bottom:12px
}
small,.small {
  font-size:12px
}
input,textarea,select {
  display:block;
  width:100%;
  padding:9px 11px;
  background:#fff;
  border:1px solid #ccd5e2;
  border-radius:5px;
  color:#24364d;
  min-width:0;
  line-height:1.35
}
textarea {
  resize:vertical
}
input:focus,select:focus,textarea:focus {
  border-color:#5988da
}
input[type=checkbox],input[type=radio] {
  width:16px;
  height:16px;
  padding:0;
  accent-color:var(--blue);
  flex-shrink:0
}
input[readonly] {
  background:#f4f6f9
}
fieldset {
  border:1px solid var(--border);
  padding:16px;
  border-radius:5px
}
legend {
  font-weight:600
}
pre {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font-size:12px;
  max-height:320px;
  overflow:auto;
  background:#f5f7fa;
  padding:16px
}
.prewrap {
  white-space:pre-wrap;
  overflow-wrap:anywhere
}
.sidebar {
  width:216px;
  position:fixed;
  inset:0 auto 0 0;
  background:#142238;
  color:#c7d3e4;
  display:flex;
  flex-direction:column;
  z-index:10
}
.brand {
  display:flex;
  gap:12px;
  align-items:center;
  padding:27px 21px 32px;
  color:#f5f8fc
}
.brand strong {
  font-size:18px;
  font-weight:650
}
.brand small {
  display:block;
  font-size:9px;
  letter-spacing:1.2px;
  color:#8e9fb7;
  margin-top:4px
}
.brand-mark {
  width:34px;
  height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:7px;
  border:1px solid #55708f;
  background:#233c5c;
  color:white;
  font-size:20px;
  font-weight:600;
  flex-shrink:0
}
nav {
  padding:0 12px
}
nav a {
  color:#aebed3;
  display:flex;
  gap:13px;
  align-items:center;
  padding:12px 17px;
  border-radius:5px;
  margin:5px 0;
  position:relative
}
nav a:hover {
  background:#1c304c;
  text-decoration:none;
  color:white
}
nav a.active {
  background:#223b5f;
  color:#eaf3ff
}
nav a.active:before {
  content:'';
  position:absolute;
  left:0;
  width:3px;
  height:20px;
  background:#67a0ff;
  border-radius:3px
}
.nav-icon {
  font-size:20px;
  width:21px;
  line-height:1
}
.sidebar-footer {
  margin-top:auto;
  padding:24px;
  font-size:12px;
  color:#8e9fb7
}
.sidebar-footer small {
  display:block;
  font-size:10px;
  margin-top:5px
}
.workspace {
  margin-left:216px;
  min-width:0
}
.topbar {
  height:70px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 30px;
  border-bottom:1px solid var(--border);
  background:white;
  gap:16px
}
.divider {
  margin:0 15px;
  color:#ccd3df
}
.account {
  display:flex;
  gap:12px;
  align-items:center;
  font-size:13px
}
#main {
  padding:28px 30px 48px;
  max-width:1900px;
  margin:auto;
  min-width:0
}
.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin:0 0 22px
}
.page-heading p {
  margin-bottom:0
}
.actions,.toolbar,.form-actions {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap
}
.actions {
  flex-shrink:0
}
.toolbar {
  padding:12px 0
}
.form-actions {
  margin-top:17px;
  justify-content:flex-end
}
.button {
  border:1px solid #d4ddea;
  background:#fff;
  color:#40546f;
  border-radius:5px;
  padding:8px 14px;
  font-weight:550;
  white-space:nowrap;
  line-height:1.45
}
.button:hover {
  background:#f0f4fa;
  border-color:#9fb5d6
}
.button.primary {
  color:white;
  background:var(--blue);
  border-color:var(--blue)
}
.button.primary:hover {
  background:#1d52ba
}
.button.ghost {
  padding:6px 8px;
  background:transparent;
  border-color:transparent;
  color:#3767a5
}
.button.ghost:hover {
  background:#eef3fa
}
.muted {
  color:var(--muted)
}
.block {
  display:block;
  margin-top:4px
}
.badge {
  display:inline-block;
  white-space:nowrap;
  vertical-align:middle;
  border-radius:4px;
  padding:3px 8px;
  font-size:11px;
  background:#eef1f5;
  color:#61718a;
  border:1px solid #e0e6ed;
  font-weight:550
}
.badge.blue {
  background:#edf4ff;
  color:#376bb8;
  border-color:#d8e6ff
}
.badge.green {
  background:#ecf7f1;
  color:#278157;
  border-color:#d5eadf
}
.badge.amber {
  background:#fff7e8;
  color:#9b6b19;
  border-color:#f1e3c5
}
.panel {
  background:white;
  border:1px solid var(--border);
  border-radius:7px;
  margin-bottom:22px;
  padding:20px;
  min-width:0
}
.panel-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:-2px 0 16px
}
.table-scroll {
  overflow:auto;
  max-width:100%;
  border:1px solid var(--border);
  border-radius:5px
}
table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  font-size:13px;
  white-space:nowrap
}
th {
  font-size:11px;
  color:#738198;
  font-weight:600;
  letter-spacing:.2px;
  background:#f7f9fc;
  padding:12px 14px;
  border-bottom:1px solid var(--border)
}
td {
  padding:14px;
  border-bottom:1px solid #edf0f5;
  vertical-align:middle;
  max-width:480px;
  white-space:normal;
  overflow-wrap:anywhere;
  min-width:75px
}
td:first-child {
  min-width:160px
}
th:first-child:has(input),td:first-child:has(input[type=checkbox]),td:first-child:has(input[type=radio]) {
  min-width:50px
}
tr:last-child td {
  border-bottom:0
}
tbody tr:hover {
  background:#fafcff
}
.readiness {
  display:flex;
  gap:5px;
  flex-wrap:wrap;
  min-width:152px
}
.step {
  font-size:10px;
  padding:2px 5px;
  border-radius:3px;
  background:#f1f3f7;
  color:#7a8799;
  white-space:nowrap
}
.step.done {
  color:#35805c;
  background:#edf7f0
}
.step.in_progress {
  color:#3f77bc;
  background:#eef5ff
}
.step.blocked {
  color:#9b6b19;
  background:#fff5df
}
.kpi-grid {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:0;
  background:white;
  border:1px solid var(--border);
  border-radius:7px;
  margin-bottom:24px;
  padding:21px 0
}
.kpi {
  padding:0 24px;
  border-right:1px solid var(--border)
}
.kpi:last-child {
  border:0
}
.kpi>span {
  font-size:12px;
  display:block
}
.kpi strong {
  display:block;
  font-size:31px;
  line-height:1.4;
  font-weight:620;
  margin-top:8px;
  font-variant-numeric:tabular-nums;
  letter-spacing:-1px
}
.text-amber {
  color:#b47a19
}
.dashboard-columns {
  display:grid;
  grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr);
  gap:22px
}
.dashboard-columns .panel {
  padding:18px
}
.quick-links {
  display:flex;
  gap:32px;
  flex-wrap:wrap;
  margin-bottom:14px
}
.notice {
  font-size:12px;
  border:1px solid #dce7f6;
  border-radius:5px;
  background:#f3f7fc;
  padding:11px 14px;
  margin:10px 0 15px;
  color:#5b718c;
  line-height:1.65;
  overflow-wrap:anywhere
}
.notice.warning {
  background:#fff8ea;
  border-color:#f1e5c9;
  color:#906c27
}
.notice.error {
  color:#ad3d3d;
  background:#fff1f0;
  border-color:#f1d0cd
}
.notice.success {
  color:#28774e;
  background:#edf8f1;
  border-color:#d1eadb
}
.empty,.loading {
  padding:40px 16px;
  text-align:center;
  color:#8b98aa
}
.filter-form {
  margin:0 0 18px;
  display:flex;
  gap:12px;
  align-items:flex-end;
  flex-wrap:wrap
}
.filter-form .form-grid {
  display:flex;
  gap:12px;
  flex:1;
  flex-wrap:wrap
}
.filter-form .field {
  min-width:150px;
  flex:1
}
.filter-form .form-actions {
  margin:0
}
.filter-form>.notice {
  width:100%
}
.form-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px
}
.field {
  display:flex;
  flex-direction:column;
  gap:7px;
  min-width:0
}
.field>span {
  font-size:12px;
  color:#64748b;
  font-weight:550
}
.field:has(textarea),.wide {
  grid-column:1/-1
}
.check {
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:6px 12px 6px 0;
  font-size:13px;
  cursor:pointer
}
.dialog {
  border:1px solid #cbd5e1;
  border-radius:10px;
  width:min(760px,calc(100vw - 40px));
  max-height:90vh;
  padding:24px;
  box-shadow:0 22px 80px #14223833;
  color:#223047;
  overflow:auto
}
.dialog::backdrop {
  background:#0d1c36a3
}
.dialog-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:24px;
  padding-bottom:16px;
  border-bottom:1px solid var(--border)
}
.dialog-heading h2 {
  font-size:19px
}
.dialog .table-scroll {
  margin-top:15px
}
.detail-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px 28px;
  font-size:13px;
  margin-bottom:22px
}
.detail-grid dt {
  font-size:11px;
  color:var(--muted);
  margin-bottom:4px
}
.detail-grid dd {
  margin:0;
  overflow-wrap:anywhere
}
.metric-group {
  margin-bottom:18px;
  min-width:0
}
.metric-group:last-child {
  margin-bottom:0
}
.metric-meta {
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  margin:12px 0
}
.metric-meta strong {
  font-size:12px
}
.metric-group table {
  font-variant-numeric:tabular-nums
}
.metric-group td {
  min-width:75px;
  white-space:nowrap
}
.metric-group .small {
  margin:8px 0 0
}
.metric-group th,.metric-group td {
  padding:10px
}
.audit {
  margin:16px 0
}
.audit .table-scroll {
  margin-top:10px
}
summary {
  cursor:pointer;
  font-size:12px;
  color:#527399;
  padding:8px 0
}
.evaluation {
  border-top:1px solid var(--border);
  padding:16px 0
}
.evaluation>p {
  margin-bottom:8px
}
.evaluation .toolbar {
  padding-top:0
}
.rating-row {
  display:flex;
  gap:10px;
  margin-bottom:14px;
  align-items:flex-end;
  flex-wrap:wrap
}
.rating-row .field {
  flex:1;
  min-width:100px
}
.bulk-bar {
  display:flex;
  gap:18px;
  align-items:center;
  flex-wrap:wrap;
  background:#f7f9fc;
  padding:12px;
  margin:12px 0
}
.bulk-bar>.filter-form {
  flex:1;
  margin:0
}
.bulk-bar>span {
  font-size:12px
}
.tabs {
  display:flex;
  gap:4px;
  border-bottom:1px solid var(--border);
  margin-bottom:18px;
  padding-bottom:12px
}
.tabs .selected {
  background:#eaf2ff;
  color:#2c65bb
}
.login-screen {
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f1f4f9;
  padding:30px
}
.login-card {
  width:420px;
  background:white;
  border:1px solid var(--border);
  border-radius:10px;
  padding:36px;
  box-shadow:0 14px 50px #1422380b
}
.login-card .brand-mark {
  width:43px;
  height:45px;
  margin-bottom:20px
}
.login-card .eyebrow {
  font-size:9px;
  letter-spacing:2px;
  color:#8795a7
}
.login-card h1 {
  font-size:27px
}
.login-card .form-grid {
  display:flex;
  flex-direction:column
}
.login-card form {
  margin:20px 0
}
.login-card .form-actions button {
  width:100%
}
#notifications {
  position:fixed;
  right:24px;
  bottom:18px;
  z-index:100;
  width:min(450px,calc(100vw - 48px));
  pointer-events:none
}
#notifications .notice {
  box-shadow:0 5px 22px #17223b1c
}
.skip-link {
  position:fixed;
  left:230px;
  top:-100px;
  background:white;
  padding:10px;
  z-index:120
}
.skip-link:focus {
  top:10px
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0)
}
@media(max-width:1200px) {
  .sidebar {
    width:190px
  }
  .workspace {
    margin-left:190px
  }
  .brand {
    padding-left:17px;
    gap:9px
  }
  .brand strong {
    font-size:16px
  }
  #main {
    padding:24px 22px
  }
  .topbar {
    padding:0 22px
  }
  .dashboard-columns {
    grid-template-columns:minmax(0,1fr)
  }
  .kpi {
    padding:0 18px
  }
  .account {
    gap:8px
  }
  .detail-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .page-heading {
    align-items:flex-start
  }
}
@media(max-width:800px) {
  .sidebar {
    width:68px
  }
  .workspace {
    margin-left:68px
  }
  .brand {
    padding:22px 17px
  }
  .brand>div,.sidebar-footer {
    display:none
  }
  nav {
    padding:0 6px
  }
  nav a {
    font-size:0;
    padding:13px 17px;
    gap:0
  }
  nav .nav-icon {
    font-size:21px
  }
  .topbar {
    height:auto;
    min-height:64px;
    padding:12px;
    flex-wrap:wrap
  }
  .account {
    font-size:12px;
    gap:6px
  }
  #main {
    padding:20px 12px
  }
  .page-heading {
    flex-direction:column;
    gap:12px
  }
  .page-heading h1 {
    font-size:22px
  }
  .kpi-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
    row-gap:18px
  }
  .kpi:nth-child(3) {
    border:0
  }
  .kpi strong {
    font-size:25px
  }
  .panel {
    padding:14px
  }
  .form-grid {
    grid-template-columns:1fr
  }
  .detail-grid {
    grid-template-columns:1fr
  }
  .filter-form .field {
    min-width:130px
  }
  .metric-meta {
    gap:5px
  }
  .dialog {
    padding:18px
  }
  .quick-links {
    gap:14px
  }
  .topbar .divider,.topbar .divider+.muted {
    display:none
  }
}
#notifications .notice {
  display:flex;
  align-items:flex-start;
  gap:12px;
  pointer-events:auto;
  margin:8px 0
}
.toast-close {
  margin-left:auto;
  flex-shrink:0;
  padding:0 3px;
  background:transparent;
  border:0;
  color:inherit;
  font-size:19px;
  line-height:1.1;
  cursor:pointer
}
body:has(dialog[open]) {
  overflow:hidden
}
