/* Auto Advisor layer over the Shell Kit. Colours come from kit variables so every skin and both modes work. */
.aa-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.8rem;margin:1rem 0}
.aa-tile{display:flex;flex-direction:column;gap:.5rem;align-items:flex-start;text-align:left;cursor:pointer;font:inherit;color:inherit}
.aa-ico{width:44px;height:44px;flex:none}.aa-tile b{font-family:var(--font-display);font-size:1.25rem}.aa-tile span{color:var(--muted);font-size:.85rem}
.aa-state{font-family:var(--font-mono)}.aa-preview{border-color:var(--accent)}.aa-grace{border-color:var(--accent)}.aa-readonly{opacity:.85}
.aa-evidence{font-size:.8rem;color:var(--muted);margin:.4rem 0 0}.aa-lock{border-style:dashed}
.aa-search{width:100%;min-height:44px;padding:.55rem .8rem;border-radius:10px;border:1px solid var(--line);background:var(--surface);color:inherit;font:inherit}
.aa-row{display:flex;justify-content:space-between;gap:.8rem;align-items:center;width:100%;min-height:44px;background:none;border:0;border-bottom:1px solid var(--line);color:inherit;font:inherit;text-align:left;cursor:pointer;padding:.5rem 0}
.aa-bar{height:8px;border-radius:99px;background:var(--line);overflow:hidden;margin:.5rem 0}.aa-bar i{display:block;height:100%;background:var(--primary);transition:width .3s}
.aa-chk{display:flex;gap:.7rem;align-items:flex-start;padding:.55rem 0;border-bottom:1px solid var(--line);cursor:pointer}.aa-chk input{width:22px;height:22px;margin-top:.1rem;accent-color:var(--primary)}
.aa-crit{color:var(--accent-ink,var(--primary));font-family:var(--font-mono);font-size:.7rem}
textarea.aa-search{min-height:96px;font-family:var(--font-mono);font-size:.8rem;word-break:break-all}
.aa-update{position:fixed;left:50%;bottom:calc(96px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:80;display:flex;gap:.8rem;align-items:center;padding:.6rem .9rem;border-radius:14px;background:var(--surface);border:1px solid var(--line);box-shadow:0 12px 30px rgba(0,0,0,.25)}
@media (prefers-reduced-motion:reduce){.aa-bar i{transition:none}}

/* Splash: badge, real-work rotor, skip. Fits 320x568 and up. */
#boot{position:fixed;inset:0;z-index:999;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:max(18px,env(safe-area-inset-top)) 16px max(22px,env(safe-area-inset-bottom));background:#000;color:#f5f0e4;transition:opacity .6s ease,visibility .6s}
#boot.is-done{opacity:0;visibility:hidden;pointer-events:none}
.boot__inner{flex:1;display:flex;align-items:center;justify-content:center;min-height:0;width:100%}
#boot .boot__logo{width:auto;height:auto;max-width:min(86vw,380px);max-height:44vh;animation:m-logo-breathe 3.2s ease-in-out infinite}
@keyframes m-logo-breathe{0%,100%{transform:scale(1);opacity:.96}50%{transform:scale(1.025);opacity:1}}
#boot .boot__rotor{--rs:56px;margin:.4rem 0}
.boot__skip{position:absolute;top:max(14px,env(safe-area-inset-top));right:14px;min-height:44px;padding:0 14px;border-radius:99px;border:1px solid rgba(245,240,228,.35);background:transparent;color:#f5f0e4;font:inherit;font-size:.85rem;cursor:pointer}
@media (prefers-reduced-motion:reduce){#boot .boot__logo{animation:none}#boot{transition-duration:.32s}.rotor.is-spinning .rotor__spin{animation:none}}

.aa-chk2{padding:.65rem 0;border-bottom:1px solid var(--line)}.aa-btns{display:flex;gap:.5rem;margin-top:.45rem;flex-wrap:wrap}.aa-btns .btn{min-height:44px;min-width:88px}.aa-note{margin-top:.45rem;min-height:44px}
.aa-sev{font-family:var(--font-mono);font-size:.7rem;text-transform:uppercase}.aa-high{color:var(--danger,#b3261e)}.aa-medium{color:var(--accent-ink,var(--primary))}
.aa-field{display:flex;flex-direction:column;gap:.3rem;margin:.7rem 0}.aa-field label{font-size:.85rem;color:var(--muted)}.aa-big{font-family:var(--font-display);font-size:1.9rem;margin:.2rem 0}
@media print{#boot,.aa-update,nav,.halo,.rail{display:none!important}}

.aa-lightrow{display:flex;gap:.9rem;align-items:flex-start}.aa-lightrow p{margin:.2rem 0 0}
.aa-s-serious{border-left:6px solid var(--danger,#b3261e)}.aa-s-concerns,.aa-s-incomplete{border-left:6px solid var(--accent,#c9973a)}.aa-s-clear{border-left:6px solid var(--primary)}

/* Foreground layer (4.2.1): while any menu, panel, palette or Halo fan is open, the page behind blurs and dims so the open panel is the only sharp thing. */
.scrim,.halo-backdrop.open{background:rgba(8,6,3,.55);-webkit-backdrop-filter:blur(10px) saturate(.85);backdrop-filter:blur(10px) saturate(.85)}
.shell[data-layer="on"] #main,.shell[data-layer="on"] #rail,.shell[data-layer="on"] #tree,.shell[data-layer="on"] #insp,.shell[data-layer="on"] #status,.shell[data-layer="on"] #dock,.shell[data-layer="on"] #tabs,.shell[data-layer="on"] #crumb{filter:blur(7px) saturate(.8) brightness(.8);transition:filter .22s ease}
.shell #main,.shell #rail,.shell #tree,.shell #insp,.shell #status,.shell #dock,.shell #tabs,.shell #crumb{transition:filter .22s ease}
.pop,.cmdk,.drawer{background:var(--surface);border:1px solid color-mix(in srgb,var(--accent) 55%,var(--line));box-shadow:0 26px 70px rgba(0,0,0,.5),0 2px 0 color-mix(in srgb,var(--accent) 35%,transparent) inset}
.pop.open{animation:aaPopIn .2s ease-out}@keyframes aaPopIn{from{opacity:0;transform:translateY(-6px)}}
/* Phones with little memory: dim only, no blur (blur is costly on them). Same for people who ask for less motion. */
:root[data-fx="lite"] .shell[data-layer="on"] #main,:root[data-fx="lite"] .shell[data-layer="on"] #rail,:root[data-fx="lite"] .shell[data-layer="on"] #tree,:root[data-fx="lite"] .shell[data-layer="on"] #insp,:root[data-fx="lite"] .shell[data-layer="on"] #status,:root[data-fx="lite"] .shell[data-layer="on"] #dock,:root[data-fx="lite"] .shell[data-layer="on"] #tabs,:root[data-fx="lite"] .shell[data-layer="on"] #crumb{filter:brightness(.55)}
:root[data-fx="lite"] .scrim,:root[data-fx="lite"] .halo-backdrop.open{-webkit-backdrop-filter:none;backdrop-filter:none;background:rgba(8,6,3,.72)}
@media (prefers-reduced-motion:reduce){.pop.open{animation:none}.shell #main{transition:none}}

/* Full-viewport mount. The Shell Kit's phone layout (Halo, bottom bar) switches on through this container; without it the phone shows the desktop rail. */
html,body{height:100%;margin:0;background:#060505}.stage{position:fixed;inset:0;height:100dvh}#app{height:100%}
/* One product, not a lab: no workspace switcher chip. */
#wsBtn,#wsMenu,.ws-btn{display:none!important}

#bellBtn{display:none!important}
