/* perOS shell v4 (app/index.html), design/peros-v1 (work 061): phone = the page and one floating bar (Today, Ask Hoot,
   Apps; the dock in os.css); from 900px the side rail (204, the dock), the page, and Hoot's column (320): the Hoot, one
   line about the page, Ask Hoot (the command bar), the vault and theme. Tokens only. */
*{box-sizing:border-box}
html,body{height:100%;margin:0}
[hidden]{display:none!important}
body.sh{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);grid-template-areas:"main";
  padding-bottom:calc(var(--os-dock) + 14px + env(safe-area-inset-bottom,0px));background:var(--bg);color:var(--ink);font:var(--fw-med) 15px/1.45 var(--font)}
.sh-main{grid-area:main;min-height:0;min-width:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
.sh-main .pk-band{margin:var(--sp-2) var(--sp-3)}
/* every kept tab's frame sits in the same cell at the same size; a hidden one is only not seen (visibility, and inert
   from app/index.html): display:none sent its scroll back to the top on a desktop (QA N10) */
.sh-frame,.sh-empty{grid-row:2;grid-column:1}
.sh-frame{min-height:0;height:100%;border:0;width:100%;background:var(--bg)}
.sh-frame[hidden]{display:block!important;visibility:hidden}
.sh-empty{padding:40px;color:var(--mute)}
/* Hoot's column: only from 900px */
.sh-hcol{display:none}
.sh-hoot{line-height:0;align-self:flex-start}
.sh-say{margin:0;background:var(--bg);border-radius:18px;padding:12px 14px;font-size:14px;overflow-wrap:anywhere}
.sh-say b{font-weight:var(--fw-heavy)}
.sh-cmd{margin-top:auto}
.sh-hcol .os-cmd-bar{border-color:var(--line-strong);border-radius:18px;min-height:52px}
.sh-hcol .os-cmd-list{top:auto;bottom:calc(100% + var(--sp-2))}
.sh-tools{display:flex;align-items:center;gap:var(--sp-2);justify-content:flex-end}
.sh-vault{font:inherit;color:var(--ink);background:var(--surf);border:var(--bw) solid var(--line-strong);border-radius:var(--r-sm);padding:0 var(--sp-2);min-height:var(--tap);min-width:0;flex:1}
.sh-icon{width:var(--tap);height:var(--tap);flex:none;border:var(--bw) solid var(--line-strong);border-radius:var(--r-pill);background:var(--surf);color:var(--ink);font:inherit;font-size:18px;cursor:pointer}
.sh-icon:focus-visible,.sh-vault:focus-visible,.sh-link:focus-visible,.sh-ask:focus-visible{outline:2.5px solid var(--ink);outline-offset:2px}
/* the rail's head and foot (in the dock) */
.sh-brand{display:flex;align-items:center;gap:var(--sp-2);min-height:var(--tap);padding:0 var(--sp-2) var(--sp-3);font-size:16px;font-weight:var(--fw-heavy);letter-spacing:var(--track-tight)}
.sh-brandface{line-height:0;flex:none}
.sh-brandname{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sh-os{color:var(--gr-ink)}                       /* the word mark: Granat + OS (work 142) */
.sh-foot{font-size:var(--fs-xs);color:var(--mute);padding:8px 10px;line-height:1.6}
.sh-link{all:unset;cursor:pointer;color:var(--ink);font-weight:var(--fw-bold);text-decoration:underline;text-underline-offset:3px}
/* Ask Hoot in the phone bar: a field-like button with the small character; it opens the Ask sheet */
.sh-ask{flex:1;min-width:0;height:52px;border-radius:20px;border:var(--bw) solid var(--line-strong);background:var(--bg);display:flex;align-items:center;gap:var(--sp-2);padding:0 12px 0 8px;font:inherit;font-weight:var(--fw-med);color:var(--mute);font-size:var(--fs-sm);text-align:left;cursor:pointer}
.sh-askface{line-height:0;flex:none}
.sh-askface .ch[data-tint]{--role:var(--ring)}   /* the Ask Hoot ring (the small character's role ring) in garnet (work 149) */
.sh-asktext{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sh-askbox{display:flex;flex-direction:column;gap:var(--sp-3)}
.sh-asknote{margin:0;color:var(--mute);font-size:var(--fs-sm)}
.sh-askbox .os-cmd-list{position:static;margin-top:var(--sp-2);box-shadow:none;max-height:none}
@media(min-width:900px){
  body.sh{grid-template-columns:minmax(0,1fr) 320px;grid-template-areas:"main hcol";padding-bottom:0;padding-left:var(--os-rail)}
  .sh-hcol{grid-area:hcol;display:flex;flex-direction:column;gap:var(--sp-3);min-height:0;overflow-y:auto;padding:18px 14px;background:var(--surf);border-left:var(--bw) solid var(--line)}
}
/* onboarding (R1-O): the page has the screen to itself, no dock and no Hoot's column */
body.sh.sh-onb{padding:0;grid-template-columns:minmax(0,1fr);grid-template-areas:"main"}
body.sh.sh-onb #dock,body.sh.sh-onb .sh-hcol{display:none}
