:root {
  color-scheme: light;
  --op-bg: #f5f7f8;
  --op-surface: #ffffff;
  --op-surface-2: #eef2f3;
  --op-line: #d9e0e2;
  --op-line-strong: #bbc7ca;
  --op-text: #172125;
  --op-muted: #66767c;
  --op-accent: #087d86;
  --op-accent-hover: #066970;
  --op-accent-soft: #e0f2f3;
  --op-green: #18734d;
  --op-green-soft: #e3f3ea;
  --op-amber: #9b5c05;
  --op-amber-soft: #fff1d6;
  --op-red: #b13b34;
  --op-red-soft: #fae8e6;
  --op-ink: #11191c;
  --op-sidebar: #182327;
  --op-sidebar-text: #dce5e7;
  --op-shadow: 0 8px 28px rgba(22, 37, 42, 0.08);
  --op-radius: 6px;
  --op-sidebar-width: 232px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--op-bg); }
body { margin: 0; color: var(--op-text); background: var(--op-bg); font-size: 14px; letter-spacing: 0; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.op-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.op-button,
.op-icon-button {
  min-height: 36px;
  border: 1px solid var(--op-line-strong);
  border-radius: var(--op-radius);
  background: var(--op-surface);
  color: var(--op-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  font-weight: 650;
}
.op-button:hover, .op-icon-button:hover { border-color: var(--op-accent); color: var(--op-accent); }
.op-button:disabled, .op-icon-button:disabled { cursor: not-allowed; opacity: 0.55; }
.op-button--primary { color: #fff; border-color: var(--op-accent); background: var(--op-accent); }
.op-button--primary:hover { color: #fff; border-color: var(--op-accent-hover); background: var(--op-accent-hover); }
.op-button--danger { color: var(--op-red); border-color: #e4aaa5; background: #fff; }
.op-button--quiet { border-color: transparent; background: transparent; }
.op-button--small { min-height: 30px; padding: 0 10px; font-size: 12px; }
.op-icon-button { width: 36px; padding: 0; }
.op-icon-button svg, .op-button svg, .op-nav-item svg { width: 17px; height: 17px; flex: 0 0 auto; }
.op-notification-button { position: relative; }
.op-notification-button > span {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--op-red);
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

.op-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid var(--op-line);
  border-radius: 999px;
  background: var(--op-surface-2);
  color: var(--op-muted);
  font-size: 12px;
  font-weight: 650;
}
.op-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.op-chip--ok { color: var(--op-green); background: var(--op-green-soft); border-color: #b8ddc8; }
.op-chip--warn { color: var(--op-amber); background: var(--op-amber-soft); border-color: #efd19d; }
.op-chip--bad { color: var(--op-red); background: var(--op-red-soft); border-color: #edbbb7; }
.op-chip--plain::before { display: none; }

.op-shell { min-height: 100vh; display: grid; grid-template-columns: var(--op-sidebar-width) minmax(0, 1fr); }
.op-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  width: var(--op-sidebar-width);
  display: flex;
  flex-direction: column;
  background: var(--op-sidebar);
  color: var(--op-sidebar-text);
  border-right: 1px solid #26373c;
}
.op-brand { height: 64px; padding: 0 18px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid #2b3a3f; }
.op-brand__mark { width: 31px; height: 31px; border-radius: 5px; display: grid; place-items: center; background: #e8f4f4; color: #096d75; font-weight: 850; }
.op-brand strong { display: block; color: #fff; font-size: 15px; }
.op-brand small { display: block; color: #92a6ac; margin-top: 2px; font-size: 11px; }
.op-nav { flex: 1; overflow-y: auto; padding: 14px 10px; }
.op-nav__label { margin: 13px 9px 6px; color: #83979d; font-size: 10px; font-weight: 750; text-transform: uppercase; }
.op-nav-item { width: 100%; min-height: 39px; border: 0; border-radius: 5px; padding: 0 10px; display: flex; align-items: center; gap: 10px; color: #b9c8cc; background: transparent; text-align: left; font-weight: 620; }
.op-nav-item:hover { color: #fff; background: #243439; }
.op-nav-item.is-active { color: #fff; background: #0a747c; }
.op-sidebar__footer { padding: 12px; border-top: 1px solid #2b3a3f; }
.op-sidebar-account { width: 100%; border: 0; border-radius: 5px; padding: 9px; background: #223237; color: #fff; display: grid; grid-template-columns: 30px minmax(0,1fr) 16px; align-items: center; gap: 9px; text-align: left; }
.op-sidebar-account span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #dbe9e9; color: #145e64; font-size: 11px; font-weight: 800; }
.op-sidebar-account strong, .op-sidebar-account small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-sidebar-account small { color: #92a6ac; margin-top: 2px; font-size: 11px; }

.op-main { grid-column: 2; min-width: 0; }
.op-topbar { position: sticky; top: 0; z-index: 40; height: 64px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--op-line); }
.op-topbar__title { min-width: 0; }
.op-topbar__title small { display: block; color: var(--op-muted); font-size: 11px; }
.op-topbar__title strong { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.op-topbar__actions { display: flex; align-items: center; gap: 8px; }
.op-mobile-menu { display: none; }
.op-balance { min-height: 34px; padding: 0 10px; border-left: 1px solid var(--op-line); display: flex; align-items: center; gap: 8px; }
.op-balance span { color: var(--op-muted); font-size: 11px; }
.op-balance strong { color: var(--op-green); }
.op-content { min-width: 0; padding: 20px 22px 48px; }
.op-subnav { display: flex; gap: 3px; margin: -2px 0 18px; padding-bottom: 8px; overflow-x: auto; border-bottom: 1px solid var(--op-line); }
.op-subnav button { flex: 0 0 auto; min-height: 34px; border: 0; border-radius: 4px; padding: 0 12px; background: transparent; color: var(--op-muted); font-weight: 650; }
.op-subnav button:hover { color: var(--op-text); background: var(--op-surface-2); }
.op-subnav button.is-active { color: var(--op-accent); background: var(--op-accent-soft); }

.op-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.op-page-head h1 { margin: 0; font-size: 22px; line-height: 1.25; }
.op-page-head p { margin: 5px 0 0; color: var(--op-muted); line-height: 1.6; }
.op-page-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.op-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.op-metric { min-width: 0; padding: 15px 16px; background: var(--op-surface); border: 1px solid var(--op-line); border-radius: var(--op-radius); }
.op-metric span { display: block; color: var(--op-muted); font-size: 12px; }
.op-metric strong { display: block; margin-top: 10px; font-size: 22px; line-height: 1; overflow-wrap: anywhere; }
.op-metric small { display: block; margin-top: 8px; color: var(--op-muted); }
.op-metric--good strong { color: var(--op-green); }
.op-metric--warn strong { color: var(--op-amber); }

.op-panel { background: var(--op-surface); border: 1px solid var(--op-line); border-radius: var(--op-radius); margin-bottom: 16px; overflow: hidden; }
.op-panel__head { min-height: 51px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--op-line); }
.op-panel__head strong { display: block; }
.op-panel__head small { display: block; color: var(--op-muted); margin-top: 3px; }
.op-panel__body { padding: 15px; }
.op-panel__body--flush { padding: 0; }
.op-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.op-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.op-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--op-line); background: #fafbfb; }
.op-toolbar .op-field { margin: 0; }
.op-toolbar__spacer { flex: 1; }

.op-field { display: grid; gap: 6px; margin-bottom: 13px; }
.op-field > span { color: #44545a; font-size: 12px; font-weight: 650; }
.op-field input, .op-field select, .op-field textarea,
.op-input, .op-select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--op-line-strong);
  border-radius: 5px;
  background: #fff;
  color: var(--op-text);
  outline: 0;
}
.op-field textarea { min-height: 112px; resize: vertical; line-height: 1.55; }
.op-field input:focus, .op-field select:focus, .op-field textarea:focus, .op-input:focus, .op-select:focus { border-color: var(--op-accent); box-shadow: 0 0 0 3px rgba(8,125,134,0.11); }
.op-field small { color: var(--op-muted); line-height: 1.5; }
.op-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.op-field--span { grid-column: 1 / -1; }
.op-checks { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.op-check { display: inline-flex; align-items: center; gap: 7px; color: #405158; }
.op-check input { accent-color: var(--op-accent); }
.op-model-access-grid { margin: 4px 0 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.op-model-access-grid .op-check { min-width: 0; align-items: flex-start; }
.op-model-access-grid .op-check span { min-width: 0; display: grid; gap: 2px; }
.op-model-access-grid .op-check small { color: var(--op-muted); overflow-wrap: anywhere; }
.op-model-access-grid.is-disabled, .op-model-route-list.is-disabled { opacity: .55; }
.op-product-identity { margin-bottom: 14px; padding-bottom: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; border-bottom: 1px solid var(--op-line); }
.op-product-identity strong { font-size: 15px; }
.op-product-identity code { grid-column: 1; color: #245e65; overflow-wrap: anywhere; }
.op-product-identity span { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--op-muted); }
.op-model-route-list { display: grid; gap: 8px; }
.op-model-route { padding: 10px; display: grid; grid-template-columns: minmax(130px, .7fr) minmax(220px, 1.5fr) minmax(100px, .5fr); align-items: end; gap: 10px; border: 1px solid var(--op-line); border-radius: 6px; background: #fbfcfc; }
.op-model-route .op-toggle { min-height: 38px; align-self: end; }
.op-model-route .op-field { margin: 0; }
.op-toggle { display: inline-flex; align-items: center; gap: 9px; }
.op-toggle input { width: 34px; height: 18px; accent-color: var(--op-accent); }

.op-table-wrap { overflow: auto; }
.op-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.op-table th, .op-table td { padding: 10px 12px; border-bottom: 1px solid var(--op-line); text-align: left; vertical-align: middle; }
.op-table th { position: sticky; top: 0; z-index: 1; background: #f0f4f5; color: #4c5d63; font-size: 11px; font-weight: 750; white-space: nowrap; }
.op-table tr:last-child td { border-bottom: 0; }
.op-table tbody tr:hover { background: #f8fafb; }
.op-table td { color: #34444a; }
.op-table code { font-size: 12px; color: #245e65; overflow-wrap: anywhere; }
.op-table-actions { display: flex; gap: 6px; white-space: nowrap; }
.op-pagination { min-height: 48px; padding: 8px 12px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--op-line); color: var(--op-muted); }

.op-state { min-height: 220px; padding: 32px 20px; display: grid; place-items: center; text-align: center; }
.op-state__inner { max-width: 430px; }
.op-state svg { width: 30px; height: 30px; color: var(--op-muted); }
.op-state strong { display: block; margin-top: 10px; font-size: 15px; }
.op-state p { margin: 7px 0 14px; color: var(--op-muted); line-height: 1.6; }
.op-alert { padding: 10px 12px; margin-bottom: 12px; border: 1px solid #efd19d; border-radius: 5px; background: var(--op-amber-soft); color: #714507; line-height: 1.55; }
.op-alert--error { border-color: #edbbb7; background: var(--op-red-soft); color: #7b2925; }
.op-alert--success { border-color: #b8ddc8; background: var(--op-green-soft); color: #185a3f; }

.op-notification-list { display: grid; gap: 0; margin: -15px; }
.op-notification-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; padding: 13px 15px; border-bottom: 1px solid var(--op-line); }
.op-notification-item:last-child { border-bottom: 0; }
.op-notification-item.is-unread { background: #f3f9f9; }
.op-notification-item > svg { width: 18px; height: 18px; margin-top: 2px; color: var(--op-accent); }
.op-notification-item strong, .op-notification-item small { display: block; }
.op-notification-item p { margin: 5px 0 0; color: var(--op-muted); line-height: 1.55; }
.op-notification-item time { color: var(--op-muted); font-size: 11px; white-space: nowrap; }

.op-payment-channels { display: grid; gap: 9px; margin-bottom: 14px; }
.op-payment-channel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: 11px; border: 1px solid var(--op-line); border-radius: 6px; background: #fff; cursor: pointer; }
.op-payment-channel:has(input:checked) { border-color: var(--op-accent); box-shadow: 0 0 0 2px rgba(8,125,134,.08); }
.op-payment-channel > input { margin-top: 3px; accent-color: var(--op-accent); }
.op-payment-channel__main { min-width: 0; display: grid; gap: 4px; }
.op-payment-channel__main strong, .op-payment-channel__main small, .op-payment-channel__main span { display: block; }
.op-payment-channel__main small, .op-payment-channel__main span, .op-payment-channel__main p { color: var(--op-muted); font-size: 12px; line-height: 1.5; }
.op-payment-channel__main p { margin: 2px 0 0; }
.op-payment-channel__main code { width: fit-content; max-width: 100%; padding: 3px 6px; border-radius: 4px; background: var(--op-surface-2); color: #245e65; overflow-wrap: anywhere; }
.op-payment-channel > img { width: 88px; height: 88px; object-fit: contain; border: 1px solid var(--op-line); background: #fff; }

.op-code { margin: 0; padding: 14px; overflow: auto; border-radius: 5px; background: #11191c; color: #d9e8e9; font: 12px/1.7 Consolas, "SFMono-Regular", monospace; white-space: pre; }
.op-code-toolbar { display: flex; justify-content: flex-end; margin-bottom: 7px; }
.op-segmented { display: inline-flex; padding: 3px; border: 1px solid var(--op-line); border-radius: 6px; background: var(--op-surface-2); }
.op-segmented button { min-height: 30px; border: 0; border-radius: 4px; padding: 0 12px; background: transparent; color: var(--op-muted); }
.op-segmented button.is-active { background: #fff; color: var(--op-text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.op-output { min-height: 260px; padding: 15px; background: #f8fafb; border-left: 1px solid var(--op-line); }
.op-output img, .op-output video { display: block; width: 100%; max-height: 480px; object-fit: contain; background: #101719; }
.op-output audio { display: block; width: 100%; margin-top: 16px; }
.op-playground { display: grid; grid-template-columns: minmax(340px, 1fr) minmax(340px, 1fr); }
.op-playground__form { padding: 16px; }
.op-request-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--op-muted); font-size: 12px; }

.op-project-list { display: grid; gap: 8px; }
.op-project-row { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(90px,.5fr)) auto; align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px; border: 1px solid var(--op-line); border-radius: 5px; background: #fff; }
.op-project-row strong, .op-project-row small { display: block; }
.op-project-row small { margin-top: 4px; color: var(--op-muted); }
.op-project-stage { display: flex; align-items: center; gap: 4px; }
.op-project-stage span { width: 26px; height: 4px; background: #d8e0e2; }
.op-project-stage span.is-done { background: var(--op-green); }
.op-project-console { min-width: 0; overflow: hidden; border: 1px solid var(--op-line); border-radius: var(--op-radius); background: #fff; }
.op-project-tabs { height: 48px; padding: 0 10px; display: flex; align-items: stretch; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--op-line); background: #f8fafb; }
.op-project-tabs button { min-width: 88px; border: 0; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: transparent; color: var(--op-muted); font-weight: 680; }
.op-project-tabs button svg { width: 16px; height: 16px; }
.op-project-tabs button:hover { color: var(--op-text); background: #f0f4f5; }
.op-project-tabs button.is-active { color: var(--op-accent); border-bottom-color: var(--op-accent); background: #fff; }
.op-project-work { min-width: 0; }
.op-batch-progress { min-height: 42px; margin-bottom: 10px; padding: 8px 12px; display: grid; grid-template-columns: 18px minmax(0,1fr) auto minmax(120px,240px); align-items: center; gap: 9px; border: 1px solid #b7dfe0; border-radius: 5px; background: #eef9f9; color: #225d62; }
.op-batch-progress > svg { width: 17px; height: 17px; animation: op-spin 1s linear infinite; }
.op-batch-progress > div { height: 5px; overflow: hidden; background: #cfe2e3; }
.op-batch-progress > div i { display: block; height: 100%; background: var(--op-accent); transition: width .2s ease; }
@keyframes op-spin { to { transform: rotate(360deg); } }

.op-project-editor { height: clamp(570px, calc(100vh - 235px), 780px); display: grid; grid-template-columns: 220px minmax(360px,1fr) 340px; min-width: 0; }
.op-stage-rail { min-width: 0; border-right: 1px solid var(--op-line); background: #f8fafb; overflow: auto; }
.op-stage-rail > header, .op-script-editor > header, .op-studio-inspector > header, .op-studio-queue > header, .op-studio-stage > header, .op-delivery-preview > header, .op-delivery-list > header { min-height: 48px; padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; gap: 9px; border-bottom: 1px solid var(--op-line); }
.op-stage-rail > header span, .op-script-editor > header span, .op-studio-queue > header span, .op-delivery-preview > header span, .op-delivery-list > header span { color: var(--op-muted); font-size: 11px; }
.op-stage-rail > button { width: 100%; min-height: 84px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--op-line); display: grid; grid-template-columns: 24px 20px minmax(0,1fr) auto; align-items: center; gap: 7px; background: #fff; text-align: left; }
.op-stage-rail > button:hover { background: var(--op-accent-soft); }
.op-stage-rail > button > span { color: #8a999e; font: 700 10px/1 Consolas, monospace; }
.op-stage-rail > button > svg { width: 17px; height: 17px; color: var(--op-accent); }
.op-stage-rail > button > strong { min-width: 0; }
.op-stage-rail > button > small { color: var(--op-muted); }
.op-stage-rail > button > div { grid-column: 2 / -1; height: 4px; overflow: hidden; background: #dce4e6; }
.op-stage-rail > button > div i { display: block; height: 100%; background: var(--op-green); }
.op-script-editor { min-width: 0; display: grid; grid-template-rows: 48px minmax(0,1fr); border-right: 1px solid var(--op-line); }
.op-script-editor textarea { width: 100%; height: 100%; min-height: 0; padding: 18px 20px; resize: none; border: 0; outline: 0; color: #233238; background: #fff; font: 14px/1.8 "Microsoft YaHei", sans-serif; }
.op-script-editor textarea:focus { box-shadow: inset 0 0 0 2px rgba(8,125,134,.25); }
.op-project-settings { min-width: 0; }

.op-project-task-strip { border-top: 1px solid var(--op-line); background: #fff; }
.op-project-task-strip > header { min-height: 46px; padding: 7px 12px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--op-line); }
.op-project-task-strip .op-state { min-height: 130px; }
.op-production-table td:first-child { max-width: 360px; }
.op-production-table td:first-child strong, .op-production-table td:first-child small { display: block; }
.op-production-table td:first-child small { max-width: 360px; margin-top: 4px; overflow: hidden; color: var(--op-muted); text-overflow: ellipsis; white-space: nowrap; }
.op-production-table tr.is-failed { background: #fff9f8; }

.op-studio-commandbar { min-height: 50px; padding: 7px 10px; display: grid; grid-template-columns: minmax(130px,1fr) auto minmax(130px,1fr); align-items: center; gap: 10px; border-bottom: 1px solid var(--op-line); background: #f8fafb; }
.op-studio-commandbar > div { display: flex; gap: 6px; }
.op-studio-commandbar > div:last-child { justify-content: flex-end; }
.op-studio-commandbar > span { color: var(--op-muted); font-size: 12px; text-align: center; white-space: nowrap; }
.op-studio-workspace { height: clamp(570px, calc(100vh - 285px), 750px); display: grid; grid-template-columns: 248px minmax(340px,1fr) 350px; min-width: 0; }
.op-studio-queue { min-width: 0; display: grid; grid-template-rows: 48px minmax(0,1fr); overflow: hidden; border-right: 1px solid var(--op-line); background: #f8fafb; }
.op-studio-queue > div { overflow: auto; }
.op-studio-queue article { min-width: 0; display: grid; grid-template-columns: 32px minmax(0,1fr); border-bottom: 1px solid var(--op-line); background: #fff; }
.op-studio-queue article.is-active { background: var(--op-accent-soft); box-shadow: inset 3px 0 var(--op-accent); }
.op-studio-queue article.is-disabled { opacity: .55; }
.op-studio-queue article > label { display: grid; place-items: center; }
.op-studio-queue article input { width: 15px; height: 15px; accent-color: var(--op-accent); }
.op-studio-queue article > button { min-width: 0; min-height: 72px; padding: 8px 9px 8px 0; border: 0; display: grid; grid-template-columns: 48px minmax(0,1fr); align-items: center; gap: 9px; background: transparent; text-align: left; }
.op-studio-queue article > button > img, .op-studio-queue article > button > span { width: 48px; height: 48px; border: 1px solid var(--op-line); border-radius: 4px; display: grid; place-items: center; object-fit: cover; background: #e9eff0; color: var(--op-muted); }
.op-studio-queue article > button > span svg { width: 18px; height: 18px; }
.op-studio-queue article > button > .op-shot-code { color: #35666b; background: #edf6f6; font: 750 11px/1 Consolas, monospace; }
.op-studio-queue .op-shot-thumb { background-size: cover; background-position: center; color: #fff; }
.op-studio-queue article > button > div { min-width: 0; }
.op-studio-queue article strong, .op-studio-queue article small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-studio-queue article small { margin-top: 5px; color: var(--op-muted); font-size: 11px; }

.op-studio-stage { min-width: 0; display: grid; grid-template-rows: 48px minmax(300px,1fr) auto auto; overflow: hidden; background: #eef2f3; }
.op-studio-stage > header { background: #fff; }
.op-media-stage { min-width: 0; min-height: 0; padding: 20px; display: grid; place-items: center; overflow: hidden; background-color: #e7ecee; background-image: linear-gradient(45deg,#dfe5e7 25%,transparent 25%),linear-gradient(-45deg,#dfe5e7 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#dfe5e7 75%),linear-gradient(-45deg,transparent 75%,#dfe5e7 75%); background-size: 24px 24px; background-position: 0 0,0 12px,12px -12px,-12px 0; }
.op-media-stage img, .op-media-stage video { display: block; width: 100%; height: 100%; max-height: 530px; object-fit: contain; background: #11191c; box-shadow: 0 5px 22px rgba(16,28,32,.13); }
.op-media-empty { width: min(300px,80%); min-height: 220px; display: grid; place-items: center; align-content: center; gap: 12px; border: 1px dashed #aab8bc; border-radius: 5px; background: rgba(255,255,255,.72); color: var(--op-muted); }
.op-media-empty svg { width: 30px; height: 30px; }
.op-studio-stage > footer, .op-studio-inspector > footer, .op-delivery-preview > footer { min-height: 54px; padding: 8px 12px; display: flex; align-items: center; justify-content: flex-end; gap: 7px; border-top: 1px solid var(--op-line); background: #fff; }
.op-stage-task-list { max-height: 150px; overflow: auto; border-top: 1px solid var(--op-line); background: #fff; }
.op-stage-task-list button { width: 100%; min-height: 34px; padding: 5px 10px; border: 0; border-bottom: 1px solid var(--op-line); display: grid; grid-template-columns: 8px minmax(0,1fr) auto 16px; align-items: center; gap: 7px; background: #fff; text-align: left; color: var(--op-muted); font-size: 11px; }
.op-stage-task-list button > i:first-child { width: 7px; height: 7px; border-radius: 50%; background: var(--op-green); }
.op-stage-task-list button.is-failed > i:first-child { background: var(--op-red); }
.op-stage-task-list button svg { width: 14px; height: 14px; color: var(--op-red); }

.op-studio-inspector { min-width: 0; display: grid; grid-template-rows: 48px minmax(0,1fr) auto; overflow: hidden; background: #fff; border-left: 1px solid var(--op-line); }
.op-studio-inspector > header .op-icon-button { width: 30px; min-height: 30px; }
.op-inspector-scroll { min-height: 0; padding: 12px; overflow: auto; }
.op-studio-inspector .op-field { margin-bottom: 10px; }
.op-studio-inspector .op-field textarea { min-height: 76px; }
.op-studio-inspector .op-code-input { min-height: 150px; font: 12px/1.65 Consolas, "SFMono-Regular", monospace; }
.op-reference-row { min-height: 52px; margin-bottom: 12px; padding: 6px; display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 8px; border: 1px solid var(--op-line); border-radius: 5px; }
.op-reference-row img { width: 42px; height: 42px; object-fit: cover; }
.op-reference-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-asset-checklist { max-height: 190px; overflow: auto; border: 1px solid var(--op-line); border-radius: 5px; }
.op-asset-checklist label { min-height: 42px; padding: 5px 7px; display: grid; grid-template-columns: 16px 30px minmax(0,1fr); align-items: center; gap: 7px; border-bottom: 1px solid var(--op-line); }
.op-asset-checklist label:last-child { border-bottom: 0; }
.op-asset-checklist input { accent-color: var(--op-accent); }
.op-asset-checklist img { width: 30px; height: 30px; border-radius: 3px; object-fit: cover; }
.op-asset-checklist svg { width: 17px; height: 17px; color: var(--op-muted); }
.op-asset-checklist span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }

.op-delivery-workspace { min-height: 580px; display: grid; grid-template-columns: minmax(0,1fr) 340px; }
.op-delivery-preview { min-width: 0; display: grid; grid-template-rows: 48px minmax(400px,1fr) auto; border-right: 1px solid var(--op-line); background: #eef2f3; }
.op-delivery-preview > div { min-height: 0; padding: 20px; display: grid; place-items: center; }
.op-delivery-preview video { width: 100%; height: 100%; max-height: 620px; object-fit: contain; background: #111; }
.op-delivery-list { min-width: 0; background: #fff; }
.op-delivery-list > div { max-height: 650px; overflow: auto; }
.op-delivery-list button { width: 100%; min-height: 58px; padding: 8px 10px; border: 0; border-bottom: 1px solid var(--op-line); display: grid; grid-template-columns: 18px minmax(0,1fr) 16px; align-items: center; gap: 8px; background: #fff; text-align: left; }
.op-delivery-list button:hover { background: #f3f8f8; }
.op-delivery-list button > svg:first-child { color: var(--op-green); }
.op-delivery-list button strong, .op-delivery-list button small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-delivery-list button small { margin-top: 4px; color: var(--op-muted); }
.op-task-detail { margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; border: 1px solid var(--op-line); border-radius: 5px; overflow: hidden; }
.op-task-detail > div { min-width: 0; padding: 10px; border-right: 1px solid var(--op-line); border-bottom: 1px solid var(--op-line); }
.op-task-detail > div:nth-child(even) { border-right: 0; }
.op-task-detail dt { margin-bottom: 5px; color: var(--op-muted); font-size: 11px; }
.op-task-detail dd { margin: 0; overflow-wrap: anywhere; }
.op-task-detail__wide { grid-column: 1 / -1; border-right: 0 !important; }
.op-asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); gap: 10px; }
.op-asset { border: 1px solid var(--op-line); border-radius: 5px; overflow: hidden; background: #fff; }
.op-asset img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #e9edef; }
.op-asset__body { padding: 10px; }
.op-asset__body strong { display: block; }
.op-asset__body p { min-height: 42px; margin: 5px 0 10px; color: var(--op-muted); font-size: 12px; line-height: 1.5; }

.op-modal { width: min(620px, calc(100vw - 28px)); max-height: calc(100vh - 34px); padding: 0; border: 0; border-radius: 7px; box-shadow: var(--op-shadow); overflow: hidden; }
.op-modal::backdrop { background: rgba(7,15,18,.52); }
.op-modal__head, .op-modal__foot { padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--op-line); }
.op-modal__head h2 { margin: 0; font-size: 17px; }
.op-modal__body { padding: 16px; max-height: calc(100vh - 160px); overflow: auto; }
.op-modal__foot { border-top: 1px solid var(--op-line); border-bottom: 0; justify-content: flex-end; }
.op-toast { position: fixed; right: 18px; bottom: 18px; z-index: 100; max-width: min(420px, calc(100vw - 36px)); padding: 11px 14px; border-radius: 5px; background: #122126; color: #fff; box-shadow: var(--op-shadow); line-height: 1.5; }

/* Visitor */
.visitor-body { background: #fff; }
.visitor-header { position: fixed; inset: 0 0 auto 0; z-index: 60; height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 max(24px, calc((100vw - 1180px)/2)); background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(215,224,226,.88); }
.visitor-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; }
.visitor-brand span { width: 32px; height: 32px; border-radius: 5px; display: grid; place-items: center; background: var(--op-ink); color: #fff; }
.visitor-nav { display: flex; align-items: center; gap: 22px; color: #48595f; }
.visitor-nav a:hover { color: var(--op-accent); }
.visitor-actions { display: flex; gap: 8px; }
.visitor-hero { position: relative; isolation: isolate; min-height: min(800px, 82vh); padding: 112px max(24px, calc((100vw - 1180px)/2)) 64px; display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: #071115 url('/hero-ai-infrastructure-v2.webp') center center / cover no-repeat; }
.visitor-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(2, 12, 16, .14); }
.visitor-hero__copy { max-width: 720px; }
.visitor-hero h1 { margin: 0; font-size: clamp(42px, 6vw, 76px); line-height: 1.05; font-weight: 820; text-shadow: 0 2px 24px rgba(0,0,0,.48); }
.visitor-hero p { max-width: 660px; margin: 19px 0 25px; font-size: 18px; line-height: 1.7; color: #eef7f7; text-shadow: 0 1px 14px rgba(0,0,0,.72); }
.visitor-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.visitor-hero .op-button { min-height: 42px; }
.visitor-hero .op-button:not(.op-button--primary) { color: #fff; border-color: rgba(255,255,255,.65); background: rgba(0,0,0,.18); }
.visitor-band { padding: 56px max(24px, calc((100vw - 1180px)/2)); }
.visitor-band--muted { background: #f2f5f5; border-top: 1px solid var(--op-line); border-bottom: 1px solid var(--op-line); }
.visitor-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.visitor-section-head h2 { margin: 0; font-size: 30px; }
.visitor-section-head p { max-width: 560px; margin: 0; color: var(--op-muted); line-height: 1.7; }
.visitor-capabilities { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--op-line); border-radius: 6px; overflow: hidden; }
.visitor-capability { min-height: 180px; padding: 22px; border-right: 1px solid var(--op-line); background: #fff; }
.visitor-capability:last-child { border-right: 0; }
.visitor-capability svg { width: 25px; height: 25px; color: var(--op-accent); }
.visitor-capability strong { display: block; margin-top: 22px; font-size: 16px; }
.visitor-capability p { margin: 7px 0 0; color: var(--op-muted); line-height: 1.65; }
.visitor-about { scroll-margin-top: 66px; }
.visitor-company { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr); border-top: 1px solid var(--op-line); border-bottom: 1px solid var(--op-line); }
.visitor-company__profile { grid-row: 1 / 3; padding: 30px 44px 30px 0; border-right: 1px solid var(--op-line); }
.visitor-company__label { display: block; margin-bottom: 12px; color: var(--op-accent); font-size: 12px; font-weight: 750; }
.visitor-company__profile h3 { margin: 0 0 14px; font-size: 22px; }
.visitor-company__profile p { max-width: 670px; margin: 0; color: #4d5f65; font-size: 15px; line-height: 1.85; }
.visitor-company__facts { margin: 0; }
.visitor-company__facts > div { padding: 17px 0 17px 28px; display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 16px; border-bottom: 1px solid var(--op-line); }
.visitor-company__facts dt { color: var(--op-muted); font-size: 12px; }
.visitor-company__facts dd { margin: 0; color: #34474e; line-height: 1.65; }
.visitor-company__contact { padding: 20px 0 20px 28px; display: grid; gap: 14px; font-style: normal; }
.visitor-company__contact div { display: grid; gap: 5px; }
.visitor-company__contact span { color: var(--op-muted); font-size: 12px; }
.visitor-company__contact strong, .visitor-company__contact a { color: #24363c; font-size: 14px; line-height: 1.65; }
.visitor-company__contact a { width: fit-content; color: var(--op-accent); font-size: 16px; font-weight: 750; }
.visitor-cta { padding: 40px max(24px, calc((100vw - 1180px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #fff; background: #142126; }
.visitor-cta h2 { margin: 0 0 6px; font-size: 25px; }
.visitor-cta p { margin: 0; color: #b9c8cc; }
.visitor-footer { padding: 24px max(24px, calc((100vw - 1180px)/2)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--op-muted); text-align: center; border-top: 1px solid var(--op-line); }
.visitor-footer__company { max-width: 980px; display: grid; justify-items: center; gap: 5px; line-height: 1.6; }
.visitor-footer__company strong { color: #35474d; }
.visitor-footer__company span { font-size: 12px; }
.visitor-footer__company a { color: #53656b; }
.visitor-footer__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; }
.visitor-footer__icp { color: #53656b; }
.public-security-record { display: inline-flex; align-items: center; gap: 5px; color: #53656b; white-space: nowrap; }
.public-security-mark { width: 17px; height: 17px; display: inline-grid; flex: 0 0 17px; place-items: center; border-radius: 50%; background: #173a61; color: #ffb23f; font-size: 8px; font-weight: 900; line-height: 1; }
.visitor-footer a:hover, .docs-footer a:hover { color: var(--op-accent); }
.auth-tabs { display: grid; grid-template-columns: repeat(3,1fr); margin: -16px -16px 16px; border-bottom: 1px solid var(--op-line); }
.auth-tabs button { min-height: 45px; border: 0; background: #f5f7f8; color: var(--op-muted); }
.auth-tabs button.is-active { color: var(--op-accent); background: #fff; box-shadow: inset 0 -2px var(--op-accent); }
.auth-code-field { display: grid; grid-template-columns: minmax(0, 1fr) 126px; gap: 8px; align-items: stretch; }
.auth-code-field .op-button { min-height: 38px; white-space: nowrap; }

/* Developer center */
.docs-shell { min-height: 100vh; background: #fff; }
.docs-header { position: sticky; top: 0; z-index: 40; height: 64px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--op-line); }
.docs-layout { display: grid; grid-template-columns: 248px minmax(0,820px) minmax(220px,1fr); max-width: 1480px; margin: 0 auto; }
.docs-nav { position: sticky; top: 64px; height: calc(100vh - 64px); padding: 22px 15px; overflow: auto; border-right: 1px solid var(--op-line); }
.docs-nav a { display: block; padding: 8px 10px; border-radius: 4px; color: var(--op-muted); }
.docs-nav a:hover, .docs-nav a.is-active { color: var(--op-accent); background: var(--op-accent-soft); }
.docs-content { min-width: 0; padding: 38px 36px 80px; }
.docs-content section { scroll-margin-top: 84px; margin-bottom: 54px; }
.docs-content h1 { margin: 0 0 10px; font-size: 32px; }
.docs-content h2 { margin: 0 0 12px; font-size: 22px; }
.docs-content h3 { margin: 24px 0 10px; font-size: 16px; }
.docs-content p, .docs-content li { color: #506168; line-height: 1.75; }
.docs-content table { margin: 14px 0; }
.docs-toc { position: sticky; top: 64px; height: calc(100vh - 64px); padding: 38px 22px; border-left: 1px solid var(--op-line); color: var(--op-muted); }
.docs-toc strong { display: block; margin-bottom: 10px; color: var(--op-text); }
.docs-toc a { display: block; padding: 5px 0; font-size: 12px; }
.docs-footer { min-height: 66px; padding: 20px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--op-muted); text-align: center; border-top: 1px solid var(--op-line); background: #fff; }
.docs-footer__company { max-width: 1120px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px 18px; line-height: 1.65; }
.docs-footer__company strong { color: #35474d; }
.docs-footer__company span { font-size: 12px; }
.docs-footer__links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; }
.docs-footer a { color: #53656b; }

@media (max-width: 1100px) {
  .op-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .op-grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .op-playground { grid-template-columns: 1fr; }
  .op-output { border-left: 0; border-top: 1px solid var(--op-line); }
  .op-project-editor { height: auto; grid-template-columns: 190px minmax(0,1fr); }
  .op-stage-rail, .op-script-editor { min-height: 570px; }
  .op-project-settings { grid-column: 1 / -1; height: 520px; border-top: 1px solid var(--op-line); border-left: 0; }
  .op-studio-workspace { height: auto; grid-template-columns: 220px minmax(0,1fr); }
  .op-studio-queue, .op-studio-stage { height: 610px; }
  .op-studio-inspector { grid-column: 1 / -1; height: 560px; border-top: 1px solid var(--op-line); border-left: 0; }
  .visitor-capabilities { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .visitor-capability { border-bottom: 1px solid var(--op-line); }
  .visitor-capability:nth-child(2) { border-right: 0; }
  .docs-layout { grid-template-columns: 220px minmax(0,1fr); }
  .docs-toc { display: none; }
}

@media (max-width: 760px) {
  :root { --op-sidebar-width: 248px; }
  .op-shell { display: block; }
  .op-sidebar { transform: translateX(-101%); transition: transform .18s ease; box-shadow: var(--op-shadow); }
  body.is-menu-open .op-sidebar { transform: translateX(0); }
  body.is-menu-open::after { content: ""; position: fixed; inset: 0; z-index: 45; background: rgba(5,14,17,.48); }
  .op-main { display: block; }
  .op-topbar { height: 58px; padding: 0 12px; gap: 10px; }
  .op-mobile-menu { display: inline-flex; }
  .op-topbar__actions .op-button span, .op-topbar__actions .op-balance span { display: none; }
  .op-balance { padding-left: 8px; }
  .op-content { padding: 15px 12px 36px; }
  .op-page-head { align-items: flex-start; flex-direction: column; }
  .op-page-actions { justify-content: flex-start; }
  .op-metrics, .op-grid-2, .op-grid-3, .op-form-grid { grid-template-columns: 1fr; }
  .op-payment-channel { grid-template-columns: auto minmax(0, 1fr); }
  .op-payment-channel > img { grid-column: 2; width: 112px; height: 112px; }
  .op-project-row { grid-template-columns: minmax(0,1fr) auto; }
  .op-project-row > :not(:first-child):not(:last-child) { display: none; }
  .op-project-tabs { padding: 0 4px; }
  .op-project-tabs button { min-width: 72px; }
  .op-project-editor { display: block; }
  .op-stage-rail { min-height: 0; display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--op-line); }
  .op-stage-rail > header { display: none; }
  .op-stage-rail > button { width: 176px; min-width: 176px; grid-template-columns: 20px 18px minmax(70px,1fr) auto; border-right: 1px solid var(--op-line); }
  .op-script-editor { min-height: 460px; border-right: 0; border-bottom: 1px solid var(--op-line); }
  .op-project-settings { height: 570px; }
  .op-studio-commandbar { grid-template-columns: auto minmax(0,1fr); }
  .op-studio-commandbar > span { grid-column: 1 / -1; grid-row: 2; text-align: left; }
  .op-studio-commandbar > div:last-child { justify-content: flex-end; }
  .op-studio-workspace { display: block; }
  .op-studio-queue { height: 210px; border-right: 0; border-bottom: 1px solid var(--op-line); }
  .op-studio-queue > div { display: flex; overflow-x: auto; }
  .op-studio-queue article { width: 230px; flex: 0 0 230px; border-right: 1px solid var(--op-line); }
  .op-studio-stage { height: 570px; }
  .op-studio-inspector { height: 600px; }
  .op-media-stage { padding: 10px; }
  .op-delivery-workspace { display: block; }
  .op-delivery-preview { min-height: 560px; border-right: 0; border-bottom: 1px solid var(--op-line); }
  .op-delivery-list > div { max-height: 420px; }
  .op-batch-progress { grid-template-columns: 18px minmax(0,1fr) auto; }
  .op-batch-progress > div { grid-column: 1 / -1; }
  .op-task-detail { grid-template-columns: 1fr; }
  .op-task-detail > div { border-right: 0; }
  .visitor-header { height: 58px; padding: 0 12px; }
  .visitor-nav { display: none; }
  .visitor-actions .op-button:first-child { display: none; }
  .visitor-hero { min-height: 680px; padding: 94px 18px 48px; background-position: 70% center; }
  .visitor-hero::before { background: rgba(2, 12, 16, .38); }
  .visitor-hero h1 { font-size: 43px; }
  .visitor-hero p { font-size: 16px; }
  .visitor-band { padding: 42px 16px; }
  .visitor-section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .visitor-section-head h2 { font-size: 25px; }
  .visitor-capabilities { grid-template-columns: 1fr; }
  .visitor-capability { min-height: 150px; border-right: 0; }
  .visitor-company { grid-template-columns: 1fr; }
  .visitor-company__profile { grid-row: auto; padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--op-line); }
  .visitor-company__facts > div { padding-left: 0; grid-template-columns: 72px minmax(0,1fr); }
  .visitor-company__contact { padding-left: 0; }
  .visitor-cta { align-items: flex-start; flex-direction: column; padding-left: 16px; padding-right: 16px; }
  .visitor-footer { padding-left: 16px; padding-right: 16px; }
  .visitor-footer__company span { max-width: 560px; }
  .auth-code-field { grid-template-columns: minmax(0, 1fr) 112px; }
  .docs-header { padding: 0 12px; }
  .docs-layout { display: block; }
  .docs-nav { position: sticky; top: 64px; z-index: 20; width: 100%; height: auto; padding: 8px 10px; display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--op-line); background: #fff; }
  .docs-nav a { flex: 0 0 auto; }
  .docs-content { padding: 26px 16px 60px; }
}

@media (max-width: 680px) {
  .op-model-access-grid { grid-template-columns: 1fr; }
  .op-model-route { grid-template-columns: 1fr; align-items: stretch; }
  .op-model-route .op-toggle { min-height: 30px; }
}
