:root {
  color-scheme: light;
  --ink: #172d34;
  --muted: #61717a;
  --line: #dae2e3;
  --accent: #08786e;
  --rail: #172f34;
  --paper: #f6f8f9;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 14px/1.6 var(--font); }
button,input,select { font: inherit; }
button,a,input,select { -webkit-tap-highlight-color: transparent; }
button,a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #149d91; outline-offset: 3px; }
h1,h2,h3,p,ul { margin: 0; }
h1 { font-size: 29px; line-height: 1.4; font-weight: 720; }
h2 { font-size: 17px; line-height: 1.5; }
h3 { font-size: 15px; }
.icon { width: 18px; height: 18px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.icon svg { display: block; width: 100%; height: 100%; stroke-width: 1.8; }
.skip { position: fixed; top: -80px; left: 12px; z-index: 12; background: white; padding: 10px; }
.skip:focus { top: 12px; }
.rail { width: 228px; position: fixed; inset: 0 auto 0 0; z-index: 5; display: flex; flex-direction: column; background: var(--rail); color: #f6fbfa; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 94px; padding: 18px 24px; }
.brand-mark { width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center; background: #8ce4bb; color: #153c36; }
.brand-mark .icon { width: 28px; height: 28px; }
.brand-mark svg { stroke-width: 2.6; }
.brand strong { display: block; font-size: 22px; line-height: 1.35; }
.brand small,.rail-foot small { display: block; color: #adc2c2; font-size: 11px; }
.rail nav { padding: 4px 12px; overflow-y: auto; }
.nav-label { color: #a4bbbc; font-size: 11px; margin: 23px 13px 10px; }
.nav-item { min-height: 42px; padding: 9px 12px; display: flex; align-items: center; gap: 11px; border-radius: 5px; margin: 3px 0; font-weight: 520; color: #e0e9e9; }
.nav-item .icon { width: 17px; height: 17px; }
.nav-item.active { color: #a4f3cd; background: #26494a; box-shadow: inset 3px 0 #84deb5; }
a.nav-item:hover { background: #244247; }
.nav-item.pending { color: #b2c3c5; }
.nav-index { margin-left: auto; font: 11px ui-monospace,Consolas,monospace; opacity: .8; }
.rail-foot { display: flex; align-items: center; gap: 11px; border-top: 1px solid #375054; margin: auto 16px 0; padding: 19px 5px; min-width: 0; }
.rail-foot strong { font-size: 13px; font-weight: 580; overflow-wrap: anywhere; }
.rail-foot-icon { background: #2a474b; border-radius: 6px; width: 34px; height: 34px; display: grid; place-items: center; color: #baddd4; flex: none; }
.rail-foot form { margin-left: auto; }
.rail-foot button,.mobile-close,.menu-button { display: grid; place-items: center; border: 0; background: transparent; color: inherit; padding: 7px; }
.mobile-close,.menu-button,.shade { display: none; }
.shell { margin-left: 228px; min-height: 100vh; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 63px; padding: 0 34px; background: white; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.crumb,.topbar time { display: flex; align-items: center; gap: 10px; }
.crumb b { font-weight: 550; color: #3b4e56; }
.crumb .icon,.topbar time .icon { width: 15px; height: 15px; }
.crumb .icon:nth-last-child(2) { width: 12px; }
main { width: 100%; max-width: 1470px; padding: 32px 36px 54px; margin: auto; }
.pagehead { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.pagehead p,.tool-title p,.empty p { color: var(--muted); margin-top: 5px; font-size: 13px; }
.step-tag { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #566c6f; white-space: nowrap; }
.step-tag i { background: var(--accent); height: 7px; width: 7px; border-radius: 50%; }
.step-tag b { font: 600 12px ui-monospace,Consolas,monospace; }
.setup-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 28%); gap: 30px; align-items: start; }
.tool { background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.compact { max-width: 625px; }
.tool-title { padding: 22px 24px; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); }
.tool-title p { margin-top: 2px; }
.section-icon,.mini-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 7px; background: #e4f3ed; color: #147668; }
.section-icon .icon { width: 22px; height: 22px; }
.form-body { display: grid; gap: 20px; padding: 25px 24px 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.host-grid { grid-template-columns: minmax(0,2fr) minmax(78px,1fr); }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; font-weight: 580; font-size: 13px; }
.field small { font-weight: 400; font-size: 12px; color: var(--muted); }
input:not([type=hidden]):not([type=checkbox]),select { border: 1px solid #bccbce; background: #fff; color: var(--ink); height: 41px; padding: 7px 11px; border-radius: 5px; min-width: 0; font-weight: 400; }
input::placeholder { color: #7d8b91; }
input[type=file] { padding: 6px!important; height: auto!important; }
input[type=file]::file-selector-button { border: 0; padding: 5px 10px; background: #edf2f2; border-radius: 3px; margin-right: 10px; color: var(--ink); }
.password-wrap { position: relative; display: flex; }
.password-wrap input { width: 100%; padding-right: 42px!important; }
.password-toggle { position: absolute; right: 3px; top: 3px; bottom: 3px; width: 36px; display: grid; place-items: center; background: transparent; border: 0; color: #6b7c81; }
.password-toggle .icon { width: 16px; height: 16px; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; border-top: 1px solid var(--line); padding: 16px 24px; background: #fbfcfc; }
.form-actions .text-link { margin-right: auto; }
.button,.text-link,.edit-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.button { min-height: 37px; padding: 7px 13px; border: 1px solid #c9d4d6; background: #fff; color: #283f45; border-radius: 5px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.button:hover { background: #edf3f2; }
.button.primary { color: white; background: var(--accent); border-color: var(--accent); }
.button.primary:hover { background: #075e58; }
.button .icon,.text-link .icon,.edit-link .icon { width: 16px; height: 16px; }
.text-link,.edit-link { color: var(--accent); font-size: 13px; font-weight: 600; }
.text-link:hover,.edit-link:hover { text-decoration: underline; }
.setup-aside { padding-top: 8px; }
.env-heading,.section-heading h2 { display: flex; align-items: center; gap: 9px; }
.mini-icon { width: 30px; height: 30px; background: #e7efef; color: #456366; }
.env-heading h2 { font-size: 15px; }
.env-list { list-style: none; padding: 0; margin-top: 10px; }
.env-list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.env-value { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; }
.env-value .icon { width: 15px; height: 15px; }
.ok .icon { color: var(--accent); }
.bad { color: #ac4726; }
.install-note { display: flex; gap: 10px; margin-top: 23px; color: #52696d; }
.install-note>.icon { margin-top: 3px; }
.install-note h3 { font-size: 13px; }
.install-note p { font-size: 12px; margin-top: 5px; line-height: 1.8; }
.alert { display: flex; align-items: center; gap: 9px; padding: 11px 15px; border-radius: 5px; margin-bottom: 18px; }
.fail { background: #fff0e8; color: #934323; }
.success { background: #e3f3e9; color: #236643; }
.board-filter,.date-bar,.range-form,.section-heading,.pager { display: flex; align-items: center; gap: 12px; }
.board-filter,.section-heading { justify-content: space-between; }
.tabs { display: inline-flex; padding: 3px; background: #e5ebec; border-radius: 6px; }
.tabs a { min-width: 57px; text-align: center; padding: 5px 11px; font-weight: 550; color: #526269; font-size: 13px; border-radius: 4px; }
.tabs a.selected { background: white; color: var(--accent); box-shadow: 0 1px 3px #10252f20; }
.range-caption { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.range-caption .icon { width: 15px; }
.range-form,.date-bar { margin-top: 16px; flex-wrap: wrap; font-size: 13px; }
.range-form label,.date-bar label { display: inline-flex; align-items: center; gap: 8px; }
.date-bar { margin-bottom: 22px; }
.metrics { display: grid; grid-template-columns: repeat(3,1fr); background: white; margin: 19px 0 28px; border-block: 1px solid var(--line); }
.metric { display: flex; align-items: center; gap: 15px; padding: 20px 17px; position: relative; }
.metric+.metric:before { content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; border-left: 1px solid var(--line); }
.metric-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 7px; }
.metric-ico .icon { width: 22px; height: 22px; }
.teal { background: #e2f4ed; color: #17765c; }.blue { background: #e9effb; color: #4d70af; }.gold { background: #fcf0d8; color: #9c701e; }
.metric-label,.metric p small { color: var(--muted); font-size: 12px; }
.metric p { display: flex; align-items: baseline; gap: 6px; }
.metric p b { font-size: 26px; font-variant-numeric: tabular-nums; line-height: 1.3; overflow-wrap: anywhere; }
.table-section { border-block: 1px solid var(--line); background: white; }
.section-heading { padding: 17px 19px; }
.section-heading small { color: var(--muted); font-size: 12px; }
.section-heading .icon { color: var(--accent); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th,td { text-align: left; padding: 11px 16px; border-top: 1px solid #e4e9ea; }
th { color: #5b6b72; background: #f6f8f8; font-weight: 550; white-space: nowrap; }
td { overflow-wrap: anywhere; }
.num { text-align: right; }
.person,.current-avatar { display: flex; align-items: center; gap: 10px; }
.person strong { font-weight: 570; }
.avatar { width: 32px; height: 32px; object-fit: cover; flex: none; border-radius: 50%; display: inline-grid; place-items: center; font-size: 13px; font-weight: 600; }
.tone-0 { background: #e1eee9; color: #3c695d; }.tone-1 { background: #e5eafa; color: #546bab; }.tone-2 { background: #faebdf; color: #996c46; }.tone-3 { background: #eee6f6; color: #836696; }.tone-4 { background: #e1eff2; color: #4e7986; }
.place { display: inline-flex; align-items: center; gap: 3px; font-weight: 650; font-variant-numeric: tabular-nums; }
.place .icon { width: 15px; height: 15px; }.place-1 { color: #99660f; }.place-2 { color: #667989; }.place-3 { color: #9d6546; }
progress { display: block; width: 100%; max-width: 175px; height: 5px; accent-color: #57a89b; border: 0; border-radius: 4px; background: #eaf0ef; overflow: hidden; }
progress::-webkit-progress-bar { background: #eaf0ef; } progress::-webkit-progress-value { background: #57a89b; border-radius: 4px; } progress::-moz-progress-bar { background: #57a89b; }
.score { font-weight: 650; font-variant-numeric: tabular-nums; }.score small { font-weight: 400; color: var(--muted); }
.status { color: #667780; font-size: 12px; white-space: nowrap; }.status:before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #a7b4b7; margin-right: 5px; }.status.filled { color: #237962; }.filled:before { background: #45a58e; }
input.count-input { width: 90px; height: 33px!important; text-align: right; }
.pager { justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.icon-only { width: 33px; min-height: 32px; padding: 5px; }
.empty { text-align: center; border-top: 1px solid var(--line); padding: 45px 14px; }
.empty-icon { width: 49px; height: 49px; display: grid; place-items: center; background: #edf3f2; color: #60827d; border-radius: 8px; margin: 0 auto 11px; }
.empty-icon .icon { width: 24px; height: 24px; }
.empty-action { margin: -26px auto 27px; text-align: center; }
@media(max-width:1050px) {
  .rail { width: 198px; }.shell { margin-left: 198px; } main { padding: 25px 24px 45px; }.topbar { padding: 0 24px; }
  .setup-layout { gap: 20px; grid-template-columns: minmax(0,1fr) 210px; }.form-body,.tool-title { padding: 19px; }
}
@media(max-width:800px) {
  .rail { width: 228px; transform: translateX(-100%); visibility: hidden; }.shell { margin-left: 0; }
  body.nav-open { overflow: hidden; } .nav-open .rail { transform: none; visibility: visible; }
  .mobile-close,.menu-button { display: grid; }.mobile-close { margin-left: auto; }
  .nav-open .shade { display: block; position: fixed; inset: 0; background: #172c3280; border: 0; z-index: 4; }
  .topbar { height: 54px; }.crumb>.icon:first-of-type { display: none; }
}
@media(max-width:650px) {
  main { padding: 21px 15px 38px; } .topbar { padding: 0 10px; }.topbar time { font-size: 11px; gap: 4px; }.crumb { gap: 4px; }
  .pagehead { align-items: flex-start; gap: 8px; margin-bottom: 19px; } h1 { font-size: 23px; }.pagehead p { font-size: 12px; }
  .step-tag { font-size: 0; gap: 5px; padding-top: 8px; }.step-tag b { font-size: 11px; }
  .setup-layout { grid-template-columns: 1fr; }.setup-aside { padding: 6px; }.form-grid:not(.host-grid) { grid-template-columns: 1fr; gap: 18px; }
  .tool-title,.form-body { padding: 17px; }.form-actions { padding: 13px 16px; }.section-icon { width: 33px; height: 33px; }
  .section-heading { padding: 14px 11px; gap: 6px; } .section-heading h2 { font-size: 15px; }
  .board-filter { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
  .metrics { margin: 15px 0 20px; }.metric { padding: 11px 8px; gap: 5px; align-items: flex-start; flex-direction: column; }
  .metric-ico { width: 25px; height: 25px; }.metric-ico .icon { width: 15px; height: 15px; }.metric p b { font-size: 20px; }
  .metric-label { font-size: 11px; }.bar-col { display: none; } th,td { padding: 9px 7px; }
  .person { gap: 5px; }.avatar { width: 27px; height: 27px; }.person strong { min-width: 2em; }.status { font-size: 11px; }
  input.count-input { width: 65px; }.edit-link { white-space: nowrap; }
}
@media(max-width:390px) { .topbar time .icon,.crumb>span:not(.icon) { display: none; }.metric p b { font-size: 18px; } }
