/* lw-kit.css — the LifeWork app kit: one look and one set of parts for every spoke.
   Copy this file into a spoke as-is; do not edit the copy. See KIT.md.

   Dark is the default (the lifeworkgps.tech landing palette, from brand values); light is available:
     <html data-theme="dark">   or   <html data-theme="light">
   Every class starts with lwk- and every token with --lw-, so the kit never collides with a spoke's own styles.
   Reference build: Spoke-Connect (web/lwc-shell.css, web/lwc-app.js). */

/* ------------------------------------------------------------------ tokens */
:root, :root[data-theme="light"] {
  --lw-bg: #f7f8fa; --lw-surface: #ffffff; --lw-surface-2: #edf0f3; --lw-ink: #013a56; --lw-heading: #013a56; --lw-muted: #58595b;
  --lw-line: #e2e4e7; --lw-ring: #d1d3d4; --lw-primary: #013a56; --lw-on-primary: #ffffff; --lw-accent: #3686c7;
  --lw-signal: #ec2227; --lw-gold: #c79a36; --lw-good: #2a7d4f;
  --lw-tint: rgba(1, 58, 86, .06); --lw-tint-strong: rgba(1, 58, 86, .10); --lw-info: rgba(54, 134, 199, .12);
  --lw-glow: none; --lw-shadow: 0 10px 30px rgba(1, 58, 86, .12);
  --lw-font: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --lw-top-offset: 0px;   /* a host page with its own bar above the app sets this (the demo site does) */
  color-scheme: light;
}
:root[data-theme="dark"] {
  --lw-bg: #07141d; --lw-surface: #0d2230; --lw-surface-2: #12303f; --lw-ink: #e9f1f8; --lw-heading: #e9f1f8; --lw-muted: #9db3c2;
  --lw-line: #173241; --lw-ring: #2b4a5d; --lw-primary: #3686c7; --lw-on-primary: #ffffff; --lw-accent: #7bbdf2;
  --lw-tint: rgba(255, 255, 255, .06); --lw-tint-strong: rgba(255, 255, 255, .10); --lw-info: rgba(54, 134, 199, .22);
  --lw-glow: radial-gradient(900px 420px at 78% -8%, rgba(54, 134, 199, .16), transparent 70%); --lw-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ page */
.lwk-page { margin: 0; background: var(--lw-bg); background-image: var(--lw-glow); background-attachment: fixed; color: var(--lw-ink);
  font-family: var(--lw-font); font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.lwk-page *, .lwk-app * { box-sizing: border-box; }
.lwk-h1 { font: 800 clamp(24px, 3.2vw, 32px)/1.12 var(--lw-font); color: var(--lw-heading); margin: 0; text-wrap: balance; }
.lwk-h2 { font: 800 19px/1.25 var(--lw-font); color: var(--lw-heading); margin: 0; }
.lwk-h3 { font: 800 17px/1.25 var(--lw-font); color: var(--lw-heading); margin: 0; }
.lwk-eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--lw-muted); }
.lwk-eyebrow.accent { color: var(--lw-accent); }
.lwk-muted { color: var(--lw-muted); }
.lwk-lead { font-size: 16px; color: var(--lw-ink); margin: 14px 0 0; max-width: 560px; }

/* ------------------------------------------------------------------ frame: side menu + bar + ONE view */
.lwk-app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; font-family: var(--lw-font); color: var(--lw-ink); }
.lwk-app.norail { grid-template-columns: minmax(0, 1fr); }
.lwk-app.norail .lwk-rail { display: none; }
.lwk-rail { position: sticky; top: 0; align-self: start; height: 100vh; max-height: 100%; display: flex; flex-direction: column; gap: 18px; padding: 16px 12px;
  background: var(--lw-surface); border-right: 1px solid var(--lw-line); }
.lwk-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 0; text-decoration: none; color: var(--lw-heading); }
.lwk-brand img { height: 26px; width: auto; display: block; }
.lwk-brand .name { font-weight: 800; font-size: 13px; letter-spacing: .03em; padding-left: 10px; border-left: 1px solid var(--lw-line); }
.lwk-railnav { display: flex; flex-direction: column; gap: 2px; }
.lwk-railitem { position: relative; display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 8px; border: 0; background: transparent; width: 100%;
  color: var(--lw-muted); text-decoration: none; text-align: left; font: 600 13.5px/1.2 var(--lw-font); cursor: pointer; transition: background .12s, color .12s; }
.lwk-railitem:hover { background: var(--lw-tint); color: var(--lw-ink); }
.lwk-railitem[aria-current="page"], .lwk-railitem.on { background: var(--lw-info); color: var(--lw-ink); }
.lwk-railitem[aria-current="page"] svg, .lwk-railitem.on svg { color: var(--lw-accent); }
.lwk-railitem .lwk-newdot, .lwk-railitem .lwk-count { margin-left: auto; }
.lwk-count { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--lw-tint-strong); color: var(--lw-ink); font-size: 11px; font-weight: 800; text-align: center; }

.lwk-stage { min-width: 0; display: flex; flex-direction: column; }
.lwk-appbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px clamp(16px, 3vw, 36px);
  background: color-mix(in srgb, var(--lw-bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--lw-line); }
.lwk-appbar .lwk-title { font: 800 17px/1.2 var(--lw-font); color: var(--lw-heading); margin: 0; }
.lwk-appbar .lwk-spacer { flex: 1; }
.lwk-appbar .lwk-brand { display: none; padding: 0; }
.lwk-app.norail .lwk-appbar .lwk-brand { display: flex; }
.lwk-view { width: 100%; max-width: 1040px; margin: 0 auto; padding: 26px clamp(16px, 3vw, 36px) 72px; outline: none; }

/* ------------------------------------------------------------------ buttons, chips, menus */
.lwk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 6px; border: 1px solid var(--lw-primary);
  background: var(--lw-primary); color: var(--lw-on-primary); font: 700 13px/1.2 var(--lw-font); letter-spacing: .02em; cursor: pointer; text-decoration: none; }
.lwk-btn:hover { filter: brightness(1.12); }
.lwk-btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.lwk-btn.ghost { background: transparent; color: var(--lw-accent); border-color: var(--lw-ring); }
.lwk-btn.sm { padding: 6px 11px; font-size: 12px; }
.lwk-link { border: 0; background: transparent; color: var(--lw-accent); font: 700 13px/1.2 var(--lw-font); padding: 6px 4px; border-radius: 6px; cursor: pointer; text-decoration: none; }
.lwk-link:hover { text-decoration: underline; }
.lwk-barbtn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--lw-line);
  background: var(--lw-surface); color: var(--lw-ink); font: 700 12.5px/1 var(--lw-font); cursor: pointer; }
.lwk-barbtn.icon { width: 34px; padding: 0; justify-content: center; }
.lwk-barbtn:hover, .lwk-acct:hover { border-color: var(--lw-ring); }
.lwk-coins { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--lw-line);
  background: var(--lw-surface); color: var(--lw-ink); font: 700 12.5px/1 var(--lw-font); cursor: pointer; white-space: nowrap; }
.lwk-coins i { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--lw-gold); color: #1b1300; font: 800 9px/1 var(--lw-font); font-style: normal; }
.lwk-acct { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 10px 0 6px; border-radius: 999px; border: 1px solid var(--lw-line);
  background: var(--lw-surface); color: var(--lw-ink); font: 600 13px/1.1 var(--lw-font); text-align: left; cursor: pointer; }
.lwk-acct small { display: block; font-weight: 400; font-size: 11px; color: var(--lw-muted); }
.lwk-avatar { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lw-primary); color: #fff; font: 700 12px/1 var(--lw-font); flex: none; }
.lwk-menuwrap { position: relative; }
.lwk-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; min-width: 210px; padding: 6px; border-radius: 10px; background: var(--lw-surface);
  border: 1px solid var(--lw-line); box-shadow: var(--lw-shadow); }
.lwk-menu button, .lwk-menu a { display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--lw-ink);
  font: 600 13px/1.2 var(--lw-font); cursor: pointer; text-decoration: none; }
.lwk-menu button:hover, .lwk-menu a:hover { background: var(--lw-tint); }
.lwk-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--lw-line); background: var(--lw-surface);
  color: var(--lw-ink); font-size: 12px; white-space: nowrap; }
.lwk-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lw-good); }
.lwk-pill.off::before { background: var(--lw-muted); }
.lwk-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.lwk-seg button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--lw-line); background: var(--lw-surface);
  color: var(--lw-muted); font: 700 13px/1.2 var(--lw-font); cursor: pointer; }
.lwk-seg button[aria-selected="true"], .lwk-seg button.on { background: var(--lw-primary); border-color: var(--lw-primary); color: var(--lw-on-primary); }

/* New or unopened: one red dot, LifeWork's signal red. */
.lwk-newdot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--lw-signal); }

/* An explanation, behind a small "i" (hover or focus). */
.lwk-tip { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; margin-left: 6px; border-radius: 50%;
  border: 1px solid var(--lw-ring); color: var(--lw-muted); font: 700 11px/1 var(--lw-font); cursor: help; vertical-align: 2px; flex: none; }
.lwk-tip > span { display: none; position: absolute; top: calc(100% + 8px); left: -8px; z-index: 45; width: min(300px, 72vw); padding: 11px 13px; border-radius: 10px;
  background: var(--lw-surface-2); border: 1px solid var(--lw-ring); box-shadow: var(--lw-shadow); color: var(--lw-ink); font: 500 12.5px/1.5 var(--lw-font);
  text-align: left; letter-spacing: 0; text-transform: none; white-space: normal; cursor: default; }
.lwk-tip:hover > span, .lwk-tip:focus > span, .lwk-tip:focus-within > span { display: block; }

/* ------------------------------------------------------------------ cards */
.lwk-card { padding: 18px; border-radius: 14px; background: var(--lw-surface); border: 1px solid var(--lw-line); min-width: 0; }
.lwk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
/* An insight: tag, headline, one line, the next move, two actions. */
.lwk-icard { display: flex; flex-direction: column; padding: 18px 18px 14px; border-radius: 14px; background: var(--lw-surface); border: 1px solid var(--lw-line); }
.lwk-icard .tag { display: flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--lw-accent); }
.lwk-icard h3 { font: 800 18px/1.25 var(--lw-font); color: var(--lw-heading); margin: 8px 0 0; }
.lwk-icard p { color: var(--lw-muted); font-size: 14px; margin: 9px 0 0; }
.lwk-icard .next { margin-top: 12px; padding: 9px 11px; border-radius: 9px; background: var(--lw-tint); font-size: 13.5px; font-weight: 600; color: var(--lw-ink); }
.lwk-icard .next small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--lw-accent); margin-bottom: 2px; }
.lwk-icard .acts { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 16px; }
.lwk-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.lwk-kpi { padding: 14px; border-radius: 10px; background: var(--lw-surface); border: 1px solid var(--lw-line); }
.lwk-kpi b { display: block; font: 700 26px/1 var(--lw-font); color: var(--lw-heading); font-variant-numeric: tabular-nums; }
.lwk-kpi span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--lw-muted); }
.lwk-empty { margin-top: 22px; padding: 26px; border-radius: 14px; border: 1px dashed var(--lw-ring); text-align: center; color: var(--lw-muted); }

/* ------------------------------------------------------------------ "so what" first: actions and goals */
/* The panel that opens every deep dive, above any chart. */
.lwk-sowhat { margin-bottom: 18px; padding: 18px 20px; border-radius: 14px; background: var(--lw-surface); border: 1px solid var(--lw-line); border-left: 4px solid var(--lw-accent); }
.lwk-sowhat .lwk-eyebrow { color: var(--lw-accent); }
.lwk-sowhat h2 { font: 800 19px/1.25 var(--lw-font); color: var(--lw-heading); margin: 6px 0 0; }
.lwk-actions { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.lwk-action { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--lw-tint); }
.lwk-action b { display: block; font-size: 14.5px; color: var(--lw-heading); }
.lwk-action p { margin: 3px 0 0; font-size: 13.5px; color: var(--lw-ink); }
.lwk-action small, .lwk-goal small { display: block; margin-top: 6px; font-size: 12px; color: var(--lw-muted); }
/* When: this week (strongest), next 30 days, up to 90 days (quietest). */
.lwk-hchip { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--lw-info); color: var(--lw-ink); font-size: 10.5px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; white-space: nowrap; }
.lwk-hchip.week { background: var(--lw-primary); color: var(--lw-on-primary); }
.lwk-hchip.quarter { background: transparent; border: 1px solid var(--lw-ring); color: var(--lw-muted); }
.lwk-goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; margin-top: 18px; }
.lwk-goal { display: flex; flex-direction: column; padding: 16px 18px 14px; border-radius: 14px; background: var(--lw-surface); border: 1px solid var(--lw-line); }
.lwk-goal .head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lwk-goal .due { font-size: 12px; font-weight: 700; color: var(--lw-muted); }
.lwk-goal.late .due { color: var(--lw-signal); }
.lwk-goal h3 { font: 800 16.5px/1.25 var(--lw-font); color: var(--lw-heading); margin: 10px 0 0; }
.lwk-goal p { margin: 6px 0 0; font-size: 13.5px; color: var(--lw-ink); }
.lwk-goal .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; }
.lwk-goal.closed { opacity: .82; }

/* ------------------------------------------------------------------ accordion (use <details class="lwk-acc"> or .lwk-acc with .open) */
.lwk-acc { margin-top: 12px; border: 1px solid var(--lw-line); border-radius: 12px; background: var(--lw-surface); }
.lwk-acc > summary, .lwk-acc-h { display: flex; align-items: center; gap: 12px; padding: 15px 18px; cursor: pointer; list-style: none; border-radius: 12px;
  background: transparent; border: 0; width: 100%; text-align: left; color: var(--lw-ink); font-family: var(--lw-font); }
.lwk-acc > summary::-webkit-details-marker { display: none; }
.lwk-acc > summary::after, .lwk-acc-h::after { content: ""; flex: none; width: 9px; height: 9px; margin-left: auto; border-right: 2px solid var(--lw-muted);
  border-bottom: 2px solid var(--lw-muted); transform: rotate(45deg); transition: transform .15s; }
.lwk-acc[open] > summary::after, .lwk-acc.open > .lwk-acc-h::after { transform: rotate(-135deg); }
.lwk-acc-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lwk-acc-t small { font-size: 10.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--lw-muted); }
.lwk-acc-t b { font: 800 16.5px/1.25 var(--lw-font); color: var(--lw-heading); }
.lwk-acc-b { padding: 2px 18px 18px; }

/* ------------------------------------------------------------------ drill-in drawer, pop-up, toast */
.lwk-drawer { position: fixed; inset: 0; top: var(--lw-top-offset, 0px); z-index: 50; }
.lwk-drawer .scrim { position: absolute; inset: 0; background: rgba(3, 12, 18, .6); }
.lwk-drawer .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 94vw); overflow: auto; padding: 22px 24px 28px; background: var(--lw-surface);
  border-left: 1px solid var(--lw-line); box-shadow: var(--lw-shadow); color: var(--lw-ink); font-family: var(--lw-font); animation: lwk-in .18s ease-out; }
@keyframes lwk-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.lwk-drawer .close { position: sticky; top: 0; float: right; z-index: 2; width: 34px; height: 34px; margin: -4px -6px 0 12px; border-radius: 8px; border: 1px solid var(--lw-line);
  background: var(--lw-surface); color: var(--lw-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lwk-drawer h2 { font: 800 21px/1.2 var(--lw-font); color: var(--lw-heading); margin: 8px 40px 0 0; }
.lwk-drawer p { font-size: 14.5px; margin: 12px 0 0; }
.lwk-drawer h4 { margin: 20px 0 0; font-size: 10.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--lw-muted); }
.lwk-drawer .lwk-action { grid-template-columns: minmax(0, 1fr); }
.lwk-drawer .lwk-action .lwk-hchip, .lwk-drawer .lwk-action .lwk-btn { justify-self: start; }
.lwk-list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.lwk-list li { padding: 9px 12px; border-radius: 8px; background: var(--lw-tint); font-size: 13.5px; }
.lwk-pop { position: fixed; z-index: 60; min-width: 220px; max-width: 280px; padding: 14px; border-radius: 12px; background: var(--lw-surface); color: var(--lw-ink);
  border: 1px solid var(--lw-line); box-shadow: var(--lw-shadow); font: 500 13.5px/1.45 var(--lw-font); }
.lwk-pop b { display: block; font-size: 15px; font-weight: 800; }
.lwk-pop p { margin: 6px 0 0; color: var(--lw-muted); }
.lwk-pop .lwk-btn { width: 100%; margin-top: 12px; }
.lwk-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 70; max-width: min(520px, 90vw); padding: 11px 16px; border-radius: 10px;
  background: var(--lw-surface-2); border: 1px solid var(--lw-ring); color: var(--lw-ink); font: 600 13.5px/1.4 var(--lw-font); box-shadow: var(--lw-shadow); }

/* ------------------------------------------------------------------ the first screen: one thing to do */
.lwk-start { display: flex; justify-content: center; padding-top: clamp(8px, 5vh, 48px); }
.lwk-start > div { width: 100%; max-width: 620px; }
.lwk-start h1 { font: 800 clamp(28px, 4vw, 38px)/1.08 var(--lw-font); color: var(--lw-heading); margin: 10px 0 0; }
.lwk-bigaction { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; margin-top: 18px; padding: 30px 18px; border-radius: 14px; cursor: pointer;
  border: 1.5px dashed var(--lw-ring); background: var(--lw-info); color: var(--lw-ink); font-family: var(--lw-font); text-align: center; transition: border-color .12s; }
.lwk-bigaction:hover { border-color: var(--lw-accent); }
.lwk-bigaction .icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--lw-primary); color: #fff; }
.lwk-bigaction b { font-size: 16px; color: var(--lw-heading); margin-top: 6px; }
.lwk-bigaction small { color: var(--lw-muted); font-size: 13px; }
.lwk-progress { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.lwk-progress li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--lw-muted); }
.lwk-progress li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--lw-ring); }
.lwk-progress li.now { color: var(--lw-ink); }
.lwk-progress li.now::before { border-color: var(--lw-accent); border-top-color: transparent; animation: lwk-spin .7s linear infinite; }
.lwk-progress li.done { color: var(--lw-ink); }
.lwk-progress li.done::before { border-color: var(--lw-good); background: var(--lw-good); box-shadow: inset 0 0 0 3px var(--lw-bg); }
@keyframes lwk-spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ focus, narrow screens, print */
.lwk-railitem:focus-visible, .lwk-btn:focus-visible, .lwk-link:focus-visible, .lwk-barbtn:focus-visible, .lwk-acct:focus-visible, .lwk-coins:focus-visible,
.lwk-seg button:focus-visible, .lwk-acc > summary:focus-visible, .lwk-acc-h:focus-visible, .lwk-tip:focus-visible, .lwk-bigaction:focus-visible {
  outline: 2px solid var(--lw-accent); outline-offset: 2px; }
@media (max-width: 860px) {
  .lwk-app { grid-template-columns: minmax(0, 1fr); }
  .lwk-rail { position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 30; height: auto; flex-direction: row; padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    border-right: 0; border-top: 1px solid var(--lw-line); }
  .lwk-rail .lwk-brand { display: none; }
  .lwk-railnav { flex-direction: row; flex: 1; gap: 0; }
  .lwk-railitem { flex: 1; flex-direction: column; gap: 3px; padding: 6px 2px; font-size: 10px; text-align: center; line-height: 1.15; }
  .lwk-railitem .lwk-newdot, .lwk-railitem .lwk-count { position: absolute; margin: 0; top: 4px; right: 18%; }
  .lwk-appbar .lwk-brand { display: flex; }
  .lwk-view { padding-bottom: 104px; }
  .lwk-acct > :not(.lwk-avatar) { display: none; }
  .lwk-toast { bottom: 92px; }
}
@media (max-width: 620px) {
  .lwk-appbar { gap: 8px; padding-inline: 12px; }
  .lwk-appbar .lwk-brand { display: none; }
  .lwk-app.norail .lwk-appbar .lwk-brand { display: flex; }
  .lwk-action { grid-template-columns: minmax(0, 1fr); }
  .lwk-action .lwk-hchip, .lwk-action .lwk-btn { justify-self: start; }
  .lwk-grid { grid-template-columns: minmax(0, 1fr); }
}
@media print { .lwk-rail, .lwk-appbar, .lwk-drawer, .lwk-toast { display: none !important; } .lwk-app { display: block; } }

/* ------------------------------------------------------------------ the top row never scrolls sideways */
.lwk-stage { overflow-x: clip; }
.lwk-appbar .lwk-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lwk-appbar .lwk-spacer { flex: 1 1 0; min-width: 0; }
.lwk-appbar > * { flex-shrink: 0; }
.lwk-appbar > .lwk-title, .lwk-appbar > .lwk-spacer { flex-shrink: 1; }
@media (max-width: 620px) {
  .lwk-acct { padding: 0 6px; gap: 0; }
  .lwk-acct > :not(.lwk-avatar) { display: none; }
  .lwk-coins { padding: 0 9px; }
}
