:root {
  --paper: #fbf7f2;
  --card: #fffdfa;
  --linen: #f5efe7;
  --ink: #3c2415;
  --brown: #8b5e3c;
  --copper: #a66e49;
  --sage: #577767;
  --muted: #65584c;
  --control-line: #a58f7b;
  --line: #e6dbcf;
  --rail: 208px;
  --head: 68px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei UI",
    "PingFang SC",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 100%;
  font-variant-numeric: tabular-nums;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
select,
input {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(26px, 2.3vw, 37px);
  letter-spacing: -0.055em;
  line-height: 1.25;
}
h2 {
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.125rem;
}
.ico {
  width: 18px;
  height: 18px;
  flex: none;
  vertical-align: middle;
  display: inline-block;
}
.top {
  height: var(--head);
  background: var(--card);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}
.brandbox {
  width: var(--rail);
  flex: none;
  padding: 0 25px;
}
.brand,
.toplinks,
.topbody,
.tactions,
.user-chip,
.chip,
.space,
.navgroup a,
.pagetop,
.pageactions,
.datetag,
.btn,
.outline,
.blockhead,
.wallet-top,
.wallet a,
.wallet-top > span,
.chartline,
.chartfoot,
.route-row,
.textlink,
.pager,
.main-foot,
.codebox,
.crumb {
  display: flex;
  align-items: center;
}
.brand {
  gap: 11px;
}
.brand strong {
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: 23px;
  letter-spacing: 0.04em;
}
.brand em {
  font:
    600 0.9375rem "Segoe UI",
    sans-serif;
  letter-spacing: 0.13em;
  color: var(--brown);
  vertical-align: middle;
}
.seal {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font:
    22px/1 "SimSun",
    serif;
  color: #fff6e9;
  background: var(--brown);
  border-radius: 10px 4px 10px 4px;
}
.topbody {
  flex: 1;
  justify-content: space-between;
  height: 100%;
  padding: 0 3.1% 0 30px;
}
.toplinks {
  gap: 30px;
  height: 100%;
}
.toplinks a {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 550;
  border-bottom: 2px solid transparent;
}
.toplinks a.sel {
  color: var(--brown);
  border-bottom-color: var(--brown);
}
.tactions {
  gap: 16px;
}
.chip {
  display: inline-flex;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 99px;
  border: 1px solid #dfcbb8;
  background: #faf0e4;
  color: #795334;
  font-size: 0.8125rem;
  font-weight: 600;
}
.chip.sage {
  background: #eef3ed;
  border-color: #dce4da;
  color: #526c55;
}
.chip.sage:before,
.dot {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}
.user-chip,
.icon {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 5px;
}
.user-chip {
  gap: 7px;
}
.user-chip > .ico {
  border-radius: 50%;
  background: #eee0d0;
  width: 28px;
  height: 28px;
  padding: 6px;
  color: var(--brown);
}
.shell {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  min-height: calc(100vh - var(--head));
}
aside {
  position: sticky;
  top: var(--head);
  height: calc(100vh - var(--head));
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: #faf6f0;
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.space {
  gap: 10px;
  margin: 0 4px 28px;
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
}
.spacebadge,
.round {
  display: inline-grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: #eee3d5;
  color: var(--brown);
}
.space b {
  font-size: 0.9375rem;
}
.space small,
.aside-foot small {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-top: 3px;
}
.navgroup {
  margin: 0 0 22px;
}
.navgroup label {
  display: block;
  margin: 0 0 8px 13px;
  color: var(--muted);
  font-size: 0.8125rem;
}
.navgroup a {
  position: relative;
  gap: 12px;
  color: #66584a;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 7px;
  margin: 3px 0;
}
.navgroup a:hover {
  background: #f3eade;
}
.navgroup a.sel {
  background: #ecdcc9;
  color: #6e4429;
  font-weight: 650;
}
.navgroup a.sel:before {
  content: "";
  position: absolute;
  left: 0;
  width: 3px;
  height: 15px;
  background: var(--brown);
  border-radius: 5px;
}
.aside-foot {
  margin: 0 12px;
}
.aside-foot b {
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--muted);
}
.footline {
  display: block;
  width: 26px;
  height: 2px;
  background: #c4956a;
  margin-bottom: 12px;
}
main {
  padding: 22px clamp(18px, 2.35vw, 42px) 16px;
  min-width: 0;
  max-width: 1790px;
  width: 100%;
  margin: 0 auto;
}
.crumb {
  gap: 9px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.crumb b {
  color: #c5b7a7;
}
.pagetop,
.blockhead,
.chartline,
.chartfoot,
.route-row,
.main-foot {
  justify-content: space-between;
  gap: 12px;
}
.pagetop {
  margin: 18px 0 23px;
}
.eyebrow,
.cap {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--brown);
  line-height: 1.4;
}
.eyebrow {
  margin-bottom: 6px;
}
.muted,
.desc,
.fine,
.quiet,
.main-foot {
  color: var(--muted);
}
.muted,
.desc,
.fine {
  line-height: 1.8;
}
.pagetop .muted {
  font-size: 0.9375rem;
  margin-top: 6px;
}
.pageactions {
  gap: 10px;
}
.datetag {
  gap: 7px;
  color: var(--muted);
  font-size: 0.875rem;
}
.btn,
.outline,
.textlink {
  width: max-content;
  gap: 7px;
  justify-content: center;
  border-radius: 7px;
  font-weight: 550;
  font-size: 0.9375rem;
}
.btn,
.outline {
  border: 1px solid var(--line);
  padding: 8px 13px;
  background: var(--card);
  color: var(--ink);
}
.btn {
  background: var(--brown);
  border-color: var(--brown);
  color: white;
}
.outline:hover,
.icon:hover {
  background: var(--linen);
}
.btn:hover {
  background: #755034;
}
.textlink {
  color: var(--brown);
}
.textlink .ico,
.outline .ico,
.chip .ico {
  width: 15px;
  height: 15px;
}
.view {
  min-height: 35vh;
}
.overview-card,
.panel,
.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 6px #3c241503;
}
.overview-card {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(205px, 1fr);
  overflow: hidden;
}
.summary,
.panel {
  padding: 22px;
}
.blockhead h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.blockhead .cap {
  margin-bottom: 5px;
}
.hmark {
  width: 4px;
  height: 16px;
  border-radius: 4px;
  background: var(--brown);
}
.quiet {
  font-size: 0.8125rem;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.kpi {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(155deg, var(--card), #fcf9f4);
  overflow: hidden;
  padding: 13px 13px 0;
}
.klabel {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  color: #65574b;
}
.klabel .mico {
  display: grid;
  place-items: center;
  border-radius: 8px;
  width: 26px;
  height: 26px;
}
.klabel .ico {
  width: 15px;
  height: 15px;
}
.copper {
  color: #885634;
  background: #f3e5d5;
}
.green {
  color: #577768;
  background: #e9f0e9;
}
.gold {
  color: #967442;
  background: #f2ecdb;
}
.knum {
  display: block;
  font-size: clamp(23px, 2vw, 34px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.2;
  margin: 11px 0 4px;
}
.kpi small {
  font-size: 0.75rem;
  color: var(--muted);
}
.spark {
  width: 100%;
  height: 27px;
  display: block;
  margin-top: 7px;
}
.wallet {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #593b29;
  color: #fff4e8;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.wallet-bg {
  position: absolute;
  z-index: -1;
  right: -76px;
  bottom: -49px;
  width: 252px;
  height: 165px;
  background: url("/weave.svg") center/cover no-repeat;
  filter: brightness(1.8);
  opacity: 0.29;
  transform: rotate(-17deg);
}
.wallet-top {
  justify-content: space-between;
  gap: 9px;
}
.wallet-top > span {
  gap: 6px;
  font-size: 0.875rem;
}
.wallet-state {
  font-size: 0.75rem !important;
  color: #e5d0b4;
}
.wallet strong {
  font-weight: 600;
  font-size: clamp(28px, 2.4vw, 42px);
  letter-spacing: -0.05em;
  margin: 10px 0 2px;
}
.wallet p {
  font-size: 0.8125rem;
  color: #e5d4c2;
}
.wallet p b {
  font-weight: 500;
}
.wallet a {
  font-size: 0.875rem;
  justify-content: space-between;
  border-top: 1px solid #ffffff32;
  margin-top: 20px;
  padding-top: 11px;
}
.contentgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(235px, 1fr);
  gap: 16px;
  margin: 16px 0;
}
.switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--linen);
}
.switch button {
  border: none;
  border-radius: 4px;
  color: var(--muted);
  background: none;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 5px 9px;
}
.switch .on {
  background: var(--card);
  box-shadow: 0 1px 4px #49331b18;
  color: var(--brown);
}
.chartline {
  margin: 16px 0 6px;
}
.chartline div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.chartline span,
.chartfoot {
  font-size: 0.8125rem;
  color: var(--muted);
}
.chartline strong {
  font-weight: 650;
  font-size: 19px;
}
.chart {
  position: relative;
}
.chart svg {
  display: block;
  width: 100%;
  height: 150px;
  overflow: visible;
}
.chart rect.hit {
  outline: none;
}
.chart rect.hit:focus {
  stroke: var(--brown);
  stroke-width: 1;
}
.chartfoot {
  margin-top: 7px;
}
.legend {
  display: inline-block;
  width: 14px;
  height: 3px;
  border-radius: 3px;
  background: var(--copper);
  vertical-align: middle;
  margin-right: 6px;
}
select {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 6px;
  padding: 5px 8px;
  color: var(--muted);
  font-size: 0.875rem;
}
.route-row {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.route-row span,
.url-label {
  color: var(--muted);
}
.route-row b {
  font-weight: 600;
}
.dot {
  margin-right: 6px;
}
.url-label {
  font-size: 0.875rem;
  display: block;
  margin: 13px 0 6px;
}
.codebox,
.codeblock,
pre {
  border: 1px solid var(--line);
  background: #f8f3ec;
  border-radius: 7px;
}
.codebox {
  gap: 3px;
  justify-content: space-between;
  padding: 5px 8px;
}
.codebox code {
  font:
    0.875rem/1.5 Consolas,
    monospace;
  overflow-wrap: anywhere;
}
.fill {
  width: 100%;
  margin-top: 14px;
}
.fill .ico:last-child {
  margin-left: auto;
}
.recent .blockhead,
.panel > .blockhead {
  margin-bottom: 12px;
}
.tablewrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
  font-size: 0.875rem;
}
th {
  background: #f7f2eb;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.8125rem;
}
th,
td {
  padding: 11px 9px;
  border-bottom: 1px solid #eee5da;
}
td:last-child,
th:last-child {
  text-align: right;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.modeltag {
  color: var(--ink);
  font-family: Consolas, monospace;
}
.status {
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 12px;
  padding: 3px 7px;
  background: #eaf1e9;
  color: #4f6b56;
}
.other {
  background: var(--linen);
  color: var(--brown);
}
.main-foot {
  font-size: 0.75rem;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.cards3,
.cards4,
.pair {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}
.cards3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cards4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tile {
  padding: 18px;
}
.tile span,
.tile small {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
}
.tile strong {
  display: block;
  font-size: 24px;
  margin: 9px 0 5px;
}
.pager {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 13px;
}
.pager span {
  margin-right: auto;
  color: var(--muted);
  font-size: 0.875rem;
}
.pair .desc,
.guide p,
.pricecard .desc {
  margin: 10px 0 19px;
}
.pair .round,
.login .round {
  margin-bottom: 14px;
}
label {
  display: block;
  font-size: 0.9375rem;
}
input,
.codeblock,
pre {
  display: block;
  width: 100%;
  margin: 6px 0 14px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--paper);
}
input:not([type="radio"]),
select {
  border-color: var(--control-line);
}
input::placeholder {
  color: var(--muted);
  opacity: 1;
}
pre {
  font:
    0.9375rem/1.75 Consolas,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.pair h2 {
  margin: 4px 0 13px;
}
#fresh {
  margin-top: 15px;
}
.pricecard {
  max-width: 820px;
}
.pillcode {
  display: inline-block;
  background: var(--linen);
  padding: 4px 7px;
  border-radius: 4px;
}
.pricerow {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.pricerow strong {
  display: block;
  font-size: 21px;
}
.fine {
  font-size: 0.875rem;
  margin: 13px 0;
}
.guide {
  max-width: 960px;
}
.guide h3 {
  margin-top: 22px;
}
.guide p {
  color: var(--muted);
  line-height: 1.75;
}
.login {
  max-width: 440px;
  margin: auto;
}
.login label {
  margin-top: 14px;
}
.login button {
  display: inline-flex;
  margin-right: 7px;
}
.login .muted {
  margin: 7px 0 18px;
}
#notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--card);
  padding: 12px 19px;
  z-index: 30;
  font-size: 0.9375rem;
  border-radius: 8px;
  max-width: 92vw;
}
.mobile {
  display: none;
}
#scrim {
  display: none;
}
.empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
}
.guide .btn {
  margin-top: 10px;
}
@media (min-width: 1700px) {
  :root {
    --rail: 230px;
  }
  .kpi {
    padding-top: 17px;
  }
  .chart svg {
    height: 185px;
  }
  .summary,
  .panel {
    padding: 26px;
  }
}
@media (max-width: 1180px) {
  :root {
    --rail: 170px;
  }
  .brandbox {
    padding: 0 16px;
  }
  aside {
    padding: 20px 10px;
  }
  .summary,
  .panel {
    padding: 17px;
  }
  .kpis {
    gap: 7px;
  }
  .kpi {
    padding: 10px 8px 0;
  }
  .wallet {
    padding: 17px;
  }
  .wallet-state {
    display: none !important;
  }
  .klabel {
    font-size: 0.8125rem;
  }
  .contentgrid {
    grid-template-columns: minmax(0, 1.65fr) minmax(200px, 1fr);
  }
}
@media (max-width: 900px) {
  :root {
    --rail: 155px;
  }
  .topbody {
    padding: 0 16px;
  }
  .overview-card {
    grid-template-columns: 1fr;
  }
  .wallet {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2px 14px;
  }
  .wallet strong {
    grid-row: 1/3;
    grid-column: 2;
    margin: 0;
  }
  .wallet a {
    margin: 0;
    padding: 4px 0 0;
    grid-column: 1/3;
  }
  .contentgrid {
    grid-template-columns: 1fr;
  }
  .route-card .fill {
    width: max-content;
  }
  .pageactions .datetag {
    display: none;
  }
  .cards4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 680px) {
  :root {
    --head: 56px;
  }
  .shell {
    display: block;
  }
  .topbody {
    padding: 0 12px 0 0;
    justify-content: flex-end;
  }
  .toplinks {
    display: none;
  }
  .brandbox {
    display: flex;
    align-items: center;
    gap: 9px;
    width: auto;
    padding: 0 12px;
  }
  .brand {
    gap: 6px;
  }
  .brand strong {
    font-size: 19px;
  }
  .seal {
    width: 29px;
    height: 29px;
    font-size: 1.25rem;
  }
  .tactions {
    gap: 6px;
  }
  .user-chip span {
    display: none;
  }
  .mobile {
    display: block;
  }
  .shell aside {
    position: fixed;
    z-index: 21;
    width: 195px;
    left: 0;
    transform: translateX(-102%);
  }
  .shell aside.open {
    transform: none;
  }
  #scrim:not([hidden]) {
    display: block;
    position: fixed;
    inset: var(--head) 0 0;
    background: #281c133b;
    border: 0;
    z-index: 20;
  }
  main {
    padding: 17px 12px;
  }
  .pagetop {
    margin: 13px 0 16px;
  }
  .pagetop .muted {
    font-size: 0.875rem;
  }
  .summary,
  .panel {
    padding: 14px;
  }
  .klabel {
    display: block;
    line-height: 1.5;
  }
  .klabel .mico {
    margin-bottom: 4px;
    width: 22px;
    height: 22px;
  }
  .kpi {
    padding: 8px 6px 0;
  }
  .knum {
    font-size: 20px;
  }
  .kpi small {
    font-size: 0.6875rem;
  }
  .spark {
    height: 22px;
  }
  .kpis {
    gap: 5px;
  }
  .pageactions .outline {
    padding: 7px;
  }
  .cards3,
  .cards4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pair {
    grid-template-columns: 1fr;
  }
  .tile {
    padding: 12px;
  }
  .tile strong {
    font-size: 1.25rem;
  }
  .contentgrid {
    gap: 12px;
    margin: 12px 0;
  }
  .chartline div {
    display: block;
  }
  .chartline strong {
    margin-left: 6px;
  }
  .main-foot {
    align-items: flex-start;
  }
  .main-foot span:last-child {
    display: none;
  }
  .pricerow {
    gap: 12px;
  }
  th,
  td {
    padding: 10px 7px;
  }
}
/* Model catalog: keep the reference card hierarchy, using Yike's paper and chestnut palette. */
.catalog-tools,
.catalog-filters,
.zone-heading,
.model-top,
.billing-kicker,
.model-meta,
.model-details summary,
.reserved-foot,
.reserved-note {
  display: flex;
  align-items: center;
}
.catalog-tools,
.zone-heading,
.model-meta,
.model-details summary,
.reserved-foot {
  justify-content: space-between;
}
.catalog-tools {
  margin: 0 0 24px;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.catalog-tools > span {
  font-size: 0.875rem;
  color: var(--muted);
}
.catalog-tools > span b {
  color: var(--brown);
  font-weight: 600;
}
.catalog-filters {
  gap: 5px;
  padding: 3px;
  background: var(--linen);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.catalog-filters button {
  padding: 7px 14px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.catalog-filters button[aria-pressed="true"] {
  font-weight: 650;
  background: var(--card);
  color: var(--brown);
  box-shadow: 0 1px 4px #42271817;
}
.catalog-zones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 1220px;
}
.catalog-zone {
  min-width: 0;
}
.zone-heading {
  margin: 0 2px 14px;
}
.zone-heading h2 {
  font-size: 20px;
  font-weight: 650;
  margin: 4px 0 0;
}
.zone-chip,
.planned {
  border: 1px solid var(--line);
  background: var(--linen);
  border-radius: 14px;
  padding: 4px 10px;
  color: var(--muted);
  font-size: 0.8125rem;
}
.model-tile {
  padding: clamp(18px, 1.8vw, 30px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 19px;
  box-shadow: 0 3px 11px #3c241505;
}
.model-top {
  gap: 13px;
  min-height: 51px;
}
.vendor-mark {
  flex: none;
  width: 49px;
  height: 49px;
  background: #f3eee8;
  border-radius: 14px;
  display: grid;
  place-items: center;
}
.vendor-mark img {
  width: 34px;
  height: 34px;
}
.model-top h3 {
  font:
    650 clamp(18px, 1.45vw, 24px) / 1.3 Consolas,
    "Segoe UI",
    monospace;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}
.model-top p {
  color: var(--muted);
  margin-top: 4px;
  font-size: 1rem;
}
.catalog-copy,
.planned {
  margin-left: auto;
}
.catalog-copy {
  align-self: flex-start;
  padding: 7px;
  color: var(--brown);
}
.model-blurb {
  font-size: 0.9375rem;
  line-height: 1.8;
  margin: 19px 0;
  color: var(--muted);
  min-height: 44px;
}
.billing-kicker {
  gap: 9px;
  flex-wrap: wrap;
}
.billing-kicker b {
  font-size: 0.9375rem;
  color: var(--brown);
}
.billing-kicker span {
  font-size: 0.8125rem;
  color: var(--muted);
}
.model-rates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 13px 0 20px;
}
.model-rates div > span {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 6px;
}
.model-rates strong {
  font-size: clamp(19px, 1.6vw, 26px);
  letter-spacing: -0.045em;
}
.model-rates small {
  font:
    0.8125rem Consolas,
    monospace;
  color: var(--muted);
}
.model-meta {
  flex-wrap: wrap;
  gap: 7px;
  font-size: 0.875rem;
  color: var(--muted);
  padding: 0 0 16px;
}
.model-meta b {
  margin-left: 4px;
  font-weight: 550;
  color: var(--ink);
}
.model-details summary,
.reserved-foot {
  border-top: 1px solid var(--line);
  padding: 15px 0 0;
  gap: 12px;
  font-size: 0.875rem;
}
.model-details summary {
  cursor: pointer;
  list-style: none;
}
.model-details summary::-webkit-details-marker {
  display: none;
}
.model-details summary > span:last-child {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--brown);
  font-weight: 650;
}
.model-details[open] summary .ico {
  transform: rotate(90deg);
}
.model-state,
.reserved-foot span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.model-state:before,
.reserved-foot span:first-child:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #68846c;
}
.rate-detail {
  padding-top: 16px;
}
.rate-detail h4 {
  font-size: 1rem;
  margin: 0 0 8px;
}
.rate-detail h4 small {
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
}
.rate-detail p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 9px 0;
}
.rate-detail .textlink {
  margin-top: 10px;
}
.anth-mark {
  display: flex;
  justify-content: center;
  font:
    600 26px Georgia,
    serif;
  color: #826147;
  background: #f1e5d6;
  letter-spacing: -3px;
}
.anth-mark span {
  font-size: 24px;
}
.reserved-tile {
  background: #fcf8f2;
}
.reserved-note {
  min-height: 85px;
  padding: 12px 14px;
  margin: 0 0 16px;
  border: 1px dashed #d6c4ad;
  border-radius: 9px;
  gap: 12px;
  color: #80664f;
}
.reserved-note b,
.reserved-note span {
  display: block;
}
.reserved-note b {
  font-size: 0.9375rem;
}
.reserved-note span {
  margin-top: 4px;
  font-size: 0.875rem;
  color: var(--muted);
}
.reserved-foot {
  color: var(--muted);
}
.reserved-foot span:first-child:before {
  background: #b89a70;
}
.model-details summary:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 2px;
}
@media (max-width: 1050px) {
  .catalog-zones {
    grid-template-columns: 1fr;
    max-width: 650px;
  }
}
@media (max-width: 540px) {
  .catalog-tools > span {
    display: none;
  }
  .catalog-tools {
    margin-bottom: 17px;
  }
  .model-rates strong {
    font-size: 20px;
  }
  .model-rates small {
    font-size: 0.75rem;
  }
  .catalog-filters button {
    padding: 7px 10px;
  }
  .vendor-mark {
    width: 42px;
    height: 42px;
  }
  .model-top h3 {
    font-size: 1.25rem;
  }
}
.cc-mark {
  background: #f6e9df;
  color: #bc724c;
  font:
    42px/1 Georgia,
    serif;
}
.cc-model + .cc-model {
  margin-top: 14px;
}
.catalog-zones .model-tile {
  align-self: start;
}
/* Data board: each color is one model, each stacked bar is one Beijing calendar day. */
.bar-toolbar,
.bar-controls,
.bar-legend,
.bar-legend span,
#bar-rank li div,
#bar-tip span {
  display: flex;
  align-items: center;
}
.bar-toolbar {
  justify-content: space-between;
  gap: 14px;
  margin: 24px 1px 12px;
}
.bar-toolbar h2 {
  margin-top: 3px;
  font-size: 21px;
}
.bar-controls {
  gap: 9px;
}
.bar-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(235px, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.bar-layout .panel {
  min-width: 0;
}
.bar-panel .blockhead {
  align-items: flex-start;
}
.bar-panel small,
.bar-share small {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
}
.bar-panel h2 + small {
  margin-top: 5px;
}
.bar-sum {
  text-align: right;
}
.bar-sum strong {
  display: block;
  margin-top: 2px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.bar-canvas {
  position: relative;
  margin-top: 9px;
}
#usage-bars svg {
  display: block;
  width: 100%;
  font-size: 0.75rem;
  fill: var(--muted);
  font-family: inherit;
  user-select: none;
}
.bar-day {
  cursor: pointer;
}
.bar-day .bar-segment {
  pointer-events: none;
}
.bar-day.active .bar-bg,
.bar-day:focus-visible .bar-bg {
  fill: #ede3d4;
  fill-opacity: 0.6;
}
.bar-day:focus-visible {
  outline: none;
}
.bar-day:focus-visible .bar-bg {
  stroke: #8b5e3c;
  stroke-dasharray: 3 3;
}
.bar-legend {
  gap: 6px 14px;
  flex-wrap: wrap;
  min-height: 20px;
  margin-top: 9px;
}
.bar-legend span {
  gap: 6px;
  color: var(--muted);
  font:
    0.8125rem/1.65 Consolas,
    "Microsoft YaHei UI",
    sans-serif;
}
#bar-tip {
  position: absolute;
  top: 2px;
  right: 4px;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 9px 11px;
  border-radius: 8px;
  box-shadow: 0 4px 16px #3c24151a;
  pointer-events: none;
  max-width: 96%;
  font-size: 0.8125rem;
}
#bar-tip span {
  gap: 6px;
  margin-top: 5px;
}
#bar-tip strong {
  margin-left: auto;
  padding-left: 7px;
}
#bar-tip em {
  display: block;
  margin-top: 5px;
  font-style: normal;
  color: var(--brown);
  border-top: 1px solid var(--line);
  padding-top: 5px;
}
#bar-empty {
  position: absolute;
  top: 38%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  pointer-events: none;
}
#bar-rank {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
#bar-rank li {
  padding: 7px 0;
}
#bar-rank li div {
  gap: 6px;
  font-size: 0.875rem;
}
.rank-number {
  font:
    0.75rem Consolas,
    monospace;
  color: var(--muted);
}
#bar-rank li b {
  font-weight: 550;
  overflow-wrap: anywhere;
}
#bar-rank li strong {
  margin-left: auto;
  color: var(--brown);
  font-size: 0.8125rem;
}
#bar-rank li svg {
  display: block;
  width: 100%;
  height: 4px;
  margin: 5px 0 3px;
}
#bar-rank small {
  text-align: right;
  font-size: 0.75rem;
}
.empty-rank {
  color: var(--muted);
}
.image-card {
  margin-top: 14px;
}
.image-card .model-rates {
  grid-template-columns: 1fr;
}
.image-card .model-blurb {
  min-height: 0;
}
@media (max-width: 1080px) {
  .bar-layout {
    grid-template-columns: minmax(0, 1.65fr) minmax(210px, 1fr);
  }
}
@media (max-width: 880px) {
  .bar-layout {
    grid-template-columns: 1fr;
  }
  .bar-share ol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 16px;
  }
}
@media (max-width: 520px) {
  .bar-toolbar {
    flex-wrap: wrap;
  }
  .bar-controls {
    width: 100%;
    justify-content: space-between;
  }
  .bar-layout {
    gap: 12px;
  }
  .bar-share ol {
    grid-template-columns: 1fr;
  }
  .bar-legend {
    gap: 4px 9px;
  }
  .bar-sum strong {
    font-size: 1.25rem;
  }
}

.admin-tools {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}
.admin-tools label {
  margin: 0;
}
#admin .panel + .panel {
  margin-top: 18px;
}
#admin h3 {
  margin-top: 22px;
}
#admin td {
  overflow-wrap: anywhere;
}
.login .textlink {
  display: inline-block;
  margin-top: 14px;
}
#account details {
  margin: 18px 0;
}

#keys .panel + .panel {
  margin-top: 18px;
}
.key-editor,
.empty-keys {
  background: #fbf7f2;
  border: 1px solid #e5d9cb;
  border-radius: 12px;
  padding: 16px;
  margin: 14px 0;
}
#key-editor {
  padding: clamp(16px, 2vw, 28px);
}
.key-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px clamp(16px, 2vw, 28px);
  margin: 18px 0 22px;
}
.key-fields label {
  display: grid;
  gap: 9px;
  min-width: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
}
.key-fields :is(input, select) {
  width: 100%;
  height: 3rem;
  min-height: 48px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--control-line);
  border-radius: 8px;
  background-color: var(--card);
  font: inherit;
  font-weight: 400;
  color: var(--ink);
}
.key-fields select {
  padding-right: 24px;
}
#channel-note {
  margin: 12px 0 16px;
}
#key-editor .key-actions {
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 680px) {
  .key-fields {
    grid-template-columns: 1fr;
  }
}
.key-actions {
  display: flex;
  gap: 6px;
}
.key-editor input,
.key-editor select {
  max-width: 100%;
}
#fresh label {
  display: block;
  margin: 12px 0;
}
#newkey {
  width: 100%;
}

#model-choices {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
#model-choices legend {
  font-weight: 700;
}
#key-models {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
#key-models label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1 1 210px;
  margin: 0;
  padding: 12px;
  border: 1px solid #dfd1c3;
  border-radius: 10px;
  background: #fffdfa;
  cursor: pointer;
}
#key-models label:has(:checked) {
  border-color: #996b45;
  background: #f7eee5;
}
#key-models input {
  width: auto;
  margin: 4px 0;
  accent-color: #86583a;
}
#key-models label > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
#key-models small {
  font-size: 0.875rem;
  color: var(--muted);
  display: block;
  line-height: 1.5;
  margin-top: 4px;
}
#key-connect pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
