@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/inter-latin-v20.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ink: #18181b;
  --muted: #71717a;
  --line: #e4e4e7;
  --soft-line: #f0f0f1;
  --paper: #ffffff;
  --quartz: #fafafa;
  --blue: #18181b;
  --blue-deep: #09090b;
  --blue-soft: #f4f4f5;
  --green: #18181b;
  --green-soft: #f4f4f5;
  --amber: #52525b;
  --amber-soft: #fafafa;
  --red: #3f3f46;
  --red-soft: #f4f4f5;
  --shadow: 0 1px 2px rgba(9, 9, 11, .035);
  --radius: 14px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; overflow-x: clip; }
body { margin: 0; color: var(--ink); background: var(--quartz); font-size: 14px; }
body:not(.session-ready) .admin-only, body:not(.session-ready) .operator-only, body:not(.session-ready) .platform-admin-only { visibility: hidden; }
body:not(.session-ready) .staging-gpu-only { display: none !important; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.email-ui-review-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; margin-bottom: 22px; border: 1px solid #dce5ef; background: #f4f8fc; border-radius: 10px; font-size: 12px; }
.email-ui-review-banner div { display: grid; gap: 5px; }
.email-ui-review-banner span { color: #68778a; line-height: 1.5; }
.email-ui-review-banner a, .email-preview-link { color: #425e80; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.email-ui-review-banner a { flex-shrink: 0; }
@media (max-width: 600px) { .email-ui-review-banner { align-items: flex-start; flex-direction: column; } }
.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; }

.signed-out-page { min-height: 100vh; padding: 32px; display: grid; place-items: center; }
.signed-out-card { width: min(440px, 100%); padding: 40px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); text-align: center; }
.signed-out-brand { margin-bottom: 34px; display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 760; letter-spacing: -.05em; }
.signed-out-brand img { width: 30px; height: 30px; }
.signed-out-card h1 { margin: 0 0 10px; font-size: 30px; letter-spacing: -.04em; }
.signed-out-card p { margin: 0 0 26px; color: var(--muted); line-height: 1.6; }
.signed-out-card .button { width: 100%; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 256px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; z-index: 30; display: flex; flex-direction: column; padding: 28px 18px 18px; color: #eef2f8; background: #11151c; border-right: 1px solid #252a33; }
.brand { display: inline-flex; align-items: center; gap: 11px; padding: 0 10px; font-size: 21px; font-weight: 760; letter-spacing: -0.05em; }
.brand-mark { width: 30px; height: 30px; display: block; object-fit: contain; }

.workspace-card { margin: 28px 4px 22px; padding: 16px; display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; border: 1px solid #2a303a; border-radius: 14px; background: #181d25; }
.workspace-card .eyebrow { grid-column: 1 / -1; color: #858d99; }
.workspace-card strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 13px; font-weight: 650; white-space: nowrap; }
.role-pill { align-self: center; padding: 3px 7px; color: #a9c9ff; background: #1d3150; border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { color: #858b93; font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }

.nav-list { display: grid; gap: 6px; }
.nav-item { width: 100%; border: 0; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; padding: 10px 12px; color: #9da4ae; background: transparent; border-radius: 10px; text-align: left; text-decoration: none; cursor: pointer; transition: color .15s ease, background .15s ease; }
.nav-item:hover { color: #fff; background: #1a2029; }
.nav-item.active { color: #fff; background: #222a35; box-shadow: inset 3px 0 var(--blue); }
.nav-icon { color: #6f7885; font-size: 18px; line-height: 1; }
.nav-item.active .nav-icon { color: #77aaff; }
.nav-count { min-width: 24px; padding: 2px 6px; border-radius: 20px; color: #7e8793; background: #151a21; font-size: 10px; text-align: center; }
.nav-divider { height: 1px; margin: 8px 10px 4px; background: #292f38; }
.nav-preview-pill { padding: 3px 6px; border: 1px solid #3e4a5c; border-radius: 999px; color: #9eabc0; font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.platform-preview-nav.active .nav-preview-pill { color: #d7e5ff; border-color: #4d668f; background: #283950; }
.sidebar-footer { margin-top: auto; padding: 18px 5px 4px; border-top: 1px solid #292f38; display: grid; gap: 12px; }
.sidebar-footer > a, .sidebar-footer > button { border: 0; padding: 0 5px; display: flex; justify-content: space-between; color: #9299a4; background: transparent; font-size: 12px; cursor: pointer; }
.sidebar-footer > a:hover, .sidebar-footer > button:hover { color: #fff; }
.user-card { margin-top: 4px; padding: 12px 8px 2px; display: flex; gap: 10px; align-items: center; }
.avatar { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #0c6dff, #739ff0); font-weight: 800; }
.user-card > span:last-child { min-width: 0; display: grid; gap: 2px; }
.user-card strong, .user-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-card strong { color: #e8ebef; font-size: 12px; }
.user-card small { max-width: 150px; color: #747d89; font-size: 10px; }

.main-content { min-width: 0; }
.topbar { height: 94px; position: sticky; top: 0; z-index: 20; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: rgba(245, 245, 241, .92); backdrop-filter: blur(15px); }
.topbar-title { display: grid; gap: 3px; }
.topbar h1 { margin: 0; font-size: 24px; line-height: 1; letter-spacing: -.04em; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.system-status { display: flex; align-items: center; gap: 7px; color: #747a83; font-size: 11px; }
.system-status i { width: 7px; height: 7px; border-radius: 50%; background: #2bb978; box-shadow: 0 0 0 4px rgba(43, 185, 120, .1); }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 22px; }
.content-area { max-width: 1540px; margin: 0 auto; padding: 30px 34px 60px; }
.view { display: none; }
.view.active { display: block; animation: reveal .22s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } }

.button { min-height: 42px; border: 1px solid transparent; border-radius: 10px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .45; pointer-events: none; }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 7px 18px rgba(6, 103, 249, .2); }
.button-primary:hover { background: var(--blue-deep); }
.button-dark { color: #fff; background: #14181e; }
.button-dark:hover { background: #242a33; }
.button-ghost { border-color: var(--line); color: #555b64; background: #fff; }
.text-button { border: 0; color: var(--blue); background: none; font-size: 12px; font-weight: 720; cursor: pointer; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; color: #777d85; background: #fff; font-size: 22px; cursor: pointer; }

.hero-panel { min-height: 312px; position: relative; overflow: hidden; padding: 42px 46px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: center; color: #fff; background: #13171d; border-radius: 24px; box-shadow: var(--shadow); }
.hero-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 77% 40%, rgba(14, 102, 247, .2), transparent 32%), linear-gradient(110deg, rgba(255,255,255,.035), transparent 44%); }
.hero-panel > div { position: relative; z-index: 1; }
.hero-panel .eyebrow { color: #7dacfa; }
.hero-panel h2 { max-width: 690px; margin: 11px 0 14px; font-size: clamp(37px, 4vw, 58px); line-height: .98; letter-spacing: -.065em; }
.hero-panel h2 span { color: #77808c; }
.hero-panel p { max-width: 590px; margin: 0 0 25px; color: #a8afb9; line-height: 1.65; font-size: 14px; }
.hero-panel .button-dark { color: #111; background: #fff; }
.hero-panel .button-dark:hover { background: #eaf2ff; }
.hero-orbit { height: 245px; position: relative; }
.core { width: 106px; height: 106px; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #3677dd; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3483ff, #0755c8 60%, #06377d); box-shadow: 0 0 55px rgba(31, 108, 247, .42); }
.core span { font-size: 31px; font-weight: 850; letter-spacing: -.08em; }
.core small { color: #b8d3ff; font-size: 7px; font-weight: 800; line-height: 1.4; letter-spacing: .13em; }
.orbit { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(115, 161, 230, .25); border-radius: 50%; transform: translate(-50%, -50%); }
.orbit-one { width: 175px; height: 175px; animation: rotate 16s linear infinite; }
.orbit-two { width: 255px; height: 255px; animation: rotate 25s linear infinite reverse; }
.orbit i { width: 9px; height: 9px; position: absolute; border-radius: 50%; background: #5d99ff; box-shadow: 0 0 16px #3a84ff; }
.orbit-one i { left: 16.5px; top: 25px; }
.orbit-two i:first-child { right: 30px; top: 35px; }
.orbit-two i:last-child { left: 16px; bottom: 55px; background: #8ba4cb; }
@keyframes rotate { to { transform: translate(-50%, -50%) rotate(360deg); } }

.metric-grid { margin: 20px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric-card { padding: 20px 22px; display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.metric-card > span { color: #777d86; font-size: 11px; font-weight: 650; }
.metric-card strong { font-size: 30px; letter-spacing: -.05em; }
.metric-card small { color: #a0a5ac; font-size: 10px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr); gap: 16px; }
.panel, .table-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.panel { padding: 23px; }
.panel-header { min-height: 42px; margin-bottom: 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.panel-header > div { display: grid; gap: 4px; }
.panel h3 { margin: 0; font-size: 18px; letter-spacing: -.035em; }
.run-list, .attention-list, .resource-list { display: grid; }
.run-row { min-width: 0; border-top: 1px solid var(--soft-line); padding: 13px 4px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; cursor: pointer; }
.run-row:first-child { border-top: 0; }
.run-row:hover .run-copy strong { color: var(--blue); }
.run-glyph { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #3976d6; background: var(--blue-soft); font-size: 16px; }
.run-copy { min-width: 0; display: grid; gap: 4px; }
.run-copy strong, .run-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-copy strong { font-size: 12px; transition: color .15s; }
.run-copy small { color: #92979e; font-size: 10px; }
.run-cost { color: #6f747c; font-size: 11px; font-variant-numeric: tabular-nums; }
.cost-loading-skeleton { width: 52px; height: 9px; display: inline-block; border-radius: 999px; background: linear-gradient(90deg, #ececee 25%, #f7f7f8 42%, #ececee 62%); background-size: 240% 100%; animation: cost-loading-shimmer 1.25s ease-in-out infinite; vertical-align: middle; }
.run-cost .cost-loading-skeleton { width: 46px; height: 8px; }
.cost-loading-detail { display: inline-flex; align-items: center; gap: 6px; }
.cost-loading-spinner { width: 10px; height: 10px; display: inline-block; flex: 0 0 10px; border: 1.5px solid #d4d4d8; border-top-color: #71717a; border-radius: 50%; animation: cost-loading-spin .75s linear infinite; }
@keyframes cost-loading-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes cost-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .cost-loading-skeleton { background: #ececee; animation: none; }
  .cost-loading-spinner { border-color: #a1a1aa; animation: none; }
}
.status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 99px; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-running, .status-pending, .status-verifying { color: #1764d1; background: var(--blue-soft); }
.status-needs_approval, .status-stuck, .status-blocked { color: var(--amber); background: var(--amber-soft); }
.status-completed, .status-ready { color: var(--green); background: var(--green-soft); }
.status-failed, .status-expired { color: var(--red); background: var(--red-soft); }
.status-canceled, .status-paused { color: #6f747c; background: #f1f3f5; }
.attention-item { padding: 15px 2px; border-top: 1px solid var(--soft-line); display: grid; grid-template-columns: 9px 1fr auto; align-items: start; gap: 11px; }
.attention-item:first-child { border-top: 0; }
.attention-dot { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: #f0a126; box-shadow: 0 0 0 4px #fff4df; }
.attention-item strong { display: block; margin-bottom: 4px; font-size: 11px; }
.attention-item p { margin: 0; color: #858b93; font-size: 10px; line-height: 1.5; }
.empty-inline { padding: 24px 8px; color: #9a9fa6; text-align: center; font-size: 11px; }

/* Platform tenancy preview. All values and mutations are local sample state until the backend ships. */
.tenant-billing-preview { margin-bottom: 18px; padding: 22px; border: 1px solid #dbe4f2; border-radius: 16px; background: #f7f9fc; }
.tenant-billing-preview-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.tenant-billing-preview-heading h2 { margin: 5px 0; font-size: 25px; letter-spacing: -.045em; }
.tenant-billing-preview-heading p { max-width: 680px; margin: 0; color: #77818e; font-size: 10px; line-height: 1.55; }
.tenant-billing-preview-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.tenant-billing-preview-metrics { margin-top: 18px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.tenant-billing-preview-metrics article { min-width: 0; padding: 13px; display: grid; gap: 5px; border: 1px solid #e5e9ef; border-radius: 10px; background: #fff; }
.tenant-billing-preview-metrics span { color: #7e8793; font-size: 8px; font-weight: 700; }
.tenant-billing-preview-metrics strong { overflow: hidden; text-overflow: ellipsis; font-size: 18px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.tenant-billing-preview-metrics small { color: #9ca3ad; font-size: 7px; line-height: 1.4; }
.tenant-billing-preview-metrics .due { border-color: #ead8d8; background: #fffafa; }
.tenant-billing-preview-metrics .due strong { color: #7b3434; }
.tenant-billing-preview-disclaimer { margin: 12px 0 0; color: #929aa5; font-size: 8px; }
.tenant-invoice-ledger { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e2e7ee; }
.tenant-invoice-ledger > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.tenant-invoice-ledger > div:first-child strong { font-size: 11px; }
.tenant-invoice-ledger > div:first-child small { color: #858d98; font-size: 8px; }
#tenant-invoice-list { margin-top: 9px; display: grid; gap: 7px; }
.tenant-invoice-row { min-height: 46px; padding: 9px 12px; display: grid; grid-template-columns: minmax(150px, 1.3fr) minmax(110px, 1fr) minmax(80px, .7fr) auto; align-items: center; gap: 12px; border: 1px solid #e5e9ef; border-radius: 9px; background: #fff; }
.tenant-invoice-row > div { display: grid; gap: 3px; }
.tenant-invoice-row strong { font-size: 10px; }
.tenant-invoice-row small { color: #858d98; font-size: 8px; }
.tenant-invoice-row .billing-resource-status { justify-self: start; }
.tenant-invoice-row .button { padding: 7px 10px; font-size: 8px; }
.support-readonly-banner { margin-bottom: 16px; padding: 11px 14px; display: flex; align-items: center; gap: 12px; border: 1px solid #c6d7ed; border-radius: 10px; background: #eef5ff; color: #243a58; }
.support-readonly-banner span { padding: 4px 7px; border-radius: 999px; background: #315f96; color: #fff; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.support-readonly-banner strong { font-size: 10px; }
.support-readonly-banner small { margin-left: auto; color: #61738a; font-size: 8px; }
body.support-read-only form button[type="submit"], body.support-read-only .operator-only.button,
body.support-read-only button.platform-danger, body.support-read-only #billing-add-method,
body.support-read-only #tenant-add-credit, body.support-read-only #tenant-pay-bill,
body.support-read-only #invite-member-button, body.support-read-only #new-key-button { display: none !important; }
.platform-detail-invoices { display: grid; gap: 6px; }
.platform-detail-invoices > small { color: #8a929d; font-size: 8px; }
.platform-detail-invoices > div { padding: 8px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--soft-line); }
.platform-detail-invoices > div:last-child { border-bottom: 0; }
.platform-detail-invoices span { display: grid; gap: 2px; }
.platform-detail-invoices strong { font-size: 9px; }
.platform-detail-invoices small { color: #858d98; font-size: 7px; }
.tenant-invoice-summary { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.tenant-invoice-summary > div { min-height: 42px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--soft-line); }
.tenant-invoice-summary > div:last-child { border-bottom: 0; }
.tenant-invoice-summary span { color: #737b86; font-size: 9px; }
.tenant-invoice-summary strong { font-size: 10px; font-variant-numeric: tabular-nums; }
.tenant-invoice-summary .tenant-invoice-total { min-height: 52px; color: #18181b; background: #f7f8fa; }
.tenant-invoice-summary .tenant-invoice-total span { color: #303943; font-weight: 750; }
.tenant-invoice-summary .tenant-invoice-total strong { font-size: 17px; }
.tenant-payment-note { margin: 0; color: #858d98; font-size: 8px; line-height: 1.5; }
.platform-preview-banner { margin-bottom: 20px; padding: 12px 15px; display: flex; align-items: center; gap: 12px; border: 1px solid #dbe4f2; border-radius: 12px; color: #4d596a; background: #f5f8fc; }
.platform-preview-banner span { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; color: #244c83; background: #e2ebf8; font-size: 8px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.platform-preview-banner p { margin: 0; font-size: 10px; line-height: 1.5; }
.platform-heading { margin-bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.platform-heading > div { max-width: 720px; }
.platform-heading h2 { margin: 7px 0 7px; font-size: 34px; letter-spacing: -.055em; }
.platform-heading p { margin: 0; color: #777d86; font-size: 12px; line-height: 1.6; }
.platform-metrics { margin-bottom: 16px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.platform-metrics article { min-width: 0; padding: 18px 19px; display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.platform-metrics article > span { color: #777d86; font-size: 10px; font-weight: 700; }
.platform-metrics strong { overflow: hidden; text-overflow: ellipsis; font-size: 25px; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.platform-metrics small { color: #a0a5ac; font-size: 8px; line-height: 1.4; }
.platform-metrics .platform-metric-due { border-color: #ead8d8; background: #fffafa; }
.platform-metric-due strong { color: #7b3434; }
.platform-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 16px; }
.platform-directory-panel { min-width: 0; padding: 0; overflow: hidden; }
.platform-directory-heading { min-height: 80px; margin: 0; padding: 19px 20px 15px; align-items: flex-end; }
.platform-directory-heading p { margin: 2px 0 0; color: #90959c; font-size: 9px; }
.platform-table-tools { display: flex; align-items: center; gap: 8px; }
.platform-table-tools select { height: 36px; padding: 0 28px 0 10px; border: 1px solid var(--line); border-radius: 9px; color: #555b64; background: #fff; font-size: 9px; }
.platform-search { width: 185px; height: 36px; padding: 0 10px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.platform-search svg { width: 14px; height: 14px; flex: 0 0 auto; fill: none; stroke: #969ca5; stroke-width: 1.6; stroke-linecap: round; }
.platform-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: #30343a; background: transparent; font-size: 9px; }
.platform-table-wrap { position: relative; overflow-x: auto; border-top: 1px solid var(--line); }
.platform-tenant-table { min-width: 820px; table-layout: auto; }
.platform-tenant-table th { height: 40px; padding: 0 13px; white-space: nowrap; }
.platform-tenant-table th:first-child { width: auto; }
.platform-tenant-table th:nth-child(n) { width: auto; }
.platform-tenant-table td { height: 66px; padding: 10px 13px; white-space: nowrap; }
.platform-tenant-table tr.selected { background: #f5f8fc; box-shadow: inset 3px 0 #303943; }
.platform-tenant-name { min-width: 170px; display: grid; gap: 3px; }
.platform-tenant-name strong { max-width: 210px; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.platform-tenant-name small { color: #969ca4; font-size: 8px; }
.platform-status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 999px; font-size: 8px; font-weight: 750; text-transform: capitalize; }
.platform-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.platform-status-active { color: #27674e; background: #edf8f3; }
.platform-status-suspended { color: #7b3434; background: #faeeee; }
.platform-status-invited { color: #6e5a2b; background: #fbf6e8; }
.platform-number { color: #646a72; font-size: 9px; font-variant-numeric: tabular-nums; }
.platform-number.due { color: #7b3434; font-weight: 700; }
.platform-row-open { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 8px; color: #777d85; background: #fff; cursor: pointer; }
.platform-row-open:hover { color: #18181b; border-color: #b9bdc3; }
.platform-empty { padding: 36px 20px; color: #92979f; font-size: 10px; text-align: center; }
.platform-tenant-detail { min-height: 430px; position: sticky; top: 112px; padding: 20px; scroll-margin-top: 112px; min-width: 0; }
.platform-prepaid .platform-metric-due { border-color: var(--line); background: #fff; }
.platform-prepaid .platform-metric-due strong { color: inherit; }
.platform-billing-note { color: #858b93; font-size: 8px; line-height: 1.5; margin: 9px 0 0; }
.platform-statement-download { border: 0; padding: 6px 0 6px 8px; background: transparent; color: #303943; font-size: 8px; font-weight: 700; cursor: pointer; }
.platform-back-to-list { display: none; }
.platform-detail-empty { min-height: 388px; display: grid; place-items: center; padding: 35px; color: #969ca4; font-size: 10px; line-height: 1.6; text-align: center; }
.platform-detail-header { padding-bottom: 17px; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--soft-line); }
.platform-detail-header > div { min-width: 0; display: grid; gap: 4px; }
.platform-detail-header h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; }
.platform-detail-header small { color: #8e949c; font-size: 8px; }
.platform-detail-section { padding: 17px 0; border-bottom: 1px solid var(--soft-line); }
.platform-detail-section:last-child { border-bottom: 0; padding-bottom: 0; }
.platform-detail-label { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; color: #8b9199; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.platform-detail-label button { padding: 0; border: 0; color: #303943; background: transparent; font-size: 8px; font-weight: 750; cursor: pointer; text-transform: none; letter-spacing: 0; }
.platform-detail-admin { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 9px; }
.platform-detail-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #303943; font-size: 10px; font-weight: 800; }
.platform-detail-admin > span { min-width: 0; display: grid; gap: 2px; }
.platform-detail-admin strong, .platform-detail-admin small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.platform-detail-admin strong { font-size: 10px; }
.platform-detail-admin small { color: #8e949c; font-size: 8px; }
.platform-price-display { display: flex; align-items: baseline; gap: 5px; }
.platform-price-display strong { font-size: 27px; letter-spacing: -.05em; }
.platform-price-display span { color: #858b93; font-size: 9px; }
.platform-balance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.platform-balance-grid div { padding: 10px; display: grid; gap: 3px; border-radius: 9px; background: #f7f7f8; }
.platform-balance-grid span { color: #868c94; font-size: 7px; }
.platform-balance-grid strong { font-size: 12px; font-variant-numeric: tabular-nums; }
.platform-balance-grid .due strong { color: #7b3434; }
.platform-detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.platform-detail-actions .button { min-height: 36px; padding: 0 9px; font-size: 9px; }
.platform-detail-actions .platform-support-button { grid-column: 1 / -1; }
.platform-danger { color: #7b3434; border-color: #ead8d8; background: #fffafa; }
.platform-danger:hover { border-color: #caa; background: #fff4f4; }
.platform-suspended-notice { margin-bottom: 11px; padding: 10px; border: 1px solid #ead8d8; border-radius: 9px; color: #704040; background: #fffafa; font-size: 8px; line-height: 1.5; }
.platform-dialog { width: min(570px, calc(100vw - 30px)); }
.platform-form-note, .platform-impact-note, .platform-readonly-note { padding: 12px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid #dce4ef; border-radius: 10px; color: #4f5d70; background: #f7f9fc; }
.platform-form-note > span { width: 23px; height: 23px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #303943; font-size: 8px; font-weight: 800; }
.platform-form-note p, .platform-impact-note p, .platform-readonly-note p { margin: 0; font-size: 9px; line-height: 1.55; }
.platform-impact-note { display: grid; gap: 4px; }
.platform-impact-note strong { color: #303943; font-size: 10px; }
.platform-readonly-note > span { width: 26px; height: 26px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #315d91; background: #e5edf7; font-size: 10px; }
.platform-readonly-note > div { display: grid; gap: 3px; }
.platform-readonly-note strong { color: #303943; font-size: 10px; }
.platform-money-input { height: 42px; padding: 0 11px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.platform-money-input > span { color: #737982; font-size: 12px; }
.platform-money-input input { min-width: 0; border: 0; outline: 0; background: transparent; font-size: 12px; }
.platform-money-input small { color: #969ca4; font-size: 8px; }

@media (max-width: 1240px) {
  .tenant-billing-preview-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .platform-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .platform-layout { grid-template-columns: 1fr; }
  .platform-tenant-detail { position: static; }
  .platform-back-to-list { display: block; }
}

@media (max-width: 760px) {
  .tenant-billing-preview-heading { flex-direction: column; }
  .tenant-billing-preview-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .tenant-billing-preview-metrics { grid-template-columns: 1fr 1fr; }
  .platform-heading { align-items: stretch; flex-direction: column; }
  .platform-heading .button { align-self: flex-start; }
  .platform-metrics { grid-template-columns: 1fr 1fr; }
  .platform-directory-heading { align-items: stretch; flex-direction: column; }
  .platform-table-tools { align-items: stretch; flex-direction: column; }
  .platform-search { width: 100%; }
  .platform-table-tools select { width: 100%; }
}

@media (max-width: 480px) {
  .tenant-billing-preview-metrics { grid-template-columns: 1fr; }
  .platform-metrics { grid-template-columns: 1fr; }
  .platform-preview-banner { align-items: flex-start; }
  .platform-detail-actions { grid-template-columns: 1fr; }
  .platform-detail-actions .platform-support-button { grid-column: auto; }
}

.section-toolbar { margin-bottom: 15px; display: flex; justify-content: space-between; gap: 16px; }
.filter-tabs { display: flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.filter-tabs button { border: 0; border-radius: 7px; padding: 8px 12px; color: #858a91; background: transparent; font-size: 11px; cursor: pointer; }
.filter-tabs button.active { color: #fff; background: #171b21; }
.search-box { min-width: min(320px, 40vw); display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.search-box span { color: #8f959d; font-size: 19px; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 12px; }
.table-panel { overflow: hidden; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th { padding: 13px 18px; color: #8a9098; background: #fafafa; border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
td { height: 67px; padding: 11px 18px; border-bottom: 1px solid var(--soft-line); vertical-align: middle; }
tbody tr { cursor: pointer; transition: background .12s; }
tbody tr:hover { background: #fafcff; }
tbody tr:last-child td { border-bottom: 0; }
th:first-child { width: 42%; }
th:nth-child(2) { width: 15%; }
th:nth-child(3) { width: 14%; }
th:nth-child(4) { width: 10%; }
th:nth-child(5) { width: 15%; }
th:last-child { width: 42px; }
.runs-history-panel { position: relative; overflow-x: auto; }
.runs-history-table { min-width: 850px; }
.runs-history-table th:first-child { width: auto; }
.runs-history-table th:nth-child(2) { width: 100px; }
.runs-history-table th:nth-child(3) { width: 130px; }
.runs-history-table th:nth-child(4) { width: 125px; }
.runs-history-table th:nth-child(5) { width: 130px; }
.runs-history-table th:nth-last-child(2) { width: 115px; }
.runs-history-table th:last-child { width: 42px; }
.runs-history-table.has-provider-costs { min-width: 1220px; }
.runs-history-table th.provider-cost-heading { width: 125px; }
.run-provider-cost { font-variant-numeric: tabular-nums; }
.run-provider-cost strong { display: block; font-size: 11px; font-weight: 600; }
.run-provider-cost small { display: block; margin-top: 4px; color: #71717a; font-size: 9px; }
.provider-cost-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.provider-cost-card { min-width: 0; padding: 12px; border: 1px solid #e4e4e7; border-radius: 10px; }
.provider-cost-card > span { display: block; margin-bottom: 8px; font-size: 10px; color: #71717a; }
.provider-cost-card strong { font-size: 16px; overflow-wrap: anywhere; }
.provider-cost-note { font-size: 10px; line-height: 1.5; color: #71717a; }
.cost-type-heading th { color: #e4e4e7; }
.table-work { min-width: 0; display: grid; gap: 4px; }
.table-work strong, .table-work small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-work strong { font-size: 12px; }
.table-work small { color: #999ea5; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; }
.table-worker { color: #666c74; font-size: 11px; }
.table-date, .table-money, .table-duration { color: #7e848c; font-size: 10px; font-variant-numeric: tabular-nums; }
.run-duration { white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-open { color: #a1a6ac; font-size: 18px; }

.section-intro { margin-bottom: 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.section-intro h2, .security-summary h2 { margin: 5px 0 7px; font-size: 29px; letter-spacing: -.055em; }
.section-intro p, .security-summary p { max-width: 690px; margin: 0; color: #797f87; line-height: 1.6; font-size: 12px; }
.worker-grid { display: grid; grid-template-columns: repeat(3, minmax(270px, 1fr)); gap: 16px; }
.worker-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.worker-card-top { min-height: 148px; position: relative; padding: 22px; color: #fff; background: #15191f; }
.worker-card-top::after { content: ""; width: 135px; height: 135px; position: absolute; right: -45px; top: -50px; border: 1px solid rgba(104, 157, 240, .24); border-radius: 50%; box-shadow: 0 0 0 28px rgba(104, 157, 240, .035); }
.worker-card-top .status { position: relative; z-index: 1; }
.worker-avatar { width: 47px; height: 47px; margin-bottom: 16px; display: grid; place-items: center; border: 1px solid #334357; border-radius: 13px; color: #8cb6f9; background: #1d2632; font-size: 22px; }
.worker-card h3 { margin: 0 0 5px; font-size: 17px; letter-spacing: -.04em; }
.worker-card code { color: #77818e; font-size: 9px; }
.worker-card-body { padding: 18px 20px; }
.worker-meta { margin-bottom: 16px; display: flex; justify-content: space-between; color: #838890; font-size: 10px; }
.worker-actions { display: flex; gap: 7px; }
.worker-actions button { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 8px 9px; color: #5f656d; background: #fff; font-size: 10px; font-weight: 700; cursor: pointer; }
.worker-actions button.primary { color: #fff; border-color: var(--blue); background: var(--blue); }
.worker-actions button.danger { flex: 0 0 auto; color: var(--red); }
.empty-state { padding: 65px 25px; text-align: center; }
.empty-state > span { width: 58px; height: 58px; margin: 0 auto 13px; display: grid; place-items: center; border-radius: 18px; color: #4a7bc7; background: var(--blue-soft); font-size: 28px; }
.empty-state h3 { margin: 0 0 6px; font-size: 17px; }
.empty-state p { margin: 0; color: #90959c; font-size: 11px; }

.security-summary { min-height: 180px; margin-bottom: 18px; padding: 30px 35px; display: flex; align-items: center; justify-content: space-between; border-radius: 22px; color: #fff; background: linear-gradient(120deg, #12161c, #1c2531); }
.security-summary p { color: #929ba6; }
.security-summary .eyebrow { color: #6f9de6; }
.shield-mark { width: 92px; height: 92px; display: grid; place-items: center; border: 1px solid #2c517e; border-radius: 28px; color: #6ca6ff; background: #19283a; font-size: 45px; transform: rotate(45deg); }
.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel-full { grid-column: 1 / -1; }
.resource-item { padding: 13px 2px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 11px; border-top: 1px solid var(--soft-line); }
.resource-item:first-child { border-top: 0; }
.resource-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: #477ac9; background: var(--blue-soft); }
.resource-item strong { display: block; margin-bottom: 3px; font-size: 11px; }
.resource-item small { color: #91969d; font-size: 9px; }
.resource-item button { border: 0; color: #9aa0a7; background: none; font-size: 10px; cursor: pointer; }
.resource-item button:hover { color: var(--red); }

.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(9, 12, 16, .45); backdrop-filter: blur(2px); }
dialog { padding: 0; border: 0; }
dialog::backdrop { background: rgba(9, 12, 16, .48); backdrop-filter: blur(3px); }
.modal { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto; border-radius: 22px; background: #fff; box-shadow: 0 28px 90px rgba(10, 17, 27, .25); }
.modal-small { width: min(510px, calc(100vw - 32px)); }
.modal-header { position: sticky; top: 0; z-index: 2; padding: 24px 26px 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--soft-line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.modal-header h2 { margin: 5px 0 0; font-size: 23px; letter-spacing: -.045em; }
.modal-body { padding: 23px 26px; display: grid; gap: 18px; }
.modal-form-error { padding: 12px 14px; color: #b42318; border: 1px solid #fda29b; border-radius: 9px; background: #fef3f2; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.modal-form-error:focus { outline: 2px solid #b42318; outline-offset: 2px; }
.modal-footer { position: sticky; bottom: 0; z-index: 2; padding: 15px 26px 19px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--soft-line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: grid; gap: 7px; }
.field > span, fieldset legend { color: #515760; font-size: 11px; font-weight: 740; }
.field b { color: var(--blue); }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #dfe2e5; border-radius: 10px; padding: 11px 12px; outline: none; color: #20242a; background: #fbfbfa; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #6ca1f6; box-shadow: 0 0 0 3px rgba(6, 103, 249, .09); background: #fff; }
.field small { color: #9499a0; font-size: 9px; line-height: 1.5; }
.choice-group { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.choice-group legend { width: 100%; margin-bottom: 7px; }
.choice-group label { position: relative; }
.choice-group input { position: absolute; opacity: 0; }
.choice-group label span { display: block; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; color: #767c84; background: #fff; font-size: 10px; cursor: pointer; }
.choice-group input:checked + span { color: #075edc; border-color: #8eb7f4; background: var(--blue-soft); }
.choice-stack { display: grid; grid-template-columns: 1fr 1fr; }
.choice-stack legend { grid-column: 1 / -1; }
.switch-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.switch-row label, .toggle-line { padding: 12px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 11px; background: #fafafa; cursor: pointer; }
.switch-row span, .toggle-line span { display: grid; gap: 3px; }
.switch-row strong, .toggle-line strong { font-size: 10px; }
.switch-row small, .toggle-line small { color: #959aa1; font-size: 9px; line-height: 1.35; }

.secret-dialog { width: min(540px, calc(100vw - 32px)); padding: 35px; border-radius: 22px; text-align: center; box-shadow: var(--shadow); }
.secret-icon { width: 65px; height: 65px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 20px; color: #fff; background: #11161d; font-size: 31px; }
.secret-dialog h2 { margin: 6px 0 8px; font-size: 24px; letter-spacing: -.05em; }
.secret-dialog p { margin: 0 auto 20px; color: #7c828a; font-size: 11px; line-height: 1.6; }
.secret-value { margin-bottom: 18px; padding: 10px; display: flex; gap: 8px; border: 1px solid #c8d9f4; border-radius: 11px; background: var(--blue-soft); }
.secret-value code { min-width: 0; flex: 1; padding: 8px; overflow: hidden; color: #194f9e; text-overflow: ellipsis; white-space: nowrap; text-align: left; font-size: 10px; }
.secret-value button { border: 0; border-radius: 7px; color: #fff; background: var(--blue); font-size: 10px; font-weight: 700; cursor: pointer; }
.secret-onboarding { margin: 0 0 20px; display: grid; gap: 7px; text-align: left; }
.secret-onboarding strong { font-size: 10px; }
.secret-onboarding code { padding: 9px 10px; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; color: #3f3f46; background: #fafafa; font-size: 9px; white-space: nowrap; }

.run-drawer { width: min(560px, 100vw); position: fixed; inset: 0 0 0 auto; z-index: 60; overflow: auto; transform: translateX(105%); background: #fff; box-shadow: -20px 0 70px rgba(13, 20, 31, .2); transition: transform .24s ease; }
.run-drawer.open { transform: translateX(0); }
.drawer-header { position: sticky; top: 0; z-index: 2; padding: 25px 27px 20px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.drawer-header h2 { margin: 5px 0; font-size: 21px; letter-spacing: -.04em; }
.drawer-header code { color: #9399a0; font-size: 9px; }
.drawer-content { padding: 24px 27px 50px; }
.drawer-loading { padding: 70px 0; color: #8e949b; text-align: center; }
.drawer-section { margin-bottom: 25px; }
.drawer-section h3 { margin: 0 0 11px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.drawer-work { margin: 12px 0; font-size: 17px; font-weight: 660; line-height: 1.45; letter-spacing: -.025em; }
.drawer-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer-meta span { padding: 6px 9px; border-radius: 8px; color: #777e87; background: #f2f3f3; font-size: 9px; }
.drawer-actions { margin: 17px 0 25px; display: flex; flex-wrap: wrap; gap: 8px; }
.drawer-actions button { min-height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; color: #5c626a; background: #fff; font-size: 10px; font-weight: 700; cursor: pointer; }
.drawer-actions button.primary { color: #fff; border-color: var(--blue); background: var(--blue); }
.drawer-actions button.danger { color: var(--red); }
.outcome-box { padding: 15px; border: 1px solid #cde8da; border-radius: 12px; color: #335848; background: #f0faf5; font-size: 11px; line-height: 1.6; white-space: pre-wrap; }
.error-box { border-color: #f0cfca; color: #8b413c; background: #fff4f2; }
.verification-list { display: grid; gap: 7px; }
.verification-item { padding: 9px 11px; display: flex; gap: 8px; border-radius: 9px; color: #537160; background: #f1f8f4; font-size: 10px; }
.approval-card { padding: 13px; border: 1px solid #eed5a9; border-radius: 11px; background: #fffaf0; }
.approval-card strong { display: block; margin-bottom: 5px; font-size: 11px; }
.approval-card p { margin: 0 0 10px; color: #816f50; font-size: 10px; line-height: 1.45; }
.approval-actions { display: flex; gap: 7px; }
.approval-actions button { border: 0; border-radius: 7px; padding: 7px 10px; color: #fff; background: var(--green); font-size: 9px; font-weight: 750; cursor: pointer; }
.approval-actions button:last-child { background: var(--red); }

.toast-stack { width: min(370px, calc(100vw - 32px)); position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 9px; }
.toast { padding: 13px 15px; display: flex; gap: 10px; align-items: flex-start; border: 1px solid #dfe2e5; border-radius: 11px; background: #fff; box-shadow: 0 12px 38px rgba(18, 26, 38, .15); animation: toast-in .2s ease both; }
.toast i { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--green); }
.toast.error i { background: var(--red); }
.toast strong { display: block; margin-bottom: 2px; font-size: 10px; }
.toast p { margin: 0; color: #828890; font-size: 10px; line-height: 1.4; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.gpu-window-panel { margin-bottom: 16px; padding: 21px 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 24px; border: 1px solid #cbdcf7; border-radius: 18px; background: linear-gradient(115deg, #f7faff, #edf4ff); box-shadow: 0 10px 30px rgba(22, 82, 170, .07); }
.gpu-window-copy { min-width: 0; }
.gpu-window-heading { display: flex; align-items: center; gap: 9px; }
.gpu-window-panel h2 { margin: 6px 0 5px; font-size: 21px; letter-spacing: -.04em; }
.gpu-window-panel p { max-width: 780px; margin: 0; color: #687383; font-size: 10px; line-height: 1.55; }
.gpu-window-state { padding: 4px 7px; border-radius: 999px; color: #536276; background: #e3e9f1; font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.gpu-window-state.active { color: #17643f; background: #dff4e9; }
.gpu-window-state.draining { color: #87530b; background: #fff0cf; }
.gpu-window-meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 7px 13px; color: #7c8796; font-size: 8px; }
.gpu-window-meta span { position: relative; }
.gpu-window-meta span + span::before { content: ""; width: 3px; height: 3px; position: absolute; left: -8px; top: 4px; border-radius: 50%; background: #9aa9bc; }
.gpu-window-clock { min-width: 135px; display: grid; gap: 2px; text-align: right; font-variant-numeric: tabular-nums; }
.gpu-window-clock > span { color: #7b8797; font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.gpu-window-clock strong { color: #164d9e; font-size: 25px; letter-spacing: -.04em; }
.gpu-window-clock small { color: #7d8897; font-size: 8px; }
.gpu-window-actions { min-width: 155px; display: grid; gap: 7px; }
.gpu-window-actions .button { min-height: 38px; font-size: 10px; }
.playground-intro { min-height: 190px; margin-bottom: 18px; padding: 34px 38px; display: flex; align-items: center; justify-content: space-between; gap: 28px; overflow: hidden; position: relative; border-radius: 24px; color: #fff; background: radial-gradient(circle at 85% 15%, rgba(46, 123, 245, .3), transparent 35%), linear-gradient(125deg, #11161d, #1a2532); box-shadow: var(--shadow); }
.playground-intro::after { content: ""; width: 300px; height: 300px; position: absolute; right: 14%; top: -190px; border: 1px solid rgba(104, 160, 246, .22); border-radius: 50%; box-shadow: 0 0 0 40px rgba(104, 160, 246, .035), 0 0 0 90px rgba(104, 160, 246, .02); pointer-events: none; }
.playground-intro > * { position: relative; z-index: 1; }
.playground-intro .eyebrow { color: #79a9f5; }
.playground-intro h2 { margin: 9px 0 8px; font-size: clamp(29px, 3vw, 44px); letter-spacing: -.055em; }
.playground-intro p { max-width: 720px; margin: 0; color: #a8b1bd; line-height: 1.65; }
.playground-grid { display: grid; grid-template-columns: minmax(370px, .88fr) minmax(470px, 1.12fr); gap: 16px; align-items: stretch; }
.playground-request-column { min-width: 0; display: grid; align-content: start; gap: 16px; }
.playground-composer, .playground-integration, .playground-stage { min-width: 0; }
.playground-composer form { display: grid; gap: 15px; }
.sandbox-chip { padding: 5px 8px; border: 1px solid #b8d1f7; border-radius: 999px; color: #2563b9; background: var(--blue-soft); font-size: 8px; font-weight: 850; letter-spacing: .13em; }
.verification-schedule { padding: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; border: 1px solid #d7e4f8; border-radius: 13px; background: #f5f9ff; }
.verification-schedule .field-full { grid-column: 1 / -1; }
.playground-switches { margin-top: 1px; }
.playground-submit { justify-self: stretch; }
.playground-integration .panel-header select { padding: 7px 9px; border: 1px solid #e4e4e7; border-radius: 8px; color: #52525b; background: #fafafa; font-size: 10px; outline: none; }
.playground-integration .panel-header select:focus { border-color: #a1a1aa; box-shadow: 0 0 0 3px rgba(161, 161, 170, .12); }
.code-sample { overflow: hidden; border: 1px solid #dfe3e8; border-radius: 14px; background: #10151c; }
.code-sample-header { padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; border-bottom: 1px solid #292f38; }
.code-sample-header > div { display: grid; gap: 3px; }
.code-sample-header strong { font-size: 10px; }
.code-sample-header select { border: 1px solid #343c48; border-radius: 7px; padding: 6px 8px; color: #c7d0dc; background: #1c232d; font-size: 9px; }
.code-sample pre { max-height: 330px; margin: 0; padding: 17px; overflow: auto; color: #b9d4ff; font: 10px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre; }
.code-sample > p { margin: 0; padding: 11px 15px; color: #7f8996; border-top: 1px solid #292f38; font-size: 9px; line-height: 1.45; }
.playground-stage { min-height: 765px; display: flex; flex-direction: column; }
.live-indicator { min-height: 25px; padding: 0 9px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; color: #7c838c; background: #f0f1f2; font-size: 9px; font-weight: 750; }
.live-indicator i { width: 6px; height: 6px; border-radius: 50%; background: #949aa2; }
.live-indicator.live { color: #14754e; background: var(--green-soft); }
.live-indicator.live i { background: #25a66e; box-shadow: 0 0 0 4px rgba(37,166,110,.11); animation: live-pulse 1.7s ease infinite; }
@keyframes live-pulse { 50% { opacity: .45; } }
.stage-empty { min-height: 610px; flex: 1; padding: 45px; display: grid; place-content: center; justify-items: center; text-align: center; border: 1px dashed #d8dce1; border-radius: 16px; background: linear-gradient(145deg, #fafbfc, #f6f7f8); }
.stage-empty .stage-mark { width: 62px; height: 62px; margin-bottom: 15px; display: grid; place-items: center; border-radius: 19px; color: #fff; background: linear-gradient(145deg, #096cff, #154d9e); box-shadow: 0 14px 30px rgba(6,103,249,.22); font-size: 27px; font-weight: 850; }
.stage-empty h3 { margin: 0 0 7px; font-size: 18px; }
.stage-empty p { max-width: 430px; margin: 0; color: #858b93; font-size: 11px; line-height: 1.65; }
.stage-run-header { padding: 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fafafa; }
.stage-run-header > div:first-child { min-width: 0; display: grid; gap: 6px; }
.stage-run-header strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.stage-run-header code { color: #8a9098; font-size: 8px; }
.stage-run-header .drawer-actions { flex: 0 0 auto; margin: 0; }
.stage-run-header .drawer-actions button:disabled { opacity: .45; cursor: not-allowed; }
.stage-status { min-height: 39px; display: flex; align-items: center; gap: 9px; color: #7c838c; font-size: 9px; }
.stage-section { margin-top: 16px; }
.stage-section > .eyebrow { display: block; margin-bottom: 8px; }
.stage-section-heading { margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stage-section-heading > span:last-child { color: #71717a; font-size: 9px; font-weight: 650; }
.stage-live-shell { position: relative; }
.stage-live-preview { width: 100%; height: 330px; position: relative; isolation: isolate; overflow: hidden; display: block; padding: 0; border: 1px solid #27272a; border-radius: 14px; color: #f4f4f5; background: #09090b; text-align: left; box-shadow: 0 10px 28px rgba(9,9,11,.08); }
.stage-live-placeholder { position: absolute; inset: 0; z-index: 0; display: grid; place-content: center; justify-items: center; padding: 34px; color: #f4f4f5; background: radial-gradient(circle at 50% 38%, #27272a 0, #18181b 30%, #09090b 72%); text-align: center; transition: opacity .18s ease; }
.stage-live-preview.has-agents .stage-live-placeholder { opacity: 0; pointer-events: none; }
.stage-live-mark { width: 58px; height: 58px; margin-bottom: 14px; display: grid; place-items: center; border: 1px solid #3f3f46; border-radius: 50%; color: #d4d4d8; background: rgba(39,39,42,.86); box-shadow: 0 12px 32px rgba(0,0,0,.24); }
.stage-live-mark svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.stage-live-placeholder strong { font-size: 12px; font-weight: 650; letter-spacing: -.015em; }
.stage-live-placeholder small { max-width: 310px; margin-top: 6px; color: #a1a1aa; font-size: 9px; line-height: 1.5; }
.agent-live-grid { width: 100%; height: 100%; position: relative; z-index: 1; display: grid; grid-template-columns: repeat(var(--agent-grid-columns, 1), minmax(0, 1fr)); grid-template-rows: repeat(var(--agent-grid-rows, 1), minmax(0, 1fr)); gap: 1px; background: #3f3f46; }
.agent-live-empty { grid-column: 1 / -1; min-height: 0; display: grid; place-content: center; justify-items: center; gap: 7px; padding: 28px; color: #d4d4d8; background: radial-gradient(circle at 50% 42%, #27272a 0, #18181b 34%, #09090b 76%); text-align: center; }
.agent-live-empty svg { width: 30px; height: 30px; margin-bottom: 4px; fill: none; stroke: #71717a; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.agent-live-empty strong { font-size: 11px; }
.agent-live-empty small { max-width: 340px; color: #71717a; font-size: 8px; line-height: 1.5; }
.agent-live-tile { min-width: 0; min-height: 0; position: relative; isolation: isolate; overflow: hidden; padding: 0; border: 0; color: #f4f4f5; background: #09090b; text-align: left; cursor: pointer; }
.agent-live-tile:disabled { cursor: default; }
.agent-live-tile > img { width: 100%; height: 100%; position: absolute; inset: 0; z-index: 1; display: block; object-fit: contain; color: transparent; background: #09090b; font-size: 0; opacity: 0; transition: opacity .14s ease, transform .22s ease; }
.agent-live-tile.feed-ready > img { opacity: 1; }
.agent-live-tile:not(:disabled):hover > img { transform: scale(1.007); }
.agent-live-tile:focus-visible { z-index: 4; outline: 2px solid #fafafa; outline-offset: -3px; }
.agent-live-tile-placeholder { position: absolute; inset: 0; z-index: 0; display: grid; place-content: center; justify-items: center; gap: 5px; padding: 28px; color: #d4d4d8; background: radial-gradient(circle at 50% 42%, #27272a 0, #18181b 34%, #09090b 76%); text-align: center; }
.agent-live-tile-placeholder svg { width: 25px; height: 25px; margin-bottom: 5px; fill: none; stroke: #71717a; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.agent-live-tile-placeholder strong { font-size: 10px; font-weight: 650; }
.agent-live-tile-placeholder small { color: #71717a; font-size: 8px; }
.agent-live-tile.feed-ready .agent-live-tile-placeholder { opacity: 0; }
.agent-live-identity,
.agent-live-state,
.agent-live-open { position: absolute; z-index: 2; display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.14); color: #f4f4f5; background: rgba(9,9,11,.78); box-shadow: 0 4px 18px rgba(0,0,0,.2); backdrop-filter: blur(10px); }
.agent-live-identity { min-width: 0; max-width: calc(100% - 108px); top: 10px; left: 10px; padding: 7px 9px; border-radius: 9px; gap: 7px; }
.agent-live-index { width: 18px; height: 18px; flex: 0 0 18px; display: grid; place-items: center; border-radius: 50%; color: #18181b; background: #f4f4f5; font-size: 7px; font-weight: 850; }
.agent-live-copy { min-width: 0; display: grid; gap: 1px; }
.agent-live-copy strong,
.agent-live-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-live-copy strong { font-size: 8px; font-weight: 750; }
.agent-live-copy small { color: #a1a1aa; font-size: 7px; }
.agent-live-lead { padding: 3px 5px; border: 1px solid #52525b; border-radius: 999px; color: #d4d4d8; font-size: 6px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.agent-live-state { min-height: 25px; top: 10px; right: 10px; padding: 0 8px; border-radius: 999px; gap: 6px; font-size: 7px; font-weight: 750; }
.agent-live-state i { width: 5px; height: 5px; border-radius: 50%; background: #71717a; }
.agent-live-tile.is-live .agent-live-state i { background: #f4f4f5; box-shadow: 0 0 0 3px rgba(255,255,255,.1); animation: live-pulse 1.7s ease infinite; }
.agent-live-open { min-height: 27px; right: 10px; bottom: 10px; padding: 0 9px; border-radius: 999px; gap: 5px; font-size: 7px; font-weight: 750; opacity: 0; transform: translateY(3px); transition: opacity .14s ease, transform .14s ease, color .14s ease, background .14s ease; }
.agent-live-tile:not(:disabled):hover .agent-live-open,
.agent-live-tile:not(:disabled):focus-visible .agent-live-open { opacity: 1; transform: translateY(0); }
.agent-live-tile:not(:disabled):hover .agent-live-open { color: #09090b; border-color: #fff; background: #fff; }
.agent-live-grid[data-count="1"] .agent-live-identity { top: 12px; left: 12px; }
.agent-live-grid[data-count="1"] .agent-live-state { top: 12px; right: 12px; }
.agent-live-grid[data-count="1"] .agent-live-open { right: 12px; bottom: 12px; font-size: 8px; }
.team-live-dialog { width: min(1380px, calc(100vw - 28px)); height: min(900px, calc(100vh - 28px)); }
.team-live-viewer-body { height: calc(100% - 132px); min-height: 0; padding: 14px; background: #09090b; }
.team-live-viewer-grid { border: 1px solid #27272a; border-radius: 12px; overflow: hidden; }
.team-live-viewer-footer { height: 50px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid #27272a; color: #a1a1aa; background: #111113; font-size: 9px; }
.team-live-viewer-footer > span { display: inline-flex; align-items: center; gap: 7px; color: #d4d4d8; font-weight: 700; }
.team-live-viewer-footer i { width: 6px; height: 6px; border-radius: 50%; background: #f4f4f5; box-shadow: 0 0 0 4px rgba(255,255,255,.08); animation: live-pulse 1.7s ease infinite; }
.team-live-viewer-footer p { margin: 0; }
.stage-live-agent-caption { width: max-content; max-width: min(620px, calc(100% - 44px)); min-height: 48px; position: absolute; z-index: 3; left: 50%; bottom: 52px; box-sizing: border-box; padding: 8px 12px 8px 8px; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; color: #f4f4f5; background: rgba(9,15,23,.88); box-shadow: 0 10px 30px rgba(0,0,0,.42); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transform: translate(-50%, 7px); transition: opacity .16s ease, transform .16s ease; }
.stage-live-agent-caption.visible { opacity: 1; transform: translate(-50%, 0); }
.stage-live-agent-caption[data-mode="warning"] { border-color: rgba(251,191,36,.5); }
.stage-live-agent-caption[data-mode="recovery"] { border-color: rgba(248,113,113,.72); background: rgba(69,10,10,.94); }
.stage-live-agent-caption[data-mode="success"] { border-color: rgba(52,211,153,.45); }
.stage-live-agent-caption[data-mode="secure"] { border-color: rgba(96,165,250,.48); }
.stage-live-caption-avatar { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg,#62b5ef,#3877bd); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); font-size: 10px; font-weight: 850; }
.stage-live-caption-copy { min-width: 0; display: grid; gap: 2px; }
.stage-live-caption-heading { display: flex; align-items: center; gap: 6px; color: #a8d7f8; font-size: 7px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.stage-live-caption-heading i { width: 5px; height: 5px; display: inline-block; border-radius: 50%; background: #7bc8f6; }
.stage-live-agent-caption[data-mode="working"] .stage-live-caption-heading i,
.stage-live-agent-caption[data-mode="waiting"] .stage-live-caption-heading i { border: 1px solid rgba(255,255,255,.35); border-top-color: #8fd3ff; background: transparent; animation: replay-caption-spin .8s linear infinite; }
#playground-live-agent-caption-text { overflow: hidden; display: -webkit-box; color: #f8fafc; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.proof-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.proof-grid > .empty-inline { grid-column: 1 / -1; }
.proof-card { min-width: 0; overflow: hidden; padding: 11px; display: grid; align-content: start; gap: 5px; border: 1px solid var(--line); border-radius: 12px; background: #fafafa; }
.proof-card .proof-image { width: calc(100% + 22px); height: 118px; margin: -11px -11px 6px; object-fit: cover; border-bottom: 1px solid var(--line); background: #eef0f2; }
.proof-card .proof-replay { width: calc(100% + 22px); height: 118px; margin: -11px -11px 6px; padding: 0; display: grid; place-items: center; border: 0; border-bottom: 1px solid var(--line); color: #a9c9fb; background: linear-gradient(145deg, #121923, #24364f); font-size: 10px; font-weight: 750; text-align: center; cursor: pointer; }
.proof-card .proof-replay:hover { background: linear-gradient(145deg, #181f29, #2d4059); }
.proof-card .proof-file-download {
  width: calc(100% + 22px);
  height: 118px;
  margin: -11px -11px 6px;
  padding: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 9px;
  border-bottom: 1px solid #27272a;
  color: #f4f4f5;
  background: #18181b;
  text-decoration: none;
  transition: background .14s ease;
}
.proof-card .proof-file-download:hover { background: #27272a; }
.proof-file-download > strong { color: #f4f4f5; font-size: 10px; }
.proof-file-icon {
  min-width: 40px;
  height: 32px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border: 1px solid #52525b;
  border-radius: 7px;
  color: #d4d4d8;
  background: #27272a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
}
.proof-card .proof-kind { color: #4779c8; font-size: 7px; font-weight: 850; letter-spacing: .12em; }
.proof-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.proof-card p, .proof-card small { margin: 0; color: #858c95; font-size: 8px; line-height: 1.45; word-break: break-word; }
.proof-card .proof-pass { color: #267253; }
.proof-card .proof-fail { color: var(--red); }
.proof-verification { border-color: #cde6d9; background: #f1faf5; }
.proof-gallery-trigger { width: calc(100% + 22px); height: 118px; margin: -11px -11px 6px; position: relative; overflow: hidden; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: #18181b; cursor: pointer; }
.proof-card .proof-gallery-trigger .proof-image { width: 100%; height: 100%; margin: 0; border: 0; object-fit: cover; transition: transform .2s ease, opacity .2s ease; }
.proof-gallery-trigger::after { content: ""; position: absolute; inset: 0; background: rgba(9,9,11,.34); pointer-events: none; }
.proof-gallery-trigger span { position: absolute; z-index: 1; inset: 0; padding: 12px; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 750; text-align: center; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.proof-gallery-trigger:hover .proof-image { opacity: .9; transform: scale(1.025); }
.proof-gallery-trigger:focus-visible { outline: 2px solid #18181b; outline-offset: -3px; }
.screenshot-gallery { width: min(1120px, calc(100vw - 36px)); height: min(820px, calc(100vh - 36px)); overflow: hidden; border-radius: 18px; color: #f4f4f5; background: #09090b; box-shadow: 0 30px 100px rgba(0,0,0,.42); }
.screenshot-gallery-header { height: 82px; padding: 18px 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid #27272a; background: #09090b; }
.screenshot-gallery-header > div { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2px 20px; }
.screenshot-gallery-header .eyebrow { grid-column: 1 / -1; color: #a1a1aa; }
.screenshot-gallery-header h2 { margin: 0; color: #fafafa; font-size: 19px; letter-spacing: -.035em; }
.screenshot-gallery-header > div > span:last-child { color: #a1a1aa; font-size: 9px; }
.screenshot-gallery-header .icon-button { color: #e4e4e7; border-color: #3f3f46; background: #18181b; }
.screenshot-gallery-header > .screenshot-gallery-actions { min-width: auto; flex: 0 0 auto; display: flex; grid-template-columns: none; align-items: center; gap: 10px; }
.screenshot-gallery-view-toggle { height: 36px; padding: 3px; display: flex; align-items: center; gap: 2px; border: 1px solid #3f3f46; border-radius: 10px; background: #18181b; }
.screenshot-gallery-view-toggle button { height: 28px; padding: 0 9px; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 7px; color: #a1a1aa; background: transparent; font-size: 8px; font-weight: 700; cursor: pointer; }
.screenshot-gallery-view-toggle button:hover { color: #f4f4f5; }
.screenshot-gallery-view-toggle button.active { color: #18181b; background: #fafafa; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.screenshot-gallery-view-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.screenshot-gallery-view-toggle button:focus-visible { outline: 2px solid #fafafa; outline-offset: 2px; }
.screenshot-gallery-stage { height: calc(100% - 178px); min-height: 0; padding: 18px; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 14px; }
.screenshot-gallery-stage figure { width: 100%; height: 100%; min-height: 0; margin: 0; overflow: hidden; display: grid; grid-template-rows: minmax(0, 1fr) 38px; border: 1px solid #27272a; border-radius: 12px; background: #18181b; }
.screenshot-gallery-stage figure > img { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #09090b; }
.screenshot-gallery-stage figcaption { padding: 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #a1a1aa; border-top: 1px solid #27272a; font-size: 9px; }
.screenshot-gallery-stage figcaption a { color: #f4f4f5; font-weight: 700; }
.screenshot-gallery-nav { width: 44px; height: 44px; padding: 0; border: 1px solid #3f3f46; border-radius: 50%; color: #f4f4f5; background: #18181b; font-size: 26px; line-height: 1; cursor: pointer; }
.screenshot-gallery-nav:hover:not(:disabled) { border-color: #71717a; background: #27272a; }
.screenshot-gallery-nav:disabled { opacity: .25; cursor: default; }
.screenshot-gallery-thumbnails { height: 96px; padding: 12px 20px 18px; overflow-x: auto; display: flex; justify-content: safe center; gap: 9px; border-top: 1px solid #27272a; scrollbar-color: #52525b transparent; }
.screenshot-gallery-thumbnail { width: 96px; min-width: 96px; height: 64px; position: relative; overflow: hidden; padding: 0; border: 1px solid #3f3f46; border-radius: 8px; background: #18181b; cursor: pointer; }
.screenshot-gallery-thumbnail img { width: 100%; height: 100%; object-fit: cover; opacity: .65; }
.screenshot-gallery-thumbnail span { min-width: 18px; height: 18px; position: absolute; right: 5px; bottom: 5px; display: grid; place-items: center; border-radius: 9px; color: #e4e4e7; background: rgba(9,9,11,.76); font-size: 8px; }
.screenshot-gallery-thumbnail:hover img,
.screenshot-gallery-thumbnail.active img { opacity: 1; }
.screenshot-gallery-thumbnail.active { border-color: #fafafa; box-shadow: 0 0 0 1px #fafafa; }
.screenshot-gallery-grid { height: calc(100% - 82px); padding: 20px 22px 26px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); align-content: start; gap: 14px; background: #09090b; scrollbar-color: #52525b transparent; }
.screenshot-gallery-grid-item { min-width: 0; position: relative; overflow: hidden; padding: 0; display: grid; grid-template-rows: minmax(0, 1fr) 49px; border: 1px solid #27272a; border-radius: 12px; color: #e4e4e7; background: #18181b; text-align: left; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.screenshot-gallery-grid-item:hover { border-color: #71717a; background: #27272a; transform: translateY(-1px); }
.screenshot-gallery-grid-item.active { border-color: #a1a1aa; box-shadow: inset 0 0 0 1px #52525b; }
.screenshot-gallery-grid-item:focus-visible { outline: 2px solid #fafafa; outline-offset: 2px; }
.screenshot-gallery-grid-item > img { width: 100%; aspect-ratio: 16 / 10; display: block; object-fit: contain; border-bottom: 1px solid #27272a; background: #111113; }
.screenshot-gallery-grid-index { min-width: 24px; height: 24px; position: absolute; top: 9px; left: 9px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #fafafa; background: rgba(9,9,11,.74); backdrop-filter: blur(8px); font-size: 8px; font-weight: 750; }
.screenshot-gallery-grid-meta { min-width: 0; padding: 8px 11px; display: grid; align-content: center; gap: 3px; }
.screenshot-gallery-grid-meta strong,
.screenshot-gallery-grid-meta small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screenshot-gallery-grid-meta strong { color: #f4f4f5; font-size: 9px; font-weight: 650; }
.screenshot-gallery-grid-meta small { color: #a1a1aa; font-size: 8px; }
.video-replay-dialog { height: min(760px, calc(100vh - 36px)); }

.cost-breakdown-dialog { height: min(820px, calc(100vh - 36px)); }
.runtime-cost-breakdown-dialog { height: auto; max-height: calc(100vh - 36px); }
.cost-breakdown-body { height: calc(100% - 82px); overflow-y: auto; padding: 22px; color: #e4e4e7; background: #111113; scrollbar-color: #52525b transparent; }
.cost-breakdown-loading { min-height: 240px; display: grid; place-items: center; color: #a1a1aa; font-size: 11px; }
.cost-breakdown-status { padding: 16px 18px; display: grid; gap: 5px; border: 1px solid #3f3f46; border-radius: 12px; background: #18181b; }
.cost-breakdown-status strong { color: #fafafa; font-size: 13px; }
.cost-breakdown-status p { margin: 0; color: #a1a1aa; font-size: 10px; line-height: 1.55; }
.cost-breakdown-status small { color: #d4d4d8; font-size: 9px; }
.cost-status-reported { border-color: rgba(34,197,94,.42); background: rgba(20,83,45,.18); }
.cost-status-partial { border-color: rgba(234,179,8,.42); background: rgba(113,63,18,.18); }
.cost-breakdown-totals { margin: 14px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cost-total-card { min-width: 0; padding: 14px; display: grid; gap: 5px; border: 1px solid #27272a; border-radius: 12px; background: #18181b; }
.cost-total-card span { color: #a1a1aa; font-size: 8px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.cost-total-card strong { overflow: hidden; color: #f4f4f5; font-size: 18px; letter-spacing: -.04em; text-overflow: ellipsis; }
.cost-total-card small { color: #71717a; font-size: 8px; line-height: 1.4; }
.cost-total-primary { grid-column: span 2; border-color: #52525b; background: #27272a; }
.cost-total-credit strong { color: #86efac; }
.cost-total-fee { border-color: #3f3f46; background: #151517; }
.cost-total-fee strong { color: #d4d4d8; }
.cost-breakdown-section { margin-top: 14px; overflow: hidden; border: 1px solid #27272a; border-radius: 12px; background: #18181b; }
.cost-breakdown-section-heading { min-height: 64px; padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #27272a; }
.cost-breakdown-section-heading .eyebrow { color: #71717a; }
.cost-breakdown-section-heading h3 { margin: 3px 0 0; color: #f4f4f5; font-size: 13px; }
.cost-breakdown-section-heading > span { color: #a1a1aa; font-size: 8px; }
.cost-breakdown-table-wrap { overflow-x: auto; }
.cost-breakdown-table { width: 100%; min-width: 860px; table-layout: fixed; border-collapse: collapse; font-size: 9px; }
.cost-breakdown-table th:first-child { width: 30%; }
.cost-breakdown-table th:nth-child(2) { width: 27%; }
.cost-breakdown-table th:nth-child(3) { width: 13%; }
.cost-breakdown-table th:nth-last-child(-n+3) { width: 10%; }
.cost-breakdown-table th { padding: 10px 12px; color: #71717a; background: #111113; font-size: 8px; text-align: left; text-transform: uppercase; letter-spacing: .04em; }
.cost-breakdown-table th:nth-last-child(-n+3),
.cost-breakdown-table td:nth-last-child(-n+3) { text-align: right; }
.cost-breakdown-table td { max-width: 270px; padding: 12px; overflow-wrap: anywhere; vertical-align: top; border-top: 1px solid #27272a; color: #d4d4d8; }
.cost-breakdown-table td:first-child,
.cost-breakdown-table td:nth-child(2) { display: table-cell; }
.cost-breakdown-table td strong,
.cost-breakdown-table td span,
.cost-breakdown-table td small { display: block; }
.cost-breakdown-table td strong { color: #f4f4f5; font-size: 9px; }
.cost-breakdown-table td:first-child > span { margin-top: 3px; color: #a1a1aa; }
.cost-breakdown-table td small { margin-top: 4px; color: #71717a; line-height: 1.45; }
.cost-category-row { background: #1c1c1f; cursor: pointer; }
.cost-category-row:hover,
.cost-category-row.expanded { background: #232327; }
.cost-category-toggle { width: 100%; margin: 0; padding: 0; display: flex; align-items: center; gap: 10px; border: 0; color: inherit; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.cost-category-toggle:focus-visible { outline: 2px solid #a1a1aa; outline-offset: 4px; border-radius: 4px; }
.cost-category-chevron { width: 20px; height: 20px; flex: 0 0 20px; display: grid !important; place-items: center; border: 1px solid #52525b; border-radius: 6px; color: #d4d4d8; background: #27272a; font-size: 12px; font-weight: 500; line-height: 1; }
.cost-category-copy { min-width: 0; display: block !important; }
.cost-category-copy strong,
.cost-category-copy small { display: block; }
.cost-category-copy small { margin-top: 3px !important; }
.cost-subcategory-row { background: #151517; }
.cost-subcategory-row:hover { background: #19191c; }
.cost-subcategory-row td:first-child { padding-left: 42px; }
.cost-subcategory-row td:first-child strong::before { content: "SKU"; margin-right: 7px; color: #71717a; font-size: 7px; font-weight: 700; letter-spacing: .05em; }
.cost-attribution { width: max-content; max-width: 100%; padding: 4px 7px; border: 1px solid #3f3f46; border-radius: 999px; color: #d4d4d8; background: #27272a; font-size: 8px; white-space: nowrap; }
.cost-attribution-shared_active_time { border-color: rgba(96,165,250,.35); color: #bfdbfe; background: rgba(30,64,175,.18); }
.cost-attribution-provider_receipt { border-color: rgba(192,132,252,.35); color: #e9d5ff; background: rgba(88,28,135,.18); }
.cost-attribution-mixed { border-color: rgba(161,161,170,.38); color: #e4e4e7; background: rgba(63,63,70,.45); }
.cost-number { color: #f4f4f5 !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cost-credit { color: #86efac !important; }
.cost-net { font-weight: 750; }
.cost-breakdown-empty { padding: 28px; color: #a1a1aa; font-size: 10px; text-align: center; }
.cost-breakdown-method > div:last-child { padding: 14px 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.cost-method-item { min-width: 0; }
.cost-method-item strong { color: #d4d4d8; font-size: 9px; }
.cost-method-item p { margin: 4px 0 0; color: #71717a; font-size: 8px; line-height: 1.55; }
.video-replay-stage { height: calc(100% - 82px); padding: 18px 66px 24px; grid-template-columns: minmax(0, 1fr); }
.video-replay-media { min-height: 0; position: relative; overflow: hidden; display: grid; place-items: center; background: #000; }
.video-replay-media > video { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #000; }
.video-replay-caption-toggle { height: 36px; padding: 0 12px; border: 1px solid #3f3f46; border-radius: 10px; color: #f4f4f5; background: #18181b; font-size: 9px; font-weight: 750; cursor: pointer; }
.video-replay-caption-toggle:hover:not(:disabled) { border-color: #71717a; background: #27272a; }
.video-replay-caption-toggle[aria-pressed="false"] { color: #a1a1aa; }
.video-replay-caption-toggle:disabled { opacity: .42; cursor: default; }
.video-replay-caption-toggle:focus-visible { outline: 2px solid #fafafa; outline-offset: 2px; }
.video-replay-agent-caption { max-width: min(680px, calc(100% - 54px)); min-height: 58px; position: absolute; z-index: 2; left: 50%; bottom: 58px; padding: 10px 14px 10px 10px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; color: #f4f4f5; background: rgba(24,24,27,.92); box-shadow: 0 12px 36px rgba(0,0,0,.35); backdrop-filter: blur(12px); opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: opacity .16s ease, transform .16s ease; }
.video-replay-agent-caption.visible { opacity: 1; transform: translate(-50%, 0); }
.video-replay-agent-caption[data-mode="warning"] { border-color: rgba(251,191,36,.5); }
.video-replay-agent-caption[data-mode="recovery"] { border-color: rgba(248,113,113,.72); background: rgba(69,10,10,.94); }
.video-replay-agent-caption[data-mode="success"] { border-color: rgba(52,211,153,.45); }
.video-replay-agent-caption[data-mode="secure"] { border-color: rgba(96,165,250,.48); }
.video-replay-caption-avatar { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; color: #18181b; background: #f4f4f5; font-size: 12px; font-weight: 850; }
.video-replay-caption-copy { min-width: 0; display: grid; gap: 3px; }
.video-replay-caption-heading { display: flex; align-items: center; gap: 7px; color: #d4d4d8; font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.video-replay-caption-heading i { width: 5px; height: 5px; display: inline-block; border-radius: 50%; background: #a1a1aa; }
.video-replay-agent-caption[data-mode="working"] .video-replay-caption-heading i,
.video-replay-agent-caption[data-mode="waiting"] .video-replay-caption-heading i { border: 1px solid #71717a; border-top-color: #f4f4f5; background: transparent; animation: replay-caption-spin .8s linear infinite; }
#video-replay-agent-caption-text { overflow: hidden; display: -webkit-box; color: #fafafa; font-size: 12px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
@keyframes replay-caption-spin { to { transform: rotate(360deg); } }
.verification-queue-panel { margin-top: 16px; }
.verification-queue-panel .panel-header small { color: #9298a0; font-size: 9px; }
.verification-queue { display: grid; }
.verification-queue-item { width: 100%; padding: 13px 2px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 15px; border: 0; border-top: 1px solid var(--soft-line); background: transparent; text-align: left; cursor: pointer; }
.verification-queue-item:first-child { border-top: 0; }
.verification-queue-item:hover strong { color: var(--blue); }
.verification-queue-item > span:first-child { min-width: 0; display: grid; gap: 4px; }
.verification-queue-item strong, .verification-queue-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verification-queue-item strong { font-size: 10px; }
.verification-queue-item small { color: #8d939b; font-size: 8px; }











@media (max-width: 1120px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .worker-grid { grid-template-columns: 1fr 1fr; }
  .hero-panel { grid-template-columns: minmax(0, 1fr) 270px; }
  .hero-orbit { transform: scale(.82); }
  .system-status { display: none; }
  .playground-grid { grid-template-columns: 1fr; }
  .playground-stage { min-height: 660px; }
}

@media (max-width: 860px) {
  .app-shell { display: block; }
  .sidebar { width: 256px; position: fixed; left: 0; z-index: 50; transform: translateX(-105%); transition: transform .22s ease; box-shadow: 20px 0 60px rgba(0,0,0,.24); }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: block; }
  .topbar { height: 78px; padding: 0 18px; justify-content: flex-start; }
  .topbar-title { margin-right: auto; }
  .topbar-actions .button { padding: 0 12px; }
  .content-area { padding: 20px 18px 45px; }
  .hero-panel { min-height: 330px; padding: 34px; display: block; }
  .hero-panel h2 { font-size: 40px; }
  .hero-orbit { display: none; }
  .overview-grid, .security-grid { grid-template-columns: 1fr; }
  .panel-full { grid-column: auto; }
  .section-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { min-height: 42px; min-width: 0; }
  .worker-grid { grid-template-columns: 1fr; }
  .section-intro { align-items: flex-start; flex-direction: column; }
  table { min-width: 760px; }
  .table-panel { overflow-x: auto; }
  .playground-intro { padding: 30px; align-items: flex-start; flex-direction: column; }
  .gpu-window-panel { grid-template-columns: 1fr auto; }
  .gpu-window-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .topbar .eyebrow { display: none; }
  .topbar h1 { font-size: 19px; }
  .topbar-actions .button span:first-child { display: none; }
  .hero-panel { padding: 28px 24px; }
  .hero-panel h2 { font-size: 35px; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { padding: 16px; }
  .metric-card strong { font-size: 25px; }
  .panel { padding: 19px; }
  .run-row { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .run-row .run-cost { display: none; }
  .form-grid, .switch-row { grid-template-columns: 1fr; }
  .filter-tabs { overflow-x: auto; }
  .filter-tabs button { white-space: nowrap; }
  .security-summary { padding: 26px; }
  .shield-mark { display: none; }
  .playground-intro { padding: 25px 22px; }
  .playground-intro h2 { font-size: 31px; }
  .gpu-window-panel { grid-template-columns: 1fr; }
  .gpu-window-clock { text-align: left; }
  .gpu-window-actions { grid-column: auto; grid-template-columns: 1fr; }
  .verification-schedule, .proof-grid { grid-template-columns: 1fr; }
  .verification-schedule .field-full { grid-column: auto; }
  .stage-run-header { align-items: stretch; flex-direction: column; }
  .stage-run-header .drawer-actions { width: 100%; }
  .stage-empty { min-height: 450px; padding: 30px 20px; }
  .playground-stage { min-height: 560px; }
  .screenshot-gallery { width: 100vw; height: 100vh; max-width: none; max-height: none; border-radius: 0; }
  .screenshot-gallery-stage { padding: 10px; grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 7px; }
  .screenshot-gallery-header { padding: 18px 14px; gap: 10px; }
  .screenshot-gallery-view-toggle button { width: 30px; padding: 0; justify-content: center; }
  .screenshot-gallery-view-toggle button span { display: none; }
  .screenshot-gallery-grid { padding: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .screenshot-gallery-grid-item { grid-template-rows: minmax(0, 1fr) 43px; border-radius: 9px; }
  .screenshot-gallery-grid-meta { padding: 7px 8px; }
  .team-live-viewer-body { overflow-y: auto; padding: 8px; }
  .team-live-dialog .screenshot-gallery-header > div:first-child { flex: 1 1 auto; display: block; overflow: hidden; }
  .team-live-dialog .screenshot-gallery-header h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .team-live-dialog #team-live-viewer-meta { display: none; }
  .team-live-viewer-grid { height: auto; min-height: 100%; align-content: start; grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: none !important; }
  .team-live-viewer-grid .agent-live-tile { min-height: 190px; aspect-ratio: 16 / 9; }
  .team-live-viewer-footer { padding: 0 14px; }
  .team-live-viewer-footer p { display: none; }
  .video-replay-stage { padding: 10px; grid-template-columns: minmax(0, 1fr); }
  .screenshot-gallery-nav { width: 34px; height: 34px; font-size: 22px; }
  .screenshot-gallery-thumbnails { justify-content: flex-start; }
  .cost-breakdown-body { padding: 12px; }
  .cost-breakdown-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cost-total-primary { grid-column: 1 / -1; }
  .cost-breakdown-method > div:last-child { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/*
 * Grupa Quartz application skin
 *
 * Mirrors the public GrupaAI product and documentation surfaces: Inter type,
 * zinc ink, a warm white canvas, hairline borders, flat cards, and black used
 * only for decisive actions. Layout and product information remain unchanged.
 */
html { background: var(--quartz); scrollbar-color: #d4d4d8 var(--quartz); }
body {
  color: var(--ink);
  background: var(--quartz);
  background-image: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { color: #fff; background: #18181b; }
input::placeholder,
textarea::placeholder { color: #a1a1aa; opacity: 1; }
:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid #18181b;
  outline-offset: 2px;
}

/* Application shell */
.sidebar {
  color: #3f3f46;
  background: #fafafa;
  border-right-color: #e4e4e7;
  box-shadow: none;
}
.brand {
  align-self: flex-start;
  gap: 10px;
  padding: 0;
  color: #09090b;
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
  text-rendering: auto;
  text-shadow: none;
}
.brand span { font-size: 1.125rem; }
.brand-mark {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: fill;
  transform: none;
  filter: none;
}
.workspace-card {
  border-color: #e4e4e7;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}
.workspace-card .eyebrow { color: #a1a1aa; }
.workspace-card strong { color: #27272a; font-weight: 600; }
.role-pill {
  color: #3f3f46;
  background: #f4f4f5;
  box-shadow: inset 0 0 0 1px #e4e4e7;
}
.eyebrow {
  color: #71717a;
  font-weight: 600;
  letter-spacing: .13em;
}
.nav-list { gap: 3px; }
.nav-item {
  min-height: 40px;
  padding: 8px 10px;
  color: #71717a;
  border-radius: 7px;
  font-weight: 450;
}
.nav-item:hover { color: #18181b; background: #f4f4f5; }
.nav-item.active {
  color: #09090b;
  background: #f4f4f5;
  box-shadow: none;
  font-weight: 550;
}
.nav-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #a1a1aa;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0;
}
.nav-icon svg {
  width: 18px;
  height: 18px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-item:hover .nav-icon,
.nav-item.active .nav-icon { color: #3f3f46; background: transparent; box-shadow: none; }
.nav-count {
  min-width: 22px;
  color: #71717a;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e4e4e7;
}
.nav-item.active .nav-count { color: #3f3f46; background: #e4e4e7; box-shadow: none; }
.sidebar-footer { border-top-color: #e4e4e7; }
.sidebar-footer > a,
.sidebar-footer > button { color: #71717a; }
.sidebar-footer > a:hover,
.sidebar-footer > button:hover { color: #09090b; }
.avatar {
  color: #fff;
  background: #18181b;
  box-shadow: none;
  font-weight: 700;
}
.user-card strong { color: #27272a; font-weight: 600; }
.user-card small { color: #a1a1aa; }

.topbar {
  border-bottom-color: #e4e4e7;
  background: rgba(250, 250, 250, .94);
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(110%);
}
.topbar h1 { color: #09090b; font-weight: 700; letter-spacing: -.035em; }
.system-status { color: #71717a; }
.system-status i { background: #18181b; box-shadow: 0 0 0 3px #e4e4e7; }
.mobile-menu { color: #18181b; }

/* Actions and controls */
.button {
  border-radius: 10px;
  font-weight: 600;
  box-shadow: none;
  transition: color .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.button:hover { transform: none; }
.button-primary,
.button-dark {
  color: #fafafa;
  border-color: #18181b;
  background: #18181b;
  box-shadow: 0 1px 2px rgba(9, 9, 11, .08);
}
.button-primary:hover,
.button-dark:hover { color: #fff; border-color: #09090b; background: #09090b; box-shadow: 0 1px 2px rgba(9, 9, 11, .14); }
.button-ghost {
  color: #3f3f46;
  border-color: #e4e4e7;
  background: #fff;
  box-shadow: none;
}
.button-ghost:hover { color: #09090b; border-color: #d4d4d8; background: #fafafa; }
.text-button { color: #27272a; text-decoration: none; }
.text-button:hover { color: #09090b; text-decoration: underline; text-underline-offset: 3px; }
.icon-button {
  color: #71717a;
  border-color: #e4e4e7;
  background: #fff;
  box-shadow: none;
}
.icon-button:hover { color: #09090b; border-color: #d4d4d8; background: #fafafa; }

/* Marketing-style product banners */
.playground-intro,
.hero-panel,
.security-summary {
  color: #18181b;
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}
.playground-intro::after {
  content: none;
}
.playground-intro .eyebrow,
.hero-panel .eyebrow,
.security-summary .eyebrow {
  width: max-content;
  padding: 5px 10px;
  color: #fafafa;
  border-radius: 999px;
  background: #18181b;
  font-size: 9px;
  letter-spacing: .08em;
}
.playground-intro h2,
.hero-panel h2,
.security-summary h2 { color: #09090b; font-weight: 700; }
.playground-intro p,
.hero-panel p,
.security-summary p { color: #52525b; }

.hero-panel::before {
  background: radial-gradient(circle at 78% 44%, rgba(9, 9, 11, .035), transparent 25%);
}
.hero-panel h2 span { color: #09090b; }
.hero-panel .button-dark { color: #fafafa; background: #18181b; }
.hero-panel .button-dark:hover { color: #fff; background: #09090b; }
.orbit { border-color: #d4d4d8; }
.orbit i { background: #18181b; box-shadow: 0 0 0 4px #f4f4f5; }
.orbit-two i:last-child { background: #18181b; }
.core {
  width: 112px;
  height: 112px;
  flex-direction: column;
  gap: 2px;
  color: #fff;
  border-color: #18181b;
  background: #18181b;
  box-shadow: 0 10px 28px rgba(9, 9, 11, .12);
}
.core span {
  width: 42px;
  height: 42px;
  display: block;
  background: url('/assets/logo192.png') center / contain no-repeat;
  font-size: 0;
}
.core small { color: #d4d4d8; font-size: 6px; text-align: center; }

.security-summary {
  position: relative;
  overflow: hidden;
}
.security-summary::after {
  content: "";
  width: 260px;
  height: 260px;
  position: absolute;
  right: 4%;
  top: -95px;
  background: url('/assets/logo192.png') center / contain no-repeat;
  opacity: .03;
  pointer-events: none;
}
.security-summary > * { position: relative; z-index: 1; }
.shield-mark {
  color: #fff;
  border-color: #18181b;
  border-radius: 50%;
  background: #18181b;
  box-shadow: none;
  transform: none;
}
.shield-mark svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Cards, tables, and operational states */
.metric-card,
.panel,
.table-panel,
.worker-card {
  border-color: #e4e4e7;
  background: #fff;
  box-shadow: none;
}
.metric-card { border-radius: 12px; transition: border-color .14s ease, background .14s ease; }
.metric-card:hover { border-color: #d4d4d8; background: #fdfdfd; box-shadow: none; }
.metric-card > span { color: #71717a; font-weight: 500; }
.metric-card strong { color: #09090b; font-weight: 700; }
.metric-card small { color: #a1a1aa; }
.panel-header { border-color: #f0f0f1; }
.panel h3 { color: #18181b; font-weight: 600; }
.run-row:hover .run-copy strong { color: #09090b; }
.run-glyph,
.resource-icon,
.empty-state > span {
  color: #3f3f46;
  background: #f4f4f5;
  box-shadow: inset 0 0 0 1px #e4e4e7;
}
.run-copy small,
.empty-inline,
.empty-state p { color: #a1a1aa; }
.run-cost { color: #71717a; }
.status { box-shadow: inset 0 0 0 1px #e4e4e7; }
.status-running,
.status-pending,
.status-verifying { color: #3f3f46; background: #f4f4f5; }
.status-needs_approval { color: #18181b; background: #fff; box-shadow: inset 0 0 0 1px #a1a1aa; }
.status-stuck { color: #a16207; background: #fefce8; box-shadow: inset 0 0 0 1px #fde68a; }
.status-blocked { color: #a16207; background: #fefce8; box-shadow: inset 0 0 0 1px #fde68a; }
.status-completed { color: #15803d; background: #ecfdf3; box-shadow: inset 0 0 0 1px #bbf7d0; }
.status-ready { color: #fff; background: #18181b; box-shadow: none; }
.status-failed { color: #b42318; background: #fef2f2; box-shadow: inset 0 0 0 1px #fecaca; }
.status-expired { color: #b42318; background: #fef2f2; box-shadow: inset 0 0 0 1px #fecaca; }
.status-canceled,
.status-paused { color: #3f3f46; background: #e4e4e7; box-shadow: none; }
.attention-dot { background: #18181b; box-shadow: 0 0 0 4px #f4f4f5; }
.attention-item p { color: #71717a; }

.filter-tabs { border-color: #e4e4e7; background: #fff; box-shadow: none; }
.filter-tabs button { color: #71717a; }
.filter-tabs button:hover { color: #18181b; background: #f4f4f5; }
.filter-tabs button.active { color: #fff; background: #18181b; box-shadow: none; }
.search-box { border-color: #e4e4e7; background: #fff; box-shadow: none; }
.search-box:focus-within { border-color: #a1a1aa; box-shadow: 0 0 0 3px #f4f4f5; }
.search-box span { color: #a1a1aa; }
.search-box input { color: #18181b; }
th { color: #71717a; background: #fafafa; border-bottom-color: #e4e4e7; }
td { border-bottom-color: #f0f0f1; }
tbody tr:hover { background: #fafafa; }
.table-work small { color: #a1a1aa; }
.table-worker,
.table-date,
.table-duration,
.table-money { color: #71717a; }
.table-open { color: #a1a1aa; }

.section-intro p { color: #71717a; }
.worker-card { border-radius: 14px; }
.worker-card-top {
  color: #18181b;
  border-bottom: 1px solid #e4e4e7;
  background: #fff;
  box-shadow: none;
}
.worker-card-top::after {
  width: 150px;
  height: 150px;
  right: -40px;
  top: -48px;
  border: 0;
  background: url('/assets/logo192.png') center / contain no-repeat;
  box-shadow: none;
  opacity: .035;
}
.worker-avatar {
  color: #fff;
  border-color: #18181b;
  border-radius: 50%;
  background: #18181b;
  box-shadow: none;
}
.worker-card code { color: #a1a1aa; }
.worker-meta { color: #71717a; }
.worker-actions button { color: #3f3f46; border-color: #e4e4e7; background: #fff; }
.worker-actions button:hover { color: #09090b; border-color: #d4d4d8; background: #fafafa; }
.worker-actions button.primary { color: #fff; border-color: #18181b; background: #18181b; }
.worker-actions button.danger { color: #52525b; }
.resource-item small { color: #a1a1aa; }
.resource-item button { color: #71717a; }
.resource-item button:hover { color: #09090b; }

/* Forms and overlays */
.scrim { background: rgba(9, 9, 11, .42); backdrop-filter: blur(3px); }
dialog::backdrop { background: rgba(9, 9, 11, .42); backdrop-filter: blur(3px); }
.modal,
.secret-dialog {
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(9, 9, 11, .20);
}
.modal-header,
.modal-footer { background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); }
.modal-header { border-bottom-color: #f0f0f1; }
.modal-footer { border-top-color: #f0f0f1; }
.field > span,
fieldset legend { color: #3f3f46; font-weight: 600; }
.field b { color: #18181b; }
.field input,
.field textarea,
.field select {
  color: #18181b;
  border-color: #e4e4e7;
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
}
.field input:hover,
.field textarea:hover,
.field select:hover { border-color: #d4d4d8; }
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: #a1a1aa; box-shadow: 0 0 0 3px #f4f4f5; background: #fff; }
.field small { color: #a1a1aa; }
input[type="checkbox"],
input[type="radio"] { accent-color: #18181b; }
.choice-group label span { color: #71717a; border-color: #e4e4e7; background: #fff; }
.choice-group label span:hover { border-color: #d4d4d8; background: #fafafa; }
.choice-group input:checked + span { color: #fff; border-color: #18181b; background: #18181b; box-shadow: none; }
.switch-row label,
.toggle-line { border-color: #e4e4e7; background: #fafafa; }
.switch-row label:hover,
.toggle-line:hover { border-color: #d4d4d8; background: #fff; }
.switch-row small,
.toggle-line small { color: #a1a1aa; }
.secret-icon {
  color: #fff;
  border-radius: 50%;
  background: #18181b url('/assets/logo192.png') center / contain no-repeat;
  box-shadow: none;
  font-size: 0;
}
.secret-dialog p { color: #71717a; }
.secret-value { border-color: #d4d4d8; background: #f4f4f5; }
.secret-value code { color: #27272a; }
.secret-value button { color: #fff; background: #18181b; }

.run-drawer { background: #fff; box-shadow: -20px 0 60px rgba(9, 9, 11, .14); }
.drawer-header { border-bottom-color: #e4e4e7; background: rgba(255, 255, 255, .96); }
.drawer-header code,
.drawer-loading { color: #71717a; }
.drawer-meta span { color: #71717a; background: #f4f4f5; box-shadow: inset 0 0 0 1px #e4e4e7; }
.drawer-actions button { color: #3f3f46; border-color: #e4e4e7; background: #fff; }
.drawer-actions button:hover { color: #09090b; border-color: #d4d4d8; background: #fafafa; }
.drawer-actions button.primary { color: #fff; border-color: #18181b; background: #18181b; }
.drawer-actions button.danger { color: #52525b; }
.drawer-actions button.run-cancel { color: #b42318; border-color: #fecdca; background: #fff; }
.drawer-actions button.run-cancel:hover:not(:disabled) { color: #912018; border-color: #fda29b; background: #fef3f2; }
.outcome-box { color: #3f3f46; border-color: #e4e4e7; background: #fafafa; }
.outcome-card {
  overflow: hidden;
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(9, 9, 11, .035);
}
.outcome-summary {
  padding: 18px;
  display: grid;
  gap: 13px;
  background: linear-gradient(145deg, #fff, #fafafa);
}
.outcome-state {
  width: max-content;
  min-height: 25px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  color: #52525b;
  background: #f4f4f5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.outcome-state i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}
.outcome-state.success { color: #15803d; background: #ecfdf3; box-shadow: inset 0 0 0 1px #bbf7d0; }
.outcome-state.warning { color: #a16207; background: #fefce8; box-shadow: inset 0 0 0 1px #fde68a; }
.outcome-state.danger { color: #b42318; background: #fef2f2; box-shadow: inset 0 0 0 1px #fecaca; }
.outcome-narrative {
  min-width: 0;
  display: grid;
  gap: 9px;
  color: #3f3f46;
}
.outcome-narrative h4 {
  margin: 8px 0 0;
  color: #18181b;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .025em;
}
.outcome-narrative h4:first-child { margin-top: 0; }
.outcome-narrative p {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
}
.outcome-narrative-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: #52525b;
  font-size: 11px;
  line-height: 1.55;
}
.outcome-narrative-list li { padding-left: 2px; overflow-wrap: anywhere; }
.outcome-narrative-list li::marker { color: #a1a1aa; }
.outcome-narrative-list strong { color: #27272a; font-weight: 700; }
.outcome-facts {
  margin: 0;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid #f0f0f1;
  background: #fafafa;
}
.outcome-fact {
  min-width: 0;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  background: #fff;
}
.outcome-fact-wide { grid-column: 1 / -1; }
.outcome-fact dt {
  margin: 0 0 6px;
  color: #71717a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.outcome-fact dd {
  min-width: 0;
  margin: 0;
  color: #27272a;
  overflow-wrap: anywhere;
  font-size: 11px;
  font-weight: 620;
  line-height: 1.55;
}
.outcome-nested {
  min-width: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.outcome-fact-nested { padding: 9px 10px; background: #fafafa; }
.outcome-fact-nested dt { margin-bottom: 4px; font-size: 8px; }
.outcome-collection { padding: 12px; border-top: 1px solid #f0f0f1; background: #fafafa; }
.outcome-value-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: #3f3f46;
  font-size: 11px;
  line-height: 1.55;
}
.outcome-value-list li { overflow-wrap: anywhere; }
.outcome-value-list li::marker { color: #a1a1aa; font-weight: 700; }
.outcome-record-list {
  padding: 0;
  list-style: none;
  counter-reset: outcome-record;
}
.outcome-record-list > li {
  min-width: 0;
  padding: 10px;
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  background: #fff;
  counter-increment: outcome-record;
}
.outcome-record-list > li::before {
  content: counter(outcome-record);
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #52525b;
  background: #f4f4f5;
  font-size: 9px;
  font-weight: 800;
}
.outcome-record-list > li > * { min-width: 0; }
.outcome-boolean {
  padding: 3px 7px;
  display: inline-flex;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 750;
}
.outcome-boolean.yes { color: #15803d; background: #ecfdf3; }
.outcome-boolean.no { color: #b42318; background: #fef2f2; }
.outcome-number { font-variant-numeric: tabular-nums; }
.outcome-link { color: #2563eb; text-decoration: underline; text-decoration-color: #bfdbfe; text-underline-offset: 3px; }
.outcome-link:hover { color: #1d4ed8; text-decoration-color: currentColor; }
.outcome-empty { color: #a1a1aa; font-style: italic; font-weight: 500; }
.outcome-empty-card { margin: 0; padding: 18px; font-size: 11px; }
.outcome-original { border-top: 1px solid #f0f0f1; background: #fff; }
.outcome-original > summary {
  padding: 11px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #71717a;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .035em;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.outcome-original > summary::-webkit-details-marker { display: none; }
.outcome-original > summary::after { content: "+"; color: #a1a1aa; font-size: 14px; font-weight: 500; }
.outcome-original[open] > summary::after { content: "−"; }
.outcome-original > summary:hover { color: #27272a; background: #fafafa; }
.outcome-original pre {
  max-height: 260px;
  margin: 0 12px 12px;
  padding: 13px;
  overflow: auto;
  border-radius: 9px;
  color: #d4d4d8;
  background: #18181b;
  font: 10px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.error-box { color: #18181b; border-color: #a1a1aa; background: #f4f4f5; }
.verification-item { color: #52525b; background: #f4f4f5; box-shadow: inset 0 0 0 1px #e4e4e7; }
.approval-card { border-color: #d4d4d8; background: #fafafa; }
.approval-card p { color: #52525b; }
.approval-actions button { color: #fff; background: #18181b; }
.approval-actions button:last-child { background: #52525b; }
.toast { border-color: #e4e4e7; background: #fff; box-shadow: 0 14px 40px rgba(9, 9, 11, .12); }
.toast i,
.toast.error i { background: #18181b; }
.toast p { color: #71717a; }

/* Playground details */
.gpu-window-panel {
  border-color: #e4e4e7;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}
.gpu-window-panel p,
.gpu-window-meta,
.gpu-window-clock > span,
.gpu-window-clock small { color: #71717a; }
.gpu-window-state { color: #52525b; background: #f4f4f5; }
.gpu-window-state.active { color: #fff; background: #18181b; }
.gpu-window-state.draining { color: #18181b; background: #e4e4e7; }
.gpu-window-meta span + span::before { background: #a1a1aa; }
.gpu-window-clock strong { color: #18181b; }
.sandbox-chip { color: #3f3f46; border-color: #d4d4d8; background: #f4f4f5; }
.verification-schedule { border-color: #e4e4e7; background: #fafafa; }
.code-sample {
  border-color: #27272a;
  border-radius: 12px;
  background: #18181b;
  box-shadow: none;
}
.code-sample-header { color: #fff; border-bottom-color: #3f3f46; }
.code-sample-header .eyebrow { color: #a1a1aa; }
.code-sample-header select { color: #d4d4d8; border-color: #52525b; background: #27272a; }
.code-sample pre { color: #e4e4e7; }
.code-sample > p { color: #a1a1aa; border-top-color: #3f3f46; }
.live-indicator { color: #71717a; background: #f4f4f5; box-shadow: inset 0 0 0 1px #e4e4e7; }
.live-indicator i { background: #a1a1aa; }
.live-indicator.live { color: #18181b; background: #e4e4e7; }
.live-indicator.live i { background: #18181b; box-shadow: 0 0 0 4px rgba(24, 24, 27, .08); }
.stage-empty { border: 1px solid #e4e4e7; background: #fafafa; }
.stage-empty .stage-mark {
  color: transparent;
  border-radius: 50%;
  background: #18181b url('/assets/logo192.png') center / contain no-repeat;
  box-shadow: 0 8px 24px rgba(9, 9, 11, .10);
  font-size: 0;
}
.stage-empty p { color: #71717a; }
.stage-run-header { border-color: #e4e4e7; background: #fafafa; }
.stage-run-header code,
.stage-status { color: #71717a; }
.proof-card { border-color: #e4e4e7; background: #fafafa; }
.proof-card .proof-image { border-bottom-color: #e4e4e7; background: #f4f4f5; }
.proof-card .proof-replay { color: #d4d4d8; background: #18181b; }
.proof-card .proof-kind { color: #52525b; }
.proof-card p,
.proof-card small { color: #71717a; }
.proof-card .proof-pass,
.proof-card .proof-fail { color: #18181b; }
.proof-verification { border-color: #d4d4d8; background: #fafafa; }
.verification-queue-panel .panel-header small,
.verification-queue-item small { color: #a1a1aa; }
.verification-queue-item:hover strong { color: #09090b; }

@media (max-width: 860px) {
  .sidebar { box-shadow: 18px 0 50px rgba(9, 9, 11, .12); }
}

@media (max-width: 560px) {
  .playground-intro .eyebrow,
  .hero-panel .eyebrow,
  .security-summary .eyebrow { padding: 4px 8px; }
  .outcome-facts,
  .outcome-nested { grid-template-columns: 1fr; }
}

/* Admin membership */
.security-access-hero {
  min-height: 218px;
  padding: 31px 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: center;
  gap: 34px;
}
.security-access-hero::after { display: none; }
.security-hero-copy { min-width: 0; }
.security-hero-copy h2 { max-width: 650px; }
.security-hero-copy p { max-width: 700px; }
.security-hero-signals {
  margin-top: 19px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.security-signal,
.security-preview-label {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #71717a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .035em;
}
.security-signal {
  padding: 0 10px;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 99px;
  background: #f0fdf4;
}
.security-signal i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .12);
}
.security-preview-label::before {
  content: "";
  width: 1px;
  height: 14px;
  margin-right: 1px;
  background: #e4e4e7;
}
.security-identity-mark {
  width: 220px;
  height: 150px;
  position: relative;
  justify-self: end;
}
.security-identity-mark::before {
  content: "";
  width: 54px;
  height: 54px;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  border-radius: 50%;
  background: #18181b url('/assets/logo192.png') center / 54px 54px no-repeat;
  box-shadow: 0 0 0 8px #fff, 0 12px 28px rgba(9, 9, 11, .14);
  transform: translate(-50%, -50%);
}
.security-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid #e4e4e7;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
}
.security-orbit-one { width: 192px; height: 112px; }
.security-orbit-two { width: 126px; height: 72px; border-style: dashed; }
.security-person {
  width: 32px;
  height: 32px;
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  color: #3f3f46;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #e4e4e7;
  box-shadow: 0 4px 14px rgba(9, 9, 11, .12);
  font-size: 9px;
  font-weight: 800;
}
.security-person-one { left: 94px; top: 1px; color: #fff; background: #3f3f46; }
.security-person-two { left: 3px; top: 71px; }
.security-person-three { right: 6px; bottom: 8px; background: #fafafa; }

.security-metrics {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  background: #fff;
}
.security-metrics article {
  min-width: 0;
  min-height: 113px;
  padding: 19px 21px;
  display: grid;
  align-content: center;
  gap: 5px;
  border-left: 1px solid #f0f0f1;
}
.security-metrics article:first-child { border-left: 0; }
.security-metrics article > span {
  color: #71717a;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.security-metrics strong {
  overflow: hidden;
  color: #18181b;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -.045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.security-metrics small { color: #a1a1aa; font-size: 9px; }
.security-members-panel {
  margin-bottom: 16px;
  overflow: hidden;
  padding: 0;
}
.security-members-header {
  min-height: auto;
  margin: 0;
  padding: 23px 24px 17px;
  align-items: center;
}
.security-members-header p {
  max-width: 650px;
  margin: 1px 0 0;
  color: #8a8a92;
  font-size: 10px;
  line-height: 1.45;
}
.security-members-toolbar {
  padding: 0 24px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.security-member-search {
  width: min(360px, 48%);
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid #e4e4e7;
  border-radius: 9px;
  background: #fff;
}
.security-member-search:focus-within { border-color: #a1a1aa; box-shadow: 0 0 0 3px #f4f4f5; }
.security-member-search svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: #a1a1aa;
  stroke-linecap: round;
  stroke-width: 1.7;
}
.security-member-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #18181b;
  background: transparent;
  font-size: 10px;
}
.security-member-filters { display: flex; gap: 7px; }
.security-member-filters select {
  height: 38px;
  min-width: 126px;
  padding: 0 28px 0 11px;
  border: 1px solid #e4e4e7;
  border-radius: 9px;
  outline: 0;
  color: #52525b;
  background: #fff;
  font-size: 10px;
}
.security-member-table-wrap { overflow-x: auto; border-top: 1px solid #f0f0f1; }
.security-member-table { min-width: 920px; table-layout: auto; }
.security-member-table th {
  width: auto;
  padding: 11px 14px;
  color: #8b8b94;
  background: #fafafa;
  font-size: 8px;
}
.security-member-table th:first-child { width: 24%; padding-left: 24px; }
.security-member-table th:nth-child(2) { width: 20%; }
.security-member-table th:nth-child(3) { width: 17%; }
.security-member-table th:nth-child(4) { width: 16%; }
.security-member-table th:nth-child(5) { width: 15%; }
.security-member-table th:last-child { width: 72px; padding-right: 24px; }
.security-member-table td {
  height: 72px;
  padding: 11px 14px;
  border-bottom-color: #f4f4f5;
}
.security-member-table td:first-child { padding-left: 24px; }
.security-member-table td:last-child { padding-right: 24px; }
.security-member-table tbody tr { cursor: pointer; transition: background .16s ease, box-shadow .16s ease; }
.security-member-table tbody tr:hover { background: #fafafa; }
.security-member-table tbody tr:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 2px #27272a;
}
.security-member-table tbody tr:last-child td { border-bottom: 0; }
.security-member-row-removed { opacity: .58; }
.security-member-person {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.security-member-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: #27272a;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .02em;
}
.security-member-person-copy,
.security-member-detail {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.security-member-name-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.security-member-name-line strong,
.security-member-detail strong {
  overflow: hidden;
  color: #27272a;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.security-member-person-copy > small,
.security-member-detail small {
  overflow: hidden;
  color: #a1a1aa;
  font-size: 8px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.security-member-name-line em {
  padding: 2px 5px;
  color: #71717a;
  border: 1px solid #e4e4e7;
  border-radius: 4px;
  background: #fafafa;
  font-size: 7px;
  font-style: normal;
  font-weight: 750;
  text-transform: uppercase;
}
.security-member-access { display: grid; justify-items: start; gap: 6px; }
.security-role-badge {
  padding: 3px 7px;
  border: 1px solid #d4d4d8;
  border-radius: 99px;
  color: #52525b;
  background: #fff;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.security-role-admin { color: #fff; border-color: #18181b; background: #18181b; }
.security-role-viewer { color: #71717a; border-color: #e4e4e7; background: #f4f4f5; }
.security-member-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #71717a;
  font-size: 8px;
  font-weight: 650;
}
.security-member-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.security-member-status-active { color: #15803d; }
.security-member-status-pending { color: #a16207; }
.security-member-status-suspended { color: #b42318; }
.security-member-status-removed { color: #71717a; }
.security-manage-button {
  min-width: 55px;
  min-height: 29px;
  border: 1px solid #e4e4e7;
  border-radius: 7px;
  color: #52525b;
  background: #fff;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}
.security-manage-button:hover { color: #18181b; border-color: #a1a1aa; background: #fafafa; }
.security-member-empty { padding: 32px 24px; color: #a1a1aa; text-align: center; font-size: 10px; }


.security-dialog { width: min(640px, calc(100vw - 32px)); }
.security-dialog .modal-header p {
  max-width: 470px;
  margin: 6px 0 0;
  color: #8a8a92;
  font-size: 9px;
  line-height: 1.45;
}
.security-prototype-note {
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e4e4e7;
  border-radius: 9px;
  background: #fafafa;
}
.security-prototype-note span {
  padding: 3px 6px;
  color: #fff;
  border-radius: 99px;
  background: #27272a;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.security-prototype-note p { margin: 0; color: #71717a; font-size: 9px; }
.security-member-profile {
  padding: 13px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  background: #fafafa;
}
.security-member-profile > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: #27272a;
  font-size: 10px;
  font-weight: 800;
}
.security-member-profile > div { min-width: 0; display: grid; gap: 4px; }
.security-member-profile strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.security-member-profile small { overflow: hidden; color: #8a8a92; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.security-user-usage {
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  background: #fff;
}
.security-user-usage article {
  min-width: 0;
  padding: 14px 15px;
  display: grid;
  align-content: center;
  gap: 5px;
  border-left: 1px solid #f0f0f1;
}
.security-user-usage article:first-child { border-left: 0; }
.security-user-usage span {
  color: #8a8a92;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.security-user-usage strong {
  overflow: hidden;
  color: #18181b;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.security-user-usage small {
  overflow: hidden;
  color: #a1a1aa;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.security-member-modal-status {
  padding: 5px 8px;
  border-radius: 99px;
  font-size: 8px;
  font-style: normal;
  font-weight: 750;
}
.security-member-modal-status-active { color: #15803d; background: #f0fdf4; }
.security-member-modal-status-pending { color: #a16207; background: #fefce8; }
.security-member-modal-status-suspended { color: #b42318; background: #fef2f2; }
.security-member-modal-status-removed { color: #71717a; background: #f4f4f5; }
.security-member-modal-footer { display: grid; grid-template-columns: auto 1fr auto auto; }
.security-danger-action { color: #b42318; }

@media (max-width: 1120px) {
  .security-metrics { grid-template-columns: 1fr 1fr; }
  .security-metrics article:nth-child(3) { border-left: 0; border-top: 1px solid #f0f0f1; }
  .security-metrics article:nth-child(4) { border-top: 1px solid #f0f0f1; }
}

@media (max-width: 760px) {
  .security-access-hero { grid-template-columns: 1fr; }
  .security-identity-mark { display: none; }
  .security-members-header,
  .security-members-toolbar { align-items: stretch; flex-direction: column; }
  .security-member-search { width: 100%; }
  .security-member-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .security-member-filters select { width: 100%; }
  .security-member-table-wrap { padding: 12px; background: #fafafa; }
  .security-member-table { min-width: 0; display: block; }
  .security-member-table thead { display: none; }
  .security-member-table tbody { display: grid; gap: 10px; }
  .security-member-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border: 1px solid #e4e4e7;
    border-radius: 11px;
    background: #fff;
  }
  .security-member-table td,
  .security-member-table td:first-child,
  .security-member-table td:last-child {
    height: auto;
    padding: 12px;
    display: block;
    border: 0;
  }
  .security-member-table td:first-child { grid-column: 1 / -1; border-bottom: 1px solid #f0f0f1; }
  .security-member-table td:last-child { grid-column: 1 / -1; padding-top: 4px; }
  .security-member-table td:nth-child(2)::before,
  .security-member-table td:nth-child(3)::before,
  .security-member-table td:nth-child(4)::before,
  .security-member-table td:nth-child(5)::before {
    margin-bottom: 6px;
    display: block;
    color: #a1a1aa;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .security-member-table td:nth-child(2)::before { content: "Organization"; }
  .security-member-table td:nth-child(3)::before { content: "Access"; }
  .security-member-table td:nth-child(4)::before { content: "30-day billed usage"; }
  .security-member-table td:nth-child(5)::before { content: "Last active"; }
  .security-manage-button { width: 100%; min-height: 34px; }
}

@media (max-width: 560px) {
  .security-access-hero { min-height: 0; padding: 25px 23px; }
  .security-hero-signals { align-items: flex-start; flex-direction: column; }
  .security-preview-label::before { display: none; }
  .security-metrics { grid-template-columns: 1fr; }
  .security-metrics article,
  .security-metrics article:nth-child(2),
  .security-metrics article:nth-child(4) { min-height: 96px; border-left: 0; border-top: 1px solid #f0f0f1; }
  .security-metrics article:first-child { border-top: 0; }
  .security-member-filters,
  .security-member-table tr,
  .security-dialog .form-grid { grid-template-columns: 1fr; }
  .security-member-table td:first-child,
  .security-member-table td:last-child { grid-column: auto; }
  .security-member-table td:first-child { border-bottom: 1px solid #f0f0f1; }
  .security-member-table td:last-child { padding-top: 4px; }
  .security-member-modal-footer { grid-template-columns: 1fr 1fr; }
  .security-member-modal-footer > span { display: block; }
  .security-member-modal-footer .security-danger-action { grid-column: 1 / -1; }
  .security-user-usage { grid-template-columns: 1fr; }
  .security-user-usage article { border-top: 1px solid #f0f0f1; border-left: 0; }
  .security-user-usage article:first-child { border-top: 0; }
}

/* Playground request contract preview */
.playground-request-tabs {
  padding: 3px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  border: 1px solid #e4e4e7;
  border-radius: 11px;
  background: #f4f4f5;
}
.playground-request-tabs button {
  min-width: 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  color: #71717a;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  transition: color .14s ease, background .14s ease, box-shadow .14s ease;
}
.playground-request-tabs button:hover { color: #18181b; }
.playground-request-tabs button.active {
  color: #18181b;
  background: #fff;
  box-shadow: 0 1px 2px rgba(9, 9, 11, .08), inset 0 0 0 1px rgba(228, 228, 231, .85);
}
.playground-tab-panel { display: grid; gap: 15px; }

.field-title {
  width: fit-content;
  max-width: 100%;
  min-height: 17px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  border: 0;
  color: #3f3f46;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
}
.playground-request-tabs button:focus-visible,
.advanced-section summary:focus-visible { outline: 2px solid #a1a1aa; outline-offset: 3px; }
.field-title b { color: #18181b; }
.field input[readonly] { color: #52525b; background: #f4f4f5; cursor: default; }
.field textarea[name="resources.mcp"],
.field textarea[name="resources.customTools"],
.field textarea[name="advanced.outcome"],
.field textarea[name="metadata"] { font: 13px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }

.playground-toggle-card {
  min-width: 0;
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  background: #fafafa;
  transition: border-color .14s ease, background .14s ease;
}
.playground-toggle-card:hover { border-color: #d4d4d8; background: #fff; }
.playground-toggle-card > input { flex: 0 0 auto; margin: 2px 0 0; }
.playground-toggle-card > span { min-width: 0; display: grid; gap: 3px; }
.switch-row .playground-toggle-card > span > label,
.advanced-toggle-grid .playground-toggle-card > span > label,
.advanced-fields > .playground-toggle-card > span > label {
  margin: 0;
  padding: 0;
  display: block;
  border: 0;
  border-radius: 0;
  color: #a1a1aa;
  background: transparent;
  font-size: 11px;
  line-height: 1.35;
  cursor: pointer;
}
.playground-toggle-card .field-title { font-size: 11px; }

.advanced-preview-note {
  padding: 12px 13px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  background: #fafafa;
}
.advanced-preview-note span {
  padding: 4px 7px;
  border-radius: 999px;
  color: #fff;
  background: #18181b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.advanced-preview-note p { margin: 0; color: #71717a; font-size: 11px; line-height: 1.5; }
.advanced-section {
  overflow: hidden;
  border: 1px solid #e4e4e7;
  border-radius: 11px;
  background: #fff;
}
.advanced-section summary {
  padding: 13px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  list-style: none;
  cursor: pointer;
  transition: background .14s ease;
}
.advanced-section summary::-webkit-details-marker { display: none; }
.advanced-section summary:hover { background: #fafafa; }
.advanced-section summary > span { min-width: 0; display: grid; gap: 3px; }
.advanced-section summary strong { color: #18181b; font-size: 12px; font-weight: 650; }
.advanced-section summary small { overflow: hidden; color: #71717a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.advanced-section summary > i {
  width: 18px;
  height: 18px;
  position: relative;
  display: block;
  border: 1px solid #e4e4e7;
  border-radius: 50%;
}
.advanced-section summary > i::before,
.advanced-section summary > i::after {
  content: "";
  width: 6px;
  height: 1px;
  position: absolute;
  left: 5px;
  top: 8px;
  background: #71717a;
}
.advanced-section summary > i::after { transform: rotate(90deg); transition: transform .14s ease; }
.advanced-section[open] summary { border-bottom: 1px solid #f0f0f1; }
.advanced-section[open] summary > i::after { transform: rotate(0); }
.advanced-fields {
  padding: 15px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: #fdfdfd;
}
.advanced-fields .field-full { grid-column: 1 / -1; }
.file-attachment-field { display: grid; gap: 8px; }
.composer-file-attachment {
  margin-top: 2px;
  padding: 9px;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  background: #fafafa;
}
.composer-file-attachment .file-dropzone { min-height: 58px; padding: 9px 10px; border-color: #d4d4d8; }
.composer-file-attachment .file-attachment-help { padding: 0 3px; color: #71717a; }
.file-dropzone {
  min-height: 72px;
  padding: 12px 13px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px dashed #d4d4d8;
  border-radius: 11px;
  background: #fff;
  transition: border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
.file-dropzone:hover,
.file-dropzone.is-dragging { border-color: #71717a; background: #fafafa; box-shadow: inset 0 0 0 1px #e4e4e7; }
.file-dropzone-mark {
  width: 34px;
  height: 34px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid #e4e4e7;
  border-radius: 9px;
  background: #fafafa;
}
.file-dropzone-mark::before,
.file-dropzone-mark::after,
.file-dropzone-mark span::before {
  content: "";
  position: absolute;
  border: 1.5px solid #52525b;
}
.file-dropzone-mark::before { width: 10px; height: 14px; border-radius: 2px; transform: rotate(38deg); }
.file-dropzone-mark::after { width: 5px; height: 10px; border-top: 0; border-radius: 0 0 5px 5px; transform: rotate(38deg) translate(1px, 0); }
.file-dropzone-mark span::before { width: 3px; height: 7px; border-top: 0; border-radius: 0 0 4px 4px; transform: rotate(38deg) translate(0, -1px); }
.file-dropzone > div:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.file-dropzone strong { color: #27272a; font-size: 12px; font-weight: 650; }
.file-dropzone small { overflow: hidden; color: #71717a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.file-dropzone .button { min-height: 31px; padding: 0 11px; font-size: 10px; }
.file-selection-list:empty { display: none; }
.file-selection-list { display: grid; gap: 6px; }
.file-selection-item {
  min-width: 0;
  padding: 8px 9px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 9px;
  border: 1px solid #e4e4e7;
  border-radius: 9px;
  background: #fafafa;
}
.file-selection-type {
  width: 34px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #52525b;
  background: #e4e4e7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}
.file-selection-copy { min-width: 0; display: grid; gap: 2px; }
.file-selection-copy strong { overflow: hidden; color: #27272a; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.file-selection-copy small { color: #71717a; font-size: 10px; }
.file-selection-remove {
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  color: #71717a;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
}
.file-selection-remove:hover { color: #18181b; background: #e4e4e7; }
.deliverables-list { display: grid; gap: 8px; }
.deliverable-card {
  min-width: 0;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  color: #18181b;
  background: linear-gradient(135deg, #f8fbff, #eff6ff);
  text-decoration: none;
  transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}
.deliverable-card:hover { border-color: #60a5fa; box-shadow: 0 7px 18px rgba(37,99,235,.09); transform: translateY(-1px); }
.deliverable-icon {
  min-width: 42px;
  height: 36px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #2563eb;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .05em;
}
.deliverable-copy { min-width: 0; display: grid; gap: 3px; }
.deliverable-copy strong,
.deliverable-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deliverable-copy strong { font-size: 11px; font-weight: 700; }
.deliverable-copy small { color: #64748b; font-size: 10px; }
.deliverable-download { color: #2563eb; font-size: 10px; font-weight: 750; white-space: nowrap; }
.advanced-toggle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.advanced-approvals { display: grid; grid-template-columns: 1fr 1fr; }
.advanced-approvals legend { margin-bottom: 8px; }
.advanced-approvals legend .field-title { color: #3f3f46; font-size: 11px; }
.advanced-approvals label span { min-height: 31px; display: grid; place-items: center; font-size: 11px; text-align: center; }
.sdk-behavior {
  overflow: hidden;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  background: #fff;
}
.sdk-behavior-heading {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #f0f0f1;
  background: #fafafa;
}
.sdk-behavior-heading span { color: #3f3f46; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sdk-behavior-heading small { color: #71717a; font-size: 10px; }
.sdk-behavior-row {
  min-height: 37px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #f4f4f5;
}
.sdk-behavior-row:first-of-type { border-top: 0; }
.sdk-behavior-row .field-title { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.sdk-behavior-row > span { color: #52525b; font-size: 11px; text-align: right; }

.credential-zero-secret {
  padding: 14px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0fdf4, #f8fffb);
}
.credential-zero-secret-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  color: #15803d;
  background: #fff;
}
.credential-zero-secret-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.credential-zero-secret > div { min-width: 0; display: grid; gap: 3px; }
.credential-zero-secret strong { color: #14532d; font-size: 12px; }
.credential-zero-secret p { margin: 0; color: #3f6f4d; font-size: 10px; line-height: 1.5; }
.credential-zero-secret em { padding: 5px 7px; border-radius: 999px; color: #166534; background: #dcfce7; font-size: 10px; font-style: normal; font-weight: 800; white-space: nowrap; }

.credential-access-section {
  overflow: hidden;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  background: #fff;
}
.credential-access-heading {
  min-height: 58px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #f0f0f1;
  background: #fafafa;
}
.credential-access-heading > span { color: #a1a1aa; font: 700 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.credential-access-heading-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; color: #2563eb !important; background: #eff6ff; }
.credential-access-heading-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.75; }
.credential-access-heading > div { min-width: 0; display: grid; gap: 2px; }
.credential-access-heading strong { color: #18181b; font-size: 12px; }
.credential-access-heading small { overflow: hidden; color: #71717a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.credential-access-heading .button { min-height: 30px; padding: 6px 9px; font-size: 10px; white-space: nowrap; }
.credential-access-section > p { margin: 0; padding: 11px 12px 0; color: #71717a; font-size: 10px; line-height: 1.55; }
.credential-access-list { padding: 10px 12px 12px; display: grid; gap: 7px; }
.credential-access-empty { min-height: 48px; padding: 10px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px dashed #d4d4d8; border-radius: 9px; color: #a1a1aa; background: #fafafa; }
.credential-access-empty span { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid #d4d4d8; border-radius: 50%; font-size: 12px; }
.credential-access-empty p { margin: 0; font-size: 10px; }
.credential-access-item {
  min-width: 0;
  padding: 9px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 9px;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  background: #fff;
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
.credential-access-item.included { border-color: #bfdbfe; background: #f8fbff; box-shadow: inset 3px 0 #2563eb; }
.credential-access-mark { width: 30px; height: 30px; grid-column: 1; grid-row: 1 / span 2; display: grid; place-items: center; border-radius: 8px; color: #3f3f46; background: #f4f4f5; font-size: 11px; font-weight: 800; }
.credential-access-item.included .credential-access-mark { color: #1d4ed8; background: #dbeafe; }
.credential-access-copy { min-width: 0; grid-column: 2; grid-row: 1 / span 2; display: grid; gap: 2px; }
.credential-access-copy strong, .credential-access-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.credential-access-copy strong { color: #27272a; font-size: 10px; }
.credential-access-copy small { color: #a1a1aa; font-size: 10px; }
.credential-access-switch { min-width: 74px; grid-column: 3; grid-row: 1; display: flex; align-items: center; justify-content: flex-end; gap: 5px; color: #71717a; cursor: pointer; }
.credential-access-switch input { width: 1px; height: 1px; position: absolute; opacity: 0; pointer-events: none; }
.credential-access-switch-control { width: 25px; height: 14px; position: relative; border-radius: 999px; background: #d4d4d8; transition: background .14s ease; }
.credential-access-switch-control::after { content: ""; width: 10px; height: 10px; position: absolute; left: 2px; top: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.18); transition: transform .14s ease; }
.credential-access-switch input:checked + .credential-access-switch-control { background: #2563eb; }
.credential-access-switch input:checked + .credential-access-switch-control::after { transform: translateX(11px); }
.credential-access-switch input:focus-visible + .credential-access-switch-control { outline: 2px solid #60a5fa; outline-offset: 2px; }
.credential-access-switch small { font-size: 10px; font-weight: 700; white-space: nowrap; }
.credential-access-remove { grid-column: 3; grid-row: 2; justify-self: end; padding: 0; border: 0; color: #a1a1aa; background: transparent; font-size: 10px; cursor: pointer; }
.credential-access-remove:hover { color: #b91c1c; }
.credential-access-run-note { padding: 10px 12px; display: flex; align-items: flex-start; gap: 9px; border: 1px solid #e4e4e7; border-radius: 10px; background: #fafafa; }
.credential-access-run-note > span { width: 7px; height: 7px; flex: 0 0 auto; margin-top: 4px; border-radius: 50%; background: #2563eb; box-shadow: 0 0 0 4px #dbeafe; }
.credential-access-run-note > div { min-width: 0; display: grid; gap: 2px; }
.credential-access-run-note strong { color: #3f3f46; font-size: 10px; }
.credential-access-run-note p { margin: 0; color: #71717a; font-size: 10px; line-height: 1.45; }

.credential-access-dialog { width: min(680px, calc(100vw - 28px)); }
.credential-external-notice { padding: 12px; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 10px; border: 1px solid #bfdbfe; border-radius: 10px; background: #eff6ff; }
.credential-external-notice > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: #1d4ed8; background: #fff; }
.credential-external-notice svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.credential-external-notice p { margin: 0; color: #475569; font-size: 11px; line-height: 1.5; }
.credential-external-notice strong { color: #1e3a8a; }
.vault-provider-picker { display: grid; gap: 12px; }
.vault-provider-picker-copy { display: grid; gap: 4px; }
.vault-provider-picker-copy strong { color: #18181b; font-size: 13px; }
.vault-provider-picker-copy p { margin: 0; color: #71717a; font-size: 10px; line-height: 1.5; }
.vault-provider-options { max-height: min(430px, 52vh); overflow: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 1px; scrollbar-width: thin; }
.vault-provider-option {
  min-width: 0;
  min-height: 58px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  color: #18181b;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}
.vault-provider-option:hover { border-color: #93c5fd; box-shadow: 0 5px 14px rgba(37, 99, 235, .08); transform: translateY(-1px); }
.vault-provider-option:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }
.vault-provider-option > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.vault-provider-option strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.vault-provider-option small { overflow: hidden; color: #71717a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.vault-provider-option i { color: #a1a1aa; font-size: 14px; font-style: normal; }
.vault-provider-badge { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: #1d4ed8; background: #eff6ff; font: 800 10px/1 Inter, sans-serif; }
.vault-provider-selected { padding: 9px 10px; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 9px; border: 1px solid #dbeafe; border-radius: 10px; background: #f8fbff; }
.vault-provider-selected > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.vault-provider-selected strong { color: #1e3a8a; font-size: 11px; }
.vault-provider-selected small { color: #64748b; font-size: 10px; }
.vault-provider-selected .button { min-height: 28px; padding: 5px 8px; font-size: 10px; }
.credential-access-dialog-fields { display: grid; gap: 13px; }
.credential-access-handoff { min-height: 88px; padding: 16px; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 12px; border: 1px solid #bbf7d0; border-radius: 11px; background: #f0fdf4; }
.credential-access-handoff-mark { width: 30px; height: 30px; position: relative; border: 2px solid #86efac; border-top-color: #15803d; border-radius: 50%; animation: credential-handoff-spin 1s linear infinite; }
.credential-access-handoff > div { display: grid; gap: 4px; }
.credential-access-handoff strong { color: #14532d; font-size: 12px; }
.credential-access-handoff p { margin: 0; color: #3f6f4d; font-size: 10px; line-height: 1.5; }
@keyframes credential-handoff-spin { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
  .playground-request-tabs button { padding: 9px; }
  .advanced-preview-note { grid-template-columns: 1fr; }
  .advanced-fields,
  .advanced-toggle-grid,
  .advanced-approvals { grid-template-columns: 1fr; }
  .advanced-fields .field-full { grid-column: auto; }
  .file-dropzone { grid-template-columns: 34px minmax(0, 1fr); }
  .file-dropzone .button { grid-column: 1 / -1; width: 100%; }
  .deliverable-card { grid-template-columns: 42px minmax(0, 1fr); }
  .deliverable-download { grid-column: 2; }
  .sdk-behavior-heading { align-items: flex-start; flex-direction: column; }
  .credential-zero-secret { grid-template-columns: 34px minmax(0, 1fr); }
  .credential-zero-secret em { grid-column: 2; justify-self: start; }
  .credential-access-heading { grid-template-columns: 22px minmax(0, 1fr); }
  .credential-access-heading .button { grid-column: 2; justify-self: start; }
  .credential-access-item { grid-template-columns: 30px minmax(0, 1fr); }
  .credential-access-mark { grid-row: 1 / span 2; }
  .credential-access-copy { grid-row: 1 / span 2; }
  .credential-access-switch { grid-column: 2; grid-row: 3; justify-self: start; justify-content: flex-start; margin-top: 4px; }
  .credential-access-remove { grid-column: 2; grid-row: 3; align-self: center; }
  .vault-provider-options { grid-template-columns: 1fr; }
  .vault-provider-selected { grid-template-columns: 32px minmax(0, 1fr); }
  .vault-provider-selected .button { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .credential-access-handoff-mark { animation: none; }
  .vault-provider-option { transition: none; }
  .vault-provider-option:hover { transform: none; }
}

/* Billing, vault, and developer access */

.billing-account-summary {
  position: relative;
  overflow: hidden;
  padding: 30px 36px;
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  background: #fff;
}
.billing-balance-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.billing-balance-heading > div:first-child { display: grid; gap: 5px; }
.billing-balance-heading h2 { margin: 0; font-size: 20px; line-height: 1.1; letter-spacing: -.035em; }
.billing-balance-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.billing-balance-heading .button { min-height: 34px; padding: 0 13px; font-size: 10px; }
.billing-banner-values { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, 280px); align-items: end; gap: 34px; }
.billing-spend-progress > strong { margin: 0 0 18px; display: block; font-size: 38px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.06em; }
.billing-progress { width: 100%; height: 7px; overflow: hidden; display: block; border: 0; border-radius: 99px; background: #e4e4e7; appearance: none; }
.billing-progress::-webkit-progress-bar { border-radius: 99px; background: #e4e4e7; }
.billing-progress::-webkit-progress-value { border-radius: 99px; background: #18181b; }
.billing-progress::-moz-progress-bar { border-radius: 99px; background: #18181b; }
.billing-progress-labels { margin-top: 10px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; color: #71717a; font-size: 11px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.billing-progress-labels > span:first-child { min-width: 0; }
.billing-progress-labels > span:last-child { flex: 0 0 auto; white-space: nowrap; text-align: right; }
.billing-pricing-copy { margin: 9px 0 0; color: #52525b; font-size: 11px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.billing-total-spent { min-height: 88px; padding-left: 30px; display: grid; align-content: center; gap: 7px; border-left: 1px solid #e4e4e7; }
.billing-total-spent > span { color: #52525b; font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.billing-total-spent > strong { font-size: 31px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.05em; }
.billing-total-spent > small { color: #71717a; font-size: 11px; line-height: 1.45; }

.billing-gate {
  margin-top: 14px;
  padding: 14px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border: 1px solid #fecaca;
  border-radius: 13px;
  background: #fff7f7;
}
.billing-gate-icon { width: 36px; height: 36px; display: grid; place-items: center; color: #b42318; border-radius: 10px; background: #fee2e2; font-weight: 850; }
.billing-gate strong { font-size: 13px; }
.billing-gate p { margin: 5px 0 0; color: #71717a; font-size: 12px; line-height: 1.5; }
.billing-gate .button { min-height: 38px; font-size: 12px; }

.billing-content { margin-top: 20px; }
.billing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#view-billing .panel { padding: 26px; }
#view-billing .panel h3 { font-size: 20px; }
#view-billing .eyebrow, .billing-dialog .eyebrow { font-size: 10px; }
.billing-management-panel { min-height: 330px; display: flex; flex-direction: column; }
.billing-management-panel .panel-header { min-height: 124px; align-items: flex-start; }
.billing-management-panel .panel-header > div { max-width: 540px; }
.billing-management-panel .panel-header .button { min-height: 38px; flex: 0 0 auto; padding: 0 13px; font-size: 11px; white-space: nowrap; }
.billing-payment-panel .panel-header p, .billing-resource-panel .panel-header p { margin: 3px 0 0; color: #71717a; font-size: 12px; line-height: 1.55; }
.billing-management-list { min-height: 170px; flex: 1; display: grid; align-content: stretch; }
.billing-management-list.has-items { align-content: start; gap: 10px; }
.billing-management-empty { min-height: 170px; padding: 28px; display: grid; place-items: center; align-content: center; gap: 13px; color: #52525b; border: 1px dashed #d4d4d8; border-radius: 13px; background: #fafafa; text-align: center; }
.billing-management-empty > div { display: grid; gap: 6px; }
.billing-management-empty strong { color: #18181b; font-size: 14px; }
.billing-management-empty p { max-width: 360px; margin: 0; color: #71717a; font-size: 12px; line-height: 1.55; }
.billing-management-icon { width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; color: #52525b; border: 1px solid #e4e4e7; border-radius: 12px; background: #fff; }
.billing-management-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.billing-management-item { min-width: 0; min-height: 88px; padding: 16px; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 14px; border: 1px solid #e4e4e7; border-radius: 13px; background: #fafafa; }
.billing-management-copy { min-width: 0; display: grid; gap: 7px; }
.billing-management-title { min-width: 0; display: flex; align-items: center; gap: 8px; }
.billing-management-title strong { min-width: 0; overflow: hidden; color: #18181b; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.billing-management-copy > small { overflow: hidden; color: #71717a; font-size: 11px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.billing-management-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.billing-management-action { min-height: 32px; padding: 0 9px; border: 1px solid #d4d4d8; border-radius: 8px; color: #3f3f46; background: #fff; font-size: 10px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.billing-management-action:hover { color: #09090b; border-color: #a1a1aa; background: #f4f4f5; }
.billing-management-action.danger { color: #b42318; }
.billing-management-action.danger:hover { border-color: #fecaca; background: #fff7f7; }
.billing-resource-panel { min-width: 0; }
.billing-key-list { display: grid; }
.billing-resource-status { padding: 5px 8px; color: #52525b; border-radius: 99px; background: #f4f4f5; font-size: 10px; font-weight: 750; }
.billing-resource-status.ready { color: #15803d; background: #f0fdf4; }
.billing-resource-status.warning { color: #a16207; background: #fefce8; }
.billing-resource-status.danger { color: #b42318; background: #fff1f2; }
.billing-resource-status.muted { color: #71717a; background: #f4f4f5; }

.billing-dialog { width: min(680px, calc(100vw - 32px)); }
.billing-dialog .modal-header p { max-width: 535px; margin: 8px 0 0; color: #52525b; font-size: 13px; line-height: 1.55; }
.billing-dialog .modal-header p strong { color: #18181b; }
.billing-dialog .field > span, .billing-dialog fieldset legend { font-size: 12px; }
.billing-dialog .field small { font-size: 11px; }
.billing-dialog .toggle-line strong { font-size: 13px; }
.billing-dialog .toggle-line small { font-size: 12px; line-height: 1.45; }
.connection-methods { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.connection-methods legend { grid-column: 1 / -1; margin-bottom: 2px; }
.connection-methods label { min-width: 0; position: relative; }
.connection-methods input { position: absolute; opacity: 0; pointer-events: none; }
.connection-methods label > span { min-height: 145px; height: 100%; position: relative; padding: 13px; display: grid; grid-template-rows: 26px auto 1fr; align-content: start; gap: 6px; border: 1px solid #e4e4e7; border-radius: 11px; background: #fff; cursor: pointer; }
.connection-methods label > span:hover { border-color: #a1a1aa; background: #fafafa; }
.connection-methods input:checked + span { border-color: #18181b; box-shadow: 0 0 0 1px #18181b; background: #fafafa; }
.connection-methods i { width: 26px; height: 26px; display: grid; place-items: center; color: #52525b; border-radius: 7px; background: #f4f4f5; font-size: 10px; font-style: normal; font-weight: 800; }
.connection-methods strong { font-size: 12px; }
.connection-methods small { color: #71717a; font-size: 11px; line-height: 1.5; }
.connection-methods em { position: absolute; top: 9px; right: 9px; padding: 3px 6px; color: #fff; border-radius: 99px; background: #18181b; font-size: 10px; font-style: normal; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.credential-method-panel { padding: 14px; display: grid; grid-template-columns: 36px 1fr; gap: 12px; border: 1px solid #e4e4e7; border-radius: 11px; background: #fafafa; }
.credential-method-icon { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; border-radius: 10px; background: #18181b; font-weight: 800; }
.credential-method-panel strong { font-size: 13px; }
.credential-method-panel p { margin: 5px 0 0; color: #71717a; font-size: 11px; line-height: 1.55; }
.credential-saved-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.key-presets label > span { min-height: 125px; }
.payment-dialog .toggle-line { align-items: center; }
.billing-payment-confirmation { padding: 17px; display: grid; gap: 6px; border: 1px solid #e4e4e7; border-radius: 11px; background: #fafafa; }
.billing-payment-confirmation > span { color: #52525b; font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.billing-payment-confirmation > strong { font-size: 30px; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.billing-payment-confirmation > small { color: #71717a; font-size: 11px; }
.billing-payment-policy-note { margin: 0; color: #71717a; font-size: 11px; line-height: 1.55; }
.billing-provider-form { min-height: 126px; padding: 16px; color: #71717a; border: 1px solid #e4e4e7; border-radius: 11px; background: #fafafa; font-size: 12px; line-height: 1.5; }
.billing-form-error { margin: 0; padding: 11px 12px; color: #b42318; border: 1px solid #fecaca; border-radius: 9px; background: #fff7f7; font-size: 12px; line-height: 1.5; }
.billing-history-panel { margin-top: 16px; }
.billing-history-panel .panel-header { margin-bottom: 4px; }
.billing-payment-history { display: grid; }
.billing-payment-history > .empty-inline { padding: 24px 0 8px; color: #71717a; font-size: 12px; }
.billing-history-item { min-width: 0; padding: 15px 2px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 16px; border-top: 1px solid #f0f0f1; }
.billing-history-item:first-child { border-top: 0; }
.billing-history-copy { min-width: 0; display: grid; gap: 4px; }
.billing-history-copy strong { overflow: hidden; color: #18181b; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.billing-history-copy small { overflow: hidden; color: #71717a; font-size: 11px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.billing-history-amount { font-size: 13px; font-variant-numeric: tabular-nums; }
.billing-history-item .billing-resource-status { text-transform: capitalize; }
.billing-history-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.billing-management-action:disabled, #view-billing .button:disabled { opacity: .55; cursor: wait; }
.billing-confirm-notice { padding: 14px; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 11px; border: 1px solid #e4e4e7; border-radius: 11px; background: #fafafa; }
.billing-confirm-notice > span { width: 32px; height: 32px; display: grid; place-items: center; color: #3f3f46; border-radius: 9px; background: #e4e4e7; font-weight: 800; }
.billing-confirm-notice p { margin: 0; color: #52525b; font-size: 12px; line-height: 1.55; }
.billing-confirm-action { color: #fff; border-color: #18181b; background: #18181b; }
.billing-confirm-action:hover { color: #fff; border-color: #09090b; background: #09090b; }
.secret-dialog p { font-size: 13px; }
.secret-value code { font-size: 12px; }

@media (max-width: 1050px) {
  .billing-grid { grid-template-columns: 1fr; }
  .billing-management-panel { min-height: 0; }
}

@media (max-width: 1300px) and (min-width: 1051px) {
  .billing-management-item { grid-template-columns: 46px minmax(0, 1fr); }
  .billing-management-actions { grid-column: 2; justify-content: flex-start; }
}

@media (max-width: 760px) {
  .billing-account-summary { padding: 24px 26px; }
  .billing-banner-values { grid-template-columns: 1fr; gap: 20px; }
  .billing-total-spent { min-height: 0; padding: 18px 0 0; border-top: 1px solid #e4e4e7; border-left: 0; }
  .connection-methods { grid-template-columns: 1fr; }
  .connection-methods label > span { min-height: 105px; }
  .billing-management-panel .panel-header { min-height: 0; align-items: flex-start; flex-direction: column; }
  .billing-management-panel .panel-header .button { width: 100%; }
}

@media (max-width: 560px) {
  .billing-account-summary { padding: 23px 20px; }
  .billing-balance-heading { align-items: flex-start; flex-direction: column; }
  .billing-balance-actions { justify-content: flex-start; }
  .billing-spend-progress > strong { font-size: 32px; }
  .billing-gate { grid-template-columns: 36px 1fr; }
  .billing-gate .button { grid-column: 1 / -1; width: 100%; }
  .billing-management-item { grid-template-columns: 46px minmax(0, 1fr); align-items: start; }
  .billing-management-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); }
  .billing-management-action { width: 100%; }
  .billing-management-title .billing-resource-status { display: inline-flex; }
  .billing-resource-status { display: none; }
  .billing-history-item { grid-template-columns: minmax(0, 1fr) auto; }
  .billing-history-item .billing-resource-status { grid-column: 1 / -1; display: inline-flex; width: max-content; }
  .billing-history-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .credential-saved-fields { grid-template-columns: 1fr; }
}

/* Tenant-wide live operations wall */
.operations-wall { margin-bottom: 22px; overflow: hidden; color: #f4f4f5; border: 1px solid #27272a; border-radius: 18px; background: #09090b; box-shadow: 0 18px 50px rgba(9, 9, 11, .12); }
.operations-wall-header { min-height: 112px; padding: 22px 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; border-bottom: 1px solid #27272a; background: radial-gradient(circle at 84% 10%, rgba(59, 130, 246, .13), transparent 30%), linear-gradient(135deg, #111113, #18181b); }
.operations-wall-header > div:first-child { min-width: 0; }
.operations-wall-kicker { display: inline-flex; align-items: center; gap: 8px; color: #a1a1aa; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.operations-wall-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 5px rgba(34, 197, 94, .09); animation: live-pulse 1.7s ease infinite; }
.operations-wall-header h2 { margin: 8px 0 5px; color: #fafafa; font-size: 25px; line-height: 1; letter-spacing: -.045em; }
.operations-wall-header p { margin: 0; color: #71717a; font-size: 11px; line-height: 1.55; }
.operations-wall-metrics { flex: 0 0 auto; display: flex; align-items: stretch; overflow: hidden; border: 1px solid #27272a; border-radius: 11px; background: rgba(9, 9, 11, .62); }
.operations-wall-metrics > span { min-width: 88px; padding: 10px 13px; display: grid; gap: 3px; color: #71717a; border-left: 1px solid #27272a; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.operations-wall-metrics > span:first-child { border-left: 0; }
.operations-wall-metrics strong { color: #e4e4e7; font-size: 17px; line-height: 1; font-variant-numeric: tabular-nums; }
.operations-wall-metrics .operations-needs-count strong { color: #fbbf24; }
.operations-camera-grid { min-height: 248px; padding: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); grid-auto-flow: dense; align-items: stretch; gap: 10px; background: #09090b; }
.operations-camera-grid[data-count="1"] { grid-template-columns: minmax(0, 720px); justify-content: center; }
.operations-priority-heading { grid-column: 1 / -1; order: -1000; min-height: 40px; padding: 0 7px; display: flex; align-items: center; gap: 11px; color: #fcd34d; }
.operations-priority-heading > span { padding: 5px 8px; border: 1px solid rgba(245, 158, 11, .35); border-radius: 999px; background: rgba(245, 158, 11, .1); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.operations-priority-heading small { color: #a16207; font-size: 10px; }
.operations-wall-empty { grid-column: 1 / -1; min-height: 220px; display: grid; place-content: center; justify-items: center; gap: 6px; color: #a1a1aa; text-align: center; }
.operations-wall-empty strong { color: #d4d4d8; font-size: 12px; }
.operations-wall-empty small { color: #52525b; font-size: 10px; }
.operations-empty-radar { width: 48px; height: 48px; margin-bottom: 7px; position: relative; display: grid; place-items: center; border: 1px solid #3f3f46; border-radius: 50%; }
.operations-empty-radar::before, .operations-empty-radar::after { content: ""; position: absolute; border: 1px solid #27272a; border-radius: 50%; }
.operations-empty-radar::before { inset: 8px; }
.operations-empty-radar::after { inset: 16px; }
.operations-empty-radar i { width: 5px; height: 5px; border-radius: 50%; background: #52525b; }
.operations-camera { min-width: 0; min-height: 235px; position: relative; isolation: isolate; overflow: hidden; order: var(--operations-order, 0); border: 1px solid #27272a; border-radius: 10px; background: #111113; box-shadow: 0 1px 0 rgba(255, 255, 255, .035) inset; }
.operations-camera[data-priority="true"] { grid-column: span 2; min-height: 310px; border-color: rgba(245, 158, 11, .68); box-shadow: 0 0 0 1px rgba(245, 158, 11, .13), 0 18px 45px rgba(0, 0, 0, .25); }
.operations-camera-frame { position: absolute; inset: 0; overflow: hidden; background: #09090b; }
.operations-camera-frame > img { width: 100%; height: 100%; position: absolute; inset: 0; z-index: 1; display: block; object-fit: contain; color: transparent; background: #09090b; opacity: 0; transition: opacity .16s ease; }
.operations-camera.feed-ready .operations-camera-frame > img { opacity: 1; }
.operations-camera-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 7px; padding: 42px 24px 82px; color: #a1a1aa; background: radial-gradient(circle at 50% 42%, #27272a 0, #18181b 32%, #09090b 75%); text-align: center; }
.operations-camera-placeholder svg { width: 28px; height: 28px; margin-bottom: 3px; fill: none; stroke: #52525b; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.operations-camera-placeholder strong { color: #d4d4d8; font-size: 10px; }
.operations-camera-placeholder small { color: #52525b; font-size: 10px; }
.operations-camera.feed-ready .operations-camera-placeholder { opacity: 0; }
.operations-camera-chrome { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .64), transparent 28%, transparent 54%, rgba(0, 0, 0, .9)); }
.operations-camera-top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.operations-camera-index { padding: 5px 7px; color: #d4d4d8; border: 1px solid rgba(255, 255, 255, .16); border-radius: 6px; background: rgba(9, 9, 11, .72); font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; }
.operations-camera-state { padding: 5px 7px; display: inline-flex; align-items: center; gap: 6px; color: #d4d4d8; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(9, 9, 11, .72); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.operations-camera-state i { width: 5px; height: 5px; border-radius: 50%; background: #71717a; }
.operations-camera.is-live .operations-camera-state i { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .14); }
.operations-camera[data-priority="true"] .operations-camera-state { color: #fde68a; border-color: rgba(245, 158, 11, .4); background: rgba(69, 26, 3, .8); }
.operations-camera[data-priority="true"] .operations-camera-state i { background: #f59e0b; animation: live-pulse 1.2s ease infinite; }
.operations-camera-copy { position: absolute; left: 13px; right: 13px; bottom: 49px; min-width: 0; display: grid; gap: 4px; }
.operations-camera-copy strong { overflow: hidden; color: #fff; font-size: 12px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 8px #000; }
.operations-camera-copy small { overflow: hidden; color: #a1a1aa; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.operations-camera-alert { position: absolute; left: 13px; right: 13px; bottom: 88px; padding: 8px 10px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; color: #fde68a; border: 1px solid rgba(245, 158, 11, .34); border-radius: 7px; background: rgba(69, 26, 3, .8); backdrop-filter: blur(8px); }
.operations-camera-alert > b { font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.operations-camera-alert > span { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.operations-camera-actions { height: 38px; position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: 0 9px; display: flex; align-items: center; justify-content: flex-end; gap: 7px; border-top: 1px solid rgba(255, 255, 255, .1); background: rgba(9, 9, 11, .92); backdrop-filter: blur(10px); }
.operations-camera-actions > span { margin-right: auto; overflow: hidden; color: #52525b; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.operations-camera-actions button { min-height: 25px; padding: 0 9px; color: #d4d4d8; border: 1px solid #3f3f46; border-radius: 6px; background: #18181b; font-size: 10px; font-weight: 800; cursor: pointer; }
.operations-camera-actions button:hover { color: #fff; border-color: #71717a; background: #27272a; }
.operations-camera-actions button.primary { color: #18181b; border-color: #fbbf24; background: #fbbf24; }
.operations-camera-actions button:disabled { opacity: .5; cursor: wait; }
.operations-wall-footer { min-height: 43px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #52525b; border-top: 1px solid #27272a; background: #111113; }
.operations-wall-footer > span { display: inline-flex; align-items: center; gap: 7px; color: #a1a1aa; font-size: 10px; }
.operations-wall-footer > span i { width: 5px; height: 5px; border-radius: 50%; background: #71717a; }
.operations-wall-footer > span.live i { background: #22c55e; }
.operations-wall-footer > span.warning i { background: #f59e0b; }
.operations-wall-footer small { color: #52525b; font-size: 10px; }

@media (max-width: 860px) {
  .operations-wall-header { align-items: flex-start; flex-direction: column; }
  .operations-wall-metrics { width: 100%; }
  .operations-wall-metrics > span { flex: 1; }
  .operations-camera-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operations-camera-grid[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
  .operations-wall-footer small { display: none; }
}

@media (max-width: 560px) {
  .operations-wall-header { padding: 19px; }
  .operations-wall-header h2 { font-size: 22px; }
  .operations-wall-metrics > span { min-width: 0; padding: 9px; }
  .operations-camera-grid { grid-template-columns: minmax(0, 1fr); padding: 8px; }
  .operations-camera[data-priority="true"] { grid-column: span 1; min-height: 275px; }
  .operations-priority-heading { align-items: flex-start; flex-direction: column; gap: 5px; padding: 6px 3px; }
  .operations-camera { min-height: 230px; }
}

/* Organization people management */
.platform-review-note { display: flex; align-items: center; gap: 12px; margin: -4px 0 18px; padding: 11px 14px; border: 1px solid #dce4ec; border-radius: 10px; color: #667180; background: #f6f9fc; font-size: 11px; }
.platform-review-note strong { color: #354458; white-space: nowrap; }
.platform-detail-header .platform-name-actions { display: flex; align-items: flex-end; flex-direction: column; gap: 9px; flex-shrink: 0; }
.platform-rename-button, .platform-invitation-link { border: 0; background: transparent; color: #334155; font-size: 11px; font-weight: 650; cursor: pointer; padding: 4px 0; }
.platform-rename-button:hover, .platform-invitation-link:hover { color: #101827; text-decoration: underline; }
.platform-detail-admin + .platform-detail-admin { margin-top: 13px; }
.platform-detail-admin > span:nth-child(2) { flex: 1; min-width: 0; }
.platform-detail-admin > .platform-person-state { flex: 0 0 auto; }
.platform-access-actions { display: flex; align-items: center; gap: 15px; margin-top: 17px; flex-wrap: wrap; }
.platform-access-actions .button { padding: 8px 12px; font-size: 11px; }
.platform-billing-contact { display: block; margin-top: 15px; color: #7c8795; font-size: 10px; overflow-wrap: anywhere; }
.platform-people-dialog { width: min(850px, calc(100vw - 32px)); }
.platform-people-dialog .modal-body { gap: 16px; }
.platform-people-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.platform-people-tabs, .platform-admin-modes { display: flex; gap: 4px; padding: 4px; background: #f2f4f6; border: 1px solid #e8ebef; border-radius: 10px; }
.platform-people-tabs button, .platform-admin-modes button { border: 0; border-radius: 7px; padding: 9px 11px; color: #657080; background: transparent; font-size: 11px; font-weight: 650; cursor: pointer; }
.platform-people-tabs button[aria-pressed="true"], .platform-admin-modes button[aria-pressed="true"] { background: #fff; color: #172334; box-shadow: 0 1px 4px #17233412; }
.platform-people-description { margin: 0; color: #728092; font-size: 12px; line-height: 1.6; }
.platform-people-list { border: 1px solid #e6eaf0; border-radius: 12px; overflow: hidden; }
.platform-person { display: flex; justify-content: space-between; gap: 16px; padding: 18px; align-items: center; }
.platform-person + .platform-person { border-top: 1px solid #edf0f4; }
.platform-person-identity { display: flex; align-items: flex-start; min-width: 0; gap: 12px; }
.platform-person-avatar { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; background: #edf1f6; color: #4b5c70; font-size: 13px; font-weight: 700; border-radius: 11px; }
.platform-person-copy { display: grid; min-width: 0; gap: 4px; }
.platform-person-copy > strong { font-size: 13px; font-weight: 650; color: #263345; overflow-wrap: anywhere; }
.platform-person-email { font-size: 11px; color: #728092; overflow-wrap: anywhere; }
.platform-person-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 3px; }
.platform-person-role { border-radius: 5px; padding: 3px 7px; background: #f2f4f7; color: #566171; font-size: 10px; font-weight: 650; }
.platform-person-state { font-size: 10px; font-weight: 600; white-space: nowrap; }
.platform-person-state.active { color: #267354; }
.platform-person-state.pending, .platform-person-state.expired { color: #a36b11; }
.platform-person-state.suspended { color: #b3473d; }
.platform-person-delivery { margin-top: 4px; font-size: 10px; color: #7a8593; }
.platform-person-delivery.failed { color: #b24a3a; }
.platform-person-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.platform-person-actions .button { padding: 8px 12px; font-size: 11px; }
.platform-text-danger { padding: 8px 0; background: transparent; border: 0; color: #b5473c; font-weight: 600; font-size: 11px; cursor: pointer; }
.platform-text-danger:hover { color: #8f281f; text-decoration: underline; }
.platform-people-empty { padding: 32px 20px; text-align: center; color: #718093; font-size: 12px; line-height: 1.6; }
.platform-people-empty strong { color: #344256; font-size: 14px; }
.platform-people-empty p { margin: 6px 0 0; }
.platform-people-footnote { margin-right: auto; color: #8290a0; font-size: 11px; }
.platform-action-notice { padding: 12px 14px; border: 1px solid #c6e5d6; border-radius: 9px; color: #286248; background: #f1faf5; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.platform-action-notice.warning { color: #8e5f1b; background: #fffaec; border-color: #f2dfab; }
.platform-admin-modes button { flex: 1; font-size: 12px; }
.platform-admin-role-note { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #e6eaf0; border-radius: 10px; }
.platform-admin-role-note p { margin: 0; font-size: 11px; color: #788596; line-height: 1.6; }
.platform-revoke-person { display: grid; gap: 6px; padding: 16px; border-radius: 10px; background: #f7f8fa; }
.platform-revoke-person strong { font-size: 14px; color: #283648; overflow-wrap: anywhere; }
.platform-revoke-person span { color: #798496; font-size: 12px; }
.platform-dialog-copy { font-size: 13px; line-height: 1.7; color: #657286; margin: 0; }
.platform-danger-button { background: #b44237; color: #fff; border: 1px solid #b44237; }
.platform-danger-button:hover { background: #97372e; }
@media (max-width: 600px) {
  .platform-review-note { align-items: flex-start; flex-direction: column; gap: 4px; }
  .platform-people-toolbar { align-items: stretch; }
  .platform-people-tabs { width: 100%; }
  .platform-people-tabs button { padding: 9px 6px; font-size: 10px; flex: 1; }
  .platform-people-toolbar > .button { margin-left: auto; }
  .platform-person { flex-wrap: wrap; padding: 16px 12px; gap: 12px; }
  .platform-person-actions { padding-left: 48px; }
  .platform-people-footnote { max-width: 65%; font-size: 10px; }
}

.runs-pagination { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
#runs-panel { scroll-margin-top: 110px; }
.runs-page-buttons { display: flex; gap: 8px; margin-left: auto; }
.runs-page-error { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; color: #a33b20; }
@media (max-width: 640px) { .runs-page-buttons { width: 100%; justify-content: space-between; } }

/* Organization operations directory */
.platform-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.platform-metrics article { min-height: 118px; padding: 20px 22px; }
.platform-metrics article > span { font-size: 12px; }
.platform-metrics strong { font-size: 32px; }
.platform-metrics small { font-size: 11px; }
.platform-metrics .platform-metric-attention { border-color: #eadfbd; background: #fffdf7; }
.platform-metric-attention strong { color: #8a6018; }
.platform-layout { display: block; }
.platform-directory-heading { min-height: 82px; padding: 20px 22px 16px; align-items: center; }
.platform-directory-heading p { margin-top: 5px; font-size: 12px; }
.platform-search { width: min(310px, 36vw); height: 40px; padding: 0 12px; }
.platform-search input { font-size: 13px; }
.platform-filter-chips { display: flex; gap: 7px; padding: 0 22px 16px; overflow-x: auto; }
.platform-filter-chips button { min-height: 34px; padding: 7px 11px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; color: #606a77; background: #fff; font-size: 12px; cursor: pointer; }
.platform-filter-chips button[aria-pressed="true"] { border-color: #cdd8e7; color: #203c62; background: #edf4fc; box-shadow: inset 0 0 0 1px #dfe9f6; }
.platform-filter-chips button span { min-width: 19px; padding: 2px 5px; border-radius: 999px; color: #697483; background: #f0f2f5; font-size: 10px; text-align: center; }
.platform-filter-chips button[aria-pressed="true"] span { color: #315f96; background: #dbe8f7; }
.platform-table-wrap { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.platform-tenant-table { min-width: 850px; table-layout: fixed; }
.platform-tenant-table th { height: 44px; padding: 0 16px; color: #6d7682; font-size: 11px; }
.platform-tenant-table th:first-child { width: 26%; }
.platform-tenant-table th:nth-child(2) { width: 19%; }
.platform-tenant-table th:nth-child(3), .platform-tenant-table th:nth-child(4) { width: 16%; }
.platform-tenant-table th:nth-child(5) { width: 17%; }
.platform-tenant-table th:last-child { width: 48px; }
.platform-tenant-table th button { padding: 8px 0; border: 0; color: inherit; background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.platform-tenant-table th button span { display: inline-block; width: 12px; color: #315f96; }
.platform-tenant-table th:nth-child(3) button, .platform-tenant-table th:nth-child(4) button { width: 100%; text-align: right; }
.platform-tenant-table td { height: 72px; padding: 13px 16px; overflow: hidden; white-space: normal; }
.platform-tenant-table tr { cursor: pointer; }
.platform-tenant-table tr:hover { background: #fafbfd; }
.platform-tenant-table tr:focus-visible { outline: 2px solid #315f96; outline-offset: -2px; }
.platform-tenant-name { min-width: 0; gap: 5px; }
.platform-tenant-name strong { max-width: 100%; font-size: 14px; }
.platform-tenant-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.platform-health { display: grid; gap: 3px; position: relative; padding-left: 13px; }
.platform-health::before { content: ""; width: 7px; height: 7px; position: absolute; left: 0; top: 4px; border-radius: 50%; background: currentColor; }
.platform-health strong { font-size: 12px; font-weight: 700; }
.platform-health small { color: #8a929d; font-size: 10px; }
.platform-health-suspended, .platform-health-empty, .platform-health-payment { color: #a23f36; }
.platform-health-pending, .platform-health-low { color: #936412; }
.platform-health-funded, .platform-health-active { color: #277156; }
.platform-health-exempt { color: #49647f; }
.platform-number, .platform-activity { font-size: 12px; }
.platform-number { text-align: right; }
.platform-number strong, .platform-activity strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #333b45; font-size: 13px; font-weight: 650; }
.platform-number small, .platform-activity small { display: block; margin-top: 4px; color: #9299a3; font-size: 10px; }
.platform-row-open { border: 0; color: #707987; background: transparent; font-size: 22px; }
.platform-open-cell { text-align: right; }
.platform-pagination { min-height: 64px; padding: 12px 22px; display: flex; align-items: center; gap: 18px; border-top: 1px solid var(--line); color: #727b87; font-size: 12px; }
.platform-pagination strong { color: #3c4652; font-weight: 650; }
.platform-pagination > div { margin-left: auto; display: flex; gap: 8px; }
.platform-pagination .button { min-height: 36px; font-size: 11px; }
.platform-detail-backdrop { position: fixed; inset: 0; z-index: 58; border: 0; background: rgba(16, 23, 32, .35); backdrop-filter: blur(1px); cursor: default; }
.platform-tenant-detail { width: min(540px, 100vw); height: 100dvh; min-height: 0; position: fixed; inset: 0 0 0 auto; z-index: 60; visibility: hidden; pointer-events: none; padding: 0; overflow-y: auto; border: 0; border-radius: 0; background: #fff; transform: translateX(105%); transition: transform .22s ease, visibility 0s linear .22s; }
.platform-tenant-detail.open { visibility: visible; pointer-events: auto; box-shadow: -24px 0 70px rgba(22, 31, 43, .22); transform: translateX(0); transition-delay: 0s; }
.platform-detail-header { position: sticky; top: 0; z-index: 4; padding: 25px 28px 20px; align-items: flex-start; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.platform-detail-header h3 { margin-top: 3px; font-size: 25px; }
.platform-detail-header small { font-size: 12px; }
.platform-detail-close { width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 10px; color: #68717d; background: #fff; font-size: 22px; cursor: pointer; }
.platform-detail-primary-actions { padding: 18px 28px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--soft-line); }
.platform-detail-primary-actions > .button { min-height: 40px; }
.platform-detail-primary-actions > .platform-status { margin-left: auto; font-size: 10px; }
.platform-detail-menu { position: relative; }
.platform-detail-menu summary { min-height: 40px; display: grid; place-items: center; padding: 0 14px; list-style: none; cursor: pointer; }
.platform-detail-menu summary::-webkit-details-marker { display: none; }
.platform-detail-menu > div { width: 210px; position: absolute; z-index: 5; top: 46px; right: 0; padding: 6px; display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 14px 38px rgba(20, 29, 40, .16); }
.platform-detail-menu > div button { min-height: 38px; padding: 0 10px; border: 0; border-radius: 7px; color: #3d4753; background: transparent; font-size: 12px; text-align: left; cursor: pointer; }
.platform-detail-menu > div button:hover { background: #f5f6f8; }
.platform-detail-menu > div button.platform-danger { color: #a23f36; }
.platform-detail-tabs { position: sticky; top: 91px; z-index: 3; padding: 0 28px; display: flex; gap: 24px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); }
.platform-detail-tabs button { min-height: 48px; position: relative; border: 0; color: #747d88; background: transparent; font-size: 13px; font-weight: 650; cursor: pointer; }
.platform-detail-tabs button[aria-pressed="true"] { color: #1f2c3d; }
.platform-detail-tabs button[aria-pressed="true"]::after { content: ""; height: 2px; position: absolute; right: 0; bottom: -1px; left: 0; background: #315f96; }
.platform-detail-content { padding: 24px 28px 36px; }
.platform-detail-hero { padding: 23px; display: grid; gap: 7px; border: 1px solid #dfe5ed; border-radius: 14px; background: #f8fafc; }
.platform-detail-hero > span { color: #6d7784; font-size: 12px; font-weight: 650; }
.platform-detail-hero > strong { font-size: 38px; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.platform-detail-hero > small { color: #818b98; font-size: 11px; }
.platform-detail-metrics { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.platform-detail-metric { min-width: 0; padding: 15px; display: grid; gap: 5px; border: 1px solid #e7e9ed; border-radius: 11px; }
.platform-detail-metric span { color: #737d89; font-size: 11px; }
.platform-detail-metric strong { overflow-wrap: anywhere; font-size: 17px; font-variant-numeric: tabular-nums; }
.platform-detail-metric small { color: #979ea7; font-size: 10px; line-height: 1.4; }
.platform-detail-content .platform-detail-section { padding: 22px 0; }
.platform-detail-label { font-size: 11px; }
.platform-detail-label button { font-size: 11px; }
.platform-detail-admin { grid-template-columns: 40px minmax(0, 1fr); gap: 11px; }
.platform-detail-avatar { width: 40px; height: 40px; font-size: 13px; }
.platform-detail-admin strong { font-size: 13px; }
.platform-detail-admin small { font-size: 11px; }
.platform-account-details { margin: 0; display: grid; }
.platform-account-details > div { padding: 11px 0; display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--soft-line); }
.platform-account-details dt { color: #78818d; font-size: 11px; }
.platform-account-details dd { margin: 0; overflow-wrap: anywhere; color: #39434f; font-size: 12px; font-weight: 600; text-align: right; }
.platform-suspended-notice, .platform-attention-notice { margin-bottom: 14px; padding: 13px 14px; border: 1px solid #ead8d8; border-radius: 10px; color: #704040; background: #fffafa; font-size: 12px; line-height: 1.5; }
.platform-attention-notice { border-color: #efdfb9; color: #795618; background: #fffaf0; }
.platform-detail-invoices > small { font-size: 11px; }
.platform-detail-invoices strong { font-size: 12px; }
.platform-detail-invoices small { font-size: 10px; }
.platform-billing-note { font-size: 11px; }
.platform-price-display span { font-size: 11px; }
.platform-statement-download { font-size: 11px; }
.platform-detail-content .prepaid-ledger { margin-top: 18px; padding: 0; }

@media (max-width: 760px) {
  .platform-metrics { grid-template-columns: 1fr; }
  .platform-heading { align-items: stretch; flex-direction: column; }
  .platform-heading .button { width: 100%; }
  .platform-directory-heading { align-items: stretch; }
  .platform-table-tools, .platform-search { width: 100%; }
  .platform-tenant-table { min-width: 0; display: block; }
  .platform-tenant-table thead { display: none; }
  .platform-tenant-table tbody { padding: 12px; display: grid; gap: 10px; }
  .platform-tenant-table tr { position: relative; padding: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
  .platform-tenant-table tr.selected { box-shadow: inset 3px 0 #315f96; }
  .platform-tenant-table td { height: auto; padding: 0; display: block; overflow: visible; }
  .platform-tenant-table td:first-child { grid-column: 1 / -1; padding-right: 34px; }
  .platform-tenant-table td::before { content: attr(data-label); display: block; margin-bottom: 5px; color: #969da6; font-size: 10px; font-weight: 650; }
  .platform-tenant-table td:first-child::before, .platform-tenant-table .platform-open-cell::before { display: none; }
  .platform-tenant-table .platform-number { text-align: left; }
  .platform-open-cell { position: absolute; top: 16px; right: 16px; }
  .platform-pagination { align-items: flex-start; flex-wrap: wrap; }
  .platform-pagination > div { width: 100%; margin-left: 0; justify-content: space-between; }
  .platform-detail-primary-actions { flex-wrap: wrap; }
  .platform-detail-primary-actions > .platform-status { margin-left: 0; }
}

@media (max-width: 480px) {
  .platform-detail-header, .platform-detail-primary-actions, .platform-detail-content { padding-right: 20px; padding-left: 20px; }
  .platform-detail-tabs { padding: 0 20px; }
  .platform-detail-metrics { grid-template-columns: 1fr; }
  .platform-detail-primary-actions > .button { flex: 1; }
}
