/* Shared geometry and interaction tokens, consuming the existing three-theme brand. */
:root{--ok-radius:12px;--ok-radius-control:8px;--ok-space:16px;--ok-control-height:40px;--ok-duration:160ms;--ok-ease:cubic-bezier(.2,.7,.2,1);--ok-shadow:0 1px 2px #00000012,0 8px 24px #00000012}
html[data-theme]{--ok-control-line:color-mix(in srgb,var(--ok-text) 62%,var(--ok-surface));--ok-focus:var(--ok-text);--ok-hover:color-mix(in srgb,var(--ok-tint) 65%,var(--ok-surface));--ok-backdrop:color-mix(in srgb,var(--ok-bg) 75%,transparent)}
body.workspace-shell[data-density=compact]{--ok-space:12px;--ok-control-height:34px}
html[data-theme] body.workspace-shell{font-feature-settings:'cv11','ss01';font-variant-numeric:tabular-nums}
html[data-theme] body.workspace-shell .content{padding:24px!important;max-width:1800px}
html[data-theme] body.workspace-shell :is(.view,dialog){line-height:1.55}
html[data-theme] body.workspace-shell :is(.view,dialog) :is(h1,h2,h3){text-wrap:balance;color:var(--ok-text)}
html[data-theme] body.workspace-shell .view h1{font-size:clamp(24px,2vw,30px);letter-spacing:-.8px;line-height:1.25}
html[data-theme] body.workspace-shell :is(.view,dialog) :is(button,input,select,textarea){font:inherit;font-size:13px;transition:background var(--ok-duration) var(--ok-ease),border-color var(--ok-duration),box-shadow var(--ok-duration)}
html[data-theme] body.workspace-shell :is(.view,dialog) button:not(.react-flow__handle):not(.react-flow__node){border-radius:var(--ok-radius-control);min-height:32px;cursor:pointer}
html[data-theme] body.workspace-shell :is(.view,dialog) button:disabled{cursor:not-allowed;opacity:.55;transform:none!important}
html[data-theme] body.workspace-shell :is(.view,dialog) :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]){background:var(--ok-raised)!important;border:1px solid var(--ok-control-line)!important;color:var(--ok-text)!important;border-radius:var(--ok-radius-control);min-height:var(--ok-control-height);padding:9px 12px}
html[data-theme] body.workspace-shell :is(.view,dialog) :is(input,textarea)::placeholder{color:var(--ok-muted);opacity:1}
html[data-theme] body.workspace-shell :is(button,a,input,select,textarea,[tabindex]):focus-visible{outline:2px solid var(--ok-focus)!important;outline-offset:3px;box-shadow:0 0 0 1px var(--ok-bg)}
html[data-theme] body.workspace-shell :is(.view,dialog) fieldset{min-width:0;border:1px solid var(--ok-line);border-radius:var(--ok-radius);padding:18px;margin-block:16px;background:var(--ok-surface)}
html[data-theme] body.workspace-shell :is(.view,dialog) legend{padding-inline:8px;font-size:13px;font-weight:700;color:var(--ok-text)}
html[data-theme] body.workspace-shell :is(.view,dialog) label:has(>input,>select,>textarea,>.ok-combobox){gap:7px;margin-block:12px;font-size:12px;font-weight:600;color:var(--ok-muted)}
html[data-theme] body.workspace-shell :is(.view,dialog) label:has(>input[type=checkbox],>input[type=radio]){min-height:32px;margin-block:6px}
html[data-theme] body.workspace-shell :is(.identity-toolbar,.identity-tabs,.unified-tabs,.pa-tabs,.si-tabs,.desk-tabs){gap:6px;padding:6px;background:var(--ok-raised);border:1px solid var(--ok-line);border-radius:var(--ok-radius);width:fit-content;max-width:100%;flex-wrap:wrap}
html[data-theme] body.workspace-shell :is(.unified-toolbar,.identity-toolbar,.rw-dataset-tools){align-items:center;flex-wrap:wrap;gap:10px}
html[data-theme] body.workspace-shell :is(.pa-panel,.unified-profile,.unified-native-task,.rebuild-panel,.premium-panel,.experience-panel,.oc-panel,.si-panel,.desk-panel){border-radius:var(--ok-radius)!important;border-color:var(--ok-line)!important;box-shadow:var(--ok-shadow)}
html[data-theme] body.workspace-shell :is(.hub-hero,.premium-domain-head,.unified-head,.pa-hero,.oc-hero){padding:20px 22px!important;gap:16px;margin-bottom:18px!important}
html[data-theme] body.workspace-shell :is(.view,dialog) table{border-collapse:separate;border-spacing:0;max-width:100%;font-size:13px}
html[data-theme] body.workspace-shell :is(.view,dialog) th{background:var(--ok-raised)!important;color:var(--ok-muted)!important;font-size:11px;letter-spacing:.45px;font-weight:700;position:sticky;top:0;z-index:2;white-space:normal}
html[data-theme] body.workspace-shell :is(.view,dialog) :is(th,td){padding:12px 14px;border-bottom:1px solid var(--ok-line);vertical-align:middle}
html[data-theme] body.workspace-shell[data-density=compact] :is(.view,dialog) :is(th,td){padding:8px 12px}
html[data-theme] body.workspace-shell :is(.view,dialog) tbody tr:hover{background:var(--ok-hover)}
html[data-theme] body.workspace-shell :is(.view,dialog) tbody tr:focus-within{background:var(--ok-hover);box-shadow:inset 3px 0 var(--ok-accent)}
html[data-theme] body.workspace-shell :is(.rw-table-scroll,.identity-table,.unified-table-wrap,.hub-table-wrap){overflow:auto;border:1px solid var(--ok-line);border-radius:var(--ok-radius);overscroll-behavior:contain;scrollbar-width:thin;max-width:100%}
html[data-theme] body.workspace-shell .rw-dataset-tools{display:flex;padding:10px 0;color:var(--ok-muted);font-size:12px}
html[data-theme] body.workspace-shell .rw-column-menu[open]{background:var(--ok-raised);border:1px solid var(--ok-line);border-radius:var(--ok-radius-control);padding:10px}
html[data-theme] body.workspace-shell :is(.view,dialog) pre{font-size:12px;line-height:1.6;max-height:360px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--ok-raised);border:1px solid var(--ok-line);border-radius:var(--ok-radius-control);padding:14px}
html[data-theme] body.workspace-shell dialog[open]{background:var(--ok-surface)!important;color:var(--ok-text)!important;border:1px solid var(--ok-line)!important;border-radius:18px!important;box-shadow:0 24px 80px #0007;max-width:min(1100px,calc(100vw - 40px));max-height:calc(100dvh - 40px);overscroll-behavior:contain;scrollbar-width:thin;animation:ok-dialog-in 180ms var(--ok-ease)}
html[data-theme] body.workspace-shell dialog::backdrop{background:var(--ok-backdrop);backdrop-filter:blur(4px)}
.ok-combobox{position:relative;display:block;min-width:0;width:100%}.ok-combobox>input{width:100%;padding-right:32px!important}.ok-select-native{position:absolute!important;width:1px!important;height:1px!important;clip-path:inset(50%);overflow:hidden;opacity:0;pointer-events:none}
.ok-select-list{position:absolute;inset:calc(100% + 6px) 0 auto;z-index:70;max-height:260px;overflow:auto;background:var(--ok-surface);color:var(--ok-text);border:1px solid var(--ok-control-line);border-radius:var(--ok-radius-control);box-shadow:var(--ok-shadow);padding:5px;overscroll-behavior:contain;scrollbar-width:thin}
.ok-select-option{padding:9px 11px;border-radius:6px;cursor:pointer;overflow-wrap:anywhere;font-size:13px;line-height:1.5}.ok-select-option[aria-selected=true]{background:var(--ok-hover);box-shadow:inset 3px 0 var(--ok-accent)}.ok-select-option[aria-disabled=true]{opacity:.6;cursor:not-allowed}.ok-select-empty{padding:12px;color:var(--ok-muted)}
.ok-field-error{display:block;color:var(--ok-text);font-size:12px;font-weight:500;border-inline-start:3px solid var(--ok-accent);padding:5px 9px;margin-top:5px}.ok-field-error:empty{display:none}.ok-invalid{border-color:var(--ok-accent)!important}
.ok-state{padding:18px 20px;border:1px solid var(--ok-line);border-inline-start:3px solid var(--ok-accent);border-radius:var(--ok-radius);background:var(--ok-surface);display:grid;gap:8px}.ok-state strong{font-size:14px}.ok-state p{margin:0;color:var(--ok-muted)}
.ok-skeleton{height:14px;width:100%;border-radius:5px;background:var(--ok-raised)}.ok-skeleton[aria-busy=true]{animation:ok-loading 1.4s ease-in-out infinite}
.ok-column-resizer{position:absolute;right:0;top:25%;width:8px;height:50%;cursor:col-resize;border:0;border-right:2px solid var(--ok-line);background:transparent;padding:0;touch-action:none}.ok-column-resizer:focus-visible{outline-offset:1px!important}
@keyframes ok-dialog-in{from{opacity:0;transform:translateY(8px) scale(.99)}to{opacity:1;transform:none}}@keyframes ok-loading{50%{opacity:.55}}
@media(max-width:720px){html[data-theme] body.workspace-shell .content{padding:14px!important}html[data-theme] body.workspace-shell :is(.view,dialog) fieldset{padding:12px}html[data-theme] body.workspace-shell dialog[open]{max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:18px}.ok-select-list{max-height:200px}html[data-theme] body.workspace-shell :is(.view,dialog) :is(button,a[role=button]){min-height:40px}.rw-dataset-tools>input{width:100%}}
@media(prefers-reduced-motion:reduce){:root{--ok-duration:0ms}body.workspace-shell dialog[open],.ok-skeleton[aria-busy=true]{animation:none!important}.ok-combobox *{transition:none!important}}

html[data-theme] body.ok-login{--login-bg:var(--ok-bg);--login-surface:var(--ok-surface);--login-ink:var(--ok-text);--login-muted:var(--ok-muted);--login-line:var(--ok-line);--login-accent:var(--ok-accent);--login-violet:var(--ok-focus);background:var(--ok-bg);color:var(--ok-text)}
body.ok-login main{width:min(1160px,100%);gap:48px;align-items:center}body.ok-login .intro{min-height:560px;padding:24px;justify-content:center}body.ok-login .intro h1{font-size:clamp(30px,3.6vw,46px);line-height:1.2;letter-spacing:-1.5px}body.ok-login .login{border-radius:18px;padding:40px;border:1px solid var(--ok-line);box-shadow:var(--ok-shadow)}body.ok-login .login h2{font-size:30px}body.ok-login input{border-color:var(--ok-control-line);background:var(--ok-raised);color:var(--ok-text)}body.ok-login :is(input,a,button):focus-visible{outline:2px solid var(--ok-text);outline-offset:3px}body.ok-login .primary{min-height:48px;border-radius:var(--ok-radius-control)}
@media(max-width:760px){body.ok-login{padding:16px}body.ok-login main{gap:20px}body.ok-login .intro{min-height:0;padding:12px}body.ok-login .login{padding:24px}body.ok-login .login footer{margin-top:28px}}

.identity-atlas-stage{height:520px;position:relative;background:radial-gradient(circle at 50% 40%,var(--ok-tint),var(--ok-bg));border:1px solid var(--ok-line);border-radius:var(--ok-radius);overflow:hidden;touch-action:none;min-width:0}.identity-atlas-tools{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:12px 0}.identity-atlas-tools>select,.identity-atlas-tools>.ok-combobox{max-width:380px}.identity-atlas-inspector{padding:16px;margin-top:12px;background:var(--ok-raised);border:1px solid var(--ok-line);border-radius:var(--ok-radius);font-size:13px}.identity-atlas-inspector ul{max-height:220px;overflow:auto;padding-inline-start:22px}.identity-atlas-inspector p{color:var(--ok-muted)}@media(max-width:720px){.identity-atlas-stage{height:380px}.identity-atlas-tools>.ok-combobox{max-width:100%}}

html[data-theme] body.workspace-shell :is(.rw-table-scroll,.identity-table,.hub-table-wrap) table{min-width:calc(var(--ok-table-cols,3)*110px)}html[data-theme] body.workspace-shell :is(.rw-table-scroll,.identity-table,.hub-table-wrap) :is(th,td){word-break:normal!important;overflow-wrap:normal!important}html[data-theme] body.workspace-shell :is(.rw-table-scroll,.identity-table,.hub-table-wrap) td:first-child{min-width:160px}body.ok-login :is(.subtitle,.login>p:not(.eyebrow),.login small,.login footer){color:var(--ok-muted)!important}

html[data-theme] body.workspace-shell .top{height:auto!important;min-height:68px;display:flex;flex-wrap:wrap;justify-content:flex-start!important;align-items:center;gap:8px!important;padding:12px 22px!important}html[data-theme] body.workspace-shell .top button{white-space:nowrap;flex-shrink:0}html[data-theme] body.workspace-shell .top .crumb{flex:1 1 240px}html[data-theme] body.workspace-shell .top-actions{gap:8px;flex-shrink:0}html[data-theme] body.workspace-shell .rw-ask-launch{flex:0 1 260px;min-width:220px;gap:6px}html[data-theme] body.workspace-shell .rw-ask-launch button{min-width:74px}html[data-theme] body.workspace-shell .rw-sort-column{background:transparent!important;border:0!important;box-shadow:none!important;min-height:28px!important;padding:0!important;color:var(--ok-muted)!important;font-size:11px!important;line-height:1.45;letter-spacing:.3px;text-align:left}html[data-theme] body.workspace-shell .rw-sort-column:hover{color:var(--ok-text)!important}@media(max-width:720px){html[data-theme] body.workspace-shell .top{padding:10px 14px!important}html[data-theme] body.workspace-shell .top .crumb{flex-basis:100%}}

html[data-theme] body.workspace-shell .unified-resource-mark{color:var(--ok-text)!important;background:var(--ok-tint)!important;border-color:var(--ok-line)!important}
