:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  --canvas: #f5f7fc;
  --surface: #fff;
  --surface-muted: #f7f9fd;
  --rail: #f2f5fc;
  --ink: #15233c;
  --muted: #52637d;
  --line: #e2e8f2;
  --line-strong: #cbd7eb;
  --brand: #2956db;
  --brand-strong: #1e44bf;
  --brand-text: #234dc4;
  --brand-soft: #eaf0ff;
  --focus: #5784ff;
  --checkbox-border: #788ba6;
  --panel-shadow: 0 2px 5px #1b367509;
  --pop-shadow: 0 16px 60px #1425472a;
  --radius-panel: 16px;
  --radius-control: 9px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #101928;
  --surface: #182437;
  --surface-muted: #1d2b41;
  --rail: #131f32;
  --ink: #ecf2ff;
  --muted: #adbed8;
  --line: #2d3e59;
  --line-strong: #4a6286;
  --brand: #3b64e2;
  --brand-strong: #4b72eb;
  --brand-text: #b4c8ff;
  --brand-soft: #263b6a;
  --focus: #9db8ff;
  --checkbox-border: #8194b5;
  --panel-shadow: 0 2px 5px #0002;
  --pop-shadow: 0 16px 60px #0005;
}
*, *::before, *::after { box-sizing: border-box; }
body { min-width: 0; margin: 0; color: var(--ink); background: var(--canvas); line-height: 1.45; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
svg { width: 17px; height: 17px; stroke-width: 1.75; flex: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }

.shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: 100vh; }
.rail {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 22px 13px 14px;
  background: var(--rail);
  border-right: 1px solid var(--line);
}
.brand, .rail-footer { display: flex; align-items: center; gap: 11px; padding: 0 9px; }
.brand-mark, .avatar { display: grid; place-items: center; flex: none; width: 39px; height: 39px; border-radius: 12px; background: var(--brand); color: #fff; box-shadow: 0 5px 10px #2956db2e; }
.brand-mark svg { width: 21px; height: 21px; }
.brand strong { display: block; font-size: 19px; letter-spacing: .06em; }
.brand small, .rail-footer small { display: block; color: var(--muted); font-size: 11px; }
.nav-links { display: grid; gap: 4px; margin-top: 32px; }
.nav-links p { margin: 12px 10px 4px; color: var(--muted); font-size: 11px; font-weight: 650; }
.nav-links a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 10px; border: 1px solid transparent; border-radius: 9px; color: var(--muted); }
.nav-links a:hover { background: var(--surface); color: var(--ink); }
.nav-links a[aria-current="page"] { border-color: var(--line-strong); background: var(--surface); color: var(--brand-text); box-shadow: var(--panel-shadow); font-weight: 700; }
.rail-footer { margin-top: auto; border-top: 1px solid var(--line); padding-top: 15px; }
.rail-footer strong { display: block; font-size: 13px; }
.avatar { width: 35px; height: 35px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); box-shadow: none; }
.workspace { min-width: 0; }
.topbar { height: 65px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 34px; border-bottom: 1px solid var(--line); background: var(--surface); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.breadcrumb strong { color: var(--ink); }
.crumb-divider { width: 13px; height: 13px; }
.mobile-menu { display: none !important; }
main { width: min(100%, 1480px); margin: 0 auto; padding: 32px 34px 44px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 24px; }
.page-heading h1 { font-size: clamp(27px, 3vw, 39px); font-weight: 760; line-height: 1.18; letter-spacing: -.025em; }
.page-heading p { margin-top: 8px; color: var(--muted); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: none;
  min-height: 38px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-control);
  background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 650; white-space: nowrap;
  box-shadow: 0 1px 2px #162f5e0b; transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.button:hover:not(:disabled) { background: var(--surface-muted); border-color: var(--focus); }
.button:active:not(:disabled) { box-shadow: inset 0 1px 3px #172d551c; }
.button:disabled { opacity: .44; box-shadow: none; }
.button--primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 3px 6px #294fd32b; }
.button--primary:hover:not(:disabled) { background: var(--brand-strong); border-color: var(--brand-strong); }
.page-heading > .button { min-height: 43px; padding-inline: 15px; }
.button--icon { width: 36px; height: 36px; min-height: 36px; padding: 0; }
.button--ghost { border-color: transparent; background: transparent; box-shadow: none; }
.button--chip { min-height: 29px; padding-block: 3px; background: var(--brand-soft); color: var(--brand-text); border-color: transparent; box-shadow: none; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 23px; }
.metric, .panel, .listing { border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--surface); box-shadow: var(--panel-shadow); }
.metric { min-width: 0; padding: 13px 16px; text-align: left; transition: border-color .15s, box-shadow .15s; }
.metric:hover { border-color: var(--focus); box-shadow: 0 3px 12px #2956db21; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.metric-title { color: var(--muted); font-size: 13px; font-weight: 650; }
.metric-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--brand-text); background: var(--brand-soft); }
.metric strong { display: block; margin-top: 4px; font-size: 33px; letter-spacing: -.06em; line-height: 1.12; font-variant-numeric: tabular-nums; }
.metric strong small { color: var(--muted); font-size: 12px; margin-left: 7px; letter-spacing: 0; font-weight: 500; }
.metric-note { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.metric--total { color: #fff; border-color: #365ad8; background: radial-gradient(ellipse at 93% 16%, #5679f2 0, transparent 66%), #264dc8; }
.metric--total :is(.metric-title,.metric-note,strong small) { color: #eaf0ff; }
.metric--total .metric-icon { color: #fff; background: #ffffff29; }
.metric--attention .metric-icon { color: #a5451a; background: #fff0e6; }
.metric--done .metric-icon { color: #14714d; background: #e8f7ee; }

.listing-header { padding: 17px 18px 13px; display: flex; align-items: center; justify-content: space-between; gap: 13px; }
.listing-title, .toolbar { display: flex; align-items: center; gap: 9px; }
.listing-title h2, .panel-heading h2 { font-size: 17px; }
.count { padding: 3px 8px; border-radius: 100px; background: var(--surface-muted); color: var(--muted); font-size: 12px; white-space: nowrap; }
.search-input { display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--surface-muted); color: var(--muted); }
.search-input:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.search-input input { width: min(22vw, 238px); min-width: 0; height: 36px; border: 0; padding: 0; background: transparent; outline: none; }
.search-input input::placeholder { color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 18px 12px; }
.tabs button { min-height: 32px; padding: 4px 11px; background: transparent; border: 1px solid transparent; border-radius: 7px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.tabs button:hover { background: var(--surface-muted); }
.tabs button[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand-text); font-weight: 700; }
.active-filters { padding: 0 18px 10px; }
.batch { padding: 8px 18px; display: flex; gap: 9px; align-items: center; justify-content: space-between; background: var(--brand-soft); color: var(--brand-text); }
.batch > div, .pagination > div { display: flex; gap: 5px; }

.order-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.order-table :is(th, td) { padding: 12px clamp(6px, 1vw, 15px); border-bottom: 1px solid var(--line); }
.order-table th { text-align: left; background: var(--surface-muted); color: var(--muted); font-size: 12px; font-weight: 620; border-top: 1px solid var(--line); }
.order-table tbody tr:hover { background: var(--surface-muted); }
.order-table td:first-child, .order-table th:first-child { width: 38px; }
.order-table td:last-child { width: 43px; }
.order-table td small { display: block; color: var(--muted); margin-top: 3px; font-size: 11px; }
.row-course { min-width: 125px; }
.course-link { display: block; text-align: left; border: 0; padding: 0; background: transparent; color: var(--ink); font-weight: 720; }
.course-link:hover { color: var(--brand-text); }
.row-account strong { font-weight: 620; }
.project { color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 100px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.status > span { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.status--queued { color: #73551e; background: #f8efdb; }
.status--active { color: var(--brand-text); background: var(--brand-soft); }
.status--error { color: #a22d45; background: #fce9ee; }
.status--done { color: #186948; background: #e5f6ed; }
.progress { display: flex; min-width: 86px; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
progress { width: 100%; min-width: 34px; height: 5px; border: 0; appearance: none; }
progress::-webkit-progress-bar { border-radius: 9px; background: var(--line); }
progress::-webkit-progress-value { border-radius: 9px; background: var(--brand); }
progress::-moz-progress-bar { border-radius: 9px; background: var(--brand); }
.row-points, .row-time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-time { color: var(--muted); }
.row-open .button { width: 30px; height: 30px; min-height: 30px; color: var(--brand-text); }
.sort-button { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; color: inherit; white-space: nowrap; }
.sort-button svg { width: 13px; height: 13px; }
/* Keep the native input available to labels, keyboard and assistive technology. */
.checkbox-control {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 30px;
  min-height: 30px;
  vertical-align: middle;
}
.checkbox-control > input {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.checkbox-control > input:disabled { cursor: not-allowed; }
.checkbox-mark {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--checkbox-border);
  border-radius: 5px;
  background: var(--surface);
  box-shadow: 0 1px 2px #152b5015;
  color: #fff;
  pointer-events: none;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.checkbox-mark::before {
  display: none;
  width: 9px;
  height: 5px;
  margin-top: -2px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg);
  content: "";
}
.checkbox-mark::after {
  display: none;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}
.checkbox-control > input:hover:not(:disabled) + .checkbox-mark {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.checkbox-control > input:focus-visible + .checkbox-mark {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.checkbox-control > input:is(:checked, :indeterminate) + .checkbox-mark {
  border-color: var(--brand);
  background: var(--brand);
}
.checkbox-control > input:checked:not(:indeterminate) + .checkbox-mark::before,
.checkbox-control > input:indeterminate + .checkbox-mark::after { display: block; }
.checkbox-control > input:disabled + .checkbox-mark { opacity: .5; }
@media (max-width: 690px) {
  .checkbox-control > input { inset: 50% auto auto 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
}
@media (forced-colors: active) {
  .checkbox-mark { forced-color-adjust: none; border-color: ButtonText; background: ButtonFace; color: HighlightText; }
  .checkbox-control > input:is(:checked, :indeterminate) + .checkbox-mark { border-color: Highlight; background: Highlight; }
  .checkbox-control > input:focus-visible + .checkbox-mark { outline-color: Highlight; }
  .checkbox-control > input:disabled + .checkbox-mark { border-color: GrayText; }
}
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 11px 18px; color: var(--muted); font-size: 12px; }
.pagination .button { min-height: 32px; }
.dense .order-table td { padding-block: 7px; }
.empty { text-align: center; display: grid; justify-items: center; gap: 8px; padding: 36px 12px; border-top: 1px solid var(--line); }
.empty-icon { display: grid; place-items: center; width: 43px; height: 43px; color: var(--brand-text); background: var(--brand-soft); border-radius: 12px; }
.empty p { margin-bottom: 5px; color: var(--muted); }

.drawer { position: fixed; inset: 0 0 0 auto; width: min(100%, 440px); height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--pop-shadow); }
.drawer::backdrop { background: #0e1c3c66; }
#drawer-content { height: 100%; display: flex; flex-direction: column; }
.drawer-heading, .drawer-footer { padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
.drawer-heading h2 { font-size: 18px; }
.drawer-footer { justify-content: flex-end; border-bottom: 0; border-top: 1px solid var(--line); }
.drawer-body { flex: 1; padding: 20px; overflow-y: auto; }
.detail-lead { padding: 17px; display: grid; gap: 7px; justify-items: start; border-radius: 13px; background: var(--surface-muted); }
.detail-lead > span:first-child { color: var(--muted); font-size: 12px; }
.detail-lead h3 { font-size: 20px; }
.detail-list { display: grid; margin: 16px 0; }
.detail-list div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.detail-progress { display: grid; gap: 8px; }

.form-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(190px, 1fr); align-items: start; gap: 16px; max-width: 1020px; }
.panel-heading { padding: 16px 19px; border-bottom: 1px solid var(--line); }
.panel-heading p, .guide { color: var(--muted); }
.panel-body { padding: 19px; }
.form-stack { display: grid; justify-items: start; gap: 16px; }
.field { width: 100%; display: grid; gap: 6px; }
.field > span { font-weight: 650; }
.field small, .setting-toggle small { display: block; color: var(--muted); font-size: 12px; }
.field :is(input, select) { width: 100%; min-height: 41px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--surface); }
.field input::placeholder { color: var(--muted); }
.guide { display: grid; gap: 10px; }
.setting-toggle { width: 100%; display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.toast { position: fixed; z-index: 3; right: 18px; bottom: 18px; padding: 12px 16px; border-radius: 10px; background: var(--ink); color: var(--surface); box-shadow: var(--pop-shadow); }

@media (max-width: 1120px) {
  .shell { grid-template-columns: 175px minmax(0, 1fr); }
  .topbar, main { padding-inline: 22px; }
  .order-table :is(td,th) { padding-inline: 7px; }
}
@media (max-width: 900px) {
  .shell { display: block; }
  .rail { position: fixed; z-index: 2; inset: 0 auto 0 0; width: 216px; display: none; box-shadow: var(--pop-shadow); }
  .nav-open .rail { display: flex; }
  .close-nav { position: absolute; top: 19px; right: 13px; }
  .mobile-menu { display: inline-flex !important; }
}
@media (max-width: 690px) {
  .topbar { height: 56px; padding: 0 13px; }
  main { padding: 20px 13px 30px; }
  .crumb-parent, .crumb-divider { display: none; }
  .page-heading { align-items: center; gap: 10px; margin-bottom: 16px; }
  .page-heading h1 { font-size: 25px; }
  .page-heading p { font-size: 12px; }
  .button, .button--icon { min-height: 44px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-bottom: 16px; }
  .metric { padding: 10px 11px; }
  .metric-icon { width: 28px; height: 28px; }
  .metric strong { font-size: 25px; }
  .metric-note { margin-top: 5px; font-size: 11px; }
  .listing-header { flex-wrap: wrap; padding: 12px; }
  .toolbar { width: 100%; }
  .search-input { flex: 1; min-width: 0; }
  .search-input input { width: 100%; height: 42px; }
  .tabs, .active-filters { padding-inline: 9px; }
  .tabs button { min-height: 40px; padding: 4px 7px; font-size: 12px; }
  .order-table, .order-table tbody { display: block; }
  .order-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .order-table tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 9px; row-gap: 9px; padding: 12px; border-top: 1px solid var(--line); }
  .order-table :is(td, th), .dense .order-table td { width: auto; padding: 0; border: 0; }
  .order-table :is(td:first-child, td:last-child) { width: auto; }
  .row-course { min-width: 0; overflow-wrap: anywhere; }
  .row-account { grid-column: 2; }
  .row-state { grid-row: 1; grid-column: 3; }
  .row-project { grid-column: 3; }
  .row-progress { grid-column: 2; grid-row: 3; }
  .row-time { grid-column: 2; }
  .row-points { grid-column: 3; grid-row: 3; }
  .row-points small { display: inline !important; margin-left: 4px; }
  .row-open { grid-column: 3; grid-row: 4; justify-self: end; }
  .row-open .button { min-height: 36px; }
  .batch { flex-wrap: wrap; padding-inline: 12px; }
  .pagination { padding-inline: 12px; border-top: 1px solid var(--line); }
  .pagination .button { min-height: 44px; }
  .form-layout { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

.order-entry { display: grid; grid-template-columns: minmax(285px, 340px) minmax(0, 1fr); align-items: start; gap: 17px; }
.order-entry-flow { min-width: 0; display: grid; gap: 15px; }
.order-entry-flow > div:empty { display: none; }
.project-browser { display: grid; gap: 12px; padding: 14px; }
.project-browser .search-input > input { width: 100%; }
.project-tabs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-muted); }
.project-tabs button { min-height: 34px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; white-space: nowrap; }
.project-tabs button[aria-pressed="true"] { border-color: var(--line); background: var(--surface); color: var(--brand-text); font-weight: 700; box-shadow: var(--panel-shadow); }
.project-sort { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.project-sort label { flex: none; }
.project-sort select { min-width: 0; margin-left: auto; max-width: 60%; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.project-count, .project-empty { margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.project-empty { padding: 12px 2px; }
.project-options { display: grid; gap: 7px; max-height: 544px; overflow-y: auto; margin: 0; padding: 2px; list-style: none; }
.project-option { display: flex; min-width: 0; align-items: center; gap: 3px; padding-right: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.project-option:hover { border-color: var(--line-strong); background: var(--surface-muted); }
.project-option.current { border-color: var(--focus); background: var(--brand-soft); }
.project-pick { display: grid; grid-template-columns: auto minmax(0,1fr) auto; flex: 1; min-width: 0; align-items: center; gap: 7px; padding: 9px 4px 9px 8px; border: 0; border-radius: inherit; background: transparent; text-align: left; }
.project-mark { display: grid; width: 32px; height: 32px; place-items: center; flex: none; border-radius: 9px; background: var(--brand-soft); color: var(--brand-text); font-weight: 750; }
.project-name strong { display: block; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.project-name small, .project-price small { display: block; color: var(--muted); font-size: 10px; }
.project-price { color: var(--brand-text); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.project-star { width: 32px; height: 34px; min-height: 34px; color: var(--muted); }
.project-star[aria-pressed="true"] { color: #9f5b08; }
:root[data-theme="dark"] .project-star[aria-pressed="true"] { color: #ffd083; }
.project-star[aria-pressed="true"] svg { fill: currentColor; }
.current-project { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 13px 16px 8px; }
.current-project-title { display: flex; align-items: center; gap: 9px; }
.current-project-title small, .current-project > strong small { color: var(--muted); font-size: 11px; }
.current-project-title h2 { font-size: 16px; }
.current-project > strong { color: var(--brand-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.project-guide { grid-column: 1/-1; border-top: 1px solid var(--line); }
.project-guide summary { display: flex; align-items: center; gap: 8px; padding: 8px 0; cursor: pointer; color: var(--brand-text); font-size: 12px; font-weight: 650; list-style: none; }
.project-guide summary::-webkit-details-marker, .account-result summary::-webkit-details-marker { display: none; }
.project-guide summary svg:last-child, .account-result summary svg:last-child { margin-left: auto; }
.project-guide[open] summary svg:last-child, .account-result[open] summary svg:last-child { transform: rotate(180deg); }
.project-guide p { padding-bottom: 9px; color: var(--muted); line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.order-query-form { display: grid; gap: 13px; }
.order-query-form > div:empty { display: none; }
.field textarea { min-height: 112px; resize: vertical; width: 100%; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--surface-muted); color: var(--ink); font: inherit; line-height: 1.6; }
.field textarea::placeholder { color: var(--muted); }
.account-options, .remark-toggles { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.account-options label, .remark-toggles label, .results-heading > label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.account-options .button { min-height: 32px; padding: 4px 9px; font-size: 12px; }
.order-hint { font-size: 12px; line-height: 1.6; color: var(--muted); }
.order-hint.is-error, .order-message.is-error { color: #a22d45; }
:root[data-theme="dark"] :is(.order-hint,.order-message).is-error { color: #ffadbd; }
.order-message { padding: 8px 10px; background: var(--surface-muted); border-radius: 8px; }
.remark-box { display: grid; min-width: 0; gap: 8px; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.remark-box legend { padding-inline: 5px; font-weight: 650; }
.remark-box legend span { padding-left: 5px; color: var(--muted); font-size: 11px; font-weight: 500; }
.remark-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 8px; }
.remark-toggles:empty { display: none; }
.query-controls { display: flex; align-items: start; gap: 10px; }
.query-controls > .button { margin-top: 26px; min-height: 41px; }
.results-heading { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.account-results { display: grid; gap: 9px; padding: 12px; }
.account-result { min-width: 0; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.account-result summary { display: flex; align-items: center; gap: 9px; padding: 9px 11px; background: var(--surface-muted); cursor: pointer; list-style: none; }
.account-result-title small { display: block; color: var(--muted); }
.course-choices { display: grid; gap: 5px; padding: 9px; }
.course-option { display: flex; gap: 8px; align-items: center; min-height: 42px; padding: 6px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; }
.course-option:has(input:checked) { border-color: var(--line); background: var(--brand-soft); }
.course-option small { display: block; color: var(--muted); font-size: 10px; }
.sync-button { justify-self: start; margin-top: 5px; }
.order-confirm { position: sticky; bottom: 9px; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 13px; margin-top: 9px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); box-shadow: var(--pop-shadow); }
.order-confirm > div > span { display: block; color: var(--muted); font-size: 12px; }
.order-confirm b { color: var(--brand-text); }
.review-courses { display: grid; gap: 5px; padding: 0; list-style: none; }
.review-courses li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--surface-muted); }
.review-courses span { color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 740px) {
  .order-entry { grid-template-columns: 1fr; }
  .project-options { max-height: 202px; }
  .project-star, .project-tabs button, .account-options .button { min-height: 44px; }
  .query-controls { flex-wrap: wrap; }
  .query-controls > .button { margin-top: 0; }
  .order-confirm { bottom: max(6px, env(safe-area-inset-bottom)); }
}

.order-filter-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.order-filter-tags .button--ghost { min-height: 29px; padding-block: 3px; }
.order-pagination { gap: 8px; }
.order-pagination > div, .batch > div { flex-wrap: wrap; }
.orders-toolbar .search-input { min-width: 0; }
.orders-toolbar .search-input input { min-width: 0; }
.order-table .failed-processing { color: #a23248; }
:root[data-theme="dark"] .order-table .failed-processing { color: #ffc2c7; }
.order-detail-actions { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); }
.order-detail-actions h3 { font-size: 14px; margin: 0 0 8px; }
.order-password-line, .order-drawer-actions, .order-logs li > div { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.order-password-line { padding-block: 4px 8px; }
.order-password-line code { overflow-wrap: anywhere; color: var(--muted); }
.order-drawer-form { display: grid; justify-items: start; gap: 12px; width: 100%; }
.order-drawer-form + .order-drawer-form { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.order-drawer-form:has(+ .order-drawer-form) { margin-top: 10px; }
.order-drawer-form .field { max-width: 100%; }
.button--danger { color: #a23248; border-color: #e9abb7; }
.button--danger:hover:not(:disabled) { color: #981d36; border-color: #d98495; background: #fae8eb; }
:root[data-theme="dark"] .button--danger { color: #ffbac7; border-color: #a25969; }
.order-logs { display: grid; gap: 8px; padding: 0; list-style: none; }
.order-logs li { padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface-muted); }
.order-logs li > div { justify-content: space-between; }
.order-logs :is(span,small) { color: var(--muted); font-size: 12px; }
@media (max-width: 690px) {
  .order-pagination { flex-wrap: wrap; }
  .order-pagination > div { margin-left: auto; }
  .orders-toolbar .button--icon { width: 44px; }
}

.dropdown-control {
  position: relative;
  display: block;
  min-width: 0;
}
.dropdown-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 41px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.dropdown-trigger:is(:hover, [aria-expanded="true"]) { border-color: var(--focus); }
.dropdown-trigger[aria-expanded="true"] { background: var(--surface-muted); }
.dropdown-trigger[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.dropdown-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-chevron {
  flex: none;
  width: 7px;
  height: 7px;
  margin-right: 3px;
  margin-top: -3px;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg);
}
.dropdown-trigger[aria-expanded="true"] .dropdown-chevron { transform: rotate(225deg); margin-top: 3px; }
.dropdown-popover {
  position: fixed;
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--pop-shadow);
}
.dropdown-list {
  position: relative;
  overflow: auto;
  display: grid;
  gap: 2px;
  min-height: 0;
  outline: none;
  overscroll-behavior: contain;
}
.dropdown-search {
  width: 100%;
  min-height: 36px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-muted);
  color: var(--ink);
}
.dropdown-search:focus-visible { outline-offset: 0; }
.dropdown-option {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 30px 6px 9px;
  border-radius: 7px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.dropdown-option:is(:hover, .is-pointed) { background: var(--surface-muted); }
.dropdown-option[aria-selected="true"] { background: var(--brand-soft); color: var(--brand-text); font-weight: 650; }
.dropdown-option[aria-selected="true"]::after {
  position: absolute;
  right: 11px;
  width: 9px;
  height: 5px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  content: "";
}
.dropdown-empty { padding: 10px 8px; color: var(--muted); font-size: 12px; }
.project-sort .dropdown-control { margin-left: auto; max-width: 65%; }
.project-sort .dropdown-trigger { min-height: 34px; padding: 4px 8px; }
@media (max-width: 690px) {
  .dropdown-trigger, .dropdown-option, .project-sort .dropdown-trigger { min-height: 44px; }
}

.ticket-listing .listing-title { min-width: 0; }
.ticket-toolbar .search-input input { width: min(26vw, 270px); }
.tickets-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: 12px; padding: 15px 17px 17px; border-top: 1px solid var(--line); background: var(--surface-muted); border-radius: 0 0 var(--radius-panel) var(--radius-panel); }
.ticket-summary { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 13px 14px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--panel-shadow); }
.ticket-summary-head, .ticket-summary footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 8px; align-items: center; color: var(--muted); font-size: 12px; }
.ticket-summary h3 { font-size: 15px; overflow-wrap: anywhere; }
.ticket-context { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 7px; }
.ticket-context:empty { display: none; }
.ticket-context span { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 11px; }
.ticket-context svg { width: 13px; height: 13px; }
.ticket-snippet { flex: 1; padding: 9px; border-radius: 8px; background: var(--surface-muted); font-size: 12px; }
.ticket-snippet strong { display: block; margin-bottom: 3px; color: var(--muted); }
.ticket-snippet p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ticket-open { color: var(--brand-text); }
.ticket-order-context { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 9px 11px; margin-block: 13px; border: 1px solid var(--line); border-radius: 9px; }
.ticket-order-context > div { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.ticket-order-context :is(small,div > span:not(.status)) { color: var(--muted); }
.ticket-timeline { display: grid; gap: 11px; padding: 1px 0; margin: 12px 0; list-style: none; }
.ticket-timeline li { position: relative; display: grid; grid-template-columns: 29px minmax(0,1fr); gap: 8px; }
.ticket-timeline li:not(:last-child)::after { position: absolute; left: 14px; top: 33px; bottom: -8px; border-left: 1px solid var(--line); content: ""; }
.ticket-event-icon { display: grid; place-items: center; align-self: start; width: 29px; height: 29px; border-radius: 9px; background: var(--surface-muted); color: var(--muted); }
.ticket-reply .ticket-event-icon { background: var(--brand-soft); color: var(--brand-text); }
.ticket-event-content { padding: 8px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.ticket-event-content > div { display: flex; align-items: baseline; justify-content: space-between; gap: 3px 8px; flex-wrap: wrap; }
.ticket-event-content time { color: var(--muted); font-size: 11px; }
.ticket-event-content p { margin-top: 5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ticket-detail-footer { width: 100%; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.ticket-closed { color: var(--muted); font-size: 12px; }
@media (max-width: 690px) {
  .ticket-toolbar .search-input input { width: 100%; }
  .tickets-cards { padding: 11px; gap: 9px; }
}

.ticket-page-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.ticket-page-actions .button { min-height: 43px; }
.ticket-page-actions .count { border-radius: 6px; padding: 2px 5px; }
.notify-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-muted); padding: 10px; }
.notify-summary > div { flex: 1 1 135px; }
.notify-summary p { font-size: 12px; color: var(--muted); }
.notify-icon, .notify-step-icon { display: grid; place-items: center; flex: none; width: 35px; height: 35px; border-radius: 9px; color: var(--brand-text); background: var(--brand-soft); }
.notify-preview-note, .notify-binding-form, .notify-binding-actions { margin-top: 14px; }
.notify-links { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.notify-binding-actions > div:first-child { display: grid; gap: 3px; margin-bottom: 8px; }
.notify-binding-actions small { color: var(--muted); }
.notify-guide { display: grid; gap: 9px; padding: 0; margin: 0; list-style: none; }
.notify-guide li { display: flex; align-items: flex-start; gap: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; }
.notify-guide h3, .notify-guide-faq h3 { font-size: 14px; }
.notify-guide p, .notify-guide-faq details p { color: var(--muted); margin-top: 4px; font-size: 13px; }
.notify-guide .button { margin-top: 7px; }
.notify-guide-faq { display: grid; gap: 8px; margin-top: 17px; }
.notify-guide-faq summary { cursor: pointer; }
@media (max-width: 690px) {
  .page-heading:has(.ticket-page-actions) { flex-wrap: wrap; }
}

.records-mode { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 9px; padding: 10px 13px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface-muted); }
.records-mode strong { display: block; color: var(--brand-text); }
.records-mode span { color: var(--muted); font-size: 12px; }
.records-mode > div:last-child { display: flex; flex-wrap: wrap; gap: 5px; }
.records-mode .button span { color: var(--ink); }
.order-table--readonly :is(th,td):first-child { width: auto; }
@media (max-width: 690px) {
  .order-table--readonly tr { grid-template-columns: minmax(0,1fr) auto; }
  .order-table--readonly :is(.row-course,.row-account,.row-progress,.row-time) { grid-column: 1; }
  .order-table--readonly :is(.row-state,.row-project,.row-points,.row-open) { grid-column: 2; }
}

.nav-links { min-height: 0; overflow-y: auto; padding-bottom: 6px; }
.rail-footer { flex: none; }
.admin-nav { margin-top: 5px; }
:is(.admin-nav,.activity-nav) summary { display: flex; min-height: 42px; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--muted); list-style: none; cursor: pointer; }
:is(.admin-nav,.activity-nav) summary::-webkit-details-marker { display: none; }
:is(.admin-nav,.activity-nav) summary:hover { color: var(--ink); background: var(--surface); }
:is(.admin-nav,.activity-nav) summary svg:last-child { width: 13px; margin-left: auto; }
:is(.admin-nav,.activity-nav)[open] summary svg:last-child { transform: rotate(180deg); }
:is(.admin-nav,.activity-nav) > div { display: grid; gap: 3px; margin: 3px 0 0 17px; padding-left: 5px; border-left: 1px solid var(--line-strong); }
:is(.admin-nav,.activity-nav) a { min-height: 34px; }
.management-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.management-settings { display: grid; grid-template-columns: minmax(150px, 205px) minmax(0,1fr); align-items: start; gap: 14px; }
.management-tabs { display: grid; padding: 8px; gap: 4px; }
.management-tabs button { min-height: 38px; border: 1px solid transparent; border-radius: 7px; text-align: left; background: transparent; padding: 5px 9px; color: var(--muted); }
.management-tabs button[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand-text); font-weight: 700; }
.management-form { display: grid; gap: 13px; }
.management-field-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,180px),1fr)); gap: 12px; align-items: start; }
.management-field-grid > :has(textarea) { grid-column: 1/-1; }
.management-flag { min-height: 50px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 9px; }
.management-table-scroll { max-width: 100%; overflow: auto; }
.management-table { min-width: 570px; }
.management-table td { overflow-wrap: anywhere; }
.management-table .button { padding-inline: 6px; }
.management-table td:first-child, .management-table th:first-child { width: auto; }
.management-table :is(td,th):last-child { width: 112px; }
.management-table .management-actions { flex-wrap: nowrap; }
.management-list-filters { display: flex; gap: 9px; padding: 0 18px 12px; }
.management-list-filters .field { width: min(100%,165px); }
.management-stat-lines { display: grid; gap: 6px; }
.management-stat-lines > div { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.profile-card { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; margin-bottom: 16px; padding: 18px; }
.profile-card .avatar { width: 42px; height: 42px; }
.profile-card small, .profile-card p { color: var(--muted); }
.profile-card strong { display: block; }
.profile-panels { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: 14px; align-items: start; }
.profile-body { display: grid; gap: 11px; justify-items: start; }
.profile-body p { white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-body .management-stat-lines { width: 100%; }
@media(max-width:690px) {
  .management-settings { grid-template-columns: 1fr; }
  .management-tabs { grid-template-columns: repeat(auto-fit,minmax(84px,1fr)); }
  .management-tabs button { text-align: center; min-height: 44px; }
  .management-toolbar { width: 100%; flex-wrap: wrap; }
  .management-toolbar .search-input input { width: 100%; }
  .management-table { display: table; min-width: 530px; }
  .management-table thead { display: table-header-group; position: static; width: auto; height: auto; clip-path: none; overflow: visible; }
  .management-table tbody { display: table-row-group; }
  .management-table tr { display: table-row; }
  .management-table :is(td,th) { padding: 7px 9px; border-bottom: 1px solid var(--line); }
}

.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
:is(.site-view,.records-view) :is(.admin-nav,.service-nav-label) { display: none; }
.records-view .account-nav-label { display: none; }
.site-order-note { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; margin-bottom: 15px; color: var(--muted); }
.site-order-note a { color: var(--brand-text); text-decoration: underline; }
.site-order-note[aria-busy="true"]::after { content: "正在加载订单…"; }

.login-view .shell { display: block; }
.login-view :is(.rail,.breadcrumb) { display: none; }
.login-view .topbar { background: transparent; border-color: transparent; }
.login-view .workspace { min-height: 100dvh; background: radial-gradient(ellipse at 50% 14%, var(--brand-soft), transparent 62%); }
.login-view main { padding-top: clamp(26px, 7vh, 76px); }
.login-layout { display: grid; gap: 20px; width: min(100%, 430px); margin-inline: auto; }
.login-brand { display: flex; align-items: center; justify-content: center; gap: 11px; color: var(--ink); }
.login-panel { display: grid; gap: 12px; padding: clamp(20px, 6vw, 36px); box-shadow: var(--pop-shadow); }
.login-panel h1 { font-size: clamp(28px, 5vw, 36px); letter-spacing: -.035em; }
.login-panel > p { margin-bottom: 4px; color: var(--muted); }
.login-panel .button { width: 100%; }
.login-error { color: #b42334; }
:root[data-theme="dark"] .login-error { color: #ff9da5; }
.login-error:empty { display: none; }
.service-guide-list { display: grid; justify-items: start; gap: 12px; padding: 16px; }
.service-guide-list > * { max-width: 100%; }
.service-guide-list :is(.account-result,.management-table-scroll,.detail-list) { width: 100%; }
.service-guide-list dd { overflow-wrap: anywhere; }
.service-docs { display: grid; gap: 14px; margin-top: 14px; }
.service-steps { margin: 0; padding-inline-start: 38px; color: var(--muted); }
.service-steps li + li { margin-top: 7px; }
.beta-orders-controls { flex-wrap: wrap; gap: 10px; }
.beta-orders-controls form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.beta-orders-controls input { width: 125px; min-height: 36px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); padding: 5px 8px; background: var(--surface); color: var(--ink); }

.workspace-heading-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:8px; }
.workspace-scope { display:flex; padding:3px; border:1px solid var(--line); border-radius:var(--radius-control); background:var(--surface-muted); }
.workspace-scope a { display:grid; min-height:32px; place-items:center; padding-inline:12px; border-radius:6px; color:var(--muted); }
.workspace-scope a[aria-current] { color:var(--brand-text); background:var(--surface); box-shadow:var(--panel-shadow); font-weight:700; }
.workspace-dashboard { display:grid; gap:16px; }
.workspace-summary, .workspace-secondary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.workspace-secondary { grid-template-columns:minmax(0,2fr) minmax(0,1fr); align-items:start; }
.workspace-group { display:grid; align-content:start; gap:14px; padding:clamp(16px,2.4vw,26px); }
.workspace-group-title { display:flex; align-items:center; gap:9px; }
.workspace-group h2, .workspace-account h2, .workspace-notices h2 { font-size:16px; font-weight:750; margin:0; }
.workspace-group-icon { width:34px; height:34px; display:grid; place-items:center; border-radius:9px; color:var(--brand-text); background:var(--brand-soft); }
.workspace-group-icon svg { width:17px; height:17px; }
.workspace-total { display:flex; gap:8px; justify-content:space-between; align-items:flex-end; border-radius:8px; }
.workspace-total div { display:grid; gap:2px; }
.workspace-total div > span { font-size:12px; color:var(--muted); }
.workspace-total strong { font-size:clamp(31px,4vw,52px); font-weight:760; line-height:1.05; letter-spacing:-.04em; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.workspace-total small, .workspace-account small { margin-inline-start:6px; font-size:12px; font-weight:600; color:var(--muted); letter-spacing:normal; }
.workspace-total-link { display:inline-flex; flex:none; gap:3px; align-items:center; color:var(--brand-text); font-size:12px; white-space:nowrap; }
.workspace-total-link svg { width:14px; height:14px; }
.workspace-bar { height:5px; display:flex; overflow:hidden; border-radius:10px; background:var(--line); }
.workspace-tone--active { background:#456ee9; }
.workspace-tone--done { background:#168674; }
.workspace-tone--waiting { background:#c98620; }
.workspace-group-states { display:flex; flex-wrap:wrap; gap:9px; }
.workspace-state { display:grid; flex:1 1 80px; min-width:0; gap:4px; padding:9px 10px; border:1px solid var(--line); border-radius:9px; background:var(--surface-muted); }
.workspace-state > span { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:12px; }
.workspace-state i { width:7px; height:7px; border-radius:50%; flex:none; }
.workspace-state strong { font-size:20px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.workspace-state:hover { border-color:var(--focus); }
.workspace-notices, .workspace-account { padding:18px 20px; }
.workspace-notices :is(ul,p), .workspace-account div { margin-top:12px; }
.workspace-notices ul { list-style:none; padding:0; margin-bottom:0; }
.workspace-notices li { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:4px 12px; padding:9px 0; border-top:1px solid var(--line); }
.workspace-notices li span { overflow-wrap:anywhere; }
.workspace-notices :is(time,p) { color:var(--muted); font-size:12px; }
.workspace-account > strong { display:block; margin-top:8px; font-size:25px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.workspace-account div { display:flex; gap:7px; flex-wrap:wrap; }
.workspace-loading { padding:26px 4px; color:var(--muted); }
@media (max-width: 680px) {
  .workspace-summary, .workspace-secondary { grid-template-columns:1fr; gap:12px; }
  .workspace-dashboard { gap:12px; }
  .workspace-heading { align-items:flex-start; flex-flow:column; }
  .workspace-heading-actions { justify-content:flex-start; }
  .workspace-group { gap:11px; }
}

.activity-nav summary > svg:first-child { width:16px; height:16px; flex:none; }
.activity-nav-paused { display:flex; flex-wrap:wrap; align-items:center; gap:3px 6px; padding:7px 9px; color:var(--muted); }
.activity-nav-paused small { font-size:10px; color:var(--muted); }
.activity-view main { width:100%; max-width:none; padding:12px; }
.activity-embedded { overflow:hidden; border:1px solid var(--line); border-radius:var(--radius-panel); background:var(--surface); }
.activity-frame { display:block; width:100%; height:calc(100vh - 91px); height:calc(100dvh - 91px); border:0; }
@media (max-width: 690px) {
  .activity-view main { padding:6px; }
  .activity-embedded { border-radius:10px; }
  .activity-frame { height:calc(100vh - 70px); height:calc(100dvh - 70px); }
}
