/* patron-dash.css — p126b (2026-11-15): the switch to the Dashboard (patron-dash.js), loaded with the app. Only the toggle
   "Chat | Dashboard" and hiding the chat while the Dashboard is up (p126c: the "Dashboard" row in the five's column is gone).
   The Dashboard's own look is css/patron-dashboard.css, loaded the first time it opens. Only with the home switch on.
   p141 (2026-11-17): the toggle is two keycaps (below). */
html:not([data-home]) .dash-seg{display:none!important}

/* ------------------------------------------------------------------ Chat | Dashboard: two keycaps (p141)
   Albert picked "Keys" (catalyst-work/p141-switch): two keycaps in a small tray, like the landing page's (gate.js keycap(): top
   face, darker skirt, a highlight line along the top). The view you are in is the lit key, always Patron blue; the other is
   the plain keycap. "I don't want them to move in height": nothing moves up or down, on a switch or on hover. Colour, a pool of
   light under the key and the highlight line show the state. The Dashboard's "#dash button{font:inherit;color:inherit}" is
   an id rule, so the button rules here carry an id too (:is(#dash,html)). */
.dash-seg{--k-tray:linear-gradient(180deg,#0a0a0b,#121214);
  --k-trayline:inset 0 1px 2px rgba(0,0,0,.7),inset 0 0 0 1px rgba(255,255,255,.045),0 1px 0 rgba(255,255,255,.05);
  --k-cap:linear-gradient(180deg,#3a3a3e 0%,#2c2c30 55%,#262629 100%); --k-capline:inset 0 1px 0 rgba(255,255,255,.16),inset 0 0 0 1px rgba(0,0,0,.28);
  --k-skirt:linear-gradient(180deg,#1e1e21,#151517); --k-skirtline:inset 0 0 0 1px rgba(255,255,255,.05),0 3px 5px rgba(0,0,0,.55);
  --k-ink:#d4d4d0; --k-inkhover:#f4f4f1; --k-blue:46,139,255; --k-focus:#6c9cff;
  display:inline-flex;align-items:flex-start;flex:none;gap:6px;padding:4px 5px 5px;border-radius:15px;background:var(--k-tray);box-shadow:var(--k-trayline);
  align-self:center;vertical-align:middle}
html[data-theme="light"] .dash-seg{--k-tray:linear-gradient(180deg,#e2e2dd,#ebebe7);
  --k-trayline:inset 0 1px 2px rgba(0,0,0,.10),inset 0 0 0 1px rgba(0,0,0,.05),0 1px 0 rgba(255,255,255,.9);
  --k-cap:linear-gradient(180deg,#ffffff 0%,#fafaf7 55%,#f1f1ed 100%); --k-capline:inset 0 1px 0 #fff,inset 0 0 0 1px rgba(0,0,0,.09);
  --k-skirt:linear-gradient(180deg,#d6d6d0,#c6c6bf); --k-skirtline:inset 0 0 0 1px rgba(0,0,0,.06),0 3px 5px rgba(60,50,30,.16);
  --k-ink:#2b2b29; --k-inkhover:#111111; --k-focus:#2f6fd6}
:is(#dash,html) .dash-segb{position:relative;display:block;flex:none;height:40px;padding:0;border:0;border-radius:11px;background:none;color:inherit;font:inherit;
  cursor:pointer;-webkit-tap-highlight-color:transparent}
:is(#dash,html) .dash-segb:focus-visible{outline:2px solid var(--k-focus);outline-offset:3px}
.dash-skirt{position:absolute;left:0;right:0;top:5px;bottom:0;border-radius:11px;background:var(--k-skirt);box-shadow:var(--k-skirtline)}
.dash-cap{position:relative;display:flex;align-items:center;height:34px;padding:0 15px 0 11px;border-radius:10px;background:var(--k-cap);box-shadow:var(--k-capline)}
/* the lit key: the landing page's blue keycap (top face light to deep, a glint, the highlight line), its skirt in the same blue */
.dash-cap::before,.dash-skirt::before{content:"";position:absolute;inset:0;border-radius:inherit;opacity:0;transition:opacity .2s ease}
.dash-cap::before{background:radial-gradient(120% 90% at 50% 30%,rgba(255,255,255,.16),transparent 60%),
    linear-gradient(180deg,color-mix(in srgb,rgb(var(--k-blue)) 74%,#fff) 0%,rgb(var(--k-blue)) 58%,color-mix(in srgb,rgb(var(--k-blue)) 86%,#000) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),inset 0 0 0 1px rgba(0,0,0,.16)}
.dash-skirt::before{background:linear-gradient(180deg,color-mix(in srgb,rgb(var(--k-blue)) 66%,#000),color-mix(in srgb,rgb(var(--k-blue)) 40%,#000))}
.dash-segb::after{content:"";position:absolute;left:10%;right:10%;bottom:-7px;height:12px;border-radius:50%;pointer-events:none;opacity:0;
  background:radial-gradient(closest-side,rgba(var(--k-blue),.55),rgba(var(--k-blue),0));transition:opacity .25s ease}
.dash-ink{position:relative;display:flex;align-items:center;gap:8px;font-size:14px;font-weight:650;line-height:1;white-space:nowrap;color:var(--k-ink);
  transition:color .2s ease}
.dash-ic{flex:none;display:grid;place-items:center;width:20px;height:20px}
.dash-ic svg{display:block;width:19px;height:19px;fill:currentColor;stroke:none}   /* solid glyphs in the words' colour (p141 icons) */
.dash-ic .d{fill-opacity:.6}                                                         /* the second tone: three of the four tiles */
:is(#dash,html) .dash-segb:hover:not(.on) .dash-ink{color:var(--k-inkhover)}
:is(#dash,html) .dash-segb.on{cursor:default}
:is(#dash,html) .dash-segb.on .dash-cap::before,:is(#dash,html) .dash-segb.on .dash-skirt::before,:is(#dash,html) .dash-segb.on::after{opacity:1}
:is(#dash,html) .dash-segb.on .dash-ink{color:#fff;text-shadow:0 1px 0 rgba(0,0,0,.16)}
@media (prefers-reduced-motion:reduce){.dash-cap::before,.dash-skirt::before,.dash-segb::after,.dash-ink{transition:none}}

/* in the chat's head, before the robot's name; on the start screen, at the left of its top bar */
.page-title-row>.dash-seg{margin-right:8px}
.home-top>.dash-seg-stage{margin:0 auto 0 0}
@media (min-width:801px){
  html[data-home] .home-top{justify-content:flex-start;padding-top:6px;padding-left:18px}   /* the toggle where the chat's head has it */
  html[data-home] .home-top>.home-teambtn{display:none}
  /* p141: the chat's head is as tall as the Dashboard's top bar (64; it was 48), so the keys stand at the same height in both
     views and on the line of the PATRON wordmark in the five's column */
  html[data-home][data-look="chats"] #app main>.page-head:has(>.page-title-row>.dash-seg-head:not([hidden])){min-height:64px}
}
@media (max-width:800px){
  .home-top>.dash-seg-stage{margin:0 auto}
  .dash-seg{gap:5px;padding:3px 4px 4px;border-radius:13px}
  :is(#dash,html) .dash-segb{height:36px;border-radius:10px}
  .dash-skirt{top:4px;border-radius:10px}
  .dash-cap{height:31px;padding:0 11px 0 8px;border-radius:9px}
  .dash-ink{font-size:13.5px;gap:6px}
  .dash-ic,.dash-ic svg{width:18px;height:18px}
  html[data-home] .page-title-row>#view-title{min-width:0;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis}
  html[data-home] .page-title-row{align-items:center}
}
@media (max-width:420px){
  .dash-cap{padding:0 10px 0 7px}
  html[data-home] .home-top{padding-left:12px;padding-right:12px}
  html[data-home] .home-top .home-pill{padding:0 12px}
  html[data-home] .home-top:has(.dash-seg) .home-convotxt{display:none}
}

/* ------------------------------------------------------------------ while the Dashboard is up (or about to be, on the day's first visit) */
html[data-home][data-dash] #app,html[data-home][data-dash-soon] #app{visibility:hidden}
