:root {
  color-scheme: light;
  font-family: "IBM Plex Sans", "Source Sans 3", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #182c2b;
  background: #f5f7f5;
  font-size: 15px;
  --ink: #183b38;
  --accent: #006f61;
  --muted: #526964;
  --line: #d9e2dc;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid #18927e; outline-offset: 3px;
}
button, input { font: inherit; }
button, .primary { cursor: pointer; }
button {
  color: var(--ink); border: 1px solid #aebeb5; background: white;
  border-radius: 7px; font-weight: 600; padding: .53rem 1rem;
}
button:hover { background: #ecf3ef; }
button:disabled { opacity: .55; cursor: wait; }
.primary {
  display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--accent);
  color: white; background: var(--accent); font-weight: 650; border-radius: 7px; padding: .6rem 1.1rem;
}
.primary:hover { color: white; background: #00564b; text-decoration: none; }
.compact { padding: .3rem .8rem; font-size: .88rem; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 214px minmax(0,1fr); }
.sidebar {
  position: sticky; top: 0; height: 100vh; color: #f5fbf5; background: #153d38;
  display: flex; flex-direction: column; padding: 36px 20px 22px; gap: 40px;
}
.brand { display: flex; gap: 12px; align-items: center; font-size: 1.3rem; font-weight: 750; color: inherit; letter-spacing: .025em; }
.brand:hover { text-decoration: none; }
.mark { display: inline-block; width: 26px; height: 26px; position: relative; color: #a5e8c5; }
.mark::before, .mark::after {
  content: ""; position: absolute; width: 15px; height: 15px; border: 2px solid currentColor; border-radius: 3px;
}
.mark::before { left: 0; top: 0; }
.mark::after { right: 0; bottom: 0; background: #153d38; }
.sidebar nav { display: grid; gap: 6px; }
.sidebar nav a { color: #c5d8ce; display: flex; align-items: center; gap: .85rem; border-radius: 6px; padding: .7rem .8rem; }
.sidebar nav a:hover, .sidebar nav [aria-current="page"] { color: #f9fffb; background: #29534b; text-decoration: none; }
.navicon { font-family: system-ui, sans-serif; font-size: 1.2rem; width: 1.2rem; text-align: center; }
.account { margin-top: auto; border-top: 1px solid #43645a; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.account small, .account strong { display: block; overflow-wrap: anywhere; }
.account small { color: #bed0c7; font-size: .75rem; }
.logoff { background: none; border-color: #6b897d; color: #e2ece3; font-size: .85rem; padding: .25rem .6rem; }
.logoff:hover { background: #29534b; }
.workspace { width: 100%; max-width: 1540px; padding: clamp(24px,4vw,64px); margin-inline: auto; }
.page-head, .section-head, .stack-row, .disk-values, .form-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.page-head { margin-bottom: 26px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.9rem,3.3vw,2.65rem); line-height: 1.2; letter-spacing: -.04em; overflow-wrap: anywhere; }
h2, summary { font-size: 1.12rem; font-weight: 700; }
h2 small { color: var(--muted); font-size: .85rem; margin-left: .35rem; }
.back { display: inline-block; font-size: .85rem; margin-bottom: .7rem; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 22px; }
.metrics > div { padding: 20px; border-radius: 10px; background: #e6eee8; }
.metrics > div:first-child { background: #d7ebdd; }
.metrics span, .muted, .meta, .hint, .form-feedback, dt, th { color: var(--muted); }
.metrics span { display: block; font-size: .86rem; }
.metrics strong { display: block; margin-top: 14px; font-size: clamp(1.2rem,2.25vw,2.1rem); font-variant-numeric: tabular-nums; font-weight: 650; line-height: 1.2; }
.panel { border: 1px solid var(--line); border-radius: 10px; background: #fff; margin: 0 0 20px; overflow: hidden; }
.section-head, summary { padding: 17px 20px; }
.section-head { border-bottom: 1px solid var(--line); }
.section-head > a, .section-head > span { font-size: .86rem; }
.panel-body, .settings { padding: 20px; }
.disks { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); }
.disk { padding: 20px; }
.disk-values, .meta, .hint, .form-feedback { font-size: .85rem; }
.disk-values { gap: .25rem .8rem; color: var(--muted); }
progress { appearance: none; width: 100%; height: 7px; border: 0; border-radius: 10px; overflow: hidden; background: #e1eae3; accent-color: var(--accent); margin: 12px 0; }
progress::-webkit-progress-bar { background: #e1eae3; }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 13px 18px; text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
th { font-size: .8rem; font-weight: 600; background: #f8faf8; }
tbody tr + tr { border-top: 1px solid #e8eee9; }
.nowrap { white-space: nowrap; }
.path, .code { font-family: "IBM Plex Mono", Consolas, monospace; overflow-wrap: anywhere; }
.code { font-size: .9em; }
.meta { margin-top: .25rem; }
.separate { margin-left: .7rem; }
.project-name { font-weight: 700; font-size: 1rem; }
.empty { color: var(--muted); padding: 24px 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
label { display: grid; gap: 6px; font-size: .91rem; font-weight: 600; }
input { color: #182c2b; width: 100%; padding: .65rem .8rem; background: #fff; border: 1px solid #aabbb3; border-radius: 6px; }
input::placeholder { color: #6a7e74; }
.hint { margin: .65rem 0 1rem; }
.notice { background: #e0f3e5; color: #1d5741; padding: 12px 16px; border: 1px solid #bbdec5; margin-bottom: 18px; border-radius: 7px; overflow-wrap: anywhere; white-space: pre-wrap; }
.notice.error { background: #fbefec; color: #8b372a; border-color: #efc7be; }
.panel-body > .notice, .facts, .env-facts { margin: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,185px),1fr)); gap: 17px; padding: 20px; }
dt { font-size: .84rem; }
dd { margin: 5px 0 0; overflow-wrap: anywhere; }
.pill { display: inline-block; color: #205d47; background: #e0f1e6; font-size: .78rem; padding: .17rem .6rem; border-radius: 99px; }
.drop { border: 1px dashed #a9bfb2; border-radius: 8px; background: #f6faf7; padding: 15px; }
.drop input { width: fit-content; max-width: 100%; border: 0; background: transparent; padding: 4px 0; }
.drop input::file-selector-button { padding: .3rem .6rem; margin-right: .7rem; background: #fff; color: var(--ink); border: 1px solid #a8b9ae; border-radius: 4px; }
.form-actions { justify-content: start; }
.form-feedback.alert { color: #8b372a; }
.pending-note { padding: 0 20px 18px; color: var(--muted); font-size: .9rem; }
.pending-note a { margin-left: .65rem; }
summary { cursor: pointer; }
.settings { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: 20px; align-items: end; }
.settings label { margin-bottom: 12px; }
.env-facts { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 12px 20px; padding: 20px; }
.env-facts dd { margin: 0; }
.output { white-space: pre-wrap; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: #eaf1eb; }
.login-card { width: min(100%,410px); padding: clamp(24px,5vw,42px); border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.login-card .brand { color: #226853; font-size: 1rem; margin-bottom: 28px; }
.login-card .mark { color: #398064; }
.login-card .mark::after { background: #fff; }
.login-card h1 { margin-bottom: 25px; font-size: 1.8rem; }
.login-card form { display: grid; gap: 16px; }
.login-card button { margin-top: 8px; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 170px minmax(0,1fr); }
  .sidebar { padding: 25px 13px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workspace { padding: 24px 18px; }
}
@media (max-width: 640px) {
  .shell { display: block; }
  .sidebar { position: static; height: auto; display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 13px 16px; }
  .sidebar .brand { font-size: 1.1rem; }
  .sidebar nav { display: flex; flex-wrap: wrap; grid-column: 1/-1; grid-row: 2; gap: 3px; }
  .sidebar nav a { padding: .35rem .65rem; }
  .account { border: 0; margin: 0; padding: 0; }
  .account small, .navicon { display: none; }
  .workspace { padding: 23px 12px; }
  .metrics, .form-grid { gap: 8px; }
  .form-grid { grid-template-columns: 1fr; }
  .metrics > div { padding: 15px; }
  th, td { padding: 10px 12px; }
  .section-head, .panel-body, .facts, .settings, .env-facts { padding: 15px; }
}

