/* VEYTRA Editorial: shared materials, typography and workspace composition. */
@font-face{font-family:Manrope;src:url('fonts/manrope-variable.woff') format('woff');font-weight:200 800;font-style:normal;font-display:swap}
@font-face{font-family:'IBM Plex Mono';src:url('fonts/ibm-plex-mono-regular.woff') format('woff');font-weight:400;font-style:normal;font-display:swap}
:root[data-ui-theme]{
  --font-ui:Manrope,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --font-mono:'IBM Plex Mono',ui-monospace,SFMono-Regular,Consolas,monospace;
  --ds-bg:#f6f5f1;--ds-surface:#fff;--ds-raised:#efefeb;--ds-text:#17191d;
  --ds-muted:#606570;--ds-faint:#656c76;--ds-line:#dedfdc;--ds-hover:#edede8;
  --ds-accent:#3d59d8;--ds-action:#4161df;--ds-accent-soft:#e9edff;
  --ds-green:#16704f;--ds-red:#bb354b;--ds-amber:#8c5b10;
  --ds-shadow:0 14px 44px #20253212,0 2px 5px #20253206;
  --ds-circle-ink:color-mix(in srgb,var(--accent) 35%,var(--ds-text));
  --ds-circle-soft:color-mix(in srgb,var(--accent) 10%,var(--ds-surface));
  --bg:var(--ds-bg);--panel:var(--ds-surface);--panel-2:var(--ds-raised);--text:var(--ds-text);--muted:var(--ds-muted);--line:var(--ds-line);
  --ui-surface:var(--ds-surface);--ui-raised:var(--ds-raised);--ui-border:var(--ds-line);--ui-border-strong:#c3c7ce;
  --ui-muted:var(--ds-muted);--ui-faint:var(--ds-faint);--ui-hover:var(--ds-hover);--ui-shadow:var(--ds-shadow);
  --accent-soft:var(--ds-circle-soft);--green:var(--ds-green);--red:var(--ds-red);
  font-family:var(--font-ui);font-weight:500;color-scheme:light;
}
:root[data-ui-theme=dark]{
  --ds-bg:#101214;--ds-surface:#191c20;--ds-raised:#22262b;--ds-text:#f3f2ee;
  --ds-muted:#adb4bf;--ds-faint:#929ba8;--ds-line:#343940;--ds-hover:#282d34;
  --ds-accent:#96aaff;--ds-accent-soft:#252f4d;--ds-green:#65d5a9;--ds-red:#ff91a2;--ds-amber:#e3ba73;
  --ds-shadow:0 18px 50px #0005,0 2px 5px #0003;--ui-border-strong:#505967;color-scheme:dark;
}
:root[data-ui-theme] body{background:var(--ds-bg);color:var(--ds-text);font-family:var(--font-ui)}
:root[data-ui-theme] :is(button,input,textarea,select){font-family:var(--font-ui)}
:root[data-ui-theme] :is(h1,h2,h3){color:var(--ds-text);font-weight:700;letter-spacing:-.035em}
:root[data-ui-theme] h1{line-height:1.12}
:root[data-ui-theme] :is(.mono,.ow-mono){font-family:var(--font-mono);font-variant-numeric:tabular-nums;letter-spacing:-.035em}
:root[data-ui-theme] .muted{color:var(--ds-muted)}
:root[data-ui-theme] .eyebrow{color:var(--ds-muted);font-size:11px;font-weight:650;letter-spacing:.1em}
:root[data-ui-theme] .btn{border-radius:9px;min-height:40px;padding:10px 16px;font-size:13px;font-weight:650;background:var(--ds-surface);border-color:var(--ds-line);color:var(--ds-text);box-shadow:none;letter-spacing:-.015em}
:root[data-ui-theme] .btn:hover:not(:disabled){background:var(--ds-hover);border-color:var(--ui-border-strong)}
:root[data-ui-theme] .btn.primary{background:var(--ds-action);border-color:var(--ds-action);color:#fff}
:root[data-ui-theme] .btn.primary:hover:not(:disabled){background:#3453cb;border-color:#3453cb;color:#fff;box-shadow:none}
:root[data-ui-theme] .btn.subtle{background:transparent;border-color:transparent;color:var(--ds-muted)}
:root[data-ui-theme] .btn.danger{color:var(--ds-red);background:color-mix(in srgb,var(--ds-red) 7%,var(--ds-surface));border-color:color-mix(in srgb,var(--ds-red) 26%,var(--ds-line))}
:root[data-ui-theme] .icon-btn{border-radius:8px;color:var(--ds-muted)}
:root[data-ui-theme] .icon-btn:hover{background:var(--ds-hover);color:var(--ds-text)}
:root[data-ui-theme] :is(input:where(:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file])),textarea,select){color:var(--ds-text);background:var(--ds-surface);border-color:var(--ds-line);border-radius:8px;caret-color:var(--ds-accent)}
:root[data-ui-theme] :is(input,textarea)::placeholder{color:var(--ds-faint);opacity:1}
:root[data-ui-theme] :is(input,textarea,select):focus{border-color:var(--ds-accent);box-shadow:0 0 0 3px var(--ds-accent-soft)}
:root[data-ui-theme] :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--ds-accent);outline-offset:3px}
:root[data-ui-theme] :is(input[type=checkbox],input[type=radio],input[type=range]){accent-color:var(--ds-action)}
:root[data-ui-theme] .pill{border-color:var(--ds-line);color:var(--ds-muted);border-radius:6px;font-size:11px}
:root[data-ui-theme] ::selection{background:var(--ds-accent-soft);color:var(--ds-text)}
:root[data-ui-theme] ::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--ds-muted) 35%,var(--ds-bg))}
:root[data-ui-theme] .veytra-brand-wordmark{color:var(--ds-text)}
:root[data-ui-theme] .veytra-brand-mark{color:var(--veytra-blue)}
/* One coherent workspace rail, with the established groups and collapse behavior retained. */
:root[data-ui-theme] .workspace-nav{background:var(--ds-surface);border-color:var(--ds-line);color:var(--ds-muted)}
:root[data-ui-theme] .workspace-shell .wn-brand{height:70px;padding-left:19px;padding-right:15px}
:root[data-ui-theme] .workspace-shell.nav-collapsed .wn-brand{height:83px;padding:14px 0 8px}
:root[data-ui-theme] .wn-collapse{background:transparent;color:var(--ds-muted);border-color:transparent}
:root[data-ui-theme] .wn-collapse:hover{background:var(--ds-hover);color:var(--ds-text);border-color:var(--ds-line)}
:root[data-ui-theme] .workspace-nav .wn-current-circle{background:transparent;border:1px solid transparent;box-shadow:none;border-radius:10px;margin-bottom:14px;padding-top:12px;padding-bottom:12px}
:root[data-ui-theme] .workspace-nav .wn-current-circle:hover{background:var(--ds-raised);border-color:var(--ds-line)}
:root[data-ui-theme] .workspace-nav .wn-current-circle strong{color:var(--ds-text);font-size:12px;font-weight:750;letter-spacing:-.025em}
:root[data-ui-theme] .workspace-nav .wn-current-circle small{color:var(--ds-muted);font-size:10px}
:root[data-ui-theme] .wn-current-circle .wn-circle-mark{background:var(--ds-circle-soft);border-color:var(--ds-line);box-shadow:none}
:root[data-ui-theme] .workspace-nav .wn-switch-chevron{color:var(--ds-muted)}
:root[data-ui-theme] .workspace-nav .wn-search{background:var(--ds-bg);border-color:var(--ds-line);color:var(--ds-muted);border-radius:8px;min-height:36px;margin-bottom:20px;font-size:12px}
:root[data-ui-theme] .workspace-nav .wn-search kbd{border-color:var(--ds-line);color:var(--ds-faint);font-family:var(--font-ui)}
:root[data-ui-theme] :is(.wn-scope-heading,.wn-group-heading>button:first-child){color:var(--ds-faint);font-size:10px;letter-spacing:.09em;font-weight:650}
:root[data-ui-theme] :is(.wn-scope-symbol,.wn-branch-toggle,.wn-group-add){color:var(--ds-faint)}
:root[data-ui-theme] .workspace-nav .wn-link{color:var(--ds-muted);font-size:13px;font-weight:600;border-radius:8px;min-height:39px;gap:10px}
:root[data-ui-theme] .workspace-nav .wn-link:hover{background:var(--ds-hover);color:var(--ds-text)}
:root[data-ui-theme] .workspace-nav .wn-main .wn-link.active{background:var(--ds-accent-soft);color:var(--ds-accent)}
:root[data-ui-theme] .workspace-nav .wn-main .wn-link.active::before{background:var(--ds-accent);width:2px}
:root[data-ui-theme] .workspace-nav .wn-main .wn-link.active>svg{color:var(--ds-accent)}
:root[data-ui-theme] .workspace-nav .wn-personal-nav .wn-link.active{background:var(--ds-raised);color:var(--ds-text)}
:root[data-ui-theme] .workspace-nav .wn-personal-nav .wn-link.active>svg{color:var(--ds-accent)}
:root[data-ui-theme] .workspace-nav .wn-room{font-size:12px;min-height:34px;font-weight:500}
:root[data-ui-theme] :is(.wn-room>svg,.wn-friend>svg){color:var(--ds-faint)}
:root[data-ui-theme] :is(.wn-unread,.wn-branch-tools button){color:var(--ds-muted);background:var(--ds-raised);border-color:var(--ds-line);border-radius:5px}
:root[data-ui-theme] .workspace-nav .wn-branch-tools button{background:transparent;font-size:11px}
:root[data-ui-theme] :is(.wn-circle,.wn-circle.selected){color:var(--ds-text);font-size:12px}
:root[data-ui-theme] :is(.wn-circle small,.wn-friend-label,.wn-more-hint){color:var(--ds-faint);font-size:10px}
:root[data-ui-theme] .wn-circle:hover{background:var(--ds-hover)}
:root[data-ui-theme] .wn-friend-mark{color:var(--ds-text);background:var(--ds-raised);border-color:var(--ds-line);border-radius:6px}
:root[data-ui-theme] .wn-footer{background:var(--ds-surface);border-color:var(--ds-line)}
:root[data-ui-theme] :is(.wn-footer-tools,.wn-footer-tools button){color:var(--ds-faint);font-size:10px}
:root[data-ui-theme] .wn-account{background:var(--ds-bg);border-color:var(--ds-line);border-radius:9px}
:root[data-ui-theme] .wn-account strong{color:var(--ds-text);font-weight:650;font-size:12px}
:root[data-ui-theme] .wn-account small{color:var(--ds-muted);font-size:10px}
:root[data-ui-theme] :is(.wn-account-mark,.wn-account>svg,.wn-workspace-settings){color:var(--ds-muted)}
:root[data-ui-theme] .workspace-shell>.topbar{background:var(--ds-bg);border-bottom-color:var(--ds-line);backdrop-filter:none;box-shadow:none}
:root[data-ui-theme] :is(.workspace-breadcrumb,.workspace-breadcrumb>span,.brand-name){color:var(--ds-text);font-weight:600}
:root[data-ui-theme] :is(.brand-domain,.brand-chevron){color:var(--ds-muted)}
:root[data-ui-theme] .search-button{color:var(--ds-muted);border-color:var(--ds-line)}
:root[data-ui-theme] .search-button:hover{background:var(--ds-hover)}
:root[data-ui-theme] .search-button kbd{color:var(--ds-faint)}
:root[data-ui-theme] .mobile-tabbar{background:var(--ds-surface);border-color:var(--ds-line);backdrop-filter:none}
:root[data-ui-theme] .workspace-shell .mobile-tabbar>button{color:var(--ds-muted);font-size:10px;font-weight:600}
:root[data-ui-theme] .workspace-shell .mobile-tabbar>button.active{color:var(--ds-accent)}
/* Theme choice is a personal preference; it does not alter the Circle identity. */
.app-theme-switch{display:flex;align-items:center;gap:2px;padding:3px;background:var(--ds-raised);border:1px solid var(--ds-line);border-radius:9px;margin-right:8px;flex:none}
.app-theme-switch button{display:flex;align-items:center;gap:6px;min-height:29px;padding:5px 9px;border-radius:6px;color:var(--ds-muted);font-size:11px;font-weight:650;white-space:nowrap}
.app-theme-switch button[aria-pressed=true]{background:var(--ds-surface);color:var(--ds-text);box-shadow:0 1px 3px #00000010}
.app-theme-switch button:hover{color:var(--ds-text)}
:root[data-ui-theme] .prototype-bottom{color:var(--ds-faint)}
/* Dialogs use the same material as the workspace, retaining size and focus behavior. */
:root[data-ui-theme] .modal-overlay{background:#10151e66;backdrop-filter:blur(6px)}
:root[data-ui-theme=dark] .modal-overlay{background:#050609b3}
:root[data-ui-theme] .modal-box{background:var(--ds-surface);border-color:var(--ds-line);color:var(--ds-text);border-radius:16px;box-shadow:var(--ds-shadow);padding:30px}
:root[data-ui-theme] .modal-box h2{font-size:28px;font-weight:750;line-height:1.15}
:root[data-ui-theme] .modal-box p{color:var(--ds-muted);font-size:14px;line-height:1.65}
:root[data-ui-theme] .modal-box .modal-close{background:var(--ds-raised);color:var(--ds-muted);border-radius:8px}
:root[data-ui-theme] .modal-fields label{color:var(--ds-muted);font-size:13px;font-weight:550}
:root[data-ui-theme] .search-result{background:var(--ds-surface);border-radius:8px;color:var(--ds-text)}
:root[data-ui-theme] .search-result:hover{background:var(--ds-hover)}
:root[data-ui-theme] .search-result small{color:var(--ds-muted)}
:root[data-ui-theme] :is(.notification-item,.space-choice){border-color:var(--ds-line);color:var(--ds-text)}
:root[data-ui-theme] .notification-item>svg{color:var(--ds-muted)}
:root[data-ui-theme] .space-choice{background:var(--ds-surface);border-radius:10px}
:root[data-ui-theme] .space-choice:hover{background:var(--ds-hover)}
:root[data-ui-theme] .space-choice small{color:var(--ds-muted)}
:root[data-ui-theme] .toast{background:var(--ds-text);color:var(--ds-bg);border-color:transparent;border-radius:10px;box-shadow:var(--ds-shadow);font-size:13px;font-weight:600}
:root[data-ui-theme] .toast>svg{color:var(--ds-bg)}
@media(max-width:700px){
  .app-theme-switch{margin-right:2px;padding:2px;gap:1px}
  .app-theme-switch button{min-width:30px;min-height:30px;padding:5px}
  .app-theme-switch button span{display:none}
  :root[data-ui-theme] .workspace-shell>.topbar{gap:7px}
  :root[data-ui-theme] .workspace-shell .topbar .community-brand{max-width:calc(100vw - 166px)}
  :root[data-ui-theme] .workspace-shell .topbar :is(.brand-name,.brand-domain){max-width:100%}
  :root[data-ui-theme] .modal-box{padding:25px 20px;border-radius:14px}
  :root[data-ui-theme] .modal-box :is(input:where(:not([type=range]):not([type=checkbox]):not([type=radio])),textarea,select){font-size:16px}
}
@media(prefers-reduced-motion:reduce){.app-theme-switch button{transition:none}}

/* V43: give the application a clear frame, without stealing space from the terminal. */
:root[data-ui-theme] .workspace-shell:not(.trading-shell):not(.nav-collapsed){--nav-width:248px}
:root[data-ui-theme] .workspace-shell:not(.trading-shell) .wn-scroll{padding:2px 14px 20px}
:root[data-ui-theme] .workspace-shell:not(.trading-shell) .wn-brand{height:78px;padding:0 22px}
:root[data-ui-theme] .workspace-nav .wn-current-circle{gap:12px;margin:0 0 18px;padding:10px 8px}
:root[data-ui-theme] .workspace-nav .wn-current-circle .wn-circle-mark{width:38px;height:38px}
:root[data-ui-theme] .workspace-nav .wn-current-circle strong{font-size:13px;line-height:1.4}
:root[data-ui-theme] .workspace-nav .wn-current-circle small{font-size:11px;margin-top:3px}
:root[data-ui-theme] .workspace-shell:not(.trading-shell) .wn-link{min-height:43px;padding:10px 12px;font-size:13px;letter-spacing:-.015em}
:root[data-ui-theme] .workspace-shell:not(.trading-shell) .wn-room{min-height:35px;padding:7px 9px;font-size:12px}
:root[data-ui-theme] .workspace-nav .wn-link>svg{opacity:1;stroke-width:1.65}
:root[data-ui-theme] .workspace-nav .wn-main .wn-link.active::before{display:none}
:root[data-ui-theme] .workspace-nav .wn-main .wn-link.active{font-weight:700}
:root[data-ui-theme] .workspace-nav .wn-personal-scope{margin-top:22px;padding-top:19px}
:root[data-ui-theme] .workspace-nav .wn-scope-heading{margin-bottom:9px;font-size:10px}
:root[data-ui-theme] .workspace-shell:not(.trading-shell) .wn-footer{padding:12px 14px}
:root[data-ui-theme] .workspace-nav .wn-account{min-height:54px;background:transparent;border-color:transparent;padding:8px}
:root[data-ui-theme] .workspace-nav .wn-account:hover{background:var(--ds-hover)}
:root[data-ui-theme] .workspace-nav .wn-account-mark{width:34px;height:34px;background:var(--ds-raised);border-radius:50%}
:root[data-ui-theme] .workspace-nav .wn-account small{margin-top:4px}
:root[data-ui-theme] .workspace-nav .wn-search{margin-bottom:16px}
:root[data-ui-theme] .workspace-breadcrumb{min-width:0;gap:13px;white-space:nowrap;font-size:13px}
:root[data-ui-theme] .workspace-breadcrumb .workspace-circle-name{font-weight:500;color:var(--ds-muted);max-width:180px;overflow:hidden;text-overflow:ellipsis}
:root[data-ui-theme] .workspace-breadcrumb .workspace-breadcrumb-divider{color:var(--ds-faint);font-weight:400}
:root[data-ui-theme] .workspace-shell .topbar .search-button{border:1px solid var(--ds-line);background:color-mix(in srgb,var(--ds-raised) 65%,transparent);height:37px;border-radius:8px;padding:0 12px;gap:10px}
:root[data-ui-theme] .workspace-shell .topbar .search-button>span{font-size:12px;font-weight:500;flex:1;text-align:left}
:root[data-ui-theme] .workspace-shell .topbar .search-button kbd{border:1px solid var(--ds-line);border-radius:4px;padding:2px 4px;background:var(--ds-surface);font:10px var(--font-ui)}
:root[data-ui-theme] .workspace-shell .topbar .top-tools{gap:9px}
:root[data-ui-theme] .workspace-shell .topbar .notification-btn{display:flex}
:root[data-ui-theme] .workspace-shell .topbar .phone-toggle{color:var(--ds-muted)}
@media(min-width:1101px){
  :root[data-ui-theme] .workspace-shell:not(.trading-shell)>.topbar{padding-inline:36px}
  :root[data-ui-theme] .workspace-shell:not(.trading-shell):not(.desktop-chat-shell) .view-content:not(.native-mobile-content):not(.live-content):not(.mobile-content){padding:30px 36px 32px;max-width:1800px;margin-inline:auto}
  :root[data-ui-theme] .workspace-shell:not(.trading-shell)>.topbar .search-button{display:flex;width:clamp(200px,21vw,320px)}
  :root[data-ui-theme] .workspace-shell:not(.trading-shell) .workspace-nav .wn-search{display:none}
}
@media(min-width:701px) and (max-width:1250px){
  :root[data-ui-theme] .workspace-breadcrumb .workspace-circle-name,:root[data-ui-theme] .workspace-breadcrumb .workspace-breadcrumb-divider{display:none}
  :root[data-ui-theme] .topbar .app-theme-switch button span{display:none}
}
@media(min-width:701px) and (max-width:1100px){
  :root[data-ui-theme] .workspace-shell:not(.trading-shell):not(.nav-collapsed){--nav-width:224px}
  :root[data-ui-theme] .workspace-shell:not(.trading-shell) .wn-scroll{padding-inline:10px}
  :root[data-ui-theme] .workspace-shell>.topbar .search-button{width:37px;padding:0;justify-content:center;display:flex}
  :root[data-ui-theme] .workspace-shell>.topbar .search-button>span,:root[data-ui-theme] .workspace-shell>.topbar .search-button kbd{display:none}
}
:root[data-ui-theme] .workspace-shell.nav-collapsed .wn-brand{height:83px;padding:14px 0 8px}
:root[data-ui-theme] .workspace-shell.nav-collapsed .wn-scroll{padding:0 8px 10px}
:root[data-ui-theme] .workspace-shell.nav-collapsed .wn-current-circle{padding:8px 0;margin-bottom:10px}
:root[data-ui-theme] .workspace-shell.nav-collapsed .wn-link{padding:9px 0}
:root[data-ui-theme] .workspace-shell.nav-collapsed .wn-footer{padding:7px}
:root[data-ui-theme] .workspace-shell.nav-collapsed .wn-account{padding:8px 0}
@media(max-width:700px){
  :root[data-ui-theme] .workspace-shell .topbar .search-button,:root[data-ui-theme] .workspace-shell .topbar .notification-btn{display:none}
  :root[data-ui-theme] .workspace-shell .topbar .top-tools{gap:2px}
  :root[data-ui-theme] .workspace-shell>.workspace-nav{width:272px;max-width:85vw}
  :root[data-ui-theme] .workspace-shell .workspace-nav .wn-link{min-height:44px}
  :root[data-ui-theme] .workspace-shell .workspace-nav .wn-room{min-height:40px}
}
