/* VERSION: gmxshell.styles 1.0.7 — gmxshell 1.2.3 edition. Advanced from 1.0.6 (PATCH, additive/backward-compatible): ADD the .gmxshell-brandicon rule — styles the new first-class top-bar app-ICON slot (rendered by the shell BEFORE .gmxshell-brand from profile brand.icon, a Phosphor glyph). Purely additive; if brand.icon is empty the shell omits the element and this rule matches nothing (today's behavior). The top bar is already display:flex;align-items:center;gap:10px so the icon sits inline before the name. Prior (1.0.6 from 1.0.5): one-line chrome-containment bugfix: ADD position:relative to #gmxshell-root so .cm-menu (account menu, position:absolute;right:14px) + the dev verchip anchor to the phone-width app column instead of the viewport — before this they escaped +358px/+366px past the column on wide/desktop viewports (Playwright DOM-rect proven 2026-09-20; phone-width 390 no regression). Nothing else changed vs 1.0.5. Prior (1.0.5 from 1.0.4): OPT-IN WEB-MODE block; chrome palette TOKENIZED to :root vars. Own copy, diverged from any shared canonical stylesheet. */
/* gmxshell — Navy Luxe LIGHT + strong-blue chrome. */
:root{
  --ink:#14171f; --pearl:#fbf9e4; --paper:#ffffff;
  --navy:#1f3a5f; --navy-2:#2f5680; --line:#dcd8c6; --line-2:#ebe8d8; --muted:#63676f;
  --accent:#8a1f2b; --ok:#276b3f; --warn:#7a5310;
  /* chrome costume palette — the per-app skin. profile.brand.theme overrides these at boot (stampBuildConfig sets them inline on :root); absent = these defaults. */
  --body-bg:#edeadb; --chrome-1:#25456b; --chrome-2:#1c3556; --chrome-deep:#12283f; --chrome-border:#315277;
  --chrome-fg-dim:#c9d8ea; --chrome-fg-soft:#dbe7f3; --chrome-tag:#a9c1de; --chrome-tag-border:#3f5f84; --chrome-hi:#eaf2ff; --chrome-avatar:#4a5f7d;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--body-bg);color:var(--ink);
  font-family:-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;line-height:1.45;
  display:flex;align-items:stretch;justify-content:center}   /* center the app-frame column */
/* BOUNDED height so #gmxshell-content (flex:1;overflow:auto) scrolls INTERNALLY and the
 * .gmxshell-top chrome bar stays pinned at the viewport top. min-height:100% is NOT a
 * bounded box — the whole page scrolls and the top bar floats away (VERA/BORIS GMXShell
 * landscape finding 2026-09-05). 100vh fallback first, 100dvh override for mobile
 * dynamic toolbars. */
#gmxshell-root{position:relative;height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden;
  width:100%;max-width:420px;box-shadow:0 0 48px rgba(0,0,0,.5)}   /* app-frame column; position:relative anchors .cm-menu (position:absolute;right:14px) + the dev verchip to THIS column, not the viewport (1.0.6 chrome-containment fix) */
/* tablet-max width, centered on PC too (420 phone -> 480 tablet -> 600 landscape) */
@media (min-width:768px){ #gmxshell-root{max-width:480px} }
@media (orientation:landscape) and (min-width:720px){ #gmxshell-root{max-width:600px} }

/* GMXShell top shell (strong-blue chrome). flex:0 0 auto so it never shrinks or scrolls
 * away; left/right safe-area padding so the landscape notch never overlaps chrome. */
.gmxshell-top{flex:0 0 auto;display:flex;align-items:center;gap:10px;padding:8px 14px;
  background:linear-gradient(180deg,var(--chrome-1),var(--chrome-2));color:#fff;
  padding-top:max(8px,env(safe-area-inset-top));
  padding-left:max(14px,env(safe-area-inset-left));
  padding-right:max(14px,env(safe-area-inset-right))}
.gmxshell-brandicon{font-size:20px;line-height:1;color:currentColor;flex:0 0 auto;display:inline-flex;align-items:center}
.gmxshell-brand{font-weight:800;letter-spacing:.08em;font-size:13px}
.gmxshell-tag{font-size:9px;letter-spacing:.1em;color:var(--chrome-tag);border:1px solid var(--chrome-tag-border);border-radius:5px;padding:2px 7px}
.gmxshell-nav{display:flex;gap:4px;margin-left:8px}
.gmxshell-nav button{font:inherit;font-size:12.5px;color:var(--chrome-fg-dim);background:transparent;border:0;border-radius:7px;
  padding:11px 13px;min-height:44px;cursor:pointer}
.gmxshell-nav button[aria-current="page"]{background:rgba(255,255,255,.18);color:#fff;font-weight:600}
.gmxshell-spacer{flex:1}
.gmxshell-shelf{display:none;align-items:center;gap:8px;background:var(--chrome-deep);border:1px solid var(--chrome-border);border-radius:9px;
  padding:5px 11px;font-size:12px;color:var(--chrome-fg-soft)}
.gmxshell-shelf.live{display:flex}
.gmxshell-shelf .dot{width:9px;height:9px;border-radius:50%;background:#5fd39b}
.gmxshell-handle{font-size:12.5px;font-weight:600;color:var(--chrome-fg-soft);max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gmxshell-me{width:24px;height:24px;border-radius:50%;background:var(--chrome-avatar);border:1px solid #ffffff55;
  display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:#fff;letter-spacing:.02em}
/* Respect the `hidden` attribute on GMXShell chrome. These elements set `display` via a class
 * selector, which otherwise OVERRIDES the UA [hidden]{display:none} — so gmxshell.shell.1.0.4.js's
 * localOnly `hidden` guard was being defeated (account avatar + presence dot leaked on
 * localOnly funnel apps). Keep this AFTER the display rules so it wins. */
.gmxshell-me[hidden],.gmxshell-presence[hidden],.gmxshell-handle[hidden],.gmxshell-tag[hidden],.gmxshell-env[hidden]{display:none!important}

/* content mount (light body) */
#gmxshell-content{flex:1;background:var(--paper);overflow:auto}

/* circles landing */
.land{max-width:1000px;margin:0 auto;padding:18px 18px 40px}
.land-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.land-head h1{font-size:18px;margin:0}
.newbtn{margin-left:auto;background:var(--navy);color:#fff;border:0;border-radius:9px;font:inherit;font-weight:700;
  font-size:13px;padding:0 16px;min-height:44px;cursor:pointer}
.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.filters button{font:inherit;font-size:12.5px;border:1px solid var(--line);background:#f6f4e6;border-radius:999px;
  padding:9px 14px;min-height:40px;color:#3a3f48;cursor:pointer}
.filters button[aria-pressed="true"]{background:var(--navy);color:#fff;border-color:var(--navy);font-weight:600}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}
.ccard{border:1px solid var(--line);border-radius:11px;padding:13px 14px;background:#fcfbf3;
  font:inherit;color:var(--ink);text-align:left;cursor:pointer;min-height:52px;display:block;width:100%}
.ccard:hover{border-color:var(--navy-2);background:#fff}
.ccard:focus-visible{outline:2px solid var(--navy);outline-offset:2px}

/* in-circle view (light body; strong-blue accents only) */
.circle-view{display:flex;flex-direction:column;height:100%;max-width:900px;margin:0 auto;width:100%}
.cv-head{display:flex;align-items:center;gap:10px;padding:14px 18px 8px}
.cv-back{font:inherit;font-size:13px;color:var(--navy);background:transparent;border:0;cursor:pointer;
  padding:6px 8px;min-height:38px;border-radius:7px}
.cv-back:hover{background:#f2efe0}
.cv-title{font-size:18px;margin:0}
.cv-note{padding:9vh 18px;text-align:center;color:var(--muted)}
.cv-people{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:2px 18px 10px}
.cv-people-label{font-size:11.5px;font-weight:600;letter-spacing:.02em;color:var(--muted);text-transform:uppercase}
.cv-people-list{display:flex;gap:6px;flex-wrap:wrap;list-style:none;margin:0;padding:0}
.cv-person{font-size:12px;background:#f6f4e6;border:1px solid var(--line);border-radius:999px;padding:4px 10px;color:#3a3f48}
.cv-person-empty{background:transparent;border-color:transparent;color:var(--muted);font-style:italic}
.cv-topics{display:flex;gap:6px;flex-wrap:wrap;padding:0 18px 10px;border-bottom:1px solid var(--line-2)}
.cv-topics button{font:inherit;font-size:12.5px;border:1px solid var(--line);background:#f6f4e6;border-radius:999px;
  padding:8px 13px;min-height:38px;color:#3a3f48;cursor:pointer}
.cv-topics button[aria-selected="true"]{background:var(--navy);color:#fff;border-color:var(--navy);font-weight:600}
.cv-chat{flex:1;min-height:0;display:flex}

/* chat surface */
.chat{display:flex;flex-direction:column;flex:1;min-height:0;width:100%}
.chat-scroll{flex:1;overflow:auto;padding:16px 18px 8px;display:flex;flex-direction:column;gap:2px}
.chat-note{margin:auto;text-align:center;color:var(--muted);font-size:14px;max-width:320px;padding:24px 0}
.chat-note.err{color:var(--accent)}
.msg{max-width:76%;align-self:flex-start;margin-top:10px}
.msg.grouped{margin-top:2px}
.msg-head{display:flex;align-items:baseline;gap:8px;margin-bottom:2px}
.msg-who{font-weight:700;font-size:12.5px;color:var(--navy)}
.msg-ts{font-size:10.5px;color:var(--muted)}
/* LIGHT message body — no dark bubbles (Ogilvy / FOUNDATIONAL #1) */
.msg-body{background:#f6f4e6;border:1px solid var(--line);border-radius:12px;padding:8px 12px;
  font-size:14px;color:var(--ink);white-space:pre-wrap;word-break:break-word}
.msg.mine{align-self:flex-end}
.msg.mine .msg-head{flex-direction:row-reverse}
.msg.mine .msg-body{background:#eef3f9;border-color:#cfdcec}

/* composer */
.composer{display:flex;gap:8px;padding:10px 14px;border-top:1px solid var(--line-2);background:var(--paper);
  padding-bottom:max(10px,env(safe-area-inset-bottom))}
.composer input{flex:1;font:inherit;font-size:14px;border:1px solid var(--line);border-radius:10px;
  padding:10px 13px;min-height:44px;background:#fff;color:var(--ink)}
.composer input:focus{outline:none;border-color:var(--navy-2)}
.composer .send{background:var(--navy);color:#fff;border:0;border-radius:10px;font:inherit;font-weight:700;
  font-size:13px;padding:0 18px;min-height:44px;cursor:pointer}
.composer .send:disabled{opacity:.6;cursor:default}

/* empty state (never mock) */
.empty{max-width:440px;margin:8vh auto;text-align:center;padding:0 20px}
.empty .mk{font-weight:800;letter-spacing:.18em;color:var(--navy);font-size:14px}
.empty h2{font-size:22px;margin:14px 0 8px}
.empty p{color:var(--muted);font-size:14px;margin:0 auto 20px;max-width:340px}
.empty .rule{width:44px;height:3px;background:var(--navy);border-radius:2px;margin:0 auto 22px;opacity:.85}

/* generic placeholder view */
.ph{max-width:600px;margin:9vh auto;text-align:center;color:var(--muted);padding:0 20px}
.ph h2{color:var(--ink);font-size:20px;margin:0 0 8px}
.ph p{font-size:14px;margin:0 auto 10px;max-width:420px}
.ph .rule{width:44px;height:3px;background:var(--navy);border-radius:2px;margin:16px auto;opacity:.85}
.ph .ph-note{color:var(--muted);font-size:13px}

/* ── HOME (GMXShell landing) ─────────────────────────────────────────────────────── */
.home{max-width:820px;margin:0 auto;padding:20px 18px 44px}
.home-hero{margin-bottom:18px}
.home-hero .mk{font-weight:800;letter-spacing:.18em;color:var(--navy);font-size:13px}
.home-hero h1{font-size:24px;margin:6px 0 6px}
.home-sub{color:var(--muted);font-size:14px;margin:0;max-width:560px}
.home-card{border:1px solid var(--line);border-radius:14px;background:#fcfbf3;padding:16px 16px 18px;margin-bottom:16px}
.home-card--primary{background:#fff}
.home-card-head{display:flex;align-items:center;margin-bottom:12px}
.home-card-head h2{font-size:16px;margin:0}
.home-card-head .linkbtn{margin-left:auto}
.home-quick{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;margin-bottom:12px}
.linkbtn{font:inherit;font-size:13px;font-weight:600;color:var(--navy);background:transparent;border:0;
  cursor:pointer;padding:8px 6px;min-height:38px;border-radius:7px}
.linkbtn:hover{text-decoration:underline}
.home-teasers{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.home-tile{text-align:left;border:1px solid var(--line);border-radius:12px;background:#fcfbf3;padding:14px;
  cursor:pointer;display:flex;flex-direction:column;gap:6px;min-height:96px;font:inherit;color:var(--ink)}
.home-tile:hover{border-color:var(--navy-2);background:#fff}
.home-tile:focus-visible{outline:2px solid var(--navy);outline-offset:2px}
.home-tile-k{font-weight:700;font-size:14px;color:var(--navy)}
.home-tile-d{font-size:12.5px;color:var(--muted)}
@media (max-width:520px){ .home-teasers{grid-template-columns:1fr} }

/* ── SETTINGS (gmxshell-own) ────────────────────────────────────────────── */
.settings{max-width:640px;margin:0 auto;padding:18px 18px 44px}
.set-head h1{font-size:20px;margin:4px 0 14px}
.set-group{border:1px solid var(--line);border-radius:14px;background:#fcfbf3;padding:14px 16px;margin-bottom:14px}
.set-group h2{font-size:14px;margin:0 0 6px;color:var(--ink)}
.set-note{color:var(--muted);font-size:12.5px;margin:0 0 10px;max-width:520px}
.set-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line-2);min-height:44px}
.set-row span{font-size:14px}
.set-val{margin-left:auto;color:var(--muted);font-size:13px}
/* toggle (disabled/stub in Wave-0) */
.sw{margin-left:auto;position:relative;display:inline-block;width:42px;height:24px}
.sw input{opacity:0;width:0;height:0}
.sw span{position:absolute;inset:0;background:#d9d5c4;border-radius:999px;transition:.15s}
.sw span:before{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.15s}
.sw input:checked + span{background:var(--navy)}
.sw input:checked + span:before{transform:translateX(18px)}
.sw input:disabled + span{opacity:.5}
.signout{background:transparent;color:var(--accent);border:1px solid var(--accent);border-radius:10px;font:inherit;
  font-weight:700;font-size:14px;padding:0 18px;min-height:44px;cursor:pointer;width:100%}
.signout:hover{background:#fbeaec}
.signout:disabled{opacity:.6;cursor:default}

/* ── call surface (mini-call) — light chrome, Navy-Luxe; no dark landing ────── */
/* header call bar (Call / Video / Share) — sits at the right of .cv-head */
.cv-callbar{margin-left:auto;display:flex;gap:6px}
.call-bar{display:flex;gap:6px}
.call-start{font:inherit;font-size:12.5px;border:1px solid var(--line);background:#f6f4e6;border-radius:999px;
  padding:8px 13px;min-height:38px;color:var(--navy);font-weight:600;cursor:pointer}
.call-start:hover{background:#fff;border-color:var(--navy-2)}
.call-start:disabled{opacity:.55;cursor:default}
.call-start:focus-visible{outline:2px solid var(--navy);outline-offset:2px}

/* live-call panel (between the header and the topic rail) */
.cv-callpanel{padding:0 18px}
.call-panel{display:none;margin:8px 0 4px;border:1px solid var(--line);border-radius:12px;background:#fcfbf3;padding:12px}
.call-panel.live{display:block}
.call-note{color:var(--muted);font-size:13px;text-align:center;padding:10px 0}
.call-note.err{color:var(--accent)}

/* presence roster (who's on the call) */
.call-roster{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-bottom:10px;min-height:26px}
.call-count{font-weight:800;font-size:12px;color:var(--navy);background:#eef3f9;border:1px solid #cfdcec;
  border-radius:999px;padding:2px 9px}
.call-chip{font-size:12px;color:#3a3f48;background:#f2efe0;border:1px solid var(--line);border-radius:999px;padding:3px 10px}
.call-waiting{font-size:12.5px;color:var(--muted)}

/* participant tile grid (audio+video) */
.call-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px;margin-bottom:10px}
.call-tile{position:relative;aspect-ratio:4/3;border-radius:10px;overflow:hidden;background:#0c1524;
  border:1px solid var(--line);display:flex;align-items:center;justify-content:center}
.call-video{width:100%;height:100%;object-fit:cover;background:#0c1524}
.call-video.mirror{transform:scaleX(-1)}
.call-label{position:absolute;left:6px;bottom:6px;z-index:2;padding:2px 8px;border-radius:7px;
  background:rgba(15,23,36,.72);color:#eef3f9;font-size:11px;letter-spacing:.01em}

/* in-call controls (light fill; navy text — reads on the light panel) */
.call-controls{display:flex;flex-wrap:wrap;gap:8px}
.call-controls button{font:inherit;font-size:12.5px;border:1px solid var(--line);background:#f6f4e6;border-radius:999px;
  padding:8px 14px;min-height:40px;color:var(--navy);font-weight:600;cursor:pointer}
.call-controls button:hover{background:#fff;border-color:var(--navy-2)}
.call-controls button[aria-pressed="false"]{background:var(--navy);color:#fff;border-color:var(--navy)}
.call-controls .call-hangup{margin-left:auto;background:var(--accent);color:#fff;border-color:var(--accent)}
.call-controls .call-hangup:hover{background:#731722}

/* ── CALENDAR (mini-calendar) — Navy Luxe LIGHT; mirrors .cv-* / .chat idiom ──── */
/* Light surface only: ink (#14171f) on paper/pearl for all body copy + form fields
   (FOUNDATIONAL #1 — no reverse type). The only filled-navy chrome is the selected
   view tab / New button / primary CTA (mirrors .cv-topics button[aria-selected]). */
.cal{position:relative;display:flex;flex-direction:column;height:100%;max-width:1000px;margin:0 auto;width:100%}
.cal-note{padding:9vh 18px;text-align:center;color:var(--muted)}
.cal-note.err{color:var(--accent)}
.cal-head{display:flex;align-items:center;gap:10px;padding:14px 18px 10px;flex-wrap:wrap}
.cal-title{font-size:18px;margin:0}
.cal-views{display:flex;gap:6px}
.cal-views button{font:inherit;font-size:12.5px;border:1px solid var(--line);background:#f6f4e6;border-radius:999px;
  padding:8px 14px;min-height:38px;color:#3a3f48;cursor:pointer}
.cal-views button[aria-selected="true"]{background:var(--navy);color:#fff;border-color:var(--navy);font-weight:600}
.cal-views button:focus-visible{outline:2px solid var(--navy);outline-offset:2px}
.cal-new{margin-left:auto;background:var(--navy);color:#fff;border:0;border-radius:9px;font:inherit;font-weight:700;
  font-size:13px;padding:0 16px;min-height:44px;cursor:pointer}
.cal-new:focus-visible{outline:2px solid var(--navy);outline-offset:2px}

.cal-body{display:flex;gap:14px;flex:1;min-height:0;padding:0 18px 24px;align-items:flex-start}
.cal-main{flex:1;min-width:0}

/* layer rail (per-viewer toggle legend) — light card, ink on pearl */
.cal-rail{flex:0 0 190px;background:var(--pearl);border:1px solid var(--line);border-radius:11px;
  padding:12px;color:var(--ink)}
.cal-rail-title{font-size:11.5px;font-weight:700;letter-spacing:.02em;text-transform:uppercase;color:var(--muted);margin-bottom:8px}
.cal-layer{display:flex;align-items:center;gap:8px;cursor:pointer;user-select:none;min-height:40px;padding:2px 2px;font-size:14px;color:var(--ink)}
.cal-layer input{width:20px;height:20px;accent-color:var(--navy);cursor:pointer;flex:0 0 auto}
.cal-layer-swatch{width:12px;height:12px;border-radius:3px;flex:0 0 auto}
.cal-layer-name{color:var(--ink);word-break:break-word}

/* month grid */
.cal-grid-head{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.cal-grid-title{font-size:15px;font-weight:700;flex:1;text-align:center}
.cal-nav{font:inherit;font-size:18px;line-height:1;color:var(--navy);background:#f6f4e6;border:1px solid var(--line);
  border-radius:9px;min-width:40px;min-height:40px;cursor:pointer}
.cal-nav:hover{background:#fff;border-color:var(--navy-2)}
.cal-nav:focus-visible{outline:2px solid var(--navy);outline-offset:2px}
.cal-grid-dow{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin-bottom:4px}
.cal-grid-dow span{text-align:center;font-size:11px;font-weight:600;color:var(--muted);padding:2px 0}
.cal-grid-cells{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.cal-cell{position:relative;background:#fcfbf3;border:1px solid var(--line);border-radius:8px;min-height:60px;
  padding:5px 6px;font:inherit;color:var(--ink);text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:3px}
.cal-cell:hover{border-color:var(--navy-2);background:#fff}
.cal-cell:focus-visible{outline:2px solid var(--navy);outline-offset:1px}
.cal-cell-other{background:#f3f1e3;color:var(--muted)}
.cal-cell-today{border-color:var(--navy);box-shadow:inset 0 0 0 1px var(--navy)}
.cal-cell-date{font-size:12.5px;font-weight:600}
.cal-cell-dots{display:flex;flex-wrap:wrap;gap:3px;align-items:center}
.cal-dot{width:8px;height:8px;border-radius:50%}
.cal-more{font-size:10px;color:var(--muted)}

/* agenda list + shared event item rows */
.cal-agenda{display:flex;flex-direction:column;gap:8px}
.cal-empty{max-width:420px;margin:6vh auto;text-align:center;color:var(--muted);font-size:14px;padding:0 8px}
.cal-item{display:flex;gap:11px;align-items:flex-start;background:#fcfbf3;border:1px solid var(--line);
  border-radius:11px;padding:11px 13px}
.cal-item-tap{cursor:pointer}
.cal-item-tap:hover{border-color:var(--navy-2);background:#fff}
.cal-item-icon{flex:0 0 auto;width:34px;height:34px;border-radius:9px;background:#f6f4e6;border:2px solid var(--line);
  display:flex;align-items:center;justify-content:center;font-size:17px}
.cal-item-body{flex:1;min-width:0}
.cal-item-title{font-weight:700;font-size:14px;color:var(--ink)}
.cal-item-when{font-size:12.5px;color:var(--muted)}
.cal-item-when.soon{color:var(--navy);font-weight:600}
.cal-item-notes{font-size:12.5px;color:#3a3f48;margin-top:2px;white-space:pre-wrap;word-break:break-word}
.cal-item-scope{font-size:11.5px;color:var(--muted);margin-top:3px}
.cal-item-recur{flex:0 0 auto;font-size:10.5px;color:var(--muted);background:#f2efe0;border:1px solid var(--line);
  border-radius:999px;padding:2px 8px;text-transform:capitalize}

/* RSVP block (circle events) */
.cal-rsvp{margin-top:8px;padding-top:8px;border-top:1px solid var(--line-2)}
.cal-rsvp-btns{display:flex;gap:6px;margin-bottom:6px}
.cal-rsvp-btn{font:inherit;font-size:12px;border:1px solid var(--line);background:#f6f4e6;border-radius:999px;
  padding:6px 12px;min-height:36px;color:var(--navy);font-weight:600;cursor:pointer}
.cal-rsvp-btn:hover{background:#fff;border-color:var(--navy-2)}
.cal-rsvp-btn.active{background:var(--navy);color:#fff;border-color:var(--navy)}
.cal-rsvp-counts{font-size:12.5px;color:var(--muted)}
.cal-rsvp-who{font:inherit;font-size:12.5px;color:var(--navy);background:transparent;border:0;cursor:pointer;
  padding:6px 2px;min-height:34px;font-weight:600}
.cal-rsvp-who:hover{text-decoration:underline}
.cal-att{margin-top:6px;border-top:1px solid var(--line-2);padding-top:8px}
.cal-att-tabs{display:flex;gap:6px;margin-bottom:8px;flex-wrap:wrap}
.cal-att-tab{font:inherit;font-size:11.5px;border:1px solid var(--line);background:#f6f4e6;border-radius:999px;
  padding:5px 10px;min-height:32px;color:#3a3f48;cursor:pointer}
.cal-att-tab.active{background:var(--navy);color:#fff;border-color:var(--navy);font-weight:600}
.cal-att-list{display:flex;flex-direction:column;gap:5px}
.cal-att-row{display:flex;align-items:center;gap:8px}
.cal-att-face{width:26px;height:26px;border-radius:50%;color:#fff;font-size:10.5px;font-weight:700;
  display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.cal-att-name{font-size:13px;color:var(--ink)}
.cal-att-empty{font-size:12.5px;color:var(--muted)}
.cal-att-more{font:inherit;font-size:12.5px;color:var(--navy);background:transparent;border:0;cursor:pointer;
  padding:6px 2px;min-height:34px;font-weight:600;text-align:left}
.cal-att-more:hover{text-decoration:underline}

/* overlays (day sheet + create/edit form) — light sheet, never a dark modal */
.cal-overlay[hidden]{display:none}
.cal-overlay{position:absolute;inset:0;background:rgba(20,23,31,.28);display:flex;align-items:flex-end;
  justify-content:center;z-index:20}
.cal-sheet{background:var(--paper);width:100%;max-width:560px;max-height:88%;overflow:auto;border-radius:16px 16px 0 0;
  border:1px solid var(--line);box-shadow:0 -8px 30px rgba(20,23,31,.18)}
.cal-sheet-head{display:flex;align-items:center;gap:10px;padding:14px 18px 8px;position:sticky;top:0;background:var(--paper)}
.cal-back{font:inherit;font-size:13px;color:var(--navy);background:transparent;border:0;cursor:pointer;padding:6px 8px;min-height:38px;border-radius:7px}
.cal-back:hover{background:#f2efe0}
.cal-sheet-title{font-size:17px;margin:0}
.cal-sheet-body{padding:6px 18px 24px;padding-bottom:max(18px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:10px}

/* form fields — light inputs, ink on white (mirror .composer input) */
.cal-field{display:flex;flex-direction:column;gap:4px;font-size:12.5px;color:var(--muted)}
.cal-field span{font-weight:600}
.cal-field input,.cal-field select,.cal-field textarea{font:inherit;font-size:14px;border:1px solid var(--line);
  border-radius:10px;padding:10px 13px;min-height:44px;background:#fff;color:var(--ink)}
.cal-field textarea{min-height:60px;resize:vertical}
.cal-field input:focus,.cal-field select:focus,.cal-field textarea:focus{outline:none;border-color:var(--navy-2)}
.cal-form-btns{display:flex;gap:8px;margin-top:6px}
.cal-save{background:var(--navy);color:#fff;border:0;border-radius:10px;font:inherit;font-weight:700;font-size:14px;
  padding:0 18px;min-height:44px;cursor:pointer}
.cal-save:focus-visible{outline:2px solid var(--navy);outline-offset:2px}
.cal-delete{background:transparent;color:var(--accent);border:1px solid var(--accent);border-radius:10px;font:inherit;
  font-weight:700;font-size:14px;padding:0 18px;min-height:44px;cursor:pointer;margin-left:auto}
.cal-delete:hover{background:#fbeaec}
.cal-form-err{color:var(--accent);font-size:12.5px}

@media (max-width:640px){
  .cal-body{flex-direction:column}
  .cal-rail{flex:0 0 auto;width:100%;display:flex;flex-wrap:wrap;gap:4px 14px;align-items:center}
  .cal-rail-title{width:100%;margin-bottom:4px}
  .cal-layer{min-height:40px}
  .cal-cell{min-height:52px}
}

@media (max-width:520px){
  .gmxshell-nav button{padding:8px 10px;font-size:12px}
  .gmxshell-brand{font-size:14px}
  .cv-callbar{width:100%;margin:8px 0 0}
  .call-start{flex:1;justify-content:center}
}

/* ─── Kit 1.2.0: shared, profile-toggled GMXShell chrome components ─────────────────
   env-switch pill + presence dot are CHROME (≤1-2-word status labels on the navy
   bar — Ogilvy reverse-type exception). The avatar menu is a LIGHT popover
   (pearl/ink — FOUNDATIONAL_PRINCIPLES #1: no reverse type on a real surface). */
.gmxshell-env{font:inherit;font-size:11.5px;font-weight:700;letter-spacing:.02em;text-transform:uppercase;
  color:var(--chrome-hi);background:var(--chrome-deep);border:1px solid var(--chrome-border);border-radius:999px;padding:5px 12px;min-height:30px;
  cursor:pointer}
.gmxshell-env:hover{background:#1a3b5c}
.gmxshell-env.is-sandbox{color:#2a1a08;background:#f2c66b;border-color:#c99a34}
.gmxshell-env:disabled{opacity:.55;cursor:progress}
.gmxshell-env:focus-visible{outline:2px solid var(--chrome-hi);outline-offset:2px}
.gmxshell-presence{display:inline-flex;align-items:center}
.gmxshell-presence .pdot{width:9px;height:9px;border-radius:50%;background:#8a929e;box-shadow:0 0 0 2px #ffffff22}
.gmxshell-presence.is-online .pdot{background:#5fd39b}
.cm-menu{position:absolute;top:52px;right:14px;z-index:60;min-width:236px;max-width:88vw;
  background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:12px;
  box-shadow:0 12px 32px #14171f2e;padding:6px;display:flex;flex-direction:column;gap:1px}
.cm-label{font-size:10.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);
  padding:9px 10px 3px}
.cm-item{display:flex;align-items:center;gap:9px;font:inherit;font-size:14px;color:var(--ink);text-align:left;
  background:transparent;border:0;border-radius:8px;padding:9px 10px;min-height:44px;cursor:pointer;width:100%}
.cm-item:hover{background:#f2efe0}
.cm-item:focus-visible{outline:2px solid var(--navy);outline-offset:-2px}
.cm-item>span:first-child{width:20px;text-align:center;flex:0 0 auto}
.cm-muted{margin-left:auto;font-size:11.5px;color:var(--muted)}
/* menu identity header + danger rows */
.cm-header{padding:9px 10px 11px;border-bottom:1px solid var(--line);margin-bottom:4px}
.cm-name{font-weight:700;font-size:15px;color:var(--ink)}
.cm-dev{font-size:12px;color:var(--muted);margin-top:2px}
.cm-item.cm-danger{color:#b3413a}
.cm-item.cm-danger:hover{background:#f6e6e2}
/* left identity strip — "name · device" menu launch anchor (light on navy chrome) */
.gmxshell-id{background:transparent;border:0;color:var(--chrome-fg-soft);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer;padding:4px 8px;border-radius:7px;min-height:32px;max-width:44vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gmxshell-id:hover{background:rgba(255,255,255,.14)}

/* ─── Kit 1.4.0: connection-state banner (gmxshell-netbar) ──────────────────────────
   Thin status strip under the top bar; hidden when online+stable. LIGHT surface
   (ink on pearl — no reverse type, FOUNDATIONAL #1); near-textless (icon + a
   ≤1-word status). Colors are the existing --warn/--accent tokens on light tints. */
.gmxshell-netbar{display:flex;align-items:center;gap:8px;padding:6px 16px;font-size:12.5px;font-weight:600;
  background:#f2efe0;color:var(--ink);border-bottom:1px solid var(--line)}
.gmxshell-netbar[hidden]{display:none}
.gmxshell-netbar.is-offline{background:#f4eede;color:var(--warn)}
.gmxshell-netbar.is-reconnecting{background:#fbf2d6;color:var(--warn)}
.gmxshell-netbar.is-dropped{background:#fbeaec;color:var(--accent)}
.gmxshell-netbar .nb-ico{flex:0 0 auto}
.gmxshell-netbar .nb-txt{flex:1}
.gmxshell-netbar .nb-act{font:inherit;font-size:12px;font-weight:700;color:#fff;background:var(--navy);
  border:0;border-radius:8px;padding:5px 12px;min-height:32px;cursor:pointer}
.gmxshell-netbar .nb-act:hover{background:var(--navy-2)}

/* ─── Kit 1.5.0: bottom tab bar (profile navStyle:'bottom') ───────────────────
   Native phone nav — icon + tiny label, safe-area padded, always visible below the
   scrolling #gmxshell-content (a flex sibling, not fixed → never overlaps content). Navy
   chrome with light labels is the ≤1-2-word chrome exception (same as the top nav). */
.gmxshell-nav--bottom{display:flex;gap:0;margin:0;background:linear-gradient(0deg,var(--chrome-2),var(--chrome-1));
  border-top:1px solid var(--chrome-deep);padding-bottom:env(safe-area-inset-bottom)}
.gmxshell-nav--bottom button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:2px;font:inherit;color:var(--chrome-fg-dim);background:transparent;border:0;padding:8px 4px 7px;min-height:54px;cursor:pointer}
.gmxshell-nav--bottom button[aria-current="page"]{color:#fff}
.gmxshell-nav--bottom .nav-ico{font-size:20px;line-height:1}
.gmxshell-nav--bottom .nav-lbl{font-size:10.5px;letter-spacing:.01em}
.gmxshell-nav--bottom button[aria-current="page"] .nav-lbl{font-weight:700}
.gmxshell-nav--bottom button:focus-visible{outline:2px solid var(--chrome-hi);outline-offset:-3px}

/* ─── Kit 1.5.0: DEMO (anon experience) — light body, inviting tour, sign-in CTA ─── */
.demo{max-width:560px;margin:0 auto;padding:22px 20px 40px}
.demo-hero{text-align:center;margin-bottom:14px}
.demo-hero .mk{font-weight:800;letter-spacing:.18em;color:var(--navy);font-size:13px}
.demo-hero h1{font-size:26px;margin:8px 0 8px}
.demo-sub{color:var(--muted);font-size:15px;margin:0 auto;max-width:430px}
.demo-media{border-radius:16px;overflow:hidden;margin:16px 0;background:#f2efe0;border:1px solid var(--line)}
.demo-media--slot{min-height:172px;background:repeating-linear-gradient(135deg,#f4f1e2,#f4f1e2 12px,#efeada 12px,#efeada 24px)}
.demo-video{width:100%;display:block}
.demo-shots{display:flex;flex-direction:column;gap:10px;margin:18px 0}
.demo-shot{display:flex;gap:12px;align-items:flex-start;background:#fcfbf3;border:1px solid var(--line);
  border-radius:12px;padding:13px 14px}
.demo-shot-ico{font-size:22px;line-height:1;flex:0 0 auto}
.demo-shot-k{font-weight:700;font-size:15px;color:var(--navy)}
.demo-shot-d{font-size:13.5px;color:var(--muted)}
.demo-cta{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:20px}
.demo-create{width:100%;max-width:320px}
.demo-disc{font-size:11.5px;color:var(--muted);text-align:center;margin:6px 0 0}

/* ─── Kit 1.5.0: CONTACTS (contact-first phonebook) — flat PII-free people list ─── */
.contacts{max-width:640px;margin:0 auto;padding:6px 0 40px}
.cts-note{padding:9vh 18px;text-align:center;color:var(--muted)}
.cts-list{list-style:none;margin:0;padding:0}
.cts-list li{border-bottom:1px solid var(--line-2)}
.cts-row{display:flex;align-items:center;gap:12px;width:100%;background:transparent;border:0;
  padding:11px 18px;min-height:60px;cursor:pointer;font:inherit;text-align:left;color:var(--ink)}
.cts-row:hover{background:#faf8ea}
.cts-row:focus-visible{outline:2px solid var(--navy);outline-offset:-2px}
.cts-face{width:40px;height:40px;border-radius:50%;background:#e7edf5;color:var(--navy);
  display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;flex:0 0 auto}
.cts-name{flex:1;font-size:15px}
.cts-call{font-size:18px;color:var(--navy);flex:0 0 auto}
.cts-empty{max-width:400px;margin:8vh auto;text-align:center;color:var(--muted);padding:0 20px}
.cts-empty-ico{font-size:40px;margin-bottom:10px}

/* ─── Kit 1.5.0: PERSON action sheet (pick person → call/video) — light bottom sheet ─── */
.ps-overlay{position:fixed;inset:0;background:rgba(20,23,31,.34);display:flex;align-items:flex-end;
  justify-content:center;z-index:80}
.ps-sheet{background:var(--paper);width:100%;max-width:520px;border-radius:18px 18px 0 0;
  border:1px solid var(--line);box-shadow:0 -8px 30px rgba(20,23,31,.2);
  padding:8px 18px max(18px,env(safe-area-inset-bottom))}
.ps-head{display:flex;align-items:center;gap:12px;padding:12px 2px 14px}
.ps-face{width:46px;height:46px;border-radius:50%;background:#e7edf5;color:var(--navy);
  display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:700;flex:0 0 auto}
.ps-name{flex:1;font-size:17px;font-weight:700}
.ps-close{font:inherit;font-size:15px;color:var(--muted);background:transparent;border:0;cursor:pointer;
  width:40px;height:40px;border-radius:50%}
.ps-close:hover{background:#f2efe0}
.ps-actions{display:flex;gap:10px;padding:4px 0 8px}
.ps-act{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;font:inherit;font-size:15px;
  font-weight:700;color:#fff;border:0;border-radius:12px;padding:14px;min-height:52px;cursor:pointer}
.ps-call{background:var(--ok)}
.ps-video{background:var(--navy)}
.ps-circles{display:flex;flex-direction:column;gap:0;padding:2px 0 8px}
.ps-crow{display:flex;align-items:center;gap:10px;padding:8px 4px;border-top:1px solid var(--line-2)}
.ps-cname{flex:1;font-size:14px}
.ps-mini{font:inherit;font-size:17px;background:#f2efe0;border:1px solid var(--line);border-radius:10px;
  width:46px;height:44px;cursor:pointer}
.ps-mini:hover{background:#fff;border-color:var(--navy-2)}
.ps-none{color:var(--muted);font-size:13.5px;padding:6px 2px 12px}

/* Kit 1.5.0: the in-circle People roster is now TAPPABLE (opens the person sheet). Button reset
   over the existing .cv-person pill so it stays a pill but clicks. */
button.cv-person{font:inherit;cursor:pointer}
button.cv-person:hover{background:#fff;border-color:var(--navy-2)}
button.cv-person:focus-visible{outline:2px solid var(--navy);outline-offset:2px}

/* ─── Kit 1.6.0/1.7.0: RTC lab (P2P proof harness — dev surface #/rtclab) ───────── */
.lab{max-width:640px;margin:0 auto;padding:18px 18px 44px}
.lab-h{font-size:20px;margin:0 0 6px}
.lab-me{font-size:12.5px;color:var(--muted);margin-bottom:14px;word-break:break-all}
.lab-me code,.lab-incoming code{font-size:12px}
.lab-row{display:flex;gap:8px;margin-bottom:12px}
.lab-in{flex:1;font:inherit;font-size:14px;border:1px solid var(--line);border-radius:10px;padding:10px 13px;
  min-height:44px;background:#fff;color:var(--ink)}
.lab-in:focus{outline:none;border-color:var(--navy-2)}
.lab-incoming{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#fcfbf3;border:1px solid var(--line);
  border-radius:12px;padding:12px;margin-bottom:12px}
.lab-incoming[hidden],.lab-live[hidden]{display:none}
.lab-state{font-weight:700;font-size:15px;color:var(--navy);margin-bottom:8px}
.lab-state.err{color:var(--accent)}
.lab-stats{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.lab-stat{font-size:12.5px;background:#f2efe0;border:1px solid var(--line);border-radius:999px;padding:4px 10px;color:#3a3f48}
.lab-stat.is-direct{background:#e7f3ea;border-color:#bcdcc6;color:var(--ok)}
.lab-stat.is-relay{background:#fbf2d6;border-color:#e6cf94;color:var(--warn)}
.lab-ctl{display:flex;gap:8px;margin-bottom:8px}
.lab-hang{color:var(--accent)!important;border-color:var(--accent)!important}
.lab-hint{font-size:12px;color:var(--muted);margin-top:8px}
.lab-note{padding:9vh 18px;text-align:center;color:var(--muted)}
.lab-note.err{color:var(--accent)}
.lab-h2{font-size:15px;margin:18px 0 8px}
.lab-mesh{border-top:1px solid var(--line-2);margin-top:18px;padding-top:6px}
.lab-ta{min-height:64px;resize:vertical;margin-top:8px}
.lab-mesh-peers{margin-top:10px;display:flex;flex-direction:column;gap:6px}
.lab-mesh-count{font-size:12.5px;color:var(--muted)}
.lab-mesh-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.lab-mesh-k{font-size:12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;flex:1;word-break:break-all;color:#3a3f48}

/* ─── TABLET/DESKTOP (>=768px): center the content as a floating APP BOARD ─────
   Phone-first shell is UNCHANGED below 768px (this block is additive). On iPad the
   full-bleed #gmxshell-content left the phone-size board marooned top-left in a wide white
   void (VERA tablet finding 2026-08-23). On wide DESKTOP a hard-bordered narrow white
   strip on the cream body reads as a BROKEN app, not an app (operator 2026-09-05:
   "on PC it should look like an APP, not a broken app" — gold standard the flagship app).
   Fix: center + cap the content to the tablet-width centroid (~820, per
   STD_universal_theme_app_tablet_first.md) and render it as a deliberate floating app
   board (soft ring + drop shadow on the cream body) — the the flagship app app-frame look —
   instead of a bordered strip. Fixes ALL apps on the kit at once. The GMXShell top bar stays
   full-width chrome; only the content page centers. Web-mode (future) releases the cap.
   Navy-Luxe LIGHT preserved (ink on paper) — no reverse type (FOUNDATIONAL #1). */
@media (min-width:768px){
  #gmxshell-content{width:100%;max-width:820px;margin-inline:auto;
    box-shadow:0 0 0 1px var(--line-2),0 10px 34px rgba(20,23,31,.07)}
}

/* ─── WEB-MODE (OPT-IN) — releases the phone-column cap for wide web/tablet apps ──────
   The "Web-mode (future) releases the cap" note above is now BUILT. Phone-first is the
   DEFAULT and stays UNCHANGED: a plain app (or web-mode below 768px, i.e. a narrow web
   window = a phone) keeps the 420/480/600 #gmxshell-root column + 820 app board.
   An app OPTS IN via its per-app profile (layout:'web'), which the shell's
   stampBuildConfig() stamps as [data-shell-layout="web"] on <html> at boot (mirrors how
   brand.theme.* is stamped onto :root — same single-config-source toggle mechanism).
   At tablet/desktop (>=768px) web-mode RELEASES the outer #gmxshell-root cap so the app
   fills the window (no marooned phone strip on a wide PC), and widens the content app
   board to a readability ceiling well beyond 600px. The existing auto-fill panel grids
   (.grid / .home-quick / .call-grid = repeat(auto-fill,minmax(...))) then flow into more
   columns on their own — mirror-ours, no new grid system invented. Inner readability
   caps (.home 820 / .land 1000 / .circle-view 900 / .cal 1000 / .settings 640) still
   bound line length. Attribute+id specificity (0,2,0 + 1,0,0) beats the bare-id landscape
   cap regardless of source order. Navy-Luxe LIGHT preserved (ink on paper — FOUNDATIONAL #1). */
@media (min-width:768px){
  :root[data-shell-layout="web"] #gmxshell-root{max-width:none;box-shadow:none}
  :root[data-shell-layout="web"] #gmxshell-content{max-width:1280px;
    padding-inline:max(16px,env(safe-area-inset-left))}
}

/* gmxshell-banner — DUMB app-fillable banner under the top bar (app-fillable region) */
.gmxshell-banner{background:#fff;color:#14171f;padding:10px 16px;border-bottom:1px solid var(--border,#c9c3ac);margin:0;line-height:1.3;font-size:12.5px;}
.gmxshell-banner[hidden]{display:none!important;}
/* gmxshell-popup — DUMB app-fillable overlay (backdrop; app supplies the card innerHTML) */
.gmxshell-popup{position:fixed;inset:0;z-index:200;background:rgba(0,0,0,.45);display:flex;align-items:flex-start;justify-content:center;padding:max(60px,env(safe-area-inset-top)) 16px 16px;}
.gmxshell-popup[hidden]{display:none!important;}

/* ─── template-1.1: persistent RESERVED bottom shelf (the L3 primitive) ──────────────
   A flex sibling of #gmxshell-content → content shrinks ABOVE it and never covers it
   (reserved, NOT an overlay). Pinned bottom, dismissible (hidden attr), survives nav.
   Hosts gmxplayer.nowplaying (media bar) or a call/comm bar. LIGHT surface (ink on
   paper — FOUNDATIONAL #1; not chrome). safe-area padded for phone home indicator. */
.gmxshell-bottom{flex:0 0 auto;background:var(--paper);color:var(--ink);border-top:1px solid var(--line);
  padding:8px 14px;padding-bottom:max(8px,env(safe-area-inset-bottom));box-shadow:0 -2px 12px #14171f14}
.gmxshell-bottom[hidden]{display:none!important}
