:root {
  color-scheme: light;
  --ink: #172b3d;
  --muted: #596d7d;
  --line: #dce5eb;
  --teal: #076e66;
  --paper: #fff;
  --navy: #122537;
  --sidebar-width: 224px;
  font: 14px/1.55 "Inter", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: #f1f5f7;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; }
button, input, select, textarea { font: inherit; }
button, select, input[type="checkbox"], input[type="radio"] { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
a { color: var(--teal); text-underline-offset: .2em; }
a:hover { color: #034d48; }
:focus-visible { outline: 3px solid #12a393; outline-offset: 3px; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { line-height: 1.34; }
h1 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.03em; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
code, pre { font-family: "IBM Plex Mono", "Cascadia Code", ui-monospace, monospace; }
code { font-size: .91em; }
.muted { color: var(--muted); }
.skip-link { position: fixed; top: 8px; left: 8px; padding: 8px 14px; border-radius: 6px; background: var(--paper); z-index: 200; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.sidebar {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar-width);
  padding: 24px 14px 17px;
  background: var(--navy);
  color: #f2fbff;
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; margin: 0 9px 24px; }
.brand:hover { color: white; }
.brand strong, .brand small, .sidebar-footer strong, .sidebar-footer small { display: block; }
.brand strong { font-size: 16px; letter-spacing: .03em; }
.brand small { font-size: 11px; color: #a3bbcb; margin-top: 2px; letter-spacing: .12em; }
.brand-mark { position: relative; width: 38px; height: 38px; border-radius: 10px; flex: 0 0 38px; background: #116458; }
.brand-mark span { position: absolute; border-radius: 3px; width: 9px; height: 9px; background: #b3ffec; }
.brand-mark span:nth-child(1) { left: 8px; top: 9px; }
.brand-mark span:nth-child(2) { left: 8px; bottom: 9px; }
.brand-mark span:nth-child(3) { right: 8px; top: 14.5px; }
.brand-mark::after { content: ""; position: absolute; left: 17px; top: 13px; width: 7px; height: 12px; border: solid #b3ffec; border-width: 1px 0 1px 1px; border-radius: 2px; }
.nav-group + .nav-group { margin-top: 17px; }
.nav-heading { color: #a6bdce; font-size: 11px; margin: 0 10px 5px; letter-spacing: .12em; }
.nav-link { display: flex; gap: 10px; align-items: center; min-height: 37px; color: #cee0eb; padding: 7px 10px; border-radius: 7px; text-decoration: none; font-size: 13px; }
.nav-link svg { flex: 0 0 auto; color: #9db6c8; }
.nav-link:hover { color: #fff; background: #20384a; }
.nav-link[aria-current="page"] { color: #e6fff7; background: #144c49; font-weight: 650; box-shadow: inset 2px 0 #52ddbd; }
.nav-link[aria-current="page"] svg { color: #88f0d8; }
.sidebar-footer { display: flex; gap: 9px; align-items: flex-start; margin-top: auto; padding: 17px 10px 1px; }
.sidebar-footer strong { font-size: 12px; font-weight: 600; }
.sidebar-footer small { color: #a8c0ce; font-size: 11px; }
.local-dot { flex: 0 0 7px; height: 7px; border-radius: 50%; background: #65ebc5; margin-top: 6px; box-shadow: 0 0 0 3px #24685d; }

.shell { margin-left: var(--sidebar-width); }
.topbar { display: flex; gap: 14px; align-items: center; min-height: 63px; padding: 9px 28px; border-bottom: 1px solid var(--line); background: var(--paper); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.breadcrumb strong { color: var(--ink); }
.breadcrumb-divider { color: #8397a7; }
.reset-trigger { margin-left: auto; white-space: nowrap; }
.topbar .menu-toggle, .mobile-scrim { display: none; }
.workspace { max-width: 1600px; margin: auto; padding: 28px; min-height: calc(100vh - 63px); }
.workspace:focus { outline: none; }
.view { min-width: 0; }

.btn { display: inline-flex; gap: 6px; align-items: center; justify-content: center; min-height: 35px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--paper); text-decoration: none; font-weight: 600; line-height: 1.4; }
.btn:hover:not(:disabled) { border-color: #9db7bb; background: #f1f8f8; color: var(--ink); }
.btn-primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-primary:hover:not(:disabled) { background: #045a54; border-color: #045a54; color: #fff; }
.btn-danger { color: #fff; background: #b63740; border-color: #b63740; }
.btn-danger:hover:not(:disabled) { color: #fff; background: #992830; border-color: #992830; }
.btn-quiet { font-size: 13px; }
.btn.active, .btn[aria-selected="true"] { color: #075e56; border-color: #9ccec6; background: #e9f8f4; }

.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-end; margin-bottom: 19px; }
.section-heading h1 + p { margin-top: 5px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 2px 5px #172b3d07; }
.panel + .panel { margin-top: 16px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 19px; border-bottom: 1px solid var(--line); }
.panel-head h2 + p { margin-top: 3px; font-size: 13px; }
.panel.stack > :not(.panel-head) { margin-inline: 19px; }
.panel.stack > :last-child { margin-bottom: 17px; }
.stack { display: grid; gap: 13px; min-width: 0; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.split > .panel, .workflow-grid > .panel { margin-top: 0; }
.toolbar, .tabs, .form-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.badge { display: inline-flex; gap: 4px; align-items: center; justify-content: center; min-height: 22px; width: fit-content; padding: 2px 8px; border-radius: 5px; background: #e9eff4; color: #455a6c; font-size: 12px; font-weight: 650; white-space: nowrap; }
.badge-good { color: #066054; background: #e3f6ee; }
.badge-warn { color: #875418; background: #fff1d7; }
.badge-bad { color: #a22b35; background: #fce8e9; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 16px; align-items: start; min-width: 0; }
.field { display: grid; gap: 5px; min-width: 0; align-items: start; font-weight: 600; }
.field small { font-weight: 400; }
.form-actions { grid-column: 1 / -1; }
input:not([type="radio"], [type="checkbox"]), select, textarea { min-width: 0; width: 100%; min-height: 36px; padding: 6px 10px; border: 1px solid #cddbe3; border-radius: 7px; color: var(--ink); background: var(--paper); font-weight: 400; }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; margin: 0; vertical-align: middle; accent-color: var(--teal); }
textarea { resize: vertical; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 11px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid #e8eef2; }
th { font-weight: 650; color: #43596a; background: #f6f9fb; white-space: nowrap; }
tbody tr:last-child > td { border-bottom: 0; }
tbody tr:hover > td { background: #f7fafb; }
td .toolbar { flex-wrap: nowrap; }
td .btn { white-space: nowrap; font-size: 12px; min-height: 29px; padding: 4px 8px; }
.code-block { padding: 14px 16px; margin: 0; border-radius: 8px; color: #e1f6f0; background: #173144; overflow: auto; font-size: 13px; line-height: 1.58; }
.empty { color: var(--muted); padding: 24px 16px; text-align: center; }
.empty h1, .empty p { margin-bottom: 10px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 13px; margin-bottom: 15px; }
.stat-card { display: grid; gap: 4px; align-content: start; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.stat-card > strong { color: var(--ink); font-size: 26px; font-variant-numeric: tabular-nums; }

dialog { width: min(590px, calc(100% - 28px)); max-height: calc(100% - 32px); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--paper); padding: 0; box-shadow: 0 20px 65px #142a3d49; }
dialog::backdrop { background: #102637a0; }
.dialog-body { padding: 21px; }
.dialog-body > p { margin-top: 7px; }
.dialog-actions { justify-content: flex-end; margin-top: 17px; }
.notifications { position: fixed; right: 22px; bottom: 18px; z-index: 80; max-width: min(380px, calc(100% - 44px)); pointer-events: none; }
.notice { padding: 11px 15px; border-radius: 8px; box-shadow: 0 5px 18px #142a3d33; color: #fff; background: #07665b; }
.notice-error { background: #a3313d; }

.overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  align-items: center;
  gap: 29px;
  min-height: 239px;
  border-radius: 15px;
  padding: 25px 30px;
  background: linear-gradient(110deg, #112a3f 33%, #10434a 100%);
  color: #f1fcff;
}
.hero-context { color: #9aead8; font-size: 12px; font-weight: 650; letter-spacing: .12em; margin-bottom: 8px; }
.hero-copy h1 { font-size: clamp(28px, 4vw, 43px); }
.hero-copy h1 + p { max-width: 26em; color: #c1d8df; margin-top: 10px; }
.hero-cta { margin-top: 19px; background: #99f2d8; color: #103831; border-color: #99f2d8; padding-inline: 16px; }
.hero-cta:hover:not(:disabled) { background: #bafce8; color: #103831; border-color: #bafce8; }
.hero-flow { display: grid; grid-template-columns: minmax(0, 1fr) 22px auto 22px minmax(0, 1fr); align-items: center; }
.flow-branch { display: grid; gap: 19px; }
.flow-branch span { display: flex; gap: 7px; align-items: center; justify-content: center; padding: 8px 5px; min-height: 41px; border: 1px solid #4a727a; border-radius: 7px; background: #204a55; color: #e4fbf8; font-size: 12px; text-align: center; }
.flow-core { display: grid; place-items: center; gap: 3px; min-height: 75px; padding: 9px; border-radius: 9px; border: 1px solid #7be9cf; color: #d6fff3; background: #156456; font-size: 12px; }
.flow-mark { color: #a0ffe5; font-size: 24px; font-weight: 700; line-height: 1; }
.flow-wire { height: 1px; background: #6ac1b2; }
.overview-caption { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; align-items: baseline; margin: 22px 0 11px; }
.overview-caption h2 { font-size: 19px; }
.sample-ticket { color: var(--muted); font-size: 12px; }
.sample-ticket strong { font: 650 12px "IBM Plex Mono", ui-monospace, monospace; color: var(--teal); }
.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.workflow-card { display: flex; flex-direction: column; align-items: flex-start; padding: 17px; }
.workflow-icon { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 9px; border-radius: 8px; color: var(--teal); background: #e1f4ee; }
.workflow-card h2 { font-size: 17px; }
.workflow-card p { font-size: 13px; margin-top: 4px; }
.workflow-card ul { display: grid; gap: 4px; padding-left: 16px; margin: 9px 0 14px; color: var(--teal); font-size: 13px; }
.workflow-card li a { color: #304c5c; text-decoration: none; }
.workflow-card li a:hover { color: var(--teal); text-decoration: underline; }
.workflow-action { justify-content: space-between; align-self: stretch; margin-top: auto; text-align: left; }
.sample-bar { display: flex; flex-wrap: wrap; gap: 8px 15px; align-items: center; padding: 14px 17px; margin-top: 16px; }
.sample-bar p { font-size: 12px; }
.sample-bar > a { margin-left: auto; font-size: 13px; }

@media (max-width: 1120px) {
  .overview-hero { grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); gap: 17px; padding: 24px; }
  .hero-flow { grid-template-columns: minmax(0, 1fr) 10px auto 10px minmax(0, 1fr); }
  .flow-branch span svg { display: none; }
  .topbar { padding-inline: 20px; }
  .workspace { padding: 21px; }
}
@media (max-width: 900px) {
  .sidebar { visibility: hidden; transform: translateX(-100%); transition: transform 150ms ease, visibility 150ms; }
  .menu-open .sidebar { visibility: visible; transform: none; }
  .menu-open .mobile-scrim { display: block; position: fixed; inset: 0; z-index: 25; background: #12253780; }
  .shell { margin-left: 0; }
  .topbar .menu-toggle { display: inline-flex; flex: 0 0 auto; }
}
@media (max-width: 590px) {
  .topbar { min-height: 53px; padding: 8px 11px; gap: 8px; }
  .breadcrumb { font-size: 12px; gap: 4px; }
  .breadcrumb > span { display: none; }
  .topbar .btn { min-height: 31px; padding-inline: 8px; font-size: 12px; }
  .workspace { padding: 14px 11px 21px; }
  .overview-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 19px; }
  .hero-flow { grid-template-columns: minmax(0, 1fr) 16px auto 16px minmax(0, 1fr); }
  .workflow-grid, .form-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .workflow-card { padding: 14px; }
  .workflow-card ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-head { padding: 12px; }
  .panel.stack > :not(.panel-head) { margin-inline: 12px; }
  th, td { padding: 9px 10px; }
}
