:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef6f5;
  --surface-3: #f8f1e8;
  --text: #17202a;
  --muted: #5f6878;
  --line: #d8dee8;
  --primary: #0b63ce;
  --primary-strong: #084aa0;
  --teal: #006f6a;
  --amber: #9b5c00;
  --danger: #b3261e;
  --ink: var(--text);
  --workspace-bg: #f5f7fa;
  --workspace-surface: #ffffff;
  --workspace-sidebar: #ffffff;
  --workspace-active: #eaf2ff;
  --workspace-active-text: #084aa0;
  --workspace-soft: #f4f7fb;
  --workspace-content-width: 1520px;
  --shadow: 0 18px 48px rgba(28, 39, 49, 0.12);
  font-family:
    Inter, Roboto, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

body[data-workspace-theme="clear-blue"] {
  --workspace-bg: #f1f5fa;
  --workspace-surface: #ffffff;
  --workspace-sidebar: #f8fbff;
  --workspace-active: #e1ecfb;
  --workspace-active-text: #0a4b9a;
  --workspace-soft: #edf3fa;
}

body[data-workspace-theme="soft-teal"] {
  --workspace-bg: #f1f6f5;
  --workspace-surface: #fcfefd;
  --workspace-sidebar: #f8fcfb;
  --workspace-active: #e2f1ee;
  --workspace-active-text: #08665f;
  --workspace-soft: #eaf4f2;
}

* {
  box-sizing: border-box;
}

html.auth-pending .auth-view,
html.auth-pending .app-view {
  visibility: hidden;
}

html.auth-pending body::before {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  content: "正在进入工作台";
  font-size: 13px;
  font-weight: 720;
}

body.model-drawer-open {
  overflow: hidden;
}

body.workspace-test-drawer-open {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 251, 0.96)),
    repeating-linear-gradient(
      90deg,
      rgba(11, 99, 206, 0.06) 0,
      rgba(11, 99, 206, 0.06) 1px,
      transparent 1px,
      transparent 88px
    );
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.workspace-shell {
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, calc(100vw - 64px));
  margin: 0 auto;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font-weight: 800;
  box-shadow: none;
  overflow: hidden;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 16px;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.ghost-link,
.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  padding: 0 16px;
  text-decoration: none;
  font-weight: 700;
}

.ghost-link {
  color: var(--primary);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.primary-link,
.primary-action {
  border: 0;
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(11, 99, 206, 0.22);
}

.secondary-link {
  color: var(--primary);
  border: 1px solid #b7cdf3;
  background: #f4f8ff;
}

.primary-action,
.secondary-action,
.danger-action,
.logout-button,
.menu-item,
.identity-switch button {
  min-height: 42px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 750;
}

.secondary-action {
  border: 1px solid #b6c7e6;
  background: #eaf2ff;
  color: #0a4b9a;
}

.danger-action {
  border: 1px solid #f2b8b5;
  background: #fff0ef;
  color: var(--danger);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) 460px;
  gap: 28px;
  width: min(1200px, calc(100vw - 64px));
  margin: 18px auto 42px;
  align-items: stretch;
}

.auth-copy {
  min-height: 560px;
  border-radius: 8px;
  padding: 42px;
  background:
    linear-gradient(135deg, rgba(16, 42, 67, 0.92), rgba(0, 127, 122, 0.82)),
    url("/static/assets/sealroute-hero.avif") center / cover;
  color: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-copy .eyebrow {
  color: #9ff1e8;
}

.auth-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: 0;
}

.auth-copy p {
  max-width: 700px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.72;
}

.assurance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 50px;
}

.assurance-grid div {
  min-height: 126px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.assurance-grid strong,
.assurance-grid span {
  display: block;
}

.assurance-grid strong {
  margin-bottom: 10px;
  font-size: 16px;
}

.assurance-grid span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.58;
}

.auth-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(28, 39, 49, 0.08);
}

.auth-card {
  padding: 24px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-height: 560px;
}

.auth-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.auth-heading h2 {
  margin: 0;
  color: #17202a;
  font-size: 26px;
  line-height: 1.15;
}

.auth-heading span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.identity-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 6px;
  border-radius: 8px;
  background: #eef2f7;
}

.auth-method-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 8px;
  background: #eef2f7;
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-top: 20px;
  padding: 4px;
  border-radius: 8px;
  background: #eef2f7;
}

.auth-mode-switch button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #475467;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.auth-mode-switch button.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(28, 39, 49, 0.1);
}

.password-auth-only {
  display: grid;
}

.phone-auth-only.hidden,
.password-auth-only.hidden {
  display: none !important;
}

.auth-inline-action {
  width: fit-content;
  min-height: 32px;
  margin: 10px 0 -2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 760;
}

.auth-inline-action:hover,
.auth-inline-action:focus-visible {
  color: #074b9c;
  text-decoration: underline;
}

.auth-method-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #344054;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  white-space: normal;
}

.identity-switch button,
.menu-item {
  border: 0;
  background: transparent;
  color: #344054;
}

.identity-switch button.active,
.auth-method-tabs button.active,
.menu-item.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(28, 39, 49, 0.1);
}

label {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

label span {
  color: #475467;
  font-size: 13px;
  font-weight: 760;
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: end;
  gap: 10px;
}

.code-row label {
  margin-top: 16px;
}

.code-row .secondary-action {
  min-height: 44px;
  margin-bottom: 0;
  white-space: nowrap;
}

.phone-input-group {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
  border: 1px solid #cfd7e6;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.phone-input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(11, 99, 206, 0.12);
}

.phone-input-group > span {
  display: grid;
  align-self: stretch;
  border-right: 1px solid #e1e6ef;
  place-items: center;
  background: #f7f9fc;
  color: #344054;
  font-size: 14px;
  font-weight: 760;
}

.phone-input-group input {
  min-width: 0;
  border: 0;
  border-radius: 0;
}

.phone-input-group input:focus {
  box-shadow: none;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd7e6;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  outline: none;
}

input,
select {
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  min-height: 132px;
  padding: 12px;
  line-height: 1.55;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(11, 99, 206, 0.12);
}

.register-fields {
  margin-top: 6px;
}

.primary-action {
  width: 100%;
  margin-top: 20px;
}

.form-message {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.form-message.bad {
  color: var(--danger);
}

.form-message.ok {
  color: var(--teal);
}

.password-setup-dialog {
  width: min(440px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(16, 24, 40, 0.24);
}

.password-setup-dialog::backdrop {
  background: rgba(16, 24, 40, 0.48);
}

.password-setup-heading {
  display: grid;
  gap: 7px;
}

.password-setup-heading span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 820;
}

.password-setup-heading h2,
.password-setup-heading p {
  margin: 0;
}

.password-setup-heading h2 {
  color: var(--ink);
  font-size: 22px;
}

.password-setup-heading p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.password-setup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.password-setup-actions .primary-action,
.password-setup-actions .secondary-action {
  width: auto;
  min-width: 108px;
  margin: 0;
  padding: 0 16px;
}

.auth-flow-visual {
  display: grid;
  align-content: end;
  gap: 14px;
  flex: 1;
  min-height: 150px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, transparent 0%, rgba(238, 246, 245, 0.7) 100%);
}

.flow-title {
  display: grid;
  gap: 6px;
}

.flow-title span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.flow-title strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.38;
}

.flow-track {
  position: relative;
  height: 3px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(11, 99, 206, 0.16), rgba(0, 127, 122, 0.42)),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.7) 18px 24px);
  overflow: hidden;
}

.flow-track::before {
  content: "";
  position: absolute;
  inset: -1px 0;
  background: linear-gradient(90deg, transparent, rgba(11, 99, 206, 0.72), transparent);
  animation: flowSweep 2.8s linear infinite;
}

.flow-pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0b63ce;
  box-shadow: 0 0 0 6px rgba(11, 99, 206, 0.12);
  transform: translate(-50%, -50%);
  animation: flowPulse 2.8s linear infinite;
}

.flow-nodes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.flow-nodes div {
  min-width: 0;
}

.flow-nodes span,
.flow-nodes strong {
  display: block;
  overflow-wrap: anywhere;
}

.flow-nodes span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.flow-nodes strong {
  margin-top: 6px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

@keyframes flowSweep {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@keyframes flowPulse {
  from {
    left: 0;
  }
  to {
    left: 100%;
  }
}

.app-view {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: var(--workspace-bg);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  border-right: 1px solid var(--line);
  padding: 22px;
  background: var(--workspace-sidebar);
}

.sidebar-brand {
  align-self: start;
}

.menu {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 8px;
  margin-top: 18px;
}

.workspace-scope {
  align-self: stretch;
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  padding: 12px;
  background: var(--workspace-soft);
}

.workspace-scope strong {
  color: var(--ink);
  font-size: 12px;
}

.workspace-scope span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.menu-item {
  width: 100%;
  padding: 0 14px;
  text-align: left;
}

.logout-button {
  border: 1px solid var(--line);
  background: #f8fafc;
  color: #344054;
}

.main-panel {
  min-width: 0;
  overflow: auto;
  padding: 26px 30px;
  background: var(--workspace-bg);
}

.workspace-header {
  display: flex;
  width: min(100%, var(--workspace-content-width));
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto 18px;
}

.workspace-header h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.header-actions > * {
  flex: 0 0 auto;
}

.workspace-role-context {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 6px 4px 12px;
  background: #ffffff;
}

.workspace-theme-control,
.workspace-switcher {
  display: flex;
  height: 44px;
  min-height: 44px;
  align-items: center;
  flex-direction: row;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 4px 6px 4px 11px;
  background: var(--workspace-surface);
  white-space: nowrap;
}

.workspace-theme-control > span,
.workspace-switcher > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.workspace-theme-control select,
.workspace-switcher select {
  width: auto;
  height: 32px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  padding: 0 26px 0 8px;
  background-color: var(--workspace-soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  box-shadow: none;
  cursor: pointer;
}

.workspace-switcher select {
  width: min(220px, 24vw);
  min-width: 150px;
}

.workspace-role-context span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.workspace-role-context strong {
  border-radius: 6px;
  padding: 7px 11px;
  background: #eef4ff;
  color: var(--primary);
  font-size: 13px;
}

.session-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #ffffff;
}

.session-chip span {
  color: var(--muted);
}

.session-chip strong {
  color: var(--teal);
}

.panel-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 14px;
}

.main-panel > section[id$="Panel"] {
  width: min(100%, var(--workspace-content-width));
  margin-inline: auto;
}

.active-panel {
  display: grid;
}

.panel {
  padding: 22px;
}

.wide-panel {
  grid-column: 1 / -1;
}

.hero-panel {
  min-height: 260px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 246, 245, 0.94)),
    linear-gradient(90deg, rgba(11, 99, 206, 0.09), rgba(0, 127, 122, 0.08));
}

.panel h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.panel p {
  color: var(--muted);
  line-height: 1.62;
}

.metric-panel strong {
  display: block;
  margin-top: 12px;
  font-size: 34px;
  letter-spacing: 0;
}

.metric-panel span {
  color: var(--muted);
  font-weight: 760;
}

.route-line {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.route-line span {
  min-height: 42px;
  border: 1px solid #bad7d5;
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
  font-weight: 760;
  white-space: nowrap;
}

.route-line i {
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--teal));
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.state-pill {
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--surface-2);
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.plan-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.plan-benefits span {
  min-height: 46px;
  border: 1px solid #d7e3f5;
  border-radius: 8px;
  padding: 12px;
  background: #f8fbff;
  color: #1d2939;
  font-size: 14px;
  font-weight: 760;
}

.plan-panel-heading {
  align-items: center;
}

.plan-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.plan-entry-action {
  width: auto;
  min-height: 40px;
  margin: 0;
  padding: 0 16px;
}

.plan-chooser {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.plan-chooser-heading,
.plan-choice-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.plan-chooser-heading > div {
  min-width: 0;
}

.plan-chooser-heading span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 820;
}

.plan-chooser-heading h3 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 20px;
}

.plan-chooser-heading p,
.plan-choice-footer p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.plan-snapshot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 8px;
}

.plan-snapshot p {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
}

.plan-snapshot span,
.plan-snapshot strong {
  display: block;
}

.plan-snapshot span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.plan-snapshot strong {
  overflow: hidden;
  margin-top: 6px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-plan-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.public-plan-option {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 372px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.public-plan-option:hover,
.public-plan-option:focus-visible {
  border-color: #8fb3df;
  background: #f8fbff;
  outline: none;
}

.public-plan-option.selected {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
  background: #f4f8ff;
}

.public-plan-option.featured {
  border-color: #78a9d6;
  box-shadow: inset 0 3px 0 var(--primary);
}

.plan-option-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.plan-option-topline strong {
  font-size: 16px;
}

.plan-option-topline em {
  flex: 0 0 auto;
  border-radius: 6px;
  padding: 4px 6px;
  background: #e8f5ee;
  color: #067647;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.public-plan-option > b {
  margin-top: 16px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.2;
}

.plan-option-billing {
  display: block;
  margin-top: 9px;
  border-radius: 7px;
  padding: 8px 10px;
  background: #eef6ff;
  color: #175cd3;
  font-size: 12px;
  font-weight: 820;
  line-height: 1.45;
}

.public-plan-option > p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.plan-option-audience {
  display: block;
  margin-top: 11px;
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.45;
}

.public-plan-option ul {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  color: #344054;
  font-size: 12px;
  line-height: 1.45;
  list-style: none;
}

.public-plan-option ul::before {
  margin-bottom: 2px;
  color: #667085;
  content: "版本包含";
  font-size: 10px;
  font-weight: 800;
}

.public-plan-option li::before {
  margin-right: 6px;
  color: var(--teal);
  content: "✓";
}

.plan-catalog-state {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px dashed var(--line);
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.plan-choice-footer {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.plan-choice-footer .primary-link {
  flex: 0 0 auto;
  min-width: 160px;
}

.subscription-period {
  display: inline-flex;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.subscription-period button {
  min-height: 36px;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.subscription-period button:last-child {
  border-right: 0;
}

.subscription-period button[aria-pressed="true"] {
  background: var(--primary);
  color: #ffffff;
}

.subscription-period.hidden {
  display: none;
}

.subscription-seat-control {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 8px 0 12px;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.subscription-seat-control input {
  width: 58px;
  min-height: 28px;
  border: 0;
  padding: 0 4px;
  background: #f8fafc;
  color: var(--ink);
  font-weight: 800;
  text-align: center;
}

.subscription-seat-control.hidden {
  display: none;
}

.primary-link.disabled {
  pointer-events: none;
  opacity: 0.5;
}

.plan-comparison {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.plan-comparison-heading span {
  color: var(--primary);
  font-size: 11px;
  font-weight: 820;
}

.plan-comparison-heading h3 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 18px;
}

.plan-comparison-table {
  min-width: 0;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.plan-comparison-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.65fr) repeat(3, minmax(150px, 1fr));
  border-bottom: 1px solid var(--line);
}

.plan-comparison-row > * {
  min-width: 0;
  padding: 11px 12px;
  color: #475467;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.plan-comparison-row > :first-child {
  color: var(--ink);
  font-weight: 780;
}

.plan-comparison-header {
  background: #f8fafc;
}

.plan-comparison-header strong {
  color: var(--ink);
  font-size: 12px;
}

.quickstart-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quickstart-grid a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 12px;
  min-width: 0;
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
}

.quickstart-grid a + a {
  border-left: 1px solid var(--line);
}

.quickstart-grid a:hover,
.quickstart-grid a:focus-visible {
  background: #f6f9fd;
}

.quickstart-grid span {
  grid-row: 1 / span 3;
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
}

.quickstart-grid strong,
.quickstart-grid small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.quickstart-grid strong {
  color: var(--ink);
  font-size: 15px;
}

.quickstart-grid small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.quickstart-grid em {
  grid-column: 2;
  color: #8a5a00;
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
}

.quickstart-grid a.complete span,
.quickstart-grid a.complete em {
  color: #067647;
}

.quickstart-grid a.next {
  background: #f6f9fd;
  box-shadow: inset 0 -2px 0 var(--primary);
}

.onboarding-progress {
  height: 4px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ecf2;
}

.onboarding-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 180ms ease;
}

.onboarding-next-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-width: 0;
  margin-top: 14px;
  padding: 13px 16px;
  border-left: 3px solid var(--primary);
  background: #f6f9fd;
}

.onboarding-next-action > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.onboarding-next-action span {
  color: var(--primary);
  font-size: 11px;
  font-weight: 850;
}

.onboarding-next-action strong,
.onboarding-next-action p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.onboarding-next-action strong {
  color: var(--ink);
  font-size: 15px;
}

.onboarding-next-action p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.onboarding-next-action .primary-link {
  flex: 0 0 auto;
  min-width: 112px;
  box-shadow: none;
  white-space: nowrap;
}

.onboarding-next-action.complete {
  border-left-color: #067647;
  background: #f3faf7;
}

.onboarding-next-action.complete span {
  color: #067647;
}

.state-pill.onboarding-complete {
  background: #eaf7f2;
  color: #067647;
}

.workspace-model-panel {
  min-width: 0;
}

.workspace-model-status-center {
  margin-top: 16px;
  border-block: 1px solid var(--line);
  padding: 12px 0;
}

.workspace-model-status-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.workspace-model-status-heading strong {
  color: var(--ink);
  font-size: 13px;
}

.workspace-model-status-heading span,
.workspace-model-status-notice {
  color: var(--muted);
  font-size: 11px;
}

.workspace-model-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 10px;
  padding: 0;
}

.workspace-model-summary p {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  margin: 0;
}

.workspace-model-summary p::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #98a2b3;
  content: "";
}

.workspace-model-summary p[data-status="recommended"]::before {
  background: #12926f;
}

.workspace-model-summary p[data-status="observing"]::before {
  background: #d29212;
}

.workspace-model-summary p[data-status="paused"]::before {
  background: #d04444;
}

.workspace-model-summary strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.workspace-model-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.workspace-model-status-notice {
  margin: 9px 0 0;
  line-height: 1.5;
}

.workspace-model-filter-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
  padding: 13px 0 14px;
  border-bottom: 1px solid var(--line);
}

.workspace-my-models {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.workspace-my-models-heading,
.workspace-byok-model,
.workspace-byok-actions,
.byok-dialog-heading,
.byok-dialog-actions {
  display: flex;
  align-items: center;
}

.workspace-my-models-heading,
.workspace-byok-model,
.byok-dialog-heading {
  justify-content: space-between;
  gap: 16px;
}

.workspace-my-models-heading > div,
.workspace-byok-identity {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.workspace-my-models-heading span,
.byok-dialog-heading span,
.workspace-byok-identity > span {
  color: var(--teal);
  font-size: 11px;
  font-weight: 820;
}

.workspace-my-models-heading h3,
.byok-dialog-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.workspace-my-models-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.workspace-my-models-heading .secondary-action {
  width: auto;
  min-height: 38px;
  margin: 0;
  padding: 0 14px;
}

.workspace-byok-model {
  min-height: 58px;
  margin-top: 14px;
  border-left: 3px solid var(--teal);
  padding: 9px 0 9px 13px;
  background: #f7fbfa;
}

.workspace-byok-model > span {
  color: var(--muted);
  font-size: 13px;
}

.workspace-byok-identity strong,
.workspace-byok-identity small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.workspace-byok-identity strong {
  color: var(--ink);
  font-size: 15px;
}

.workspace-byok-identity small {
  color: var(--muted);
  font-size: 11px;
}

.workspace-byok-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.workspace-byok-status span {
  border-radius: 6px;
  padding: 4px 7px;
  background: #e8f5ee;
  color: #067647;
  font-size: 10px;
  font-weight: 800;
}

.workspace-byok-actions {
  gap: 6px;
}

.workspace-byok-actions .primary-action {
  width: auto;
  min-height: 36px;
  margin: 0;
  padding: 0 12px;
}

.byok-model-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  border: 0;
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 24px 64px rgba(16, 24, 40, 0.24);
}

.byok-model-dialog::backdrop {
  background: rgba(16, 24, 40, 0.45);
}

.byok-dialog-heading > div {
  display: grid;
  gap: 4px;
}

.byok-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.byok-form-grid label {
  margin: 0;
}

.byok-wide-field {
  grid-column: 1 / -1;
}

.byok-dialog-actions {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.byok-dialog-actions .primary-action,
.byok-dialog-actions .secondary-action,
.byok-dialog-actions .danger-action {
  width: auto;
  min-height: 40px;
  margin: 0;
  padding: 0 15px;
}

.workspace-model-filter-group {
  min-width: 0;
}

.workspace-model-filter-group > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.model-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.model-filter-row button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  background: #ffffff;
  color: #475467;
  cursor: pointer;
  font-size: 13px;
  font-weight: 760;
}

.model-filter-row button:hover,
.model-filter-row button:focus-visible {
  border-color: #9ebbe7;
  color: var(--primary);
}

.model-filter-row button.active {
  border-color: var(--primary);
  background: #eef4ff;
  color: var(--primary-strong);
}

.workspace-model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  margin-top: 16px;
}

.workspace-model-heading-actions,
.model-display-control,
.workspace-model-pagination {
  display: flex;
  align-items: center;
}

.workspace-model-heading-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.model-billing-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line, #d9dee8);
  border-radius: 6px;
  color: var(--muted, #667085);
  font-size: 12px;
  white-space: nowrap;
}

.model-display-control {
  gap: 3px;
  border-radius: 7px;
  padding: 3px;
  background: #eef2f7;
}

.model-display-control button {
  min-height: 30px;
  border: 0;
  border-radius: 5px;
  padding: 0 9px;
  background: transparent;
  color: #475467;
  cursor: pointer;
  font-size: 11px;
  font-weight: 760;
}

.model-display-control button.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(20, 33, 43, 0.1);
}

.workspace-model-filter-empty {
  margin: 16px 0 0;
  padding: 18px 0;
  color: var(--muted);
  text-align: center;
}

.workspace-model-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  min-height: 236px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  background: #ffffff;
}

.workspace-model-price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid #e8ecf2;
  border-bottom: 1px solid #e8ecf2;
  padding: 10px 0;
}

.workspace-model-price-note {
  display: grid;
  gap: 4px;
  min-height: 66px;
  align-content: center;
  border-top: 1px solid #e8ecf2;
  border-bottom: 1px solid #e8ecf2;
  padding: 10px 0;
}

.workspace-model-price-note span {
  color: var(--teal);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.02em;
}

.workspace-model-price-note strong {
  color: #172b4d;
  font-size: 14px;
  line-height: 1.35;
}

.workspace-model-price-note small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.workspace-model-byok-note {
  display: flex;
  align-items: center;
  min-height: 66px;
  border-top: 1px solid #e8ecf2;
  border-bottom: 1px solid #e8ecf2;
  padding: 10px 0;
  color: #335c48;
  font-size: 12px;
  font-weight: 720;
}

.workspace-model-code {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.workspace-model-price-grid > div {
  min-width: 0;
}

.workspace-model-price-grid span,
.workspace-model-price-grid strong,
.workspace-model-price-grid small {
  display: block;
  overflow-wrap: anywhere;
}

.workspace-model-price-grid span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 720;
}

.workspace-model-price-grid strong {
  margin-top: 4px;
  color: #172b4d;
  font-size: 14px;
}

.workspace-model-price-grid small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.workspace-model-grid.list-view {
  grid-template-columns: 1fr;
}

.workspace-model-grid.list-view .workspace-model-card {
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 1.15fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 12px 14px;
}

.workspace-model-grid.list-view .workspace-model-summary {
  display: none;
}

.workspace-model-grid.list-view .workspace-model-availability {
  display: none;
}

.workspace-model-grid.list-view .workspace-model-price-grid {
  grid-column: 2;
  grid-row: 1 / span 2;
  border: 0;
  padding: 0;
}

.workspace-model-grid.list-view .workspace-model-price-note {
  grid-column: 2;
  grid-row: 1 / span 2;
  border: 0;
  padding: 0;
}

.workspace-model-grid.list-view .workspace-model-actions {
  grid-column: 3;
  grid-row: 1 / span 2;
  flex-direction: column;
  margin-top: 0;
}

.workspace-model-pagination {
  justify-content: flex-end;
  gap: 9px;
  margin-top: 14px;
}

.workspace-model-pagination span {
  min-width: 92px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.workspace-model-pagination button {
  min-height: 34px;
}

.model-drawer-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  background: rgba(16, 24, 40, 0.32);
}

.workspace-test-drawer-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  background: rgba(16, 24, 40, 0.38);
}

.workspace-test-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(1440px, 92vw);
  height: 100dvh;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: var(--workspace-surface, #ffffff);
  box-shadow: -18px 0 48px rgba(16, 24, 40, 0.18);
}

.workspace-test-drawer-heading {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 18px 24px;
  background: var(--workspace-surface, #ffffff);
}

.workspace-test-drawer-heading span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.workspace-test-drawer-heading h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 21px;
}

.workspace-test-drawer-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.workspace-test-drawer-close {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: #344054;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.workspace-test-drawer-content {
  padding: 20px 24px 32px;
}

.workspace-test-drawer-content .focused-test-panel {
  width: 100%;
  max-width: none;
  margin: 0;
}

.model-detail-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(560px, 94vw);
  height: 100%;
  overflow: auto;
  border-left: 1px solid var(--line);
  background: #ffffff;
  box-shadow: -18px 0 44px rgba(16, 24, 40, 0.16);
}

.model-drawer-heading {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
  background: #ffffff;
}

.model-drawer-heading span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.model-drawer-heading h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 20px;
}

.model-drawer-close {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: #344054;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.model-drawer-body {
  display: grid;
  gap: 14px;
  padding: 18px 20px 28px;
}

.model-drawer-body .workspace-model-evidence {
  border-top: 0;
  padding-top: 0;
}

.model-drawer-body .workspace-model-evidence > summary {
  display: none;
}

.model-drawer-summary {
  color: #344054;
  font-size: 13px;
  line-height: 1.6;
}

.workspace-model-card.selected {
  border-color: #71b6ae;
  box-shadow: inset 0 0 0 1px rgba(0, 127, 122, 0.16);
}

.workspace-model-card.detail-open {
  grid-column: 1 / -1;
}

.workspace-model-card [data-model-select]:disabled {
  border-color: #9ad5ca;
  background: #eaf7f2;
  color: #067647;
  cursor: default;
  opacity: 1;
}

.model-card-head,
.workspace-model-card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.workspace-model-card-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: start;
}

.model-detail-action {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  padding: 0 8px;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-size: 11px;
  font-weight: 760;
}

.model-detail-action:hover,
.model-detail-action:focus-visible {
  background: #eef4ff;
  outline: none;
}

.model-card-head > div,
.model-card-head h3,
.model-card-head strong,
.model-card-head span,
.workspace-model-card-head > div,
.workspace-model-card-head h3,
.workspace-model-card-head strong,
.workspace-model-card-head span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.model-card-head h3,
.model-card-head strong,
.workspace-model-card-head h3,
.workspace-model-card-head strong {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.model-card-head > span,
.workspace-model-card-head > span {
  flex: 0 0 auto;
}

.workspace-model-logo {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  background: #eef4ff;
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 800;
}

.workspace-model-identity {
  min-width: 0;
}

.workspace-model-identity-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.workspace-model-identity-meta .model-detail-action {
  min-height: 24px;
  padding: 0 3px;
}

.workspace-model-provider {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.3;
}

.workspace-model-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.workspace-model-trust,
.workspace-model-status {
  max-width: 100%;
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.workspace-model-maintenance {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5c16b;
  border-radius: 7px;
  padding: 0 10px;
  background: #fff8e6;
  color: #9a6700;
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
}

.workspace-model-trust {
  background: #eaf7f2;
  color: #067647;
}

.workspace-model-status {
  background: #eef2f7;
  color: #475467;
}

.workspace-model-assurance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  margin: 0;
}

.workspace-model-assurance > div {
  min-width: 0;
  border-top: 1px solid #e8ecf2;
  padding-top: 8px;
}

.workspace-model-assurance dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 720;
}

.workspace-model-assurance dd {
  display: grid;
  gap: 3px;
  min-width: 0;
  margin: 4px 0 0;
}

.workspace-model-assurance small,
.workspace-model-assurance a {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.workspace-model-trend {
  display: grid;
  gap: 4px;
  min-width: 0;
  border-left: 2px solid #b7cdf3;
  padding: 7px 9px;
  background: #f8fbff;
}

.workspace-model-trend > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.workspace-model-trend strong,
.workspace-model-trend small {
  color: #344054;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.workspace-model-trend small {
  color: var(--muted);
}

.workspace-model-availability {
  display: grid;
  gap: 3px;
  min-width: 0;
  border-left: 3px solid #d49b22;
  padding: 8px 10px;
  background: #fffaeb;
}

.workspace-model-availability.unavailable {
  border-left-color: #d92d20;
  background: #fff5f5;
}

.workspace-model-availability strong,
.workspace-model-availability span,
.workspace-model-availability small {
  overflow-wrap: anywhere;
}

.workspace-model-availability strong {
  color: #684b00;
  font-size: 12px;
}

.workspace-model-availability.unavailable strong {
  color: #b42318;
}

.workspace-model-availability span,
.workspace-model-availability small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.workspace-model-assurance a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.workspace-evidence-status {
  width: fit-content;
  max-width: 100%;
  color: #475467;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.workspace-evidence-status.status-pending,
.workspace-evidence-status.status-not_applicable,
.workspace-evidence-status.status-quote {
  color: #8a5a00;
}

.workspace-evidence-status.status-passed,
.workspace-evidence-status.status-verified,
.workspace-evidence-status.status-reference {
  color: #067647;
}

.workspace-evidence-status.status-failed,
.workspace-evidence-status.status-unsupported {
  color: #b42318;
}

.workspace-model-evidence {
  min-width: 0;
  border-top: 1px solid #e8ecf2;
  padding-top: 10px;
}

.workspace-model-evidence summary {
  color: var(--primary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 780;
}

.workspace-evidence-content {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin-top: 10px;
}

.workspace-evidence-content h4 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 11px;
}

.workspace-dimension-list,
.workspace-source-list,
.workspace-price-source {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.workspace-dimension-row,
.workspace-source-row {
  min-width: 0;
  border-left: 2px solid #d8e1ef;
  padding-left: 8px;
}

.workspace-dimension-row > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.workspace-dimension-row strong,
.workspace-source-row strong,
.workspace-source-row a,
.workspace-price-source span {
  color: #344054;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.workspace-source-row a {
  color: var(--primary);
}

.workspace-dimension-row p,
.workspace-source-row p,
.workspace-price-source p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.workspace-missing-notice {
  margin: 0;
  border-left: 2px solid #d49b22;
  padding-left: 8px;
  color: #7a5200;
  font-size: 10px;
  line-height: 1.5;
}

.workspace-model-card > p {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.model-facts,
.workspace-model-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  min-width: 0;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid #e8ecf2;
  border-bottom: 1px solid #e8ecf2;
}

.model-facts > div,
.workspace-model-facts > div {
  min-width: 0;
}

.model-facts dt,
.model-facts dd,
.model-facts span,
.model-facts strong,
.workspace-model-facts dt,
.workspace-model-facts dd,
.workspace-model-facts span,
.workspace-model-facts strong {
  display: block;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.model-facts dt,
.model-facts span,
.workspace-model-facts dt,
.workspace-model-facts span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.model-facts dd,
.model-facts strong,
.workspace-model-facts dd,
.workspace-model-facts strong {
  margin-top: 3px;
  color: #344054;
  font-size: 12px;
  line-height: 1.4;
}

.model-tags,
.workspace-model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.model-tags span,
.workspace-model-tags span {
  max-width: 100%;
  border-radius: 6px;
  padding: 4px 7px;
  background: #eef2f7;
  color: #475467;
  font-size: 11px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.model-actions,
.workspace-model-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}

.model-actions a,
.model-actions button,
.workspace-model-actions a,
.workspace-model-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 34px;
  border: 1px solid #b7cdf3;
  border-radius: 8px;
  padding: 0 11px;
  background: #f4f8ff;
  color: var(--primary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.workspace-model-actions .primary-action,
.workspace-model-actions .secondary-action {
  width: auto;
  margin-top: 0;
  padding: 0 11px;
  box-shadow: none;
}

.workspace-model-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px 0;
  color: var(--muted);
  text-align: center;
}

.panel-copy {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.distribution-summary {
  margin-top: 14px;
  border: 1px solid #d7e3f5;
  border-radius: 8px;
  padding: 12px 14px;
  background: #f8fbff;
  color: #475467;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.55;
}

.distribution-summary.active {
  border-color: #b8e6d1;
  background: #effaf5;
  color: #067647;
}

.test-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 0 14px;
  margin-top: 6px;
}

.test-prompt-field {
  grid-column: 1 / -1;
}

.test-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.proof-stage {
  min-height: 40px;
  border: 1px solid #d7e3f5;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fbff;
  color: #475467;
  font-size: 13px;
  font-weight: 760;
}

.proof-stage.ok {
  border-color: #b8e6d1;
  background: #effaf5;
  color: #067647;
}

.proof-stage.warn {
  border-color: #fedf89;
  background: #fffaeb;
  color: #9b5c00;
}

.proof-stage.bad {
  border-color: #fecdca;
  background: #fff5f5;
  color: var(--danger);
}

.test-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 14px;
  margin-top: 16px;
}

.test-result-grid section > span {
  display: block;
  color: #475467;
  font-size: 13px;
  font-weight: 760;
  margin-bottom: 8px;
}

.test-output {
  min-height: 220px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101828;
  color: #d1fadf;
  padding: 16px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.7;
}

.test-output.empty {
  color: #a6b3c2;
}

.test-output.has-error {
  min-height: 72px;
  border-color: #fecdca;
  background: #fff7f5;
  color: #912018;
  font-weight: 760;
}

.test-diagnosis {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(220px, 1.2fr) auto;
  gap: 12px 18px;
  align-items: center;
  min-width: 0;
  margin-top: 10px;
  border-left: 3px solid #d92d20;
  padding: 11px 12px;
  background: #fff7f5;
}

.test-diagnosis[data-tone="warn"] {
  border-left-color: #dc6803;
  background: #fffaeb;
}

.test-diagnosis > div,
.test-diagnosis > div span,
.test-diagnosis > div strong,
.test-diagnosis > div code {
  min-width: 0;
}

.test-diagnosis > div span,
.test-diagnosis > div strong,
.test-diagnosis > div code {
  display: block;
  overflow-wrap: anywhere;
}

.test-diagnosis > div span {
  color: #667085;
  font-size: 10px;
  font-weight: 760;
}

.test-diagnosis > div strong {
  margin-top: 3px;
  color: #912018;
  font-size: 13px;
}

.test-diagnosis[data-tone="warn"] > div strong {
  color: #9b5c00;
}

.test-diagnosis > div code {
  margin-top: 4px;
  color: #667085;
  font-size: 10px;
}

.test-diagnosis > p {
  min-width: 0;
  margin: 0;
  color: #475467;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.test-diagnosis .secondary-action {
  width: auto;
  margin: 0;
  white-space: nowrap;
}

.test-evidence {
  display: grid;
  gap: 8px;
}

.test-evidence p,
.request-log span {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
}

.test-evidence strong,
.test-evidence em {
  display: block;
}

.test-evidence strong {
  color: #475467;
  font-size: 12px;
}

.test-evidence em {
  margin-top: 4px;
  color: var(--text);
  font-style: normal;
  font-size: 13px;
  word-break: break-all;
}

.request-log {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.channel-status-panel {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.channel-status-boundary {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.channel-delivery-checklist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.channel-delivery-checklist li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: 10px;
  min-width: 0;
  min-height: 188px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.channel-delivery-checklist > li > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  background: #eef2f7;
  color: #475467;
  font-size: 11px;
  font-weight: 850;
}

.channel-delivery-checklist li > div {
  min-width: 0;
}

.channel-delivery-checklist strong,
.channel-delivery-checklist p,
.channel-delivery-checklist em {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.channel-delivery-checklist strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}

.channel-delivery-checklist em {
  margin-top: 5px;
  color: #a15c00;
  font-size: 11px;
  font-style: normal;
  font-weight: 780;
}

.channel-delivery-checklist p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.channel-delivery-checklist code {
  border-radius: 4px;
  padding: 1px 4px;
  background: #eef4ff;
  color: #0a4b9a;
}

.channel-delivery-checklist .secondary-link {
  grid-column: 1 / -1;
  align-self: end;
  width: 100%;
  min-height: 36px;
  padding: 0 9px;
  font-size: 12px;
}

.channel-delivery-checklist li[data-state="ready"] {
  border-color: #9ad8bf;
  background: #f7fcf9;
}

.channel-delivery-checklist li[data-state="ready"] > span {
  background: #dff5e7;
  color: #087443;
}

.channel-delivery-checklist li[data-state="ready"] em {
  color: #087443;
}

.state-pill.state-ready {
  border-color: #9ad8bf;
  background: #ecfdf3;
  color: #087443;
}

.workspace-boundaries-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.workspace-boundaries-grid section {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  min-height: 176px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  background: #ffffff;
}

.workspace-boundaries-grid .current-workspace-boundary {
  border-color: #b8d0f4;
  background: #f7faff;
}

.workspace-boundaries-grid span {
  color: var(--teal);
  font-size: 11px;
  font-weight: 850;
}

.workspace-boundaries-grid strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.workspace-boundaries-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.workspace-boundaries-grid .text-link {
  align-self: end;
  font-size: 12px;
}

.readiness-panel {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.delivery-gate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.delivery-gate-item {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  min-height: 126px;
  border: 1px solid #d7e3f5;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.delivery-gate-item span,
.delivery-gate-item strong,
.delivery-gate-item em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.delivery-gate-item span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
}

.delivery-gate-item strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.36;
}

.delivery-gate-item em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.48;
}

.readiness-actions {
  margin-top: 14px;
}

.user-key-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.user-key-guide div {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fbff;
}

.user-key-guide span,
.user-key-guide strong,
.user-key-guide em {
  display: block;
}

.user-key-guide span {
  color: #667085;
  font-size: 12px;
  font-weight: 760;
}

.user-key-guide strong {
  margin-top: 8px;
  color: var(--text);
}

.user-key-guide em {
  margin-top: 8px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  line-height: 1.5;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 14px;
  margin-top: 8px;
}

.compact-form {
  margin-top: 12px;
}

.compact-form label:last-child {
  grid-column: 1 / -1;
}

.key-management-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.key-management-grid section {
  min-width: 0;
  border: 1px solid #d7e3f5;
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.key-management-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.key-management-grid code {
  border-radius: 6px;
  padding: 1px 5px;
  background: #eef4ff;
  color: #0a4b9a;
}

.mini-heading {
  display: grid;
  gap: 4px;
}

.mini-heading span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.mini-heading strong {
  color: var(--text);
  font-size: 18px;
}

.endpoint-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.endpoint-list div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #ffffff;
}

.endpoint-list span {
  color: #667085;
  font-size: 12px;
  font-weight: 760;
}

.endpoint-list strong {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.compact-endpoints {
  margin-bottom: 4px;
}

.compact-actions {
  margin-top: 10px;
}

.client-setup {
  min-width: 0;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.client-setup-heading,
.client-setup-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.client-setup-heading {
  justify-content: space-between;
}

.client-setup-heading > div {
  min-width: 0;
  flex-wrap: wrap;
}

.client-setup-heading > div > span,
.workspace-subheading > span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.client-setup-heading strong {
  min-width: 0;
  color: var(--ink);
  font-size: 18px;
  overflow-wrap: anywhere;
}

.state-pill.runtime-ready {
  border-color: #a9d8c5;
  background: #ecfdf3;
  color: #027a48;
}

.client-setup-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 16px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  list-style: none;
  overflow: hidden;
}

.client-setup-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 10px;
  min-width: 0;
  padding: 13px 14px;
  background: #f8fbff;
}

.client-setup-steps li + li {
  border-left: 1px solid var(--line);
}

.client-setup-steps li > span {
  display: grid;
  grid-row: 1 / span 2;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #0b63ce;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.client-setup-steps strong,
.client-setup-steps small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.client-setup-steps strong {
  color: var(--ink);
  font-size: 13px;
}

.client-setup-steps small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.client-runtime-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.8fr;
  gap: 10px;
  margin-top: 14px;
}

.client-runtime-grid > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #ffffff;
}

.client-runtime-grid span,
.client-runtime-grid strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.client-runtime-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.client-runtime-grid strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
}

.client-runtime-grid .stream-ready {
  color: #027a48;
}

.client-key-field {
  margin-top: 12px;
}

.tool-config-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.tool-config-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  border: 1px solid #d7e3f5;
  border-radius: 8px;
  padding: 14px;
  background: #f8fbff;
}

.tool-config-card > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.tool-config-card > div > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background: #102a43;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.tool-config-card strong {
  color: var(--ink);
  font-size: 15px;
}

.tool-config-card p {
  min-width: 0;
  min-height: 60px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.tool-config-card button {
  width: 100%;
  min-height: 38px;
  margin-top: auto;
  padding: 7px 10px;
  white-space: normal;
}

.workspace-subheading {
  display: grid;
  gap: 5px;
  margin-top: 20px;
}

.workspace-subheading strong {
  color: var(--ink);
  font-size: 16px;
}

.workspace-subheading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.key-management-grid.single-key-card {
  grid-template-columns: minmax(0, 1fr);
}

.route-key-source {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  color: var(--muted);
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.route-key-source span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.route-key-source strong {
  color: var(--ink);
  font-size: 15px;
}

.route-key-source small {
  color: var(--muted);
  font-size: 12px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.action-row .primary-action,
.action-row .secondary-action,
.action-row .danger-action {
  width: auto;
  margin-top: 0;
  padding: 0 16px;
}

.route-table {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.route-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(150px, 1fr) 90px 90px 88px;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #ffffff;
  font-size: 13px;
}

.route-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.route-head {
  min-height: 38px;
  background: #f2f6fb;
  color: #475467;
  font-weight: 800;
}

.route-action,
.route-disable,
.route-enable {
  min-height: 34px;
  padding: 0 10px;
}

.route-enable {
  border-color: #a9d8c5;
  background: #ecfdf3;
  color: #027a48;
}

.empty-table {
  border: 1px dashed #b6c7e6;
  border-radius: 8px;
  padding: 16px;
  background: #f8fbff;
  color: var(--muted);
  font-size: 14px;
}

.config-box,
.secret-output {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101828;
  color: #d1fadf;
  overflow: auto;
}

.config-box {
  min-height: 260px;
  margin: 16px 0 0;
  padding: 16px;
  font-size: 13px;
  line-height: 1.55;
}

.secret-output {
  padding: 14px;
  font-size: 13px;
  word-break: break-all;
}

.secret-output.bad {
  color: var(--danger);
}

.usage-panel-heading {
  align-items: center;
}

.usage-heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.usage-heading-actions .secondary-action {
  min-height: 36px;
  padding: 0 14px;
}

.usage-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.usage-stat {
  min-width: 0;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}

.usage-stat:first-child {
  padding-left: 0;
}

.usage-stat:nth-child(5) {
  border-right: 0;
}

.usage-stat span,
.usage-budget-heading span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.usage-stat strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.usage-budget {
  grid-column: 1 / span 4;
  min-width: 0;
  padding: 16px 18px 16px 0;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.usage-budget-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
}

.usage-budget-heading strong {
  color: var(--ink);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.usage-budget-heading em {
  color: var(--teal);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.usage-progress {
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: #e4e9f0;
  overflow: hidden;
}

.usage-progress i {
  display: block;
  width: 0;
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 180ms ease;
}

.usage-cost {
  padding-left: 18px;
  border-top: 1px solid var(--line);
  border-right: 0;
}

.billing-overview {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(180px, 0.55fr) minmax(300px, 1.4fr);
  gap: 22px;
  align-items: start;
  margin-top: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.billing-overview-heading,
.billing-overview-heading > div {
  display: grid;
  gap: 5px;
}

.billing-overview-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.billing-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.billing-heading-actions .secondary-action {
  min-height: 32px;
  padding: 0 12px;
}

.billing-statement-format {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.billing-statement-format select {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 28px 0 9px;
  background: #ffffff;
  color: #344054;
  font: inherit;
}

.billing-statement-format.locked {
  opacity: 0.58;
}

.billing-overview-heading span,
.billing-overview-metrics span,
.billing-ledger span,
.billing-ledger em {
  color: var(--muted);
  font-size: 11px;
}

.billing-overview-heading strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.billing-overview-heading p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.payment-availability-note {
  margin: 14px 0 16px;
  border-left: 3px solid #667085;
  padding: 9px 12px;
  background: #f8fafc;
  color: #475467;
  font-size: 12px;
  line-height: 1.5;
}

.payment-availability-note[data-status="edatlink_cashier"] {
  border-left-color: #14866d;
  background: #f1faf7;
  color: #067647;
}

.payment-availability-note[data-status="development_demo"] {
  border-left-color: #d97706;
  background: #fffbeb;
  color: #92400e;
}

.payment-availability-note[data-status="unavailable"] {
  border-left-color: #667085;
  background: #f8fafc;
  color: #475467;
}

.billing-wallet-priority {
  margin: -7px 0 16px;
  border-left: 3px solid #2463eb;
  padding: 9px 12px;
  background: #f3f7ff;
  color: #1d4ed8;
  font-size: 12px;
  line-height: 1.55;
}

.billing-wallet-identity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -7px 0 8px;
}

.billing-wallet-identity {
  margin: 0;
  color: #344054;
  font-size: 11px;
  line-height: 1.5;
}

.billing-wallet-identity-row .text-action {
  flex: 0 0 auto;
  min-height: 30px;
  font-size: 12px;
}

.billing-overview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.billing-overview-metrics p {
  margin: 0;
  border-left: 2px solid #d7e3f5;
  padding-left: 12px;
}

.billing-overview-metrics strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 17px;
}

.billing-ledger {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.billing-ledger-details,
.billing-reconciliation-details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.billing-ledger-details > summary,
.billing-reconciliation-details > summary {
  color: #344054;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.billing-ledger-details .billing-ledger {
  margin-top: 12px;
}

.billing-ledger-pagination {
  justify-content: flex-end;
  margin-top: 10px;
  border-top: 0;
  padding-top: 0;
}

.billing-ledger-pagination span {
  min-width: 78px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-align: center;
}

.billing-ledger-pagination .secondary-action {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 12px;
}

.billing-reconciliation-details p {
  margin: 0;
}

.billing-reconciliation-details span,
.billing-reconciliation-details strong {
  display: block;
}

.billing-reconciliation-details span,
.credit-payment-method {
  color: var(--muted);
  font-size: 11px;
}

.billing-reconciliation-details strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 14px;
}

.encryption-billing-panel {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.encryption-billing-panel > .billing-overview-heading,
.encryption-billing-panel > .billing-overview-metrics {
  min-width: 0;
}

.encryption-quote-result,
.encryption-package-section {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin-top: 0;
  border-bottom: 0;
  padding: 0;
}

.encryption-quote-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.encryption-quote-grid > p {
  min-width: 0;
  border: 1px solid #e1e7ef;
  border-radius: 7px;
  padding: 12px;
  background: #fbfcfe;
}

.encryption-quote-grid strong {
  overflow-wrap: anywhere;
}

.encryption-package-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.encryption-package-summary > div {
  min-width: 0;
  border: 1px solid #e1e7ef;
  border-radius: 7px;
  padding: 12px;
  background: #fbfcfe;
}

.encryption-package-options {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
  gap: 12px;
  margin-top: 0;
}

.encryption-package-options .topup-package-card {
  min-height: 0;
  height: 100%;
}

.billing-ledger > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: baseline;
  min-width: 0;
}

.billing-ledger > div span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.billing-ledger strong,
.billing-ledger em {
  white-space: nowrap;
}

.billing-ledger strong {
  color: #067647;
  font-size: 12px;
}

.billing-ledger strong.debit {
  color: #b54708;
}

.credit-topup-dialog {
  width: min(720px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.2);
}

.credit-topup-dialog::backdrop {
  background: rgba(16, 24, 40, 0.45);
}

.credit-topup-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.credit-topup-heading > div {
  display: grid;
  gap: 4px;
}

.credit-topup-heading span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.credit-topup-heading strong {
  color: var(--ink);
  font-size: 20px;
}

.icon-action {
  display: grid;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  background: #ffffff;
  color: #475467;
  font-size: 20px;
  cursor: pointer;
}

.credit-topup-amounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.credit-topup-tier-selector {
  display: flex;
  grid-column: 1 / -1;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.credit-topup-tier-selector button {
  flex: 1;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #667085;
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
}

.credit-topup-tier-selector button.active {
  border-color: #b9d6fe;
  background: #ffffff;
  color: #175cd3;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.credit-topup-tier-selector button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.credit-topup-amounts input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.credit-topup-card {
  display: grid;
  min-height: 152px;
  align-content: start;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
  color: #344054;
  cursor: pointer;
}

.credit-topup-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.credit-topup-card-heading strong {
  color: #1d2939;
  font-size: 14px;
}

.credit-topup-card-heading em {
  border: 1px solid #b9d6fe;
  border-radius: 999px;
  padding: 2px 6px;
  background: #eff8ff;
  color: #175cd3;
  font-size: 10px;
  font-style: normal;
  font-weight: 760;
}

.credit-topup-card > b {
  color: #101828;
  font-size: 22px;
}

.credit-topup-points {
  color: #067647;
  font-size: 13px;
  font-weight: 800;
}

.credit-topup-card > small {
  color: #667085;
  font-size: 11px;
}

.credit-topup-card ul {
  display: grid;
  gap: 3px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.credit-topup-card li {
  color: #475467;
  font-size: 11px;
}

.credit-topup-card li::before {
  content: "\2713";
  margin-right: 5px;
  color: #039855;
  font-weight: 800;
}

.credit-topup-card.secure {
  border-color: #b9d6fe;
  background: #f8fbff;
}

#billingSecurityMode.secure {
  color: #175cd3;
}

.credit-topup-amounts input:checked + .credit-topup-card {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 157, 120, 0.12);
}

.credit-topup-amounts input:focus-visible + .credit-topup-card {
  outline: 3px solid rgba(36, 99, 235, 0.25);
  outline-offset: 2px;
}

.credit-topup-loading {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.credit-topup-dialog .primary-action {
  width: 100%;
  margin-top: 16px;
}

.credit-payment-method {
  margin: 12px 0 0;
  text-align: center;
}

.billing-orders-section {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0 14px;
}

.billing-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.billing-section-heading > div {
  display: grid;
  gap: 3px;
}

.billing-section-heading span,
.billing-section-heading em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.billing-section-heading strong {
  color: var(--ink);
  font-size: 16px;
}

.billing-order-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.billing-order-list > span {
  color: var(--muted);
  font-size: 12px;
}

.billing-order-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: 42px;
  border-top: 1px solid #eef1f5;
  padding: 9px 0;
}

.billing-order-list > div span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.billing-order-list > div strong {
  color: var(--ink);
  font-size: 12px;
}

.billing-order-list > div em {
  color: #9b5c00;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.billing-order-list > div em.paid {
  color: #067647;
}

.billing-order-list > div em.refunded {
  color: #667085;
}

.billing-order-list > div em.refund_pending {
  color: #b54708;
}

.billing-order-list > div em.expired {
  color: #667085;
}

.billing-order-list .text-action {
  margin: 0;
}

.billing-order-pagination {
  justify-content: flex-end;
  margin-top: 10px;
  border-top: 0;
  padding-top: 0;
}

.billing-order-pagination > span {
  min-width: 78px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-align: center;
}

.billing-order-pagination .secondary-action {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 12px;
}

.call-header-status {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.call-header-status > strong {
  color: #067647;
  font-size: 12px;
}

.user-audit-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  min-width: 0;
}

.call-type-filter {
  display: flex;
  gap: 6px;
  margin-top: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.call-type-filter button {
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 11px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.call-type-filter button:hover,
.call-type-filter button.active {
  border-color: #cbd9f1;
  background: #f2f6ff;
  color: var(--primary);
}

.usage-heading-actions .secondary-action.active {
  border-color: #b7e1d3;
  background: #effaf5;
  color: #067647;
}

.call-list-warning {
  border: 1px solid #fedf89;
  border-radius: 8px;
  padding: 11px 13px;
  background: #fffaeb;
  color: #9b5c00;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.call-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.call-card.has-warning {
  border-color: #fedf89;
  box-shadow: inset 3px 0 0 #f79009;
}

.call-card.has-error {
  border-color: #fecdca;
  box-shadow: inset 3px 0 0 var(--danger);
}

.call-card.has-context-risk-high:not(.has-error) {
  border-color: #f5c2b8;
  box-shadow: inset 3px 0 0 #c2412d;
}

.call-card.has-context-risk-medium:not(.has-error):not(.has-warning) {
  border-color: #fedf89;
  box-shadow: inset 3px 0 0 #d97706;
}

.call-card header,
.call-card header > div,
.call-card footer {
  display: flex;
  align-items: center;
}

.call-card header {
  justify-content: space-between;
  gap: 12px;
}

.call-card header > div {
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.encrypted-media-thumb {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-content: center;
  border: 1px solid #d7e3f5;
  border-radius: 6px;
  background: #edf4ff;
  color: #234e9b;
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.encrypted-media-thumb:hover {
  border-color: #84adf6;
  background: #e3eeff;
}

.encrypted-media-thumb:focus-visible {
  outline: 3px solid rgba(46, 109, 216, 0.35);
  outline-offset: 2px;
}

.encrypted-media-thumb span {
  color: #234e9b;
  font-size: 11px;
  font-weight: 800;
}

.encrypted-media-thumb strong {
  margin-top: 2px;
  color: #123b78;
  font-size: 11px;
}

.encrypted-media-thumb small {
  margin-top: 2px;
  color: #667085;
  font-size: 11px;
}

.call-card header span {
  color: var(--muted);
  font-size: 12px;
}

.call-card header strong {
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.call-card-image .call-model-name,
.call-card-video .call-model-name {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.call-model-caption {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.call-status {
  flex: 0 0 auto;
  border-radius: 6px;
  padding: 4px 7px;
  background: #eef2f7;
  color: #475467;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.call-status.ok {
  background: #ecfdf3;
  color: #027a48;
}

.call-status.bad {
  background: #fff0ef;
  color: var(--danger);
}

.call-card footer > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.call-timeline {
  min-width: 0;
  margin-top: 12px;
  border-top: 1px solid #e8ecf2;
  border-bottom: 1px solid #e8ecf2;
}

.call-timeline summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 11px 28px 11px 0;
  cursor: pointer;
  list-style: none;
}

.call-timeline summary::-webkit-details-marker {
  display: none;
}

.call-timeline summary::after {
  position: absolute;
  right: 5px;
  width: 7px;
  height: 7px;
  border-right: 2px solid #667085;
  border-bottom: 2px solid #667085;
  content: "";
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.call-timeline[open] summary::after {
  transform: rotate(225deg);
}

.call-timeline-title,
.call-timeline-title strong,
.call-timeline-title small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.call-timeline-title strong {
  color: #344054;
  font-size: 13px;
}

.call-timeline-title small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.call-timeline summary > em {
  color: #475467;
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
  white-space: nowrap;
}

.call-timeline ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-width: 0;
  margin: 0;
  padding: 4px 0 14px;
  list-style: none;
}

.call-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-content: start;
  min-width: 0;
  padding-right: 16px;
}

.call-timeline li:not(:last-child)::after {
  position: absolute;
  top: 11px;
  right: 3px;
  width: 10px;
  height: 1px;
  background: #cbd5e1;
  content: "";
}

.call-timeline-marker {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: #f8fafc;
  color: #667085;
  font-size: 10px;
  font-weight: 800;
}

.call-timeline li.ok .call-timeline-marker {
  border-color: #6ce9a6;
  background: #ecfdf3;
  color: #027a48;
}

.call-timeline li.warn .call-timeline-marker {
  border-color: #fec84b;
  background: #fffaeb;
  color: #9b5c00;
}

.call-timeline li.bad .call-timeline-marker {
  border-color: #fda29b;
  background: #fff0ef;
  color: var(--danger);
}

.call-timeline li > div,
.call-timeline li span,
.call-timeline li strong,
.call-timeline li small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.call-timeline li > div > span,
.call-timeline li strong,
.call-timeline li small {
  display: block;
}

.call-timeline li > div > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 720;
}

.call-timeline li strong {
  margin-top: 4px;
  color: #344054;
  font-size: 11px;
  line-height: 1.4;
}

.call-timeline li small {
  margin-top: 3px;
  color: #667085;
  font-size: 10px;
  line-height: 1.45;
}

.call-context-analysis {
  display: grid;
  grid-template-columns: minmax(145px, 0.7fr) minmax(220px, 1.3fr);
  gap: 6px 16px;
  margin-top: 10px;
  border: 1px solid #e4e9f0;
  border-radius: 6px;
  padding: 10px 12px;
  background: #f8fafc;
}

.call-context-analysis.high {
  border-color: #f5c2b8;
  background: #fff7f5;
}

.call-context-analysis.medium {
  border-color: #fedf89;
  background: #fffaeb;
}

.call-context-heading {
  min-width: 0;
}

.call-context-heading span,
.call-context-heading strong {
  display: block;
  overflow-wrap: anywhere;
}

.call-context-heading span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.call-context-heading strong {
  margin-top: 3px;
  color: #344054;
  font-size: 12px;
}

.call-context-analysis.high .call-context-heading strong {
  color: #9f2d20;
}

.call-context-analysis.medium .call-context-heading strong {
  color: #9b5c00;
}

.call-context-analysis p {
  min-width: 0;
  margin: 0;
  color: #475467;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.call-context-metrics {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 4px 14px;
  border-top: 1px solid rgba(152, 162, 179, 0.24);
  padding-top: 7px;
}

.call-context-metrics span {
  color: #667085;
  font-size: 11px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.call-card footer {
  gap: 8px;
  min-width: 0;
  margin-top: 10px;
}

.call-card footer code {
  min-width: 0;
  color: #475467;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.call-proof-link {
  flex: 0 0 auto;
  margin-left: auto;
  border: 0;
  padding: 2px 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
  text-decoration: none;
}

.call-proof-link:disabled {
  color: var(--muted);
  cursor: wait;
}

.call-proof-detail {
  min-width: 0;
  margin-top: 11px;
  border-top: 1px solid #e8ecf2;
  padding-top: 11px;
}

.call-proof-detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.call-proof-detail-heading strong {
  color: #344054;
  font-size: 12px;
}

.call-proof-detail-heading span {
  border-radius: 6px;
  padding: 4px 7px;
  background: #fffaeb;
  color: #9b5c00;
  font-size: 10px;
  font-weight: 780;
}

.call-proof-detail-heading span.verified {
  background: #ecfdf3;
  color: #027a48;
}

.call-proof-detail-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.call-proof-export {
  min-height: 28px;
  border: 1px solid #cfd7e4;
  border-radius: 6px;
  padding: 0 9px;
  background: #ffffff;
  color: var(--primary);
  cursor: pointer;
  font-size: 10px;
  font-weight: 760;
}

.call-proof-export:disabled {
  color: var(--muted);
  cursor: wait;
}

.call-proof-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  min-width: 0;
  margin: 9px 0 0;
  border-top: 1px solid #eef1f5;
}

.call-proof-values > div {
  display: grid;
  grid-template-columns: minmax(100px, 0.35fr) minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  border-bottom: 1px solid #eef1f5;
  padding: 7px 0;
}

.call-proof-values dt,
.call-proof-values dd {
  min-width: 0;
  margin: 0;
  font-size: 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.call-proof-values dt {
  color: var(--muted);
  font-weight: 700;
}

.call-proof-values dd {
  color: #344054;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.call-proof-detail > p,
.call-proof-message {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.call-proof-anchor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 9px;
}

.call-proof-anchor-actions a {
  color: var(--primary);
  font-size: 11px;
  font-weight: 760;
}

.call-proof-message.error {
  color: var(--danger);
}

.audit-row {
  display: grid;
  grid-template-columns:
    minmax(150px, 1.25fr) minmax(150px, 1.15fr) repeat(3, minmax(72px, 0.62fr))
    minmax(78px, 0.68fr) minmax(72px, 0.62fr);
  gap: 12px;
  align-items: center;
  min-width: 860px;
  min-height: 42px;
  border-bottom: 1px solid #e5e9ef;
  padding: 8px 10px;
  color: #344054;
  font-size: 13px;
}

.audit-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.audit-head {
  min-height: 36px;
  border-bottom-color: var(--line);
  background: #f6f8fb;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.user-audit-list .empty-table {
  margin-top: 2px;
}

.audit-status {
  color: var(--muted);
  font-style: normal;
  font-weight: 760;
  text-decoration: none;
}

.audit-status.verified {
  color: var(--teal);
}

.auth-method-disabled,
.auth-method-disabled.hidden {
  display: none !important;
}

.focused-test-panel {
  width: min(100%, 1520px);
  justify-self: center;
  margin-inline: auto;
}

.test-workspace-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: start;
  min-width: 0;
  margin-top: 16px;
}

.test-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
}

.test-step {
  min-width: 0;
}

.test-model-step {
  grid-column: auto;
  grid-row: auto;
}

.test-response-step {
  min-width: 0;
}

.test-question-step {
  grid-column: auto;
  grid-row: auto;
}

.step-heading,
.step-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-heading > span,
.step-heading > div > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #b7cdf3;
  border-radius: 50%;
  background: #f4f8ff;
  color: #0a4b9a;
  font-size: 11px;
  font-weight: 820;
}

.step-heading strong {
  color: var(--ink);
  font-size: 15px;
}

.test-step label {
  margin-top: 10px;
}

.test-question-step textarea {
  min-height: 118px;
  background: #fbfcfe;
}

.test-media-fields {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.test-model-profile { display: grid; gap: 4px; margin-top: 12px; padding: 12px 13px; border: 1px solid #d9e1eb; border-left: 3px solid #4d6d91; border-radius: 6px; background: #f8fafc; }
.test-model-profile[data-modality="image"] { border-color: #cddbef; border-left-color: #2269b5; background: #f4f8ff; }
.test-model-profile[data-modality="video"] { border-color: #c9e1dd; border-left-color: #087f72; background: #f1faf8; }
.test-model-profile > span { color: #607086; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.test-model-profile > strong { color: #1d2939; font-size: 13px; }
.test-model-profile > small { color: #5d6878; font-size: 11px; line-height: 1.45; }

.test-mode-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  color: #506176;
  font-size: 12px;
  font-weight: 760;
}

.test-mode-options {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #cad6e4;
  border-radius: 6px;
  background: #ffffff;
}

.test-mode-options button {
  min-width: 62px;
  border: 0;
  border-right: 1px solid #d8e1eb;
  padding: 7px 11px;
  background: transparent;
  color: #526276;
  cursor: pointer;
  font: inherit;
}

.test-mode-options button:last-child { border-right: 0; }
.test-mode-options button:hover:not(:disabled) { background: #f3f7fb; }
.test-mode-options button.active { background: #1d4f7c; color: #ffffff; }
.test-mode-options button:disabled { cursor: not-allowed; opacity: .55; }

.focused-test-panel[data-test-modality="image"] .test-question-step {
  border-color: #cddbef;
  background: #f8fbff;
}

.focused-test-panel[data-test-modality="video"] .test-question-step {
  border-color: #c9e1dd;
  background: #f4fbf9;
}

.focused-test-panel[data-test-modality="image"] .test-send-step .primary-action {
  background: #2269b5;
  border-color: #2269b5;
}

.focused-test-panel[data-test-modality="video"] .test-send-step .primary-action {
  background: #087f72;
  border-color: #087f72;
}

.test-media-field-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.test-media-field-group label {
  display: grid;
  gap: 6px;
  margin-top: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.test-media-field-group select,
.test-media-field-group input[type="number"] {
  min-width: 0;
  min-height: 40px;
}

.test-media-checkbox {
  display: flex !important;
  align-items: center;
  align-self: end;
  grid-column: span 2;
  min-height: 40px;
  color: var(--ink) !important;
}

.test-media-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.test-media-result {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.test-media-output-item {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
}

.test-media-output-item img,
.test-media-output-item video {
  display: block;
  width: 100%;
  max-height: 300px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f6;
  object-fit: contain;
}

.test-media-output-item a {
  overflow: hidden;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.test-send-step {
  display: grid;
  align-content: end;
}

.test-send-step .step-heading {
  display: flex;
}

.test-send-step .primary-action {
  min-height: 46px;
  margin-top: 10px;
}

.result-heading {
  justify-content: space-between;
}

.text-action {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0 8px;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 740;
}

.text-action:hover,
.text-action:focus-visible {
  background: #eef4ff;
  outline: none;
}

.test-response-step .test-output {
  min-height: 118px;
  max-height: 190px;
  overflow-y: auto;
  margin-top: 10px;
  border-color: #d8dee8;
  background: #f8fafc;
  color: #17202a;
  font-family: inherit;
}

.test-response-step .test-output.empty {
  color: #5f6878;
}

.test-response-step .test-output.has-error {
  min-height: 72px;
  border-color: #fecdca;
  background: #fff7f5;
  color: #912018;
}

.quiet-details {
  border-top: 1px solid var(--line);
  padding-top: 13px;
}

.quiet-details > summary {
  width: fit-content;
  color: #475467;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  list-style-position: outside;
}

.quiet-details > summary:hover,
.quiet-details > summary:focus-visible {
  color: var(--primary);
}

.test-result-side {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.test-proof-side {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  padding-left: 0;
}

.test-model-combobox {
  position: relative;
  margin-top: 10px;
}

.test-model-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
}

.test-model-input-row input {
  min-width: 0;
  border-radius: 7px 0 0 7px;
}

.test-model-input-row button {
  display: grid;
  min-height: 44px;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 7px 7px 0;
  place-items: center;
  background: #f8fafc;
  color: #344054;
  cursor: pointer;
  font-size: 20px;
}

.test-model-options {
  position: absolute;
  z-index: 30;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  display: grid;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #cbd7e6;
  border-radius: 8px;
  padding: 5px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.16);
}

.test-model-options button {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.test-model-options button:hover,
.test-model-options button.active {
  background: #eef4ff;
}

.test-model-options strong,
.test-model-options span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.test-model-option-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.test-model-options strong {
  font-size: 13px;
}

.test-model-option-badges {
  display: inline-flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.test-model-option-badges em {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  border-radius: 999px;
  padding: 0 6px;
  background: #e8f2ff;
  color: #2455a6;
  font-size: 9px;
  font-style: normal;
  font-weight: 760;
}

.test-model-options span,
.test-model-empty {
  color: var(--muted);
  font-size: 11px;
}

.test-model-empty {
  margin: 0;
  padding: 12px;
}

.test-proof-side .distribution-summary {
  margin-top: 16px;
}

.access-recovery-action {
  width: 100%;
  margin-top: 8px;
}

.test-proof-side .test-proof-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.test-proof-side .test-evidence {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 10px;
}

.team-panel-heading {
  align-items: center;
}

#overviewPanel .hero-panel {
  min-height: 190px;
}

.overview-recent-panel .request-log {
  margin-top: 16px;
}

#planPanel.active-panel + #teamPanel.active-panel {
  margin-top: 14px;
}

.access-setup-panel .access-mode-switch {
  margin-top: 16px;
}

.user-audit-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.user-audit-pagination .secondary-action {
  min-height: 36px;
  margin: 0;
  padding: 0 13px;
}

.user-audit-pagination span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.purchase-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.purchase-steps span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 46px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.purchase-steps span + span {
  border-left: 1px solid var(--line);
}

.purchase-steps em {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-style: normal;
}

.purchase-steps span.active {
  background: #f3f7fd;
  color: var(--primary);
}

.purchase-steps span.active em {
  background: var(--primary);
  color: #ffffff;
}

.purchase-steps span.complete {
  color: var(--teal);
}

.purchase-steps span.complete em {
  background: #e6f5f1;
  color: var(--teal);
}

.plan-purchase-result {
  margin-top: 14px;
  border-left: 3px solid var(--primary);
  padding: 11px 14px;
  background: #f3f7fd;
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
}

.plan-purchase-result.ok {
  border-left-color: #14866d;
  background: #f1faf7;
  color: #067647;
}

.plan-purchase-result.bad {
  border-left-color: #d92d20;
  background: #fff5f4;
  color: #b42318;
}

.plan-billing-panel .billing-overview-heading {
  margin-bottom: 16px;
}

.team-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
  border-bottom: 1px solid var(--line);
}

.team-tabs button {
  min-height: 44px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 760;
}

.team-tabs button.active {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

.team-tabs button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.team-tab-view {
  min-width: 0;
}

.team-audit-menu {
  position: relative;
}

.team-audit-menu > summary {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 11px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
  list-style: none;
}

.team-audit-menu > summary::-webkit-details-marker {
  display: none;
}

.team-audit-menu > div {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  min-width: 170px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.14);
}

.team-audit-menu .text-action {
  justify-content: flex-start;
  width: 100%;
  padding: 8px 10px;
  text-align: left;
}

@media (max-width: 820px) {
  .plan-comparison {
    overflow-x: auto;
  }

  .plan-comparison-heading,
  .plan-comparison-table {
    min-width: 680px;
  }

  .billing-overview-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .encryption-quote-grid,
  .encryption-package-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .purchase-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .purchase-steps span:nth-child(3) {
    border-left: 0;
  }

  .purchase-steps span:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .team-tabs button {
    padding-inline: 6px;
  }

  .team-audit-menu > div {
    right: auto;
    left: 0;
  }
}

.team-empty-state {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(420px, 1.2fr);
  gap: 28px;
  align-items: end;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.team-upgrade-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
}

.team-upgrade-prompt p {
  margin: 6px 0 0;
  color: var(--muted);
}

.team-empty-state strong,
.team-section-heading strong {
  display: block;
  color: var(--text);
  font-size: 16px;
}

.team-create-form,
.team-settings-form,
.team-invite-form,
.team-project-create-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.7fr) auto;
  gap: 10px;
  align-items: end;
}

.team-create-form label,
.team-settings-form label,
.team-invite-form label,
.team-project-create-form label {
  margin: 0;
}

.team-create-form button,
.team-invite-form button,
.team-project-create-form button {
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 0 18px;
}

.team-workspace-body {
  margin-top: 22px;
}

.team-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.team-summary > div {
  min-width: 0;
  padding: 16px 18px;
}

.team-summary > div + div {
  border-left: 1px solid var(--line);
}

.team-summary span,
.team-summary strong {
  display: block;
}

.team-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.team-summary strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 22px;
}

.team-budget-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.45fr);
  gap: 20px;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.team-budget-status strong,
.team-budget-status span {
  display: block;
}

.team-budget-status strong {
  color: var(--teal);
  font-size: 13px;
}

.team-budget-status span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.team-budget-status[data-status="warning"] strong,
.budget-state.warning {
  color: #b54708;
}

.team-budget-status[data-status="exhausted"] strong,
.budget-state.exhausted {
  color: #b42318;
}

.team-budget-status progress,
.team-project-budget-progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  appearance: none;
  background: #e7edf3;
}

.team-budget-status progress::-webkit-progress-bar,
.team-project-budget-progress::-webkit-progress-bar {
  border-radius: 4px;
  background: #e7edf3;
}

.team-budget-status progress::-webkit-progress-value,
.team-project-budget-progress::-webkit-progress-value {
  border-radius: 4px;
  background: #14866d;
}

.team-budget-status[data-status="warning"] progress::-webkit-progress-value,
.team-project-budget-progress[data-status="warning"]::-webkit-progress-value {
  background: #f79009;
}

.team-budget-status[data-status="exhausted"] progress::-webkit-progress-value,
.team-project-budget-progress[data-status="exhausted"]::-webkit-progress-value {
  background: #f04438;
}

.team-budget-status progress::-moz-progress-bar,
.team-project-budget-progress::-moz-progress-bar {
  border-radius: 4px;
  background: #14866d;
}

.team-management-section,
.team-pending-invitations {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.team-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.team-section-heading span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.team-section-heading button {
  width: auto;
  margin: 0;
}

.team-settings-form {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr);
}

.team-member-list,
.team-invitation-list,
.team-pending-invitations,
.team-project-list {
  display: grid;
}

.team-member-row,
.team-invitation-row,
.team-pending-row,
.team-project-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.45fr) auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.team-member-row:first-child,
.team-invitation-row:first-child,
.team-pending-row:first-child,
.team-project-row:first-child {
  border-top: 1px solid var(--line);
}

.team-member-row strong,
.team-member-row span,
.team-invitation-row strong,
.team-invitation-row span,
.team-pending-row strong,
.team-pending-row span,
.team-project-row strong,
.team-project-row span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.team-member-row span,
.team-invitation-row span,
.team-pending-row span,
.team-project-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.team-member-actions,
.team-invitation-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.team-member-actions select {
  width: 112px;
}

.team-member-actions [data-team-member-project] {
  width: 148px;
}

.team-project-create-form {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.7fr) auto;
}

.team-project-row {
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto) auto;
}

.team-project-usage {
  text-align: right;
}

.team-project-usage strong {
  color: var(--teal);
  font-size: 12px;
}

.team-project-budget-progress {
  display: block;
  min-width: 150px;
  margin-top: 7px;
}

.team-project-usage .budget-state {
  margin-top: 5px;
}

.team-project-actions {
  display: flex;
  gap: 6px;
}

.team-audit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.team-audit-actions .state-pill {
  margin: 0;
  margin-right: auto;
}

.team-audit-actions button {
  min-height: 34px;
}

.team-member-actions button,
.team-invitation-actions button,
.team-pending-row button,
.team-project-row button {
  width: auto;
  min-height: 36px;
  margin: 0;
  padding: 0 12px;
}

.team-audit-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.team-audit-summary > div {
  min-width: 0;
  padding: 13px 16px;
}

.team-audit-summary > div + div {
  border-left: 1px solid var(--line);
}

.team-audit-summary span,
.team-audit-summary strong {
  display: block;
}

.team-audit-archive-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.team-audit-archive-status .text-action {
  flex: 0 0 auto;
  min-height: 32px;
}

.team-audit-archive-list {
  display: grid;
}

.team-audit-archive-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(100px, auto) auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.team-audit-archive-row strong,
.team-audit-archive-row span {
  display: block;
  overflow-wrap: anywhere;
}

.team-audit-archive-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.team-audit-archive-row code {
  color: var(--muted);
  font-size: 11px;
}

.team-audit-archive-row .text-action {
  min-height: 32px;
  padding: 0 10px;
}

.team-audit-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.team-audit-summary strong {
  margin-top: 4px;
  font-size: 18px;
}

.team-audit-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 0;
  margin-top: 18px;
}

.team-audit-layout > section {
  min-width: 0;
}

.team-audit-layout > section + section {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

.team-audit-layout > section:first-child {
  padding-right: 20px;
}

.team-audit-layout h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.team-audit-list {
  display: grid;
}

.team-audit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.team-audit-row:first-child {
  border-top: 1px solid var(--line);
}

.team-audit-row strong,
.team-audit-row span,
.team-audit-row small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.team-audit-row span,
.team-audit-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.team-audit-row > em {
  color: var(--teal);
  font-size: 12px;
  font-style: normal;
  font-weight: 780;
  text-align: right;
}

.team-audit-row > em.failed {
  color: var(--danger);
}

@media (max-width: 860px) {
  .workspace-test-drawer {
    width: 100vw;
  }

  .workspace-test-drawer-heading,
  .workspace-test-drawer-content {
    padding-right: 18px;
    padding-left: 18px;
  }

  .test-workspace-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .test-result-side {
    border-left: 0;
    padding-top: 20px;
    padding-left: 0;
  }

  .billing-overview {
    grid-template-columns: minmax(0, 1fr);
  }

  .team-audit-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .team-audit-layout > section:first-child {
    padding-right: 0;
  }

  .team-audit-layout > section + section {
    margin-top: 18px;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 18px;
    padding-left: 0;
  }
}

.access-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
  padding: 6px;
  border-radius: 8px;
  background: #eef2f7;
}

.access-mode-switch > input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.access-mode-switch > label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
  min-height: 58px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 9px 14px;
  color: #475467;
  cursor: pointer;
}

.access-mode-switch > label strong,
.access-mode-switch > label span {
  min-width: 0;
}

.access-mode-switch > label strong {
  color: var(--ink);
  font-size: 14px;
}

.access-mode-switch > label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-align: right;
}

#accessModeCloud:checked + label,
#accessModeLocal:checked + label,
#accessModeEnterprise:checked + label {
  border-color: #c9d7eb;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(28, 39, 49, 0.08);
}

#accessModeCloud:focus-visible + label,
#accessModeLocal:focus-visible + label,
#accessModeEnterprise:focus-visible + label {
  outline: 3px solid rgba(11, 99, 206, 0.16);
  outline-offset: 1px;
}

.access-mode-panel {
  display: none;
  grid-column: 1 / -1;
  min-width: 0;
  margin: 2px -6px -6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #ffffff;
}

#accessModeCloud:checked ~ .cloud-access-panel,
#accessModeLocal:checked ~ .local-access-panel,
#accessModeEnterprise:checked ~ .enterprise-access-panel {
  display: block;
}

.access-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.access-panel-heading > div > span {
  color: var(--teal);
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.access-panel-heading h3 {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.3;
}

.access-mode-panel > p,
.distribution-settings > p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.cloud-tool-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 16px;
  border-radius: 8px;
  padding: 5px;
  background: #eef2f7;
}

.cloud-tool-picker button {
  min-width: 0;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 0 9px;
  background: transparent;
  color: #475467;
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.cloud-tool-picker button.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(28, 39, 49, 0.08);
}

.cloud-tool-picker button:focus-visible {
  outline: 2px solid rgba(11, 99, 206, 0.24);
  outline-offset: 1px;
}

.cloud-tool-status {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  margin-top: 9px;
}

.cloud-tool-status strong {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.cloud-tool-evidence {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cloud-tool-evidence span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.tool-acceptance-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.tool-acceptance-summary > div {
  min-width: 0;
  border: 1px solid #d8e1ec;
  border-radius: 6px;
  padding: 10px 11px;
  background: #f8fafc;
}

.tool-acceptance-summary span,
.tool-acceptance-summary strong,
.tool-acceptance-summary small {
  display: block;
  overflow-wrap: anywhere;
}

.tool-acceptance-summary span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
}

.tool-acceptance-summary strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.tool-acceptance-summary small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.cloud-config-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 10px;
  margin-top: 18px;
}

.cloud-config-grid > div {
  min-width: 0;
  border-top: 1px solid #cbd7e6;
  padding: 11px 0 0;
}

.cloud-config-grid > div:first-child {
  border-top-color: #2e8b78;
}

.cloud-config-grid .cloud-token-row {
  grid-column: 1 / -1;
  border: 1px solid #cbd7e6;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fafc;
}

.cloud-config-grid > div,
.credential-note {
  min-width: 0;
}

.cloud-config-grid span,
.cloud-config-grid strong,
.credential-note > span,
.credential-note > strong {
  display: block;
}

.cloud-config-grid span,
.credential-note > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.cloud-config-grid strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.cloud-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.cloud-access-actions .primary-action,
.cloud-access-actions .secondary-action {
  width: auto;
  min-height: 40px;
  margin-top: 0;
  padding: 0 15px;
}

.credential-note {
  margin-top: 12px;
  border-left: 3px solid #2e8b78;
  padding: 10px 0 10px 13px;
}

.credential-note > strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 14px;
}

.credential-note p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.credential-details {
  margin-top: 12px;
}

.credential-details .secret-output {
  margin-top: 12px;
}

.credential-details .text-action {
  margin-top: 8px;
}

.api-key-create-row {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.api-key-create-row label {
  flex: 1 1 220px;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.api-key-create-row input {
  min-height: 38px;
}

.api-key-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.access-management-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.access-management-link strong {
  color: var(--ink);
  font-size: 13px;
}

.access-management-link p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.api-key-management-panel .api-key-create-row {
  max-width: 660px;
  margin-top: 18px;
}

.api-key-management-panel .legacy-token-details {
  max-width: 760px;
  margin-top: 18px;
}

.api-key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfdff;
}

.api-key-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.api-key-actions .secondary-action,
.api-key-actions .danger-action {
  width: auto;
  min-height: 34px;
  margin: 0;
  padding: 0 11px;
}

.api-key-legacy-note {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.api-key-row strong,
.api-key-row small {
  display: block;
}

.api-key-row strong {
  color: var(--ink);
  font-size: 12px;
}

.api-key-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.api-key-row.revoked {
  opacity: .56;
}

@media (max-width: 640px) {
  .access-management-link {
    align-items: stretch;
    flex-direction: column;
  }

  .access-management-link .secondary-action {
    width: 100%;
  }

  .api-key-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .api-key-actions {
    width: 100%;
  }
}

.credential-rotation-confirm {
  margin-top: 10px;
  border-left: 3px solid #d92d20;
  padding: 10px 12px;
  background: #fff5f5;
}

.credential-rotation-confirm p {
  margin: 0;
  color: #912018;
  font-size: 12px;
  line-height: 1.55;
}

.credential-rotation-confirm > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.credential-rotation-confirm .danger-action,
.credential-rotation-confirm .text-action {
  width: auto;
  margin-top: 0;
}

.local-access-panel .client-runtime-grid {
  margin-top: 18px;
}

.local-client-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.local-client-actions .primary-action,
.local-client-actions .secondary-link {
  width: auto;
  min-height: 38px;
  margin-top: 0;
  padding: 0 14px;
}

.enterprise-access-panel {
  border-color: #ead8ad;
  background: #fffcf5;
}

.enterprise-capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.enterprise-capability-grid > div {
  min-width: 0;
  border-top: 1px solid #d9bd78;
  padding-top: 10px;
}

.enterprise-capability-grid span,
.enterprise-capability-grid strong {
  display: block;
  min-width: 0;
}

.enterprise-capability-grid span {
  color: #8a5a00;
  font-size: 11px;
  font-weight: 800;
}

.enterprise-capability-grid strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.enterprise-access-actions {
  margin-top: 18px;
}

.enterprise-access-actions .primary-link {
  width: fit-content;
  min-height: 40px;
  padding: 0 16px;
}

.distribution-settings {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: #fbfcfe;
}

.distribution-settings[open] {
  padding-bottom: 18px;
}

.distribution-settings .action-row {
  justify-content: flex-start;
}

.distribution-settings .primary-action {
  width: auto;
  min-width: 112px;
  margin-top: 0;
  padding-inline: 18px;
}

@media (max-width: 1240px) {
  .auth-layout,
  .topbar {
    width: calc(100vw - 48px);
  }

  .workspace-model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-copy {
    min-height: 360px;
    padding: 34px;
  }

  .auth-card {
    order: -1;
    min-height: auto;
  }

  .auth-flow-visual {
    min-height: 180px;
  }

  .auth-copy h1 {
    font-size: 36px;
  }

  .auth-copy p {
    font-size: 16px;
  }

  .assurance-grid {
    grid-template-columns: 1fr;
    margin-top: 26px;
  }

  .app-view {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  .sidebar {
    position: relative;
    height: auto;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    gap: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-brand {
    grid-column: 1;
  }

  .menu {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin-top: 0;
  }

  .menu-item {
    text-align: center;
  }

  .logout-button {
    grid-column: 2;
    grid-row: 1;
    min-width: 120px;
  }

  .main-panel {
    overflow: visible;
    padding: 22px;
  }

  .workspace-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .panel-grid {
    grid-template-columns: 1fr;
  }

  .plan-benefits {
    grid-template-columns: 1fr;
  }

  .plan-snapshot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-plan-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quickstart-grid,
  .workspace-model-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .client-runtime-grid,
  .tool-config-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-runtime-grid > div:first-child,
  .tool-config-card:last-child {
    grid-column: 1 / -1;
  }

  .quickstart-grid a:nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .test-grid,
  .test-proof-grid,
    .test-result-grid,
    .integration-grid,
    .edition-grid,
    .delivery-gate-grid,
    .channel-delivery-checklist,
    .workspace-boundaries-grid,
    .key-management-grid,
    .user-key-guide {
    grid-template-columns: 1fr;
  }

  .route-row,
  .route-head {
    grid-template-columns: 1fr;
  }

  .usage-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .usage-stat {
    padding: 14px 16px;
  }

  .usage-stat:nth-child(2) {
    border-right: 0;
  }

  .usage-stat:nth-child(3),
  .usage-stat:nth-child(4),
  .usage-stat:nth-child(5) {
    border-top: 1px solid var(--line);
  }

  .usage-stat:nth-child(3),
  .usage-stat:nth-child(5) {
    padding-left: 0;
  }

  .usage-stat:nth-child(4),
  .usage-stat:nth-child(5) {
    border-right: 0;
  }

  .usage-stat:nth-child(5) {
    grid-column: 1 / -1;
  }

  .usage-budget {
    grid-column: 1 / -1;
    padding-right: 0;
    border-right: 0;
  }

  .usage-cost {
    grid-column: 1 / -1;
    padding-left: 0;
  }

  .user-audit-list {
    overflow: visible;
  }

  .audit-row:not(.audit-head) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #ffffff;
  }

  .audit-row:not(.audit-head) > span::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 760;
  }

  .audit-head {
    display: none;
  }

  .route-line {
    grid-template-columns: 1fr;
  }

  .route-line i {
    width: 2px;
    height: 18px;
    justify-self: center;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .test-flow {
    grid-template-columns: minmax(0, 1fr);
  }

  .test-model-step,
  .test-question-step,
  .test-send-step {
    grid-column: 1;
    grid-row: auto;
  }

  .test-send-step .step-heading {
    justify-content: flex-start;
  }

  .test-proof-side .test-evidence {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .workspace-model-grid.list-view .workspace-model-card {
    grid-template-columns: 1fr;
  }

  .workspace-model-grid.list-view .workspace-model-badges,
  .workspace-model-grid.list-view .workspace-model-price-grid,
  .workspace-model-grid.list-view .workspace-model-actions {
    grid-column: auto;
    grid-row: auto;
  }

  .workspace-model-grid.list-view .workspace-model-actions {
    flex-direction: row;
  }
}

@media (max-width: 560px) {
  .credit-topup-dialog {
    width: min(100vw - 20px, 720px);
    padding: 18px;
  }

  .credit-topup-amounts {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-my-models-heading,
  .workspace-byok-model {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-my-models-heading .secondary-action,
  .workspace-byok-actions,
  .workspace-byok-actions .primary-action {
    width: 100%;
  }

  .workspace-byok-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .byok-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .byok-wide-field {
    grid-column: 1;
  }

  .byok-dialog-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .byok-dialog-actions .primary-action {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
  }

  .auth-layout {
    width: calc(100vw - 24px);
    gap: 16px;
    margin-top: 10px;
  }

  .auth-card {
    padding: 20px;
  }

  .auth-copy {
    min-height: 0;
    padding: 24px 20px;
  }

  .auth-copy h1 {
    font-size: 30px;
  }

  .team-upgrade-prompt {
    align-items: stretch;
    flex-direction: column;
  }

  .team-upgrade-prompt .primary-link {
    width: 100%;
    text-align: center;
  }

  .plan-panel-heading,
  .plan-chooser-heading,
  .plan-choice-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .plan-heading-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .plan-entry-action,
  .plan-choice-footer .primary-link {
    width: 100%;
    min-width: 0;
  }

  .subscription-period {
    width: 100%;
  }

  .subscription-seat-control {
    justify-content: space-between;
    width: 100%;
    padding-block: 4px;
  }

  .subscription-period button {
    flex: 1 1 50%;
  }

  .plan-snapshot {
    grid-template-columns: minmax(0, 1fr);
  }

  .public-plan-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .topup-security-tabs {
    width: 100%;
  }

  .topup-security-tabs button {
    flex: 1 1 50%;
  }

  .topup-package-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .topup-choice-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .topup-choice-footer .primary-action {
    width: 100%;
    margin: 0;
  }

  .public-plan-option {
    min-height: 0;
  }

  .main-panel {
    padding: 16px 12px 22px;
  }

  .workspace-header h1 {
    font-size: 28px;
  }

  .header-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }

  .workspace-role-context,
  .workspace-switcher,
  .session-chip {
    width: 100%;
    min-width: 0;
  }

  .workspace-role-context {
    justify-content: space-between;
  }

  .workspace-switcher select {
    width: 100%;
    min-width: 0;
  }

  .session-chip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .session-chip span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .panel {
    padding: 18px 16px;
  }

  .test-media-field-group {
    grid-template-columns: minmax(0, 1fr);
  }

  .test-media-checkbox {
    grid-column: auto;
  }

  .test-media-result {
    grid-template-columns: minmax(0, 1fr);
  }

  .test-diagnosis {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .billing-overview-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .billing-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .billing-heading-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .billing-statement-format,
  .billing-statement-format select,
  .billing-heading-actions .secondary-action,
  .billing-heading-actions .primary-action {
    width: 100%;
  }

  .billing-statement-format {
    justify-content: space-between;
  }

  .billing-ledger > div {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .billing-order-list > div {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .billing-order-list .text-action {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .billing-ledger > div em {
    grid-column: 1 / -1;
  }

  .call-header-status {
    align-items: flex-end;
    flex-direction: column;
  }

  .test-diagnosis .secondary-action {
    width: 100%;
  }

  .access-mode-switch {
    grid-template-columns: minmax(0, 1fr);
  }

  .access-mode-switch > label {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    padding: 9px 10px;
  }

  .access-mode-switch > label span {
    text-align: left;
  }

  .access-mode-panel {
    padding: 18px 14px;
  }

  .cloud-config-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tool-acceptance-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .cloud-access-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .cloud-access-actions .primary-action,
  .cloud-access-actions .secondary-action {
    width: 100%;
  }

  .local-client-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .local-client-actions .text-action {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .local-client-actions .primary-action,
  .local-client-actions .secondary-link {
    width: 100%;
  }

  .enterprise-capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .enterprise-access-actions .primary-link {
    width: 100%;
  }

  .menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
  }

  .menu-item {
    min-width: 0;
    padding: 0 6px;
    font-size: 12px;
  }

  .team-empty-state,
  .team-create-form,
  .team-settings-form,
  .team-invite-form,
  .team-project-create-form,
  .team-member-row,
  .team-invitation-row,
  .team-pending-row,
  .team-project-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .team-empty-state {
    gap: 14px;
  }

  .team-create-form button,
  .team-invite-form button,
  .team-project-create-form button,
  .team-section-heading button {
    width: 100%;
  }

  .team-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .team-audit-actions {
    width: 100%;
    justify-content: space-between;
  }

  .team-audit-actions button {
    width: auto;
    min-width: 100px;
  }

  .team-summary,
  .team-audit-summary,
  .team-budget-status,
  .team-audit-archive-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .team-budget-status {
    gap: 8px;
  }

  .team-audit-archive-row .text-action {
    justify-self: start;
  }

  .team-summary > div + div,
  .team-audit-summary > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .team-member-actions,
  .team-invitation-actions {
    justify-content: flex-start;
  }

  .team-project-usage {
    text-align: left;
  }

  .quickstart-grid,
  .workspace-model-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .onboarding-next-action {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 13px 12px;
  }

  .onboarding-next-action .primary-link {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .client-setup-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .client-setup-steps,
  .client-runtime-grid,
  .tool-config-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .client-setup-steps li + li {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .client-runtime-grid > div:first-child,
  .tool-config-card:last-child {
    grid-column: 1;
  }

  .tool-config-card p {
    min-height: 0;
  }

  .call-card header {
    align-items: flex-start;
  }

  .call-timeline summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .call-timeline summary > em {
    white-space: normal;
  }

  .call-timeline ol {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .call-timeline li {
    padding-right: 0;
    padding-bottom: 13px;
  }

  .call-timeline li:not(:last-child)::after {
    top: 25px;
    right: auto;
    bottom: 0;
    left: 11px;
    width: 1px;
    height: auto;
  }

  .call-card footer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .call-proof-link {
    grid-column: 1 / -1;
    margin-left: 0;
  }

  .call-proof-detail-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .call-proof-values {
    grid-template-columns: minmax(0, 1fr);
  }

  .call-proof-values > div {
    grid-template-columns: minmax(88px, 0.34fr) minmax(0, 1fr);
  }

  .quickstart-grid a,
  .quickstart-grid a:nth-child(3) {
    grid-column: 1;
    padding: 14px 4px;
    border-left: 0;
  }

  .quickstart-grid a + a {
    border-top: 1px solid var(--line);
  }

  .model-filter-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-model-filter-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .workspace-model-status-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .model-filter-row button {
    width: 100%;
    padding: 0 8px;
  }

  .workspace-model-card {
    min-height: 0;
    padding: 14px;
  }

  .usage-panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .usage-heading-actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .usage-heading-actions .state-pill {
    margin-right: auto;
  }

  .call-context-analysis {
    grid-template-columns: 1fr;
  }

  .call-context-metrics {
    grid-column: 1;
  }

  .usage-summary-grid {
    grid-template-columns: 1fr;
  }

  .usage-stat,
  .usage-stat:first-child,
  .usage-stat:nth-child(3),
  .usage-cost {
    grid-column: 1;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .usage-stat:first-child {
    border-top: 0;
  }

  .usage-budget {
    grid-column: 1;
    padding: 12px 0;
  }

  .audit-row:not(.audit-head) {
    grid-template-columns: 1fr;
  }
}

/* Plans and billing */
.plan-page {
  display: grid;
  gap: 28px;
  width: 100%;
}

.plan-overview-band,
.plan-versions-band,
.plan-billing-band {
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0 0 28px;
  background: transparent;
}

.plan-panel-heading,
.plan-chooser-heading,
.billing-overview-heading,
.plan-comparison-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.plan-panel-heading h2,
.plan-chooser-heading h2 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1.25;
}

.plan-panel-heading p,
.plan-chooser-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.plan-overview-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 18px;
  border-block: 1px solid var(--line);
  background: #ffffff;
}

.plan-overview-strip > div {
  min-width: 0;
  padding: 15px 14px;
}

.plan-overview-strip > div + div {
  border-left: 1px solid var(--line);
}

.plan-overview-strip span,
.plan-overview-strip strong,
.plan-overview-strip em {
  display: block;
}

.plan-overview-strip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.plan-overview-strip strong {
  margin-top: 7px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.plan-overview-strip em {
  margin-top: 5px;
  color: #667085;
  font-size: 10px;
  font-style: normal;
  line-height: 1.4;
}

.plan-overview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
}

.plan-overview-actions p {
  margin: 0;
  color: #475467;
  font-size: 12px;
}

.plan-overview-actions > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.plan-credit-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  border-left: 3px solid #14866d;
  padding: 10px 14px;
  background: #f1faf7;
  color: #08745d;
  font-size: 11px;
  font-weight: 720;
}

.topup-security-tabs {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #c7d4e5;
  border-radius: 7px;
  background: #ffffff;
}

.topup-security-tabs button {
  min-height: 34px;
  border: 0;
  border-right: 1px solid #c7d4e5;
  padding: 0 13px;
  background: #ffffff;
  color: #52627a;
  font: inherit;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.topup-security-tabs button:last-child {
  border-right: 0;
}

.topup-security-tabs button.active {
  background: var(--primary);
  color: #ffffff;
}

.topup-security-tabs button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.topup-package-options {
  display: grid;
  gap: 22px;
  margin-top: 16px;
}

.topup-package-group {
  display: grid;
  gap: 11px;
}

.topup-package-group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
}

.topup-package-group-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
}

.topup-package-group-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.topup-package-group-heading > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.topup-package-group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.topup-package-card {
  display: flex;
  min-width: 0;
  min-height: 270px;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid #cbd8e8;
  border-radius: 7px;
  padding: 18px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.topup-package-card:hover,
.topup-package-card:focus-visible {
  border-color: #4487d8;
  box-shadow: 0 8px 20px rgba(32, 93, 168, 0.10);
  outline: 0;
}

.topup-package-card.selected {
  border: 2px solid var(--primary);
  padding: 17px;
  background: #f5f9ff;
}

.topup-package-card.secure {
  border-color: #78b6a6;
  background: #f4fbf8;
}

.topup-package-card.secure.selected {
  border-color: #08745d;
  background: #edf9f4;
}

.topup-package-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.topup-package-card-heading strong {
  font-size: 16px;
  line-height: 1.35;
}

.topup-package-card-heading em {
  flex: 0 0 auto;
  border-radius: 4px;
  padding: 3px 7px;
  background: #e8f0fb;
  color: #1556a8;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.topup-package-card.secure .topup-package-card-heading em {
  background: #dff4eb;
  color: #067647;
}

.topup-package-card > b {
  display: block;
  margin-top: 20px;
  font-size: 30px;
  line-height: 1;
}

.topup-package-points {
  display: block;
  margin-top: 9px;
  color: var(--primary-strong);
  font-size: 14px;
  font-weight: 800;
}

.topup-package-card > p {
  min-height: 40px;
  margin: 18px 0 0;
  color: #475467;
  font-size: 12px;
  line-height: 1.55;
}

.topup-package-card ul {
  display: grid;
  gap: 7px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.topup-package-card li {
  color: #344054;
  font-size: 12px;
  line-height: 1.45;
}

.topup-package-card li::before {
  margin-right: 7px;
  color: #08745d;
  content: "✓";
  font-weight: 850;
}

.topup-package-card > small {
  margin-top: auto;
  padding-top: 15px;
  color: #667085;
  font-size: 11px;
}

.topup-package-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 30px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
}

.topup-package-card-footer small {
  min-width: 0;
  color: #667085;
  font-size: 10px;
  line-height: 1.35;
}

.topup-model-pricing {
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--primary-strong);
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.topup-model-pricing:hover,
.topup-model-pricing:focus-visible {
  color: var(--primary);
  text-decoration: underline;
  outline: 0;
}

.model-pricing-dialog {
  width: min(760px, calc(100vw - 32px));
  max-width: 760px;
  border: 1px solid #cbd8e8;
  border-radius: 10px;
  padding: 0;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(16, 24, 40, 0.22);
}

.model-pricing-dialog::backdrop {
  background: rgba(16, 24, 40, 0.42);
}

.model-pricing-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
}

.model-pricing-heading > div {
  display: grid;
  gap: 4px;
}

.model-pricing-heading span {
  color: var(--muted);
  font-size: 10px;
}

.model-pricing-heading strong {
  color: var(--ink);
  font-size: 18px;
}

.model-pricing-list {
  display: grid;
  gap: 10px;
  max-height: min(62vh, 560px);
  overflow: auto;
  padding: 16px 20px 20px;
}

.model-pricing-card {
  display: grid;
  gap: 12px;
  border: 1px solid #dbe5f2;
  border-radius: 7px;
  padding: 14px;
  background: #fbfdff;
}

.model-pricing-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.model-pricing-card header > div {
  display: grid;
  gap: 4px;
}

.model-pricing-card header span,
.model-pricing-card header em,
.model-pricing-card dt {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.model-pricing-card header strong {
  color: var(--ink);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.model-pricing-card header em {
  flex: 0 0 auto;
  border-radius: 4px;
  padding: 3px 7px;
  background: #eaf2ff;
  color: #1d4f91;
  font-weight: 760;
}

.model-pricing-card p {
  min-height: 38px;
  margin: 0;
  color: #475467;
  font-size: 12px;
  line-height: 1.55;
}

.model-pricing-card dl {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  border-top: 1px solid #e7edf5;
  padding-top: 10px;
}

.model-pricing-card dl > div {
  display: grid;
  gap: 3px;
}

.model-pricing-card dd {
  margin: 0;
  color: #1f2937;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.model-pricing-empty {
  margin: 18px 0 4px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.topup-choice-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding: 16px 0 0;
}

.topup-choice-footer > div {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 5px;
}

.topup-choice-footer strong {
  color: var(--ink);
  font-size: 14px;
}

.topup-choice-footer p {
  margin: 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

.topup-choice-footer .primary-action {
  width: auto;
  min-width: 218px;
  margin: 0;
  padding-inline: 18px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.public-plan-options {
  align-items: stretch;
  gap: 14px;
}

.public-plan-option {
  min-height: 440px;
  padding: 20px;
}

.public-plan-option > b {
  font-size: 30px;
}

.plan-option-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: auto;
  border: 1px solid #b8c9dd;
  border-radius: 7px;
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 800;
}

.public-plan-option.featured .plan-option-cta,
.public-plan-option.selected .plan-option-cta {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.plan-choice-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.plan-choice-footer p {
  margin: 0;
  color: #475467;
  font-size: 12px;
}

.plan-comparison-section {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.plan-comparison {
  margin-top: 16px;
  border-top: 0;
  padding-top: 0;
}

.plan-comparison-table {
  border: 1px solid var(--line);
  border-bottom: 0;
  background: #ffffff;
}

.plan-comparison-row {
  grid-template-columns: minmax(150px, 0.8fr) repeat(3, minmax(160px, 1fr));
}

.plan-comparison-row > * {
  border-right: 1px solid #e9edf3;
}

.plan-comparison-row > *:last-child {
  border-right: 0;
}

.plan-comparison-header {
  position: sticky;
  z-index: 2;
  top: 0;
  background: #f7f9fc;
}

.plan-comparison-header > :first-child,
.plan-comparison-row > :first-child {
  position: sticky;
  z-index: 1;
  left: 0;
  background: #ffffff;
}

.plan-comparison-header > :first-child {
  background: #f7f9fc;
}

.plan-comparison-header .recommended,
.plan-feature-cell.recommended {
  background: #f3f8ff;
}

.plan-comparison-group h4,
.plan-comparison-mobile-group h4 {
  margin: 0;
  border-bottom: 1px solid var(--line);
  padding: 9px 12px;
  background: #edf2f8;
  color: #344054;
  font-size: 11px;
}

.plan-feature-cell {
  display: grid;
  align-content: start;
  gap: 6px;
}

.plan-feature-cell strong {
  color: #344054;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
}

[data-plan-feature-status] {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 22px;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 820;
}

[data-plan-feature-status="supported"] {
  background: #e8f5ee;
  color: #067647;
}

[data-plan-feature-status="not_included"] {
  background: #f2f4f7;
  color: #667085;
}

[data-plan-feature-status="planned"] {
  background: #fff4e5;
  color: #9b5c00;
}

.plan-status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.plan-comparison-mobile,
.plan-comparison-mobile-tabs {
  display: none;
}

.billing-overview-heading > div:first-child {
  display: grid;
  gap: 5px;
}

.billing-overview-heading strong {
  font-size: 22px;
}

.billing-overview-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 16px;
  border-block: 1px solid var(--line);
  background: #ffffff;
}

.billing-overview-metrics p {
  min-width: 0;
  border-left: 0;
  padding: 14px;
}

.billing-overview-metrics p + p {
  border-left: 1px solid var(--line);
}

.billing-overview-metrics em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.billing-tabs {
  display: flex;
  gap: 0;
  margin-top: 18px;
  border-bottom: 1px solid var(--line);
}

.billing-tabs button {
  min-height: 40px;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 16px;
  background: transparent;
  color: #667085;
  font: inherit;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.billing-tabs button.active {
  border-bottom-color: var(--primary);
  color: var(--primary-strong);
}

.billing-tab-view {
  padding-top: 16px;
}

.billing-tab-view.hidden {
  display: none;
}

.billing-filter-bar {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) repeat(4, minmax(120px, auto)) auto;
  gap: 9px;
  align-items: end;
}

.billing-filter-bar.compact {
  grid-template-columns: minmax(140px, 1fr) minmax(150px, auto) auto;
}

.billing-filter-bar > div,
.billing-filter-bar label {
  display: grid;
  gap: 4px;
}

.billing-filter-bar > div span,
.billing-filter-bar label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 720;
}

.billing-filter-bar > div strong {
  color: var(--ink);
  font-size: 15px;
}

.billing-filter-bar select,
.billing-filter-bar input,
.billing-statement-layout select,
.billing-statement-layout input {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: #ffffff;
  color: #344054;
  font: inherit;
  font-size: 11px;
}

.billing-order-list,
.billing-ledger {
  margin-top: 12px;
  gap: 0;
  border: 1px solid var(--line);
  background: #ffffff;
}

.billing-order-list > div,
.billing-order-table-header,
.billing-order-row {
  grid-template-columns: minmax(125px, 1fr) minmax(135px, 1.1fr) minmax(82px, 0.7fr) minmax(82px, 0.7fr) minmax(100px, 0.8fr) minmax(76px, 0.6fr) minmax(110px, auto);
  min-height: 48px;
  border-top: 1px solid #edf0f4;
  padding: 8px 10px;
}

.billing-order-list > .billing-order-table-header {
  border-top: 0;
  background: #f7f9fc;
}

.billing-order-table-header span {
  color: #667085;
  font-size: 10px;
  font-weight: 800;
}

.billing-order-row code {
  overflow: hidden;
  color: #475467;
  font-size: 10px;
  text-overflow: ellipsis;
}

.billing-order-amount {
  display: grid;
  gap: 3px;
}

.billing-order-amount small {
  color: #067647;
  font-size: 10px;
  font-weight: 700;
}

.billing-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.billing-order-actions .text-action {
  min-height: 28px;
  padding: 0 5px;
}

.billing-empty-state {
  padding: 24px !important;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.billing-ledger-header,
.billing-ledger-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(220px, 1.6fr) minmax(100px, 0.7fr) minmax(110px, 0.8fr) !important;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 9px 12px;
}

.billing-ledger-header {
  background: #f7f9fc;
}

.billing-ledger-header span {
  color: #667085;
  font-size: 10px;
  font-weight: 800;
}

.billing-ledger-row {
  border-top: 1px solid #edf0f4;
}

.billing-ledger-row > span:first-child {
  display: grid;
  gap: 3px;
}

.billing-ledger-row > span:first-child strong {
  color: #344054;
}

.billing-ledger-row > span,
.billing-ledger-row > em {
  overflow: hidden;
  color: #667085;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.billing-statement-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(150px, auto) minmax(120px, auto) auto;
  gap: 12px;
  align-items: end;
  padding: 18px 0;
}

.billing-statement-layout > div,
.billing-statement-layout label {
  display: grid;
  gap: 5px;
}

.billing-statement-layout span {
  color: var(--muted);
  font-size: 10px;
}

.billing-statement-layout strong {
  font-size: 17px;
}

.billing-statement-layout p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.invoice-planned-state {
  display: grid;
  gap: 9px;
  justify-items: start;
  padding: 24px 0;
}

.invoice-planned-state strong {
  font-size: 18px;
}

.invoice-planned-state p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.billing-order-detail-dialog {
  width: min(500px, 100vw);
  max-width: none;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  padding: 24px;
  background: #ffffff;
  box-shadow: -18px 0 48px rgba(16, 24, 40, 0.18);
}

.billing-order-detail-dialog::backdrop {
  background: rgba(16, 24, 40, 0.38);
}

.billing-order-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.billing-order-detail-heading > div {
  display: grid;
  gap: 4px;
}

.billing-order-detail-heading span {
  color: var(--muted);
  font-size: 10px;
}

.billing-order-detail-heading strong {
  font-size: 20px;
}

.billing-order-detail-body {
  padding-top: 18px;
}

.billing-order-detail-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-block: 1px solid var(--line);
}

.billing-order-detail-facts > div {
  min-width: 0;
  padding: 12px 8px;
}

.billing-order-detail-facts dt {
  color: var(--muted);
  font-size: 10px;
}

.billing-order-detail-facts dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.billing-order-timeline {
  margin-top: 22px;
}

.billing-order-timeline h3 {
  margin: 0 0 12px;
  font-size: 14px;
}

.billing-order-timeline ol {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.billing-order-timeline li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
}

.billing-order-timeline li i {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: #14866d;
}

.billing-order-timeline li div {
  display: grid;
  gap: 3px;
}

.billing-order-timeline li strong {
  font-size: 12px;
}

.billing-order-timeline li span,
.billing-settlement-note {
  color: var(--muted);
  font-size: 11px;
}

.billing-settlement-note {
  margin: 22px 0 0;
  border-left: 3px solid #8fb3df;
  padding: 10px 12px;
  background: #f3f8ff;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .plan-overview-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .plan-overview-strip > div:nth-child(4) {
    border-left: 0;
  }

  .plan-overview-strip > div:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

  .billing-filter-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .billing-filter-bar > div {
    grid-column: 1 / -1;
  }

  .billing-order-list {
    overflow-x: auto;
  }

  .billing-order-list > div {
    min-width: 900px;
  }
}

@media (max-width: 820px) {
  .plan-page {
    gap: 22px;
  }

  .plan-comparison {
    overflow: visible;
  }

  .plan-comparison-heading,
  .plan-comparison-table {
    min-width: 0;
  }

  .plan-panel-heading,
  .plan-chooser-heading,
  .billing-overview-heading,
  .plan-comparison-heading,
  .plan-overview-actions,
  .plan-choice-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .plan-overview-actions > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }

  .plan-overview-actions > div > :first-child {
    grid-column: 1 / -1;
  }

  .plan-overview-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-overview-strip > div:nth-child(odd) {
    border-left: 0;
  }

  .plan-overview-strip > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .public-plan-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .topup-package-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-plan-option {
    min-height: 0;
  }

  .plan-comparison-table {
    display: none;
  }

  .plan-comparison-mobile,
  .plan-comparison-mobile-tabs {
    display: grid;
  }

  .plan-comparison-mobile-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #ffffff;
  }

  .plan-comparison-mobile-tabs button {
    min-height: 36px;
    border: 0;
    border-right: 1px solid var(--line);
    background: transparent;
    color: #667085;
    font: inherit;
    font-size: 11px;
    font-weight: 760;
  }

  .plan-comparison-mobile-tabs button:last-child {
    border-right: 0;
  }

  .plan-comparison-mobile-tabs button[aria-selected="true"] {
    background: var(--primary);
    color: #ffffff;
  }

  .plan-comparison-mobile {
    border: 1px solid var(--line);
    border-bottom: 0;
    background: #ffffff;
  }

  .plan-comparison-mobile-row {
    display: grid;
    grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.2fr);
    border-bottom: 1px solid var(--line);
  }

  .plan-comparison-mobile-row > strong,
  .plan-comparison-mobile-row > .plan-feature-cell {
    padding: 11px;
  }

  .plan-comparison-mobile-row > strong {
    font-size: 11px;
  }

  .billing-overview-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .billing-overview-metrics p:nth-child(3) {
    border-left: 0;
  }

  .billing-overview-metrics p:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .billing-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .billing-filter-bar,
  .billing-filter-bar.compact,
  .billing-statement-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .billing-filter-bar > div,
  .billing-filter-bar button,
  .billing-statement-layout > div,
  .billing-statement-layout button {
    grid-column: 1 / -1;
  }

  .billing-order-list {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .billing-order-list > .billing-order-table-header {
    display: none;
  }

  .billing-order-list > .billing-empty-state,
  .billing-order-list > .billing-row-skeleton {
    width: 100%;
    min-width: 0;
  }

  .billing-order-list > div.billing-order-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 12px;
    min-width: 0;
    margin-bottom: 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 12px;
    background: #ffffff;
  }

  .billing-order-row > span:first-child,
  .billing-order-row > span:nth-child(5),
  .billing-order-row > code {
    grid-column: 1;
  }

  .billing-order-row > strong:nth-child(2),
  .billing-order-row > strong:nth-child(4),
  .billing-order-row > em,
  .billing-order-row > .billing-order-actions {
    grid-column: 2;
    justify-self: end;
  }

  .billing-order-row > .billing-order-actions {
    grid-row: 3 / span 2;
  }

  .billing-ledger {
    border: 0;
    background: transparent;
  }

  .billing-ledger > div.billing-ledger-header {
    display: none;
  }

  .billing-ledger > div.billing-ledger-row {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 7px 12px;
    margin-bottom: 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 12px;
    background: #ffffff;
  }

  .billing-ledger-row > span:nth-child(2) {
    grid-column: 1;
  }

  .billing-ledger-row > strong,
  .billing-ledger-row > em {
    grid-column: 2;
    justify-self: end;
  }

  .billing-order-detail-dialog {
    width: 100vw;
    padding: 18px;
  }

  .model-pricing-dialog {
    width: calc(100vw - 20px);
  }

  .model-pricing-list {
    padding-inline: 14px;
  }

  .model-pricing-row {
    grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr);
  }

  .model-pricing-row em {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
}

@media (max-width: 430px) {
  .plan-overview-strip,
  .billing-overview-metrics,
  .billing-filter-bar,
  .billing-filter-bar.compact,
  .billing-statement-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan-overview-strip > div,
  .plan-overview-strip > div:nth-child(odd),
  .billing-overview-metrics p,
  .billing-overview-metrics p:nth-child(3) {
    border-left: 0;
  }

  .plan-overview-strip > div:nth-child(n + 2),
  .billing-overview-metrics p:nth-child(n + 2) {
    border-top: 1px solid var(--line);
  }

  .plan-overview-actions > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan-overview-actions > div > :first-child {
    grid-column: 1;
  }

  .plan-comparison-mobile-row {
    grid-template-columns: minmax(96px, 0.75fr) minmax(0, 1.25fr);
  }

  .billing-order-detail-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .topup-package-group-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .topup-package-card {
    min-height: 0;
  }

  .topup-package-group-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 560px) {
  .workspace-model-panel > .panel-heading {
    flex-direction: column;
  }

  .workspace-model-panel > .panel-heading > div:first-child {
    width: 100%;
  }

  .workspace-model-heading-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .workspace-model-price-grid {
    grid-template-columns: 1fr 1fr;
  }

  .workspace-model-pagination {
    justify-content: center;
  }
}

/* 2026 user-first workspace */
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #08224d;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-140%);
  transition: transform 140ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid #0b63ce;
  outline-offset: 2px;
}

body.call-detail-open {
  overflow: hidden;
}

.menu-item {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 11px;
  border: 0;
  background: transparent;
  color: #475467;
  font-size: 14px;
}

.menu-item svg,
.workspace-model-search svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-item.active {
  background: var(--workspace-active);
  color: var(--workspace-active-text);
  box-shadow: none;
}

.app-view .panel {
  background: var(--workspace-surface);
  box-shadow: none;
}

.workspace-header .eyebrow {
  margin-bottom: 6px;
}

.focused-test-panel {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.overview-status-band {
  display: grid;
  grid-template-columns: 0.7fr 0.85fr 1.45fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
  box-shadow: none;
}

.overview-status-item {
  min-width: 0;
  padding: 20px 22px;
}

.overview-status-item + .overview-status-item {
  border-left: 1px solid var(--line);
}

.overview-status-item > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.overview-status-item > strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
}

.overview-status-item > p {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.overview-status-band .route-line {
  grid-column: 1 / -1;
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 12px 22px;
  background: #f8fafc;
}

.onboarding-panel {
  padding: 0;
  overflow: hidden;
  box-shadow: none;
}

.onboarding-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 15px;
}

.onboarding-heading h2 {
  margin: 0;
  font-size: 20px;
}

.onboarding-progress {
  height: 3px;
  background: #edf1f6;
}

.onboarding-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--primary);
  transition: width 180ms ease;
}

.onboarding-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 22px 24px;
  list-style: none;
}

.onboarding-steps li {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 10px;
  color: #667085;
}

.onboarding-steps li > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #cfd7e4;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

.onboarding-steps li > div {
  display: grid;
  gap: 5px;
}

.onboarding-steps strong {
  color: #344054;
  font-size: 13px;
}

.onboarding-steps em {
  font-size: 12px;
  font-style: normal;
}

.onboarding-steps li.complete > span {
  border-color: #14866d;
  background: #e9f8f2;
  color: #076b56;
}

.onboarding-steps li.next > span {
  border-color: var(--primary);
  background: #eaf2ff;
  color: var(--primary);
}

.onboarding-next-action {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 7px;
  border-left: 1px solid var(--line);
  padding: 22px 24px;
  background: var(--workspace-soft);
}

.onboarding-next-action > span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 820;
}

.onboarding-next-action > strong {
  font-size: 17px;
}

.onboarding-next-action > p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.onboarding-next-action .primary-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 5px;
  border-radius: 7px;
  padding: 0 16px;
  text-decoration: none;
}

.workspace-model-heading-actions {
  flex-wrap: wrap;
}

.workspace-model-search {
  position: relative;
  display: flex;
  width: min(260px, 100%);
  align-items: center;
  margin: 0;
}

.workspace-model-search svg {
  position: absolute;
  left: 12px;
  z-index: 1;
  color: #667085;
}

.workspace-model-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px 0 40px;
  background: #ffffff;
}

.workspace-model-filter-groups {
  grid-template-columns: minmax(180px, auto) minmax(320px, 1fr) auto;
  align-items: end;
}

.workspace-model-more-filters {
  align-self: end;
}

.workspace-model-more-filters > summary {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 13px;
  color: #475467;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  list-style: none;
}

.workspace-model-more-filters[open] {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.workspace-model-more-filters[open] > summary {
  margin-bottom: 10px;
}

.workspace-model-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workspace-model-skeleton {
  min-height: 312px;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: linear-gradient(90deg, #f4f6f9 25%, #e9edf3 37%, #f4f6f9 63%);
  background-size: 400% 100%;
  animation: workspace-skeleton 1.2s ease infinite;
}

.plan-option-skeleton,
.plan-comparison-skeleton,
.billing-row-skeleton,
.call-row-skeleton {
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: linear-gradient(90deg, #f4f6f9 25%, #e9edf3 37%, #f4f6f9 63%);
  background-size: 400% 100%;
  animation: workspace-skeleton 1.2s ease infinite;
}

.plan-option-skeleton { min-height: 330px; }
.plan-comparison-skeleton { min-height: 260px; }
.billing-row-skeleton { min-height: 48px; margin-top: 8px; }
.call-row-skeleton { min-height: 78px; }

.workspace-model-empty,
.workspace-model-filter-empty,
.user-audit-list > .empty-table {
  display: grid;
  justify-items: start;
  gap: 10px;
  min-height: 160px;
  align-content: center;
  border: 1px dashed #cfd7e4;
  border-radius: 8px;
  padding: 22px;
  background: #fbfcfe;
  color: var(--muted);
}

.workspace-model-filter-empty {
  min-height: 84px;
  margin-top: 14px;
}

.workspace-model-empty p,
.user-audit-list > .empty-table p {
  margin: 0;
  font-size: 13px;
}

.workspace-model-empty strong,
.user-audit-list > .empty-table strong {
  color: var(--ink);
  font-size: 16px;
}

.call-list-warning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@keyframes workspace-skeleton {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

.test-proof-side > summary {
  cursor: pointer;
  list-style: none;
}

.test-proof-side > summary::after {
  margin-left: auto;
  color: var(--primary);
  content: "展开";
  font-size: 12px;
  font-weight: 750;
}

.test-proof-side[open] > summary::after {
  content: "收起";
}

.test-proof-side > :not(summary) {
  margin-top: 12px;
}

.test-response-step .test-output.empty {
  min-height: 84px;
  max-height: 84px;
  display: grid;
  place-items: center;
  text-align: center;
}

.call-card {
  display: grid;
  grid-template-columns: 104px minmax(250px, 1.25fr) minmax(0, 2fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  padding: 12px 14px;
  box-shadow: none;
}

.call-media-slot {
  width: 104px;
  height: 72px;
  min-width: 104px;
}

.call-media-slot.is-empty {
  align-self: stretch;
  min-height: 72px;
}

.call-media-slot .encrypted-media-thumb {
  width: 100%;
  height: 100%;
  place-content: center;
  gap: 2px;
  padding: 6px 8px;
}

.call-media-slot .encrypted-media-thumb span,
.call-media-slot .encrypted-media-thumb strong,
.call-media-slot .encrypted-media-thumb small {
  white-space: nowrap;
}

.call-model-name {
  display: inline-flex;
  min-width: 0;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.call-model-name small {
  width: 100%;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 600;
}

.call-model-name .call-model-failure {
  color: var(--danger);
  font-weight: 700;
}

.call-model-name .call-model-pending {
  color: #b54708;
}

.call-media-slot .encrypted-media-thumb.has-preview {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
  background: #eaf2ff;
}

.encrypted-media-thumb-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.encrypted-media-thumb-overlay {
  position: absolute;
  right: 5px;
  bottom: 5px;
  max-width: calc(100% - 10px);
  overflow: hidden;
  border-radius: 4px;
  padding: 3px 5px;
  background: rgba(16, 24, 40, 0.78);
  color: #ffffff;
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.encrypted-media-thumb.is-loading::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(237, 244, 255, 0.86);
  color: #234e9b;
  content: "加载缩略图";
  font-size: 11px;
  font-weight: 750;
}

.call-card-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.call-card-identity > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.call-card-identity .call-status {
  flex: 0 0 auto;
}

.call-list-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.call-list-metrics p {
  min-width: 0;
  margin: 0;
}

.call-list-metrics span,
.call-list-metrics strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.call-list-metrics span {
  color: var(--muted);
  font-size: 12px;
}

.call-list-metrics strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
}

.call-card footer {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.call-card footer code {
  max-width: 126px;
  overflow: hidden;
  color: #667085;
  font-size: 11px;
  text-overflow: ellipsis;
}

.billing-ledger-model {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.billing-ledger-model strong,
.billing-ledger-model em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.billing-ledger-model strong {
  color: #344054;
  font-size: 12px;
}

.billing-ledger-model em {
  color: #667085;
  font-size: 11px;
  font-style: normal;
}

.call-proof-link {
  min-height: 38px;
  margin: 0;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  background: #eef4ff;
  color: var(--primary);
  cursor: pointer;
  font-weight: 760;
}

.call-detail-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(16, 24, 40, 0.38);
}

.call-detail-drawer {
  width: min(1120px, 88vw);
  height: 100dvh;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  padding: 26px 30px 32px;
  background: #ffffff;
  box-shadow: -18px 0 48px rgba(16, 24, 40, 0.18);
}

.call-detail-drawer > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.call-detail-drawer > header span {
  color: var(--muted);
  font-size: 12px;
}

.call-detail-drawer > header h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.call-detail-body {
  display: grid;
  gap: 16px;
  padding-top: 16px;
}

.call-detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-block: 1px solid var(--line);
}

.call-detail-facts > div {
  min-width: 0;
  padding: 12px 10px;
}

.call-detail-facts dt,
.call-detail-route > span {
  color: var(--muted);
  font-size: 12px;
}

.call-detail-facts dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.call-detail-route {
  display: grid;
  gap: 7px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.call-detail-route p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
}

.call-detail-route code {
  color: #667085;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.call-detail-route details {
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.call-detail-route summary {
  color: var(--primary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
}

.call-detail-route details dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  margin: 9px 0 0;
}

.call-detail-route details dl > div {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding: 8px 0;
}

.call-detail-route details dt,
.call-detail-route details dd {
  margin: 0;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.call-detail-route details dt {
  color: var(--muted);
}

.call-detail-route details dd {
  margin-top: 3px;
  color: var(--ink);
}

.call-failure-log {
  display: grid;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--danger) 24%, var(--line));
  border-radius: 8px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--danger) 5%, var(--panel));
}

.call-failure-log header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.call-failure-log header strong {
  color: var(--danger);
  font-size: 13px;
}

.call-failure-log header span {
  color: var(--muted);
  font-size: 11px;
}

.call-failure-log dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  margin: 0;
}

.call-failure-log dl > div {
  min-width: 0;
  border-top: 1px solid color-mix(in srgb, var(--danger) 12%, var(--line));
  padding: 8px 0;
}

.call-failure-log dt,
.call-failure-log dd {
  margin: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.call-failure-log dt {
  color: var(--muted);
}

.call-failure-log dd {
  margin-top: 3px;
  color: var(--ink);
  font-weight: 650;
}

.call-failure-log p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.call-detail-support {
  display: grid;
  gap: 18px;
  padding-top: 2px;
}

.call-detail-support .call-timeline summary {
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
}

.call-detail-support .call-timeline summary > em {
  white-space: normal;
}

.call-detail-support .call-timeline ol {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.call-detail-support .call-timeline li {
  padding-right: 0;
  padding-bottom: 13px;
}

.call-detail-support .call-timeline li:not(:last-child)::after {
  top: 25px;
  right: auto;
  bottom: 0;
  left: 11px;
  width: 1px;
  height: auto;
}

.call-decrypted-content {
  display: grid;
  gap: 16px;
  border: 1px solid #c9d8ee;
  padding: 20px;
  background: #f8fbff;
  color: #475467;
  font-size: 14px;
  line-height: 1.55;
}

.call-decrypted-content > span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.call-decrypted-content small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.call-decrypted-prompt {
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #d7e2f2;
  background: #ffffff;
  color: #344054;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.call-decrypted-message {
  display: grid;
  gap: 7px;
}

.call-decrypted-message > strong {
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.call-decrypted-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 330px));
  justify-content: start;
  gap: 14px;
}

.call-decrypted-media-grid figure {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #f8fafc;
}

.call-decrypted-media-trigger {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 250px;
  place-items: center;
  border: 0;
  padding: 0;
  background: #f1f5f9;
  cursor: zoom-in;
}

.call-decrypted-media-trigger.is-loading::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(241, 245, 249, 0.9);
  color: #475467;
  content: "";
  font-size: 12px;
  font-weight: 760;
  pointer-events: none;
}

.call-decrypted-media-loading {
  position: absolute;
  z-index: 1;
  color: #475467;
  font-size: 12px;
  font-weight: 760;
  pointer-events: none;
}

.call-decrypted-media-grid img,
.call-decrypted-media-grid video {
  display: block;
  width: 100%;
  min-height: 250px;
  max-height: 300px;
  object-fit: contain;
}

.call-decrypted-media-grid figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #ffffff;
  color: #475467;
  font-size: 12px;
  font-weight: 760;
}

.call-decrypted-media-grid figcaption > div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.call-decrypted-media-action {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.call-decrypted-media-action:hover,
.call-decrypted-media-action:focus-visible {
  text-decoration: underline;
}

.call-decrypted-media-error {
  margin: 0;
  padding: 18px 14px;
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.media-preview-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(16, 24, 40, 0.78);
}

.media-preview-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  border: 0;
  background: #ffffff;
}

.media-preview-dialog > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.media-preview-dialog > header span {
  color: var(--muted);
  font-size: 12px;
}

.media-preview-dialog > header h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 18px;
}

.media-preview-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.media-preview-download {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.media-preview-stage {
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: auto;
  padding: 20px;
  background: #101828;
}

.media-preview-content {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.media-preview-error {
  max-width: 420px;
  margin: 0;
  color: #d0d5dd;
  font-size: 14px;
  text-align: center;
}

body.media-preview-open {
  overflow: hidden;
}

.plan-comparison-section > summary {
  cursor: pointer;
  list-style: none;
}

.plan-comparison-toggle {
  color: var(--primary);
  font-size: 13px;
}

.plan-comparison-section[open] .plan-comparison-toggle {
  font-size: 0;
}

.plan-comparison-section[open] .plan-comparison-toggle::after {
  content: "收起对比";
  font-size: 13px;
}

.plan-page :where(p, li, em, small, label, td, th),
.plan-page .plan-feature-cell,
.plan-page .billing-order-row > *,
.plan-page .billing-ledger-row > * {
  font-size: 13px;
}

.workspace-toast-region {
  position: fixed;
  z-index: 120;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.workspace-toast {
  border: 1px solid #b8d9ce;
  border-radius: 7px;
  padding: 12px 14px;
  background: #effaf6;
  color: #075e4d;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.14);
  font-size: 13px;
  font-weight: 720;
}

@media (max-width: 1240px) {
  .workspace-model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .call-card {
    grid-template-columns: 104px minmax(210px, 0.9fr) minmax(0, 1.7fr) auto;
  }
}

@media (max-width: 900px) {
  .overview-status-band,
  .onboarding-layout {
    grid-template-columns: 1fr;
  }

  .overview-status-item + .overview-status-item,
  .onboarding-next-action {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .onboarding-steps {
    padding: 20px;
  }

  .workspace-model-filter-groups {
    grid-template-columns: 1fr;
  }

  .workspace-model-more-filters,
  .workspace-model-more-filters[open] {
    grid-column: 1;
  }

  .call-card {
    grid-template-columns: 104px minmax(0, 1fr) auto;
  }

  .call-list-metrics {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .call-card footer {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 760px) {
  .app-view {
    display: block;
    padding-bottom: 76px;
  }

  .sidebar {
    position: fixed;
    z-index: 50;
    inset: auto 0 0;
    display: block;
    width: 100%;
    height: 72px;
    border-top: 1px solid var(--line);
    border-right: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.98);
  }

  .sidebar-brand {
    display: none;
  }

  .sidebar .menu {
    display: grid;
    height: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 0;
  }

  .menu-item {
    display: grid;
    min-width: 0;
    min-height: 68px;
    place-content: center;
    justify-items: center;
    gap: 4px;
    border-radius: 0;
    padding: 4px 2px;
    font-size: 11px;
    text-align: center;
  }

  .menu-item svg {
    width: 21px;
    height: 21px;
  }

  .logout-button {
    position: fixed;
    z-index: 52;
    top: 10px;
    right: 12px;
    min-width: 64px;
    min-height: 42px;
    padding: 0 8px;
    font-size: 12px;
  }

  .main-panel {
    padding: 16px 14px;
  }

  .workspace-header {
    min-height: 48px;
    margin-bottom: 12px;
    padding-right: 70px;
  }

  .workspace-header .eyebrow,
  .header-actions {
    display: none;
  }

  .workspace-header h1 {
    font-size: 25px;
  }

  .panel {
    padding: 18px;
  }

  .overview-status-band,
  .onboarding-panel {
    padding: 0;
  }

  .overview-status-band .route-line {
    display: none;
  }

  .onboarding-steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .workspace-model-grid {
    grid-template-columns: 1fr;
  }

  .workspace-model-heading-actions,
  .workspace-model-search {
    width: 100%;
  }

  .test-workspace-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .test-result-side {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 20px;
    padding-left: 0;
  }

  .call-list-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .call-detail-drawer {
    width: 100vw;
    padding: 18px;
  }

  .call-decrypted-media-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .call-decrypted-media-trigger,
  .call-decrypted-media-grid img,
  .call-decrypted-media-grid video {
    min-height: 210px;
  }

  .workspace-toast-region {
    right: 16px;
    bottom: 88px;
  }
}

@media (max-width: 430px) {
  .overview-status-item {
    padding: 17px;
  }

  .call-card {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .call-media-slot {
    width: 72px;
    min-width: 72px;
    height: 54px;
  }

  .call-media-slot.is-empty {
    min-height: 54px;
  }

  .call-card-identity {
    align-items: flex-start;
  }

  .call-card-identity .call-status {
    display: none;
  }

  .call-card footer code {
    display: none;
  }

  .call-detail-facts {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.onboarding-progress i.progress-5, .usage-progress i.progress-5 { width: 5%; }
.onboarding-progress i.progress-10, .usage-progress i.progress-10 { width: 10%; }
.onboarding-progress i.progress-15, .usage-progress i.progress-15 { width: 15%; }
.onboarding-progress i.progress-20, .usage-progress i.progress-20 { width: 20%; }
.onboarding-progress i.progress-25, .usage-progress i.progress-25 { width: 25%; }
.onboarding-progress i.progress-30, .usage-progress i.progress-30 { width: 30%; }
.onboarding-progress i.progress-35, .usage-progress i.progress-35 { width: 35%; }
.onboarding-progress i.progress-40, .usage-progress i.progress-40 { width: 40%; }
.onboarding-progress i.progress-45, .usage-progress i.progress-45 { width: 45%; }
.onboarding-progress i.progress-50, .usage-progress i.progress-50 { width: 50%; }
.onboarding-progress i.progress-55, .usage-progress i.progress-55 { width: 55%; }
.onboarding-progress i.progress-60, .usage-progress i.progress-60 { width: 60%; }
.onboarding-progress i.progress-65, .usage-progress i.progress-65 { width: 65%; }
.onboarding-progress i.progress-70, .usage-progress i.progress-70 { width: 70%; }
.onboarding-progress i.progress-75, .usage-progress i.progress-75 { width: 75%; }
.onboarding-progress i.progress-80, .usage-progress i.progress-80 { width: 80%; }
.onboarding-progress i.progress-85, .usage-progress i.progress-85 { width: 85%; }
.onboarding-progress i.progress-90, .usage-progress i.progress-90 { width: 90%; }
.onboarding-progress i.progress-95, .usage-progress i.progress-95 { width: 95%; }
.onboarding-progress i.progress-100, .usage-progress i.progress-100 { width: 100%; }
