:root {
  --brand-950: #0a2f34;
  --brand-900: #103d43;
  --brand-800: #15525a;
  --brand-700: #17646b;
  --brand-600: #1e747a;
  --brand-100: #dceeed;
  --brand-50: #eff8f7;
  --ink-950: #10282c;
  --ink-800: #253d41;
  --ink-600: #526a6d;
  --ink-500: #6a7f81;
  --surface: #ffffff;
  --surface-2: #f7f9f7;
  --surface-3: #eef2ef;
  --line: #d8e0dc;
  --line-strong: #becbc5;
  --red: #b9362d;
  --red-bg: #fff0ef;
  --orange: #c5661e;
  --orange-bg: #fff4e8;
  --yellow: #8b6b00;
  --yellow-bg: #fff8d8;
  --blue: #246c9b;
  --blue-bg: #edf6fc;
  --green: #23765c;
  --green-bg: #eaf7f1;
  --purple: #6b55a1;
  --purple-bg: #f3effc;
  --shadow-sm: 0 1px 2px rgba(18, 48, 45, .05), 0 4px 14px rgba(18, 48, 45, .04);
  --shadow-md: 0 16px 40px rgba(16, 44, 42, .14);
  --radius-sm: 7px;
  --radius: 12px;
  --radius-lg: 18px;
  --sidebar-width: 264px;
  --sidebar-collapsed-width: 72px;
  --topbar-height: 70px;
  font-family: Inter, "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink-950);
  background: var(--surface-2);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink-950);
  background:
    linear-gradient(rgba(16, 61, 67, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 61, 67, .025) 1px, transparent 1px),
    var(--surface-2);
  background-size: 28px 28px;
  font-size: 14px;
  line-height: 1.55;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(30, 116, 122, .28);
  outline-offset: 2px;
}

a {
  color: var(--brand-700);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.25;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 3000;
  padding: 9px 14px;
  color: #fff;
  background: var(--brand-900);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.muted {
  color: var(--ink-600);
}

.subtle {
  color: var(--ink-500);
  font-size: 12px;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--brand-600);
  font: 700 11px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 1.6px;
}

.nowrap {
  white-space: nowrap;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.row-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.spacer {
  flex: 1;
}

.boot-screen {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background:
    radial-gradient(circle at 72% 18%, rgba(107, 204, 194, .13), transparent 30%),
    linear-gradient(135deg, var(--brand-950), var(--brand-800));
  color: #fff;
}

.boot-screen .muted {
  color: #bed3d2;
}

.boot-screen .eyebrow {
  color: #91c9c5;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, .52);
  color: #fff;
  background: rgba(255, 255, 255, .06);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: #efad38;
}

.brand-mark::before {
  height: 4px;
  right: -1px;
  bottom: -1px;
  left: -1px;
}

.brand-mark::after {
  width: 4px;
  top: -1px;
  right: -1px;
  bottom: -1px;
}

.brand-mark span {
  position: absolute;
  top: 5px;
  color: #c7dfdd;
  font-size: 9px;
  letter-spacing: 2px;
}

.brand-mark b {
  margin-top: 10px;
  font: 700 22px/1 "STZhongsong", "SimSun", serif;
}

.brand-mark-large {
  width: 68px;
  height: 68px;
}

.brand-mark-large b {
  font-size: 30px;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1000;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  color: #dce9e8;
  background:
    radial-gradient(circle at 25% 4%, rgba(83, 170, 164, .18), transparent 32%),
    linear-gradient(180deg, var(--brand-950), #0b3338);
  box-shadow: 8px 0 28px rgba(10, 43, 45, .08);
  transition: width .22s ease;
}

.sidebar-head {
  min-height: var(--topbar-height);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.sidebar-title {
  min-width: 0;
}

.sidebar-title strong,
.sidebar-title span {
  display: block;
}

.sidebar-title strong {
  color: #fff;
  font-size: 16px;
  letter-spacing: .5px;
}

.sidebar-title span {
  margin-top: 2px;
  color: #9fc3c0;
  font-size: 11px;
}

.sidebar-toggle {
  color: #dce9e8;
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  font-size: 22px;
}

.sidebar-toggle:hover:not(:disabled) {
  color: #fff;
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .12);
}

.main-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 10px;
}

.nav-group-label {
  margin: 16px 12px 7px;
  color: #789d9b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 2px 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  color: #c9dedd;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .07);
}

.nav-link[aria-current="page"] {
  color: #fff;
  background: rgba(99, 190, 181, .18);
  box-shadow: inset 3px 0 #efad38;
}

.nav-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #9fd1cc;
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  font-size: 13px;
  font-weight: 700;
}

.sidebar-foot {
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.sidebar-user {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.avatar {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: var(--brand-950);
  background: #a7d8d2;
  border-radius: 50%;
  font-weight: 800;
}

.sidebar-user-copy {
  min-width: 0;
}

.sidebar-user-copy strong,
.sidebar-user-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-copy strong {
  color: #fff;
  font-size: 13px;
}

.sidebar-user-copy span {
  color: #93b8b5;
  font-size: 11px;
}

.app-stage {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  transition: margin-left .22s ease;
}

.app-shell.sidebar-collapsed .sidebar {
  width: var(--sidebar-collapsed-width);
}

.app-shell.sidebar-collapsed .app-stage {
  margin-left: var(--sidebar-collapsed-width);
}

.app-shell.sidebar-collapsed .sidebar-head {
  grid-template-columns: 1fr;
  padding-right: 17px;
  padding-left: 17px;
}

.app-shell.sidebar-collapsed .sidebar-head .brand-mark,
.app-shell.sidebar-collapsed .sidebar-title,
.app-shell.sidebar-collapsed .nav-group-label,
.app-shell.sidebar-collapsed .nav-link > span:last-child,
.app-shell.sidebar-collapsed .sidebar-user-copy,
.app-shell.sidebar-collapsed .sidebar-foot > .btn {
  display: none;
}

.app-shell.sidebar-collapsed .main-nav {
  padding-right: 8px;
  padding-left: 8px;
}

.app-shell.sidebar-collapsed .nav-link {
  justify-content: center;
  gap: 0;
  padding-right: 12px;
  padding-left: 12px;
}

.app-shell.sidebar-collapsed .sidebar-foot {
  padding-right: 18px;
  padding-left: 18px;
}

.app-shell.sidebar-collapsed .sidebar-user {
  display: block;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.topbar-title {
  min-width: 0;
  flex: 1;
  font-weight: 700;
}

.topbar-meta {
  color: var(--ink-600);
  font-size: 12px;
}

.page-main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 28px 30px 48px;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.page-header h1 {
  margin-bottom: 5px;
  font: 700 27px/1.25 "STZhongsong", "Songti SC", "SimSun", serif;
  letter-spacing: .5px;
}

.page-header p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--ink-600);
}

.page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--ink-800);
  background: #fff;
  box-shadow: 0 1px 1px rgba(16, 46, 43, .02);
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover:not(:disabled) {
  color: var(--brand-700);
  border-color: var(--brand-600);
  background: var(--brand-50);
}

.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.btn-primary {
  color: #fff;
  border-color: var(--brand-700);
  background: var(--brand-700);
}

.btn-primary:hover:not(:disabled) {
  color: #fff;
  background: var(--brand-900);
}

.btn-danger {
  color: var(--red);
  border-color: #e1b4b0;
  background: #fff;
}

.btn-danger:hover:not(:disabled) {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

.btn-quiet {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.btn-small {
  min-height: 31px;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 12px;
}

.icon-button {
  width: 38px;
  min-width: 38px;
  padding: 0;
  border-radius: 9px;
}

.panel {
  min-width: 0;
  padding: 18px 20px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-header h2,
.panel-header h3 {
  margin-bottom: 3px;
  color: var(--ink-950);
  font-size: 16px;
}

.panel-header p {
  margin-bottom: 0;
  color: var(--ink-600);
  font-size: 12px;
}

.panel-accent {
  border-left: 4px solid var(--brand-600);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-grid > *,
.grid-2 > *,
.grid-3 > *,
.grid-4 > * {
  min-width: 0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 16px;
}

.metric-card {
  position: relative;
  min-height: 116px;
  padding: 16px 17px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--tone, var(--brand-600));
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.metric-card::after {
  content: "";
  position: absolute;
  top: -30px;
  right: -26px;
  width: 84px;
  height: 84px;
  background: var(--tone-bg, var(--brand-50));
  border-radius: 50%;
}

.metric-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 7px;
  color: var(--tone, var(--brand-700));
  font: 800 30px/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.metric-card span {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--ink-600);
  font-size: 12px;
}

.metric-card small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 7px;
  color: var(--ink-500);
  font-size: 11px;
}

.metric-card-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.metric-card-link:hover {
  color: inherit;
  border-color: #a9c9c5;
  box-shadow: 0 8px 22px rgba(18, 48, 45, .11);
  transform: translateY(-2px);
}

.metric-card-link:active {
  transform: translateY(0);
}

.metric-card .metric-card-arrow {
  position: absolute;
  right: 14px;
  bottom: 11px;
  color: var(--tone, var(--brand-700));
  font-size: 16px;
  font-weight: 800;
}

.tone-red {
  --tone: var(--red);
  --tone-bg: var(--red-bg);
}

.tone-orange {
  --tone: var(--orange);
  --tone-bg: var(--orange-bg);
}

.tone-yellow {
  --tone: var(--yellow);
  --tone-bg: var(--yellow-bg);
}

.tone-blue {
  --tone: var(--blue);
  --tone-bg: var(--blue-bg);
}

.tone-green {
  --tone: var(--green);
  --tone-bg: var(--green-bg);
}

.tone-purple {
  --tone: var(--purple);
  --tone-bg: var(--purple-bg);
}

.toolbar {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding: 13px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.field {
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-grow {
  min-width: 220px;
  flex: 1;
}

.field label,
.field-label {
  color: var(--ink-600);
  font-size: 12px;
  font-weight: 650;
}

.required::after {
  content: " *";
  color: var(--red);
}

input,
select,
textarea {
  width: 100%;
  min-height: 39px;
  padding: 8px 10px;
  color: var(--ink-950);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #91aaa4;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-600);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--red);
  background: var(--red-bg);
}

textarea {
  min-height: 94px;
  resize: vertical;
}

.help-text,
.field-error {
  margin: 2px 0 0;
  font-size: 11px;
}

.help-text {
  color: var(--ink-500);
}

.field-error {
  color: var(--red);
}

.checkbox,
.radio {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.checkbox input,
.radio input {
  width: 17px;
  min-height: 17px;
  margin-top: 2px;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  background: var(--surface-3);
  border-radius: 9px;
}

.segment {
  min-height: 32px;
  padding: 5px 12px;
  color: var(--ink-600);
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}

.segment[aria-pressed="true"] {
  color: var(--brand-900);
  background: #fff;
  box-shadow: 0 1px 5px rgba(30, 55, 50, .1);
  font-weight: 700;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.tag-red,
.level-red {
  color: #98251e;
  background: var(--red-bg);
  border-color: #f0c6c2;
}

.tag-orange,
.level-orange {
  color: #9b4d13;
  background: var(--orange-bg);
  border-color: #efd0b3;
}

.tag-yellow,
.level-yellow {
  color: #745900;
  background: var(--yellow-bg);
  border-color: #e9dc9b;
}

.tag-blue,
.level-blue {
  color: #1d608d;
  background: var(--blue-bg);
  border-color: #bddbed;
}

.tag-green {
  color: #1c664e;
  background: var(--green-bg);
  border-color: #b6dfce;
}

.tag-purple {
  color: #5e468e;
  background: var(--purple-bg);
  border-color: #d4c8ed;
}

.tag-neutral {
  color: var(--ink-600);
  background: var(--surface-3);
  border-color: var(--line);
}

.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: currentColor;
  border-radius: 50%;
}

.data-table-wrap {
  min-width: 0;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.data-table th,
.data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #e9eeeb;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #dbe9e7;
  background: var(--brand-900);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  white-space: nowrap;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover td {
  background: #f4f9f7;
}

.data-table .cell-primary {
  color: var(--ink-950);
  font-weight: 700;
}

.data-table .cell-secondary {
  display: block;
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 11px;
}

.table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  white-space: nowrap;
}

.sort-button {
  min-height: 24px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.sort-button::after {
  content: " ↕";
  color: #93b3b0;
}

.sort-button[data-direction="asc"]::after {
  content: " ↑";
  color: #fff;
}

.sort-button[data-direction="desc"]::after {
  content: " ↓";
  color: #fff;
}

.mobile-card-list {
  display: none;
}

.record-card {
  padding: 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
}

.record-card + .record-card {
  margin-top: 10px;
}

.record-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.record-card-head h3 {
  margin: 0;
  font-size: 15px;
}

.record-meta {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 5px 10px;
  margin: 10px 0;
  font-size: 12px;
}

.record-meta dt {
  color: var(--ink-500);
}

.record-meta dd {
  min-width: 0;
  margin: 0;
  color: var(--ink-800);
  overflow-wrap: anywhere;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--ink-600);
  font-size: 12px;
}

.pagination-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bar-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(72px, 126px) minmax(80px, 1fr) 48px;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}

.bar-row-label {
  overflow: hidden;
  color: var(--ink-600);
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-row-value {
  color: var(--ink-800);
  font: 700 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

progress {
  width: 100%;
  height: 13px;
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--surface-3);
}

progress::-webkit-progress-bar {
  background: var(--surface-3);
  border-radius: 999px;
}

progress::-webkit-progress-value {
  background: var(--bar-color, var(--brand-600));
  border-radius: 999px;
}

progress::-moz-progress-bar {
  background: var(--bar-color, var(--brand-600));
  border-radius: 999px;
}

.progress-red {
  --bar-color: var(--red);
}

.progress-orange {
  --bar-color: var(--orange);
}

.progress-yellow {
  --bar-color: #b18d0f;
}

.progress-blue {
  --bar-color: var(--blue);
}

.progress-green {
  --bar-color: var(--green);
}

.score-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.score-ring {
  width: 166px;
  height: 166px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  background: conic-gradient(var(--brand-600) var(--score-angle, 0deg), var(--surface-3) 0);
}

.score-ring::after {
  content: "";
  position: absolute;
  inset: 16px;
  background: #fff;
  border-radius: 50%;
}

.score-ring-content {
  position: relative;
  z-index: 1;
  transform: translateY(2px);
}

.score-ring-content strong,
.score-ring-content span {
  display: block;
  text-align: center;
}

.score-ring-content strong {
  color: var(--brand-800);
  font: 800 42px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.score-ring-content span {
  margin-top: 5px;
  color: var(--ink-500);
  font-size: 11px;
}

.task-list {
  display: flex;
  flex-direction: column;
}

.task-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 11px 2px;
  border-bottom: 1px solid #e8eeea;
}

.task-item:last-child {
  border-bottom: 0;
}

.closure-start-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 20px 22px;
  overflow: hidden;
  position: relative;
  color: #eaf5f4;
  background:
    radial-gradient(circle at 80% 20%, rgba(119, 214, 204, .16), transparent 30%),
    linear-gradient(135deg, var(--brand-950), var(--brand-800));
  border: 1px solid rgba(16, 61, 67, .2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.closure-start-card::after {
  content: "";
  width: 170px;
  height: 170px;
  position: absolute;
  right: -84px;
  bottom: -106px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255, 255, 255, .025);
}

.closure-start-card > * {
  position: relative;
  z-index: 1;
}

.closure-start-card .eyebrow {
  color: #91c9c5;
}

.closure-start-card h2 {
  margin-bottom: 6px;
  color: #fff;
  font-size: 19px;
}

.closure-start-card p {
  max-width: 850px;
  margin-bottom: 0;
  color: #bcd4d2;
}

.closure-start-card .btn:not(.btn-primary) {
  color: #e2eeee;
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .24);
}

.closure-start-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--brand-950);
  background: #a7d8d2;
  border: 4px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  font: 800 22px/1 "STZhongsong", "SimSun", serif;
}

.closure-flow-panel,
.closure-grid {
  margin-bottom: 16px;
}

.closure-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 11px;
}

.closure-step {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px 10px;
  align-items: center;
  position: relative;
  padding: 14px;
  color: var(--ink-800);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
}

.closure-step:hover {
  color: var(--brand-800);
  background: var(--brand-50);
  border-color: #b9d7d3;
}

.closure-step-index {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;
  color: var(--brand-800);
  background: var(--brand-100);
  border-radius: 8px;
  font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.closure-step-copy {
  min-width: 0;
}

.closure-step-copy strong,
.closure-step-copy small {
  display: block;
}

.closure-step-copy strong {
  color: var(--ink-950);
}

.closure-step-copy small {
  min-height: 32px;
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 11px;
}

.closure-step > b {
  grid-column: 1 / -1;
  color: var(--brand-800);
  font: 800 24px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.readiness-list,
.closure-queue {
  display: flex;
  flex-direction: column;
}

.readiness-row {
  display: grid;
  grid-template-columns: 125px minmax(80px, 1fr) 86px 48px;
  gap: 10px;
  align-items: center;
  padding: 10px 2px;
  color: var(--ink-800);
  border-bottom: 1px solid #e8eeea;
  text-decoration: none;
}

.readiness-row:last-child,
.closure-queue-item:last-child {
  border-bottom: 0;
}

.readiness-row:hover .readiness-label {
  color: var(--brand-700);
}

.readiness-label {
  font-weight: 650;
}

.readiness-row strong,
.readiness-rate {
  text-align: right;
  font: 700 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.readiness-rate {
  color: var(--ink-500);
}

.closure-queue-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 2px;
  color: var(--ink-800);
  border-bottom: 1px solid #e8eeea;
  text-decoration: none;
}

.closure-queue-item:hover .task-copy strong {
  color: var(--brand-700);
}

.closure-queue-meta {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 4px;
  color: var(--ink-500);
}

.closure-queue-meta small {
  font-size: 11px;
}

.task-index {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  color: var(--brand-800);
  background: var(--brand-50);
  border-radius: 8px;
  font-weight: 800;
}

.task-copy {
  min-width: 0;
}

.task-copy strong,
.task-copy span {
  display: block;
}

.task-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-copy span {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 11px;
}

.callout {
  padding: 13px 15px;
  color: var(--ink-800);
  background: var(--brand-50);
  border: 1px solid #c9e1df;
  border-left: 4px solid var(--brand-600);
  border-radius: 9px;
}

.callout-warn {
  background: var(--orange-bg);
  border-color: #eed0b5;
  border-left-color: var(--orange);
}

.callout-danger {
  background: var(--red-bg);
  border-color: #efc2be;
  border-left-color: var(--red);
}

.state-box {
  min-height: 240px;
  display: grid;
  place-items: center;
  padding: 30px 20px;
  color: var(--ink-600);
  background: rgba(255, 255, 255, .92);
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  text-align: center;
}

.state-box h2,
.state-box h3 {
  margin: 8px 0 5px;
  color: var(--ink-800);
  font-size: 17px;
}

.state-box p {
  max-width: 520px;
  margin: 0 auto 13px;
}

.state-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  color: var(--brand-700);
  background: var(--brand-50);
  border-radius: 14px;
  font-size: 22px;
  font-weight: 800;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.skeleton {
  min-height: 112px;
  overflow: hidden;
  position: relative;
  background: #e7eeea;
  border-radius: 10px;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .62), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.35s infinite;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

.toast-region {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 4000;
  width: min(390px, calc(100vw - 28px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 12px 13px;
  color: var(--ink-800);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-600);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  pointer-events: auto;
}

.toast-error {
  border-left-color: var(--red);
}

.toast-success {
  border-left-color: var(--green);
}

.toast-close {
  width: 26px;
  height: 26px;
  padding: 0;
  color: var(--ink-500);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.layer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(7, 30, 32, .48);
  backdrop-filter: blur(2px);
}

.modal {
  width: min(720px, calc(100vw - 28px));
  max-height: min(86vh, 860px);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2200;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transform: translate(-50%, -50%);
}

.modal-small {
  width: min(480px, calc(100vw - 28px));
}

.modal-header,
.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2,
.drawer-header h2 {
  margin-bottom: 3px;
  font-size: 19px;
}

.modal-body,
.drawer-body {
  min-height: 0;
  overflow-y: auto;
  padding: 18px 20px;
}

.modal-footer,
.drawer-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 13px 20px;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 15px;
}

.field-full {
  grid-column: 1 / -1;
}

.image-field {
  margin-top: 10px;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.image-field > label,
.image-field > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-800);
  font-size: 13px;
  font-weight: 700;
}

.image-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.image-preview {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 280px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  object-fit: contain;
}

.image-preview[hidden] {
  display: none;
}

.image-status {
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.drawer {
  width: min(640px, calc(100vw - 18px));
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 2200;
  background: #fff;
  box-shadow: -14px 0 44px rgba(7, 30, 32, .2);
}

.drawer-section {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.drawer-section:first-child {
  padding-top: 0;
}

.drawer-section:last-child {
  border-bottom: 0;
}

.drawer-section h3 {
  margin-bottom: 10px;
  font-size: 14px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 18px;
}

.detail-item dt {
  color: var(--ink-500);
  font-size: 11px;
}

.detail-item dd {
  margin: 3px 0 0;
  color: var(--ink-800);
  overflow-wrap: anywhere;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(380px, 1.05fr) minmax(420px, .95fr);
  background: #fff;
}

.auth-visual {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  padding: 54px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 16%, rgba(119, 214, 204, .18), transparent 26%),
    radial-gradient(circle at 25% 84%, rgba(239, 173, 56, .11), transparent 27%),
    linear-gradient(140deg, var(--brand-950), var(--brand-800));
}

.auth-visual::after {
  content: "";
  width: 520px;
  height: 520px;
  position: absolute;
  right: -230px;
  bottom: -220px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(255, 255, 255, .025),
    0 0 0 140px rgba(255, 255, 255, .02);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-brand strong {
  display: block;
  font-size: 19px;
}

.auth-brand span {
  color: #a9c9c6;
  font-size: 11px;
}

.auth-message {
  max-width: 650px;
  position: relative;
  z-index: 1;
}

.auth-message h1 {
  margin-bottom: 16px;
  font: 700 clamp(34px, 4vw, 54px)/1.15 "STZhongsong", "Songti SC", "SimSun", serif;
  letter-spacing: 1px;
}

.auth-message p {
  max-width: 560px;
  color: #b8d0ce;
  font-size: 16px;
}

.auth-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.auth-point {
  padding: 14px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
}

.auth-point strong {
  display: block;
  margin-bottom: 4px;
}

.auth-point span {
  color: #a9c5c2;
  font-size: 11px;
}

.auth-foot {
  position: relative;
  z-index: 1;
  color: #8dadab;
  font-size: 11px;
}

.auth-form-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 36px;
  background:
    linear-gradient(rgba(16, 61, 67, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 61, 67, .025) 1px, transparent 1px),
    #fbfcfb;
  background-size: 28px 28px;
}

.auth-card {
  width: min(470px, 100%);
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(15, 50, 47, .12);
}

.auth-card h2 {
  margin-bottom: 7px;
  font-size: 25px;
}

.auth-card form {
  margin-top: 23px;
}

.auth-card .field {
  margin-bottom: 14px;
}

.map-provider-control {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 14px;
  margin-top: 13px;
  padding: 10px 12px;
  color: var(--ink-600);
  background: var(--brand-50);
  border: 1px solid #cfe3df;
  border-radius: 9px;
  font-size: 12px;
}

.map-provider-control label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-800);
  font-weight: 700;
}

.map-provider-select {
  min-height: 34px;
  padding: 5px 32px 5px 9px;
  color: var(--ink-800);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font: inherit;
}

.map-provider-status {
  color: var(--brand-700);
  font-weight: 700;
}

.map-provider-status[data-tone="error"] {
  color: var(--red);
}

.map-provider-status[data-tone="ready"] {
  color: var(--green);
}

.map-provider-note {
  margin-left: auto;
  color: var(--ink-500);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 70px;
}

.password-toggle {
  position: absolute;
  top: 5px;
  right: 5px;
  min-height: 29px;
  padding: 3px 8px;
  color: var(--brand-700);
  background: var(--brand-50);
  border: 0;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  min-height: 650px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
}

.map-canvas {
  min-height: 650px;
  background: #e8f0ed;
}

.map-side {
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
}

.map-side-head {
  padding: 15px;
  border-bottom: 1px solid var(--line);
}

.map-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.map-location {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 15px;
  color: var(--ink-800);
  background: #fff;
  border: 0;
  border-bottom: 1px solid #e8eeea;
  text-align: left;
  cursor: pointer;
}

.map-location:hover,
.map-location[aria-current="true"] {
  background: var(--brand-50);
}

.map-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  margin-top: 4px;
  background: var(--dot-color, var(--brand-600));
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line-strong);
}

.map-tooltip {
  min-width: 160px;
  color: var(--ink-800);
}

.map-tooltip strong,
.map-tooltip span {
  display: block;
}

.map-tooltip span {
  margin-top: 3px;
  color: var(--ink-600);
  font-size: 11px;
}

.leaflet-container {
  font-family: inherit;
}

.import-step-panel,
.import-batch-panel {
  margin-top: 16px;
}

.template-download {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  background: linear-gradient(135deg, var(--brand-50), #fff);
  border: 1px solid #c6dfdc;
  border-radius: 12px;
}

.template-download-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  font: 800 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .6px;
}

.template-download-copy {
  min-width: 0;
}

.template-download-copy strong,
.template-download-copy span {
  display: block;
}

.template-download-copy strong {
  color: var(--ink-950);
  font-size: 15px;
}

.template-download-copy span {
  margin-top: 5px;
  color: var(--ink-600);
  font-size: 12px;
}

.dropzone {
  min-height: 190px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--ink-600);
  background: var(--brand-50);
  border: 2px dashed #9ec4c0;
  border-radius: 13px;
  text-align: center;
  cursor: pointer;
}

.dropzone:hover,
.dropzone.is-dragover {
  color: var(--brand-800);
  background: #e2f4f1;
  border-color: var(--brand-600);
}

.dropzone-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  color: var(--brand-700);
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  font-size: 24px;
}

.upload-file {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 14px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.upload-file-copy {
  min-width: 0;
  flex: 1;
}

.upload-file-copy strong,
.upload-file-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-file-copy span {
  color: var(--ink-500);
  font-size: 11px;
}

.batch-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.batch-stat {
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.batch-stat strong,
.batch-stat span {
  display: block;
}

.batch-stat strong {
  color: var(--brand-800);
  font: 800 22px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.batch-stat span {
  color: var(--ink-500);
  font-size: 11px;
}

.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 6px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding: 0 0 18px 10px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -23px;
  width: 10px;
  height: 10px;
  background: var(--brand-600);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--brand-600);
}

.timeline-item strong,
.timeline-item span {
  display: block;
}

.timeline-item span {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 11px;
}

.org-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
}

.org-tree {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.org-node {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  color: var(--ink-800);
  background: transparent;
  border: 0;
  border-radius: 7px;
  text-align: left;
  cursor: pointer;
}

.org-node:hover,
.org-node[aria-current="true"] {
  color: var(--brand-800);
  background: var(--brand-50);
}

.org-node-depth-1 {
  padding-left: 26px;
}

.org-node-depth-2 {
  padding-left: 42px;
}

.mobile-overlay {
  display: none;
}

.noscript {
  padding: 16px;
  color: #fff;
  background: var(--red);
  text-align: center;
}

@media (max-width: 1260px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 1020px) {
  .sidebar {
    width: var(--sidebar-collapsed-width);
  }

  .app-shell.nav-open .sidebar {
    width: var(--sidebar-width);
  }

  .app-shell:not(.nav-open) .sidebar-head {
    grid-template-columns: 1fr;
    padding-right: 17px;
    padding-left: 17px;
  }

  .app-shell:not(.nav-open) .sidebar-head .brand-mark,
  .app-shell:not(.nav-open) .sidebar-title,
  .app-shell:not(.nav-open) .nav-group-label,
  .app-shell:not(.nav-open) .nav-link > span:last-child,
  .app-shell:not(.nav-open) .sidebar-user-copy,
  .app-shell:not(.nav-open) .sidebar-foot > .btn {
    display: none;
  }

  .app-shell:not(.nav-open) .main-nav {
    padding-right: 8px;
    padding-left: 8px;
  }

  .app-shell:not(.nav-open) .nav-link {
    justify-content: center;
    gap: 0;
    padding-right: 12px;
    padding-left: 12px;
  }

  .app-shell:not(.nav-open) .sidebar-foot {
    padding-right: 18px;
    padding-left: 18px;
  }

  .app-shell:not(.nav-open) .sidebar-user {
    display: block;
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 950;
    display: none;
    background: rgba(7, 30, 32, .46);
  }

  .app-shell.nav-open .mobile-overlay {
    display: block;
  }

  .app-stage {
    margin-left: var(--sidebar-collapsed-width);
  }

  .page-main {
    padding: 24px 22px 40px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: auto;
    padding: 30px;
  }

  .auth-message {
    margin-top: 50px;
  }

  .auth-message h1 {
    font-size: 34px;
  }

  .auth-form-wrap {
    min-height: auto;
    padding: 38px 22px 60px;
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .map-side {
    max-height: 430px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .org-layout {
    grid-template-columns: 1fr;
  }

  .closure-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    font-size: 13px;
  }

  .topbar {
    height: 62px;
    padding: 0 13px;
  }

  .topbar-meta {
    display: none;
  }

  .page-main {
    padding: 18px 12px 34px;
  }

  .page-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .page-header h1 {
    font-size: 23px;
  }

  .page-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .metric-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .skeleton-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .metric-card {
    min-height: 104px;
    padding: 13px;
  }

  .metric-card strong {
    font-size: 25px;
  }

  .panel {
    padding: 15px;
  }

  .toolbar {
    align-items: stretch;
    padding: 11px;
  }

  .toolbar .field,
  .toolbar .field-grow {
    min-width: calc(50% - 6px);
    flex: 1 1 calc(50% - 6px);
  }

  .toolbar .field-grow {
    flex-basis: 100%;
  }

  .desktop-table {
    display: none;
  }

  .mobile-card-list {
    display: block;
  }

  .pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .score-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .template-download {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    padding: 14px;
  }

  .template-download .btn {
    grid-column: 2;
    justify-self: start;
  }

  .task-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .task-item .btn {
    grid-column: 2;
    justify-self: start;
  }

  .closure-start-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .closure-start-card .row-wrap {
    grid-column: 1 / -1;
  }

  .closure-flow {
    grid-template-columns: 1fr;
  }

  .closure-step {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .closure-step-index {
    grid-row: auto;
  }

  .closure-step-copy small {
    min-height: 0;
  }

  .closure-step > b {
    grid-column: auto;
  }

  .readiness-row {
    grid-template-columns: 112px minmax(70px, 1fr) 76px;
  }

  .readiness-rate {
    display: none;
  }

  .modal,
  .modal-small {
    width: calc(100vw - 14px);
    max-height: calc(100vh - 18px);
    border-radius: 14px;
  }

  .form-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .field-full {
    grid-column: 1;
  }

  .drawer {
    width: 100vw;
  }

  .auth-visual {
    padding: 22px;
  }

  .auth-message {
    margin-top: 36px;
  }

  .auth-points {
    grid-template-columns: 1fr;
  }

  .auth-point:nth-child(n + 2) {
    display: none;
  }

  .auth-form-wrap {
    padding: 24px 12px 44px;
  }

  .auth-card {
    padding: 23px 18px;
  }

  .map-canvas {
    min-height: 480px;
  }

  .batch-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toast-region {
    top: 8px;
    right: 8px;
  }
}

@media (max-width: 430px) {
  .metric-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .skeleton-grid {
    grid-template-columns: 1fr;
  }

  .toolbar .field,
  .toolbar .field-grow {
    min-width: 100%;
    flex-basis: 100%;
  }

  .bar-row {
    grid-template-columns: 78px minmax(60px, 1fr) 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .sidebar,
  .topbar,
  .page-actions,
  .toolbar,
  .table-actions,
  .pagination {
    display: none !important;
  }

  .app-stage {
    margin: 0;
  }

  .page-main {
    max-width: none;
    padding: 0;
  }

  .panel,
  .metric-card,
  .data-table-wrap {
    box-shadow: none;
  }
}
