/* TALNEXQ 4254: structural depth, readable surfaces and contextual tool finder. */
body.spatial-workspace4254{--sw-ink:#142f53;--sw-muted:#456384;--sw-line:#d6e3f2;--sw-accent:#175bd0;--sw-panel:#fff;--sw-shadow:0 2px 3px #173f7010,0 13px 30px #173f7010;--sw-lift:translateY(-3px)}
body.spatial-workspace4254 .qi388-shell .content,body.spatial-workspace4254[data-qi-surface="workspace"] main{min-width:0}
body.spatial-workspace4254 .qi388-shell .tnx4172-hero,body.spatial-workspace4254[data-qi-surface="workspace"] .hero{border:1px solid #c8dcf4;border-radius:24px;background:radial-gradient(ellipse at 90% 20%,#d9ecff 0,transparent 55%),linear-gradient(110deg,#fff,#edf5ff);box-shadow:0 2px 0 #fff inset,0 8px 0 -4px #dce9f8,0 22px 45px #173f7010;color:var(--sw-ink);isolation:isolate}
body.spatial-workspace4254 .tnx4188-hero h2,body.spatial-workspace4254[data-qi-surface="workspace"] .hero h1{color:#113766;line-height:1.15;letter-spacing:-.035em}
body.spatial-workspace4254 .tnx4188-hero-copy>p,body.spatial-workspace4254[data-qi-surface="workspace"] .hero p{color:#385b82;line-height:1.7}
body.spatial-workspace4254 .tnx4188-orbit{filter:drop-shadow(0 20px 10px #2d67b32b);transform:perspective(700px) rotateY(-13deg) rotateX(7deg);pointer-events:none;user-select:none}
body.spatial-workspace4254[data-qi-surface="workspace"] .hero-art{pointer-events:none;user-select:none;transform:perspective(750px) rotateY(-15deg)}
body.spatial-workspace4254[data-qi-surface="workspace"] .orb-core{box-shadow:inset 6px 8px 20px #fff,inset -10px -12px 24px #8ab8f043,0 18px 35px #2459952b}
body.spatial-workspace4254 .tnx4172-app-card,body.spatial-workspace4254 .tnx4172-tool,body.spatial-workspace4254 .tnx360-spotlight-grid>a,body.spatial-workspace4254[data-qi-surface="workspace"] .tile,body.spatial-workspace4254[data-qi-surface="workspace"] .insight,body.spatial-workspace4254[data-qi-surface="workspace"] .quick-card{border:1px solid var(--sw-line);background:var(--sw-panel);box-shadow:var(--sw-shadow);border-radius:18px;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;color:var(--sw-ink)}
body.spatial-workspace4254 .tnx4172-app-card{border-top:3px solid #8bb5ec;overflow:visible}
body.spatial-workspace4254 .tnx4172-app-icon,body.spatial-workspace4254[data-qi-surface="workspace"] .tile-icon{box-shadow:inset 0 1px 0 #ffffffd9,0 4px 0 -1px #d8e7fb,0 9px 16px #2e65a214;flex-shrink:0}
body.spatial-workspace4254 .tnx4172-app-content strong,body.spatial-workspace4254 .tnx4172-tool-link strong{color:#163b68;line-height:1.35}
body.spatial-workspace4254 .tnx4172-app-desc,body.spatial-workspace4254 .tnx4172-app-content>small,body.spatial-workspace4254 .tnx4172-tool-link small{color:#456384;line-height:1.6}
body.spatial-workspace4254 .tnx4172-app-content{min-width:0}
body.spatial-workspace4254 .tnx4172-section-title h3{color:#14355e;line-height:1.3}
body.spatial-workspace4254 .tnx4172-app-grid,body.spatial-workspace4254 .tnx4172-tools{gap:18px}
body.spatial-workspace4254 .tnx4188-stats>a{background:#fff;border:1px solid var(--sw-line);box-shadow:0 8px 20px #173f7008}
body.spatial-workspace4254 .qi388-shell .ptop{border-bottom:1px solid #d5e3f5}
body.spatial-workspace4254[data-qi-surface="workspace"] .section-subtitle,body.spatial-workspace4254[data-qi-surface="workspace"] .tile p,body.spatial-workspace4254[data-qi-surface="workspace"] .insight small{color:var(--sw-muted)}
body.spatial-workspace4254 .sw4254-launch{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:44px;padding:10px 15px;background:#fff;color:#214875;border:1px solid #b9cfe9;border-radius:12px;font:inherit;font-size:13px;font-weight:600;line-height:1.3;cursor:pointer;box-shadow:0 2px 0 #e8f0fb;white-space:nowrap}
body.spatial-workspace4254 .sw4254-launch kbd{border:1px solid #d4e1f1;background:#f0f5fc;border-radius:5px;padding:3px 5px;font:11px ui-sans-serif,system-ui;color:#456384}
body.spatial-workspace4254 .sw4254-dialog{width:min(610px,calc(100vw - 32px));max-height:min(720px,calc(100dvh - 40px));padding:0;border:1px solid #b9d0ed;border-radius:22px;color:#15375e;background:#fff;box-shadow:0 35px 100px #102c5c40;font-family:Inter,Archivo,ui-sans-serif,system-ui,sans-serif;overflow:auto}
body.spatial-workspace4254 .sw4254-dialog::backdrop{background:#142d4f66}
body.spatial-workspace4254 .sw4254-dialog:not([open]){display:none}
body.spatial-workspace4254 .sw4254-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:23px 24px 12px}
body.spatial-workspace4254 .sw4254-dialog h2{margin:0;color:#173c68;font-size:22px;line-height:1.3;letter-spacing:-.025em}
body.spatial-workspace4254 .sw4254-close{display:grid;place-items:center;width:40px;min-height:40px;flex-shrink:0;border:1px solid #cdddef;background:#f8fbff;border-radius:10px;color:#214e82;font-size:24px;cursor:pointer}
body.spatial-workspace4254 .sw4254-search-wrap{display:block;margin:8px 24px 0}
body.spatial-workspace4254 .sw4254-search-wrap span{display:block;color:#466487;font-size:12px;font-weight:650;margin-bottom:8px}
body.spatial-workspace4254 .sw4254-search{box-sizing:border-box;width:100%;min-height:50px;border:1px solid #9bbbe5;background:#f9fbff;color:#15375e;font:inherit;font-size:16px;line-height:1.4;border-radius:12px;padding:12px 14px}
body.spatial-workspace4254 .sw4254-help{font-size:12px;line-height:1.5;color:#496788;margin:12px 24px}
body.spatial-workspace4254 .sw4254-results{list-style:none;padding:0 14px;margin:0;max-height:315px;overflow:auto;overscroll-behavior:contain}
body.spatial-workspace4254 .sw4254-results li{margin:0;padding:0}
body.spatial-workspace4254 .sw4254-result{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:50px;padding:12px;border:1px solid transparent;border-radius:11px;color:#1b426f;text-decoration:none;font-size:14px;font-weight:650;overflow-wrap:anywhere}
body.spatial-workspace4254 .sw4254-result[aria-current="true"],body.spatial-workspace4254 .sw4254-result:hover{border-color:#b8d2f4;background:#eaf3ff;color:#104b9c}
body.spatial-workspace4254 .sw4254-arrow{color:#3b6caa;flex-shrink:0}
body.spatial-workspace4254 .sw4254-empty{padding:24px 10px;font-size:14px;color:#486484}
body.spatial-workspace4254 .sw4254-preferences{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px;padding:18px 24px;margin-top:14px;background:#f5f9ff;border-top:1px solid #dce7f5}
body.spatial-workspace4254 .sw4254-preferences label{display:flex;align-items:center;gap:8px;font-size:12px;color:#345b84;min-height:32px}
body.spatial-workspace4254 .sw4254-preferences select{min-height:38px;color:#234d7d;border:1px solid #bcd1ed;border-radius:8px;background:#fff;padding:6px 9px;font-size:12px}
body.spatial-workspace4254 .sw4254-preferences input{width:17px;height:17px;accent-color:#175bd0}
body.spatial-workspace4254 .sw4254-launch:focus-visible,body.spatial-workspace4254 .sw4254-dialog :is(button,a,input,select):focus-visible{outline:3px solid #2678e8;outline-offset:3px}
body.spatial-workspace4254[data-sw-density="compact"] .tnx4172-app-card,body.spatial-workspace4254[data-sw-density="compact"][data-qi-surface="workspace"] .tile{padding:18px;min-height:180px}
body.spatial-workspace4254[data-sw-density="compact"] .tnx4172-app-grid,body.spatial-workspace4254[data-sw-density="compact"][data-qi-surface="workspace"] .cards{gap:14px}
body.spatial-workspace4254[data-sw-depth="flat"]{--sw-shadow:0 2px 7px #173f700a;--sw-lift:none}
body.spatial-workspace4254[data-sw-depth="flat"] .tnx4188-orbit,body.spatial-workspace4254[data-sw-depth="flat"][data-qi-surface="workspace"] .hero-art{transform:none;filter:none}
/* The established portal uses an important cascade layer. Reopen it for these
   bounded surfaces so this release does not silently lose to older UI paint. */
@layer qi48{
  :root[data-area="app"][data-theme] body.spatial-workspace4254.quantum-world4245.quantum-world4245.quantum-world4245 .app.qi388-shell .content :is(.tnx4172-app-card,.tnx4172-tool){border-color:var(--sw-line)!important;box-shadow:var(--sw-shadow)!important}
  :root[data-area="app"][data-theme] body.spatial-workspace4254.quantum-world4245.quantum-world4245.quantum-world4245 .app.qi388-shell :is(.tnx4172-app-icon,.tnx4172-tool-symbol){box-shadow:inset 0 1px 0 #ffffffb3,0 4px 0 -1px #91b1da38,0 9px 16px #2e65a214!important}
  :root[data-area="app"][data-theme]:not([data-theme="dark"]):not([data-se-contrast="high"]):not([data-contrast="high"]) body.spatial-workspace4254.quantum-world4245.quantum-world4245.quantum-world4245 .app.qi388-shell .tnx4172-launcher .tnx4172-hero{background:radial-gradient(ellipse at 90% 20%,#d9ecff 0,transparent 55%),linear-gradient(110deg,#fff,#edf5ff)!important;border-color:#c8dcf4!important;color:#142f53!important;box-shadow:0 2px 0 #fff inset,0 8px 0 -4px #dce9f8,0 22px 45px #173f7010!important}
  :root[data-area="app"][data-theme]:not([data-theme="dark"]):not([data-se-contrast="high"]):not([data-contrast="high"]) body.spatial-workspace4254.quantum-world4245.quantum-world4245.quantum-world4245 .app.qi388-shell .tnx4172-hero :is(h2,h3){color:#113766!important}
  :root[data-area="app"][data-theme]:not([data-theme="dark"]):not([data-se-contrast="high"]):not([data-contrast="high"]) body.spatial-workspace4254.quantum-world4245.quantum-world4245.quantum-world4245 .app.qi388-shell .tnx4172-hero :is(p,.tnx4172-eyebrow){color:#385b82!important}
  :root[data-area="app"][data-theme]:not([data-theme="dark"]):not([data-se-contrast="high"]):not([data-contrast="high"]) body.spatial-workspace4254.quantum-world4245.quantum-world4245.quantum-world4245 .app.qi388-shell .tnx4172-hero .btn.ghost:not(:disabled):not([aria-disabled="true"]){background:#ffffffc9!important;color:#1d528e!important;border-color:#aac7eb!important}
  :root[data-area="app"][data-theme] body.spatial-workspace4254.quantum-world4245.quantum-world4245.quantum-world4245 .app.qi388-shell .tnx4188-orbit{filter:drop-shadow(0 20px 10px #2d67b32b)!important}
  @media(hover:hover) and (pointer:fine){:root[data-area="app"][data-theme] body.spatial-workspace4254.quantum-world4245.quantum-world4245.quantum-world4245 .app.qi388-shell .content :is(.tnx4172-app-card,.tnx4172-tool):hover{transform:var(--sw-lift)!important;box-shadow:var(--sw-shadow)!important}}
}
html:root:not([data-theme="dark"]) body.spatial-workspace4254.quantum-world4245.quantum-world4245[data-qi-surface="workspace"] .hero{background:radial-gradient(ellipse at 90% 20%,#d9ecff 0,transparent 55%),linear-gradient(110deg,#fff,#edf5ff)!important;color:#142f53!important;border-color:#c8dcf4!important;box-shadow:0 2px 0 #fff inset,0 8px 0 -4px #dce9f8,0 22px 45px #173f7010!important}
html:root:not([data-theme="dark"]) body.spatial-workspace4254.quantum-world4245.quantum-world4245[data-qi-surface="workspace"] .hero h1{color:#113766!important}
html:root:not([data-theme="dark"]) body.spatial-workspace4254.quantum-world4245.quantum-world4245[data-qi-surface="workspace"] .hero :is(p,.eyebrow){color:#385b82!important}
html:root:not([data-theme="dark"]) body.spatial-workspace4254.quantum-world4245.quantum-world4245[data-qi-surface="workspace"] .hero-secondary{background:#fff!important;color:#245e9e!important;border-color:#a8c5e9!important}
html:root:not([data-theme="dark"]) body.spatial-workspace4254.quantum-world4245.quantum-world4245[data-qi-surface="workspace"] .orb-core{background:radial-gradient(circle at 35% 30%,#fff,#dcecff 60%,#bbd7fb)!important;border-color:#9ebfea!important;box-shadow:inset 6px 8px 20px #fff,inset -10px -12px 24px #8ab8f043,0 18px 35px #2459952b!important}
html:root body.spatial-workspace4254.quantum-world4245.quantum-world4245[data-qi-surface="workspace"] :is(.tile,.quick-card,.insight){box-shadow:var(--sw-shadow)!important}
@media(hover:hover) and (pointer:fine){html:root body.spatial-workspace4254.quantum-world4245.quantum-world4245[data-qi-surface="workspace"] :is(.tile,.quick-card):hover{transform:var(--sw-lift)!important;box-shadow:var(--sw-shadow)!important}}
@media(hover:hover) and (pointer:fine){body.spatial-workspace4254 .tnx4172-app-card:hover,body.spatial-workspace4254 .tnx360-spotlight-grid>a:hover,body.spatial-workspace4254[data-qi-surface="workspace"] .tile:hover,body.spatial-workspace4254[data-qi-surface="workspace"] .quick-card:hover{transform:var(--sw-lift);border-color:#79a8e5;box-shadow:0 3px 0 #dce9fa,0 18px 35px #173f701a}}
@media(max-width:680px){body.spatial-workspace4254 .tnx4172-app-grid,body.spatial-workspace4254 .tnx4172-tools{gap:14px}body.spatial-workspace4254 .sw4254-launch kbd{display:none}body.spatial-workspace4254 .sw4254-launch{padding:9px 12px;font-size:12px}body.spatial-workspace4254 .sw4254-dialog-head{padding:20px 18px 12px}body.spatial-workspace4254 .sw4254-search-wrap{margin-inline:18px}body.spatial-workspace4254 .sw4254-help{margin-inline:18px}body.spatial-workspace4254 .sw4254-preferences{padding:16px 18px}body.spatial-workspace4254 .tnx4188-orbit{opacity:.24}body.spatial-workspace4254[data-qi-surface="workspace"] .hero-art{opacity:.2}}
@media(prefers-reduced-motion:reduce){body.spatial-workspace4254{--sw-lift:none}body.spatial-workspace4254 .tnx4172-app-card,body.spatial-workspace4254 .tnx4172-tool,body.spatial-workspace4254 .tnx360-spotlight-grid>a,body.spatial-workspace4254[data-qi-surface="workspace"] .tile,body.spatial-workspace4254[data-qi-surface="workspace"] .insight,body.spatial-workspace4254[data-qi-surface="workspace"] .quick-card{transition:none}body.spatial-workspace4254 .tnx4188-orbit,body.spatial-workspace4254[data-qi-surface="workspace"] .hero-art{transform:none}}
html[data-se-motion="reduce"] body.spatial-workspace4254,html[data-se-motion="reduced"] body.spatial-workspace4254{--sw-lift:none}
html[data-theme="dark"] body.spatial-workspace4254{--sw-ink:#e5efff;--sw-muted:#b7cce8;--sw-line:#35516f;--sw-panel:#162c46}
html[data-theme="dark"] body.spatial-workspace4254 :is(.tnx4172-app-content strong,.tnx4172-tool-link strong,.tnx4172-section-title h3){color:#e6f0ff}
html[data-theme="dark"] body.spatial-workspace4254 :is(.tnx4172-app-desc,.tnx4172-app-content>small,.tnx4172-tool-link small){color:#b7cce8}
@media(forced-colors:active){body.spatial-workspace4254{--sw-shadow:none;--sw-lift:none}body.spatial-workspace4254 .tnx4188-orbit,body.spatial-workspace4254[data-qi-surface="workspace"] .hero-art{display:none}body.spatial-workspace4254 .sw4254-dialog,body.spatial-workspace4254 .sw4254-result,body.spatial-workspace4254 .sw4254-launch{border:1px solid ButtonText;background:Canvas;color:CanvasText;box-shadow:none}body.spatial-workspace4254 .sw4254-result[aria-current="true"]{outline:2px solid Highlight}}

/* TNX 20261106 security/mobile review: reclaim the hidden search row. */
@media (max-width:900px) {
  :root[data-area="app"] .app.qi388-shell .ptop.qi388-topbar .qi388-search {
    display:none !important;
  }
}
@media (min-width:601px) and (max-width:730px) {
  :root[data-area="app"] .app.qi388-shell .ptop.qi388-topbar .push {
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:7px !important;
  }
  :root[data-area="app"] .app.qi388-shell .ptop.qi388-topbar .push > * {
    width:100% !important;
    min-width:0 !important;
  }
}

/* Match the portal's existing important cascade layer for touch controls. */
@layer qi48 {
  @media (max-width:900px) {
    :root[data-area="app"][data-theme] body.quantum-world4245.quantum-world4245.quantum-world4245 .app.qi388-shell .ptop.qi388-topbar .push :is(.btn,button,summary) { min-height:44px !important; }
  }
  @media (min-width:601px) and (max-width:730px) {
    :root[data-area="app"][data-theme] body.quantum-world4245.quantum-world4245.quantum-world4245 .app.qi388-shell .ptop.qi388-topbar .push :is(.lookbtn,.se13-more > summary) { width:100% !important; }
  }
}
