:root {
  color-scheme: light;
  --ink: #1c2a23;
  --muted: #5c6c62;
  --green: #226347;
  --green-dark: #194e38;
  --pale: #e7f1e8;
  --line: #e1e5da;
  --canvas: #f6f6ef;
  --paper: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; font-size: 14px; line-height: 1.6; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid #358965; outline-offset: 3px; }
button:disabled { opacity: .58; cursor: wait; }
svg { display: block; flex: 0 0 auto; }
.icon { width: 18px; height: 18px; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.layout { min-height: 100vh; display: grid; grid-template-columns: 216px minmax(0, 1fr); }
.side { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; background: #1d3027; color: #d6e3db; padding: 26px 14px 15px; }
.brand { display: flex; align-items: center; gap: 9px; padding-inline: 7px; white-space: nowrap; }
.brand-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #cbefbc; color: #245139; flex: 0 0 auto; }
.brand-icon .icon { width: 21px; height: 21px; }
.brand strong { color: #fff; display: block; font-size: 15px; letter-spacing: .035em; }
.brand small { color: #a9bfb0; display: block; font-size: 10px; letter-spacing: .1em; }
.menu-title { color: #a9bfb0; font-size: 10px; font-weight: 650; letter-spacing: .19em; margin: 33px 12px 8px; }
.nav-link { text-decoration: none; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 8px; margin-bottom: 4px; font-size: 13px; }
.nav-link:hover { background: #314b3e; color: white; }
.nav-link[aria-current="page"] { color: #dcf5d2; background: #385644; font-weight: 650; }
.nav-link[aria-current="page"]::after { content: ""; width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: #c4eeb6; }
.side-footer { margin-top: auto; border-top: 1px solid #3b5245; padding: 12px 6px 0; color: #a9bfb0; font-size: 10px; letter-spacing: .09em; }
.top { min-height: 61px; padding: 0 32px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); background: white; }
.crumb { color: var(--muted); font-size: 12px; }
.crumb strong { color: var(--ink); margin-left: 7px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.avatar { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: var(--green); background: var(--pale); font-weight: 700; }
.name { font-size: 12px; font-weight: 650; }
.icon-btn { display: grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 7px; width: 32px; height: 32px; }
.icon-btn:hover { background: var(--pale); color: var(--green-dark); }
.icon-btn .icon { width: 16px; height: 16px; }
.nav-toggle { display: none; }
.main { min-width: 0; }
.content { width: 100%; max-width: 1460px; padding: 24px 32px 35px; margin: auto; }
.banner { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 154px; margin-bottom: 16px; border-radius: 13px; padding: 22px 27px; background: #e8efe1; border: 1px solid #d7e3d2; }
.banner > div { position: relative; z-index: 1; }
.banner-art { width: min(46%, 470px); height: 100%; right: 0; top: 0; position: absolute; }
.eyebrow { color: var(--green); font-weight: 750; font-size: 11px; letter-spacing: .15em; margin-bottom: 5px; }
h1 { font-size: clamp(25px, 3.25vw, 34px); letter-spacing: -.035em; line-height: 1.25; }
.subtitle { color: var(--muted); margin-top: 7px; font-size: 13px; }
.page-heading { display: flex; gap: 13px; justify-content: space-between; align-items: center; margin-bottom: 19px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.metric, .panel { background: white; border: 1px solid var(--line); border-radius: 11px; min-width: 0; box-shadow: 0 7px 21px #243a2710; }
.metric { padding: 12px 15px; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.metric-icon { display: grid; place-items: center; width: 29px; height: 29px; background: #e9f3e6; color: #367654; border-radius: 7px; }
.metric:nth-child(2) .metric-icon { background: #f4ecdc; color: #89652c; }
.metric:nth-child(3) .metric-icon { background: #e8eff5; color: #4c6981; }
.metric-icon .icon { width: 16px; height: 16px; }
.metric strong { display: block; font-size: 24px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.metric small { display: block; color: var(--muted); font-size: 11px; }
.panel-heading { padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px; border-bottom: 1px solid var(--line); }
h2 { font-size: 16px; }
.panel-heading p { color: var(--muted); font-size: 11px; margin-top: 3px; }
.toolbar { padding: 10px 15px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; border-bottom: 1px solid var(--line); }
.toolbar label { display: grid; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 650; }
.toolbar .btn { min-height: 34px; }
.filter-state { color: var(--muted); font-size: 11px; margin-left: auto; align-self: center; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
th, td { padding: 10px 15px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); background: #f6f7f1; font-size: 11px; white-space: nowrap; }
td { max-width: 360px; overflow-wrap: anywhere; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcf8; }
.table-title { font-weight: 680; }
.table-note { display: block; color: var(--muted); margin-top: 3px; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: clamp(110px, 24vw, 330px); }
.row-actions, .status-row { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 6px 11px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 7px; font-weight: 650; font-size: 12px; white-space: nowrap; text-decoration: none; }
.btn .icon { width: 15px; height: 15px; }
.btn:hover { background: #edf4ea; }
.btn.primary { background: var(--green); color: white; border-color: var(--green); }
.btn.primary:hover { background: var(--green-dark); }
.btn.text { padding: 3px 5px; min-height: 27px; color: var(--green-dark); background: transparent; border-color: transparent; }
.btn.text:hover { background: var(--pale); }
.btn.danger { color: #a22c32; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; background: #eef0eb; color: #56655b; font-size: 11px; white-space: nowrap; }
.pill.green { background: #e4f3e6; color: #2b6746; }
.pill.gold { background: #f9efd9; color: #805717; }
.pill.blue { background: #e9f0f6; color: #395e79; }
.pill.red { background: #f8e8e9; color: #97343b; }
.dot { width: 6px; height: 6px; background: #468963; border-radius: 50%; flex: 0 0 auto; }
.pill.gold .dot { background: #b78a36; }
.empty { padding: 25px 13px; text-align: center; color: var(--muted); }
.empty .icon { margin: 0 auto 7px; color: #83a087; width: 23px; height: 23px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
input, select { background: #fff; border: 1px solid #dce4d8; color: var(--ink); border-radius: 7px; min-height: 34px; padding: 5px 8px; min-width: 0; max-width: 100%; }
input::placeholder { color: #677a6c; }
.field { display: grid; gap: 4px; font-weight: 650; font-size: 12px; min-width: 0; }
.field small { color: var(--muted); font-weight: normal; }
.field input, .field select { min-height: 38px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.wide-field { grid-column: 1/-1; }
.error { color: #98313c; background: #fbecef; border-radius: 7px; padding: 8px 10px; margin-top: 9px; }
.modal { position: fixed; inset: 0; z-index: 10; background: #152c2190; padding: 12px; display: grid; place-items: center; }
.modal-panel { display: flex; flex-direction: column; width: min(100%, 520px); max-height: calc(100dvh - 24px); border-radius: 13px; background: white; box-shadow: 0 18px 66px #12291d65; }
.modal-panel.wide { width: min(100%, 980px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 17px; border-bottom: 1px solid var(--line); }
.modal-body { overflow: auto; padding: 15px 17px; }
.modal-body > * + * { margin-top: 10px; }
.modal-foot { padding: 10px 17px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 6px; }
.invite-value { display: flex; gap: 8px; flex-wrap: wrap; }
.invite-value input { flex: 1 1 160px; font-family: ui-monospace, Consolas, monospace; font-size: 17px; font-weight: 650; letter-spacing: .07em; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); gap: 11px; }
.photo { border: 1px solid var(--line); background: #f5f6f1; border-radius: 8px; overflow: hidden; display: grid; align-content: start; }
.photo button { display: block; padding: 0; width: 100%; border: 0; background: transparent; color: inherit; text-align: left; }
.photo img { display: block; width: 100%; max-height: 360px; object-fit: contain; }
.photo img:not([src]) { display: none; }
.photo-caption { padding: 6px 8px; display: block; color: var(--muted); font-size: 11px; }
.zoom { width: 100%; height: auto; display: block; }
.login { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100dvh; }
.login-art { background: #1d3027; color: #fff; padding: clamp(22px, 6vw, 92px); display: grid; align-content: center; gap: 16px; position: relative; isolation: isolate; overflow: hidden; }
.login-art .brand { padding: 0; }
.login-art h1 { font-size: clamp(31px, 5vw, 56px); max-width: 440px; }
.login-art p { color: #c3d8c9; max-width: 390px; }
.login-art::after { content: ""; position: absolute; z-index: -1; bottom: -18%; right: -18%; width: 58%; aspect-ratio: 1; border: 1px solid #426352; border-radius: 50%; box-shadow: 0 0 0 24px #243d30, 0 0 0 25px #426352; }
.login-box { align-self: center; justify-self: center; width: min(calc(100% - 40px), 360px); padding: 28px 0; }
.login-box h2 { font-size: 26px; }
.login-box form { margin-top: 16px; display: grid; gap: 12px; }
.login-box .btn { min-height: 41px; }
.demo-note { margin-top: 12px; font-size: 11px; color: var(--muted); }
#notice { position: fixed; z-index: 20; right: 18px; bottom: 18px; }
.toast { max-width: min(400px, 85vw); border-radius: 8px; padding: 9px 13px; background: #22563c; color: white; box-shadow: 0 5px 18px #173a2950; }
.toast.bad { background: #97343b; }
@media (max-width: 960px) {
  .layout { grid-template-columns: 188px minmax(0, 1fr); }
  .top, .content { padding-inline: 17px; }
}
@media (max-width: 670px) {
  .layout { display: block; }
  .side { display: none; position: fixed; inset: 0 auto 0 0; width: 212px; z-index: 5; box-shadow: 0 0 0 100vmax #17291d70; }
  .layout.nav-open .side { display: flex; }
  .nav-toggle { display: grid; }
  .top { min-height: 54px; }
  .top, .content { padding-inline: 12px; }
  .content { padding-top: 13px; }
  .name { display: none; }
  .banner { padding: 16px; min-height: 126px; }
  .banner-art { opacity: .27; }
  .metric { padding: 8px; }
  .metric-top { gap: 4px; font-size: 11px; }
  .metric-icon { width: 21px; height: 21px; }
  .metric-icon .icon { width: 13px; height: 13px; }
  .metric small { display: none; }
  .metrics { gap: 6px; }
  .filter-state { margin-left: 0; }
  .login { grid-template-columns: 1fr; }
  .login-art { gap: 9px; }
  .login-art p { font-size: 12px; }
  th, td { padding-inline: 8px; }
}
