/* RANQILO Shell v1.1 (2026-11-24: + account appearance, explicit Light/Dark) — shared top bar. Canonical: ranqilo-app app/web/shell.css (vendored byte-identical).
   Self-contained HUX_P1 tokens (does not depend on the host page's variables). */
.rq-shell{--rs-bg:#FFFDF9;--rs-text:#1D2026;--rs-muted:#505962;--rs-line:#DDD5CA;--rs-line-strong:#8A8F96;--rs-accent:#1D6259;--rs-accent-2:#23616D;--rs-tint:#DDECE5;--rs-hover:#EFE8DD;--rs-panel:#FFFDF9;--rs-shadow:rgba(29,32,38,.18);--rs-focus:#23616D;
  position:sticky;top:0;z-index:50;display:flex;align-items:center;gap:20px;min-height:60px;padding:8px max(20px,4vw);
  background:var(--rs-bg);color:var(--rs-text);border-bottom:1px solid var(--rs-line);
  font:500 14px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;letter-spacing:0;box-sizing:border-box}
@media (prefers-color-scheme:dark){.rq-shell{--rs-bg:#1D2026;--rs-text:#F5F0E8;--rs-muted:#C0C8CF;--rs-line:#3B444E;--rs-line-strong:#6E7984;--rs-accent:#8EC5B5;--rs-accent-2:#91C5CF;--rs-tint:rgba(145,197,207,.12);--rs-hover:#2B313A;--rs-panel:#252A31;--rs-shadow:rgba(0,0,0,.45);--rs-focus:#91C5CF}}
.rq-shell *{box-sizing:border-box}
.rq-shell a{color:inherit;text-decoration:none}
.rq-shell a:focus-visible,.rq-shell summary:focus-visible,.rq-shell button:focus-visible{outline:3px solid var(--rs-focus);outline-offset:3px;border-radius:10px}
.rq-shell-home{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-weight:750;font-size:16px;letter-spacing:.18em;flex:none}
.rq-shell-mark{display:block;width:40px;height:26px}
.rq-shell-mark-a{fill:#1D6259}.rq-shell-mark-b{fill:#23616D}
@media (prefers-color-scheme:dark){.rq-shell-mark-a,.rq-shell-mark-b{fill:#F5F0E8}}
/* UI Core V1.1: <html data-rq-mode> (account preference) wins over the OS scheme */
:root[data-rq-mode="dark"] .rq-shell{--rs-bg:#1D2026;--rs-text:#F5F0E8;--rs-muted:#C0C8CF;--rs-line:#3B444E;--rs-line-strong:#6E7984;--rs-accent:#8EC5B5;--rs-accent-2:#91C5CF;--rs-tint:rgba(145,197,207,.12);--rs-hover:#2B313A;--rs-panel:#252A31;--rs-shadow:rgba(0,0,0,.45);--rs-focus:#91C5CF}
:root[data-rq-mode="light"] .rq-shell{--rs-bg:#FFFDF9;--rs-text:#1D2026;--rs-muted:#505962;--rs-line:#DDD5CA;--rs-line-strong:#8A8F96;--rs-accent:#1D6259;--rs-accent-2:#23616D;--rs-tint:#DDECE5;--rs-hover:#EFE8DD;--rs-panel:#FFFDF9;--rs-shadow:rgba(29,32,38,.18);--rs-focus:#23616D}
:root[data-rq-mode="dark"] .rq-shell-mark-a,:root[data-rq-mode="dark"] .rq-shell-mark-b{fill:#F5F0E8}
:root[data-rq-mode="light"] .rq-shell-mark-a{fill:#1D6259}:root[data-rq-mode="light"] .rq-shell-mark-b{fill:#23616D}
.rq-shell-modules{flex:1;min-width:0}
.rq-shell-mod-list{display:flex;gap:4px;align-items:center}
.rq-shell-mod{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border-radius:10px;color:var(--rs-muted);white-space:nowrap}
a.rq-shell-mod:hover{background:var(--rs-hover);color:var(--rs-text)}
.rq-shell-mod[aria-current]{color:var(--rs-text);font-weight:650;background:var(--rs-hover)}
.rq-shell-mod.is-soon{cursor:default}
.rq-shell-mod.is-soon small{font-size:12px;color:var(--rs-muted);border:1px solid var(--rs-line);border-radius:999px;padding:1px 8px}
.rq-shell-right{display:flex;align-items:center;gap:12px;margin-left:auto;flex:none}
.rq-shell-lang-list,.rq-shell-panel-lang{display:flex;gap:8px}
.rq-shell-lang-opt{display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:44px;padding:0 10px;border:1px solid var(--rs-line-strong);border-radius:10px;font-weight:700;letter-spacing:.06em;color:var(--rs-text)}
.rq-shell-lang-opt:hover{background:var(--rs-hover)}
.rq-shell-lang-opt[aria-current]{border-color:var(--rs-accent-2);color:var(--rs-accent-2);background:var(--rs-tint);box-shadow:0 0 0 1px var(--rs-accent-2) inset}
.rq-shell-account{display:flex;align-items:center;gap:8px}
.rq-shell-account:empty{display:none}
.rq-shell-account #logout{min-height:44px;border-radius:10px;white-space:nowrap;margin:0}
.rq-shell-menu{display:none;position:relative;margin:0}
.rq-shell-menu summary{list-style:none;display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 12px;border:1px solid var(--rs-line-strong);border-radius:10px;cursor:pointer;font-weight:650}
.rq-shell-menu summary::-webkit-details-marker{display:none}
.rq-shell-menu summary::after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.rq-shell-menu[open] summary::after{transform:translateY(2px) rotate(-135deg)}
.rq-shell-menu-lang{font-size:12px;font-weight:700;color:var(--rs-accent-2);border:1px solid var(--rs-accent-2);border-radius:6px;padding:1px 6px}
.rq-shell-panel{position:absolute;right:0;top:calc(100% + 8px);width:min(300px,calc(100vw - 32px));display:grid;gap:14px;padding:12px;background:var(--rs-panel);border:1px solid var(--rs-line);border-radius:14px;box-shadow:0 20px 44px -18px var(--rs-shadow)}
.rq-shell-panel-mods{display:grid;gap:4px}
.rq-shell-panel-mods .rq-shell-mod{justify-content:space-between;width:100%}
.rq-shell-panel-lang .rq-shell-lang-opt{flex:1}
.rq-shell-look{display:flex;gap:6px}.rq-shell-look[hidden]{display:none}
.rq-shell-look-opt{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;padding:0 10px;border:1px solid var(--rs-line-strong);border-radius:10px;background:transparent;color:var(--rs-text);font:inherit;font-weight:650;cursor:pointer}
.rq-shell-look-opt:hover{background:var(--rs-hover)}
.rq-shell-look-opt[aria-pressed="true"]{border-color:var(--rs-accent-2);color:var(--rs-accent-2);background:var(--rs-tint);box-shadow:0 0 0 1px var(--rs-accent-2) inset}
.rq-shell-look-opt svg{width:18px;height:18px;flex:none}
.rq-shell-panel .rq-shell-look-opt{flex:1}
.rq-shell-bar-look .rq-shell-look-opt span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (max-width:760px){.rq-shell{gap:10px;min-height:56px}.rq-shell-modules,.rq-shell-lang,.rq-shell-bar-look{display:none}.rq-shell-menu{display:block}.rq-shell-word{font-size:15px;letter-spacing:.14em}}
@media (max-width:480px){.rq-shell-word{display:none}.rq-shell-account #logout{padding:0 12px}.rq-shell-menu summary{padding:0 10px;gap:8px}}
@media (prefers-reduced-motion:reduce){.rq-shell *{transition:none!important}}
