/* ═══════════════════════════════════════════════════════════════════════════
   芯宸智算 V8 End-State Golden Prototype Stylesheet (Apple-V7 Light Language)
   Inherits --ink, --muted, --blue, --canvas, --surface, --radius, --shadow
   ═══════════════════════════════════════════════════════════════════════════ */

/* 1. Header Runtime State Pill (纯净生产态 vs 沙箱样本预览) */
.v8-runtime-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(29, 131, 72, 0.24);
  background: rgba(29, 131, 72, 0.08);
  color: #156d3b;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.v8-runtime-pill:hover { background: rgba(29, 131, 72, 0.14); }
.v8-runtime-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1d8348;
  box-shadow: 0 0 0 3px rgba(29, 131, 72, 0.18);
}
.v8-runtime-pill.is-sandbox {
  border-color: rgba(178, 80, 0, 0.28);
  background: rgba(255, 159, 10, 0.12);
  color: #9a4400;
}
.v8-runtime-pill.is-sandbox i {
  background: #ff9f0a;
  box-shadow: 0 0 0 3px rgba(255, 159, 10, 0.22);
}

/* 2. 3D Factory Telemetry Badge & Showcase Toggle */
.v8-live-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
  background: rgba(29, 131, 72, 0.12);
  color: #18794e;
}
.v8-live-badge.is-showcase {
  background: rgba(255, 159, 10, 0.16);
  color: #b25000;
}
.f3-transport button.v8-f3-mode-btn,
.v8-f3-mode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(0, 113, 227, 0.28);
  background: rgba(0, 113, 227, 0.08);
  color: #0071e3;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s ease;
}
.v8-f3-mode-btn:hover { background: rgba(0, 113, 227, 0.15); }
.v8-f3-mode-btn[aria-pressed="true"] {
  border-color: rgba(178, 80, 0, 0.35);
  background: #fff4e5;
  color: #9a4400;
}

/* 3. 8-Modality Filter Bar & Evidence Badges */
.v8-modality-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 6px 20px rgba(0, 0, 0, 0.04);
}
.v8-modality-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #f5f5f7;
  color: #424245;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
}
.v8-modality-pill:hover { background: #ebebef; color: #1d1d1f; }
.v8-modality-pill.active {
  background: #0071e3;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.25);
}
.v8-modality-pill small {
  font-size: 11px;
  opacity: 0.78;
}
.v8-ev-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.v8-ev-badge.verified { background: #e8f7ee; color: #166e3d; }
.v8-ev-badge.sampled { background: #e8f2ff; color: #005bb5; }
.v8-ev-badge.declared { background: #f2f2f5; color: #6e6e73; }

/* 4. Live Multi-Model Streaming Arena & Monaco-Style Diff */
.v8-arena-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.v8-arena-controls {
  background: #ffffff;
  border-radius: 20px;
  padding: 22px 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 28px rgba(0,0,0,.05);
}
.v8-arena-toprow {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.v8-arena-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.v8-slot-card {
  background: #f5f5f7;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(0,0,0,0.05);
}
.v8-slot-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #6e6e73;
}
.v8-arena-grid {
  display: grid;
  grid-template-columns: repeat(var(--arena-cols, 2), minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 980px) {
  .v8-arena-grid { grid-template-columns: 1fr; }
}
.v8-stream-col {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.v8-stream-head {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.v8-stream-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px 18px;
  background: #fbfbfd;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 12px;
}
.v8-stream-metrics div span { display: block; color: #6e6e73; font-size: 11px; }
.v8-stream-metrics div strong { font-variant-numeric: tabular-nums; color: #1d1d1f; font-size: 13px; }
.v8-stream-body {
  padding: 16px 18px;
  min-height: 250px;
  max-height: 400px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.68;
  color: #1d1d1f;
  white-space: pre-wrap;
  background: #ffffff;
}
.v8-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: #0071e3;
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: v8Blink .8s step-end infinite;
}
@keyframes v8Blink { 50% { opacity: 0; } }
.v8-stream-foot {
  padding: 12px 18px;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: #fbfbfd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* Monaco-style Dual Diff Card */
.v8-diff-card {
  background: #16181d;
  color: #e6edf3;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.v8-diff-head {
  padding: 14px 20px;
  background: #1f232b;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.v8-diff-table {
  width: 100%;
  border-collapse: collapse;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
}
.v8-diff-table td {
  padding: 3px 12px;
  vertical-align: top;
  white-space: pre-wrap;
  word-break: break-word;
}
.v8-diff-ln { width: 38px; color: #7d8590; text-align: right; user-select: none; border-right: 1px solid rgba(255,255,255,0.06); }
.v8-diff-add { background: rgba(46, 160, 67, 0.20); color: #aff5b4; }
.v8-diff-del { background: rgba(248, 81, 73, 0.20); color: #ffdcd7; }
.v8-diff-same { color: #c9d1d9; }

/* 5. V8 Workspace Pages Shared Apple-V7 Layout */
.v8-ws-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 0 56px;
}
.v8-ws-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}
.v8-ws-head h1 {
  font-size: 30px;
  letter-spacing: -0.02em;
  margin: 4px 0 6px;
  color: #1d1d1f;
}
.v8-ws-head p {
  margin: 0;
  color: #6e6e73;
  font-size: 14.5px;
  max-width: 680px;
}
.v8-ws-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: #0071e3;
  letter-spacing: 0.02em;
}
.v8-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
@media (max-width: 960px) {
  .v8-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.v8-kpi {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 8px 24px rgba(0,0,0,.04);
}
.v8-kpi span { display: block; font-size: 12.5px; color: #6e6e73; margin-bottom: 8px; }
.v8-kpi strong { display: block; font-size: 25px; font-weight: 700; color: #1d1d1f; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.v8-kpi small { display: block; margin-top: 6px; font-size: 12px; color: #6e6e73; }
.v8-kpi strong.is-green { color: #166e3d; }
.v8-kpi strong.is-blue { color: #0071e3; }
.v8-kpi strong.is-warn { color: #b25000; }

.v8-panel {
  background: #ffffff;
  border-radius: 20px;
  padding: 22px 24px;
  border: 1px solid rgba(0,0,0,0.055);
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 8px 26px rgba(0,0,0,.04);
  margin-bottom: 20px;
}
.v8-panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.v8-panel-head h2 { margin: 0; font-size: 18px; color: #1d1d1f; }
.v8-panel-head p { margin: 4px 0 0; font-size: 13px; color: #6e6e73; }

.v8-split-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}
@media (max-width: 900px) { .v8-split-2 { grid-template-columns: 1fr; } }

.v8-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.v8-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: #424245;
}
.v8-field input, .v8-field select, .v8-field textarea {
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 13.5px;
  background: #fbfbfd;
  color: #1d1d1f;
}
.v8-field input:focus, .v8-field select:focus, .v8-field textarea:focus {
  outline: 2px solid rgba(0, 113, 227, 0.35);
  border-color: #0071e3;
  background: #ffffff;
}

/* 6. Trace Span Waterfall Flamegraph (#logs) */
.v8-waterfall {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding: 14px 16px;
  background: #f5f5f7;
  border-radius: 14px;
}
.v8-span-row {
  display: grid;
  grid-template-columns: 260px 1fr 76px;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
}
@media (max-width: 720px) { .v8-span-row { grid-template-columns: 1fr; } }
.v8-span-track {
  height: 10px;
  background: rgba(0,0,0,0.06);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}
.v8-span-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: #0071e3;
}
.v8-span-bar.cache { background: #1d8348; }
.v8-span-bar.warn { background: #ff9f0a; }
.v8-span-bar.fail { background: #c9342b; }

/* 7. Canary Weight Stepper */
.v8-canary-steps {
  display: inline-flex;
  background: #f5f5f7;
  padding: 3px;
  border-radius: 999px;
  gap: 2px;
}
.v8-canary-steps button {
  border: 0;
  background: transparent;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #6e6e73;
  cursor: pointer;
}
.v8-canary-steps button.active {
  background: #0071e3;
  color: #ffffff;
}

/* Dark Code Card WCAG High-Contrast Guarantee */
.v8-dark-code {
  background: #14161b;
  color: #f0f6fc;
  padding: 18px 20px;
  border-radius: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.65;
  overflow-x: auto;
  margin: 0;
}
/* ═══════════════════════════════════════════════════════════════════════════
   芯宸智算 v2.1 Production-Hardened Stylesheet Extensions (Apple-V7 Light)
   ═══════════════════════════════════════════════════════════════════════════ */

.v21-dropzone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1.5px dashed rgba(0, 113, 227, 0.34);
  background: #f7fbff;
  transition: border-color .16s ease, background .16s ease;
}
.v21-dropzone:hover {
  border-color: #0071e3;
  background: #eef6ff;
}
.v21-file-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: #1d1d1f;
}
.v21-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,0.08);
  background: #ffffff;
}
.v21-cipher-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #eef4ff;
  color: #005bb5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.v21-obs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 920px) {
  .v21-obs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.v21-obs-card {
  background: #f5f5f7;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,0.05);
}
.v21-obs-card span {
  display: block;
  font-size: 11.5px;
  color: #6e6e73;
  margin-bottom: 4px;
}
.v21-obs-card strong {
  display: block;
  font-size: 16px;
  color: #1d1d1f;
  font-variant-numeric: tabular-nums;
}
.v21-obs-card small {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: #166e3d;
}
.v21-s3-box {
  padding: 16px;
  border-radius: 14px;
  background: #f5f5f7;
  border: 1px solid rgba(0,0,0,0.07);
  margin: 12px 0;
  font-size: 12.5px;
}
.v21-s3-box dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 0;
}
.v21-s3-box dt { color: #6e6e73; font-size: 11px; }
.v21-s3-box dd { margin: 2px 0 0; font-weight: 600; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }

.v22-olap-box {
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.v22-olap-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.v22-olap-head strong {
  font-size: 14px;
  color: #1d1d1f;
}
.v22-seal-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #e8f7ee;
  color: #166e3d;
  border: 1px solid rgba(22, 110, 61, 0.2);
}
.v22-batch-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #eef4ff;
  color: #005bb5;
}
.v22-batch-pill.offpeak {
  background: #e8f7ee;
  color: #166e3d;
}

/* 1. Eliminate orphan-character button wraps & unstyled password inputs */
.btn,
.co-button {
  white-space: nowrap;
  flex-shrink: 0;
}
.btn.full {
  width: 100%;
  justify-content: center;
}
.v30-head-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .v30-head-actions { width: 100%; flex-wrap: wrap; }
  .btn, .co-button { white-space: nowrap; }
}

input[type="password"] {
  border: 1px solid #ccdbea;
  background-color: #ffffff;
  color: #1d1d1f;
  border-radius: 10px;
  min-height: 44px;
  padding: 9px 12px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}
input[type="password"]:focus {
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.14);
  outline: none;
}

/* 2. Remove legacy V5 top-right corner bracket artifact on model cards & unify Apple-V8 card radius */
.model-card {
  border-radius: 18px !important;
  border-color: rgba(0, 0, 0, 0.07) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 8px 24px rgba(0, 0, 0, 0.04) !important;
}
.model-card::after,
.model-card::before {
  content: none !important;
  display: none !important;
}
.endpoint-row {
  grid-template-columns: minmax(200px, 1.8fr) auto auto auto !important;
  gap: 16px !important;
  align-items: center !important;
}
@media (max-width: 720px) {
  .endpoint-row { grid-template-columns: 1fr 1fr !important; }
}

/* 3. Form grid alignment for #partners & #catalog-admin */
.v8-field > span {
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#v8-price-pub-form {
  grid-template-columns: minmax(280px, 2fr) repeat(3, minmax(130px, 1fr)) auto;
  align-items: end;
}
@media (max-width: 1080px) {
  #v8-price-pub-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.v30-partner-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px 16px;
  align-items: end;
}
.v30-partner-grid .v30-form-submit-cell {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}
.v30-partner-grid .v30-form-submit-cell .btn {
  width: auto !important;
  min-width: 220px;
}
@media (max-width: 760px) {
  .v30-partner-grid { grid-template-columns: 1fr; }
  .v30-partner-grid .v30-form-submit-cell .btn { width: 100% !important; }
}

/* 4. Compact 4-column Arena metrics so labels never wrap awkwardly */
.v8-stream-metrics div span,
.v8-stream-metrics div strong {
  white-space: nowrap;
}

/* 5. Harmonize #economics (.co-root) legacy V6 green/mint into Apple-V8 Slate & Blue */
.co-root,
.co-supply-section {
  --co-ink: #1d1d1f;
  --co-muted: #6e6e73;
  --co-line: rgba(0, 0, 0, 0.07);
  --co-green: #0071e3;
  --co-mint: #dcebff;
}
.co-header-kicker,
.co-overline {
  color: #0071e3 !important;
}
.co-live-square {
  background: #0071e3 !important;
  border-radius: 50% !important;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.14) !important;
}
.co-card,
.co-context-bar,
.co-request-card,
.co-supply-card,
.co-simulator-inputs,
.co-sim-result {
  border-radius: 18px !important;
  border-color: rgba(0, 0, 0, 0.065) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 8px 24px rgba(0, 0, 0, 0.04) !important;
}
.co-sim-result {
  background: #fbfbfd !important;
}
.co-button {
  border-radius: 999px !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #1d1d1f !important;
  background: #ffffff !important;
  padding: 0 18px !important;
}
.co-button:hover {
  background: #f5f5f7 !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
}
.co-button-primary {
  background: #0071e3 !important;
  border-color: #0071e3 !important;
  color: #ffffff !important;
}
.co-button-primary:hover {
  background: #0062c4 !important;
  border-color: #0062c4 !important;
}
.co-button-light {
  background: #eef5ff !important;
  border-color: rgba(0, 113, 227, 0.22) !important;
  color: #005bb5 !important;
}
.co-ledger-hero {
  background: radial-gradient(ellipse at 95% 0%, rgba(0, 113, 227, 0.28) 0%, transparent 52%), linear-gradient(125deg, #14171f, #1c2230 62%, #171c26) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  color: #f5f7fa !important;
}
.co-ledger-hero h2,
.co-ledger-hero .co-metric > strong {
  color: #f5f7fa !important;
}
.co-ledger-hero .co-section-top p,
.co-metric > span,
.co-metric > small {
  color: #b4c2d6 !important;
}
.co-ledger-hero .co-metric-highlight > strong {
  color: #7cc0ff !important;
}
.co-flow-strip {
  background: rgba(255, 255, 255, 0.04) !important;
  border-top-color: rgba(255, 255, 255, 0.09) !important;
}
.co-flow-strip i {
  background: rgba(124, 192, 255, 0.16) !important;
  border-color: rgba(124, 192, 255, 0.42) !important;
  color: #d4e9ff !important;
}
.co-flow-strip b { color: #f0f6fc !important; }
.co-flow-strip small { color: #9fb0c7 !important; }
.co-chip-outline {
  color: #005bb5 !important;
  border-color: rgba(0, 113, 227, 0.2) !important;
  background: #eef5ff !important;
  border-radius: 999px !important;
}
.co-empty-symbol {
  background: #eef5ff !important;
  color: #0071e3 !important;
}

/* 6. Audit & Sidebar Account Controls */
.v30-audit-banner {
  background: #eef5ff !important;
  color: #1d3a6d !important;
  border: 1px solid rgba(0, 113, 227, 0.18);
  border-radius: 14px;
}
.workspace-box[data-v30-auth-open] {
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.workspace-box[data-v30-auth-open]:hover {
  background: rgba(0, 113, 227, 0.06);
  border-color: rgba(0, 113, 227, 0.24);
}
.v30-sidebar-auth-btn {
  border: 0;
  background: rgba(0, 113, 227, 0.09);
  color: #005bb5;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.v30-sidebar-auth-btn:hover {
  background: rgba(0, 113, 227, 0.16);
}

/* 7. Enterprise Auth & Self-Service Onboarding Center (#login & Modal) */
.v30-auth-shell {
  display: grid;
  grid-template-columns: minmax(300px, 1.05fr) minmax(360px, 480px);
  gap: 36px;
  align-items: center;
  max-width: 1040px;
  margin: 18px auto 36px;
}
@media (max-width: 900px) {
  .v30-auth-shell { grid-template-columns: 1fr; gap: 24px; }
}
.v30-auth-pitch h1 {
  font-size: 34px;
  letter-spacing: -0.025em;
  margin: 8px 0 12px;
  color: #1d1d1f;
}
.v30-auth-pitch p {
  font-size: 15px;
  line-height: 1.7;
  color: #6e6e73;
  margin: 0 0 22px;
}
.v30-pitch-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.v30-pitch-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #424245;
}
.v30-pitch-list li svg {
  color: #0071e3;
  flex-shrink: 0;
  margin-top: 2px;
}
.v30-auth-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 26px 28px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 18px 44px rgba(0, 0, 0, 0.07);
}
.v30-auth-card.is-modal {
  padding: 4px 2px 2px;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.v30-auth-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}
.v30-auth-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #eef5ff;
  color: #0071e3;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.v30-auth-brand strong {
  display: block;
  font-size: 15px;
  color: #1d1d1f;
}
.v30-auth-brand p {
  margin: 3px 0 0;
  font-size: 12px;
  color: #6e6e73;
  line-height: 1.5;
}
.v30-auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  background: #f5f5f7;
  border-radius: 12px;
  margin-bottom: 18px;
}
.v30-auth-tabs button {
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: #6e6e73;
  cursor: pointer;
  white-space: nowrap;
}
.v30-auth-tabs button.active {
  background: #ffffff;
  color: #1d1d1f;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.v30-auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.v30-auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}
.v30-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #424245;
  cursor: pointer;
}
.v30-check input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  accent-color: #0071e3;
}
.v30-auth-hint {
  margin: 0;
  font-size: 12px;
  color: #6e6e73;
  line-height: 1.6;
  background: #f5f5f7;
  padding: 10px 12px;
  border-radius: 10px;
}
.v30-totp-banner {
  background: #eef5ff;
  border: 1px solid rgba(0, 113, 227, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
}
.v30-totp-banner strong {
  display: block;
  font-size: 13px;
  color: #005bb5;
  margin-bottom: 4px;
}
.v30-totp-banner p {
  margin: 0;
  font-size: 12px;
  color: #424245;
  line-height: 1.55;
}
.v30-auth-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.v30-session-box {
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f5f5f7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.v30-session-box span {
  display: block;
  font-size: 11px;
  color: #6e6e73;
}
.v30-session-box strong {
  display: block;
  font-size: 13px;
  color: #1d1d1f;
  margin-top: 2px;
}

@media (max-width: 640px) {
  .v30-auth-shell { grid-template-columns: minmax(0, 1fr); }
  .v30-auth-card { min-width: 0; padding: 22px 16px; }
  .v30-auth-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v30-auth-tabs button { padding-inline: 3px; font-size: 12px; white-space: nowrap; }
  .v30-auth-actions, .v30-session-box, .v8-ws-head, .v8-panel-head { flex-wrap: wrap; }
  .v30-auth-actions .btn { max-width: 100%; }
  .v8-ws-head > div, .v8-panel-head > div { min-width: 0; max-width: 100%; }
}

.v30-chart-box {
  background: #fbfbfd;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.v30-chart-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.v30-chart-head strong {
  font-size: 13.5px;
  color: #1d1d1f;
}
.v30-svg-chart {
  width: 100%;
  height: auto;
  display: block;
}
.v30-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: #6e6e73;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.v30-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.v30-chart-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.v30-chart-legend strong {
  color: #1d1d1f;
  font-variant-numeric: tabular-nums;
}
.v30-ring-layout {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 0;
}
.v30-attr-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: grid;
  gap: 8px;
}
.v30-attr-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  padding: 6px 10px;
  background: #ffffff;
  border-radius: 9px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.v30-chart-empty {
  padding: 28px 18px;
  text-align: center;
  background: #ffffff;
  border-radius: 12px;
  border: 1px dashed rgba(0, 0, 0, 0.1);
}
.v30-chart-empty strong {
  display: block;
  font-size: 13.5px;
  color: #1d1d1f;
  margin-bottom: 6px;
}
.v30-chart-empty p {
  margin: 0;
  font-size: 12px;
  color: #6e6e73;
  line-height: 1.6;
}
.v30-elastic-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px 16px;
  align-items: end;
}
.v30-elastic-grid .v30-form-submit-cell {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}
@media (max-width: 760px) {
  .v30-elastic-grid { grid-template-columns: 1fr; }
  .v30-elastic-grid .v30-form-submit-cell .btn { width: 100% !important; }
}

.v30-chart-box, .v30-ring-layout, .v30-attr-list {min-width:0}
.v30-attr-list li {gap:8px;flex-wrap:wrap;overflow-wrap:anywhere}
.v30-form-card {padding:18px;background:#fbfbfd;display:flex;flex-direction:column;gap:12px;min-width:0}
.v30-retention-actions {display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#v30-retention-select {min-height:38px;padding:0 12px;border-radius:999px;border:1px solid rgba(0,0,0,.14);background:white;font-size:13px;font-weight:600}
