:root{--purple:#724bff;--purple-light:#a78bfa;--purple-dark:#583ed3;--green:#28b894;--orange:#ff9500;--red:#ff3b30;--bg:#252736;--surface:#2b2c42;--surface-light:#352a6e;--elevated:rgba(255,255,255,.055);--border:rgba(255,255,255,.1);--border-light:rgba(167,139,250,.28);--text:#fff;--text-secondary:rgba(255,255,255,.72);--text-dim:rgba(255,255,255,.45);--shadow:0 12px 35px rgba(0,0,0,.25)}*{box-sizing:border-box;scrollbar-width:thin;scrollbar-color:rgba(167,139,250,.35) transparent}html{min-width:320px;scroll-behavior:smooth}body{margin:0;min-height:100vh;color:var(--text);font:14px/1.6 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;background:linear-gradient(180deg,#252736 0%,#1e1b3a 100%)}a{color:inherit;text-decoration:none}button,input{font:inherit}.topbar{position:sticky;top:0;z-index:20;border-bottom:1px solid var(--border);background:rgba(30,27,58,.88);backdrop-filter:blur(16px)}.topbar-inner{width:min(1160px,calc(100% - 40px));min-height:72px;margin:auto;display:flex;align-items:center;gap:28px}.brand{display:flex;align-items:center;gap:10px;min-width:220px}.brand-logo{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;color:#fff;background:linear-gradient(135deg,var(--purple),var(--purple-dark));font-size:20px;font-weight:800;box-shadow:0 5px 18px rgba(114,75,255,.35)}.brand-copy{display:flex;flex-direction:column;line-height:1.15}.brand-copy strong{font-size:16px}.brand-copy small{margin-top:4px;color:var(--text-dim);font-size:9px;letter-spacing:1.3px}.topbar-nav{display:flex;align-items:center;gap:4px;flex:1}.topbar-nav a{padding:9px 14px;border-radius:8px;color:var(--text-secondary);font-size:13px;transition:.2s}.topbar-nav a:hover,.topbar-nav a.active{color:#fff;background:rgba(114,75,255,.22)}.chat-link{display:inline-flex;align-items:center;gap:7px;padding:9px 14px;border:1px solid rgba(167,139,250,.45);border-radius:8px;color:var(--purple-light);font-size:13px;white-space:nowrap}.main-shell{width:min(1160px,calc(100% - 40px));margin:auto;padding:18px 0 70px}.page-section[hidden]{display:none}.hero-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:26px;align-items:stretch;padding:24px 0 42px}.hero-copy{display:flex;flex-direction:column;justify-content:center;padding:16px 32px 16px 12px}.hero-logo{display:grid;place-items:center;width:92px;height:92px;margin-bottom:18px;border:1px solid rgba(255,255,255,.16);border-radius:26px;color:#fff;background:linear-gradient(135deg,#8b72ff,#4c31c8);box-shadow:0 15px 40px rgba(114,75,255,.35);font-size:56px;font-weight:900}.hero-kicker,.card-eyebrow{margin:0;color:var(--purple-light);font-size:11px;font-weight:700;letter-spacing:1.6px}.hero-copy h1,.page-heading h1{margin:7px 0 10px;font-size:42px;line-height:1.15;letter-spacing:0}.hero-description{margin:0;color:var(--text-secondary);font-size:16px;line-height:1.9}.hero-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:26px}.hero-chips span{padding:7px 11px;border:1px solid var(--border);border-radius:8px;color:var(--text-secondary);background:var(--elevated);font-size:12px}.hero-status{display:flex;align-items:center;gap:8px;margin-top:25px;color:var(--text-dim);font-size:12px}.hero-status i{width:8px;height:8px;border-radius:50%;background:var(--orange);box-shadow:0 0 0 4px rgba(255,149,0,.12)}.hero-status i.online{background:var(--green);box-shadow:0 0 0 4px rgba(40,184,148,.12)}.glass-card{border:1px solid var(--border);border-radius:16px;background:linear-gradient(145deg,rgba(53,42,110,.82),rgba(37,39,54,.88));box-shadow:var(--shadow)}.activate-card{padding:28px}.card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.card-heading h2,.section-title h2,.table-heading h2{margin:4px 0 0;font-size:22px}.card-icon{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;color:var(--purple-light);background:rgba(167,139,250,.13);font-size:20px}.muted{margin:12px 0 22px;color:var(--text-secondary);font-size:13px}.stack-form{display:flex;flex-direction:column;gap:10px}.stack-form label,.inline-form label{color:var(--text-secondary);font-size:12px}.stack-form input,.inline-form input{width:100%;min-height:45px;padding:0 13px;border:1px solid var(--border);border-radius:9px;outline:none;color:#fff;background:rgba(0,0,0,.18);font-size:13px;transition:.2s}.stack-form input::placeholder,.inline-form input::placeholder{color:var(--text-dim)}.stack-form input:focus,.inline-form input:focus{border-color:var(--purple-light);box-shadow:0 0 0 3px rgba(167,139,250,.12)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:0 16px;border:1px solid transparent;border-radius:9px;color:#fff;cursor:pointer;font-size:13px;font-weight:650;transition:.2s}.btn:hover{transform:translateY(-1px);filter:brightness(1.08)}.btn:disabled{opacity:.55;cursor:wait;transform:none}.btn-large{min-height:46px}.btn-primary{background:linear-gradient(135deg,var(--purple),var(--purple-dark));box-shadow:0 8px 20px rgba(114,75,255,.23)}.btn-success{background:linear-gradient(135deg,#28b894,#179f80)}.btn-ghost{border-color:var(--border);color:var(--text-secondary);background:rgba(255,255,255,.04)}.result-card{margin-top:18px;padding:16px;border:1px solid rgba(40,184,148,.3);border-radius:12px;background:rgba(40,184,148,.08)}.result-top{display:flex;align-items:center;gap:10px}.success-dot{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;color:#fff;background:var(--green);font-weight:800}.result-top strong,.result-top small{display:block}.result-top small{margin-top:2px;color:var(--text-dim);font-size:11px}.key-display{display:flex;align-items:center;gap:8px;margin-top:15px}.key-display code,.endpoint-list code{display:block;min-width:0;flex:1;overflow-wrap:anywhere;padding:10px;border:1px solid var(--border);border-radius:8px;color:#d9d0ff;background:rgba(0,0,0,.2);font:12px/1.45 Consolas,monospace}.icon-btn{display:grid;place-items:center;width:39px;height:39px;padding:0;border:1px solid var(--border-light);border-radius:8px;color:var(--purple-light);background:rgba(114,75,255,.12);cursor:pointer}.result-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:13px}.result-stats div{padding:10px;border-radius:8px;background:rgba(0,0,0,.14)}.result-stats span,.facts-grid span{display:block;color:var(--text-dim);font-size:11px}.result-stats strong{display:block;margin-top:4px;font-size:14px}.result-actions{display:flex;gap:8px;margin-top:14px}.result-actions .btn{flex:1;min-height:37px;font-size:12px}.card-footnote{margin:17px 0 0;color:var(--text-dim);font-size:11px}.card-footnote a{color:var(--purple-light)}.section-block,.info-grid{margin-top:24px}.section-title{display:flex;align-items:center;gap:12px;margin-bottom:15px}.section-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;color:var(--purple-light);background:rgba(114,75,255,.16)}.client-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.client-card,.info-card{display:flex;align-items:center;gap:13px;padding:16px;border:1px solid var(--border);border-radius:12px;background:var(--elevated)}.client-card strong,.client-card span{display:block}.client-card strong{font-size:13px}.client-card div span{margin-top:3px;color:var(--text-dim);font-size:11px}.client-badge{display:grid!important;place-items:center;width:38px;height:38px;border-radius:10px;font-weight:800;font-size:18px}.wb{color:#cfc7ff;background:rgba(114,75,255,.25)}.cb{color:#9cead9;background:rgba(40,184,148,.18)}.oa{color:#ffd49b;background:rgba(255,149,0,.16)}.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.info-card{align-items:flex-start}.info-icon{display:grid;place-items:center;width:33px;height:33px;border-radius:9px;color:var(--purple-light);background:rgba(114,75,255,.16);font-weight:700}.info-card h3{margin:0 0 5px;font-size:14px}.info-card p,.side-note p{margin:0;color:var(--text-secondary);font-size:12px;line-height:1.7}.page-heading{padding:45px 0 25px}.page-heading h1{font-size:34px}.page-heading p{margin:0;color:var(--text-secondary);font-size:14px}.form-card{padding:22px}.inline-form{display:flex;align-items:flex-end;gap:12px}.field-grow{flex:1}.inline-form .btn{min-width:130px}.two-column{display:grid;grid-template-columns:1fr .7fr;gap:20px}.side-note{align-self:start;padding:26px;border:1px solid var(--border);border-radius:16px;background:rgba(53,42,110,.3)}.side-note h2{margin:12px 0 6px;font-size:20px}.side-note ul{margin:18px 0 0;padding-left:18px;color:var(--text-secondary);font-size:12px;line-height:2}.inline-notice{margin-top:17px;padding:13px 15px;border:1px solid rgba(40,184,148,.3);border-radius:9px;color:#a7f0dc;background:rgba(40,184,148,.1);font-size:13px}.quota-summary{display:grid;grid-template-columns:minmax(225px,.65fr) 1.35fr;margin-top:5px;border:1px solid var(--border);border-radius:16px;overflow:hidden;background:var(--elevated)}.balance-panel{padding:31px;background:linear-gradient(145deg,#38277e,#292449)}.balance-panel span,.balance-panel small{display:block;color:var(--text-secondary);font-size:12px}.balance-panel strong{display:block;margin:11px 0 12px;color:#fff;font-size:42px;line-height:1}.facts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px 18px;align-items:center;padding:27px}.facts-grid strong{display:block;overflow-wrap:anywhere;margin-top:4px;font-size:13px}.table-card{margin-top:22px;border:1px solid var(--border);border-radius:14px;overflow:hidden;background:var(--elevated)}.table-heading{display:flex;align-items:center;justify-content:space-between;padding:17px 19px;border-bottom:1px solid var(--border)}.table-heading h2{font-size:16px}.table-heading>span{color:var(--text-dim);font-size:11px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px}th,td{height:43px;padding:0 14px;border-bottom:1px solid var(--border-subtle,rgba(255,255,255,.05));text-align:left;white-space:nowrap}th{color:var(--text-dim);background:rgba(0,0,0,.12);font-size:11px}tbody tr:last-child td{border-bottom:0}.empty-row{padding:22px;text-align:center;color:var(--text-dim)}.positive{color:#61d7b5}.negative{color:#ff9c8e}.config-result{margin-top:22px;border:1px solid var(--border);border-radius:16px;overflow:hidden;background:var(--elevated)}.config-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:20px;border-bottom:1px solid var(--border)}.config-toolbar h2{margin:3px 0 0;font-size:18px}.toolbar-actions{display:flex;gap:8px}.config-result pre{margin:0;padding:23px;overflow:auto;color:#d9d0ff;background:rgba(0,0,0,.2);font:12px/1.7 Consolas,monospace}.endpoint-list{display:grid;gap:10px;padding:18px}.endpoint-list>div{display:flex;align-items:center;gap:10px}.endpoint-list>div>span{width:80px;color:var(--text-dim);font-size:12px}.endpoint-list code{color:var(--text-secondary)}.coming-card{display:flex;flex-direction:column;align-items:center;max-width:620px;margin:20px auto;padding:58px 30px;text-align:center}.coming-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:18px;color:#fff;background:linear-gradient(135deg,var(--purple),var(--purple-dark));font-size:30px}.coming-card h2{margin:20px 0 8px}.coming-card p{max-width:440px;margin:0 0 22px;color:var(--text-secondary);font-size:13px}footer{display:flex;align-items:center;justify-content:space-between;min-height:76px;padding:0 max(20px,calc((100vw - 1160px)/2));border-top:1px solid var(--border);color:var(--text-dim);background:rgba(20,19,39,.55);font-size:11px}footer strong{color:var(--text-secondary);font-size:13px}.toast{position:fixed;right:22px;bottom:22px;z-index:60;max-width:min(390px,calc(100vw - 44px));padding:12px 16px;border:1px solid var(--border);border-radius:9px;color:#fff;background:#171728;box-shadow:var(--shadow);font-size:13px;opacity:0;transform:translateY(8px);pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translateY(0)}.toast.error{border-color:rgba(255,59,48,.45);background:#44232a}@media(max-width:850px){.topbar-inner{width:min(100% - 28px,680px);gap:14px}.brand{min-width:auto;flex:1}.topbar-nav{display:none}.chat-link{padding:8px 10px}.main-shell{width:min(100% - 28px,680px);padding-top:18px}.hero-grid,.two-column{grid-template-columns:1fr}.hero-copy{padding:16px 4px 8px}.hero-copy h1{font-size:34px}.client-grid{grid-template-columns:1fr}.info-grid{grid-template-columns:1fr}.quota-summary{grid-template-columns:1fr}.facts-grid{grid-template-columns:repeat(2,1fr)}.config-toolbar{align-items:flex-start;flex-direction:column}.toolbar-actions{width:100%}.toolbar-actions .btn{flex:1}}@media(max-width:560px){.topbar-inner{min-height:64px}.brand-copy small{display:none}.chat-link span{display:none}.main-shell{width:calc(100% - 24px)}.hero-grid{padding-top:20px}.hero-logo{width:74px;height:74px;font-size:45px}.hero-copy h1{font-size:30px}.hero-description{font-size:14px}.activate-card{padding:19px}.result-actions{flex-direction:column}.page-heading{padding:32px 0 20px}.page-heading h1{font-size:29px}.inline-form{align-items:stretch;flex-direction:column}.inline-form .btn{width:100%}.facts-grid{gap:18px 12px;padding:20px}.facts-grid strong{font-size:12px}.table-heading{padding:15px}.toolbar-actions{flex-direction:column}.endpoint-list>div{align-items:flex-start;flex-wrap:wrap}.endpoint-list>div>span{width:100%}footer{padding:20px 14px;align-items:flex-start;flex-direction:column;gap:5px}}.site-header{position:sticky;top:0;z-index:20}
.inline-notice.error{border-color:rgba(255,59,48,.45);color:#ffb9b1;background:rgba(255,59,48,.1)}

.config-workspace {
  width: min(100%, 790px);
  margin: 22px auto 0;
  padding: 25px 28px 28px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: #252736;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}
.config-methods-heading {
  margin-bottom: 13px;
  color: #fff;
  text-align: center;
  font-size: 18px;
  font-weight: 750;
}
.config-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.config-method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  color: rgba(255, 255, 255, .68);
  background: rgba(255, 255, 255, .025);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.config-method:hover {
  border-color: rgba(167, 139, 250, .45);
  color: #fff;
  transform: translateY(-1px);
}
.config-method.is-active {
  border-color: #7448ff;
  color: #fff;
  background: #7448ff;
  box-shadow: 0 7px 17px rgba(116, 72, 255, .27);
}
.config-method span {
  min-width: 15px;
  font-size: 17px;
  line-height: 1;
}
.config-panels {
  min-height: 126px;
  padding-top: 23px;
}
.config-panel {
  text-align: center;
}
.config-panel h2 {
  margin: 0 0 4px;
  font-size: 16px;
}
.config-panel p {
  margin: 0;
  color: rgba(255, 255, 255, .65);
  font-size: 13px;
}
.config-panel-placeholder {
  display: grid;
  min-height: 103px;
  place-content: center;
}
.config-panel-placeholder[hidden] {
  display: none;
}
.ai-prompt-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}
.ai-config-prompt {
  display: block;
  width: 100%;
  min-height: 360px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line, #dfe3ec);
  border-radius: 8px;
  background: #f8f9fc;
  color: var(--ink, #252736);
  font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  resize: vertical;
  box-sizing: border-box;
}
.quick-config-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 17px;
}
.quick-config-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  transition: filter .18s ease, transform .18s ease;
}
.quick-config-btn:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}
.quick-config-btn span {
  font-size: 17px;
}
.quick-config-windows {
  background: #2bbd9d;
}
.quick-config-macos {
  background: #7448ff;
}
.download-config-panel {
  text-align: left;
}
.download-config-panel[hidden] {
  display: none;
}
.download-config-heading {
  text-align: center;
}
.download-models-btn {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  margin: 17px 0 22px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #2bbd9d;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  transition: filter .18s ease, transform .18s ease;
}
.download-models-btn:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}
.config-paths {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
  background: rgba(0, 0, 0, .12);
}
.config-paths h3 {
  display: flex;
  margin: 0 0 14px;
  align-items: center;
  gap: 7px;
  font-size: 14px;
}
.config-path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.config-path-group {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}
.config-path-group h4 {
  display: flex;
  margin: 0 0 11px;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 13px;
}
.config-path-item + .config-path-item {
  margin-top: 11px;
}
.config-path-item > span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, .54);
  font-size: 11px;
}
.config-path-item > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 6px;
  align-items: center;
}
.config-path-item code {
  display: block;
  min-width: 0;
  padding: 8px 9px;
  overflow: hidden;
  border: 1px solid rgba(167, 139, 250, .18);
  border-radius: 6px;
  color: #d7cbff;
  background: rgba(17, 15, 33, .55);
  font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.path-copy-btn {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(167, 139, 250, .3);
  border-radius: 7px;
  color: #d7cbff;
  background: rgba(116, 72, 255, .15);
  cursor: pointer;
  font-size: 16px;
  transition: background .18s ease, border-color .18s ease;
}
.path-copy-btn:hover {
  border-color: rgba(167, 139, 250, .65);
  background: rgba(116, 72, 255, .28);
}
.download-config-tip {
  display: flex;
  margin-top: 15px !important;
  align-items: flex-start;
  gap: 6px;
  color: rgba(255, 255, 255, .58) !important;
  font-size: 12px !important;
  text-align: left;
}
.download-config-tip strong {
  color: rgba(255, 255, 255, .82);
  white-space: nowrap;
}
.mac-config-tip {
  flex-direction: column;
}
.mac-config-tip code {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  padding: 3px 6px;
  border-radius: 4px;
  color: rgba(255, 255, 255, .82);
  background: rgba(0, 0, 0, .16);
  white-space: nowrap;
}
@media (max-width: 650px) {
  .config-workspace {
    padding: 22px 18px;
  }
  .config-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .config-method {
    width: 100%;
    padding: 0 10px;
  }
  .quick-config-actions {
    grid-template-columns: 1fr;
  }
  .config-path-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 390px) {
  .config-methods {
    grid-template-columns: 1fr;
  }
}

/* 首页按“服务介绍 → 激活服务 → 客户端配置”纵向居中展示 */
.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 28px 0 18px;
}
.hero-copy {
  width: min(100%, 820px);
  align-items: center;
  padding: 16px 12px 10px;
  text-align: center;
}
.hero-chips,
.hero-status {
  justify-content: center;
}
.activate-card {
  width: min(100%, 760px);
  margin: 0 auto;
}
.config-section {
  scroll-margin-top: 90px;
  margin-top: 2px;
}
.config-section > .page-heading {
  width: min(100%, 790px);
  margin: 0 auto;
  padding: 24px 0 20px;
  text-align: center;
}
.config-section > .form-card,
.config-section > .config-workspace {
  width: min(100%, 790px);
  margin-left: auto;
  margin-right: auto;
}
.config-section > .config-workspace {
  margin-top: 22px;
}
@media (max-width: 850px) {
  .hero-grid {
    padding-bottom: 14px;
  }
  .config-section > .page-heading {
    padding-top: 20px;
  }
}

/* 首页模型价格公示：使用独立样式，避免影响额度和配置页面。 */
.pricing-section {
  margin-top: 30px;
}
.pricing-title {
  margin-bottom: 16px;
}
.pricing-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, .8fr);
  gap: 14px;
}
.pricing-formula {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px;
}
.pricing-label {
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: .08em;
}
.pricing-formula code {
  color: #f2edff;
  font: 600 14px/1.7 Consolas, "Microsoft YaHei", monospace;
  white-space: normal;
}
.pricing-formula p,
.pricing-footnote {
  margin: 0;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.7;
}
.pricing-notice {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 19px 21px;
  border: 1px solid rgba(255, 190, 92, .2);
  border-radius: 14px;
  color: var(--text-secondary);
  background: rgba(255, 190, 92, .07);
  font-size: 12px;
  line-height: 1.7;
}
.pricing-notice strong {
  color: #ffd37e;
  font-size: 14px;
}
.pricing-table-card {
  margin-top: 14px;
}
.pricing-table th,
.pricing-table td {
  min-width: 100px;
}
.pricing-table th:first-child,
.pricing-table td:first-child {
  min-width: 190px;
}
.pricing-table th:nth-child(2),
.pricing-table td:nth-child(2) {
  min-width: 110px;
}
.pricing-table td {
  height: 48px;
  line-height: 1.55;
}
.pricing-table tbody tr:hover {
  background: rgba(255, 255, 255, .025);
}
.peak-price {
  color: #ffd37e;
  font-weight: 650;
}
.pricing-footnote {
  padding: 14px 19px 17px;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, .05));
}
.info-card a {
  margin-left: 4px;
  color: var(--purple-light);
  text-decoration: none;
}
.info-card a:hover {
  text-decoration: underline;
}
@media (max-width: 850px) {
  .pricing-intro {
    grid-template-columns: 1fr;
  }
}


/*
 * Frontend design pass: “夜间值班台”
 * 这个服务面向需要长时间查看额度、价格和配置的开发者，因此用低干扰的墨绿色底色，
 * 只让“可用状态”和“价格提醒”使用高亮色，避免所有卡片都在抢注意力。
 */
:root {
  --purple: #8d83ff;
  --purple-light: #c1baff;
  --purple-dark: #6659d9;
  --green: #8de8c8;
  --orange: #f2bd76;
  --red: #ff857a;
  --bg: #091417;
  --surface: #102126;
  --surface-light: #173039;
  --elevated: rgba(225, 255, 246, .055);
  --border: rgba(177, 231, 218, .16);
  --border-light: rgba(141, 232, 200, .36);
  --text: #f5fbf8;
  --text-secondary: rgba(232, 246, 241, .74);
  --text-dim: rgba(190, 216, 208, .54);
  --shadow: 0 22px 60px rgba(0, 0, 0, .26);
  --line: rgba(177, 231, 218, .12);
  --signal: #8de8c8;
  --signal-ink: #092119;
  --warm: #f2bd76;
}

html {
  background: var(--bg);
}

body {
  position: relative;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -10%, rgba(141, 232, 200, .13), transparent 32rem),
    radial-gradient(circle at 92% 8%, rgba(141, 131, 255, .11), transparent 28rem),
    linear-gradient(180deg, #0b191d 0%, #091417 58%, #071013 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .42;
  background-image:
    linear-gradient(rgba(141, 232, 200, .032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 232, 200, .032) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.topbar {
  border-bottom-color: rgba(177, 231, 218, .14);
  background: rgba(7, 18, 21, .86);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .16);
}

.topbar-inner {
  min-height: 76px;
}

.brand-logo {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 251, 248, .22);
  border-radius: 12px;
  color: var(--signal-ink);
  background: linear-gradient(135deg, #a7f2d4 0%, #74d8bc 62%, #8d83ff 100%);
  box-shadow: 0 8px 24px rgba(101, 217, 183, .22);
}

.brand-logo::after {
  position: absolute;
  right: -9px;
  bottom: -12px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 50%;
  content: "";
}

.brand-copy strong {
  letter-spacing: -.02em;
}

.brand-copy small,
.card-eyebrow,
.hero-kicker {
  color: var(--signal);
}

.topbar-nav a {
  position: relative;
  border-radius: 7px;
}

.topbar-nav a::after {
  position: absolute;
  right: 14px;
  bottom: 4px;
  left: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--signal);
  content: "";
  opacity: 0;
  transform: scaleX(.45);
  transition: opacity .2s ease, transform .2s ease;
}

.topbar-nav a:hover,
.topbar-nav a.active {
  color: var(--text);
  background: rgba(141, 232, 200, .08);
}

.topbar-nav a:hover::after,
.topbar-nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.chat-link {
  border-color: rgba(141, 232, 200, .36);
  color: var(--signal);
  background: rgba(141, 232, 200, .06);
}

.main-shell {
  padding-top: 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .86fr);
  gap: clamp(30px, 6vw, 82px);
  align-items: center;
  padding: clamp(48px, 7vw, 88px) 0 68px;
}

.hero-copy {
  position: relative;
  width: auto;
  align-items: flex-start;
  padding: 24px 0 24px 28px;
  text-align: left;
}

.hero-copy::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--signal) 22%, rgba(141, 232, 200, .22) 78%, transparent);
  content: "";
}

.hero-copy::after {
  position: absolute;
  top: 24%;
  left: -4px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--signal);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 5px rgba(141, 232, 200, .1), 0 0 22px rgba(141, 232, 200, .5);
  content: "";
}

.hero-logo {
  width: 82px;
  height: 82px;
  margin-bottom: 22px;
  border: 1px solid rgba(245, 251, 248, .28);
  border-radius: 23px;
  color: var(--signal-ink);
  background: linear-gradient(145deg, #b8f7dc 0%, #76d9bd 52%, #8980ff 100%);
  box-shadow: 15px 20px 42px rgba(38, 166, 136, .16), inset 0 1px 0 rgba(255, 255, 255, .5);
  font-size: 49px;
}

.hero-copy h1,
.page-heading h1 {
  max-width: 680px;
  margin: 7px 0 12px;
  color: #f7fffc;
  font-size: clamp(38px, 5.2vw, 62px);
  font-weight: 760;
  letter-spacing: -.055em;
  line-height: 1.04;
}

.hero-description {
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.85;
}

.hero-chips {
  margin-top: 24px;
}

.hero-chips span {
  border-color: rgba(141, 232, 200, .18);
  border-radius: 999px;
  color: rgba(232, 246, 241, .78);
  background: rgba(141, 232, 200, .06);
}

.hero-status {
  margin-top: 22px;
  color: var(--text-dim);
}

.hero-status i {
  background: var(--warm);
  box-shadow: 0 0 0 4px rgba(242, 189, 118, .12);
}

.hero-status i.online {
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(141, 232, 200, .12), 0 0 15px rgba(141, 232, 200, .34);
}

.glass-card {
  border-color: rgba(177, 231, 218, .18);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(23, 48, 57, .94), rgba(13, 29, 34, .96));
  box-shadow: var(--shadow);
}

.activate-card {
  position: relative;
  overflow: hidden;
  width: auto;
  margin: 0;
  padding: clamp(24px, 3.2vw, 34px);
}

.activate-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--signal), var(--purple-light));
  content: "";
}

.activate-card::after {
  position: absolute;
  right: -70px;
  bottom: -85px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(141, 232, 200, .1);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(141, 232, 200, .025), 0 0 0 45px rgba(141, 232, 200, .018);
  content: "";
  pointer-events: none;
}

.card-heading,
.activate-card > * {
  position: relative;
  z-index: 1;
}

.card-heading h2,
.section-title h2,
.table-heading h2 {
  color: #f2fbf7;
  letter-spacing: -.025em;
}

.card-icon,
.section-icon {
  border: 1px solid rgba(141, 232, 200, .2);
  color: var(--signal);
  background: rgba(141, 232, 200, .08);
}

.muted,
.stack-form label,
.inline-form label {
  color: var(--text-secondary);
}

.stack-form input,
.inline-form input {
  min-height: 48px;
  border-color: rgba(177, 231, 218, .2);
  border-radius: 10px;
  background: rgba(3, 13, 16, .5);
}

.stack-form input:focus,
.inline-form input:focus {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(141, 232, 200, .13), 0 0 22px rgba(141, 232, 200, .08);
}

.btn {
  min-height: 42px;
  border-radius: 10px;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.btn-primary {
  color: var(--signal-ink);
  background: linear-gradient(135deg, #aaf3d6 0%, #71d8b9 100%);
  box-shadow: 0 10px 24px rgba(77, 203, 163, .18);
}

.btn-primary:hover {
  box-shadow: 0 13px 28px rgba(77, 203, 163, .27);
}

.btn-success {
  color: var(--signal-ink);
  background: linear-gradient(135deg, #b8f1d9, #64cfae);
}

.btn-ghost {
  border-color: rgba(177, 231, 218, .24);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, .035);
}

.btn:focus-visible,
.chat-link:focus-visible,
.topbar-nav a:focus-visible,
.icon-btn:focus-visible,
.config-method:focus-visible,
.path-copy-btn:focus-visible {
  outline: 3px solid rgba(242, 189, 118, .65);
  outline-offset: 3px;
}

.page-heading {
  padding-top: 42px;
}

.page-heading p {
  color: var(--text-secondary);
}

.section-block,
.config-section,
.pricing-section {
  position: relative;
}

.section-block::before,
.config-section::before,
.pricing-section::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(141, 232, 200, .22), transparent);
  content: "";
}

.section-title {
  gap: 13px;
}

.section-title h2 {
  font-size: 24px;
}

.client-card,
.info-card,
.table-card,
.form-card,
.side-note,
.coming-card {
  border-color: rgba(177, 231, 218, .14);
  border-radius: 16px;
  background: rgba(16, 33, 38, .74);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
}

.client-card,
.info-card {
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.client-card:hover,
.info-card:hover {
  border-color: rgba(141, 232, 200, .32);
  background: rgba(23, 48, 57, .86);
  transform: translateY(-3px);
}

.client-badge {
  border: 1px solid rgba(245, 251, 248, .18);
}

.table-card {
  overflow: hidden;
}

.table-heading {
  border-bottom-color: rgba(177, 231, 218, .12);
  background: rgba(141, 232, 200, .035);
}

.table-heading span,
.pricing-footnote {
  color: var(--text-dim);
}

table thead th {
  color: rgba(191, 224, 214, .68);
  background: #10252b;
}

table tbody tr {
  border-bottom-color: rgba(177, 231, 218, .08);
}

table tbody tr:hover {
  background: rgba(141, 232, 200, .045);
}

.pricing-section {
  margin-top: 46px;
}

.pricing-title {
  margin-bottom: 19px;
}

.pricing-formula {
  position: relative;
  overflow: hidden;
  border-color: rgba(141, 232, 200, .24);
  background: linear-gradient(135deg, rgba(22, 58, 57, .82), rgba(13, 31, 35, .94));
}

.pricing-formula::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--signal);
  content: "";
}

.pricing-label {
  color: var(--signal);
  font-weight: 700;
}

.pricing-formula code {
  color: #f1fff9;
  font-size: 14px;
}

.pricing-notice {
  border-color: rgba(242, 189, 118, .26);
  background: rgba(242, 189, 118, .075);
}

.pricing-notice strong,
.peak-price {
  color: var(--warm);
}

.pricing-table-card {
  border-color: rgba(177, 231, 218, .18);
}

.pricing-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.pricing-table td:first-child {
  color: #f0fff8;
  font-weight: 650;
}

.pricing-table tbody tr:nth-child(even) {
  background: rgba(141, 232, 200, .018);
}

.pricing-footnote {
  border-top-color: rgba(177, 231, 218, .1);
}

.info-card {
  border-left: 3px solid rgba(141, 232, 200, .42);
}

.info-card a {
  color: var(--signal);
}

.config-workspace {
  border-color: rgba(177, 231, 218, .16);
  border-radius: 16px;
  background: rgba(13, 29, 34, .88);
}

.config-method {
  border-color: rgba(177, 231, 218, .16);
  border-radius: 9px;
  background: rgba(255, 255, 255, .025);
}

.config-method:hover {
  border-color: rgba(141, 232, 200, .44);
}

.config-method.is-active {
  border-color: var(--signal);
  color: var(--signal-ink);
  background: var(--signal);
  box-shadow: 0 8px 22px rgba(77, 203, 163, .18);
}

.quick-config-windows,
.download-models-btn {
  color: var(--signal-ink);
  background: var(--signal);
}

.quick-config-macos {
  background: var(--purple-dark);
}

.config-paths {
  border-color: rgba(177, 231, 218, .12);
  background: rgba(3, 13, 16, .28);
}

.config-path-group {
  border-color: rgba(177, 231, 218, .1);
  background: rgba(255, 255, 255, .025);
}

.config-path-item code,
.ai-config-prompt {
  border-color: rgba(141, 232, 200, .18);
  background: rgba(3, 13, 16, .58);
}

.config-path-item code {
  color: #b7f1da;
}

.path-copy-btn {
  border-color: rgba(141, 232, 200, .28);
  color: var(--signal);
  background: rgba(141, 232, 200, .08);
}

.path-copy-btn:hover {
  border-color: var(--signal);
  background: rgba(141, 232, 200, .17);
}

.balance-panel {
  border-color: rgba(141, 232, 200, .26);
  background: linear-gradient(135deg, rgba(22, 58, 57, .88), rgba(13, 31, 35, .94));
}

.balance-panel strong {
  color: var(--signal);
}

.toast {
  border-color: rgba(141, 232, 200, .22);
  border-radius: 12px;
  background: #10252b;
}

.toast.error {
  border-color: rgba(255, 133, 122, .48);
  background: #382126;
}

footer {
  border-top-color: rgba(177, 231, 218, .12);
  background: rgba(6, 16, 19, .72);
}

@media (max-width: 850px) {
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: stretch;
    padding: 40px 0 48px;
  }

  .hero-copy {
    width: min(100%, 720px);
    align-items: center;
    padding: 10px 4px 8px;
    text-align: center;
  }

  .hero-copy::before,
  .hero-copy::after {
    display: none;
  }

  .activate-card {
    width: min(100%, 760px);
    margin: 0 auto;
  }

  .hero-copy h1 {
    font-size: clamp(38px, 8vw, 52px);
  }

  .hero-description {
    max-width: 620px;
  }
}

@media (max-width: 560px) {
  .topbar-inner {
    min-height: 68px;
  }

  .main-shell {
    width: calc(100% - 24px);
  }

  .hero-grid {
    padding-top: 28px;
  }

  .hero-logo {
    width: 72px;
    height: 72px;
    font-size: 42px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .hero-description {
    font-size: 14px;
  }

  .pricing-formula code {
    font-size: 12px;
  }

  .section-title h2 {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* 2026-08-31 usability pass: keep the previous night-shift palette, clarify the journey. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: 32px 0 44px;
}
.hero-copy {
  width: auto;
  align-items: flex-start;
  padding: 18px 20px 18px 30px;
  text-align: left;
}
.hero-copy::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--signal), transparent);
  content: "";
}
.hero-chips,
.hero-status { justify-content: flex-start; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.hero-actions .btn { min-width: 142px; }
.activate-card {
  width: auto;
  margin: 0;
  box-shadow: 0 20px 56px rgba(0, 0, 0, .28);
}

/* 页面内跳转目标在粘性导航下方留出空间，避免标题被遮住。 */
#pricing,
#homeConfig,
#activateCode { scroll-margin-top: 100px; }
.config-section {
  margin-top: 8px;
  padding-top: 34px;
  border-top: 1px solid rgba(177, 231, 218, .14);
}
.config-section > .page-heading,
.config-section > .form-card,
.config-section > .config-workspace {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.config-section > .page-heading {
  padding: 0 0 18px;
  text-align: left;
}
.config-launch-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}
.config-launch-card .muted { margin: 5px 0 0; }
.config-launch-card .inline-notice { grid-column: 1 / -1; margin-top: 0; }
.config-workspace { margin-top: 16px; }
.config-methods {
  position: sticky;
  top: 76px;
  z-index: 5;
  padding: 12px 0;
  background: rgba(13, 29, 34, .96);
}

/* 价格公示是用户决策区，标题、公式和表格之间保持清晰的阅读顺序。 */
.pricing-section {
  margin-top: 52px;
  padding-top: 8px;
}
.pricing-title { margin-bottom: 18px; }
.pricing-title .section-title { align-items: center; }
.pricing-title .section-title > span {
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: .08em;
}
.pricing-table-card { box-shadow: 0 18px 44px rgba(0, 0, 0, .16); }
.pricing-table th:first-child,
.pricing-table td:first-child { position: sticky; left: 0; z-index: 1; }
.pricing-table thead th:first-child { z-index: 2; }
.pricing-table tbody td:first-child { background: #10252b; }
.pricing-table tbody tr:nth-child(even) td:first-child { background: #11272d; }

/* 可点击元素都保留明确的键盘焦点，便于桌面端和无障碍使用。 */
.topbar a:focus-visible,
.btn:focus-visible,
.icon-btn:focus-visible,
.config-method:focus-visible,
.quick-config-btn:focus-visible,
.path-copy-btn:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

@media (max-width: 850px) {
  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 26px;
    padding-top: 24px;
  }
  .hero-copy {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 16px 6px 8px 22px;
    text-align: left;
  }
  .hero-copy::before { display: block; }
  .activate-card { width: min(100%, 760px); margin: 0 auto; }
  .config-method { top: 68px; }
}
@media (max-width: 620px) {
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { min-width: 0; width: 100%; }
  .config-launch-card { grid-template-columns: 1fr; }
  .config-launch-card .btn { width: 100%; }
  .config-methods { position: static; }
}
@media (max-width: 390px) {
  .hero-actions { grid-template-columns: 1fr; }
}

/* 2026-08-31 centered layout: previous night-shift palette, calmer reading order. */
.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 30px 0 46px;
}
.hero-copy {
  width: min(100%, 860px);
  align-items: center;
  padding: 16px 12px 10px;
  text-align: center;
}
.hero-copy::before { display: none; }
.hero-chips,
.hero-status,
.hero-actions { justify-content: center; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 23px;
}
.hero-actions .btn { min-width: 142px; }
.activate-card {
  width: min(100%, 760px);
  margin: 0 auto;
}
.config-section > .page-heading {
  width: min(100%, 860px);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.config-section > .form-card,
.config-section > .config-workspace {
  width: min(100%, 900px);
  margin-left: auto;
  margin-right: auto;
}
.config-launch-card { text-align: left; }
.section-title {
  justify-content: center;
  text-align: center;
}
.pricing-title .section-title > span { margin-top: 8px; }

@media (max-width: 850px) {
  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding-top: 24px;
  }
  .hero-copy {
    width: min(100%, 760px);
    padding: 16px 6px 8px;
    text-align: center;
  }
  .activate-card { width: min(100%, 760px); }
}
@media (max-width: 620px) {
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 420px); }
  .hero-actions .btn { min-width: 0; width: 100%; }
  .config-launch-card { text-align: left; }
}
@media (max-width: 390px) {
  .hero-actions { grid-template-columns: 1fr; }
}

/* 2026-08-30 centered layout refinement: keep every client page aligned to one calm reading column. */
.page-section:not([data-page="home"]) > .page-heading {
  width: min(100%, 860px);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-section[data-page="quota"] > .form-card,
.page-section[data-page="quota"] > #accountResult,
.page-section[data-page="recharge"] > .two-column,
.page-section[data-page="chat"] > .coming-card {
  width: min(100%, 900px);
  margin-left: auto;
  margin-right: auto;
}

.page-section[data-page="quota"] > #accountResult {
  margin-top: 18px;
}

.page-section[data-page="recharge"] > .two-column {
  align-items: stretch;
}

.page-section[data-page="chat"] > .coming-card {
  text-align: center;
}

@media (max-width: 620px) {
  .page-section:not([data-page="home"]) > .page-heading {
    text-align: center;
  }

  .page-section[data-page="quota"] > .form-card,
  .page-section[data-page="quota"] > #accountResult,
  .page-section[data-page="recharge"] > .two-column,
  .page-section[data-page="chat"] > .coming-card {
    width: 100%;
  }
}

/* 2026-08-30 interaction and type polish: clearer hierarchy without changing behavior. */
:root {
  --font-ui: Inter, "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --font-display: Inter, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", "Microsoft YaHei", monospace;
}

body {
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: .008em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.hero-copy h1,
.page-heading h1,
.card-heading h2,
.section-title h2,
.table-heading h2,
.coming-card h2 {
  font-family: var(--font-display);
  font-weight: 760;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.hero-copy h1,
.page-heading h1 {
  line-height: 1.12;
}

.hero-description,
.page-heading p,
.muted,
.side-note p,
.coming-card p,
.info-card p {
  line-height: 1.75;
}

.card-eyebrow,
.hero-kicker,
.table-heading span,
.pricing-label {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
}

table,
code,
.key-display,
.pricing-formula code {
  font-variant-numeric: tabular-nums;
}

button,
.btn,
.chat-link,
.config-method,
.quick-config-btn,
.download-models-btn,
.icon-btn,
.path-copy-btn {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn {
  position: relative;
  isolation: isolate;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 11px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 720;
  line-height: 1;
  letter-spacing: .012em;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease, filter .18s ease;
}

.btn::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255,255,255,.24), transparent 38%);
  content: "";
  opacity: 0;
  transition: opacity .18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: none;
}

.btn:hover::before {
  opacity: .55;
}

.btn:active {
  transform: translateY(0) scale(.985);
  transition-duration: .08s;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  filter: saturate(.65);
  transform: none;
  cursor: not-allowed;
}

.btn > span[aria-hidden="true"] {
  display: inline-grid;
  place-items: center;
  width: 16px;
  min-width: 16px;
  font-size: 15px;
  line-height: 1;
}

.btn > span:not([aria-hidden="true"]) {
  display: inline-block;
  margin-left: 3px;
  font-size: 15px;
  line-height: 1;
  transition: transform .18s ease;
}

.btn:hover > span:not([aria-hidden="true"]) {
  transform: translateX(3px);
}

.btn-primary,
.btn-success {
  border-color: rgba(180, 255, 226, .28);
  box-shadow: 0 10px 24px rgba(77, 203, 163, .16), inset 0 1px 0 rgba(255,255,255,.32);
}

.btn-primary:hover,
.btn-success:hover {
  box-shadow: 0 14px 30px rgba(77, 203, 163, .26), inset 0 1px 0 rgba(255,255,255,.38);
}

.btn-ghost {
  border-color: rgba(177, 231, 218, .27);
  color: rgba(231, 248, 242, .82);
  background: rgba(255, 255, 255, .035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.btn-ghost:hover {
  border-color: rgba(141, 232, 200, .52);
  color: #f4fffb;
  background: rgba(141, 232, 200, .09);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .16), inset 0 1px 0 rgba(255,255,255,.08);
}

.btn-large {
  min-height: 48px;
  font-size: 13.5px;
}

.chat-link {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-family: var(--font-ui);
  font-weight: 680;
  letter-spacing: .012em;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.chat-link:hover {
  transform: translateY(-2px);
  border-color: rgba(141, 232, 200, .48);
  color: #dffcf0;
  background: rgba(141, 232, 200, .08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .14);
}

.config-methods {
  justify-content: center;
  gap: 9px;
}

.config-method {
  min-height: 44px;
  padding: 0 17px;
  border-radius: 10px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 680;
  letter-spacing: .008em;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.config-method:hover {
  transform: translateY(-1px);
}

.config-method.is-active {
  border-color: rgba(141, 232, 200, .55);
  color: var(--signal-ink);
  background: linear-gradient(135deg, #aaf3d6, #71d8b9);
  box-shadow: 0 9px 22px rgba(77, 203, 163, .2), inset 0 1px 0 rgba(255,255,255,.34);
}

.config-method span {
  font-size: 16px;
  font-weight: 760;
}

.quick-config-btn,
.download-models-btn {
  min-height: 44px;
  border-radius: 10px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 680;
  letter-spacing: .006em;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.quick-config-btn:hover,
.download-models-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(0, 0, 0, .16);
}

.icon-btn,
.path-copy-btn {
  transition: transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}

.icon-btn:hover,
.path-copy-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(141, 232, 200, .48);
  color: var(--signal);
  background: rgba(141, 232, 200, .1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .14);
}

.stack-form label,
.inline-form label {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .018em;
}

.stack-form input,
.inline-form input,
.ai-config-prompt {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: .01em;
}

@media (max-width: 620px) {
  .btn {
    min-height: 46px;
  }

  .config-method {
    flex: 1 1 calc(50% - 9px);
    min-width: 132px;
  }
}

/* 2026-08-30: remove the non-functional decorative signal dot from the hero. */
.hero-copy::after {
  display: none;
}


/* 价格表中的能力标签：绿色表示后台明确标记为支持。 */
.pricing-table { min-width: 1080px; }
.pricing-table th,
.pricing-table td { white-space: nowrap; }
.pricing-capability {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 3px 8px;
  border: 1px solid rgba(177, 231, 218, .16);
  border-radius: 999px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, .045);
  font-size: 11px;
  line-height: 1.4;
}
.pricing-capability.is-positive {
  border-color: rgba(141, 232, 200, .28);
  color: #8de8c8;
  background: rgba(141, 232, 200, .1);
}


/* 模型能力和 Auto 说明均来自客户端 /api/config，保持与后台配置同步。 */
.model-capabilities {
  margin: 0 18px 18px;
  padding: 18px 0 20px;
  border-bottom: 1px solid rgba(177, 231, 218, .1);
}
.model-capabilities > .config-methods-heading {
  margin-bottom: 6px;
}
.model-capabilities > p {
  margin: 0 0 13px;
  line-height: 1.7;
}
.model-capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.model-capability-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(177, 231, 218, .15);
  border-radius: 11px;
  background: rgba(255, 255, 255, .028);
}
.model-capability-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.model-capability-heading strong,
.model-capability-heading code {
  min-width: 0;
  overflow-wrap: anywhere;
}
.model-capability-heading strong {
  color: #f0fff8;
}
.model-capability-heading code,
.model-capability-context {
  color: var(--text-dim);
  font-size: 11px;
}
.model-capability-context {
  font-size: 12px;
}
.capability-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.capability-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border: 1px solid rgba(177, 231, 218, .13);
  border-radius: 999px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, .045);
  font-size: 11px;
  line-height: 1.35;
}
.capability-badge.is-positive {
  border-color: rgba(141, 232, 200, .24);
  color: var(--signal);
  background: rgba(141, 232, 200, .09);
}
.model-capabilities {
  margin-right: 14px;
  margin-left: 14px;
}
.pricing-table tbody tr.auto-pricing-row td:first-child {
  background: rgba(141, 232, 200, .08);
}
.pricing-table tbody tr.auto-pricing-row td {
  border-top: 1px solid rgba(141, 232, 200, .2);
  border-bottom-color: rgba(141, 232, 200, .14);
}
.pricing-model-note {
  display: block;
  margin-top: 3px;
  color: var(--signal);
  font-size: 11px;
  line-height: 1.45;
  white-space: normal;
}
.pricing-dynamic-price {
  color: var(--signal);
  font-size: 11px;
  white-space: normal;
}
/* 使用记录中的真实命中模型和反馈入口；requestId 只作为提交标识，不展示 API Key。 */
.usage-model-name {
  color: #f0fff8;
  overflow-wrap: anywhere;
}
.usage-model-fallback,
.feedback-status,
.feedback-inline-status {
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.45;
}
.feedback-status.is-complete { color: var(--signal); }
.usage-feedback { min-width: 210px; }
.feedback-form {
  display: grid;
  grid-template-columns: auto minmax(130px, 1fr);
  gap: 6px;
  align-items: center;
  min-width: 200px;
}
.feedback-rating,
.feedback-comment {
  min-width: 0;
  border: 1px solid rgba(177, 231, 218, .18);
  border-radius: 7px;
  color: var(--text-primary);
  background: rgba(0, 0, 0, .14);
  font: inherit;
}
.feedback-rating { padding: 6px 7px; }
.feedback-comment { grid-column: 1 / -1; width: 100%; padding: 7px 8px; resize: vertical; }
.feedback-submit { min-height: 32px; padding: 6px 9px; font-size: 12px; }
.feedback-inline-status { grid-column: 1 / -1; overflow-wrap: anywhere; }

/* 2026-09-01: keep the client-config heading centered as one complete block. */
.config-section > .page-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.config-section > .page-heading h1,
.config-section > .page-heading p {
  width: 100%;
  max-width: 680px;
  text-align: center;
}

/* 2026-09-05: 客户端首页参考 API GET 的任务卡片布局；沿用 Buddy 现有紫绿深色配色。 */
.main-shell {
  width: min(960px, calc(100% - 32px));
  padding-top: 16px;
}
.service-notice {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(141, 232, 200, .15);
  border-radius: 10px;
  color: var(--text-secondary);
  background: rgba(141, 232, 200, .055);
  font-size: 12px;
}
.service-notice strong { color: var(--signal); }
.service-notice span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-icon { color: var(--signal); font-size: 15px; }
.service-intro {
  max-width: 720px;
  margin: 0 auto;
  padding: 52px 16px 30px;
  text-align: center;
}
.service-intro-mark {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 16px;
  border: 1px solid rgba(141, 232, 200, .35);
  border-radius: 20px;
  color: #effff8;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  box-shadow: 0 13px 32px rgba(114, 75, 255, .26);
  font-size: 37px;
  font-weight: 850;
}
.service-intro h1 { margin: 8px 0 12px; font-size: clamp(30px, 5vw, 42px); line-height: 1.2; }
.service-intro > p:not(.hero-kicker) { margin: 0; color: var(--text-secondary); font-size: 14px; }
.service-intro .hero-status { justify-content: center; margin-top: 18px; }
.customer-entry {
  max-width: 760px;
  margin: 0 auto 46px;
  padding: 20px;
  background: linear-gradient(145deg, rgba(53, 42, 110, .7), rgba(37, 39, 54, .94));
}
.customer-entry-intro { padding: 1px 6px 16px; text-align: center; }
.customer-entry-intro strong { font-size: 17px; }
.customer-entry-intro p { margin: 5px 0 0; color: var(--text-secondary); font-size: 12px; }
.customer-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(177, 231, 218, .1);
  border-radius: 11px;
  background: rgba(0, 0, 0, .15);
}
.customer-tab {
  min-height: 42px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 680;
  transition: .18s ease;
}
.customer-tab:hover { color: var(--text-primary); background: rgba(141, 232, 200, .08); }
.customer-tab.is-active {
  border-color: rgba(141, 232, 200, .48);
  color: var(--signal-ink);
  background: linear-gradient(135deg, #aaf3d6, #71d8b9);
  box-shadow: 0 7px 16px rgba(77, 203, 163, .16);
}
.customer-panel { padding: 26px 12px 4px; }
.customer-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.customer-panel-heading h2 { margin: 4px 0 0; font-size: 22px; }
.customer-panel .muted { max-width: 620px; margin-bottom: 20px; }
.customer-panel .stack-form { max-width: 620px; margin: 0 auto; }
.customer-panel .result-card { max-width: 620px; margin: 18px auto 0; }
.customer-panel .card-footnote { max-width: 620px; margin: 18px auto 0; }
.customer-result-summary,
.recovery-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin: 18px auto 0;
  padding: 15px;
  border: 1px solid rgba(141, 232, 200, .22);
  border-radius: 10px;
  background: rgba(141, 232, 200, .06);
}
.customer-result-summary > div,
.recovery-card > div { display: grid; gap: 3px; }
.customer-result-summary span,
.recovery-card span { color: var(--text-dim); font-size: 11px; }
.customer-result-summary strong { color: var(--signal); font-size: 17px; }
.customer-result-summary p { grid-column: 1 / -1; margin: 0; color: var(--text-secondary); font-size: 12px; }
.recovery-card { grid-template-columns: 1fr; }
.recovery-card strong { color: var(--text-primary); font-size: 14px; }
.recovery-card code { overflow-wrap: anywhere; color: var(--signal); font-size: 14px; }
.recovery-actions { display: flex; justify-content: center; gap: 9px; margin-top: 13px; }
.customer-panel[hidden] { display: none; }

@media (max-width: 620px) {
  .main-shell { width: calc(100% - 24px); }
  .service-notice { align-items: flex-start; padding: 10px 12px; line-height: 1.45; }
  .service-notice span:last-child { white-space: normal; }
  .service-intro { padding: 36px 8px 24px; }
  .service-intro-mark { width: 58px; height: 58px; border-radius: 17px; font-size: 32px; }
  .customer-entry { padding: 13px; border-radius: 14px; }
  .customer-tabs { gap: 3px; padding: 4px; }
  .customer-tab { min-height: 43px; padding: 0 3px; font-size: 11px; }
  .customer-panel { padding: 22px 5px 3px; }
  .customer-panel-heading h2 { font-size: 20px; }
  .customer-result-summary { gap: 9px; padding: 13px; }
}


/* 2026-09-05: 补齐目标站点的状态、公告和充值交互。 */
.service-notice { width: 100%; text-align: left; cursor: pointer; font: inherit; }
.service-notice:hover { border-color: rgba(141, 232, 200, .35); background: rgba(141, 232, 200, .09); }
.field-hint { color: var(--text-dim); font-size: 11px; line-height: 1.45; }
.customer-result-summary .btn-small { grid-column: 1 / -1; justify-self: start; }
.btn-small { min-height: 32px; padding: 0 11px; font-size: 12px; }
.quota-actions { display: flex; justify-content: flex-end; margin: 12px 0; }
.online-recharge { display: flex; align-items: flex-start; gap: 10px; max-width: 620px; margin: 0 auto 16px; padding: 13px 14px; border: 1px solid rgba(167, 139, 250, .22); border-radius: 10px; background: rgba(114, 75, 255, .08); }
.online-recharge strong { color: var(--text-primary); }
.online-recharge p { margin: 3px 0 5px; color: var(--text-secondary); font-size: 12px; }
.text-link { color: var(--purple-light); font-size: 12px; }
.text-link:hover { text-decoration: underline; }
.divider-label { max-width: 620px; margin: 0 auto 12px; display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 11px; }
.divider-label::before, .divider-label::after { content: ""; height: 1px; flex: 1; background: var(--border); }
.notice-dialog { width: min(520px, calc(100% - 28px)); border: 1px solid var(--border-light); border-radius: 16px; color: var(--text-primary); background: #29273e; box-shadow: var(--shadow); padding: 0; }
.notice-dialog::backdrop { background: rgba(5, 7, 18, .68); backdrop-filter: blur(4px); }
.notice-dialog-panel { display: grid; gap: 16px; padding: 22px; }
.notice-dialog-panel p { margin: 0; color: var(--text-secondary); line-height: 1.75; }
.notice-dialog-panel .dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.notice-dialog-panel h2 { margin: 4px 0 0; font-size: 20px; }

/* 隐藏属性必须优先于组件自己的 display 样式，避免未提交结果和未选中的配置面板提前显示。 */
*[hidden] { display: none !important; }


/* AI 对话页：保持现有深色紫绿配色，同时把输入、流式回答和停止操作集中在一个工作区。 */
.chat-workspace {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 22px;
  border-color: rgba(141, 232, 200, .18);
  background: linear-gradient(145deg, rgba(20, 52, 58, .84), rgba(37, 39, 54, .9));
}
.chat-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 220px auto; align-items: end; gap: 12px; }
.chat-field { display: flex; flex-direction: column; gap: 7px; }
.chat-field label { color: var(--text-secondary); font-size: 12px; }
.chat-field input, .chat-field select, .chat-compose textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 9px; outline: none; color: #fff; background: rgba(0, 0, 0, .2); transition: .2s;
}
.chat-field input, .chat-field select { min-height: 42px; padding: 0 12px; }
.chat-field select option { color: #fff; background: #29273e; }
.chat-field input:focus, .chat-field select:focus, .chat-compose textarea:focus { border-color: var(--signal); box-shadow: 0 0 0 3px rgba(141, 232, 200, .12); }
.chat-messages { display: flex; flex-direction: column; gap: 12px; min-height: 260px; max-height: 520px; margin: 20px 0; padding: 18px; overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; background: rgba(5, 14, 18, .34); }
.chat-empty { display: grid; place-items: center; align-content: center; gap: 6px; min-height: 220px; color: var(--text-dim); text-align: center; }
.chat-empty strong { color: var(--text-secondary); font-size: 16px; }
.chat-bubble { width: min(86%, 680px); padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; color: var(--text-secondary); background: rgba(255, 255, 255, .045); }
.chat-bubble.is-user { align-self: flex-end; border-color: rgba(114, 75, 255, .38); background: rgba(114, 75, 255, .16); }
.chat-role { display: block; margin-bottom: 5px; color: var(--purple-light); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.chat-bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.chat-compose { display: grid; gap: 10px; }
.chat-compose textarea { min-height: 110px; resize: vertical; padding: 12px 13px; font-size: 13px; }
.chat-compose-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chat-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
@media (max-width: 720px) {
  .chat-workspace { padding: 15px; }
  .chat-toolbar { grid-template-columns: 1fr; align-items: stretch; }
  .chat-toolbar > .btn { width: 100%; }
  .chat-compose-footer { align-items: stretch; flex-direction: column; }
  .chat-actions { justify-content: flex-end; }
  .chat-bubble { width: 94%; }
}

/* 目标站信息架构补充：保留 Buddy 原有紫色/绿色深色主题。 */
.topbar-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.topbar-unit-label, .fixed-unit-label { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; color: var(--text-secondary); background: rgba(114,75,255,.18); font-size: 11px; font-weight: 700; white-space: nowrap; }
.topbar-unit-switch { margin: 0; }
.unit-switch { display: inline-flex; align-items: center; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: rgba(0,0,0,.16); }
.unit-switch button { min-height: 30px; padding: 0 10px; border: 0; border-radius: 7px; color: var(--text-dim); background: transparent; cursor: pointer; font-size: 11px; }
.unit-switch button:hover, .unit-switch button.is-active { color: #fff; background: rgba(114,75,255,.72); }
.notice-button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 9px; border: 1px solid var(--border); border-radius: 9px; color: var(--text-secondary); background: rgba(255,255,255,.04); cursor: pointer; font-size: 12px; }
.notice-button:hover { color: #fff; border-color: var(--border-light); background: rgba(114,75,255,.14); }
.notice-button b { display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; color: #fff; background: var(--green); font-size: 10px; }
.home-dashboard { width: min(100%, 430px); margin-top: 22px; padding: 17px; border-color: rgba(141,232,200,.2); background: linear-gradient(145deg, rgba(20,52,58,.72), rgba(53,42,110,.62)); }
.dashboard-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dashboard-heading strong { display: block; margin-top: 3px; font-size: 16px; }
.dashboard-balance { display: flex; align-items: baseline; gap: 8px; margin: 15px 0 7px; }
.dashboard-balance strong { color: #fff; font-size: 32px; line-height: 1.1; }
.dashboard-balance span { color: var(--signal, var(--green)); font-size: 12px; }
.dashboard-facts { display: flex; flex-wrap: wrap; gap: 14px; color: var(--text-dim); font-size: 11px; }
.dashboard-facts b { margin-left: 4px; color: var(--text-secondary); }
.model-catalog { display: grid; gap: 30px; }
.platform-card { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; padding: 15px 17px; border-color: rgba(141,232,200,.22); background: rgba(20,52,58,.52); }
.platform-card .info-icon { flex: 0 0 auto; }
.platform-card strong { display: block; margin-bottom: 3px; }
.platform-card p { margin: 0; color: var(--text-secondary); font-size: 12px; }
.page-unit-switch { margin-top: 13px; }
.model-directory-group { display: grid; gap: 13px; }
.model-directory-group > .section-title { margin-bottom: 0; }
.model-directory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.model-directory-card { display: flex; flex-direction: column; min-width: 0; padding: 18px; border: 1px solid var(--border); border-radius: 15px; background: linear-gradient(145deg, rgba(53,42,110,.62), rgba(37,39,54,.78)); box-shadow: 0 10px 26px rgba(0,0,0,.15); }
.model-directory-card.is-auto { border-color: rgba(141,232,200,.3); background: linear-gradient(145deg, rgba(20,52,58,.7), rgba(53,42,110,.65)); }
.model-directory-head { display: flex; justify-content: space-between; gap: 12px; }
.model-directory-head h2 { margin: 8px 0 3px; font-size: 17px; overflow-wrap: anywhere; }
.model-directory-head code { color: var(--text-dim); font-size: 11px; overflow-wrap: anywhere; }
.model-directory-status { display: inline-flex; padding: 2px 7px; border-radius: 99px; color: var(--green); background: rgba(40,184,148,.12); font-size: 10px; }
.model-directory-icon { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; color: var(--purple-light); background: rgba(167,139,250,.13); }
.model-directory-price { min-height: 43px; margin: 17px 0 13px; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.7; }
.model-directory-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; color: var(--text-dim); font-size: 11px; }
.model-directory-meta span { padding: 4px 7px; border: 1px solid var(--border); border-radius: 6px; }
.model-directory-card .btn { align-self: flex-start; margin-top: auto; }
.guide-intro, .guide-steps, .guide-manual { padding: 20px; }
.guide-intro > strong { display: block; font-size: 18px; }
.guide-intro > p, .guide-manual p { margin: 7px 0 15px; color: var(--text-secondary); }
.guide-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.guide-steps { display: grid; gap: 0; margin-top: 15px; }
.guide-step { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.guide-step:first-child { padding-top: 0; }
.guide-step:last-child { padding-bottom: 0; border-bottom: 0; }
.guide-step > b { color: var(--purple-light); font-size: 18px; }
.guide-step strong { display: block; margin-bottom: 3px; }
.guide-step p { margin: 0; color: var(--text-secondary); font-size: 12px; }
.guide-manual { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 15px; }
.guide-manual h2 { margin: 5px 0 0; font-size: 20px; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.account-card { min-width: 0; padding: 20px; }
.account-card h2 { margin: 12px 0 5px; font-size: 18px; }
.account-card p { min-height: 42px; margin: 0 0 13px; color: var(--text-secondary); font-size: 12px; }
.account-card > code { display: block; padding: 11px; overflow-wrap: anywhere; border: 1px solid var(--border); border-radius: 8px; color: var(--purple-light); background: rgba(0,0,0,.18); }
.account-actions, .account-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.unsupported-card { margin-top: 15px; padding: 18px 20px; }
.unsupported-card h2 { margin: 0 0 5px; font-size: 17px; }
.unsupported-card p { margin: 0 0 10px; color: var(--text-secondary); font-size: 12px; }
.status-chip { display: inline-flex; padding: 3px 8px; border-radius: 99px; color: var(--orange); background: rgba(255,149,0,.12); font-size: 11px; }
.notice-detail { padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: rgba(0,0,0,.14); }
.notice-detail-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--text-dim); font-size: 11px; }
.notice-detail-meta span:first-child { color: var(--green); }
.notice-detail h3 { margin: 11px 0 7px; font-size: 17px; }
.notice-dialog-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text-dim); font-size: 12px; }
.usage-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 12px; margin-top: 8px; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.filter-group > span { margin-right: 2px; color: var(--text-dim); font-size: 11px; }
.filter-button { min-height: 27px; padding: 0 8px; border: 1px solid var(--border); border-radius: 7px; color: var(--text-secondary); background: rgba(255,255,255,.035); cursor: pointer; font-size: 11px; }
.filter-button:hover, .filter-button.is-active { border-color: rgba(167,139,250,.45); color: #fff; background: rgba(114,75,255,.24); }
@media (max-width: 900px) {
  .topbar-inner { flex-wrap: wrap; gap: 10px 14px; padding: 10px 0; }
  .brand { min-width: auto; }
  /* 覆盖旧版窄屏规则，保留主导航，让移动端仍可访问所有页面。 */
  .topbar-nav { display: flex; order: 3; width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .topbar-tools { margin-left: auto; }
  .model-directory-grid, .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .topbar-tools { gap: 5px; }
  .topbar-unit-switch button { padding: 0 7px; }
  .notice-button span { display: none; }
  .main-shell { width: min(100% - 24px, 1160px); }
  .hero-copy h1, .page-heading h1 { font-size: 31px; }
  .guide-manual { align-items: stretch; flex-direction: column; }
  .guide-manual .btn { width: 100%; }
  .usage-filters { justify-content: flex-start; }
  .filter-group { width: 100%; }
  .filter-button { flex: 1; }
  .notice-dialog-panel { padding: 16px; }
}

/* 目标站结构补齐：只增加布局与交互状态，继续沿用本地紫色/绿色主题。 */
.balance-strip,.agent-notice,.keys-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 0;padding:16px 20px}.balance-strip span,.agent-balance-row span,.agent-calculation span,.keys-toolbar span{display:block;color:var(--text-dim);font-size:12px}.balance-strip strong,.agent-balance-row strong{display:block;margin-top:3px;color:var(--green);font-size:26px}.recharge-panel{margin-top:14px;padding:22px}.panel-description{margin:7px 0 16px;color:var(--text-secondary);font-size:13px}.recharge-plans{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.recharge-plan{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-height:74px;padding:13px 14px;border:1px solid var(--border);border-radius:11px;color:var(--text-secondary);background:rgba(0,0,0,.14);cursor:pointer;text-align:left;transition:.2s}.recharge-plan strong{color:#fff;font-size:14px}.recharge-plan span{color:var(--green);font-size:13px}.recharge-plan del{margin-right:4px;color:var(--text-dim)}.recharge-plan:hover,.recharge-plan.is-selected{border-color:var(--purple-light);background:rgba(114,75,255,.22);box-shadow:0 0 0 2px rgba(167,139,250,.1)}.recharge-pay-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding-top:16px;border-top:1px solid var(--border);color:var(--text-secondary)}.recharge-lower{margin-top:14px}.history-pager{display:flex;align-items:center;gap:7px;margin:14px 0;color:var(--text-dim);font-size:12px}.history-pager span{margin-right:auto}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:132px;padding:20px;border:1px dashed var(--border);border-radius:12px;color:var(--text-dim);text-align:center}.empty-state strong{color:var(--text-secondary)}.agent-layout,.checkin-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin-top:14px}.agent-create-card,.agent-batches-card,.checkin-calendar-card,.checkin-help{padding:22px}.agent-balance-row{display:flex;justify-content:space-between;align-items:center;margin:14px 0;padding:11px 13px;border:1px solid var(--border);border-radius:10px;background:rgba(0,0,0,.13)}.agent-balance-row strong{font-size:20px}.agent-calculation{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:8px 0 13px}.agent-calculation>div{padding:11px 12px;border:1px solid var(--border);border-radius:10px;background:rgba(0,0,0,.13)}.agent-calculation strong{display:block;margin-top:4px;color:var(--purple-light);font-size:16px}.agent-batches{display:flex;flex-direction:column;gap:10px}.agent-code-tools{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:18px;padding-top:15px;border-top:1px solid var(--border)}.agent-code-tools strong{width:100%}.agent-code-tools span{flex:1;color:var(--text-dim);font-size:12px}.account-service-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:14px;margin-top:15px}.account-service-card{padding:20px}.account-service-card h2{margin:6px 0}.account-service-card p{color:var(--text-secondary);font-size:13px}.account-service-card .account-links{margin-top:15px}.checkin-heading,.key-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.checkin-heading h2{margin:5px 0 0;font-size:23px}.checkin-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:18px 0}.checkin-stats>div{padding:12px 10px;border:1px solid var(--border);border-radius:10px;background:rgba(0,0,0,.13);text-align:center}.checkin-stats strong{display:block;color:var(--purple-light);font-size:22px}.checkin-stats span{display:block;color:var(--text-dim);font-size:11px}.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;margin:10px 0;color:var(--text-secondary)}.calendar-toolbar .icon-btn{width:30px;height:30px}.calendar-weekdays,.checkin-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.calendar-weekdays{margin-bottom:6px;color:var(--text-dim);font-size:11px;text-align:center}.calendar-empty{min-height:34px}.calendar-day{min-height:34px;border:1px solid transparent;border-radius:8px;color:var(--text-secondary);background:rgba(255,255,255,.035);cursor:pointer}.calendar-day:hover,.calendar-day.is-today{border-color:var(--purple-light);color:#fff;background:rgba(114,75,255,.25)}.checkin-help h2{margin:6px 0 10px;font-size:18px}.checkin-help ul{margin:0;padding-left:19px;color:var(--text-secondary);font-size:13px}.checkin-help li+li{margin-top:10px}.keys-toolbar>div{display:flex;flex-direction:column;gap:5px}.key-card{padding:20px}.key-card h2{margin:5px 0 0;font-size:19px}.key-card p{color:var(--text-secondary);font-size:13px}.key-card code{display:block;overflow-wrap:anywhere;padding:12px;border:1px solid var(--border);border-radius:9px;color:var(--purple-light);background:rgba(0,0,0,.18)}.key-card-meta{display:flex;justify-content:space-between;gap:10px;margin-top:10px;color:var(--text-dim);font-size:11px}.keys-list{display:grid;gap:12px}.topbar-nav a[data-page-link=agent]{color:var(--green)}
@media (max-width:900px){.recharge-plans{grid-template-columns:repeat(2,minmax(0,1fr))}.agent-layout,.checkin-layout,.account-service-grid{grid-template-columns:1fr}}
@media (max-width:560px){.balance-strip,.agent-notice,.keys-toolbar,.recharge-pay-row{align-items:flex-start;flex-direction:column}.recharge-plans{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.recharge-plan{padding:10px;min-height:68px}.agent-calculation,.checkin-stats{gap:6px}.agent-create-card,.agent-batches-card,.checkin-calendar-card,.checkin-help,.recharge-panel{padding:16px}.calendar-weekdays,.checkin-calendar{gap:4px}.calendar-day{min-height:30px;padding:0;font-size:12px}}


/* 2026-09-06: 首页按 API GET 参考结构重排；保留 Buddy 的薄荷绿 / 紫色品牌色。 */
body[data-active-page="home"] {
  --bg: #fbfaf6;
  --surface: #fffdf9;
  --surface-light: #f1f6f2;
  --elevated: rgba(16, 32, 29, .035);
  --border: #d1ddd6;
  --border-light: #a9cdbf;
  --text: #10201d;
  --text-secondary: #5d6d66;
  --text-dim: #87958e;
  --line: #d9e2dc;
  --signal: #087255;
  --signal-ink: #064c3b;
  --shadow: 0 18px 44px rgba(26, 56, 43, .11);
  color: var(--text);
  background: #fbfaf6;
}
body[data-active-page="home"] .topbar { border-bottom: 1px solid #d0ddd6; background: rgba(251, 250, 246, .96); box-shadow: none; backdrop-filter: none; }
body[data-active-page="home"] .topbar-inner { width: min(1110px, calc(100% - 32px)); min-height: 72px; gap: 0; }
body[data-active-page="home"] .brand-logo { width: 34px; height: 34px; border-color: #dce7e0; border-radius: 10px; color: #264f44; background: #fffdf9; box-shadow: 0 4px 13px rgba(38, 91, 69, .1); }
body[data-active-page="home"] .brand-copy strong { color: #0b5b45; font-family: Georgia, "Times New Roman", serif; letter-spacing: .04em; }
body[data-active-page="home"] .brand-copy small { color: #728178; letter-spacing: 0; }
body[data-active-page="home"] .topbar-nav, body[data-active-page="home"] .topbar-tools, body[data-active-page="home"] .chat-link { display: none; }
.home-utility { display: none; margin-left: auto; align-items: flex-end; flex-direction: column; gap: 0; color: #6b766f; font-size: 12px; line-height: 1.35; text-align: right; }
body[data-active-page="home"] .home-utility { display: flex; }
.home-utility strong { color: #08654d; font-weight: 600; }
.home-utility a { margin-top: 4px; padding: 6px 12px; border: 1px solid #c6d7ce; border-radius: 8px; color: #087255; background: #fffdf9; box-shadow: 0 3px 10px rgba(28, 72, 53, .06); }
body[data-active-page="home"] .main-shell { width: 100%; max-width: none; padding: 0 0 64px; }
body[data-active-page="home"] .page-section[data-page="home"] { width: 100%; }
body[data-active-page="home"] .service-notice { width: 100%; min-height: 42px; justify-content: center; padding: 0 16px; border-width: 1px 0; border-radius: 0; color: #315b4d; background: #edf8f2; font-size: 12px; }
body[data-active-page="home"] .service-notice strong, body[data-active-page="home"] .notice-icon { color: #e85f67; }
body[data-active-page="home"] .service-notice span:last-child { max-width: min(760px, 70vw); }
body[data-active-page="home"] .service-intro { max-width: 820px; padding: 60px 16px 28px; }
body[data-active-page="home"] .service-intro-mark, body[data-active-page="home"] .service-intro .hero-kicker, body[data-active-page="home"] .service-intro .hero-status, body[data-active-page="home"] .home-dashboard { display: none; }
body[data-active-page="home"] .service-intro h1 { margin: 0 0 10px; color: #101b19; font-size: clamp(30px, 4vw, 40px); font-weight: 760; letter-spacing: -.035em; }
body[data-active-page="home"] .service-intro > p:not(.hero-kicker) { margin: 0; color: #64736c; font-size: 14px; }
body[data-active-page="home"] .customer-entry { width: min(680px, calc(100% - 32px)); max-width: none; margin: 0 auto 40px; padding: 24px; border-color: #cbd9d1; border-radius: 14px; color: #10201d; background: #fffdf9; box-shadow: 0 18px 42px rgba(27, 58, 44, .11); }
body[data-active-page="home"] .customer-entry-intro { padding: 0 0 14px; text-align: left; }
body[data-active-page="home"] .customer-entry-intro strong { display: none; }
body[data-active-page="home"] .customer-entry-intro p { margin: 0; padding: 10px 12px; border: 1px solid #d8e2dc; border-radius: 10px; color: #52635b; background: #f4f7f4; font-size: 12px; line-height: 1.55; }
body[data-active-page="home"] .customer-tabs { gap: 0; padding: 4px; border-color: #dbe3de; border-radius: 13px; background: #ebefeb; }
body[data-active-page="home"] .customer-tab { min-height: 38px; border-color: transparent; border-radius: 9px; color: #53635c; font-size: 12px; font-weight: 600; }
body[data-active-page="home"] .customer-tab:hover { color: #176d58; background: #f4f8f4; }
body[data-active-page="home"] .customer-tab.is-active { border-color: #c5d9cf; color: #087255; background: #fffdf9; box-shadow: 0 3px 8px rgba(40, 81, 61, .1); }
body[data-active-page="home"] .customer-panel { padding: 25px 0 2px; }
body[data-active-page="home"] .customer-panel-heading { display: block; }
body[data-active-page="home"] .customer-panel-heading .card-eyebrow, body[data-active-page="home"] .customer-panel-heading .card-icon { display: none; }
body[data-active-page="home"] .customer-panel-heading h2 { margin: 0 0 7px; color: #101b19; font-size: 20px; }
body[data-active-page="home"] .customer-panel .muted { margin: 0 0 18px; color: #66756e; font-size: 12px; }
body[data-active-page="home"] .activation-callout { margin: 21px 0 18px; padding: 16px 18px; border: 1px solid #9ecab8; border-radius: 16px; color: #215b49; background: #eaf6f1; }
body[data-active-page="home"] .activation-callout strong { display: block; margin-bottom: 5px; font-size: 12px; }
body[data-active-page="home"] .activation-callout p { margin: 0; font-size: 12px; line-height: 1.7; }
body[data-active-page="home"] .activation-step { padding: 18px; border: 1px solid #d0ded6; border-radius: 16px; background: #f4f8f5; }
body[data-active-page="home"] .step-label { display: block; margin-bottom: 3px; color: #087255; font-size: 12px; font-weight: 700; }
body[data-active-page="home"] .activation-step h3 { margin: 0 0 17px; color: #17211e; font-size: 17px; }
body[data-active-page="home"] .customer-panel .stack-form { max-width: none; }
body[data-active-page="home"] .customer-panel .stack-form label { color: #22322c; }
body[data-active-page="home"] .customer-panel .stack-form input { min-height: 46px; border-color: #ccd6d0; color: #1c2924; background: #fffdf9; }
body[data-active-page="home"] .customer-panel .stack-form input:focus { border-color: #78b9a0; box-shadow: 0 0 0 3px rgba(93, 178, 144, .15); }
body[data-active-page="home"] .customer-panel .btn-primary, body[data-active-page="home"] .customer-panel .btn-success { color: #f6fffb; background: #08684f; box-shadow: 0 9px 18px rgba(8, 104, 79, .16); }
body[data-active-page="home"] .customer-panel .btn-primary:hover, body[data-active-page="home"] .customer-panel .btn-success:hover { background: #075a45; }
body[data-active-page="home"] .customer-panel .field-hint, body[data-active-page="home"] .customer-panel .card-footnote { color: #94a099; }
body[data-active-page="home"] .customer-panel .online-recharge, body[data-active-page="home"] .customer-panel .customer-result-summary, body[data-active-page="home"] .customer-panel .recovery-card { border-color: #b9d8ca; color: #315b4d; background: #eef8f3; }
body[data-active-page="home"] .config-section, body[data-active-page="home"] .section-block, body[data-active-page="home"] .pricing-section, body[data-active-page="home"] .info-grid { width: min(960px, calc(100% - 32px)); margin-right: auto; margin-left: auto; }
body[data-active-page="home"] .config-section { margin-top: 0; }
body[data-active-page="home"] .config-section > .page-heading h1, body[data-active-page="home"] .config-section > .page-heading p { color: #17211e; }
body[data-active-page="home"] .config-section .glass-card, body[data-active-page="home"] .section-block .glass-card, body[data-active-page="home"] .pricing-section .glass-card, body[data-active-page="home"] .info-card { color: #17211e; background: #fffdf9; }
@media (max-width: 620px) {
  body[data-active-page="home"] .topbar-inner { width: calc(100% - 24px); min-height: 68px; }
  body[data-active-page="home"] .brand-copy small { display: none; }
  body[data-active-page="home"] .home-utility { max-width: 58%; font-size: 10px; }
  body[data-active-page="home"] .home-utility span { display: none; }
  body[data-active-page="home"] .home-utility a { margin-top: 3px; padding: 5px 8px; }
  body[data-active-page="home"] .service-notice { justify-content: flex-start; padding: 9px 12px; line-height: 1.45; }
  body[data-active-page="home"] .service-notice span:last-child { max-width: none; white-space: normal; }
  body[data-active-page="home"] .service-intro { padding: 42px 12px 24px; }
  body[data-active-page="home"] .customer-entry { width: calc(100% - 24px); padding: 14px; }
  body[data-active-page="home"] .customer-panel { padding-top: 22px; }
  body[data-active-page="home"] .activation-callout, body[data-active-page="home"] .activation-step { border-radius: 13px; padding: 14px; }
  body[data-active-page="home"] .customer-tab { min-height: 42px; padding: 0 3px; font-size: 11px; }
}


/* 2026-09-06: 配置区域改为“全自动 / 手动”二选一，保留 Buddy 品牌配色。 */
.config-ready-heading { margin: 0 0 22px; text-align: left; }
.config-ready-heading h2 { margin: 5px 0 4px; color: #f3fff9; font-size: 20px; }
.config-ready-heading p, .config-methods-description { margin: 0; color: var(--text-secondary); font-size: 12px; }
.config-method-choice { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; margin: 0; }
.config-choice-card { display: flex; align-items: center; justify-content: flex-start; gap: 12px; min-height: 80px; padding: 13px 16px; border: 1px solid rgba(177, 231, 218, .25); border-radius: 15px; color: #c8d9d3; background: rgba(255, 255, 255, .025); text-align: left; }
.config-choice-card:hover { border-color: rgba(141, 232, 200, .65); background: rgba(141, 232, 200, .08); }
.config-choice-card.is-active { border-color: rgba(255, 201, 82, .82); color: #fff8df; background: linear-gradient(135deg, rgba(255, 207, 94, .28), rgba(114, 75, 255, .16)); box-shadow: 0 10px 24px rgba(255, 190, 55, .1), inset 0 1px 0 rgba(255,255,255,.16); }
.config-choice-icon { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 22px; }
.config-choice-icon-auto { color: #5a3a00; background: #ffca4f; }
.config-choice-icon-manual { color: #147a61; background: #b5ead8; }
.config-choice-copy { display: grid; gap: 3px; min-width: 0; }
.config-choice-copy strong { font-size: 15px; }
.config-choice-copy small { color: currentColor; font-size: 11px; opacity: .78; }
.config-choice-vs { color: #d29a3a; font-size: 22px; font-weight: 800; }
.config-methods-description { margin: -14px 0 18px; line-height: 1.7; }
.config-panels { min-height: 0; padding-top: 18px; }
.config-panel { text-align: left; }
.config-panel-heading { display: flex; align-items: flex-start; gap: 13px; }
.config-panel-icon { display: grid; flex: 0 0 46px; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #5b3b00; background: #f6c64f; font-size: 25px; }
.config-panel-icon-manual { color: #087255; background: #b9e9d8; }
.config-panel-heading h2 { margin: 5px 0 4px; color: #fff8df; font-size: 18px; }
.config-panel-heading p { max-width: 620px; margin: 0; color: var(--text-secondary); line-height: 1.75; }
.config-recommendation { display: inline-flex; padding: 3px 9px; border-radius: 999px; color: #664600; background: #f7d67c; font-size: 11px; font-weight: 700; }
.config-recommendation-manual { color: #176b57; background: #ccefe2; }
.config-auto-notice { display: flex; gap: 9px; margin: 20px 0; padding: 12px 14px; border: 1px solid rgba(246, 198, 79, .42); border-radius: 12px; color: #f7dfaa; background: rgba(255, 207, 94, .09); }
.config-auto-notice p { margin: 0; line-height: 1.7; }
.auto-config-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.auto-config-step { min-width: 0; padding: 16px; border: 1px solid rgba(246, 198, 79, .48); border-radius: 14px; background: rgba(255, 253, 246, .045); }
.auto-config-step-number { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff8e4; background: #b97908; font-weight: 800; }
.auto-config-step-label { margin-top: 10px; color: #f4c85a; font-size: 11px; font-weight: 700; }
.auto-config-step h3 { margin: 3px 0 9px; color: #fff8df; font-size: 15px; }
.auto-config-step p { min-height: 58px; margin: 0 0 14px; line-height: 1.7; }
.step-action { width: 100%; }
.step-action-muted { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 12px; border: 1px solid rgba(246, 198, 79, .35); border-radius: 9px; color: #f1d58e; background: rgba(255, 207, 94, .08); font-size: 12px; font-weight: 650; }
.prompt-preview { margin-top: 14px; color: var(--text-secondary); font-size: 12px; }
.prompt-preview summary { cursor: pointer; }
.prompt-preview .ai-config-prompt { margin-top: 10px; }
.config-manual-panel .config-panel-heading h2 { color: #dffcf0; }
.config-manual-panel .download-models-btn { margin: 20px 0 12px; }
.manual-config-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.manual-config-actions .quick-config-btn { min-height: 44px; padding: 0 10px; font-size: 12px; }
.quick-config-json { color: #dffcf0; border: 1px solid rgba(141, 232, 200, .35); background: rgba(141, 232, 200, .1); }
.config-workspace > .model-capabilities { margin: 20px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(177, 231, 218, .1); border-bottom: 0; }
.config-workspace > .model-capabilities summary { cursor: pointer; color: var(--text-secondary); font-size: 12px; font-weight: 650; }
body[data-active-page="home"] .pricing-section { display: none !important; }
@media (max-width: 620px) {
  .config-workspace { padding: 20px 16px 22px; }
  .config-method-choice { grid-template-columns: 1fr; gap: 8px; }
  .config-choice-vs { display: none; }
  .config-choice-card { min-height: 70px; }
  .auto-config-steps, .manual-config-actions { grid-template-columns: 1fr; }
  .auto-config-step p { min-height: 0; }
  .config-panel-heading h2 { font-size: 16px; }
}


/* 首页配置区使用现有 Buddy 浅色首页主题，避免配置工作区被旧深色组件覆盖。 */
body[data-active-page="home"] .config-workspace {
  color: #17211e;
  border-color: #d3dfd8;
  background: #fffdf9;
  box-shadow: 0 14px 32px rgba(50, 86, 70, .08);
}
body[data-active-page="home"] .config-ready-heading h2,
body[data-active-page="home"] .config-methods-heading,
body[data-active-page="home"] .config-panel-heading h2,
body[data-active-page="home"] .auto-config-step h3 {
  color: #17211e;
}
body[data-active-page="home"] .config-ready-heading p,
body[data-active-page="home"] .config-methods-description,
body[data-active-page="home"] .config-panel-heading p,
body[data-active-page="home"] .prompt-preview,
body[data-active-page="home"] .config-workspace > .model-capabilities summary {
  color: #66756e;
}
body[data-active-page="home"] .config-choice-card {
  border-color: #b9d8cb;
  color: #42655a;
  background: #f2faf6;
}
body[data-active-page="home"] .config-choice-card:hover {
  border-color: #79bda4;
  color: #176d58;
  background: #edf8f2;
}
body[data-active-page="home"] .config-choice-card.is-active {
  border-color: #e9b73e;
  color: #5d430d;
  background: linear-gradient(135deg, #fff6d8, #f7f0e1);
  box-shadow: 0 10px 24px rgba(181, 132, 30, .11), inset 0 1px 0 rgba(255,255,255,.8);
}
body[data-active-page="home"] .config-choice-copy small {
  color: currentColor;
}
body[data-active-page="home"] .config-choice-vs {
  color: #a77a2c;
}
body[data-active-page="home"] .config-panel-heading h2 {
  color: #16231e;
}
body[data-active-page="home"] .config-auto-notice {
  border-color: #e6c982;
  color: #74551b;
  background: #fffaf0;
}
body[data-active-page="home"] .auto-config-step {
  border-color: #e3bd5a;
  background: #fffdf8;
}
body[data-active-page="home"] .auto-config-step-label {
  color: #a66b0b;
}
body[data-active-page="home"] .auto-config-step h3 {
  color: #1b2a24;
}
body[data-active-page="home"] .auto-config-step p {
  color: #64756d;
}
body[data-active-page="home"] .step-action-muted {
  border-color: #e2c170;
  color: #8a6016;
  background: #fff9e9;
}
body[data-active-page="home"] .config-manual-panel .config-panel-heading h2 {
  color: #176d58;
}
body[data-active-page="home"] .config-workspace > .model-capabilities {
  border-top-color: #dbe6df;
}
body[data-active-page="home"] .config-workspace > .model-capabilities .muted {
  color: #66756e;
}

/* 2026-09-06: 首页配置区按参考图收紧宽度和上下间距，避免配置工作区被推到很下面。 */
body[data-active-page="home"] .customer-entry,
body[data-active-page="home"] .config-section {
  width: min(620px, calc(100% - 32px));
}
body[data-active-page="home"] .customer-entry {
  margin-bottom: 10px;
}
body[data-active-page="home"] .config-section {
  margin-top: 0;
  padding-top: 10px;
  border-top: 0;
}
body[data-active-page="home"] #configResult.config-workspace {
  width: 100%;
  margin: 0;
  padding: 22px 20px 24px;
}
body[data-active-page="home"] .config-methods-heading {
  margin-top: 0;
  text-align: left;
}
body[data-active-page="home"] .config-methods-description {
  margin: 0 0 18px;
}
@media (max-width: 620px) {
  body[data-active-page="home"] .customer-entry,
  body[data-active-page="home"] .config-section {
    width: calc(100% - 24px);
  }
  body[data-active-page="home"] #configResult.config-workspace {
    padding: 20px 16px 22px;
  }
}

/* 2026-09-06: 将首次开通与配置工作区连接成一个连续卡片，并按配置方式区分配色。 */
body[data-active-page="home"] .customer-entry {
  margin-bottom: 0;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 14px 32px rgba(50, 86, 70, .08);
}
body[data-active-page="home"] .config-section {
  padding-top: 0;
}
body[data-active-page="home"] .config-section::before {
  display: none;
}
body[data-active-page="home"] #configResult.config-workspace {
  border-top: 0;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 14px 32px rgba(50, 86, 70, .08);
}

body[data-active-page="home"] .config-choice-card[data-config-method="manual"] {
  border-color: #b9d8cb;
  color: #245f50;
  background: #eff9f4;
}
body[data-active-page="home"] .config-choice-card[data-config-method="manual"]:hover {
  border-color: #63b89b;
  color: #0d674f;
  background: #e4f5ed;
}
body[data-active-page="home"] .config-choice-card[data-config-method="manual"].is-active {
  border-color: #36a781;
  color: #0b604b;
  background: linear-gradient(135deg, #dff7ec, #c9eddf);
  box-shadow: 0 10px 24px rgba(30, 132, 98, .14), inset 0 1px 0 rgba(255, 255, 255, .88);
}
body[data-active-page="home"] .config-choice-card[data-config-method="auto"] {
  border-color: #ead9aa;
  color: #6b511a;
  background: #fffaf0;
}
body[data-active-page="home"] .config-choice-card[data-config-method="auto"]:hover {
  border-color: #d9aa3b;
  color: #5d430d;
  background: #fff5d9;
}
body[data-active-page="home"] .config-choice-card[data-config-method="auto"].is-active {
  border-color: #e1ad2f;
  color: #5d430d;
  background: linear-gradient(135deg, #fff3c6, #f9e7aa);
  box-shadow: 0 10px 24px rgba(181, 132, 30, .14), inset 0 1px 0 rgba(255, 255, 255, .88);
}
body[data-active-page="home"] .config-choice-card[data-config-method="manual"] .config-choice-copy small,
body[data-active-page="home"] .config-choice-card[data-config-method="auto"] .config-choice-copy small {
  color: currentColor;
  opacity: .86;
}
body[data-active-page="home"] .config-auto-notice,
body[data-active-page="home"] .config-auto-notice p {
  color: #6b511a;
}
body[data-active-page="home"] .config-auto-notice {
  border-color: #e5c56c;
  background: #fff8e5;
}
body[data-active-page="home"] .auto-config-step p {
  color: #56665f;
}
body[data-active-page="home"] .config-manual-panel .download-models-btn {
  color: #f6fffb;
  background: #087255;
  box-shadow: 0 9px 18px rgba(8, 114, 85, .16);
}
body[data-active-page="home"] .config-manual-panel .quick-config-btn {
  border-color: #b9d8cb;
  color: #176d58;
  background: #f2faf6;
}
body[data-active-page="home"] .config-manual-panel .quick-config-btn:hover {
  border-color: #63b89b;
  background: #e4f5ed;
}
@media (max-width: 620px) {
  body[data-active-page="home"] .customer-entry {
    border-radius: 13px 13px 0 0;
  }
  body[data-active-page="home"] #configResult.config-workspace {
    border-radius: 0 0 13px 13px;
  }
}
/* 2026-09-06: 去掉连续首页卡片连接处的横向边线，让上下区域真正合并成一个卡片。 */
body[data-active-page="home"] .customer-entry {
  border-bottom-width: 0;
}

/* 2026-09-06: 配置流程按新版参考图重排，保留现有浅色 Buddy 配色。 */
body[data-active-page="home"] .auto-config-step-wide,
body[data-active-page="home"] .manual-config-step-wide {
  grid-column: 1 / -1;
}
body[data-active-page="home"] .auto-config-step,
body[data-active-page="home"] .manual-config-step {
  min-width: 0;
  padding: 16px;
  border-radius: 14px;
}
body[data-active-page="home"] .auto-config-step-wide,
body[data-active-page="home"] .manual-config-step-wide {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
}
body[data-active-page="home"] .auto-config-step-wide .auto-config-step-number,
body[data-active-page="home"] .manual-config-step-wide .manual-config-step-number {
  grid-row: 1 / span 4;
}
body[data-active-page="home"] .auto-config-step-wide .auto-config-step-label,
body[data-active-page="home"] .manual-config-step-wide .manual-config-step-label,
body[data-active-page="home"] .auto-config-step-wide h3,
body[data-active-page="home"] .manual-config-step-wide h3,
body[data-active-page="home"] .auto-config-step-wide p,
body[data-active-page="home"] .manual-config-step-wide p,
body[data-active-page="home"] .auto-config-step-wide .step-action,
body[data-active-page="home"] .manual-config-step-wide .step-action {
  grid-column: 2;
}
body[data-active-page="home"] .manual-config-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
body[data-active-page="home"] .manual-config-step {
  border: 1px solid #9ed6c1;
  background: #fbfffd;
}
body[data-active-page="home"] .manual-config-step-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #f2fff9;
  background: #087255;
  font-weight: 800;
}
body[data-active-page="home"] .manual-config-step-label {
  margin-top: 10px;
  color: #087255;
  font-size: 11px;
  font-weight: 700;
}
body[data-active-page="home"] .manual-config-step h3 {
  margin: 3px 0 9px;
  color: #173e32;
  font-size: 15px;
}
body[data-active-page="home"] .manual-config-step p {
  min-height: 42px;
  margin: 0 0 14px;
  color: #64756d;
  line-height: 1.7;
}
body[data-active-page="home"] .manual-platform-downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
body[data-active-page="home"] .manual-platform-downloads .quick-config-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-height: 54px;
  padding: 8px 11px;
  text-align: left;
}
body[data-active-page="home"] .manual-platform-downloads .quick-config-btn > span:first-child {
  display: grid;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: #f2fff9;
  background: #087255;
  font-size: 16px;
}
body[data-active-page="home"] .manual-platform-downloads .quick-config-btn > span:last-child {
  display: grid;
  gap: 2px;
}
body[data-active-page="home"] .manual-platform-downloads .quick-config-btn strong {
  color: #176d58;
  font-size: 12px;
}
body[data-active-page="home"] .manual-platform-downloads .quick-config-btn small {
  color: #6d8178;
  font-size: 10px;
  font-weight: 500;
}
body[data-active-page="home"] .manual-config-step .step-action-muted {
  border-color: #b9d8cb;
  color: #176d58;
  background: #f0faf5;
}
body[data-active-page="home"] .auto-config-step-wide .step-action-muted {
  justify-content: flex-start;
  width: fit-content;
  min-width: 220px;
  padding: 0 14px;
}
body[data-active-page="home"] .manual-legacy-tools[hidden] {
  display: none !important;
}
@media (max-width: 620px) {
  body[data-active-page="home"] .auto-config-step-wide,
  body[data-active-page="home"] .manual-config-step-wide {
    display: block;
  }
  body[data-active-page="home"] .auto-config-step-wide .auto-config-step-number,
  body[data-active-page="home"] .manual-config-step-wide .manual-config-step-number,
  body[data-active-page="home"] .auto-config-step-wide .auto-config-step-label,
  body[data-active-page="home"] .manual-config-step-wide .manual-config-step-label,
  body[data-active-page="home"] .auto-config-step-wide h3,
  body[data-active-page="home"] .manual-config-step-wide h3,
  body[data-active-page="home"] .auto-config-step-wide p,
  body[data-active-page="home"] .manual-config-step-wide p,
  body[data-active-page="home"] .auto-config-step-wide .step-action,
  body[data-active-page="home"] .manual-config-step-wide .step-action {
    grid-column: auto;
  }
  body[data-active-page="home"] .manual-platform-downloads {
    grid-template-columns: 1fr;
  }
  body[data-active-page="home"] .auto-config-step-wide .step-action-muted {
    width: 100%;
    min-width: 0;
  }
}


/* 积分明细独立验证页：保留参考图的浅色卡片，但不再使用弹窗。 */
.details-gate-page { min-height: calc(100vh - 180px); display: grid; place-items: center; padding: 28px 0 54px; }
.details-gate-shell { width: min(100%, 520px); }
.details-gate-panel { border: 1px solid #cbd9d1; border-radius: 16px; color: #18241f; background: #fffdf9; box-shadow: 0 24px 70px rgba(32, 66, 53, .2); display: grid; gap: 14px; padding: 30px; }
.details-gate-panel { display: grid; gap: 14px; padding: 26px; }
.details-gate-brand { display: flex; align-items: center; gap: 9px; color: #09684f; font-size: 15px; }
.details-gate-brand small { display: block; margin-top: 2px; color: #718078; font-size: 10px; font-weight: 500; }
.details-gate-mark { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #9ccbb7; border-radius: 9px; color: #087255; background: #edf8f1; font-weight: 800; }
.details-gate-panel .dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.details-gate-panel h1 { margin: 2px 0 0; color: #17211e; font-size: 25px; }
.details-gate-description { margin: 0; color: #53645c; font-size: 12px; line-height: 1.75; }
.details-gate-tip { padding: 12px 13px; border: 1px solid #b9d8ca; border-radius: 12px; color: #315b4d; background: #eef8f3; font-size: 11px; line-height: 1.7; }
.details-gate-form { display: grid; gap: 8px; }
.details-gate-form label { color: #263b32; font-size: 12px; font-weight: 600; }
.details-gate-form input { min-height: 43px; padding: 0 12px; border: 1px solid #d5dfd9; border-radius: 8px; outline: none; color: #20342b; background: #f8faf7; font-size: 13px; letter-spacing: .08em; }
.details-gate-form input:focus { border-color: #79b99f; box-shadow: 0 0 0 3px rgba(93, 178, 144, .15); background: #fff; }
.details-gate-form .btn-success { margin-top: 4px; color: #f6fffb; background: #08684f; box-shadow: 0 9px 18px rgba(8, 104, 79, .16); }
.details-gate-message { min-height: 18px; margin: 0; color: #087255; font-size: 12px; line-height: 1.5; }
.details-gate-message.error { color: #b0443e; }
.details-gate-back { justify-self: start; margin-top: 2px; }
.details-gate-footnote { margin: 0; color: #86938d; font-size: 11px; line-height: 1.6; }
@media (max-width: 620px) { .details-gate-page { min-height: calc(100vh - 130px); padding-top: 18px; } .details-gate-panel { padding: 20px; } }

/* Buddy 深色模型列表：更接近截图中的分组表格样式 */
body[data-active-page="models"] .pricing-section {
  margin-top: 14px;
}
body[data-active-page="models"] .pricing-title {
  margin-bottom: 16px;
}
body[data-active-page="models"] .pricing-title .section-title {
  align-items: center;
}
body[data-active-page="models"] .pricing-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 16px;
  margin-bottom: 14px;
}
body[data-active-page="models"] .pricing-formula,
body[data-active-page="models"] .pricing-notice {
  border: 1px solid rgba(167, 139, 250, .16);
  background: linear-gradient(180deg, rgba(52, 50, 84, .9), rgba(39, 38, 62, .94));
}
body[data-active-page="models"] .pricing-formula code {
  display: block;
  margin-top: 8px;
  padding: 12px 14px;
  white-space: normal;
  line-height: 1.7;
}
body[data-active-page="models"] .table-card.pricing-table-card {
  overflow: hidden;
  border-color: rgba(167, 139, 250, .15);
  background: linear-gradient(180deg, rgba(48, 46, 74, .96), rgba(38, 37, 56, .98));
}
body[data-active-page="models"] .table-heading {
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
body[data-active-page="models"] .table-heading h3 {
  margin: 0;
  font-size: 18px;
}
body[data-active-page="models"] .table-heading span,
body[data-active-page="models"] .fixed-unit-label,
body[data-active-page="models"] .pricing-footnote {
  color: rgba(255, 255, 255, .55);
}
body[data-active-page="models"] .table-wrap {
  overflow-x: auto;
}
body[data-active-page="models"] .pricing-table {
  min-width: 1000px;
  border-collapse: separate;
  border-spacing: 0;
}
body[data-active-page="models"] .pricing-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  color: rgba(255, 255, 255, .44);
  background: rgba(43, 42, 67, .98);
}
body[data-active-page="models"] .pricing-table tbody td {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, .05);
  text-align: center;
  vertical-align: middle;
}
body[data-active-page="models"] .pricing-table tbody tr:hover td {
  background: rgba(255, 255, 255, .02);
}
body[data-active-page="models"] .pricing-group-row td {
  padding: 10px 16px;
  text-align: left !important;
  background: linear-gradient(180deg, rgba(63, 61, 97, .9), rgba(50, 48, 78, .92));
}
body[data-active-page="models"] .pricing-group-row td strong {
  display: inline-block;
  margin-right: 10px;
  color: #c7b8ff;
  font-size: 12px;
  letter-spacing: .8px;
}
body[data-active-page="models"] .pricing-group-row td small {
  color: rgba(255, 255, 255, .42);
}
body[data-active-page="models"] .pricing-table td:first-child {
  text-align: left;
}
body[data-active-page="models"] .pricing-table td:first-child strong {
  display: block;
  font-size: 14px;
}
body[data-active-page="models"] .pricing-model-id {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, .4);
  font-size: 12px;
}
body[data-active-page="models"] .pricing-model-note {
  display: block;
  margin-top: 3px;
  color: #f0c36d;
  font-size: 11px;
}
body[data-active-page="models"] .pricing-context {
  color: #fff;
  font-weight: 700;
}
body[data-active-page="models"] .pricing-abilities {
  text-align: center;
}
body[data-active-page="models"] .pricing-abilities-list {
  display: inline-flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
body[data-active-page="models"] .pricing-capability {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(120, 141, 255, .45);
  background: rgba(114, 75, 255, .08);
  color: #9fb3ff;
  font-size: 11px;
}
body[data-active-page="models"] .pricing-capability.is-positive {
  border-color: rgba(41, 184, 148, .45);
  background: rgba(40, 184, 148, .08);
  color: #6fe0c0;
}
body[data-active-page="models"] .pricing-dynamic-price {
  color: #ad93ff;
  font-weight: 700;
}
body[data-active-page="models"] .pricing-footnote {
  margin-top: 12px;
  font-size: 12px;
}
body[data-active-page="guide"] .guide-intro,
body[data-active-page="guide"] .guide-steps,
body[data-active-page="guide"] .guide-manual {
  border-color: rgba(167, 139, 250, .16);
  background: linear-gradient(180deg, rgba(52, 50, 84, .9), rgba(39, 38, 62, .94));
}
body[data-active-page="guide"] .guide-actions,
body[data-active-page="guide"] .guide-config-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
body[data-active-page="guide"] .guide-manual h2 {
  margin-top: 4px;
}
body[data-active-page="guide"] .guide-manual p {
  max-width: 760px;
}
@media (max-width: 980px) {
  body[data-active-page="models"] .pricing-intro {
    grid-template-columns: 1fr;
  }
}
.copy-fallback-textarea {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 20px;
  width: min(760px, calc(100vw - 32px));
  min-height: 150px;
  padding: 14px;
  border: 1px solid rgba(167, 139, 250, .55);
  border-radius: 12px;
  color: var(--text-primary);
  background: #26243d;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
  transform: translateX(-50%);
  resize: vertical;
}

/* 2026-09-07: Buddy 客户端统一视觉层
 * 保留现有页面结构、交互和数据逻辑，只把不同历史版本的配色收敛到一套深石墨主题。
 */
:root {
  --canvas-dark: #0a0e10;
  --canvas-dark-soft: #0f1517;
  --surface-card-dark: #151c1f;
  --surface-elevated-dark: #1d2729;
  --surface-inset: #101719;
  --line-dark: rgba(220, 242, 233, .12);
  --line-strong: rgba(220, 242, 233, .2);
  --text-primary: #f1f7f4;
  --text-secondary: #a6b8b0;
  --text-dim: #74877f;
  --signal: #77e0b2;
  --signal-strong: #a4f4ca;
  --primary: #d9f36d;
  --primary-active: #c4e055;
  --primary-ink: #11170f;
  --warning-soft: #f0c66d;
  --danger-soft: #ff8c87;
  --purple: #a99bff;
  --purple-light: #c8bfff;
  --purple-dark: #7464e9;
  --bg: var(--canvas-dark);
  --surface: var(--surface-card-dark);
  --elevated: rgba(255, 255, 255, .045);
  --border: var(--line-dark);
  --shadow: 0 18px 50px rgba(0, 0, 0, .28);
}

html { background: var(--canvas-dark); }
body {
  min-height: 100vh;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 12% -8%, rgba(119, 224, 178, .12), transparent 32rem),
    radial-gradient(circle at 88% 2%, rgba(217, 243, 109, .07), transparent 28rem),
    linear-gradient(180deg, #0a0e10 0%, #0d1315 48%, #0a0e10 100%);
}
body::before { opacity: .18; background-image: linear-gradient(rgba(210, 238, 225, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(210, 238, 225, .04) 1px, transparent 1px); background-size: 46px 46px; }

.topbar {
  border-bottom: 1px solid var(--line-dark);
  background: rgba(10, 14, 16, .86);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}
.topbar-inner { width: min(1200px, calc(100% - 48px)); min-height: 68px; gap: 24px; }
.brand { min-width: 210px; }
.brand-logo {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(217, 243, 109, .34);
  border-radius: 10px;
  color: var(--primary-ink);
  background: linear-gradient(145deg, var(--primary), #9fc54d);
  box-shadow: 0 0 0 5px rgba(217, 243, 109, .06), 0 10px 26px rgba(142, 175, 54, .2);
}
.brand-copy strong { color: var(--text-primary); letter-spacing: -.02em; }
.brand-copy small { color: var(--text-dim); letter-spacing: 1.7px; }
.topbar-nav { gap: 2px; }
.topbar-nav a { position: relative; padding: 10px 13px; border-radius: 7px; color: var(--text-secondary); }
.topbar-nav a:hover, .topbar-nav a.active { color: var(--text-primary); background: rgba(119, 224, 178, .09); }
.topbar-nav a:hover::after, .topbar-nav a.active::after { background: var(--signal); }
.home-utility { color: var(--text-dim); }
.home-utility strong { color: var(--signal-strong); }
.home-utility a { color: var(--primary); }
.topbar-unit-label { color: var(--text-dim); border-color: var(--line-dark); background: var(--surface-inset); }
.notice-button { color: var(--text-secondary); }
.notice-button b { color: var(--primary-ink); background: var(--primary); }
.chat-link { border-color: rgba(119, 224, 178, .35); color: var(--signal-strong); background: rgba(119, 224, 178, .06); }
.chat-link:hover { border-color: var(--signal); background: rgba(119, 224, 178, .12); }

.main-shell { width: min(1180px, calc(100% - 48px)); padding: 22px 0 86px; }
.service-notice { min-height: 44px; padding: 0 16px; border-color: var(--line-dark); border-radius: 7px; color: var(--text-secondary); background: rgba(119, 224, 178, .055); }
.service-notice strong, .notice-icon { color: var(--signal); }
.service-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  grid-template-rows: auto auto auto auto auto;
  column-gap: clamp(32px, 8vw, 120px);
  align-items: center;
  max-width: none;
  padding: 68px 18px 42px;
  text-align: left;
}
.service-intro-mark { grid-column: 1; grid-row: 1; width: 58px; height: 58px; margin: 0 0 22px; border-radius: 14px; color: var(--primary-ink); background: linear-gradient(145deg, var(--primary), #96bd45); box-shadow: 0 15px 35px rgba(130, 164, 45, .17); font-size: 32px; }
.service-intro .hero-kicker { grid-column: 1; grid-row: 2; color: var(--signal); }
.service-intro h1 { grid-column: 1; grid-row: 3; max-width: 640px; margin: 7px 0 12px; color: var(--text-primary); font-size: clamp(34px, 5vw, 56px); letter-spacing: -.045em; }
.service-intro > p:not(.hero-kicker) { grid-column: 1; grid-row: 4; max-width: 590px; color: var(--text-secondary); font-size: 16px; line-height: 1.75; }
.service-intro .hero-status { grid-column: 1; grid-row: 5; justify-content: flex-start; margin-top: 23px; color: var(--text-dim); }
.hero-status i { background: var(--warning-soft); box-shadow: 0 0 0 4px rgba(240, 198, 109, .11); }
.hero-status i.online { background: var(--signal); box-shadow: 0 0 0 4px rgba(119, 224, 178, .12); }
.home-dashboard { grid-column: 2; grid-row: 1 / span 5; align-self: stretch; min-height: 264px; margin: 0; padding: 24px; border-color: var(--line-strong); border-radius: 14px; background: linear-gradient(160deg, rgba(29, 39, 41, .96), rgba(16, 23, 25, .98)); box-shadow: var(--shadow); }
.dashboard-heading { padding-bottom: 18px; border-bottom: 1px solid var(--line-dark); }
.dashboard-heading strong { color: var(--text-primary); font-size: 16px; }
.dashboard-balance { margin-top: 26px; }
.dashboard-balance strong { color: var(--primary); font-size: clamp(34px, 5vw, 48px); letter-spacing: -.04em; }
.dashboard-balance span { color: var(--text-secondary); }
.dashboard-facts { gap: 14px; margin-top: 24px; }
.dashboard-facts span { padding: 10px 12px; border: 1px solid var(--line-dark); border-radius: 7px; color: var(--text-dim); background: rgba(255, 255, 255, .025); }
.dashboard-facts b { color: var(--text-primary); }

.glass-card, .table-card, .form-card, .account-card, .recovery-card, .usage-card, .key-card, .chat-workspace, .checkin-calendar-card, .checkin-help, .recharge-history, .keys-toolbar { border-color: var(--line-dark); border-radius: 12px; background: var(--surface-card-dark); box-shadow: none; }
.customer-entry { max-width: 1000px; margin: 0 auto 56px; padding: 24px; border-color: var(--line-strong); border-radius: 14px; background: linear-gradient(180deg, rgba(21, 28, 31, .98), rgba(15, 21, 23, .98)); box-shadow: var(--shadow); }
.customer-entry-intro { padding: 0 0 20px; text-align: left; }
.customer-entry-intro strong { color: var(--text-primary); font-size: 18px; }
.customer-entry-intro p { max-width: 720px; margin-top: 7px; color: var(--text-secondary); line-height: 1.7; }
.customer-tabs { gap: 4px; padding: 4px; border-color: var(--line-dark); border-radius: 8px; background: var(--surface-inset); }
.customer-tab { min-height: 44px; border-radius: 6px; color: var(--text-secondary); }
.customer-tab:hover { color: var(--text-primary); background: rgba(119, 224, 178, .08); }
.customer-tab.is-active { color: var(--primary-ink); background: var(--primary); box-shadow: none; }
.customer-panel { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.customer-panel-heading h2, .section-title h2, .table-heading h2, .card-heading h2 { color: var(--text-primary); letter-spacing: -.02em; }
.card-eyebrow, .hero-kicker { color: var(--signal); letter-spacing: 1.8px; }
.muted, .panel-description, .field-hint, .page-heading p, .customer-entry-intro p { color: var(--text-secondary); }
.card-icon, .config-panel-icon { color: var(--signal); border-color: rgba(119, 224, 178, .18); background: rgba(119, 224, 178, .08); }

.btn { min-height: 40px; border-radius: 6px; font-weight: 700; letter-spacing: -.01em; }
.btn-primary, .btn-success { color: var(--primary-ink); background: var(--primary); box-shadow: 0 8px 20px rgba(153, 181, 61, .12); }
.btn-primary:hover, .btn-success:hover { color: var(--primary-ink); background: var(--primary-active); filter: none; }
.btn-ghost { border-color: var(--line-strong); color: var(--text-primary); background: var(--surface-elevated-dark); }
.btn-ghost:hover { border-color: rgba(119, 224, 178, .45); color: var(--signal-strong); background: rgba(119, 224, 178, .08); }
.btn:focus-visible, .chat-link:focus-visible, .topbar-nav a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(119, 224, 178, .48); }

input, textarea, select, .stack-form input, .inline-form input, .chat-field, .chat-key-field { border-color: var(--line-strong); border-radius: 6px; color: var(--text-primary); background: var(--surface-inset); }
input::placeholder, textarea::placeholder { color: var(--text-dim); }
input:focus, textarea:focus, select:focus { border-color: var(--signal); box-shadow: 0 0 0 2px rgba(119, 224, 178, .14); }
.inline-notice, .config-auto-notice, .activation-callout, .balance-strip { border-color: rgba(119, 224, 178, .22); color: var(--text-secondary); background: rgba(119, 224, 178, .07); }
.config-auto-notice strong, .activation-callout strong { color: var(--signal-strong); }

.page-section:not([data-page="home"]) > .page-heading { max-width: 860px; margin: 34px auto 28px; padding: 0 4px; text-align: left; }
.page-heading h1 { color: var(--text-primary); font-size: clamp(30px, 4vw, 44px); letter-spacing: -.04em; }
.page-heading p { max-width: 680px; line-height: 1.7; }
.section-title, .table-heading { border-bottom-color: var(--line-dark); }
.table-heading { padding: 20px 22px 16px; }
.table-heading span, .fixed-unit-label, .pricing-footnote { color: var(--text-dim); }

.config-section, .config-workspace { border-color: var(--line-dark); background: var(--surface-card-dark); }
.config-methods { border-color: var(--line-dark); background: var(--surface-inset); }
.config-choice-card { border-color: var(--line-dark); border-radius: 8px; color: var(--text-secondary); background: var(--surface-card-dark); }
.config-choice-card:hover { border-color: rgba(119, 224, 178, .45); color: var(--text-primary); background: rgba(119, 224, 178, .07); }
.config-choice-card.is-active { border-color: var(--signal); color: var(--primary-ink); background: var(--primary); }
.config-choice-card.is-active .config-choice-copy small { color: rgba(17, 23, 15, .7); }
.config-recommendation { color: var(--primary); }
.config-recommendation-manual { color: var(--signal); }
.config-panel-heading h2, .auto-config-step h3, .manual-config-step h3 { color: var(--text-primary); }
.auto-config-step, .manual-config-step { border-color: var(--line-dark); border-radius: 8px; background: var(--surface-inset); }
.auto-config-step-number, .manual-config-step-number { color: var(--primary-ink); background: var(--primary); }
.auto-config-step-label, .manual-config-step-label { color: var(--signal); }
.step-action-muted { border-color: var(--line-dark); color: var(--text-secondary); background: rgba(255, 255, 255, .035); }
.ai-config-prompt, .quick-config-json { border-color: var(--line-dark); color: var(--text-primary); background: #0b1012; }

.pricing-section, .pricing-intro, .pricing-formula, .pricing-notice, .pricing-table-card { border-color: var(--line-dark); background: var(--surface-card-dark); }
.pricing-table { background: var(--surface-card-dark); }
.pricing-table thead th { color: var(--text-dim); background: var(--surface-elevated-dark); }
.pricing-table td { border-top-color: var(--line-dark); color: var(--text-secondary); }
.pricing-table tbody tr:hover td { background: rgba(119, 224, 178, .045); }
.pricing-group-row td { color: var(--signal-strong); background: rgba(119, 224, 178, .07); }
.pricing-group-row td strong, .pricing-dynamic-price { color: var(--primary); }
.pricing-model-id { color: var(--text-dim); }
.pricing-model-note { color: var(--warning-soft); }
.pricing-context { color: var(--text-primary); }
.pricing-capability { border-color: rgba(169, 155, 255, .34); color: var(--purple-light); background: rgba(169, 155, 255, .09); }
.pricing-capability.is-positive { border-color: rgba(119, 224, 178, .3); color: var(--signal-strong); background: rgba(119, 224, 178, .08); }

.usage-filters, .filter-group, .history-pager, .keys-toolbar, .chat-toolbar { border-color: var(--line-dark); background: var(--surface-inset); }
.filter-button { border-color: var(--line-dark); color: var(--text-secondary); background: var(--surface-card-dark); }
.filter-button.is-active { border-color: var(--signal); color: var(--primary-ink); background: var(--primary); }
.status-chip { border-color: rgba(119, 224, 178, .32); color: var(--signal-strong); background: rgba(119, 224, 178, .08); }
.empty-state { border-color: var(--line-dark); color: var(--text-secondary); background: rgba(255, 255, 255, .02); }
.key-display, .key-card code, code { border-color: var(--line-dark); color: var(--signal-strong); background: #0b1012; }
.chat-messages, .chat-empty { border-color: var(--line-dark); background: #0b1012; }
.chat-compose { border-color: var(--line-dark); background: var(--surface-inset); }
.chat-field { background: var(--surface-card-dark); }

.checkin-stats > div { border-color: var(--line-dark); background: var(--surface-inset); }
.checkin-stats strong { color: var(--primary); }
.calendar-toolbar, .calendar-weekdays { color: var(--text-secondary); }
.checkin-calendar button, .checkin-calendar > div { border-color: var(--line-dark); color: var(--text-secondary); background: var(--surface-inset); }
.checkin-calendar button:hover, .checkin-calendar button.is-today { border-color: var(--signal); color: var(--primary-ink); background: var(--primary); }

.toast { border-color: var(--line-strong); color: var(--text-primary); background: var(--surface-elevated-dark); box-shadow: var(--shadow); }
.notice-dialog-panel, .details-gate-panel { border-color: var(--line-strong); background: var(--surface-card-dark); box-shadow: var(--shadow); }
.notice-detail, .details-gate-tip { border-color: var(--line-dark); background: var(--surface-inset); }

@media (max-width: 900px) {
  .topbar-inner { width: min(100% - 32px, 720px); gap: 12px; }
  .brand { min-width: auto; }
  .home-utility { display: none; }
  .service-intro { column-gap: 28px; }
}
@media (max-width: 700px) {
  .topbar-inner { min-height: 62px; }
  .topbar-nav { order: 3; width: 100%; overflow-x: auto; padding: 2px 0 4px; }
  .topbar-inner { flex-wrap: wrap; }
  .topbar-tools { margin-left: auto; }
  .chat-link { padding: 8px 10px; }
  .main-shell { width: min(100% - 24px, 560px); padding-top: 14px; }
  .service-intro { display: flex; flex-direction: column; align-items: stretch; padding: 46px 8px 28px; text-align: left; }
  .service-intro-mark { margin: 0 0 18px; }
  .service-intro h1 { max-width: none; font-size: clamp(32px, 10vw, 44px); }
  .service-intro > p:not(.hero-kicker) { font-size: 14px; }
  .service-intro .hero-status { margin-top: 18px; }
  .home-dashboard { min-height: 0; margin-top: 28px; padding: 20px; }
  .customer-entry { margin-bottom: 36px; padding: 16px; border-radius: 11px; }
  .customer-entry-intro { padding-bottom: 14px; }
  .customer-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-panel { margin-top: 18px; padding-top: 18px; }
  .page-section:not([data-page="home"]) > .page-heading { margin-top: 24px; }
  .pricing-intro, .checkin-layout, .account-grid, .two-column, .recharge-lower { grid-template-columns: 1fr; }
  .pricing-table-card { border-radius: 10px; }
}
@media (max-width: 420px) {
  .topbar-tools { gap: 4px; }
  .topbar-unit-label, .notice-button span { display: none; }
  .chat-link span { display: none; }
  .topbar-nav a { padding: 8px 10px; font-size: 12px; }
  .service-notice span:last-child { display: none; }
  .dashboard-facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Home page has an older high-specificity light theme; these scoped rules intentionally win over it. */
body[data-active-page] {
  --bg: var(--canvas-dark);
  --surface: var(--surface-card-dark);
  --surface-light: var(--surface-elevated-dark);
  --elevated: rgba(255, 255, 255, .045);
  --border: var(--line-dark);
  --border-light: var(--line-strong);
  --text: var(--text-primary);
  --text-secondary: #a6b8b0;
  --text-dim: #74877f;
  --line: var(--line-dark);
  --signal: #77e0b2;
  --signal-ink: #a4f4ca;
  --shadow: 0 18px 50px rgba(0, 0, 0, .28);
  color: var(--text-primary);
  background: var(--canvas-dark);
}
body[data-active-page="home"] .topbar { border-bottom-color: var(--line-dark); background: rgba(10, 14, 16, .86); box-shadow: 0 12px 30px rgba(0, 0, 0, .16); backdrop-filter: blur(16px); }
body[data-active-page="home"] .topbar-inner { width: min(1200px, calc(100% - 48px)); min-height: 68px; gap: 24px; }
body[data-active-page="home"] .brand-logo { width: 36px; height: 36px; border-color: rgba(217, 243, 109, .34); border-radius: 10px; color: var(--primary-ink); background: linear-gradient(145deg, var(--primary), #9fc54d); box-shadow: 0 0 0 5px rgba(217, 243, 109, .06), 0 10px 26px rgba(142, 175, 54, .2); }
body[data-active-page="home"] .brand-copy strong { color: var(--text-primary); font-family: inherit; letter-spacing: -.02em; }
body[data-active-page="home"] .brand-copy small { color: var(--text-dim); letter-spacing: 1.7px; }
body[data-active-page="home"] .topbar-nav { display: flex; }
body[data-active-page="home"] .topbar-tools { display: flex; }
body[data-active-page="home"] .chat-link { display: inline-flex; }
body[data-active-page="home"] .home-utility { display: none; }
body[data-active-page="home"] .main-shell { width: min(1180px, calc(100% - 48px)); max-width: none; padding: 22px 0 86px; }
body[data-active-page="home"] .service-notice { width: 100%; min-height: 44px; justify-content: flex-start; padding: 0 16px; border-width: 1px; border-radius: 7px; color: var(--text-secondary); background: rgba(119, 224, 178, .055); font-size: 12px; }
body[data-active-page="home"] .service-notice strong, body[data-active-page="home"] .notice-icon { color: var(--signal); }
body[data-active-page="home"] .service-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); grid-template-rows: auto auto auto auto auto; column-gap: clamp(32px, 8vw, 120px); align-items: center; max-width: none; padding: 68px 18px 42px; text-align: left; }
body[data-active-page="home"] .service-intro-mark { display: grid; grid-column: 1; grid-row: 1; width: 58px; height: 58px; margin: 0 0 22px; border: 1px solid rgba(217, 243, 109, .34); border-radius: 14px; color: var(--primary-ink); background: linear-gradient(145deg, var(--primary), #96bd45); box-shadow: 0 15px 35px rgba(130, 164, 45, .17); font-size: 32px; }
body[data-active-page="home"] .service-intro .hero-kicker { display: block; grid-column: 1; grid-row: 2; color: var(--signal); }
body[data-active-page="home"] .service-intro h1 { grid-column: 1; grid-row: 3; max-width: 640px; margin: 7px 0 12px; color: var(--text-primary); font-size: clamp(34px, 5vw, 56px); letter-spacing: -.045em; }
body[data-active-page="home"] .service-intro > p:not(.hero-kicker) { grid-column: 1; grid-row: 4; max-width: 590px; margin: 0; color: var(--text-secondary); font-size: 16px; line-height: 1.75; }
body[data-active-page="home"] .service-intro .hero-status { display: flex; grid-column: 1; grid-row: 5; justify-content: flex-start; margin-top: 23px; color: var(--text-dim); }
body[data-active-page="home"] .home-dashboard { display: block; grid-column: 2; grid-row: 1 / span 5; align-self: stretch; min-height: 264px; margin: 0; padding: 24px; border-color: var(--line-strong); border-radius: 14px; color: var(--text-primary); background: linear-gradient(160deg, rgba(29, 39, 41, .96), rgba(16, 23, 25, .98)); box-shadow: var(--shadow); }
body[data-active-page="home"] .customer-entry { width: min(1000px, calc(100% - 36px)); max-width: none; margin: 0 auto 56px; padding: 24px; border-color: var(--line-strong); border-radius: 14px; color: var(--text-primary); background: linear-gradient(180deg, rgba(21, 28, 31, .98), rgba(15, 21, 23, .98)); box-shadow: var(--shadow); }
body[data-active-page="home"] .customer-entry-intro { padding: 0 0 20px; text-align: left; }
body[data-active-page="home"] .customer-entry-intro strong { display: block; color: var(--text-primary); font-size: 18px; }
body[data-active-page="home"] .customer-entry-intro p { margin: 7px 0 0; padding: 0; border: 0; color: var(--text-secondary); background: transparent; font-size: 12px; line-height: 1.7; }
body[data-active-page="home"] .customer-tabs { gap: 4px; padding: 4px; border-color: var(--line-dark); border-radius: 8px; background: var(--surface-inset); }
body[data-active-page="home"] .customer-tab { min-height: 44px; border-color: transparent; border-radius: 6px; color: var(--text-secondary); background: transparent; }
body[data-active-page="home"] .customer-tab:hover { color: var(--text-primary); background: rgba(119, 224, 178, .08); }
body[data-active-page="home"] .customer-tab.is-active { border-color: var(--signal); color: var(--primary-ink); background: var(--primary); box-shadow: none; }
body[data-active-page="home"] .customer-panel { margin-top: 24px; padding: 24px 0 2px; border-top: 1px solid var(--line-dark); }
body[data-active-page="home"] .customer-panel-heading { display: flex; }
body[data-active-page="home"] .customer-panel-heading .card-eyebrow, body[data-active-page="home"] .customer-panel-heading .card-icon { display: initial; }
body[data-active-page="home"] .customer-panel-heading h2 { margin: 4px 0 0; color: var(--text-primary); font-size: 22px; }
body[data-active-page="home"] .customer-panel .muted { margin: 12px 0 22px; color: var(--text-secondary); font-size: 13px; }
body[data-active-page="home"] .activation-callout { margin: 21px 0 18px; padding: 16px 18px; border-color: rgba(119, 224, 178, .22); border-radius: 10px; color: var(--text-secondary); background: rgba(119, 224, 178, .07); }
body[data-active-page="home"] .activation-callout strong { color: var(--signal-strong); }
body[data-active-page="home"] .activation-step { padding: 18px; border-color: var(--line-dark); border-radius: 10px; background: var(--surface-inset); }
body[data-active-page="home"] .activation-step h3 { color: var(--text-primary); }
body[data-active-page="home"] .customer-panel .stack-form label { color: var(--text-secondary); }
body[data-active-page="home"] .customer-panel .stack-form input { min-height: 46px; border-color: var(--line-strong); color: var(--text-primary); background: var(--surface-inset); }
body[data-active-page="home"] .customer-panel .btn-primary, body[data-active-page="home"] .customer-panel .btn-success { color: var(--primary-ink); background: var(--primary); box-shadow: 0 8px 20px rgba(153, 181, 61, .12); }
body[data-active-page="home"] .customer-panel .btn-primary:hover, body[data-active-page="home"] .customer-panel .btn-success:hover { color: var(--primary-ink); background: var(--primary-active); }
body[data-active-page="home"] .customer-panel .field-hint, body[data-active-page="home"] .customer-panel .card-footnote { color: var(--text-dim); }
body[data-active-page="home"] .customer-panel .online-recharge, body[data-active-page="home"] .customer-panel .customer-result-summary, body[data-active-page="home"] .customer-panel .recovery-card { border-color: var(--line-dark); color: var(--text-secondary); background: var(--surface-inset); }
body[data-active-page="home"] .config-section, body[data-active-page="home"] .section-block, body[data-active-page="home"] .pricing-section, body[data-active-page="home"] .info-grid { width: min(1000px, calc(100% - 36px)); margin-right: auto; margin-left: auto; }
body[data-active-page="home"] .config-section .glass-card, body[data-active-page="home"] .section-block .glass-card, body[data-active-page="home"] .pricing-section .glass-card, body[data-active-page="home"] .info-card { color: var(--text-primary); background: var(--surface-card-dark); }

@media (max-width: 900px) {
  body[data-active-page="home"] .topbar-inner { width: min(100% - 32px, 720px); gap: 12px; }
  body[data-active-page="home"] .home-utility { display: none; }
  body[data-active-page="home"] .service-intro { column-gap: 28px; }
}
@media (max-width: 700px) {
  body[data-active-page="home"] .topbar-inner { min-height: 62px; flex-wrap: wrap; }
  body[data-active-page="home"] .topbar-nav { order: 3; width: 100%; overflow-x: auto; padding: 2px 0 4px; }
  body[data-active-page="home"] .topbar-tools { margin-left: auto; }
  body[data-active-page="home"] .main-shell { width: min(100% - 24px, 560px); padding-top: 14px; }
  body[data-active-page="home"] .service-intro { display: flex; flex-direction: column; align-items: stretch; padding: 46px 8px 28px; text-align: left; }
  body[data-active-page="home"] .service-intro-mark { margin: 0 0 18px; }
  body[data-active-page="home"] .service-intro h1 { max-width: none; font-size: clamp(32px, 10vw, 44px); }
  body[data-active-page="home"] .service-intro > p:not(.hero-kicker) { font-size: 14px; }
  body[data-active-page="home"] .home-dashboard { min-height: 0; margin-top: 28px; padding: 20px; }
  body[data-active-page="home"] .customer-entry { width: 100%; margin-bottom: 36px; padding: 16px; border-radius: 11px; }
  body[data-active-page="home"] .customer-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-active-page="home"] .customer-panel { margin-top: 18px; padding-top: 18px; }
  body[data-active-page="home"] .config-section, body[data-active-page="home"] .section-block, body[data-active-page="home"] .pricing-section, body[data-active-page="home"] .info-grid { width: 100%; }
}
@media (max-width: 420px) {
  body[data-active-page="home"] .topbar-unit-label, body[data-active-page="home"] .notice-button span { display: none; }
  body[data-active-page="home"] .chat-link span { display: none; }
  body[data-active-page="home"] .service-notice span:last-child { display: none; }
  body[data-active-page="home"] .dashboard-facts { grid-template-columns: 1fr; }
}

/* Mobile header correction: keep navigation on a real second row instead of squeezing labels vertically. */
@media (max-width: 700px) {
  body[data-active-page="home"] .topbar-nav { flex: 0 0 100%; width: 100%; min-width: 0; height: auto; overflow-x: auto; }
  body[data-active-page="home"] .topbar-nav a { flex: 0 0 auto; width: auto; height: auto; white-space: nowrap; }
  body[data-active-page="home"] .service-intro h1 { font-size: clamp(30px, 8.4vw, 42px); letter-spacing: -.055em; }
}

/* Inner-page precision pass: override legacy page-scoped gradients while keeping each module's structure. */
body[data-active-page="models"] .pricing-formula,
body[data-active-page="models"] .pricing-notice,
body[data-active-page="models"] .table-card.pricing-table-card,
body[data-active-page="guide"] .guide-intro,
body[data-active-page="guide"] .guide-steps,
body[data-active-page="guide"] .guide-manual {
  border-color: var(--line-dark);
  background: var(--surface-card-dark);
  box-shadow: none;
}
body[data-active-page="models"] .pricing-formula code { border-color: var(--line-dark); color: var(--signal-strong); background: #0b1012; }
body[data-active-page="models"] .table-heading { border-bottom-color: var(--line-dark); background: var(--surface-card-dark); }
body[data-active-page="models"] .pricing-table thead th { color: var(--text-dim); background: var(--surface-elevated-dark); }
body[data-active-page="models"] .pricing-table tbody td { border-top-color: var(--line-dark); }
body[data-active-page="models"] .pricing-group-row td { background: rgba(119, 224, 178, .07); }
body[data-active-page="guide"] .guide-intro,
body[data-active-page="guide"] .guide-steps,
body[data-active-page="guide"] .guide-manual { color: var(--text-primary); }
body[data-active-page="guide"] .guide-intro h2,
body[data-active-page="guide"] .guide-steps h2,
body[data-active-page="guide"] .guide-manual h2,
body[data-active-page="guide"] .guide-step h3 { color: var(--text-primary); }
body[data-active-page="guide"] .guide-intro p,
body[data-active-page="guide"] .guide-steps p,
body[data-active-page="guide"] .guide-manual p { color: var(--text-secondary); }

/* 2026-09-07：首页结构与访问权限最终覆盖规则。旧版 CSS 保留，但以下规则统一覆盖旧主题。 */
.topbar-nav a[hidden],
.topbar-tools[hidden],
.chat-link[hidden] {
  display: none !important;
}

body[data-active-page="home"] .service-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 820px);
  max-width: 820px;
  margin: 0 auto;
  padding-right: 18px;
  padding-left: 18px;
  text-align: center;
}

body[data-active-page="home"] .service-intro-mark {
  margin-right: auto;
  margin-left: auto;
}

body[data-active-page="home"] .service-intro h1,
body[data-active-page="home"] .service-intro > p:not(.hero-kicker) {
  max-width: 760px;
}

body[data-active-page="home"] .service-intro .hero-status {
  justify-content: center;
}

body[data-active-page="home"] .customer-entry,
body[data-active-page="home"] .config-section,
body[data-active-page="home"] .section-block,
body[data-active-page="home"] .pricing-section,
body[data-active-page="home"] .info-grid {
  margin-right: auto;
  margin-left: auto;
}

body[data-active-page="home"] #configResult.config-workspace {
  color: var(--text-primary);
  border-color: var(--line-dark);
  background: var(--surface-card-dark);
  box-shadow: var(--shadow);
}

body[data-active-page="home"] .config-ready-heading h2,
body[data-active-page="home"] .config-methods-heading,
body[data-active-page="home"] .config-panel-heading h2,
body[data-active-page="home"] .auto-config-step h3,
body[data-active-page="home"] .manual-config-step h3 {
  color: var(--text-primary);
}

body[data-active-page="home"] .config-ready-heading p,
body[data-active-page="home"] .config-methods-description,
body[data-active-page="home"] .config-panel-heading p,
body[data-active-page="home"] .auto-config-step p,
body[data-active-page="home"] .manual-config-step p {
  color: var(--text-secondary);
}

body[data-active-page="home"] .config-choice-card,
body[data-active-page="home"] .auto-config-step,
body[data-active-page="home"] .manual-config-step {
  border-color: var(--line-dark);
  background: var(--surface-inset);
  color: var(--text-secondary);
}

body[data-active-page="home"] .config-choice-card.is-active {
  border-color: var(--signal);
  color: var(--primary-ink);
  background: var(--primary);
}

body[data-active-page="home"] .config-auto-notice {
  border-color: rgba(119, 224, 178, .22);
  color: var(--text-secondary);
  background: rgba(119, 224, 178, .07);
}

body[data-active-page="home"] .step-action-muted {
  border-color: var(--line-dark);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, .035);
}

/* 签到板块现在直接占据账户页原“账户工具”位置。 */
body[data-active-page="account"] .account-grid .account-checkin-section {
  min-width: 0;
  margin: 0;
}

body[data-active-page="account"] .account-grid .account-checkin-heading {
  margin: 0 0 14px;
  padding: 0;
}

body[data-active-page="account"] .account-grid .account-checkin-heading h2 {
  color: var(--text-primary);
}

body[data-active-page="account"] .account-grid .checkin-layout {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.details-nav-link {
  border: 1px solid rgba(119, 224, 178, .35);
  color: var(--signal-strong) !important;
  background: rgba(119, 224, 178, .06);
}


/* 未登录时顶部只保留“查询积分调用明细”，并将它靠右放置。 */
body:not(.details-access-granted) .topbar-nav {
  justify-content: flex-end;
}
@media (max-width: 700px) {
  body[data-active-page="home"] .service-intro {
    width: 100%;
    max-width: 820px;
    align-items: center;
    padding-right: 8px;
    padding-left: 8px;
    text-align: center;
  }

  body[data-active-page="home"] .service-intro-mark {
    margin-right: auto;
    margin-left: auto;
  }

  body[data-active-page="home"] .service-intro h1,
  body[data-active-page="home"] .service-intro > p:not(.hero-kicker) {
    max-width: 100%;
  }

  body[data-active-page="home"] .service-intro .hero-status {
    justify-content: center;
  }
}

/* 明细验证页修正：放回主内容区后，统一采用 Buddy 深色卡片，避免浅色文字在深色背景上失去对比度。 */
.details-gate-page {
  min-height: calc(100vh - 150px);
}
.details-gate-panel {
  border-color: var(--line-strong);
  color: var(--text-primary);
  background: var(--surface-card-dark);
  box-shadow: var(--shadow);
}
.details-gate-panel h1 {
  color: var(--text-primary);
}
.details-gate-brand {
  color: var(--signal-strong);
}
.details-gate-brand small,
.details-gate-footnote {
  color: var(--text-dim);
}
.details-gate-mark {
  border-color: rgba(119, 224, 178, .28);
  color: var(--primary-ink);
  background: var(--primary);
}
.details-gate-description,
.details-gate-form label {
  color: var(--text-secondary);
}
.details-gate-tip {
  border-color: rgba(119, 224, 178, .22);
  color: var(--text-secondary);
  background: rgba(119, 224, 178, .07);
}
.details-gate-form input {
  border-color: var(--line-strong);
  color: var(--text-primary);
  background: var(--surface-inset);
}
.details-gate-form input:focus {
  border-color: var(--signal);
  background: var(--surface-inset);
}
.details-gate-message {
  color: var(--signal-strong);
}
.details-gate-back {
  color: var(--text-secondary);
}
.details-gate-back:hover {
  color: var(--signal-strong);
}
/* 2026-09-07: 配置页与账户页视觉精修。只调整表现层，不改变配置、签到或访问逻辑。 */
body[data-active-page="home"] #configResult.config-workspace {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 30px 32px;
  border: 1px solid #273438;
  border-radius: 16px;
  color: var(--text-primary);
  background: #0f1719;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .25);
}

body[data-active-page="home"] .config-ready-heading {
  margin: 0 0 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid #202d30;
}

body[data-active-page="home"] .config-ready-heading h2 {
  margin: 6px 0 5px;
  color: #f2fbf6;
  font-size: clamp(20px, 2.1vw, 26px);
  letter-spacing: -.025em;
}

body[data-active-page="home"] .config-ready-heading p,
body[data-active-page="home"] .config-methods-description {
  color: #82958d;
  font-size: 12px;
}

body[data-active-page="home"] .config-methods-heading {
  margin: 0 0 8px;
  color: #dce9e3;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: .02em;
}

body[data-active-page="home"] .config-methods-description {
  margin: 0 0 16px;
  line-height: 1.65;
}

body[data-active-page="home"] .config-method-choice {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

body[data-active-page="home"] .config-choice-card {
  min-height: 88px;
  padding: 16px 18px;
  border: 1px solid #2d4540;
  border-radius: 12px;
  color: #c1d0ca;
  background: #15201f;
  box-shadow: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

body[data-active-page="home"] .config-choice-card:hover {
  border-color: #61b79a;
  color: #e8f7ef;
  background: #192b28;
  transform: translateY(-1px);
}

body[data-active-page="home"] .config-choice-card.is-active {
  border-color: #d7ef65;
  color: #11180f;
  background: linear-gradient(135deg, #e8ff76 0%, #c9ef55 100%);
  box-shadow: 0 12px 28px rgba(188, 225, 74, .12), inset 0 1px 0 rgba(255, 255, 255, .55);
}

body[data-active-page="home"] .config-choice-card[data-config-method="manual"] {
  border-color: #3b685c;
  color: #d0e9df;
  background: #14231f;
}

body[data-active-page="home"] .config-choice-card[data-config-method="manual"]:hover {
  border-color: #71d5b1;
  color: #effff8;
  background: #1a302a;
}

body[data-active-page="home"] .config-choice-card[data-config-method="manual"].is-active {
  border-color: #7be0bc;
  color: #083e31;
  background: linear-gradient(135deg, #d9f8eb 0%, #b8ead7 100%);
  box-shadow: 0 12px 28px rgba(86, 204, 159, .14), inset 0 1px 0 rgba(255, 255, 255, .7);
}

body[data-active-page="home"] .config-choice-card[data-config-method="auto"] {
  border-color: #6d6031;
  color: #e3d7a8;
  background: #211f17;
}

body[data-active-page="home"] .config-choice-card[data-config-method="auto"]:hover {
  border-color: #d1b44f;
  color: #fff5c8;
  background: #2a281a;
}

body[data-active-page="home"] .config-choice-card[data-config-method="auto"].is-active {
  border-color: #f0c95b;
  color: #4b3506;
  background: linear-gradient(135deg, #fff3c9 0%, #f3d982 100%);
  box-shadow: 0 12px 28px rgba(220, 174, 50, .13), inset 0 1px 0 rgba(255, 255, 255, .72);
}

body[data-active-page="home"] .config-choice-icon {
  flex-basis: 46px;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  font-size: 24px;
}

body[data-active-page="home"] .config-choice-icon-manual {
  color: #0a7358;
  background: #a9e9d1;
}

body[data-active-page="home"] .config-choice-icon-auto {
  color: #4e3800;
  background: #ffc94f;
}

body[data-active-page="home"] .config-choice-copy {
  gap: 4px;
}

body[data-active-page="home"] .config-choice-copy strong {
  font-size: 16px;
  letter-spacing: -.015em;
}

body[data-active-page="home"] .config-choice-copy small {
  color: currentColor;
  font-size: 11px;
  opacity: .78;
}

body[data-active-page="home"] .config-choice-vs {
  color: #b8872b;
  font-size: 20px;
  letter-spacing: .08em;
}

body[data-active-page="home"] .config-panels {
  padding-top: 25px;
}

body[data-active-page="home"] .config-panel-heading {
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 20px;
}

body[data-active-page="home"] .config-panel-icon {
  flex-basis: 48px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(215, 239, 101, .2);
  border-radius: 14px;
  color: #172008;
  background: #d7ef65;
  box-shadow: 0 7px 18px rgba(185, 222, 68, .12);
}

body[data-active-page="home"] .config-panel-icon-manual {
  border-color: rgba(123, 224, 188, .25);
  color: #073f31;
  background: #a9e9d1;
}

body[data-active-page="home"] .config-recommendation {
  padding: 4px 9px;
  border: 1px solid rgba(238, 201, 91, .28);
  color: #f7dc77;
  background: rgba(222, 178, 55, .12);
  font-size: 10px;
  letter-spacing: .02em;
}

body[data-active-page="home"] .config-recommendation-manual {
  border-color: rgba(123, 224, 188, .22);
  color: #9de3c7;
  background: rgba(80, 190, 149, .1);
}

body[data-active-page="home"] .config-panel-heading h2 {
  margin: 7px 0 5px;
  color: #f1faf5;
  font-size: clamp(19px, 2.2vw, 24px);
  letter-spacing: -.025em;
}

body[data-active-page="home"] .config-panel-heading p {
  max-width: 760px;
  color: #9fb0a9;
  line-height: 1.7;
}

body[data-active-page="home"] .config-auto-notice {
  align-items: flex-start;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid #35574d;
  border-radius: 10px;
  color: #b8d1c6;
  background: #162522;
}

body[data-active-page="home"] .config-auto-notice > span {
  color: #77e0b2;
  line-height: 1.7;
}

body[data-active-page="home"] .config-auto-notice p {
  color: inherit;
  line-height: 1.65;
}

body[data-active-page="home"] .auto-config-steps,
body[data-active-page="home"] .manual-config-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body[data-active-page="home"] .auto-config-step,
body[data-active-page="home"] .manual-config-step {
  min-width: 0;
  min-height: 238px;
  padding: 16px;
  border: 1px solid #2a3a3c;
  border-radius: 13px;
  color: #d6e3de;
  background: #10191b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

body[data-active-page="home"] .auto-config-step:hover,
body[data-active-page="home"] .manual-config-step:hover {
  border-color: #41605a;
}

body[data-active-page="home"] .auto-config-step-number,
body[data-active-page="home"] .manual-config-step-number {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  color: #0c160d;
  background: #d7ef65;
  box-shadow: 0 6px 15px rgba(190, 225, 74, .1);
}

body[data-active-page="home"] .manual-config-step-number {
  color: #eafff5;
  background: #087b5d;
  box-shadow: 0 6px 15px rgba(15, 135, 101, .14);
}

body[data-active-page="home"] .auto-config-step-label,
body[data-active-page="home"] .manual-config-step-label {
  margin-top: 11px;
  color: #d7ef65;
  font-size: 11px;
  letter-spacing: .04em;
}

body[data-active-page="home"] .manual-config-step-label {
  color: #77e0b2;
}

body[data-active-page="home"] .auto-config-step h3,
body[data-active-page="home"] .manual-config-step h3 {
  margin: 4px 0 9px;
  color: #f0f8f4;
  font-size: 16px;
  letter-spacing: -.015em;
}

body[data-active-page="home"] .auto-config-step p,
body[data-active-page="home"] .manual-config-step p {
  min-height: 58px;
  margin: 0 0 16px;
  color: #99aca4;
  line-height: 1.7;
}

body[data-active-page="home"] .step-action {
  min-height: 40px;
  border-radius: 8px;
}

body[data-active-page="home"] .auto-config-step .step-action.btn-primary {
  border-color: #d7ef65;
  color: #11180f;
  background: #d7ef65;
  box-shadow: 0 8px 18px rgba(192, 226, 71, .12);
}

body[data-active-page="home"] .step-action-muted {
  min-height: 40px;
  border-color: #344346;
  color: #a9bbb4;
  background: #172022;
}

body[data-active-page="home"] .step-action-muted:hover {
  border-color: #6eaa95;
  color: #d8eee4;
  background: #1d2d2b;
}

body[data-active-page="home"] .auto-config-step-wide,
body[data-active-page="home"] .manual-config-step-wide {
  min-height: 146px;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 13px;
  align-items: center;
}

body[data-active-page="home"] .auto-config-step-wide .auto-config-step-number,
body[data-active-page="home"] .manual-config-step-wide .manual-config-step-number {
  grid-row: 1 / span 4;
}

body[data-active-page="home"] .auto-config-step-wide .auto-config-step-label,
body[data-active-page="home"] .manual-config-step-wide .manual-config-step-label,
body[data-active-page="home"] .auto-config-step-wide h3,
body[data-active-page="home"] .manual-config-step-wide h3,
body[data-active-page="home"] .auto-config-step-wide p,
body[data-active-page="home"] .manual-config-step-wide p,
body[data-active-page="home"] .auto-config-step-wide .step-action,
body[data-active-page="home"] .manual-config-step-wide .step-action {
  grid-column: 2;
}

body[data-active-page="home"] .manual-config-panel .download-models-btn {
  min-height: 42px;
  margin: 0 0 14px;
  border: 1px solid #70d1ad;
  border-radius: 8px;
  color: #092b21;
  background: #a9e9d1;
  box-shadow: none;
}

body[data-active-page="home"] .manual-config-panel .download-models-btn:hover {
  background: #c4f3df;
}

body[data-active-page="home"] .manual-config-panel .quick-config-btn {
  min-height: 42px;
  border: 1px solid #36584e;
  border-radius: 8px;
  color: #bfe7d7;
  background: #182725;
}

body[data-active-page="home"] .manual-config-panel .quick-config-btn:hover {
  border-color: #75d4b0;
  color: #effff8;
  background: #203631;
}

body[data-active-page="home"] .config-workspace > .model-capabilities {
  border-top-color: #263739;
}

/* 账户页：Key 是身份入口，签到是主工作区，桌面端保持稳定的左右层级。 */
body[data-active-page="account"] .page-heading {
  max-width: 1060px;
}

body[data-active-page="account"] .account-grid {
  width: min(1060px, 100%);
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: 18px;
  align-items: start;
}

body[data-active-page="account"] .account-card {
  min-height: 100%;
  padding: 23px;
  border-color: #29383b;
  border-radius: 14px;
  background: #10191b;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .18);
}

body[data-active-page="account"] .account-card .card-icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(119, 224, 178, .28);
  border-radius: 13px;
  color: #0e1d17;
  background: #77e0b2;
  box-shadow: 0 8px 18px rgba(80, 198, 150, .12);
}

body[data-active-page="account"] .account-card h2 {
  margin: 17px 0 6px;
  color: #eff8f3;
  font-size: 21px;
  letter-spacing: -.025em;
}

body[data-active-page="account"] .account-card p {
  min-height: 0;
  margin-bottom: 16px;
  color: #9aada5;
  line-height: 1.65;
}

body[data-active-page="account"] .account-card > code {
  padding: 13px;
  border-color: #2b4140;
  border-radius: 9px;
  color: #bdf5d9;
  background: #0a1113;
  font-size: 13px;
}

body[data-active-page="account"] .account-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 17px;
}

body[data-active-page="account"] .account-actions .btn:last-child {
  grid-column: 1 / -1;
}

body[data-active-page="account"] .account-checkin-section {
  min-width: 0;
  padding: 23px;
  border: 1px solid #29383b;
  border-radius: 14px;
  background: #10191b;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .18);
}

body[data-active-page="account"] .account-checkin-heading {
  margin: 0 0 18px;
  padding: 0;
}

body[data-active-page="account"] .account-checkin-heading h2 {
  margin: 6px 0 5px;
  color: #eff8f3;
  font-size: 21px;
  letter-spacing: -.025em;
}

body[data-active-page="account"] .account-checkin-heading p {
  margin: 0;
  color: #9aada5;
  line-height: 1.65;
}

body[data-active-page="account"] .account-checkin-section .checkin-layout {
  grid-template-columns: minmax(0, 1.34fr) minmax(205px, .66fr);
  gap: 12px;
  margin-top: 0;
}

body[data-active-page="account"] .checkin-calendar-card,
body[data-active-page="account"] .checkin-help {
  min-width: 0;
  padding: 17px;
  border-color: #29383b;
  border-radius: 11px;
  background: #0d1517;
}

body[data-active-page="account"] .checkin-heading h3 {
  color: #f0f8f4;
  font-size: 17px;
}

body[data-active-page="account"] .checkin-stats {
  gap: 7px;
  margin: 15px 0;
}

body[data-active-page="account"] .checkin-stats > div {
  padding: 10px 7px;
  border-color: #263739;
  border-radius: 9px;
  background: #152022;
}

body[data-active-page="account"] .checkin-stats strong {
  color: #d7ef65;
  font-size: 20px;
}

body[data-active-page="account"] .calendar-toolbar {
  margin: 8px 0;
}

body[data-active-page="account"] .checkin-calendar,
body[data-active-page="account"] .calendar-weekdays {
  gap: 5px;
}

body[data-active-page="account"] .calendar-day {
  min-height: 31px;
  border-radius: 7px;
  color: #aebeb8;
  background: #172224;
}

body[data-active-page="account"] .calendar-day:hover,
body[data-active-page="account"] .calendar-day.is-today {
  border-color: #d7ef65;
  color: #10170e;
  background: #d7ef65;
}

body[data-active-page="account"] .checkin-help {
  align-self: stretch;
}

body[data-active-page="account"] .checkin-help .info-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #0e1d17;
  background: #77e0b2;
}

body[data-active-page="account"] .checkin-help h3 {
  margin: 13px 0 10px;
  color: #eef8f3;
  font-size: 16px;
}

body[data-active-page="account"] .checkin-help ul {
  padding-left: 17px;
  color: #9aada5;
  line-height: 1.65;
}

body[data-active-page="account"] .checkin-help li + li {
  margin-top: 9px;
}

@media (max-width: 820px) {
  body[data-active-page="home"] #configResult.config-workspace {
    width: min(100% - 24px, 680px);
    padding: 24px 20px 26px;
  }

  body[data-active-page="home"] .config-choice-card {
    min-height: 80px;
  }

  body[data-active-page="account"] .account-grid {
    width: 100%;
    grid-template-columns: 1fr;
  }

  body[data-active-page="account"] .account-checkin-section .checkin-layout {
    grid-template-columns: minmax(0, 1fr) minmax(220px, .7fr);
  }
}

@media (max-width: 620px) {
  body[data-active-page="home"] #configResult.config-workspace {
    width: calc(100% - 24px);
    padding: 20px 16px 22px;
    border-radius: 13px;
  }

  body[data-active-page="home"] .config-ready-heading {
    margin-bottom: 18px;
    padding-bottom: 16px;
  }

  body[data-active-page="home"] .config-method-choice {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body[data-active-page="home"] .config-choice-vs {
    display: none;
  }

  body[data-active-page="home"] .config-choice-card {
    min-height: 72px;
    padding: 12px 14px;
  }

  body[data-active-page="home"] .config-panels {
    padding-top: 20px;
  }

  body[data-active-page="home"] .config-panel-heading {
    gap: 11px;
    padding-bottom: 16px;
  }

  body[data-active-page="home"] .config-panel-icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    font-size: 20px;
  }

  body[data-active-page="home"] .config-panel-heading h2 {
    font-size: 18px;
  }

  body[data-active-page="home"] .auto-config-steps,
  body[data-active-page="home"] .manual-config-steps {
    grid-template-columns: 1fr;
  }

  body[data-active-page="home"] .auto-config-step,
  body[data-active-page="home"] .manual-config-step {
    min-height: 0;
  }

  body[data-active-page="home"] .auto-config-step-wide,
  body[data-active-page="home"] .manual-config-step-wide {
    display: block;
    min-height: 0;
  }

  body[data-active-page="home"] .auto-config-step-wide .auto-config-step-label,
  body[data-active-page="home"] .manual-config-step-wide .manual-config-step-label {
    margin-top: 11px;
  }

  body[data-active-page="home"] .auto-config-step p,
  body[data-active-page="home"] .manual-config-step p {
    min-height: 0;
  }

  body[data-active-page="account"] .account-card,
  body[data-active-page="account"] .account-checkin-section {
    padding: 18px;
    border-radius: 12px;
  }

  body[data-active-page="account"] .account-checkin-section .checkin-layout {
    grid-template-columns: 1fr;
  }

  body[data-active-page="account"] .account-actions {
    grid-template-columns: 1fr;
  }

  body[data-active-page="account"] .account-actions .btn:last-child {
    grid-column: auto;
  }
}
