:root {
  font-family: Inter, "Microsoft YaHei", system-ui, sans-serif;
  color: #182835; background: #f4f7fa;
  --accent: #176745; --border: #dbe5e9; --muted: #526673;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #175a79; text-underline-offset: 3px; }
button, input, select { font: inherit; }
button { border: 1px solid var(--accent); background: var(--accent); color: white; border-radius: 7px; padding: 8px 13px; cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
button.secondary { background: white; color: #315163; border-color: var(--border); }
input, select { background: white; border: 1px solid #b6c7cd; border-radius: 7px; padding: 8px 10px; min-width: 0; }
:focus-visible { outline: 3px solid #187f9e; outline-offset: 3px; }
h1 { font-size: clamp(24px, 3vw, 33px); margin: 0 0 22px; }
h2 { font-size: 17px; margin: 0; }
p { line-height: 1.65; }
.console { display: grid; grid-template-columns: 218px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: #102d31; color: white; padding: 22px 15px; }
.brand { display: flex; align-items: center; gap: 8px; color: white; text-decoration: none; font-size: 16px; font-weight: 700; padding: 4px 8px 28px; flex-wrap: wrap; }
.brand span { background: #247956; border-radius: 7px; padding: 4px 7px; }
.brand small { font-size: 12px; color: #afd3c5; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav a { color: #dce9e6; padding: 10px 12px; text-decoration: none; border-radius: 7px; }
.sidebar nav a:hover, .sidebar nav a[aria-current] { background: #23474a; color: white; }
.top, .demo-top { background: white; border-bottom: 1px solid var(--border); min-height: 56px; padding: 10px clamp(16px, 4vw, 46px); display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.top span { margin-right: auto; color: var(--muted); }
main { max-width: 1360px; margin-inline: auto; padding: clamp(16px, 4vw, 44px); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(155px, 100%), 1fr)); gap: 14px; margin-bottom: 22px; }
.metric { background: white; border: 1px solid var(--border); border-radius: 11px; padding: 16px 18px; display: grid; gap: 7px; color: var(--muted); text-decoration: none; }
a.metric:hover { border-color: var(--accent); }
.metric strong { font-size: 29px; color: #173a35; font-variant-numeric: tabular-nums; }
.panel { background: white; border: 1px solid var(--border); border-radius: 11px; overflow: hidden; margin-bottom: 18px; }
.panel-title, .filters, .pagination { padding: 14px 18px; display: flex; gap: 12px 16px; align-items: center; flex-wrap: wrap; }
.panel-title { justify-content: space-between; }
.filters label, .model-search { display: flex; gap: 8px; align-items: center; max-width: 100%; }
.filters input { width: 225px; max-width: 100%; }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; text-align: left; }
th, td { padding: 13px 16px; border-top: 1px solid var(--border); }
th { background: #eef4f5; color: #3e5860; white-space: nowrap; }
td small { display: block; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.actions { white-space: nowrap; }
.actions form { display: inline; }
.actions a { margin-right: 11px; }
.actions summary { cursor: pointer; color: #175a79; margin-bottom: 4px; }
.status { display: inline-block; padding: 4px 9px; border-radius: 6px; white-space: nowrap; }
.status.active { background: #e1f5e9; color: #115939; }
.status.pending { background: #fff0d1; color: #714c16; }
.status.suspended { background: #f6e9e9; color: #7a3333; }
.empty, .copy { padding: 16px 18px; }
.empty { color: var(--muted); text-align: center; }
.demo-top { justify-content: space-between; }
.demo-top nav { display: flex; gap: 16px; }
.demo h1 { margin-bottom: 6px; }
.demo main > p { color: var(--muted); margin-bottom: 23px; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(240px, 1fr); gap: 18px; }
.demo-form { display: grid; gap: 10px; padding: 0 18px 18px; }
.demo-form label { display: grid; gap: 5px; }
.demo-form p, #demo-feedback { margin: 0; }
@media (max-width: 720px) {
  .console, .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .sidebar { padding: 10px 12px; }
  .brand { padding: 3px 4px 10px; }
  .sidebar nav { display: flex; flex-wrap: wrap; }
  .sidebar nav a { padding: 7px 8px; }
  .filters input { width: min(225px, 65vw); }
}
