* { box-sizing: border-box; }
:root {
  font-family: Inter, "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  color: #1b322b;
  background: #f4f7f5;
  --green: #17634e;
  --green-dark: #11382e;
  --muted: #547067;
  --line: #dce8e1;
  --white: #fff;
}
body { margin: 0; display: grid; min-height: 100vh; grid-template-columns: 236px minmax(0,1fr); font-size: 14px; line-height: 1.5; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { opacity: .48; cursor: default; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #3f9d7e; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 30px; line-height: 1.26; letter-spacing: -.03em; }
h2 { font-size: 17px; }
h3 { font-size: 14px; }
.skip { position: fixed; z-index: 10; top: -100px; left: 12px; background: white; padding: 10px; }
.skip:focus { top: 12px; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 30px 17px 17px; background: #122f28; color: #c0d5cb; }
.brand { display: flex; gap: 11px; align-items: center; padding: 3px 10px 26px; border-bottom: 1px solid #2a483f; }
.brand img { border-radius: 10px; }
.brand strong, .brand small, .sidebar-foot strong, .sidebar-foot small { display: block; }
.brand strong { font-size: 19px; line-height: 1.25; color: #f5fffa; }
.brand small { color: #b8cfc5; margin-top: 3px; font-size: 11px; letter-spacing: .08em; }
#nav { display: grid; gap: 4px; padding-top: 23px; }
.nav-link { display: flex; align-items: center; gap: 11px; border-radius: 7px; padding: 11px 12px; min-height: 43px; }
.nav-link:hover { background: #204239; color: #fff; }
.nav-link[aria-current="page"] { color: #effff6; background: #285044; font-weight: 650; }
.nav-link[aria-current="page"] .nav-icon { color: #ace5cb; }
.nav-icon { display: grid; place-items: center; width: 19px; height: 19px; font-size: 19px; line-height: 1; color: #a0c4b5; }
.nav-group { padding: 13px 12px 3px; color: #a6bfb4; font-size: 11px; }
.sidebar-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; border-top: 1px solid #2a483f; padding: 15px 8px 3px; }
.sidebar-foot strong { color: #e7f7ee; font-weight: 600; }
.sidebar-foot small { color: #b8cfc5; font-size: 11px; margin-top: 2px; }
.operator-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #31594b; color: #e7f7ee; }
.shell { min-width: 0; }
.topbar { height: 62px; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 0 34px; background: #fff; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.breadcrumb strong { color: #264339; font-weight: 650; }
.environment { display: flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid #dce8e1; border-radius: 5px; color: #506d62; font-size: 12px; white-space: nowrap; }
.environment span { width: 7px; height: 7px; border-radius: 50%; background: #c08735; }
main { max-width: 1580px; margin: 0 auto; padding: 28px 34px 36px; outline: none; }
.heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.heading p { color: var(--muted); margin-top: 6px; font-size: 13px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #cbdcd2; background: white; color: #285347; min-height: 35px; border-radius: 6px; padding: 6px 12px; font-weight: 620; white-space: nowrap; }
.button:hover { background: #eff7f3; border-color: #9dbdac; }
.button.primary { background: var(--green); border-color: var(--green); color: white; }
.button.primary:hover { background: #114f3e; }
.button.light { background: #eef7f2; border-color: #eef7f2; color: #184f40; }
.button.danger { color: #9d3333; border-color: #ecd4d0; }
.button.danger:hover { background: #fdf1ef; }
.text-button { color: var(--green); background: transparent; border: 0; padding: 4px 3px; font-weight: 650; }
.text-button:hover { text-decoration: underline; }
.icon-button { min-width: 32px; min-height: 32px; border: 0; background: transparent; color: var(--muted); font-size: 23px; padding: 0 6px; border-radius: 6px; }
.icon-button:hover { background: #eff7f3; }
.panel, .stat { background: white; border: 1px solid var(--line); border-radius: 10px; }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 16px; }
.stat { text-align: left; display: block; padding: 15px 16px 14px; color: inherit; min-width: 0; }
.stat:hover { border-color: #86ad9b; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 7px; color: var(--muted); font-size: 13px; }
.stat strong { display: block; margin-top: 4px; color: #153e32; font-size: 29px; letter-spacing: -.03em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.stat-arrow { font-size: 17px; color: #547c6e; }
.home-grid { display: grid; grid-template-columns: minmax(0,1.04fr) minmax(0,1fr); gap: 14px; margin-bottom: 16px; }
.panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; padding: 14px 16px; }
.pending-list { padding: 0 16px 5px; }
.pending-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid #edf2ef; }
.pending-row > div { min-width: 0; flex: 1; }
.pending-row strong, .pending-row small { display: block; }
.pending-row small { color: var(--muted); font-size: 12px; margin-top: 2px; }
.pending-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 7px; background: #edf5ef; color: #245e4d; font-weight: 700; }
.pending-icon.warn { background: #fbf0de; color: #85591c; }
.release-feature { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 13px; padding: 17px 18px; color: #eefcf5; background: #194a3c; border-color: #194a3c; }
.release-feature::after { content: ""; pointer-events: none; position: absolute; width: 196px; height: 196px; right: -85px; top: -97px; border: 1px solid #477669; border-radius: 50%; box-shadow: 0 0 0 26px #215344, 0 0 0 27px #467366, 0 0 0 53px #205142, 0 0 0 54px #3b685c; }
.release-feature > * { position: relative; z-index: 1; }
.feature-label { font-size: 13px; font-weight: 650; color: #d1eee1; }
.feature-version { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-variant-numeric: tabular-nums; }
.feature-version strong { font-size: 35px; line-height: 1.15; letter-spacing: -.04em; }
.feature-facts { display: flex; flex-wrap: wrap; gap: 8px 15px; padding-top: 10px; margin-top: auto; border-top: 1px solid #49776a; font-size: 12px; color: #d7eee3; }
.feature-facts b { color: white; }
.tag { display: inline-flex; align-items: center; gap: 6px; border-radius: 4px; color: #526d63; background: #edf2ef; font-size: 12px; padding: 3px 7px; font-weight: 620; white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.green { color: #176449; background: #e2f4e9; }
.tag.amber { color: #80541c; background: #fbefd8; }
.tag.red { color: #9c3637; background: #faeae7; }
.release-feature .tag { color: #e6f7ee; background: #346958; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
thead { color: #516b61; background: #f1f6f3; font-size: 12px; }
th, td { border-top: 1px solid #e9f0ec; padding: 11px 14px; vertical-align: middle; white-space: nowrap; }
tbody tr:hover { background: #f9fcfa; }
td small { display: block; color: var(--muted); margin-top: 3px; }
td:first-child, th:first-child { padding-left: 16px; }
td:nth-last-child(1),th:nth-last-child(1) { padding-right: 16px; }
.numeral, time { font-variant-numeric: tabular-nums; }
.mono { font-family: "IBM Plex Mono", Consolas, monospace; font-size: 13px; }
.empty { padding: 26px 16px; text-align: center; color: var(--muted); }
.muted { color: var(--muted); }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 13px 16px; }
.toolbar input { flex: 0 1 280px; }
input, select, textarea { min-width: 0; min-height: 37px; padding: 7px 9px; color: #263d35; border: 1px solid #ceded5; background: #fff; border-radius: 6px; }
input::placeholder, textarea::placeholder { color: #667d73; }
textarea { width: 100%; resize: vertical; }
.spaced { margin-top: 15px; }
.segment { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 12px; }
.segment .button[aria-pressed="true"] { background: #e1f0e8; border-color: #a5c5b5; color: #17634e; }
.dialog-header, .dialog-footer { display: flex; align-items: center; padding: 13px 17px; gap: 8px; }
.dialog-header { justify-content: space-between; border-bottom: 1px solid var(--line); }
.dialog-footer { justify-content: end; border-top: 1px solid var(--line); }
dialog { width: min(705px, calc(100% - 22px)); padding: 0; color: #1b322b; border: 1px solid #cbdcd2; border-radius: 11px; box-shadow: 0 16px 46px #163f3026; max-height: 90vh; }
dialog::backdrop { background: #132e27a0; }
.dialog-body { display: grid; gap: 13px; padding: 16px 17px; }
.dialog-error { padding: 0 17px 11px; color: #982f2b; font-size: 13px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 4px; font-size: 13px; font-weight: 620; min-width: 0; }
.field small { font-weight: 400; color: var(--muted); }
.field.span { grid-column: 1 / -1; }
.detail-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.detail-stats { display: flex; flex-wrap: wrap; gap: 5px 16px; padding: 9px 10px; background: #eff6f2; border-radius: 6px; }
.detail-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.detail-list li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid #edf2ef; padding: 6px 0; }
.detail-list li:last-child { border-bottom: 0; }
.check { display: flex; gap: 7px; align-items: center; }
.check input { min-height: auto; accent-color: var(--green); }
.note { color: #547067; font-size: 12px; background: #eff6f2; padding: 8px 10px; border-radius: 5px; }
.toast { position: fixed; right: 22px; bottom: 20px; max-width: min(450px,calc(100vw - 44px)); z-index: 5; border-radius: 8px; padding: 10px 14px; color: white; background: #224e41; box-shadow: 0 8px 24px #183e3033; }
.client-grid { display: grid; grid-template-columns: minmax(240px,.64fr) minmax(0,1.36fr); align-items: start; gap: 15px; }
.client-policy, .client-preview { display: grid; gap: 13px; padding: 0 16px 16px; }
.client-policy > .button { justify-self: start; }
.client-policy dl { display: grid; gap: 9px; margin: 0; }
.client-policy dl div { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 9px 0; border-top: 1px solid #edf2ef; }
.client-policy dt { color: var(--muted); }
.client-policy dd { margin: 0; }
.client-preview select { width: min(100%, 420px); }
.client-workbench { border: 1px solid var(--line); border-radius: 8px; }
.client-workbench-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 12px; background: #edf5ef; border-radius: 8px 8px 0 0; }
.client-workbench-body { display: grid; gap: 11px; padding: 12px; }
.client-grants { border-top: 1px solid #edf2ef; }
.client-grants small { display: block; margin-top: 3px; color: var(--muted); }
.client-countdown { font-weight: 650; }
@media (max-width: 1100px) {
  body { grid-template-columns: 195px minmax(0,1fr); }
  main, .topbar { padding-left: 21px; padding-right: 21px; }
}
@media (max-width: 850px) {
  body { grid-template-columns: 158px minmax(0,1fr); }
  .sidebar { padding-inline: 10px; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-grid { grid-template-columns: minmax(0,1fr); }
  .client-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 610px) {
  body { display: block; }
  .sidebar { position: static; height: auto; padding: 10px 12px; }
  .brand { border: 0; padding: 2px 0 8px; }
  .brand small, .sidebar-foot, .nav-group, .nav-icon { display: none; }
  #nav { display: flex; flex-wrap: wrap; padding-top: 0; gap: 2px 4px; }
  .nav-link { padding: 5px 7px; min-height: 34px; font-size: 12px; }
  .topbar { height: 46px; padding-inline: 13px; }
  main { padding: 16px 12px 28px; }
  h1 { font-size: 24px; }
  .heading { margin-bottom: 13px; }
  .fields { grid-template-columns: 1fr; }
}

.live-panel { margin-bottom: 16px; }
