.workspace-theme {
  color-scheme: light;
  --bg: #faf9f7;
  --surface: #fff;
  --surface-2: #f4f2f0;
  --fg: #201f1e;
  --muted: #605a59;
  --line: #ddd8d6;
  --accent: #6b333d;
  --accent-soft: #f4edf0;
  --on-accent: #fff;
  --ok: #4d4748;
  --ok-soft: #efebeb;
  --warn: #6b333d;
  --warn-soft: #f6ecef;
  --bad: #6b333d;
  --bad-soft: #f6ecef;
  --idle: #635f61;
  --idle-soft: #f0edee;
  --f-display: Georgia, "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
  --f-body: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
}

.workspace-theme .portal {
  max-width: 472px;
  min-height: 100svh;
  justify-content: center;
  padding: 44px 20px 64px;
  gap: 22px;
}

.workspace-theme .portal.wide {
  max-width: 880px;
  min-height: auto;
  justify-content: start;
}

.workspace-head { display: flex; align-items: center; flex-wrap: wrap; }
.workspace-emblem { display: block; width: 34px; height: 34px; flex: 0 0 auto; }
.workspace-theme .brand { gap: 10px; font-size: clamp(17px, 3.6vw, 21px); letter-spacing: .015em; }
.workspace-theme .brand small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 10px; }

.workspace-theme .portal:not(.wide) > :is(.workspace-head, .brand) {
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
}

.workspace-theme .card {
  border-radius: 2px;
  padding: clamp(22px, 5vw, 36px);
  background: var(--surface);
  gap: 17px;
}

.workspace-theme .portal:not(.wide) > .card {
  border: 0;
  padding: 0;
  background: transparent;
}

.workspace-theme .card h1 { font-size: clamp(30px, 7vw, 46px); letter-spacing: -.035em; line-height: 1.1; }
.workspace-theme .card h2 { font-size: 17px; }
.workspace-theme .portal .field { gap: 7px; }
.workspace-theme .portal .field input { min-height: 43px; background: var(--surface); }
.workspace-theme .portal .btn.block { min-height: 44px; }
.workspace-theme .btn.primary { font-weight: 700; background: var(--fg); border-color: var(--fg); }
.workspace-theme .btn.primary:hover { background: #3c3437; border-color: #3c3437; }
.workspace-theme .field input::placeholder { color: var(--muted); }
.workspace-theme input[type="checkbox"] { accent-color: var(--accent); }
.workspace-theme :is(.btn, .field input, .field select, .field textarea, .grow, .panel, .msg, .note, .modal, .devlist) { border-radius: 2px; }

.workspace-theme .admin { padding-top: 28px; }
.workspace-theme .admin > .top { padding-bottom: 14px; margin-bottom: 2px; border-bottom: 1px solid var(--line); }
.workspace-theme .admin .kpis { gap: 14px 24px; }
.workspace-theme .admin .kpi { border: 0; padding: 0; background: transparent; }
.workspace-theme .admin .kpi .value { font-family: var(--f-display); font-size: 39px; font-weight: 400; letter-spacing: -.05em; }
.workspace-theme .tablebox { border-inline: 0; border-radius: 0; background: transparent; }
.workspace-theme .nav button[aria-pressed="true"] { color: var(--accent); }
.workspace-theme .admin .toolbar input[type="search"] { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.workspace-theme .admin .chip { color: var(--muted); border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: transparent; }
.workspace-theme .admin .chip:is(:hover, [aria-pressed="true"]) { color: var(--accent); border-bottom-color: var(--accent); }
.workspace-theme #v-home .plan > div { border: 1px solid var(--line); border-radius: 2px; }
.workspace-theme #v-home small { color: var(--muted); }
.workspace-theme #buy-sub { white-space: pre-line; overflow-wrap: anywhere; }

@media (max-width: 520px) {
  .workspace-theme .portal { padding: 32px 15px 48px; }
  .workspace-theme .portal:not(.wide) { justify-content: flex-start; }
  .workspace-theme #v-home .plan { grid-template-columns: 1fr; }
}
