@charset "UTF-8";
:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --surface: #fff;
  --ink: #18202f;
  --muted: #6c7588;
  --line: #e3e8f0;
  --accent: #1855ea;
  --accent-soft: #edf3ff;
  --success: #24743e;
  --success-soft: #eaf7ee;
  --danger: #b63636;
  --warning: #8b6017;
  --radius: 9px;
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC",
    "Segoe UI", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid #d6dde8;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 140ms,
    border-color 140ms;
}
button:hover,
.button:hover {
  background: #f2f5fa;
  border-color: #b5c1d6;
  text-decoration: none;
}
button.primary,
.button.primary {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
}
button.primary:hover,
.button.primary:hover {
  background: #1048cf;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.text-button,
a.text-button {
  border: 0;
  background: none;
  color: var(--accent);
  padding: 5px 0;
  min-height: 36px;
}
button.outline {
  color: var(--accent);
  border-color: #b8c9f3;
}
button.small {
  min-height: 34px;
  padding: 4px 12px;
  font-size: 13px;
}
button.icon-button {
  padding: 8px;
  width: 38px;
  min-height: 38px;
  border-color: transparent;
  background: transparent;
}
button.icon-button:hover {
  background: #eaf0fa;
}
.icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  object-fit: contain;
  vertical-align: middle;
  opacity: 0.8;
}
.primary .icon {
  filter: brightness(0) invert(1);
  opacity: 1;
}
input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  background: white;
  border: 1px solid #cfd7e5;
  border-radius: 7px;
  color: var(--ink);
}
input::placeholder,
textarea::placeholder {
  color: #8b94a5;
}
input[type="checkbox"] {
  width: 17px;
  min-height: 17px;
  accent-color: var(--accent);
}
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #1855ea1f;
  outline-offset: 0;
  border-color: var(--accent);
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #1855ea66;
  outline-offset: 3px;
}
input[readonly] {
  background: #f5f7fa;
  color: var(--muted);
}
textarea {
  min-height: 80px;
  resize: vertical;
}
code,
pre,
.numeric {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-variant-numeric: tabular-nums;
}
pre {
  overflow-x: auto;
  padding: 20px;
  border-radius: 8px;
  background: #f0f3f8;
  font-size: 13px;
  line-height: 1.9;
}
h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}
h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.3;
  letter-spacing: -0.7px;
  font-weight: 700;
}
h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
  font-weight: 650;
}
h3 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 650;
}
p {
  margin: 8px 0 16px;
}
.muted,
.hint,
.footnote {
  color: var(--muted);
}
.hint {
  font-size: 12px;
  line-height: 1.8;
  margin: 8px 0 0;
}
.description {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 15px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.7px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -70px;
  left: 16px;
  z-index: 10;
  background: white;
  padding: 12px 18px;
}
.skip-link:focus {
  top: 10px;
}
.site-header {
  min-height: 72px;
  padding: 0 4%;
  display: flex;
  align-items: center;
  gap: 34px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  height: 35px;
  width: 35px;
  background: var(--accent);
  color: white;
  font-size: 25px;
  font-weight: 650;
  line-height: 1;
  border-radius: 7px;
}
.header-divider {
  height: 24px;
  width: 1px;
  background: #ced6e2;
}
.workspace-label {
  color: #515c73;
  font-size: 15px;
  font-weight: 500;
}
.main-nav {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: 30px;
  margin: 0 auto;
}
.main-nav a {
  display: flex;
  align-items: center;
  position: relative;
  color: #505a6f;
  font-weight: 600;
  white-space: nowrap;
}
.main-nav a:hover {
  text-decoration: none;
  color: var(--accent);
}
.main-nav a[aria-current] {
  color: var(--accent);
}
.main-nav a[aria-current]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}
.header-actions {
  margin-left: auto;
  flex-shrink: 0;
}
.quiet-link {
  color: var(--muted);
}
.profile-menu {
  position: relative;
}
.profile-menu summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  min-height: 42px;
}
.profile-menu summary::-webkit-details-marker {
  display: none;
}
.profile-menu summary .icon:last-child {
  width: 15px;
  height: 15px;
  flex-basis: 15px;
}
.profile-links {
  position: absolute;
  z-index: 5;
  right: 0;
  top: 48px;
  width: 172px;
  padding: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px #17213c12;
}
.profile-links a,
.profile-links button {
  display: flex;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  color: var(--ink);
  border: 0;
  justify-content: flex-start;
  min-height: 38px;
  border-radius: 5px;
  font-size: 13px;
}
.profile-links a:hover {
  text-decoration: none;
  background: var(--accent-soft);
}
.admin-main {
  max-width: 1440px;
  padding: 48px 5.7% 36px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.page-heading > .primary {
  padding: 12px 25px;
  min-height: 48px;
  font-size: 15px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 32px 0 22px;
}
.search-wrap {
  display: flex;
  align-items: center;
  position: relative;
  width: min(480px, 45%);
}
.search-wrap > .icon {
  position: absolute;
  left: 13px;
  width: 20px;
  height: 20px;
}
.search-wrap input {
  padding-left: 43px;
  background: #ffffffbf;
  min-height: 44px;
}
.currency-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2155c3;
  background: #eaf0ff;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  line-height: 1.5;
}
.currency-note .icon {
  opacity: 0.7;
}
.record-count {
  margin-left: auto;
  font-size: 12px;
}
.toolbar > .icon-button {
  margin-left: auto;
}
.toolbar > .icon-button + .record-count {
  margin-left: 0;
}
.notice {
  border-radius: 7px;
  padding: 12px 16px;
  background: var(--accent-soft);
  color: #3b5e9a;
  font-size: 13px;
  line-height: 1.7;
}
.notice.warning {
  color: var(--warning);
  background: #fff6e5;
}
.notice p {
  margin: 5px 0 0;
}
.page-message {
  margin: 0;
  font-size: 13px;
  color: var(--success);
}
.page-message:not(:empty) {
  margin-bottom: 16px;
}
.records {
  border: 1px solid #dce3ee;
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
}
.record-table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}
.record-table th {
  background: #edf0f6;
  color: #59637a;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  padding: 15px 22px;
}
.record-table td {
  padding: 17px 22px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.record-table th:first-child {
  width: 28%;
}
.record-table th:last-child {
  width: 17%;
}
.record-table th.status-column {
  width: 14%;
}
.record-table .title {
  display: block;
  font-weight: 600;
  font-size: 15px;
}
.record-table small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.record-table td .numeric {
  font-size: 13px;
}
.record-row {
  cursor: pointer;
}
.record-table .record-row:hover {
  background: #f4f7fd;
}
.record-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.record-table .record-row.selected > td {
  background: #edf3ff;
  border-top-color: #dae5ff;
}
.record-table .record-row.selected > td:first-child {
  box-shadow: inset 3px 0 var(--accent);
}
.user-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}
.expand-indicator {
  width: 16px;
  height: 16px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--success-soft);
  color: var(--success);
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.5;
  padding: 4px 8px;
  white-space: nowrap;
}
.badge.pending {
  color: #8d681c;
  background: #fff4dc;
}
.expanded-row > td {
  padding: 0;
  border-top: 0;
}
.token-detail {
  padding: 25px 32px 0;
  background: #fcfdff;
}
.catalog-controls {
  min-width: 0;
}
.catalog-editor-grid > * {
  min-width: 0;
}
.catalog-editor-grid .check-row {
  margin-top: 20px;
}
.catalog-detail .catalog-editor-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(340px, 1.15fr);
  align-items: start;
  gap: 36px;
}
.record-table small.missing-code {
  color: var(--warning);
}
@media (max-width: 900px) {
  .catalog-detail .catalog-editor-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}
.credential-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.credential-strip > label {
  font-size: 13px;
  white-space: nowrap;
}
.credential-control {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px 7px 15px;
  border: 1px solid #dce2ed;
  border-radius: 7px;
  background: #f5f7fc;
  min-width: 0;
}
.credential-control code {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.5;
}
.credential-strip .credential-control {
  flex: 1 1 280px;
  max-width: 390px;
}
.credential-strip .credential-control code {
  font-size: 14px;
}
.credential-control .icon-button {
  flex-shrink: 0;
}
.copy-button {
  background: white;
  margin-left: 4px;
  min-height: 36px;
  padding: 6px 12px;
  font-size: 13px;
}
.base-url-inline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  font-size: 12px;
}
.base-url-inline code {
  overflow-wrap: anywhere;
}
.sync-status {
  margin: 13px 0 22px;
}
.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.class-sync-row > td {
  padding: 0 24px 20px;
}
.class-sync-panel {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.class-sync-panel p {
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.class-sync-panel progress {
  display: block;
  width: 100%;
  height: 14px;
  margin: 14px 0;
  accent-color: var(--accent);
}
.class-sync-panel details {
  margin-top: 12px;
}
.class-sync-panel li {
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.5fr);
  gap: 30px;
}
.budget-summary {
  padding-right: 28px;
  border-right: 1px solid var(--line);
}
.budget-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.budget-line:last-child {
  border-bottom: 0;
}
.budget-line > span:first-child {
  color: #5f6980;
  flex: 1;
}
.budget-line strong {
  font-size: 15px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.budget-line small {
  display: inline;
  margin: 0 0 0 4px;
  font-size: 11px;
  font-weight: 400;
}
.contribution-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.contribution-table th {
  font-size: 11px;
  padding: 8px 10px;
  font-weight: 500;
}
.contribution-table td {
  font-size: 12px;
  padding: 10px;
  vertical-align: top;
}
.contribution-table th:first-child {
  width: 32%;
}
.contribution-table th:last-child {
  width: 28%;
}
.contribution-table td > span {
  display: block;
}
.contribution-table small {
  font-size: 10px;
}
.detail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  padding: 17px 0;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.detail-actions .text-button {
  font-size: 13px;
}
.profile-action {
  margin-right: auto;
}
.template-link {
  font-size: 13px;
}
.template-source {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 14px;
}
.preview-panel {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.preview-panel[hidden] {
  display: none;
}
.preview-panel h3 {
  margin-bottom: 10px;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 55px 20px !important;
}
.empty .icon {
  width: 32px;
  height: 32px;
}
.footnote {
  font-size: 12px;
  margin-top: 18px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.field {
  margin-bottom: 18px;
}
.field > label,
.field-label {
  display: block;
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 7px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field-grid .field {
  margin-bottom: 0;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  cursor: pointer;
  padding: 7px 0;
}
.class-options {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 14px;
  max-height: 230px;
  overflow-y: auto;
}
.class-options small {
  color: var(--muted);
}
fieldset {
  padding: 0;
  margin: 24px 0 0;
  border: 0;
}
legend {
  font-size: 15px;
  font-weight: 600;
  padding: 0;
  margin-bottom: 15px;
}
.field-section {
  margin: 24px 0 14px;
  font-weight: 600;
}
.input-unit {
  position: relative;
}
.input-unit input {
  padding-right: 60px;
}
.input-unit > span {
  position: absolute;
  right: 13px;
  top: 9px;
  color: var(--muted);
}
.windows-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 12px;
}
.windows-heading > span {
  font-weight: 600;
  font-size: 13px;
}
.window-row {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.window-row .icon-button {
  border: 1px solid var(--line);
}
.window-empty {
  padding: 18px;
  text-align: center;
  border: 1px dashed #d5deeb;
  border-radius: 7px;
  font-size: 13px;
  color: var(--muted);
}
.form-error {
  color: var(--danger);
  font-size: 13px;
  margin: 10px 0;
}
.form-error:empty {
  margin: 0;
}
.form-error:not(:empty) {
  padding: 12px 14px;
  background: #fff1f1;
  border-radius: 6px;
}
.inline-preview {
  background: #f2f6fc;
  border: 1px solid #e1e9f5;
  padding: 14px 16px;
  border-radius: 7px;
}
.inline-preview p {
  margin: 0 0 5px;
}
.inline-preview p:last-child {
  margin: 0;
}
.inline-preview .budget-line {
  font-size: 12px;
  padding: 5px 0;
}
dialog {
  padding: 0;
  width: min(650px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  border: 1px solid #e3e8f1;
  border-radius: 12px;
  color: var(--ink);
  background: white;
  box-shadow: 0 18px 80px #1c2d4a2b;
}
dialog::backdrop {
  background: #1b294647;
  backdrop-filter: blur(3px);
}
dialog form {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 25px 28px 20px;
  border-bottom: 1px solid var(--line);
}
.dialog-heading h2 {
  font-size: 22px;
}
.dialog-heading .eyebrow {
  font-size: 10px;
  margin-bottom: 6px;
}
#form-fields {
  padding: 24px 28px 8px;
  overflow-y: auto;
}
#form-error {
  margin-left: 28px;
  margin-right: 28px;
}
.dialog-actions {
  padding: 17px 28px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  background: #fff;
}
.toast {
  position: fixed;
  z-index: 100;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  background: #18392b;
  color: white;
  border-radius: 8px;
  box-shadow: 0 8px 30px #182a352b;
  padding: 12px 20px;
  font-size: 13px;
  text-align: center;
}
.toast.error {
  background: #7e2828;
}
.personal-main {
  max-width: 960px;
  padding: 52px 40px 64px;
  margin: auto;
}
.personal-main .page-heading {
  margin-bottom: 34px;
}
.personal-main h1 {
  font-size: 36px;
}
.personal-access {
  padding: 27px 30px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.personal-access > .muted {
  margin: 7px 0 22px;
  font-size: 13px;
}
.personal-access .credential-control {
  padding: 10px 12px 10px 18px;
}
.personal-access .credential-control code {
  font-size: 17px;
}
.personal-classes {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.class-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.class-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4d5d79;
}
.class-label + .class-label {
  padding-left: 15px;
  border-left: 1px solid var(--line);
}
.personal-guide {
  padding: 32px 0;
}
.personal-guide .section-heading {
  align-items: flex-start;
  margin-bottom: 20px;
}
.personal-guide .muted {
  font-size: 13px;
  margin: 6px 0 0;
}
.personal-guide .compact code {
  font-size: 14px;
}
.empty-access {
  padding: 42px 28px;
  text-align: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.empty-access > p {
  color: var(--muted);
  max-width: 420px;
  margin: 10px auto 24px;
}
.empty-symbol {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.empty-symbol .icon {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  opacity: 0.5;
}
.login-main {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1120px;
  min-height: calc(100vh - 72px);
  padding: 70px 40px;
  margin: auto;
}
.login-intro h1 {
  font-size: 42px;
  letter-spacing: -1px;
  line-height: 1.4;
}
.login-intro > p:not(.eyebrow) {
  font-size: 15px;
  color: var(--muted);
  margin: 20px 0 34px;
}
.login-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: #54627a;
  font-size: 13px;
}
.login-form {
  padding: 36px 32px;
  border-left: 1px solid #dce3ee;
}
.login-form h2 {
  font-size: 26px;
}
.login-form > .muted {
  margin: 10px 0 30px;
  font-size: 14px;
}
.full-width {
  width: 100%;
  min-height: 48px;
}
.login-form .text-button {
  display: flex;
  width: 100%;
  margin-top: 12px;
}
.login-help {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
}
.login-support {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.login-support a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.status-main {
  max-width: 680px;
  padding: 80px 28px;
  margin: 60px auto;
  text-align: center;
}
.status-main h1 {
  font-size: 30px;
}
.status-main > p:not(.eyebrow) {
  color: var(--muted);
  margin: 18px 0 30px;
}
.status-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.guide-main {
  max-width: 900px;
  margin: auto;
  padding: 42px 32px 80px;
}
.back-link {
  font-size: 13px;
}
.guide-main .page-heading {
  margin-top: 28px;
  margin-bottom: 35px;
}
.guide-step {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 20px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.step-number {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  padding-top: 4px;
}
.guide-step h2 {
  margin-bottom: 14px;
}
.guide-step p,
.guide-step dd {
  color: #5d6980;
}
.code-example {
  margin: 18px 0;
}
.code-example summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 13px;
}
.help-list {
  margin: 0;
}
.help-list dt {
  margin: 15px 0 3px;
  font-weight: 600;
}
.help-list dd {
  margin: 0;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  .admin-main {
    max-width: 1536px;
  }
}
@media (max-width: 1120px) {
  .site-header {
    gap: 20px;
    padding: 0 25px;
  }
  .header-brand {
    gap: 15px;
  }
  .workspace-label {
    display: none;
  }
  .header-divider {
    display: none;
  }
  .main-nav {
    gap: 25px;
  }
  .admin-main {
    padding: 35px 30px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .budget-summary {
    padding: 0;
    border-right: 0;
  }
  .budget-summary > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
  }
  .base-url-inline {
    margin-left: 0;
  }
  .token-detail {
    padding: 23px 25px 0;
  }
  .login-main {
    gap: 30px;
  }
}
@media (max-width: 700px) {
  body {
    font-size: 14px;
  }
  .site-header {
    gap: 12px;
    flex-wrap: wrap;
    padding: 15px 20px 0;
    min-height: 66px;
  }
  .brand {
    font-size: 18px;
    gap: 9px;
  }
  .brand-mark {
    height: 31px;
    width: 31px;
    font-size: 22px;
  }
  .header-actions {
    order: 1;
    margin-bottom: 14px;
  }
  .header-brand {
    margin-bottom: 14px;
  }
  .profile-menu summary {
    min-height: 32px;
    font-size: 12px;
  }
  .profile-menu summary > .icon:first-child {
    display: none;
  }
  .main-nav {
    order: 2;
    flex: 1 0 100%;
    gap: 30px;
    margin: 0;
    min-height: 42px;
  }
  .main-nav a {
    font-size: 13px;
    padding-bottom: 12px;
  }
  .admin-main {
    padding: 27px 18px;
  }
  h1 {
    font-size: 27px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
  }
  .page-heading .description {
    font-size: 13px;
  }
  .page-heading > .primary {
    font-size: 13px;
    min-height: 40px;
    padding: 8px 12px;
  }
  .toolbar {
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 15px;
  }
  .search-wrap {
    width: calc(100% - 48px);
    order: 0;
  }
  .toolbar > .icon-button {
    order: 1;
    margin: 0;
  }
  .currency-note {
    order: 2;
    font-size: 11px;
    padding: 5px 8px;
  }
  .currency-note .icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }
  .record-count {
    order: 3;
    margin-left: auto !important;
    font-size: 11px;
  }
  .record-table th {
    display: none;
  }
  .record-table,
  .record-table tbody {
    display: block;
  }
  .record-table tr.record-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 15px 14px;
    border-top: 1px solid var(--line);
  }
  .record-table tr.record-row:first-child {
    border-top: 0;
  }
  .record-table tr.record-row.selected {
    background: var(--accent-soft);
    box-shadow: inset 3px 0 var(--accent);
  }
  .record-table tr.record-row.selected > td {
    box-shadow: none;
    background: none;
  }
  .record-table tr.record-row > td {
    display: block;
    border: 0;
    padding: 0;
  }
  .record-table tr.record-row > td:first-child {
    grid-column: 1;
  }
  .record-table tr.record-row > td:nth-child(2) {
    grid-column: 1;
    color: var(--muted);
    font-size: 12px;
    margin: 5px 0 0 27px;
  }
  .record-table tr.record-row > td:nth-child(3) {
    grid-column: 1;
    margin: 8px 0 0 27px;
  }
  .record-table tr.record-row > td:last-child {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: center;
    margin-left: 8px;
  }
  .record-table .title {
    font-size: 14px;
  }
  .record-table .small {
    font-size: 11px;
    padding: 5px 8px;
  }
  .record-table .expanded-row,
  .record-table .expanded-row > td {
    display: block;
  }
  .token-detail {
    padding: 18px 15px 0;
  }
  .credential-strip {
    gap: 10px;
  }
  .credential-strip > label {
    flex-basis: 100%;
  }
  .credential-strip .credential-control {
    max-width: none;
  }
  .base-url-inline {
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
    font-size: 11px;
  }
  .base-url-inline code {
    display: block;
    font-size: 11px;
  }
  .detail-grid {
    gap: 22px;
  }
  .budget-summary > div {
    display: block;
  }
  .budget-line {
    font-size: 12px;
  }
  .budget-line strong {
    font-size: 14px;
  }
  .contribution-table thead {
    display: none;
  }
  .contribution-table tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .contribution-table tr:last-child {
    border-bottom: 0;
  }
  .contribution-table td {
    display: block;
    border: 0;
    padding: 2px 0;
  }
  .contribution-table td:nth-child(2)::before {
    content: "模板：";
    color: var(--muted);
  }
  .contribution-table td:nth-child(3)::before {
    content: "总额上限：";
    color: var(--muted);
  }
  .contribution-table td:nth-child(4)::before {
    content: "周期上限：";
    color: var(--muted);
  }
  .detail-actions {
    justify-content: flex-start;
    gap: 8px 14px;
    margin-top: 15px;
  }
  .detail-actions .primary {
    width: 100%;
    order: 5;
    margin-top: 5px;
  }
  .profile-action {
    margin: 0;
  }
  .detail-actions button {
    font-size: 12px;
  }
  dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 24px);
  }
  dialog form {
    max-height: calc(100dvh - 24px);
  }
  .dialog-heading {
    padding: 20px;
  }
  .dialog-heading h2 {
    font-size: 20px;
  }
  #form-fields {
    padding: 20px 20px 8px;
  }
  #form-error {
    margin-left: 20px;
    margin-right: 20px;
  }
  .dialog-actions {
    padding: 14px 20px;
  }
  .field-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .window-row {
    grid-template-columns: 93px minmax(0, 1fr) 34px;
    gap: 7px;
  }
  .window-row .icon-button {
    width: 34px;
  }
  .personal-main {
    padding: 32px 20px 40px;
  }
  .personal-main h1 {
    font-size: 29px;
  }
  .personal-main .page-heading {
    margin-bottom: 26px;
  }
  .personal-access {
    padding: 22px 18px;
  }
  .personal-access .credential-control {
    flex-wrap: wrap;
    padding: 10px;
    gap: 8px;
  }
  .personal-access .credential-control code {
    font-size: 15px;
    flex: 1 1 160px;
  }
  .personal-access .copy-button {
    flex: 1 0 100%;
    margin: 0;
  }
  .personal-classes {
    padding: 25px 0;
  }
  .class-list {
    flex-direction: column;
    gap: 9px;
    margin-top: 15px;
  }
  .class-label + .class-label {
    border: 0;
    padding: 0;
  }
  .personal-guide {
    padding: 26px 0;
  }
  .personal-guide .section-heading {
    flex-wrap: wrap;
    gap: 14px;
  }
  .personal-guide .section-heading .button {
    min-height: 36px;
    font-size: 12px;
  }
  .login-main {
    display: flex;
    flex-direction: column;
    gap: 35px;
    min-height: 0;
    padding: 40px 25px 50px;
    align-items: stretch;
  }
  .login-intro h1 {
    font-size: 32px;
  }
  .login-intro > p:not(.eyebrow) {
    margin: 15px 0 0;
    font-size: 13px;
  }
  .login-feature,
  .desktop-only {
    display: none;
  }
  .login-form {
    padding: 27px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .login-form h2 {
    font-size: 23px;
  }
  .login-form > .muted {
    margin-bottom: 24px;
  }
  .status-main {
    margin-top: 10px;
    padding: 50px 24px;
  }
  .status-main h1 {
    font-size: 26px;
  }
  .guide-main {
    padding: 28px 20px 45px;
  }
  .guide-step {
    gap: 12px;
    grid-template-columns: 27px minmax(0, 1fr);
    padding: 24px 0;
  }
  .guide-step p,
  .guide-step dd {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 1121px) {
  body {
    font-size: 15px;
  }
  .site-header {
    min-height: 64px;
  }
  .brand {
    font-size: 23px;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
  }
  .main-nav {
    font-size: 16px;
  }
  .workspace-label,
  .profile-menu summary {
    font-size: 15px;
  }
  .admin-main {
    max-width: 1600px;
    padding-top: 40px;
  }
  .admin-main h1 {
    font-size: 40px;
  }
  .admin-main .description {
    font-size: 16px;
    margin-top: 8px;
  }
  .toolbar {
    margin: 28px 0 30px;
  }
  .search-wrap {
    width: min(520px, 45%);
  }
  .currency-note {
    font-size: 14px;
  }
  .record-table th {
    font-size: 15px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .record-table td {
    font-size: 15px;
  }
  .record-table .title {
    font-size: 17px;
  }
  .record-table small {
    font-size: 13px;
  }
  .record-table .small {
    font-size: 14px;
    min-height: 36px;
  }
  body[data-section="tokens"] .record-table > thead > tr > th:first-child {
    width: 30%;
  }
  body[data-section="tokens"] .record-table > thead > tr > th:last-child {
    width: 22.5%;
  }
  .badge {
    font-size: 13px;
  }
  .token-detail {
    padding-top: 18px;
  }
  .credential-strip {
    gap: 20px;
  }
  .credential-strip > label {
    font-size: 15px;
  }
  .credential-strip .credential-control {
    max-width: 360px;
    padding: 4px 8px 4px 14px;
  }
  .credential-strip .icon-button {
    min-height: 30px;
    width: 32px;
    padding: 5px;
  }
  .base-url-inline {
    margin-left: 18px;
    padding-left: 22px;
    border-left: 1px solid var(--line);
    font-size: 14px;
  }
  .sync-status {
    margin-top: 12px;
    margin-bottom: 20px;
  }
  .detail-grid {
    grid-template-columns: minmax(280px, 1fr) minmax(0, 1.5fr);
  }
  .detail-grid h3 {
    font-size: 17px;
  }
  .budget-line {
    font-size: 15px;
    padding: 8px 10px;
    gap: 10px;
  }
  .budget-line strong {
    font-size: 16px;
  }
  .budget-line > .budget-label {
    flex: 1;
    color: #566179;
  }
  .budget-summary .budget-line:first-child {
    padding: 9px 10px;
    background: var(--accent-soft);
    border: 0;
    border-radius: 6px;
    margin-bottom: 5px;
  }
  .contribution-table th {
    font-size: 13px;
    padding: 9px 11px;
  }
  .contribution-table td {
    font-size: 13px;
    padding: 11px;
  }
  .detail-actions {
    margin-top: 18px;
  }
}
.budget-line > .budget-label {
  flex: 1;
}
.inline-preview .budget-line .icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}
