* {
  box-sizing: border-box;
}
:root {
  --ink: #1d252c;
  --muted: #66727c;
  --line: #dfe4e8;
  --soft: #f5f7f8;
  --brand: #176b55;
  --danger: #b42318;
  --warn: #946200;
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font:
    14px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}
button {
  cursor: pointer;
}
.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}
aside {
  border-right: 1px solid var(--line);
  background: #fafbfb;
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  font-size: 18px;
  font-weight: 700;
  padding: 0 10px 18px;
  border-bottom: 1px solid var(--line);
}
.brand small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}
.nav {
  display: grid;
  gap: 3px;
  margin-top: 16px;
}
.nav button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 9px 10px;
  border-radius: 6px;
  color: #3d4952;
}
.nav button.active {
  background: #e8f2ee;
  color: var(--brand);
  font-weight: 600;
}
.side-foot {
  position: absolute;
  bottom: 18px;
  left: 14px;
  right: 14px;
  border-top: 1px solid var(--line);
  padding: 14px 10px 0;
  color: var(--muted);
  font-size: 12px;
}
.side-foot button {
  margin-top: 8px;
}
main {
  min-width: 0;
}
.topbar {
  height: 64px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  z-index: 2;
}
.topbar h1 {
  font-size: 18px;
  margin: 0;
}
.user {
  color: var(--muted);
  font-size: 13px;
}
.content {
  max-width: 1160px;
  padding: 26px 28px 60px;
}
.page {
  display: none;
}
.page.active {
  display: block;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.heading h2 {
  font-size: 22px;
  margin: 0 0 4px;
}
.heading p {
  margin: 0;
  color: var(--muted);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 16px;
}
.stat label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
}
.stat strong {
  font-size: 23px;
  font-weight: 650;
}
.stat small {
  color: var(--muted);
  margin-left: 5px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: 24px;
}
.panel {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 22px;
}
.panel:first-child {
  margin-top: 0;
}
.panel h3 {
  font-size: 15px;
  margin: 0 0 14px;
}
.form {
  display: grid;
  gap: 13px;
}
.row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.field label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd3d8;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 9px 10px;
  outline: 0;
}
textarea {
  min-height: 92px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(23, 107, 85, 0.1);
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  border: 1px solid #bec8cd;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 550;
}
.btn:hover {
  background: var(--soft);
}
.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn.danger {
  color: var(--danger);
  border-color: #efc9c5;
}
.btn.small {
  padding: 5px 8px;
  font-size: 12px;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 620px;
}
th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th {
  font-size: 12px;
  color: var(--muted);
  background: #fafbfb;
  font-weight: 600;
}
tr:last-child td {
  border-bottom: 0;
}
.empty {
  text-align: center !important;
  color: var(--muted);
  padding: 28px !important;
}
code,
pre {
  font-family: "SFMono-Regular", Consolas, monospace;
}
code {
  font-size: 12px;
}
pre {
  margin: 0;
  background: #172027;
  color: #e9f0f2;
  padding: 15px;
  border-radius: 7px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.endpoint {
  font-family: monospace;
  background: #eef1f3;
  border-radius: 4px;
  padding: 2px 6px;
}
.badge {
  display: inline-block;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  background: #e8f2ee;
  color: var(--brand);
}
.badge.pending {
  background: #fff4d9;
  color: var(--warn);
}
.badge.revoked {
  background: #f2f3f4;
  color: var(--muted);
}
.notice {
  border-left: 3px solid #245a9b;
  background: #f3f7fb;
  padding: 10px 12px;
  color: #3c5266;
  margin-bottom: 16px;
}
.key-reveal {
  display: none;
  border: 1px solid #b8d9cd;
  background: #f1f8f5;
  padding: 14px;
  border-radius: 7px;
  margin: 14px 0;
}
.key-reveal strong {
  display: block;
  margin-bottom: 8px;
}
.key-value {
  display: flex;
  gap: 8px;
}
.key-value input {
  font-family: monospace;
}
.result {
  display: none;
  margin-top: 12px;
  max-height: 250px;
  overflow: auto;
}
.muted {
  color: var(--muted);
}
.money {
  color: var(--brand);
}
.danger-text {
  color: var(--danger);
}
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: #20292f;
  color: #fff;
  padding: 11px 15px;
  border-radius: 6px;
  z-index: 20;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.18s;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: none;
}
.toast.error {
  background: var(--danger);
}
@media (max-width: 850px) {
  .app {
    display: block;
  }
  aside {
    position: sticky;
    height: auto;
    z-index: 5;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px;
  }
  .brand {
    padding: 0 4px 10px;
  }
  .brand small,
  .side-foot {
    display: none;
  }
  .nav {
    display: flex;
    overflow: auto;
    margin-top: 10px;
  }
  .nav button {
    white-space: nowrap;
  }
  .topbar {
    top: 99px;
    padding: 0 16px;
  }
  .content {
    padding: 20px 16px 45px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split,
  .row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .stat {
    padding: 12px;
  }
  .stat strong {
    font-size: 18px;
  }
  .heading {
    display: block;
  }
  .heading .actions {
    margin-top: 12px;
  }
}
.target-line-chart {
  width: 100%;
  height: 105px;
  display: block;
}
.target-axis {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex: 0 0 100%;
  color: #77736b;
  font-size: 11px;
  padding: 0 8px;
}
.target-axis span {
  flex: 1;
  text-align: center;
}
.target-chart {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
}
.target-overview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.target-overview-heading .target-toolbar {
  margin: 0;
}
.notify-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  margin-left: -5px;
  margin-top: -10px;
  border-radius: 10px;
  background: #c52424;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  vertical-align: top;
}
.nav-extra {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--target-line);
}
.nav-extra .nav-label {
  font-size: 11px;
  color: var(--target-muted);
  padding: 5px 11px;
}
.nav-extra button {
  font-size: 12px;
}
.voice-tabs {
  margin: 0 0 18px;
  gap: 0;
  border-bottom: 1px solid var(--target-line);
  background: transparent;
}
.voice-tabs button {
  min-width: 132px;
  text-align: center;
  padding: 10px 18px;
  border-bottom: 2px solid transparent;
}
.voice-tabs button.active {
  background: #eaf4f0;
  border-bottom-color: #176b55;
  border-radius: 9px 9px 0 0;
  color: #176b55;
}
.voice-secondary {
  display: none;
  height: 44px;
  align-items: center;
  gap: 4px;
  padding: 0 20px;
  border-bottom: 1px solid var(--target-line);
  background: #f8fcfa;
}
.voice-secondary.visible {
  display: flex;
}
.voice-secondary button {
  border: 0;
  background: transparent;
  color: #53616b;
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.voice-secondary button:hover,
.voice-secondary button.active {
  background: #eaf4f0;
  color: #176b55;
  font-weight: 600;
}

:root {
  --target-bg: #f5f3ef;
  --target-surface: #fbfaf7;
  --target-line: #d9d5cc;
  --target-ink: #2b2a27;
  --target-muted: #747169;
  --target-accent: #c5832c;
  --target-teal: #318d85;
  --target-shadow:
    0 1px 2px rgba(41, 38, 31, 0.08), 0 5px 18px rgba(41, 38, 31, 0.05);
  /* 统一卡片 token */
  --card-radius: 15px;
  --card-bg: var(--target-surface);
  --card-border: 1px solid var(--target-line);
  --card-shadow: var(--target-shadow);
  --card-padding: 13px;
  /* 导航分组 token */
  --nav-group-color: #8a857b;
  --nav-group-size: 11px;
  --nav-gap: 3px;
}
html,
body {
  background: var(--target-bg);
  color: var(--target-ink);
}
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}
.app {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - 64px);
  height: auto;
}
.clone-global {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--target-line);
  background: rgba(250, 249, 246, 0.96);
  gap: 26px;
  flex: 0 0 auto;
}
.clone-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 650;
  white-space: nowrap;
}
.clone-logo-mark {
  width: 25px;
  height: 25px;
  border: 3px solid #171717;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.clone-logo-mark:after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #171717;
}
.clone-nav {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 2px;
}
.clone-nav a {
  padding: 8px 18px;
  border-left: 1px solid var(--target-line);
  font-size: 14px;
}
.clone-nav a.active {
  background: #e6e3dd;
  border-radius: 13px;
  border-left-color: transparent;
  font-weight: 650;
}
.clone-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 15px;
  color: #625f58;
}
.clone-tools button {
  border: 0;
  background: transparent;
  padding: 4px;
  font-size: 17px;
}
.clone-user {
  border-left: 1px solid var(--target-line);
  padding-left: 15px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--target-muted);
}
.clone-avatar {
  width: 30px;
  height: 30px;
  border: 1px solid #ccc6bb;
  background: #ece9e3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #67635c;
  font-size: 13px;
}
.app {
  grid-template-columns: 240px minmax(0, 1fr);
}
aside {
  width: 240px;
  background: #f8f6f2;
  border-right: 1px solid var(--target-line);
  padding: 0 9px;
  position: relative;
  height: auto;
  min-height: calc(100vh - 64px);
}
aside .brand {
  font-size: 12px;
  color: var(--target-muted);
  padding: 14px 7px 7px;
  border: 0;
  font-weight: 400;
}
aside .brand small {
  display: none;
}
.nav {
  margin-top: 0;
  gap: 3px;
}
.nav button {
  padding: 9px 11px;
  border-radius: 9px;
  color: #59564f;
}
.nav button:hover {
  background: #eeeae3;
}
.nav button.active {
  background: #dedbd4;
  color: #292825;
}
.side-foot {
  left: 9px;
  right: 9px;
  bottom: 15px;
  border-top: 1px solid var(--target-line);
  padding: 15px 7px 0;
}
.topbar {
  height: 64px;
  background: rgba(250, 249, 246, 0.96);
  border-bottom: 1px solid var(--target-line);
  padding: 0 16px;
}
.topbar h1 {
  font-size: 16px;
}
.content {
  max-width: 1300px;
  padding: 14px 16px 42px;
}
.page.active {
  display: block;
}
.heading h2 {
  font-size: 18px;
}
.heading p {
  font-size: 12px;
}
.stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.stat {
  border: 1px solid var(--target-line);
  border-radius: 15px;
  background: var(--target-surface);
  box-shadow: var(--target-shadow);
  padding: 12px 14px;
  min-height: 76px;
}
.panel {
  border: 1px solid var(--target-line);
  border-radius: 15px;
  background: var(--target-surface);
  box-shadow: var(--target-shadow);
  padding: 13px;
  margin-top: 12px;
}
.panel:first-child {
  margin-top: 0;
}
.panel h3 {
  font-size: 14px;
}
.table-wrap {
  border-color: var(--target-line);
  border-radius: 10px;
}
.table-wrap th {
  background: #e7e4dd;
  color: #5e5a52;
}
.table-wrap td {
  border-color: var(--target-line);
}
.btn {
  border-color: #cbc5ba;
  background: var(--target-surface);
  border-radius: 9px;
}
.btn.primary {
  background: #b97825;
  border-color: #b97825;
}
.badge {
  border-radius: 10px;
}
.target-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  flex-wrap: wrap;
}
.target-pills {
  display: flex;
  border: 1px solid var(--target-line);
  background: #e8e5df;
  border-radius: 12px;
  overflow: hidden;
}
.target-pills button {
  border: 0;
  background: transparent;
  padding: 6px 13px;
  color: #69655e;
}
.target-pills button.active {
  background: #f8f6f2;
  color: #865716;
  font-weight: 600;
}
.target-date {
  border: 1px solid var(--target-line);
  background: var(--target-surface);
  border-radius: 10px;
  padding: 7px 10px;
  color: #59564f;
}
.target-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.target-card {
  border: 1px solid var(--target-line);
  background: var(--target-surface);
  border-radius: 15px;
  box-shadow: var(--target-shadow);
  padding: 13px;
  min-width: 0;
}
.target-card h3 {
  margin: 0 0 10px;
  font-size: 14px;
}
.target-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
}
.target-card-head h3 {
  margin: 0;
}
.target-card-head span {
  font-size: 12px;
  color: var(--target-muted);
}
.target-chart {
  height: 125px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  border-bottom: 1px solid #d0ccc3;
  padding: 5px 7px 0;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 30px,
    #e5e1d9 31px
  );
}
.target-bar-col {
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}
.target-bar {
  width: 70%;
  min-height: 2px;
  background: var(--target-accent);
  border-radius: 3px 3px 0 0;
}
.target-bar.alt {
  background: var(--target-teal);
}
.target-label {
  font-size: 11px;
  color: #77736b;
}
.target-legend {
  text-align: center;
  color: #5f5b54;
  font-size: 12px;
  margin-top: 7px;
}
.target-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--target-accent);
  margin-right: 4px;
}
.target-donuts {
  display: flex;
  justify-content: space-around;
  gap: 16px;
  padding: 4px 8px 9px;
}
.target-donut-item {
  text-align: center;
  color: var(--target-muted);
  font-size: 12px;
}
.target-donut {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: conic-gradient(
    var(--target-accent) 0 92%,
    var(--target-teal) 92% 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
}
.target-donut:after {
  content: "";
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--target-surface);
}
.target-donut.blue {
  background: conic-gradient(var(--target-accent) 0 96%, #5b82bb 96% 100%);
}
.target-small-table {
  min-width: 0 !important;
}
.target-small-table th,
.target-small-table td {
  padding: 8px 10px;
}
.target-small-table th {
  font-size: 12px;
}
.target-small-table td {
  font-size: 12px;
}
.target-footer {
  height: 52px;
  border-top: 1px solid var(--target-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  color: #777269;
  font-size: 12px;
  background: #f8f6f2;
  flex: 0 0 auto;
}
@media (max-width: 850px) {
  .clone-global {
    gap: 12px;
    flex-wrap: wrap;
    height: auto;
    min-height: 58px;
    padding: 9px 13px;
  }
  .clone-nav {
    order: 3;
    width: 100%;
    height: 34px;
    overflow: auto;
  }
  .clone-nav a {
    white-space: nowrap;
    padding: 7px 10px;
  }
  .clone-tools {
    gap: 7px;
  }
  .app {
    min-height: calc(100vh - 92px);
  }
  aside {
    width: auto;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--target-line);
    padding: 0 9px;
  }
  .nav {
    display: flex;
    overflow: auto;
    padding-bottom: 8px;
  }
  .nav button {
    white-space: nowrap;
  }
  .side-foot {
    display: none;
  }
  .topbar {
    top: 0;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .target-grid {
    grid-template-columns: 1fr;
  }
  .target-footer {
    padding: 0 12px;
  }
}
#target-ui-overrides {
  display: block;
}
/* Match the reference console chrome: compact global bar and no second header row. */
.clone-global {
  height: 56px;
  padding: 0 20px;
  gap: 22px;
}
.app {
  min-height: calc(100vh - 56px);
}
.topbar {
  display: none;
}
aside {
  min-height: calc(100vh - 56px);
}
.content {
  padding-top: 22px;
}
.target-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin: 0 0 12px;
}
.target-summary-card {
  min-height: 82px;
  border: 1px solid var(--target-line);
  border-radius: 15px;
  background: var(--target-surface);
  box-shadow: var(--target-shadow);
  padding: 12px 14px;
}
.target-summary-card h4 {
  margin: 0 0 9px;
  font-size: 13px;
  font-weight: 650;
  color: #3c3934;
}
.target-summary-values {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.target-summary-values span {
  display: block;
  color: var(--target-muted);
  font-size: 12px;
}
.target-summary-values strong {
  display: block;
  color: var(--target-ink);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 650;
}
.target-summary-values strong.money {
  color: var(--target-ink);
}
.notify-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  margin-left: -5px;
  margin-top: -10px;
  border-radius: 10px;
  background: #c52424;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  vertical-align: top;
}
.target-capabilities {
  display: none;
}
.nav-extra {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--target-line);
}
.nav-extra .nav-label {
  font-size: 11px;
  color: var(--target-muted);
  padding: 5px 11px;
}
.nav-extra button {
  font-size: 12px;
}
.target-capabilities {
  display: none;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.target-capabilities .btn {
  font-size: 12px;
  padding: 6px 10px;
}
.target-model-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  position: relative;
}
.target-model-head h2 {
  margin: 0;
  font-size: 18px;
}
.target-model-head p {
  margin: 0;
  color: var(--target-muted);
  font-size: 12px;
}
.target-chip {
  border: 1px solid #8fc7a2;
  background: #e3f3e5;
  color: #27733d;
  border-radius: 10px;
  padding: 3px 8px;
  font-size: 11px;
}
.target-currency {
  margin-left: auto;
  display: flex;
  border: 1px solid var(--target-line);
  border-radius: 12px;
  overflow: hidden;
  background: #e8e5df;
}
.target-currency button {
  border: 0;
  background: transparent;
  color: #6b665d;
  padding: 6px 14px;
  font-size: 12px;
}
.target-currency button.active {
  background: #e5d8c2;
  color: #845817;
  font-weight: 650;
}
.target-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--target-line);
  margin-bottom: 16px;
}
.target-tabs button {
  border: 0;
  background: transparent;
  color: #777168;
  padding: 8px 11px 10px;
  font-size: 13px;
}
.target-tabs button.active {
  color: #7b5017;
  border-bottom: 2px solid var(--target-accent);
  font-weight: 650;
}
.target-model-table {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
}
.target-model-table table {
  min-width: 820px;
  background: transparent;
}
.target-model-table th {
  background: #dfddd5;
  color: #5e5a52;
  font-size: 12px;
  padding: 9px 12px;
}
.target-model-table td {
  background: rgba(251, 250, 247, 0.28);
  border-color: #d7d3c9;
  padding: 10px 12px;
  vertical-align: middle;
}
.target-model-table tr:nth-child(even) td {
  background: rgba(232, 229, 222, 0.62);
}
.target-model-table .provider {
  width: 145px;
  vertical-align: middle;
  font-size: 13px;
  font-weight: 500;
}
.target-model-table .model-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #e5e2dc;
  border-radius: 8px;
  padding: 3px 7px;
  font-size: 12px;
  white-space: nowrap;
}
.target-model-table .price {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 650;
  text-align: right;
  white-space: pre-line;
  line-height: 1.35;
}
.target-video-tier {
  display: block;
  white-space: nowrap;
  text-align: left;
  line-height: 1.5;
}
.target-video-tier b {
  display: inline-block;
  min-width: 52px;
  color: #49665b;
  font-size: 11px;
  letter-spacing: 0.02em;
}
.target-video-tier + .target-video-tier {
  margin-top: 2px;
}
.target-model-table .price del {
  display: block;
  color: #757168;
  font-weight: 400;
  font-size: 11px;
}
.target-official {
  display: block;
  color: #73857d;
  font-size: 10px;
  font-weight: 500;
  margin-top: 3px;
}
.target-discount {
  display: inline-block;
  color: #176b55;
  background: #e3f3eb;
  border: 1px solid #b9decd;
  border-radius: 8px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 650;
  margin-top: 3px;
}
.target-fx {
  display: block;
  color: #6f877b;
  font-size: 10px;
  font-weight: 500;
  margin-top: 2px;
}
.docs-config-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 12px;
}
.docs-config-grid label {
  display: block;
  color: var(--target-muted);
  font-size: 12px;
  margin-bottom: 5px;
}
.docs-copy {
  display: flex;
  gap: 7px;
}
.docs-copy input {
  flex: 1;
}
.docs-protocol .target-model-head {
  flex-wrap: wrap;
}
.docs-protocol-tabs {
  margin-left: auto;
  overflow: auto;
  max-width: 100%;
}
.docs-protocol-tabs button {
  white-space: nowrap;
}
.docs-tools .target-tabs {
  margin: 0 0 12px;
  gap: 8px;
  flex-wrap: wrap;
  border: 0;
}
.docs-tools .target-tabs button {
  border: 1px solid var(--target-line);
  border-radius: 8px;
  padding: 7px 10px;
}
.docs-tools .target-tabs button.active {
  border-color: var(--target-accent);
  background: #eaf4f0;
}
.docs-protocol pre,
.docs-tools pre {
  min-height: 116px;
}
.docs-manual {
  padding: 20px 24px;
  line-height: 1.7;
}
.docs-manual p {
  margin: 8px 0 12px;
  color: var(--muted, #6b7280);
}
.docs-manual ul {
  margin: 0 0 8px;
  padding-left: 20px;
}
.docs-manual li {
  margin: 4px 0;
  color: var(--muted, #6b7280);
}
.docs-manual code {
  background: rgba(0, 0, 0, 0.05);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}
.docs-manual b {
  color: var(--text, #1f2937);
}
.target-model-head h3 {
  margin: 0;
  font-size: 14px;
}
@media (max-width: 850px) {
  .docs-config-grid {
    grid-template-columns: 1fr;
  }
  .docs-protocol-tabs {
    margin-left: 0;
  }
}
@media (max-width: 850px) {
  .clone-global {
    height: auto;
    min-height: 58px;
  }
  .app {
    min-height: calc(100vh - 92px);
  }
  aside {
    min-height: auto;
  }
  .target-summary {
    grid-template-columns: 1fr;
  }
}

/* Final visual pass: match the reference console's quiet, compact chrome. */
.clone-global {
  height: 56px;
  padding: 0 18px;
  gap: 0;
  background: #f8f7f3;
  border-color: #d7d4cc;
  box-shadow: 0 1px 0 rgba(44, 42, 36, 0.03);
}
.clone-logo {
  width: 110px;
  gap: 9px;
  color: #292825;
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
}
.clone-logo:hover,
.clone-nav a:hover {
  color: #292825;
  text-decoration: none;
}
.clone-logo-mark {
  width: 23px;
  height: 23px;
  border: 2px solid #1d1d1b;
  border-radius: 7px;
  position: relative;
  background: #fbfaf7;
}
.clone-logo-mark:after {
  width: 9px;
  height: 9px;
  border: 2px solid #1d1d1b;
  background: transparent;
  border-radius: 50%;
}
.clone-nav {
  height: 100%;
  gap: 0;
}
.clone-nav a {
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 17px;
  border-left: 1px solid #d7d4cc;
  color: #36342f;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}
.clone-nav a.active {
  background: #e4e1da;
  color: #292825;
  border-left-color: transparent;
  border-radius: 12px;
  font-weight: 650;
}
.clone-nav a[href="#tools"] {
  padding-right: 12px;
}
.clone-nav a[href="#tools"]::after {
  content: "⌄";
  font-size: 12px;
  margin-left: 5px;
  color: #6c685f;
}
.clone-tools {
  gap: 14px;
  color: #5d5a53;
}
.clone-tools button {
  width: 22px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: #55514a;
}
.clone-tools button::before {
  font-size: 16px;
  line-height: 1;
}
.clone-tools button:nth-child(1)::before {
  content: "◌";
}
.clone-tools button:nth-child(2)::before {
  content: "♧";
}
.clone-tools button:nth-child(3)::before {
  content: "◎";
}
.clone-tools button:nth-child(4)::before {
  content: "☼";
}
.clone-tools button:hover {
  color: #2d2a25;
}
.clone-tools .notify-dot {
  font-size: 10px;
  position: absolute;
  margin: -19px 0 0 10px;
  width: 15px;
  height: 15px;
}
.clone-user {
  margin-left: 2px;
  padding-left: 14px;
  border-left: 1px solid #d7d4cc;
}
.clone-avatar {
  width: 30px;
  height: 30px;
  background: #eeece7;
  border-color: #d4d0c7;
}
aside {
  padding: 0 8px;
  background: #f8f7f3;
  border-color: #d7d4cc;
}
aside .brand {
  padding: 14px 8px 8px;
  color: #747067;
  font-size: 12px;
}
.nav {
  gap: 2px;
}
.nav button {
  position: relative;
  padding: 9px 10px 9px 35px;
  border-radius: 9px;
  color: #57534c;
  font-size: 13px;
}
.nav button::before {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  text-align: center;
  color: #7e786e;
  font-size: 14px;
  font-weight: 500;
}
.nav button[data-page="overview"]::before {
  content: "▦";
}
.nav button[data-page="keys"]::before {
  content: "⌘";
}
.nav button[data-page="billing"]::before {
  content: "▭";
}
.nav button[data-page="usage"]::before {
  content: "▥";
}
.nav button[data-page="pricing"]::before {
  content: "◇";
}
.nav button[data-page="docs"]::before {
  content: "▤";
}
.nav button.active {
  background: #dedbd4;
  color: #292825;
}
.nav button.active::before {
  color: #bb7925;
}
.nav-extra {
  margin-top: 10px;
  padding-top: 10px;
  border-color: #d7d4cc;
}
.nav-extra button {
  padding-left: 35px;
}
.nav-extra button::before {
  content: "•" !important;
  color: #8b857b !important;
}
.side-foot {
  border-color: #d7d4cc;
}
.nav button[data-page="overview"]::before {
  content: "";
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  background:
    linear-gradient(
      90deg,
      transparent 43%,
      currentColor 44%,
      currentColor 56%,
      transparent 57%
    ),
    linear-gradient(
      0deg,
      transparent 43%,
      currentColor 44%,
      currentColor 56%,
      transparent 57%
    );
}
.nav button[data-page="keys"]::before {
  content: "";
  height: 9px;
  width: 12px;
  border: 1.5px solid currentColor;
  border-radius: 8px 8px 3px 3px;
  transform: translateY(-45%) rotate(-45deg);
}
.nav button[data-page="billing"]::before {
  content: "";
  height: 9px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}
.nav button[data-page="usage"]::before {
  content: "▂";
  font-size: 16px;
  line-height: 12px;
}
.nav button[data-page="pricing"]::before {
  content: "";
  height: 10px;
  width: 10px;
  border: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  border-radius: 2px;
}
.nav button[data-page="docs"]::before {
  content: "";
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  box-shadow: inset 5px 0 0 rgba(126, 120, 110, 0.12);
}
.content {
  max-width: 1050px;
  padding: 14px 16px 34px;
  margin: 0 auto;
}
.target-overview-heading {
  margin-bottom: 10px;
}
.target-overview-heading h2 {
  font-size: 16px;
  letter-spacing: 0.01em;
}
.target-toolbar {
  margin-bottom: 12px;
  gap: 7px;
}
.target-toolbar .target-date {
  min-width: 145px;
  text-align: center;
  font-size: 12px;
  padding: 7px 12px;
}
.target-summary {
  gap: 12px;
  margin-bottom: 12px;
}
.target-summary-card {
  min-height: 80px;
  padding: 11px 13px;
  border-radius: 14px;
}
.target-summary-card h4 {
  font-size: 12px;
  margin-bottom: 8px;
}
.target-summary-values {
  gap: 12px;
}
.target-summary-values span {
  font-size: 11px;
}
.target-summary-values strong {
  font-size: 16px;
}
.target-grid {
  gap: 12px;
  margin-bottom: 12px;
}
.target-card {
  padding: 12px;
  border-radius: 14px;
}
.target-card-head {
  margin-bottom: 7px;
}
.target-card-head h3 {
  font-size: 13px;
}
.target-card-head span {
  font-size: 11px;
}
.target-chart {
  height: 145px;
  padding: 5px 8px 0;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 34px,
    #e5e1d9 35px
  );
}
.target-line-chart {
  height: 112px;
}
.target-axis {
  font-size: 10px;
  padding: 0 3px;
}
.target-legend {
  font-size: 11px;
  margin-top: 6px;
}
.target-donuts {
  padding: 4px 8px 8px;
  gap: 20px;
}
.target-donut {
  width: 92px;
  height: 92px;
}
.target-donut:after {
  width: 59px;
  height: 59px;
}
.target-small-table th,
.target-small-table td {
  padding: 8px 10px;
  font-size: 11px;
}
.target-small-table th {
  font-size: 11px;
}
.panel {
  border-radius: 14px;
}
.table-wrap {
  border-radius: 10px;
}
.target-footer {
  height: 48px;
  padding: 0 26px;
  background: #f8f7f3;
  border-color: #d7d4cc;
}
@media (max-width: 1100px) {
  .content {
    max-width: none;
    margin: 0;
  }
  .clone-nav a {
    padding-left: 13px;
    padding-right: 13px;
  }
}
.clone-tools button:nth-child(1)::before {
  content: "";
  width: 14px;
  height: 10px;
  border: 1.4px solid currentColor;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  transform: translateY(2px);
}
.clone-tools button:nth-child(2)::before {
  content: "";
  width: 11px;
  height: 12px;
  border: 1.4px solid currentColor;
  border-radius: 7px 7px 3px 3px;
  transform: translateY(1px);
}
.clone-tools button:nth-child(3)::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1.4px solid currentColor;
  border-radius: 50%;
  background:
    linear-gradient(
      90deg,
      transparent 42%,
      currentColor 43%,
      currentColor 56%,
      transparent 57%
    ),
    linear-gradient(
      0deg,
      transparent 44%,
      currentColor 45%,
      currentColor 55%,
      transparent 56%
    );
}
.clone-tools button:nth-child(4)::before {
  content: "";
  width: 11px;
  height: 11px;
  border: 1.4px solid currentColor;
  border-radius: 50%;
  box-shadow:
    0 -7px 0 -5px currentColor,
    0 7px 0 -5px currentColor,
    7px 0 0 -5px currentColor,
    -7px 0 0 -5px currentColor;
}
.target-chart {
  position: relative;
}
.target-yaxis {
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 31px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #8a857c;
  font-size: 10px;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
}
.target-chart .target-line-chart {
  margin-left: 14px;
  width: calc(100% - 14px);
}

:root {
  --target-bg: #f3f8f6;
  --target-surface: #ffffff;
  --target-line: #dde4e7;
  --target-ink: #182129;
  --target-muted: #65727c;
  --target-accent: #176b55;
  --target-teal: #258166;
  --target-shadow:
    0 1px 2px rgba(31, 66, 55, 0.06), 0 5px 18px rgba(31, 66, 55, 0.05);
}
html,
body {
  background: var(--target-bg);
  color: var(--target-ink);
  -webkit-font-smoothing: antialiased;
}
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.clone-global {
  background: #fff;
  border-color: var(--target-line);
  box-shadow: 0 1px 0 rgba(31, 66, 55, 0.04);
}
.clone-logo {
  color: #182129;
}
.clone-logo-mark {
  border-color: #176b55;
  background: #f3f8f6;
}
.clone-logo-mark:after {
  border-color: #176b55;
}
.clone-nav a {
  border-color: var(--target-line);
  color: #53616b;
}
.clone-nav a.active {
  background: #eaf4f0;
  color: #176b55;
}
.clone-nav a:hover {
  color: #176b55;
}
.clone-tools {
  color: #53616b;
}
.clone-user {
  border-color: var(--target-line);
  color: var(--target-muted);
}
.clone-avatar {
  background: #f3f8f6;
  border-color: #dce5e1;
  color: #176b55;
}
.notify-dot {
  background: #c52424;
}
aside {
  background: #f7f9fa;
  border-color: var(--target-line);
}
aside .brand {
  color: #77828a;
}
.nav button {
  color: #53616b;
}
.nav button:hover {
  background: #f3f8f6;
}
.nav button.active {
  background: #eaf4f0;
  color: #176b55;
}
.nav button.active::before {
  color: #176b55;
}
.nav-extra {
  border-color: var(--target-line);
}
.side-foot {
  border-color: var(--target-line);
}
.target-toolbar .target-pills {
  border-color: #dce5e1;
  background: #f3f8f6;
}
.target-pills button {
  color: #65727c;
}
.target-pills button.active {
  background: #fff;
  color: #176b55;
}
.target-date {
  border-color: #dce5e1;
  background: #fff;
  color: #53616b;
}
.btn {
  border-color: #bac5ca;
  background: #fff;
  color: #182129;
}
.btn:hover {
  background: #f3f8f6;
}
.btn.primary {
  background: #176b55;
  border-color: #176b55;
  color: #fff;
}
.btn.danger {
  color: #b42318;
  border-color: #edcbc7;
}
.badge {
  background: #eaf4f0;
  color: #176b55;
}
.target-chip {
  border-color: #a9d8c4;
  background: #eaf4f0;
  color: #176b55;
}
.target-currency {
  border-color: #dce5e1;
  background: #f3f8f6;
}
.target-currency button.active {
  background: #dcefe7;
  color: #176b55;
}
.target-tabs button.active {
  color: #176b55;
  border-color: #176b55;
}
.target-card,
.target-summary-card,
.panel {
  border-color: var(--target-line);
  background: var(--target-surface);
  box-shadow: var(--target-shadow);
}
.table-wrap {
  border-color: var(--target-line);
}
.table-wrap th,
.target-model-table th {
  background: #e2f0ea;
  color: #49665b;
}
.table-wrap td,
.target-model-table td {
  border-color: #d6e7df;
}
.target-model-table tr:nth-child(even) td {
  background: #f0f8f4;
}
.target-model-table .model-name {
  background: #e4f0eb;
  color: #2b5144;
}
.target-model-table .price {
  color: #203d32;
}
.target-model-table .price del {
  color: #789087;
}
.target-footer {
  background: #f5fbf8;
  border-color: var(--target-line);
  color: #6b8177;
}
.target-chart {
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 34px,
    #e8edef 35px
  );
  border-color: #dce5e1;
}
.target-line-chart path:first-child {
  stroke: #d5e2dc;
}
.target-line-chart path:nth-child(2) {
  stroke: #e8edef;
}
.target-dot {
  background: var(--target-accent);
}
.money {
  color: #176b55;
}
.notice {
  border-color: #258166;
  background: #f3f8f6;
  color: #50625b;
}
.endpoint {
  background: #eaf4f0;
  color: #176b55;
}
.key-reveal {
  border-color: #b8d9cd;
  background: #f1f8f5;
}
input,
select,
textarea {
  border-color: #c7ddd3;
  background: #fff;
  color: var(--target-ink);
}
input:focus,
select:focus,
textarea:focus {
  border-color: #188364;
  box-shadow: 0 0 0 2px rgba(24, 131, 100, 0.12);
}
pre {
  background: #173c32;
  color: #e9f7f1;
}

.chat-integrated {
  display: flex;
  min-height: calc(100vh - 150px);
  margin: -14px -16px -42px;
  background: #f3f8f6;
}
.chat-integrated-side {
  width: 220px;
  flex: 0 0 220px;
  background: #f8fbfa;
  border-right: 1px solid #dce5e1;
  padding: 16px 10px;
}
.chat-integrated-nav {
  display: grid;
  gap: 3px;
}
.chat-integrated-nav button {
  border: 0;
  background: transparent;
  color: #53616b;
  text-align: left;
  padding: 10px 11px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.chat-integrated-nav button:hover,
.chat-integrated-nav button.active {
  background: #eaf4f0;
  color: #176b55;
  font-weight: 600;
}
.chat-integrated-nav button:first-child {
  border: 1px solid #b8d9cd;
  background: #eaf4f0;
  color: #176b55;
  margin-bottom: 5px;
}
.chat-integrated-sessions {
  border-top: 1px solid #dce5e1;
  margin-top: 12px;
  padding: 12px 10px;
  color: #65727c;
  font-size: 12px;
}
.chat-integrated-sessions > div:first-child {
  margin-bottom: 8px;
}
.chat-integrated-sessions span {
  display: block;
  padding: 8px 0;
  color: #87958f;
}
.chat-integrated-main {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: calc(100vh - 150px);
  flex-direction: column;
  background: #fff;
}
.chat-integrated-welcome {
  margin: auto;
  text-align: center;
  color: #182129;
}
.chat-integrated-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: #176b55;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
}
.chat-integrated-welcome h2 {
  margin: 0 0 5px;
}
.chat-integrated-welcome p {
  color: #65727c;
  margin: 0 0 20px;
}
.chat-integrated-messages {
  display: none;
  flex: 1;
  overflow: auto;
  padding: 24px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}
.chat-integrated-messages.active {
  display: block;
}
.integrated-message {
  margin: 0 0 14px;
  padding: 11px 14px;
  border-radius: 10px;
  max-width: 78%;
  line-height: 1.6;
  white-space: pre-wrap;
}
.integrated-message.user {
  margin-left: auto;
  background: #eaf4f0;
}
.integrated-message.bot {
  background: #f1f7f4;
  border: 1px solid #dce5e1;
}
.chat-integrated-input {
  display: none;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid #dce5e1;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}
.chat-integrated-input.active {
  display: flex;
}
.chat-integrated-input input {
  flex: 1;
  border: 1px solid #dce5e1;
  border-radius: 9px;
  padding: 10px;
  background: #f7faf9;
}
.chat-integrated-input input:focus {
  outline: 0;
  border-color: #176b55;
}
@media (max-width: 850px) {
  .chat-integrated {
    margin: -20px -16px -45px;
  }
  .chat-integrated-side {
    width: 180px;
    flex-basis: 180px;
  }
}
@media (max-width: 560px) {
  .chat-integrated-side {
    width: 58px;
    flex-basis: 58px;
    padding: 12px 6px;
  }
  .chat-integrated-nav button {
    font-size: 0;
    text-align: center;
    padding: 11px 0;
  }
  .chat-integrated-nav button:first-letter {
    font-size: 16px;
  }
  .chat-integrated-nav button span {
    display: none;
  }
  .chat-integrated-sessions {
    padding: 10px 4px;
    font-size: 0;
    text-align: center;
  }
  .chat-integrated-sessions span {
    font-size: 16px;
  }
}

body.chat-active {
  overflow: hidden;
}
body.chat-active .content {
  max-width: none;
  padding: 0;
  height: calc(100vh - 56px);
  overflow: hidden;
}
body.chat-active .app {
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(100vh - 56px);
  height: calc(100vh - 56px);
}
body.chat-active .chat-integrated {
  height: calc(100vh - 56px);
  min-height: 0;
  margin: 0;
  background: #f3f8f6;
  align-items: stretch;
}
body.chat-active .chat-integrated-side {
  width: 240px;
  flex: 0 0 240px;
  min-height: 0;
  height: 100%;
  padding: 18px 12px;
  position: relative;
  border-right: 1px solid #dce5e1;
  background: #f8fbfa;
}
body.chat-active .chat-integrated-main {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}
body.chat-active .chat-integrated-welcome {
  width: min(560px, calc(100% - 40px));
  margin: auto;
}
body.chat-active .chat-integrated-messages {
  height: auto;
  min-height: 0;
  max-width: 900px;
  flex: 1;
  padding: 28px 32px;
}
body.chat-active .chat-integrated-input {
  flex: 0 0 auto;
  max-width: 900px;
  padding: 14px 20px 22px;
}
body.chat-active .target-footer {
  display: none;
}
@media (max-width: 850px) {
  body.chat-active .chat-integrated-side {
    width: 200px;
    flex-basis: 200px;
  }
  body.chat-active .chat-integrated {
    height: calc(100vh - 92px);
  }
  body.chat-active .content,
  body.chat-active .app {
    height: calc(100vh - 92px);
  }
}
@media (max-width: 560px) {
  body.chat-active .chat-integrated-side {
    width: 64px;
    flex-basis: 64px;
    padding: 12px 6px;
  }
}

#page-experience {
  margin: -14px -16px -42px;
  min-height: calc(100vh - 108px);
  background: #f3f8f6;
}
#page-experience .experience-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 108px);
  min-height: 760px;
  border: 0;
  background: #fff;
}
@media (max-width: 850px) {
  #page-experience {
    margin: -20px -16px -45px;
  }
  #page-experience .experience-frame {
    height: calc(100vh - 92px);
    min-height: 720px;
  }
}

body.qj-experience-active {
  overflow: hidden;
}
body.qj-experience-active .content {
  max-width: none;
  padding: 0;
  height: calc(100vh - 56px);
  overflow: hidden;
}
body.qj-experience-active .app {
  grid-template-columns: minmax(0, 1fr);
  height: calc(100vh - 56px);
  min-height: calc(100vh - 56px);
}
body.qj-experience-active .target-footer {
  display: none;
}
/* AI 创作隐藏网关侧栏时，让 main 占据完整网格。否则隐藏 aside 后 main 仍落在 240px 首列。 */
body.ai-create-active .app {
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(100vh - 64px);
}
body.ai-create-active .content {
  max-width: 1300px;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 850px) {
  body.ai-create-active .clone-global {
    height: auto;
    min-height: 130px;
    align-items: flex-start;
    padding-top: 9px;
    padding-bottom: 9px;
  }
  body.ai-create-active .content {
    padding-top: 14px;
  }
}
#page-qj-experience {
  height: calc(100vh - 56px);
  min-height: 0;
  margin: 0;
  background: #f3f8f6;
  overflow: hidden;
}
.qj-experience-layout {
  display: flex;
  height: 100%;
  min-height: 0;
  align-items: stretch;
}
.qj-experience-side {
  width: 220px;
  flex: 0 0 220px;
  padding: 18px 12px;
  background: #f8fbfa;
  border-right: 1px solid #dce5e1;
}
.qj-experience-side h3 {
  margin: 0 10px 16px;
  color: #65727c;
  font-size: 12px;
  font-weight: 500;
}
.qj-experience-side nav {
  display: grid;
  gap: 3px;
}
.qj-experience-side button {
  border: 0;
  background: transparent;
  color: #53616b;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
.qj-experience-side button:hover,
.qj-experience-side button.active {
  background: #eaf4f0;
  color: #176b55;
  font-weight: 600;
}
.qj-experience-side button.qj-parent {
  font-weight: 650;
  color: #176b55;
  background: #eaf4f0;
}
.qj-s2s-subnav {
  display: grid;
  gap: 2px;
  margin: 2px 0 10px 13px;
  padding: 4px 0 4px 9px;
  border-left: 1px solid #cfe3da;
}
.qj-s2s-subnav button {
  padding: 8px 9px;
  font-size: 12px;
  color: #65727c;
}
.qj-s2s-subnav button.active {
  background: #dcefe7;
  color: #176b55;
  font-weight: 600;
}
.qj-internal-panel {
  max-width: 1120px;
  margin: 0 auto;
}
.qj-robot-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.qj-robot-form .field:first-child {
  grid-column: 1/-1;
}
.qj-debug-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-left: 3px solid #258166;
  background: #f3f8f6;
  color: #50625b;
  font-size: 12px;
}
#qjDebugMount .voice-debug-form {
  display: none;
}
#qjDebugMount .voice-debug-setup {
  grid-template-columns: 1fr;
}
#qjDebugMount .voice-debug-action {
  border-left: 0;
}
.qj-link-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}
.qj-link-config-card,
.qj-link-call-card {
  border: 1px solid var(--target-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--target-shadow);
  padding: 18px;
  min-width: 0;
}
.qj-link-config-card h3,
.qj-link-call-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
}
.qj-link-config-card > p,
.qj-link-call-card > p {
  margin: 0 0 18px;
  color: #65727c;
  font-size: 12px;
}
.qj-link-fields {
  display: grid;
  gap: 13px;
}
.qj-link-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.qj-link-inline .btn {
  white-space: nowrap;
}
.qj-link-summary {
  margin: 14px 0 0 !important;
}
.qj-link-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}
.qj-link-call-card {
  display: flex;
  flex-direction: column;
}
.qj-link-call-card #qjDebugMount {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.qj-link-call-card #qjDebugMount > .qj-debug-note {
  margin: 0 0 10px;
}
.qj-link-call-card .voice-debug-shell {
  min-height: 330px;
  box-shadow: none;
  border-radius: 12px;
  flex: 1;
}
.qj-link-call-card .voice-debug-setup {
  min-height: 328px;
}
.qj-link-call-card .voice-debug-action {
  min-height: 328px;
  padding: 22px;
}
.qj-link-call-card .voice-debug-mic {
  width: 108px;
  height: 108px;
  font-size: 34px;
}
.qj-link-call-card .voice-debug-session {
  min-height: 400px;
}
.qj-link-call-card .voice-debug-chat {
  height: 330px;
  padding: 16px;
}
.qj-link-list {
  margin-top: 0 !important;
}
.qj-link-list .target-model-head {
  margin-bottom: 10px;
}
.qj-link-list .target-model-head h3 {
  font-size: 15px;
}
.qj-experience-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 22px 24px 42px;
  background: #f3f8f6;
}
.qj-experience-main > .qj-tab-panel {
  max-width: 1120px;
  margin: 0 auto;
}
.qj-recordings-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.qj-recordings-toolbar select {
  max-width: 360px;
}
.qj-recordings-table table {
  min-width: 760px;
}
.qj-recordings-table td {
  vertical-align: middle;
}
.qj-recording-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.qj-recording-player {
  display: none;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #dce5e1;
  border-radius: 12px;
  background: #fff;
}
.qj-recording-player.active {
  display: block;
}
.qj-recording-player audio {
  width: 100%;
  height: 36px;
}
.qj-recording-dialogue {
  max-height: 260px;
  overflow: auto;
  margin-top: 12px;
  border-top: 1px solid #dce5e1;
  padding-top: 10px;
}
.qj-dialogue-row {
  display: flex;
  gap: 8px;
  margin: 0 0 9px;
  font-size: 12px;
  line-height: 1.55;
}
.qj-dialogue-row strong {
  color: #176b55;
  min-width: 34px;
}
@media (max-width: 850px) {
  body.qj-experience-active .qj-experience-layout {
    height: calc(100vh - 92px);
  }
  body.qj-experience-active .content,
  body.qj-experience-active .app {
    height: calc(100vh - 92px);
  }
  #page-qj-experience {
    height: calc(100vh - 92px);
  }
  .qj-experience-side {
    width: 180px;
    flex-basis: 180px;
  }
  .qj-experience-main {
    padding: 16px;
  }
}
@media (max-width: 560px) {
  .qj-experience-side {
    width: 64px;
    flex-basis: 64px;
    padding: 12px 6px;
  }
  .qj-experience-side h3 {
    display: none;
  }
  .qj-experience-side button {
    font-size: 0;
    text-align: center;
    padding: 11px 0;
  }
  .qj-experience-side button::first-letter {
    font-size: 16px;
  }
  .qj-experience-main {
    padding: 12px 10px;
  }
  .qj-experience-main .target-model-head {
    display: block;
  }
  .qj-experience-main .target-model-head p {
    margin-top: 5px;
  }
  .qj-recordings-toolbar select {
    max-width: none;
    flex: 1;
  }
}
@media (max-width: 980px) {
  .qj-link-workspace {
    grid-template-columns: 1fr;
  }
  .qj-link-call-card {
    min-height: 340px;
  }
}
@media (max-width: 700px) {
  .qj-robot-form {
    grid-template-columns: 1fr;
  }
  .qj-robot-form .field:first-child {
    grid-column: auto;
  }
  .qj-s2s-subnav {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
  .qj-link-inline {
    grid-template-columns: 1fr;
  }
  .qj-link-inline .btn {
    width: 100%;
  }
}

#page-voice-debug {
  --debug-green: #176b55;
  --debug-soft: #eaf4f0;
  --debug-line: #dce5e1;
  --debug-muted: #65727c;
}
.voice-debug-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.voice-debug-head h2 {
  font-size: 18px;
  margin: 0 0 3px;
}
.voice-debug-head p {
  font-size: 12px;
  color: var(--debug-muted);
  margin: 0;
}
.voice-debug-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--debug-line);
  border-radius: 999px;
  background: #fff;
  padding: 5px 11px;
  color: var(--debug-muted);
  font-size: 12px;
}
.voice-debug-status:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ba8a2;
}
.voice-debug-status.connecting:before {
  background: #d3942d;
}
.voice-debug-status.connected:before {
  background: #258166;
  box-shadow: 0 0 0 4px rgba(37, 129, 102, 0.12);
}
.voice-debug-status.error:before {
  background: #b42318;
}
.voice-debug-shell {
  min-height: 670px;
  border: 1px solid var(--debug-line);
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(29, 65, 51, 0.04),
    0 7px 24px rgba(29, 65, 51, 0.05);
  overflow: hidden;
}
.voice-debug-setup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  min-height: 670px;
}
.voice-debug-form {
  padding: 24px;
}
.voice-debug-form h3 {
  margin: 0 0 5px;
  font-size: 16px;
}
.voice-debug-form > p {
  margin: 0 0 22px;
  color: var(--debug-muted);
  font-size: 12px;
}
.voice-debug-form textarea {
  min-height: 260px;
  line-height: 1.7;
}
.voice-debug-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.voice-debug-decisions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 11px 12px;
  border: 1px solid var(--debug-line);
  border-radius: 9px;
  background: #f8fbfa;
}
.voice-debug-decisions label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #425149;
  cursor: pointer;
}
.voice-debug-decisions input {
  width: auto;
  accent-color: var(--debug-green);
}
.voice-debug-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-left: 1px solid var(--debug-line);
  background: linear-gradient(145deg, #f8fbfa, #eef7f3);
  padding: 28px;
}
.voice-debug-mic {
  width: 132px;
  height: 132px;
  border: 0;
  border-radius: 50%;
  background: var(--debug-green);
  color: #fff;
  font-size: 42px;
  box-shadow: 0 13px 30px rgba(23, 107, 85, 0.2);
  transition: 0.2s;
}
.voice-debug-mic:hover {
  transform: translateY(-2px);
  background: #125b48;
}
.voice-debug-mic:disabled {
  opacity: 0.55;
  transform: none;
}
.voice-debug-action strong {
  font-size: 15px;
  margin-top: 20px;
}
.voice-debug-action p {
  margin: 5px 0 0;
  color: var(--debug-muted);
  font-size: 12px;
}
.voice-debug-error {
  display: none;
  margin-top: 12px;
  color: #b42318;
  font-size: 12px;
}
.voice-debug-session {
  display: none;
  min-height: 670px;
  grid-template-rows: 1fr auto;
}
.voice-debug-session.active {
  display: grid;
}
.voice-debug-chat {
  height: 590px;
  overflow: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fbfdfc;
}
.voice-debug-message {
  display: flex;
  gap: 9px;
  max-width: 78%;
}
.voice-debug-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.voice-debug-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 9px;
  background: #e4f1ec;
  color: var(--debug-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.voice-debug-message.user .voice-debug-avatar {
  background: #176b55;
  color: #fff;
}
.voice-debug-bubble {
  padding: 10px 13px;
  border: 1px solid var(--debug-line);
  border-radius: 4px 12px 12px;
  background: #fff;
  line-height: 1.65;
  white-space: pre-wrap;
}
.voice-debug-message.user .voice-debug-bubble {
  border-color: #cfe5dc;
  background: var(--debug-soft);
  border-radius: 12px 4px 12px 12px;
}
.voice-debug-time {
  margin-top: 3px;
  color: #89968f;
  font-size: 10px;
}
.voice-debug-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-top: 1px solid var(--debug-line);
  background: #fff;
}
.voice-debug-volume {
  height: 6px;
  flex: 1;
  border-radius: 999px;
  background: #edf2ef;
  overflow: hidden;
}
.voice-debug-volume span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #258166;
  transition: width 0.06s;
}
.voice-debug-end {
  border: 1px solid #efc9c5;
  border-radius: 9px;
  background: #fff;
  color: #b42318;
  padding: 8px 16px;
}
.voice-debug-end:hover {
  background: #fff5f4;
}
.voice-config-name {
  font-weight: 600;
  color: #26352f;
}
.voice-config-uuid {
  display: inline-flex;
  align-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: #3e534a;
  background: #eef6f2;
  border: 1px solid #d6e8e0;
  border-radius: 7px;
  padding: 4px 8px;
}
.voice-config-actions {
  display: flex;
  gap: 6px;
}
.voice-config-link {
  color: #176b55;
  text-decoration: none;
}
.voice-config-link:hover {
  text-decoration: underline;
}
.voice-speed-control {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 220px;
}
.voice-speed-control input[type="range"] {
  width: 105px;
  accent-color: #176b55;
}
.voice-speed-control output {
  min-width: 34px;
  color: #176b55;
  font-variant-numeric: tabular-nums;
}
.voice-speed-control .btn {
  padding: 4px 8px;
  font-size: 11px;
}
.qj-doubao-call-panel {
  margin-top: 16px;
}
.qj-doubao-call-panel .target-model-head {
  align-items: center;
}
.qj-doubao-call-panel .target-model-head p {
  flex-basis: 100%;
}
.qj-doubao-transcript {
  height: 320px;
  min-height: 220px;
  margin-top: 16px;
  border: 1px solid var(--debug-line);
  border-radius: 12px;
  padding: 18px;
  background: #fbfdfc;
}
.qj-doubao-call-panel .actions {
  justify-content: flex-start;
}
@media (max-width: 850px) {
  .voice-debug-setup {
    grid-template-columns: 1fr;
  }
  .voice-debug-action {
    border-left: 0;
    border-top: 1px solid var(--debug-line);
    min-height: 280px;
  }
  .voice-debug-grid {
    grid-template-columns: 1fr;
  }
  .voice-debug-shell,
  .voice-debug-setup,
  .voice-debug-session {
    min-height: 600px;
  }
  .voice-debug-chat {
    height: 520px;
  }
}
@media (max-width: 520px) {
  .voice-debug-form {
    padding: 16px;
  }
  .voice-debug-message {
    max-width: 92%;
  }
  .voice-debug-mic {
    width: 110px;
    height: 110px;
  }
}

#impersonationBar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: #7f1d1d;
  color: #fff;
  padding: 9px 16px;
  text-align: center;
  font-size: 13px;
  box-shadow: 0 2px 8px #0003;
}
#impersonationBar button {
  margin-left: 14px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  border-radius: 5px;
  padding: 3px 10px;
}

#page-chat .chat-session-item {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  color: #53616b;
  padding: 7px 4px;
  border-radius: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  font-size: 12px;
}
#page-chat .chat-session-item:hover {
  background: #eaf4f0;
  color: #176b55;
}
#page-chat .integrated-message.error {
  background: #fff1ef;
  border-color: #efc9c5;
  color: #b42318;
}

.clone-logo {
  width: auto !important;
  gap: 10px !important;
  font-size: 16px !important;
  font-weight: 750 !important;
}
.clone-logo img {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
  border-radius: 10px;
}
.chat-integrated-logo {
  background: transparent !important;
  overflow: hidden;
}
.chat-integrated-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
#page-ai-create > .target-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.65fr);
  align-items: start;
}
#page-ai-create .creation-task-label {
  font-size: 13px;
  font-weight: 700;
  color: #263a33;
  margin-bottom: 9px;
}
#page-ai-create .creation-task-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border: 0;
  margin-bottom: 17px;
}
#page-ai-create .creation-task-tabs button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  border: 1px solid #dce5e1 !important;
  border-radius: 11px !important;
  background: #fff !important;
  padding: 10px 12px !important;
  color: #52645d !important;
  text-align: left;
  min-height: 64px;
}
#page-ai-create .creation-task-tabs button strong {
  font-size: 14px;
  color: #263a33;
}
#page-ai-create .creation-task-tabs button small {
  font-size: 11px;
  color: #7b8c85;
  font-weight: 400;
}
#page-ai-create .creation-task-tabs button.primary {
  border-color: #176b55 !important;
  background: #eaf6f1 !important;
  box-shadow: 0 0 0 2px rgba(23, 107, 85, 0.1);
}
#page-ai-create .creation-task-tabs button.primary strong {
  color: #176b55;
}
#page-ai-create .creation-field-title {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px !important;
  font-weight: 700;
  color: #263a33 !important;
  margin-bottom: 8px !important;
}
#page-ai-create .creation-model-count {
  font-size: 11px;
  font-weight: 400;
  color: #71827b;
}
#page-ai-create .creation-mode-note {
  padding: 9px 11px;
  border-radius: 9px;
  background: #f3f8f6;
  color: #53616b;
  font-size: 12px;
  margin: 0 0 10px;
}
#page-ai-create .creation-model-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}
#page-ai-create .creation-model-card {
  position: relative;
  border: 1px solid #dce5e1;
  background: #fff;
  border-radius: 12px;
  padding: 13px 13px 12px;
  text-align: left;
  cursor: pointer;
  transition: 0.16s;
  min-width: 0;
  overflow: hidden;
}
#page-ai-create .creation-model-card:hover {
  border-color: #75aa97;
  background: #f7fbf9;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(31, 84, 65, 0.08);
}
#page-ai-create .creation-model-card.active {
  border: 2px solid #176b55;
  background: #edf7f2;
  padding: 12px 12px 11px;
  box-shadow: 0 0 0 3px rgba(23, 107, 85, 0.1);
}
#page-ai-create .creation-model-card.active:before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  border-style: solid;
  border-width: 0 38px 38px 0;
  border-color: transparent #176b55 transparent transparent;
}
#page-ai-create .creation-model-card.active:after {
  content: "\2713";
  position: absolute;
  right: 7px;
  top: 3px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
#page-ai-create .creation-model-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  padding-right: 20px;
}
#page-ai-create .creation-model-head b {
  font-size: 15px;
  color: #182129;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#page-ai-create .creation-model-region {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  background: #eaf4f0;
  color: #176b55;
  white-space: nowrap;
}
#page-ai-create .creation-model-region.overseas {
  background: #eef3fa;
  color: #315f91;
}
#page-ai-create .creation-model-provider {
  color: #53616b;
  font-size: 12px;
  margin-bottom: 3px;
}
#page-ai-create .creation-model-id {
  color: #87928c;
  font:
    10px/1.45 "SFMono-Regular",
    Consolas,
    monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#page-ai-create .creation-model-desc {
  color: #53645d;
  font-size: 12px;
  margin-top: 8px;
  min-height: 36px;
  line-height: 1.5;
}
#page-ai-create .creation-model-capabilities {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 8px;
}
#page-ai-create .creation-model-capabilities span {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 5px;
  background: #f1f5f3;
  color: #60746b;
}
#page-ai-create .creation-model-card.active .creation-model-capabilities span {
  background: #dceee6;
  color: #176b55;
}
#page-ai-create .creation-model-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #edf1ef;
  margin-top: 10px;
  padding-top: 9px;
}
#page-ai-create .creation-model-price {
  color: #176b55;
  font-size: 13px;
  font-weight: 700;
}
#page-ai-create .creation-model-price small {
  display: block;
  color: #7b8c85;
  font-size: 10px;
  font-weight: 400;
  margin-bottom: 2px;
}
#page-ai-create .creation-select-state {
  font-size: 11px;
  color: #74867e;
  white-space: nowrap;
}
#page-ai-create .creation-model-card.active .creation-select-state {
  font-weight: 700;
  color: #176b55;
}
#page-ai-create .creation-selection-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #acd0c1;
  background: #f2faf6;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 11px 0 3px;
}
#page-ai-create .creation-selection-summary .summary-label {
  font-size: 11px;
  color: #688078;
  margin-bottom: 2px;
}
#page-ai-create .creation-selection-summary strong {
  display: block;
  color: #174d3c;
  font-size: 14px;
}
#page-ai-create .creation-selection-summary .summary-price {
  color: #176b55;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
#page-ai-create .creation-empty {
  grid-column: 1/-1;
  padding: 25px;
  text-align: center;
  border: 1px dashed #cbdad3;
  border-radius: 10px;
  color: #65727c;
  background: #fafcfb;
}
@media (max-width: 1000px) {
  #page-ai-create > .target-grid {
    grid-template-columns: 1fr;
  }
  #page-ai-create .creation-model-picker {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  #page-ai-create .creation-task-tabs {
    grid-template-columns: 1fr;
  }
  #page-ai-create .creation-task-tabs button {
    min-height: 0;
  }
  #page-ai-create .creation-selection-summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

body.admin-voice-config {
  background: #f3f8f6;
}
body.admin-voice-config .app {
  grid-template-columns: 216px minmax(0, 1fr);
  height: calc(100vh - 56px);
  min-height: calc(100vh - 56px);
}
body.admin-voice-config .app > aside {
  display: none !important;
}
body.admin-voice-config .app > .admin-secondary {
  display: block;
  width: 216px;
  min-height: calc(100vh - 56px);
  overflow: auto;
}
body.admin-voice-config .app > main {
  min-width: 0;
}
body.admin-voice-config .admin-global-actions {
  color: #66747d;
  font-size: 12px;
}
@media (max-width: 850px) {
  body.admin-voice-config .app {
    display: block;
    height: auto;
    min-height: 0;
  }
  body.admin-voice-config .app > .admin-secondary {
    display: flex;
    width: auto;
    min-height: 0;
  }
  body.admin-voice-config.qj-experience-active .content,
  body.admin-voice-config #page-qj-experience {
    height: calc(100vh - 149px);
  }
}

/* === 方案3: 页面切换过渡 === */
.content {
  transition:
    opacity 180ms ease-out,
    transform 180ms ease-out;
}
.content.page-fade-out {
  opacity: 0;
  transform: translateY(4px);
}

/* === 方案5: 统一卡片/面板样式 === */
.stat,
.panel,
.target-card {
  border-radius: var(--card-radius);
  background: var(--card-bg);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
}

/* === 方案1: 侧栏导航分组 === */
.nav-group {
  font-size: var(--nav-group-size);
  font-weight: 600;
  color: var(--nav-group-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 10px 4px;
  border-top: 1px solid var(--target-line);
  margin-top: 6px;
}
.nav-group:first-child {
  border-top: 0;
  margin-top: 0;
}
.nav-group + .nav-group {
  margin-top: 4px;
}
.nav-section {
  display: grid;
  gap: var(--nav-gap);
}
.nav-section button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 9px 10px 9px 30px;
  border-radius: 6px;
  color: #3d4952;
  font-size: 13px;
  position: relative;
}
.nav-section button::before {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--nav-group-color);
}
.nav-section button.active {
  background: #e8f2ee;
  color: var(--brand);
  font-weight: 600;
}
.nav-section button.active::before {
  color: var(--brand);
}

/* === 方案4: AI 创作页布局 === */
.ai-create-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: start;
}
.ai-create-right {
  position: sticky;
  top: 20px;
  min-height: 400px;
}
.create-result-area {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.create-result-area img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
/* loading 状态 */
.create-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 20px;
}
.create-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--target-line);
  border-top-color: var(--target-accent);
  border-radius: 50%;
  animation: create-spin 0.8s linear infinite;
}
@keyframes create-spin { to { transform: rotate(360deg); } }
.create-loading-text {
  font-size: 14px;
  color: var(--target-muted);
}
.create-loading-timer {
  font-size: 12px;
  color: var(--target-muted);
  opacity: 0.7;
}
.create-template-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 12px;
}
.create-chips-label {
  font-size: 12px;
  color: var(--target-muted);
  margin-right: 4px;
}
.create-chip {
  border: 1px solid var(--target-line);
  background: var(--target-surface);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--target-ink);
  cursor: pointer;
  transition: all 120ms ease;
}
.create-chip:hover {
  border-color: var(--target-accent);
  color: var(--target-accent);
}

/* ========== 优化1: 移动端适配 ========== */
@media (max-width: 768px) {
  .app { display: flex; flex-direction: column; }
  aside { width: 100%; min-height: 0; height: auto; border-right: 0; border-bottom: 1px solid var(--target-line); padding: 0; position: relative; }
  aside .brand { padding: 10px 14px; }
  .nav { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 2px; padding: 0 8px 8px; }
  .nav-group { display: none; }
  .nav-section { display: contents; }
  .nav button { padding: 8px 6px 8px 10px; font-size: 12px; border-radius: 7px; text-align: center; }
  .nav button::before { display: none; }
  .side-foot { position: relative; bottom: 0; left: 0; right: 0; padding: 8px 14px; display: flex; justify-content: space-between; align-items: center; }
  .clone-global { height: auto; padding: 8px 12px; flex-wrap: wrap; }
  .clone-nav { flex-wrap: wrap; }
  .clone-nav a { padding: 0 10px; font-size: 12px; }
  .clone-tools { gap: 8px; }
  .content { padding: 10px 12px; }
  .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .heading { flex-direction: column; gap: 8px; }
  .heading .actions { flex-wrap: wrap; }
  .target-grid { grid-template-columns: 1fr; }
  .ai-create-grid { grid-template-columns: 1fr; }
  .row { flex-direction: column; gap: 8px; }
  .voice-debug-grid { grid-template-columns: 1fr; }
}

/* ========== 优化2: 表格搜索栏 ========== */
.table-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.table-toolbar input[type="search"] {
  flex: 1;
  min-width: 120px;
  max-width: 300px;
  padding: 7px 10px;
  border: 1px solid var(--target-line);
  border-radius: 8px;
  font-size: 13px;
  background: var(--target-surface);
}
.table-toolbar .table-count {
  font-size: 12px;
  color: var(--target-muted);
}
.table-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  padding: 10px 0 4px;
}
.table-pagination button {
  border: 1px solid var(--target-line);
  background: var(--target-surface);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  color: var(--target-ink);
}
.table-pagination button:hover { border-color: var(--target-accent); color: var(--target-accent); }
.table-pagination button:disabled { opacity: 0.4; cursor: default; }
.table-pagination button.active { background: #eaf4f0; border-color: var(--target-accent); color: var(--target-accent); }
.table-pagination span { font-size: 12px; color: var(--target-muted); }

/* ========== 优化3: 充值快捷金额 ========== */
.quick-amounts {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.quick-amount {
  border: 1px solid var(--target-line);
  background: var(--target-surface);
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 13px;
  cursor: pointer;
  color: var(--target-ink);
  transition: all 120ms ease;
}
.quick-amount:hover { border-color: var(--target-accent); color: var(--target-accent); }
.quick-amount.active { background: #eaf4f0; border-color: var(--target-accent); color: var(--target-accent); font-weight: 600; }

/* ========== 优化4: AI创作结果操作栏 ========== */
.create-result-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.create-result-actions button {
  border: 1px solid var(--target-line);
  background: var(--target-surface);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  color: var(--target-ink);
  transition: all 120ms ease;
}
.create-result-actions button:hover { border-color: var(--target-accent); color: var(--target-accent); }

/* ========== 优化5: 拖拽上传 ========== */
.drop-zone {
  border: 2px dashed var(--target-line);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 150ms ease;
  background: var(--target-surface);
}
.drop-zone:hover { border-color: var(--target-accent); background: #f3f8f6; }
.drop-zone.dragover { border-color: var(--target-accent); background: #eaf4f0; }
.drop-zone .drop-icon { font-size: 28px; color: var(--target-muted); margin-bottom: 6px; }
.drop-zone .drop-text { font-size: 13px; color: var(--target-muted); }
.drop-zone .drop-text strong { color: var(--target-ink); }

/* ========== 优化6: 空状态 ========== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--target-muted);
}
.empty-state .empty-icon {
  font-size: 36px;
  margin-bottom: 8px;
  opacity: 0.5;
}
.empty-state .empty-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--target-ink);
  margin-bottom: 4px;
}
.empty-state .empty-desc {
  font-size: 12px;
  color: var(--target-muted);
}

/* ========== 优化7: 统一 loading 骨架屏 ========== */
.skeleton-row {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--target-line);
}
.skeleton-cell {
  background: linear-gradient(90deg, #eef2f0 25%, #e2e8e5 50%, #eef2f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
  height: 14px;
}
.skeleton-cell.w1 { flex: 1; }
.skeleton-cell.w2 { flex: 2; }
.skeleton-cell.w3 { flex: 3; }
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--target-line);
  border-top-color: var(--target-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== 优化8: 表单校验提示 ========== */
.field-error {
  color: var(--danger);
  font-size: 12px;
  margin-top: 4px;
  display: none;
}
.field-error.show { display: block; }
input.invalid, textarea.invalid, select.invalid {
  border-color: var(--danger) !important;
  background: #fef2f2;
}
.voice-docs-body{max-width:880px}
.vd-toc{background:var(--soft);border:1px solid var(--line);border-radius:8px;padding:16px 20px;margin-bottom:24px}
.vd-toc h3{margin:0 0 10px;font-size:13px;color:var(--muted)}
.vd-toc ol{margin:0;padding-left:20px}
.vd-toc a{color:var(--brand);text-decoration:none;font-size:13px}
.vd-toc a:hover{text-decoration:underline}
.vd-toc li{margin:3px 0}
.vd-section{margin-bottom:32px}
.vd-section h2{font-size:18px;margin:0 0 12px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.vd-section h3{font-size:15px;margin:16px 0 8px}
.vd-section p{color:#3d4952;line-height:1.7;margin:8px 0}
.vd-section ul{margin:8px 0 12px;padding-left:20px;line-height:1.7}
.vd-section li{margin:4px 0;color:#3d4952}
.vd-section code{background:rgba(0,0,0,.05);padding:1px 6px;border-radius:4px;font-size:12px}
.vd-section pre{background:#1d252c;color:#e8edf0;padding:16px 20px;border-radius:8px;overflow-x:auto;font-size:13px;line-height:1.6;margin:12px 0}
.vd-section pre code{background:none;padding:0;color:inherit;font-size:inherit}
.vd-section table{width:100%;border-collapse:collapse;margin:12px 0;font-size:13px}
.vd-section table th,.vd-section table td{border:1px solid var(--line);padding:8px 12px;text-align:left}
.vd-section table th{background:var(--soft);font-weight:600}
.vd-callout{background:#e8f2ee;border:1px solid #c3ddd4;border-radius:8px;padding:14px 18px;margin:14px 0;font-size:13px;color:#1a4a3a}
.vd-callout.warn{background:#fef6e7;border-color:#e8d5a8;color:#7a5a10}

/* ==================== Skill Drawer ==================== */
.skill-drawer{display:none;position:absolute;right:0;top:0;bottom:0;width:420px;background:#fff;border-left:1px solid #dce5e1;box-shadow:-4px 0 16px rgba(0,0,0,.06);z-index:10;flex-direction:column}
.skill-drawer.open{display:flex}
.skill-drawer-header{padding:14px 16px;border-bottom:1px solid #e8ede8;display:flex;align-items:center;justify-content:space-between}
.skill-drawer-header h3{margin:0;font-size:15px;font-weight:600}
.skill-drawer-close{cursor:pointer;font-size:18px;color:#888;border:none;background:none;padding:4px 8px}
.skill-drawer-close:hover{color:#333}
.skill-drawer-tabs{display:flex;gap:0;border-bottom:1px solid #e8ede8}
.skill-drawer-tabs button{flex:1;padding:10px 12px;border:none;background:none;cursor:pointer;font-size:13px;color:#666;border-bottom:2px solid transparent}
.skill-drawer-tabs button.active{color:#176b55;border-bottom-color:#176b55;font-weight:600}
.skill-drawer-subtabs{display:flex;gap:8px;padding:8px 16px;border-bottom:1px solid #f0f3f0;flex-wrap:wrap}
.skill-drawer-subtabs button{padding:4px 10px;border:1px solid #dce5e1;border-radius:14px;background:#fff;cursor:pointer;font-size:12px;color:#555}
.skill-drawer-subtabs button.active{background:#176b55;color:#fff;border-color:#176b55}
.skill-drawer-body{flex:1;overflow-y:auto;padding:12px 16px}
.skill-card{border:1px solid #e0e8e4;border-radius:10px;padding:12px;margin-bottom:8px;cursor:pointer;transition:border-color .15s,background .15s}
.skill-card:hover{border-color:#b0c4bb}
.skill-card.selected{border-color:#176b55;background:#eaf4f0}
.skill-card-title{font-size:14px;font-weight:600;margin-bottom:4px}
.skill-card-desc{font-size:12px;color:#777;line-height:1.5}
.skill-card-meta{font-size:11px;color:#999;margin-top:6px;display:flex;gap:8px;flex-wrap:wrap}
.skill-card-meta .tag{padding:1px 6px;border-radius:4px;background:#f0f3f0;color:#555}
.skill-card-meta .tag.personal{background:#e8f0fe;color:#1a5fa3}
.skill-card-meta .tag.tenant{background:#fef6e7;color:#7a5a10}
.skill-card-meta .tag.plaza{background:#e8f2ee;color:#1a4a3a}
.skill-card-meta .tag.system{background:#f0e8f8;color:#5a2a8a}
.skill-card-meta .tag.draft{background:#f5f5f5;color:#888}
.skill-card-meta .tag.pending{background:#fff3e0;color:#a86010}
.skill-card-meta .tag.approved{background:#e8f2ee;color:#1a4a3a}
.skill-card-meta .tag.rejected{background:#fde8e8;color:#a83232}
.skill-card-actions{margin-top:8px;display:flex;gap:6px}
.skill-card-actions button{padding:3px 10px;border-radius:5px;font-size:12px;border:1px solid #dce5e1;background:#fff;cursor:pointer}
.skill-card-actions button:hover{background:#f0f3f0}
.skill-card-actions button.primary{background:#176b55;color:#fff;border-color:#176b55}
.skill-card-actions button.danger{color:#a83232;border-color:#e0b0b0}
.skill-drawer-footer{padding:12px 16px;border-top:1px solid #e8ede8;display:flex;gap:8px}
.skill-drawer-footer button{flex:1;padding:8px 12px;border-radius:8px;font-size:13px;cursor:pointer;border:none}
.skill-drawer-footer .btn-use{background:#176b55;color:#fff}
.skill-drawer-footer .btn-use:hover{background:#125a49}
.skill-drawer-footer .btn-upload{background:#fff;border:1px solid #dce5e1;color:#333}
.skill-drawer-footer .btn-upload:hover{background:#f0f3f0}
.skill-upload-form{padding:12px 16px;border-top:1px solid #e8ede8;background:#fafbfa}
.skill-upload-form select{padding:4px 8px;border:1px solid #dce5e1;border-radius:5px;font-size:13px}
.skill-upload-form input[type=file]{font-size:13px}
.skill-empty{padding:40px 20px;text-align:center;color:#999;font-size:13px}
