/* Owner workbench refinement. Presentation only; the existing theme owns all colors. */
.ow-refined .wb-statement {font-size:24px;line-height:1.35;max-width:none}
.wb-diagnostic-summary {font-size:14px;line-height:1.8;max-width:76ch;overflow-wrap:anywhere}
.ow-account-faces[data-account-view="summary"] [data-account-face]:not([data-account-face="accounts"]):not([data-account-face="portfolio"]),
.ow-account-faces[data-account-view="positions"] [data-account-face]:not([data-account-face="positions"]):not([data-account-face="portfolio"]):not([data-account-face="fills"]) {display:none}
.ow-snapshot-notice {font:12px/1.7 var(--uf-font);color:var(--uf-muted);background:var(--uf-surface);padding:8px 20px;border-bottom:1px solid var(--uf-divider)}
.ow-snapshot-notice summary {cursor:pointer}
.ow-snapshot-notice p {max-width:90ch;margin:8px 0}
.ow-refined {grid-template-columns:208px minmax(0,1fr)}
.ow-refined .ow-sidebar {padding:28px 14px 22px;gap:28px;background:var(--uf-surface)}
.ow-refined .ow-brand {font-size:16px;padding:0 8px}
.ow-refined .ow-emblem {border-radius:12px;width:36px;height:36px;background:var(--uf-bg)}
.ow-refined .ow-nav {display:flex;align-items:center;gap:12px;padding:12px;border-left:0;position:relative;font-size:14px}
.ow-refined .ow-nav-mark {width:20px;text-align:center;color:var(--uf-muted);font-size:20px;font-weight:400}
.ow-refined .ow-nav.is-active {color:var(--uf-accent)}
.ow-refined .ow-nav.is-active::before {content:"";position:absolute;left:-14px;top:12px;bottom:12px;width:3px;background:var(--uf-accent);border-radius:0 3px 3px 0}
.ow-refined .ow-nav.is-active .ow-nav-mark {color:inherit}
.ow-refined .ow-utility {border-top:1px solid var(--uf-divider);padding:18px 12px 0;font-size:12px;gap:12px}
.ow-refined .ow-sidebar-bottom {padding:0 12px;line-height:1.8}
.ow-refined .ow-mode {color:var(--uf-muted);border:0;padding:0;font-weight:600}
.ow-refined .ow-topbar {min-height:64px;padding:12px 32px;background:var(--uf-surface)}
.ow-refined .ow-breadcrumb {display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.ow-refined .ow-breadcrumb>span:last-child {color:var(--uf-text)}
.ow-refined .ow-content {padding:36px 32px 64px;max-width:1480px}
.ow-refined .ow-heading {margin-bottom:16px;align-items:center}
.ow-refined .ow-heading h1 {font-size:30px;font-weight:650;margin:0;letter-spacing:-.5px}
.ow-refined .ow-heading .ow-page-description {font-size:13px;line-height:1.8;margin-top:6px;max-width:60ch}
.ow-refined .ow-data-note {margin-bottom:20px;font-size:12px;color:var(--uf-muted)}
.ow-refined summary {cursor:pointer;list-style-position:inside}
.ow-refined .ow-data-note summary {width:fit-content;padding:5px 0;text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--uf-divider)}
.ow-refined .ow-data-note .ow-disclosure {margin:10px 0 0;border-color:var(--uf-border);max-width:85ch}
.ow-refined .ow-subnav {margin-bottom:24px;gap:24px;overflow-x:auto;flex-wrap:nowrap;white-space:nowrap}
.ow-refined .ow-subnav a {padding:10px 0;font-size:13px}
.ow-refined .ow-start {display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.85fr);gap:40px;padding:36px;margin-bottom:24px;background:var(--uf-surface);border:1px solid var(--uf-divider);border-radius:12px;align-items:center}
.ow-refined .ow-start-intro h2 {font-size:clamp(24px,2.6vw,36px);line-height:1.35;font-weight:600;margin:0 0 18px;letter-spacing:-.8px}
.ow-refined .ow-start-intro p {font-size:14px;line-height:1.9;color:var(--uf-muted);max-width:46ch;margin:0}
.ow-refined .ow-start-actions {display:grid;gap:12px}
.ow-refined .ow-start-link {display:flex;align-items:center;gap:16px;padding:20px;background:var(--uf-bg);border:1px solid var(--uf-divider);border-radius:8px}
.ow-refined .ow-start-link:hover {border-color:var(--uf-accent);background:var(--uf-surface-hover)}
.ow-refined .ow-start-link>span:last-child {margin-left:auto;color:var(--uf-muted);font-size:20px}
.ow-refined .ow-start-icon {font-size:26px;color:var(--uf-accent);width:28px;text-align:center}
.ow-refined .ow-start-link h3 {margin:0 0 4px;font-size:16px;font-weight:600}
.ow-refined .ow-start-link p {margin:0;color:var(--uf-muted);font-size:12px}
.ow-refined .ow-history-summary {margin:0 0 24px;border-bottom:1px solid var(--uf-divider);padding:0 0 16px;color:var(--uf-muted);font-size:12px}
.ow-refined .ow-history-summary summary {display:flex;justify-content:space-between;gap:16px;padding:12px 0;color:var(--uf-text)}
.ow-refined .ow-history-summary summary::before {content:"＋";color:var(--uf-muted)}
.ow-refined .ow-history-summary[open] summary::before {content:"−"}
.ow-refined .ow-history-summary summary>span {margin-left:auto;font-size:11px;color:var(--uf-muted)}
.ow-refined .ow-history-summary .ow-metric-row {margin-bottom:0;border:0}
.ow-refined .ow-section {border-radius:10px;margin-bottom:24px}
.ow-refined .ow-section-heading {padding:20px 24px}
.ow-refined .ow-table th,.ow-refined .ow-table td {padding:12px 24px;font-size:13px}
.ow-refined .ow-table th {font-size:12px;position:sticky;top:0;z-index:1}
.ow-refined .ow-table td.ow-number {font-size:14px}
.ow-refined .ow-account-summary {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:4px 24px 24px;gap:24px}
.ow-refined .ow-account-summary>div {min-width:0;border-right:1px solid var(--uf-divider);padding-right:16px}
.ow-refined .ow-account-summary>div:last-child {border:0}
.ow-refined .ow-account-summary span {display:block;color:var(--uf-muted);font-size:12px;margin-bottom:10px}
.ow-refined .ow-account-summary strong {display:block;font-size:clamp(22px,2.1vw,32px);font-weight:550;line-height:1.3;overflow-wrap:anywhere}
.ow-refined .ow-account-detail>summary {padding:14px 24px;font-size:12px;border-top:1px solid var(--uf-divider);color:var(--uf-muted)}
.ow-refined .ow-brief {border-radius:10px;grid-template-columns:minmax(0,1fr) 240px}
.ow-refined .ow-brief>div {padding:24px}
.ow-refined .ow-brief h2 {font-size:22px;margin:8px 0 12px}
.ow-refined .ow-brief p {font-size:13px;line-height:1.8;margin-bottom:16px}
.ow-refined .ow-brief-status strong {font-size:23px;overflow-wrap:anywhere}
.ow-refined .ow-research-layout {display:grid;grid-template-columns:minmax(300px,.85fr) minmax(0,1.15fr);grid-template-areas:"intro intro" "evidence task" "history history" "runtime runtime";gap:24px;align-items:start}
.ow-refined .ow-research-intro {grid-area:intro;margin:0}
.ow-refined .ow-research-evidence {grid-area:evidence;min-width:0}
.ow-refined .ow-research-task {grid-area:task;min-width:0}
.ow-refined .ow-research-history {grid-area:history;min-width:0}
.ow-refined .ow-research-runtime {grid-area:runtime;min-width:0;font-size:12px;color:var(--uf-muted);border-top:1px solid var(--uf-divider);padding-top:16px}
.ow-refined .ow-research-runtime>summary {padding:8px 0;margin-bottom:12px}
.ow-refined .ow-research-runtime>summary>span {margin-left:16px}
.ow-refined .ow-research-layout .ow-section {margin:0}
.ow-refined .ow-research-layout .ow-event-list {grid-template-columns:1fr}
.ow-refined .ow-research-layout .ow-event-list article:nth-child(odd) {border-right:0}
.ow-refined .ow-research-panel-body {display:grid;gap:16px;min-width:0;padding:0 24px 24px}
.ow-refined .ow-research-panel-body>.ow-links {margin:0}
.ow-refined .ow-research-panel-body>.ow-note,
.ow-refined .ow-research-panel-body>.ow-empty {margin:0;padding:0}
.ow-refined .ow-research-panel-body>ul.ow-note {padding-left:1.25em}
.ow-refined .ow-research-layout .wx-form {display:grid;gap:12px;min-width:0;margin:0;padding:0}
.ow-refined .ow-research-layout .wx-form label {font-size:13px;margin:0}
.ow-refined .ow-research-layout .wx-form .ow-note {padding:0;margin:0;line-height:1.8}
.ow-refined .ow-research-layout .wx-form input,
.ow-refined .ow-research-layout .wx-form textarea {width:100%;min-width:0;font:inherit;font-size:14px;line-height:1.65;color:var(--uf-text);background:var(--uf-bg);border:1px solid var(--uf-border);border-radius:5px;padding:12px}
.ow-refined .ow-research-layout .wx-form textarea {min-height:112px;resize:vertical}
.ow-refined .ow-research-layout .wx-form button {justify-self:start;margin:0}
.ow-refined .ow-research-panel-body>.ow-report {padding:0}
.ow-refined .ow-research-layout button[type="submit"] {background:var(--uf-accent);color:var(--uf-on-badge);border-color:var(--uf-accent);font-weight:600;padding:10px 16px}
.ow-refined .ow-report {font-size:14px;line-height:1.9;padding:24px;max-height:65vh;overflow:auto}
.ow-refined .ow-research-panel-body>.ow-report-parts {padding:24px 24px 4px}
.ow-refined .ow-report-part h4 {font-size:14px;margin:0 0 10px}
.ow-refined .ow-report-claims p {font-size:14px;line-height:1.85}
.ow-refined .ow-report-cite {font-size:12px}
.ow-refined .ow-report-source {padding:0;border-top:0}
.ow-refined .ow-note,.ow-refined .ow-empty {line-height:1.8}
.ow-refined .ow-empty {padding:20px 24px;margin:0}
.ow-refined .ow-skip {position:fixed;left:16px;top:12px;z-index:100;background:var(--uf-surface);padding:12px 16px;border:2px solid var(--uf-accent);transform:translateY(-180%)}
.ow-refined .ow-skip:focus {transform:none}
.ow-refined a:focus-visible,.ow-refined button:focus-visible,.ow-refined input:focus-visible,.ow-refined textarea:focus-visible,.ow-refined summary:focus-visible {outline:2px solid var(--uf-accent);outline-offset:4px}
.ow-refined button:disabled {cursor:not-allowed;opacity:.55}
@media(max-width:1100px) {
  .ow-refined {grid-template-columns:184px minmax(0,1fr)}
  .ow-refined .ow-content {padding:28px 24px 48px}
  .ow-refined .ow-start {gap:24px;padding:28px;grid-template-columns:1fr}
}
@media(max-width:800px) {
  .ow-refined {grid-template-columns:1fr}
  .ow-refined .ow-sidebar {position:static;height:auto;padding:16px;gap:16px;border-right:0;border-bottom:1px solid var(--uf-divider)}
  .ow-refined .ow-sidebar>nav:first-of-type {display:flex;gap:6px;overflow-x:auto;flex-wrap:nowrap}
  .ow-refined .ow-nav {padding:10px;white-space:nowrap;flex:none}
  .ow-refined .ow-nav.is-active::before {display:none}
  .ow-refined .ow-nav-mark {display:none}
  .ow-refined .ow-utility {display:flex;flex-wrap:wrap;gap:12px;padding:12px 0 0}
  .ow-refined .ow-sidebar-bottom {display:none}
  .ow-refined .ow-topbar {padding:12px 20px;gap:16px}
  .ow-refined .ow-topbar>div:last-child {gap:12px;white-space:nowrap}
  .ow-refined .ow-content {padding:24px 20px 40px}
  .ow-refined .ow-heading {align-items:start}
  .ow-refined .ow-heading h1 {font-size:26px}
  .ow-refined .ow-asof {max-width:130px}
  .ow-refined .ow-start {padding:24px;gap:24px}
  .ow-refined .ow-brief {grid-template-columns:1fr}
  .ow-refined .ow-brief-status {border-left:0;border-top:1px solid var(--uf-divider)}
  .ow-refined .ow-research-layout {grid-template-columns:1fr;grid-template-areas:"intro" "evidence" "task" "history" "runtime";gap:20px}
  .ow-refined .ow-two-col {grid-template-columns:1fr}
  .ow-refined .ow-account-summary {grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
  .ow-refined .ow-account-summary>div {border:0;padding:0}
}
@media(prefers-reduced-motion:reduce) {
  .ow-refined * {scroll-behavior:auto;transition:none;animation:none}
}

/* Consistent actions and form/pager alignment across all live sections. */
.ow-refined .ow-links,.ow-refined .ow-row {display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 24px;}
.ow-refined .ow-links a.ow-action,.ow-refined a.ow-action {display:inline-flex;align-items:center;justify-content:center;min-height:40px;flex-shrink:0;white-space:nowrap;padding:8px 14px;border:1px solid var(--uf-border);border-radius:5px;background:var(--uf-surface);color:var(--uf-text);font-size:13px;line-height:1.5;text-decoration:none;box-sizing:border-box;}
.ow-refined .ow-row>* {flex:0 0 auto;}
.ow-refined .ow-row label {display:flex;align-items:center;gap:10px;margin:0;min-width:0;}
.ow-refined .ow-row select {min-height:40px;padding:8px 12px;border:1px solid var(--uf-border);border-radius:5px;font:inherit;background:var(--uf-surface);color:var(--uf-text);}
.ow-refined button {white-space:nowrap;min-height:40px;line-height:1.5;}
.ow-refined .ow-read-details {padding:12px 24px;font-size:12px;color:var(--uf-muted);}
.ow-refined .ow-read-details .ow-note {padding:8px 0;margin:0;}
.ow-login-minimal h1 {font-size:24px;}
.ow-login-minimal .ow-row {display:flex;gap:12px;align-items:center;}

/* Scene diagnostics sit on a fixed dark canvas, independent of the page palette. */
.ow-refined .studio-scene-diagnostics {--uf-text:#eeeeee;--uf-muted:#bbbbbb;background:#191919;color:var(--uf-muted);font-size:13px;line-height:1.6}
.ow-refined .studio-scene-diagnostics summary {min-height:40px}
/* Explicit foreground/background pairs outrank the workspace's inherited link color. */
.ow-identity a.uf-btn-primary,.ow-refined a.uf-btn-primary {background:var(--uf-accent);color:var(--uf-on-badge);border-color:var(--uf-accent)}
.session-gate a.ow-action {background:var(--uf-surface);color:var(--uf-text);border:1px solid var(--uf-border);min-height:44px;box-sizing:border-box;white-space:nowrap}
.ow-refined .ow-utility a,.ow-refined .ow-breadcrumb a,.ow-refined .ow-topbar>div:last-child>a,.ow-refined .ow-subnav a {display:inline-flex;align-items:center;min-height:44px;box-sizing:border-box;white-space:nowrap;flex-shrink:0}
.ow-refined .ow-topbar>div:last-child {display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.ow-refined .ow-topbar button,.ow-refined .ow-skip {min-height:44px;box-sizing:border-box;white-space:nowrap}
