/* SUMVRA workspace identity pilot (v1.1). TOKENS ONLY: no selector rewrites, no engine/markup changes.
   Loaded after the legacy styles; remove this one <link> to revert to the legacy look.  Palette = brand brief:
   Obsidian #151411 · Ivory #F3EADF · Champagne #C8A676 · Sand #DECDB5. */
:root{
  --bg:#151411;--panel:#1C1A16;--panel2:#221F1A;
  --line:rgba(243,234,223,.10);--line2:rgba(243,234,223,.18);
  --ink:#F3EADF;--cream:#F3EADF;--sand:#DECDB5;
  --logo-gold:#C8A676;--gold:#F3EADF;
  --muted:#D3C8B6;--dim:#B8AE9C;
  --amber:#F3EADF;--amber2:#FFF8EA;
  --display:"Alexandria","IBM Plex Sans Arabic",system-ui,sans-serif;
  --body:"IBM Plex Sans Arabic","Manrope",system-ui,sans-serif;
}
html[lang=en]{--display:"Manrope","Alexandria",system-ui,sans-serif;--body:"Manrope","IBM Plex Sans Arabic",system-ui,sans-serif}
body{background:var(--bg)}

/* v1.2 pilot: the old S×V hero monogram + ember/seed splash never show while the workspace boots;
   only the thin real-progress thread (.fx-thread) is visible until the page is ready. */
html.sv-loading .sv-herotop,html.sv-loading .fx-seed,html.sv-loading .fx-ember{opacity:0!important;visibility:hidden!important}
html.sv-loading .fx-thread{opacity:1!important;background:linear-gradient(90deg,#C8A676,#F3EADF);height:3px}

/* RC1 THEME: Light for the workspace is a real theme: ws-light.css (generated by tools/gen-ws-light.js) loads when data-theme resolves to light. No runtime filter. */
.sv-theme-btn{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:999px;border:1px solid var(--line2);background:transparent;color:var(--ink);flex:none}
.sv-theme-btn:hover{background:rgba(127,127,127,.16)}
.sv-theme-btn:focus-visible{outline:2px solid var(--logo-gold);outline-offset:2px}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* RC1 identity: the hero mark (Turning Core + SUMVRA wordmark) is drawn by app.html into #heroSvg; the S-U-M-V-R-A letter row is retired. */
.sv-heromark{position:relative}

/* RC1 dock review (kept, not removed): real defect found = at 320px the dock was 310px wide and clipped 27px off the left edge. */
.tb{max-width:calc(100vw - 16px);box-sizing:border-box}
.tb .tb-b{min-width:0}
@media (max-width:360px){.tb .tb-nm,.tb .tb-lbl{font-size:10.5px}.tb{padding:0 2px}}
/* RC1: at 320px the legacy page's chip carousel pushed the layout viewport to 385px (so fixed elements such as the dock sat off-centre). Clip, don't scroll. */
html,body{overflow-x:clip}

/* ===== WORKSPACE (RC1 correction): /app is the working application; "/" is the only marketing site. Turning Core system: obsidian + ivory planes, interlocking radii, champagne only for fine details. ===== */
html.ws-app .ws-mk{display:none!important}
#wshome,#wstools,#wsproj{position:relative;scroll-margin-top:72px}
.wh-wrap{max-width:1240px;margin:0 auto;padding-inline:clamp(18px,4vw,48px)}
#wshome{padding-top:clamp(96px,13vh,140px);padding-bottom:clamp(8px,2vw,24px);background:radial-gradient(900px 460px at 88% -8%,rgba(200,166,118,.16),transparent 62%)}
.wh-head{display:flex;align-items:center;gap:clamp(20px,3.4vw,40px);margin-bottom:clamp(26px,4vw,46px)}
.wh-core{position:relative;flex:none;width:clamp(84px,11vw,128px);aspect-ratio:1}
.wh-core img{position:relative;display:block;width:100%;height:100%;filter:drop-shadow(0 18px 26px rgba(0,0,0,.42))}
.wh-ring{position:absolute;inset:-13%;border-radius:50%;border:1px solid var(--line2)}
.wh-ring::after{content:"";position:absolute;inset:-1px;border-radius:50%;border:1px solid transparent;border-top-color:var(--logo-gold);animation:whturn 14s linear infinite}
@keyframes whturn{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.wh-ring::after{animation:none}}
.wh-eye{display:block;font:600 12px/1.4 var(--body);letter-spacing:.18em;text-transform:uppercase;color:var(--logo-gold);margin-bottom:10px}
html[lang=ar] .wh-eye{letter-spacing:.04em;font-size:13px}
.wh-ht h1{margin:0;font:600 clamp(32px,5.2vw,62px)/1.12 var(--display);color:var(--ink);text-wrap:balance}
.wh-ht p{margin:12px 0 0;max-width:46ch;color:var(--muted);font:400 clamp(15px,1.2vw + 10px,18px)/1.75 var(--body)}
.wh-grid{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:14px}
.wh-grid.wh-3{grid-template-columns:1.25fr 1fr}
.wh-main{grid-row:span 2}
.wh-proj{grid-column:2/4}
.wh-3 .wh-proj{grid-column:auto}
.wh-tile{position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:22px;min-height:172px;padding:clamp(20px,2.3vw,30px);border-radius:30px;border-end-start-radius:10px;border:1px solid var(--line);background:linear-gradient(165deg,var(--panel2),var(--panel));color:var(--ink);text-decoration:none;transition:transform .35s cubic-bezier(.2,.7,.2,1),border-color .25s,box-shadow .35s;overflow:hidden}
.wh-tile::before{content:"";position:absolute;inset-inline-end:-30px;inset-block-start:-30px;width:140px;height:140px;border-radius:50%;background:radial-gradient(circle,rgba(200,166,118,.16),transparent 70%);pointer-events:none}
.wh-tile:hover{transform:translateY(-3px);border-color:var(--logo-gold);box-shadow:0 22px 40px -24px rgba(0,0,0,.6)}
.wh-tile:focus-visible,.wh-tc2:focus-visible,.wh-chip:focus-visible,.wh-btn:focus-visible,.wh-site:focus-visible{outline:2px solid var(--logo-gold);outline-offset:3px}
.wh-main{background:var(--ink);color:var(--bg);border-color:transparent;min-height:clamp(230px,26vw,300px)}
.wh-main .wh-tb span{color:var(--bg);opacity:.74}
.wh-main .wh-ti{border-color:rgba(21,20,17,.28);color:var(--bg)}
.wh-ti{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;border:1px solid var(--line2);color:var(--logo-gold)}
.wh-tb b{display:block;font:600 clamp(20px,2vw,28px)/1.25 var(--display);margin-bottom:8px}
.wh-main .wh-tb b{font-size:clamp(24px,3vw,40px)}
.wh-tb span{display:block;max-width:42ch;color:var(--muted);font:400 15px/1.7 var(--body)}
.wh-tc{display:inline-flex;align-items:center;gap:10px;font:600 14px/1 var(--body)}
.wh-go{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;border:1px solid currentColor;flex:none;transition:transform .3s}
html[dir=rtl] .wh-go svg{transform:scaleX(-1)}
.wh-tile:hover .wh-go,.wh-more:hover .wh-go,.wh-btn:hover .wh-go{transform:translateX(3px)}
html[dir=rtl] .wh-tile:hover .wh-go,html[dir=rtl] .wh-more:hover .wh-go,html[dir=rtl] .wh-btn:hover .wh-go{transform:translateX(-3px)}
.wh-sec{padding-block:clamp(34px,5.5vw,68px);border-top:1px solid var(--line);margin-top:clamp(20px,3vw,40px)}
.wh-sh{margin-bottom:clamp(18px,2.6vw,30px)}
.wh-sh h2{margin:0;font:600 clamp(24px,3.2vw,38px)/1.2 var(--display);color:var(--ink);text-wrap:balance}
.wh-tgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(236px,1fr));gap:12px}
.wh-tc2{display:flex;flex-direction:column;gap:8px;padding:20px;border-radius:22px;border-end-start-radius:8px;border:1px solid var(--line);background:var(--panel);color:var(--ink);text-decoration:none;transition:transform .3s,border-color .25s}
.wh-tc2:hover{transform:translateY(-2px);border-color:var(--logo-gold)}
.wh-tci{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;border:1px solid var(--line2);color:var(--logo-gold)}
.wh-tci svg{width:22px;height:22px}
.wh-tcn{font:600 16px/1.35 var(--display)}
.wh-tcs{color:var(--muted);font:400 13.5px/1.65 var(--body);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.wh-more{display:inline-flex;align-items:center;gap:12px;margin-top:20px;color:var(--ink);font:600 14px/1 var(--body);text-decoration:none}
.wh-chips{display:flex;flex-wrap:wrap;gap:10px}
.wh-chip{display:inline-flex;align-items:center;min-height:46px;padding:0 22px;border-radius:999px;border:1px solid var(--line2);color:var(--ink);text-decoration:none;font:500 15px/1 var(--body);transition:background .25s,border-color .25s}
.wh-chip:hover{border-color:var(--logo-gold);background:rgba(200,166,118,.1)}
.wh-empty{color:var(--muted);margin:0 0 18px}
.wh-sites{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px;margin-bottom:20px}
.wh-site{position:relative;display:flex;flex-direction:column;gap:4px;padding:18px 20px;border-radius:20px;border:1px solid var(--line);background:var(--panel);color:var(--ink);text-decoration:none}
.wh-site small{color:var(--muted)}
.wh-site .wh-go{position:absolute;inset-inline-end:16px;inset-block-start:16px;width:28px;height:28px}
.wh-btn{display:inline-flex;align-items:center;gap:12px;min-height:48px;padding:0 10px 0 24px;border-radius:999px;border:0;background:var(--ink);color:var(--bg);font:600 15px/1 var(--body)}
html[dir=rtl] .wh-btn{padding:0 24px 0 10px}
.wh-foot{display:flex;flex-wrap:wrap;align-items:center;gap:14px 28px;padding-block:28px 140px;border-top:1px solid var(--line)}
.wh-fb{display:inline-flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font:600 15px/1 var(--display);letter-spacing:.2em}
.wh-fl{display:flex;flex-wrap:wrap;gap:0 22px}
.wh-fl a,.wh-fl2{color:var(--muted);text-decoration:none;font:400 14px/1.6 var(--body);display:inline-block;padding-block:10px}
.wh-fl a:hover,.wh-fl2:hover{color:var(--ink)}
.wh-foot small{flex-basis:100%;color:var(--dim);font-size:12.5px}
.sv-links a.sv-ws-out{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line2);border-radius:999px;padding:7px 14px}
@media (max-width:980px){.wh-grid,.wh-grid.wh-3{grid-template-columns:1fr 1fr}.wh-main{grid-column:1/3;grid-row:auto;min-height:230px}.wh-proj{grid-column:1/3}}
@media (max-width:620px){.wh-head{flex-direction:column;align-items:flex-start;gap:30px}.wh-grid,.wh-grid.wh-3{grid-template-columns:1fr}.wh-main,.wh-proj{grid-column:auto}.wh-tile{min-height:150px}#wshome{padding-top:96px}}
/* assistant avatar: the Turning Core mark instead of the old letter */
.as-av{font-size:0!important;background:#151411 url("/brand/symbol-clean.svg") center/64% no-repeat!important}

/* phone header: brand, account, theme, language and install fit on one row; the free site check lives in the menu */
@media (max-width:560px){.sv-nav .sv-rvt{display:none!important}}
@media (max-width:370px){.sv-nav .sv-ins{display:none!important}}
