  :root {
    color-scheme: light;
    --canvas: #f4f6fb;
    --surface: #fff;
    --ink: #17243a;
    --secondary: #54627a;
    --muted: #68768e;
    --line: #e1e7f1;
    --blue: #284fd7;
    --blue-soft: #edf2ff;
    --green: #067258;
    --amber: #875517;
    --red: #af3947;
    --nav-width: 214px;
    font-family: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }
  *, *::before, *::after { box-sizing: border-box; }
  body { margin: 0; min-width: 310px; color: var(--ink); background: var(--canvas); font-size: 14px; }
  button, select { font: inherit; }
  button { cursor: pointer; }
  button:focus-visible, select:focus-visible, dialog:focus-visible { outline: 3px solid #6289ff; outline-offset: 3px; }
  button:disabled { cursor: default; }
  h1, h2, h3, p { margin: 0; }
  .shell { display: grid; grid-template-columns: var(--nav-width) minmax(0, 1fr); min-height: 100vh; }
  .sidebar { background: var(--surface); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 0; height: 100dvh; overflow-y: auto; }
  .brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 16px; }
  .brand-mark { display: block; flex: 0 0 auto; width: 44px; height: 44px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
  .brand-name { font-size: 17px; font-weight: 720; letter-spacing: .02em; }
  .brand small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; letter-spacing: .12em; }
  .nav { display: grid; gap: 16px; }
  .nav-section { display: grid; gap: 4px; }
  .nav-caption { font-size: 11px; padding: 0 11px 4px; color: var(--muted); font-weight: 650; letter-spacing: .08em; }
  .nav-link { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 8px 10px; border: 0; text-align: left; border-radius: 9px; background: transparent; color: var(--secondary); white-space: nowrap; }
  .nav-link:hover { background: #f3f6fc; color: var(--ink); }
  .nav-link[aria-current] { background: #e9f0ff; color: #254ac7; font-weight: 690; }
  .nav-icon { width: 19px; height: 19px; display: inline-grid; place-items: center; font-size: 19px; line-height: 1; }
  .menu-extra { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
  .main { min-width: 0; }
  .topbar { background: var(--surface); border-bottom: 1px solid var(--line); min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 31px; }
  .workspace-page-title { display: flex; align-items: center; min-height: 32px; color: var(--ink); font-size: 13px; font-weight: 640; }
  .top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .top-actions label { display: flex; align-items: center; }
  .select { background: #fbfcff; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; min-height: 36px; }
  .avatar { display: grid; place-items: center; width: 35px; height: 35px; background: #e9efff; color: #244ac7; border-radius: 50%; font-weight: 700; flex-shrink: 0; }
  .wrapper { width: min(100%, 1580px); margin: 0 auto; padding: 27px 32px 28px; }
  .page-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 17px; }
  .page-heading h1 { font-size: clamp(25px, 3vw, 34px); letter-spacing: -.03em; line-height: 1.22; font-weight: 750; }
  .page-heading p { font-size: 13px; color: var(--secondary); margin-top: 7px; }
  .scope-label { display: inline-flex; align-items: center; gap: 7px; color: var(--secondary); white-space: nowrap; padding: 7px 11px; border: 1px solid var(--line); border-radius: 25px; background: #fff; font-size: 12px; }
  .scope-label::before { content: ""; width: 7px; height: 7px; border-radius: 100%; background: #5078ec; flex-shrink: 0; }
  .hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(220px, 1.02fr) minmax(270px, 1fr); gap: 34px; align-items: center; min-height: 214px; padding: 23px clamp(20px, 2.8vw, 40px); color: #fff; border-radius: 19px; background: linear-gradient(108deg,#142453 0%,#1e3677 46%,#2948a2 100%); box-shadow: 0 10px 22px #17387821; }
  .hero::before { z-index: -1; content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 97% 15%,#6f9bff80,transparent 48%), repeating-linear-gradient(111deg,transparent 0 24px,#c8ddff12 25px,transparent 26px 48px); mask-image: linear-gradient(90deg,transparent,black 48%); }
  .hero::after { z-index: -1; content: ""; position: absolute; width: 610px; height: 610px; top: -246px; right: -188px; pointer-events: none; border: 1px solid #b6d0ff61; border-radius: 50%; box-shadow: 0 0 0 36px #bbd4ff16, 0 0 0 80px #bbd4ff14; }
  .hero-copy { min-width: 0; }
  .hero-copy h2 { font-size: clamp(25px, 3.15vw, 44px); letter-spacing: -.05em; line-height: 1.15; font-weight: 760; text-wrap: balance; }
  .hero-copy p { max-width: 388px; line-height: 1.65; font-size: 13px; color: #dde8ff; margin-top: 11px; }
  .hero-actions { display: flex; gap: 9px; margin-top: 18px; flex-wrap: wrap; }
  .button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 36px; padding: 8px 14px; border-radius: 9px; border: 1px solid transparent; font-weight: 650; text-decoration: none; white-space: nowrap; }
  .hero-primary { color: #152e75; background: #fff; }
  .hero-primary:hover { background: #e4edff; }
  .hero-secondary { color: #fff; border-color: #b6caff80; background: #bfd0ff16; }
  .hero-secondary:hover { background: #c6d5ff36; }
  .flow { display: grid; justify-self: end; width: min(100%, 435px); gap: 8px; }
  .flow-node { text-align: left; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; column-gap: 11px; color: #fff; background: #d4e3ff1a; border: 1px solid #c5dbff52; border-radius: 12px; padding: 7px 11px; min-height: 43px; }
  .flow-node:hover { background: #d4e3ff33; }
  .flow-node.is-main { background: #d4e3ff31; border-color: #d9e8ffa8; }
  .flow-node .node-icon { display: grid; place-items: center; width: 30px; height: 29px; border-radius: 8px; font-size: 17px; background: #d3e2ff28; line-height: 1; }
  .flow-node strong { display: block; font-size: 13px; font-weight: 690; }
  .flow-node small { display: block; color: #d9e6ff; margin-top: 3px; font-size: 11px; }
  .flow-arrow { font-size: 16px; color: #d9e7ff; }
  .metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 15px 0 18px; }
  .metric { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; min-height: 97px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--ink); text-align: left; box-shadow: 0 2px 9px #20396908; }
  .metric:hover { border-color: #a4b9fb; background: #fcfdff; }
  .metric-name { font-size: 13px; font-weight: 660; }
  .metric-data { display: block; margin: 3px 0 2px; font-family: "Segoe UI", Arial, sans-serif; font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
  .metric-detail { font-size: 11px; color: var(--muted); line-height: 1.35; }
  .metric-mark { display: grid; place-items: center; flex: 0 0 33px; height: 33px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-size: 19px; line-height: 1; }
  .metric-mark.mint { background: #e5f6ef; color: #087059; }
  .metric-mark.peach { background: #fff0e2; color: #915b1b; }
  .metric-mark.violet { background: #f0ecfd; color: #6551a5; }
  .dashboard-grid { display: grid; grid-template-columns: minmax(0, 2.45fr) minmax(236px, 1fr); gap: 15px; align-items: start; }
  .card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 2px 9px #20396908; overflow: hidden; }
  .card-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 15px 17px 12px; }
  .card-heading h2 { font-size: 18px; font-weight: 710; letter-spacing: -.02em; }
  .card-heading p { margin-top: 5px; color: var(--muted); font-size: 11px; }
  .thin-button { border: 0; background: transparent; color: var(--blue); font-size: 12px; padding: 7px 2px; min-height: 34px; white-space: nowrap; border-radius: 6px; font-weight: 640; }
  .thin-button:hover { text-decoration: underline; }
  .tabs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 0 17px 10px; }
  .tab { display: inline-flex; gap: 6px; align-items: center; justify-content: center; color: var(--secondary); background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 6px 9px; min-height: 34px; font-size: 12px; font-weight: 630; white-space: nowrap; }
  .tab:hover { background: #f4f7fc; }
  .tab[aria-selected="true"] { color: #244ac9; background: #edf2ff; border-color: #d9e3ff; }
  .tab-count { font-variant-numeric: tabular-nums; font-size: 11px; }
  .table-wrap { overflow-x: auto; }
  table { border-collapse: collapse; width: 100%; text-align: left; min-width: 482px; }
  th { background: #f5f7fc; color: var(--secondary); font-size: 11px; padding: 9px 10px; font-weight: 640; white-space: nowrap; }
  td { border-top: 1px solid #edf0f7; padding: 11px 10px; vertical-align: middle; }
  th:first-child, td:first-child { padding-left: 16px; }
  th:last-child, td:last-child { padding-right: 15px; }
  tbody tr:hover { background: #fcfdff; }
  .row-title { font-size: 13px; font-weight: 670; line-height: 1.36; }
  .row-title-button { padding: 2px 0; text-align: left; color: var(--ink); background: none; border: 0; }
  .row-title-button:hover { color: var(--blue); text-decoration: underline; }
  .row-note { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.35; }
  .thing { display: flex; align-items: center; gap: 9px; }
  .pill { display: inline-flex; align-items: center; gap: 5px; min-height: 22px; padding: 2px 7px; border-radius: 6px; font-size: 11px; white-space: nowrap; line-height: 1.4; font-weight: 650; }
  .pill::before { content: ""; height: 5px; width: 5px; border-radius: 50%; background: currentColor; }
  .pill.blue { color: #274ab9; background: #ebf0ff; }
  .pill.green { color: var(--green); background: #e5f6ef; }
  .pill.amber { color: var(--amber); background: #fff2df; }
  .pill.red { color: var(--red); background: #fff0f1; }
  .pill.gray { color: var(--secondary); background: #eef1f8; }
  .status-detail { max-width: 230px; }
  .task-list { list-style: none; margin: 0; padding: 0 17px 4px; }
  .task-list > li { border-top: 1px solid #edf0f7; }
  .task-link { display: grid; padding: 11px 0; width: 100%; text-align: left; border: 0; background: none; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; border-radius: 5px; }
  .task-link:hover .task-name { color: var(--blue); }
  .task-marker { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); font-weight: 710; }
  .task-marker.amber { background: #fff2df; color: var(--amber); }
  .task-marker.green { background: #e5f6ef; color: var(--green); }
  .task-marker.red { background: #ffeef0; color: var(--red); }
  .task-name { color: var(--ink); font-size: 12px; font-weight: 675; }
  .task-time { color: var(--muted); font-size: 10px; white-space: nowrap; }
  .empty { padding: 21px 17px; color: var(--secondary); font-size: 13px; line-height: 1.7; }
  .empty strong { color: var(--ink); display: block; }
  .footer { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 0 0; color: var(--muted); font-size: 11px; }
  .sr-only { position: absolute; clip: rect(0,0,0,0); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
  @media (max-width: 1180px) {
    :root { --nav-width: 184px; }
    .topbar { padding-inline: 23px; }
    .wrapper { padding: 23px; }
    .metric, .card-heading { padding-inline: 12px; }
    .dashboard-grid { grid-template-columns: minmax(0, 2.12fr) minmax(218px, 1fr); }
    .task-list { padding-inline: 12px; }
  }
  @media (max-width: 960px) {
    :root { --nav-width: 155px; }
    .sidebar { padding-inline: 9px; }
    .brand-name { font-size: 15px; }
    .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
    .hero { gap: 17px; }
    .metric-mark { width: 28px; height: 28px; flex-basis: 28px; font-size: 16px; }
  }
  @media (max-width: 740px) {
    :root { --nav-width: 57px; }
    .sidebar { padding: 13px 5px; align-items: center; }
    .brand { padding: 3px 0 7px; }
    .brand-mark { width: 36px; height: 36px; }
    .brand-copy, .nav-label, .nav-caption { display: none; }
    .nav { gap: 11px; }
    .nav-link { width: 42px; justify-content: center; gap: 0; padding: 5px; }
    .topbar { align-items: start; flex-direction: column; min-height: 0; padding: 9px 11px; }
    .top-actions { gap: 6px; }
    .top-actions .select { min-height: 32px; padding: 5px; font-size: 11px; }
    .avatar { display: none; }
    .wrapper { padding: 14px 11px; }
    .page-heading { align-items: flex-start; }
    .scope-label { display: none; }
    .hero { grid-template-columns: minmax(0, 1fr); padding: 18px; }
    .flow { width: 100%; justify-self: stretch; }
    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .metric { padding: 10px; min-height: 88px; }
    .metric-mark { display: none; }
    .metric-name { font-size: 12px; }
    .metric-data { font-size: 23px; }
    .card-heading { padding-block: 11px; }
    .tabs { padding-inline: 10px; }
    .queue-table { display: block; min-width: 0; }
    .queue-table thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
    .queue-table tbody { display: block; }
    .queue-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; padding: 10px 12px; border-top: 1px solid var(--line); }
    .queue-table td { border: 0; padding: 0; }
    .queue-table td:first-child { grid-column: 1 / -1; padding-left: 0; }
    .queue-table td:last-child { grid-column: 2; padding-right: 0; }
  }
  @media (max-width: 405px) {
    .page-heading h1 { font-size: 23px; }
    .hero-copy h2 { font-size: 23px; }
    .hero-copy p { font-size: 12px; }
    .button { min-height: 35px; padding-inline: 8px; font-size: 12px; }
  }
  @media (prefers-reduced-motion: no-preference) {
    button { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
  }

[hidden] { display: none !important; }
a { color: var(--blue); }
a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #6289ff; outline-offset: 3px; }
a.nav-link, a.flow-node, a.task-link, a.metric, a.thin-button, a.row-title-button { text-decoration: none; }
a.thin-button:hover, a.row-title-button:hover { text-decoration: underline; }
.topbar { flex-wrap: wrap; }
.nav-icon { flex-shrink: 0; }
.menu-extra { width: 100%; }
.menu-extra summary { cursor: pointer; list-style: none; }
.menu-extra summary::-webkit-details-marker { display: none; }
.account { display: flex; gap: 7px; align-items: center; }
.surface-heading { margin-bottom: 15px; }
.surface-heading + .panel { margin-top: 0; }
.heading-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-block: 12px; }
.toolbar label.field { display: grid; gap: 5px; padding: 0; border: 0; }
.toolbar label :is(input, select) { min-height: 36px; max-width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; background: var(--surface); color: var(--ink); font: inherit; }
.toolbar button { background: var(--blue); color: white; }
.panel { padding: 17px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); line-height: 1.6; }
.panel h2 { font-size: 19px; }
.panel h3 { font-size: 15px; }
.panel > p + p { margin-top: 8px; }
.panel .heading-row > h2, .panel .heading-row > h3 { margin: 0; }
.muted { color: var(--muted); }
.alert { padding: 10px 13px; color: var(--amber); border-radius: 8px; background: #fff4e4; margin-bottom: 12px; }
.field { color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: 8px 10px; border-radius: 8px; font: inherit; }
.table-scroll { overflow-x: auto; }
.data-table td { white-space: normal; overflow-wrap: anywhere; }
.btn, .button.action { background: var(--blue); color: #fff; border-radius: 8px; padding: 8px 13px; font: inherit; text-decoration: none; border: 1px solid var(--blue); }
.btn:hover, .button.action:hover { background: #2043be; }
.btn.secondary, .button.secondary { border: 1px solid var(--line); background: var(--surface); color: var(--blue); }
.btn.secondary:hover, .button.secondary:hover { background: var(--blue-soft); }
.task-list a .task-name { display: block; }
.site-detail-link { display: inline-block; margin: 0 14px 8px; }
.login { min-height: 100dvh; display: grid; place-items: center; padding: 18px; }
.login-card { width: min(100%, 410px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 29px; box-shadow: 0 14px 50px #17387822; }
.login-card form { display: grid; gap: 12px; margin-top: 18px; }
.login-card label { display: grid; gap: 6px; }
.login-card .alert:empty { display: none; }
.login-card .button { justify-self: start; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); gap: 10px; margin: 14px 0; }
.media-grid img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: var(--canvas); }
@media (max-width: 740px) {
  .menu-extra summary { margin-inline: auto; }
  .menu-extra .nav-link { margin-inline: auto; }
  .panel { padding: 12px; }
  .data-table { min-width: 560px; }
  .topbar .account .button { padding-inline: 9px; }
}
