/* My Smart Rental – Groundwork layout (same structure and sizes as the Groundwork / Lumen template):
   48px app bar · 264px side navigation with collapsible sections · 44px breadcrumb strip · sign-in and registration pages.
   Loaded last. Colours only through the tokens of theme.css / brand.css (brand colours stay in branding.json). */

/* layout sizes of the template; every colour (neutrals, app bar, brand) comes from theme.css + /brand.css */
:root { --radius-sm: 6px; --radius: 8px; --radius-lg: 12px; --sidebar-w: 272px; }
body { background: var(--bg); }

/* ---------- app bar (light surface in the light theme, deep surface in dark – every colour from the --appbar-* tokens) ---------- */
.gw { min-height: 100vh; }
.appbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; height: 48px; padding: 0 16px;
  background: var(--appbar); border-bottom: 1px solid var(--appbar-line); box-shadow: var(--appbar-shadow); color: var(--appbar-text); font-size: 13px; }
.appbar-logo { display: inline-flex; align-items: center; flex: none; color: var(--appbar-strong); border-radius: 6px; }
.appbar-logo:hover { text-decoration: none; }
.appbar-logo:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.appbar-plan { flex: none; padding: 2px 8px; border-radius: 4px; background: var(--appbar-plan-bg); color: var(--appbar-plan-fg); font-size: 11px; font-weight: 600;
  letter-spacing: .06em; line-height: 17px; text-transform: uppercase; white-space: nowrap; }
.appbar-plan.is-trial { background: var(--appbar-trial-bg); color: var(--appbar-trial-fg); }
.appbar-search { display: flex; align-items: center; gap: 8px; flex: 0 1 467px; min-width: 0; height: 32px; padding: 0 6px 0 12px;
  border: 1px solid var(--appbar-field-line); border-radius: 8px; background: var(--appbar-field); color: var(--appbar-muted); font: inherit; font-size: 13px; cursor: pointer; text-align: left;
  transition: border-color .12s, background-color .12s; }
.appbar-search:hover { border-color: var(--input-border-hover); background: var(--appbar-field-hover); color: var(--appbar-text); }
.appbar-search .icon { width: 16px; height: 16px; flex: none; }
.appbar-search .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appbar-search kbd { flex: none; padding: 1px 5px; border: 1px solid var(--appbar-field-line); border-radius: 4px; font: 500 11px/15px var(--font); color: var(--appbar-muted); background: var(--appbar); }
.appbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.appbar-right .dropdown { position: relative; }
.appbar-icon { position: relative; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--appbar-text); cursor: pointer; }
.appbar-icon .icon { width: 18px; height: 18px; stroke: currentColor; }
.appbar-icon:hover, .appbar-icon[aria-expanded="true"] { background: var(--appbar-hover); color: var(--appbar-strong); text-decoration: none; }
.appbar-icon:focus-visible, .appbar-user:focus-visible, .appbar-search:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.appbar-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--appbar-dot); box-shadow: 0 0 0 2px var(--appbar); }
.appbar-burger, .appbar-search-btn { display: none; }
.appbar-user { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; margin-left: 4px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; }
.appbar-user:hover .appbar-avatar, .appbar-user[aria-expanded="true"] .appbar-avatar { box-shadow: 0 0 0 2px var(--appbar), 0 0 0 4px var(--appbar-field-line); }
.appbar-avatar { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--appbar-avatar-bg); color: var(--appbar-avatar-fg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--appbar-avatar-fg) 18%, transparent); font-size: 10.6px; font-weight: 650; letter-spacing: .02em; }
.appbar-avatar[data-status="active"]::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 8.4px; height: 8.4px; box-sizing: border-box;
  border: 2px solid var(--appbar); border-radius: 50%; background: var(--ok-dot); }
.dd-menu .appbar-avatar[data-status="active"]::after { border-color: var(--surface); }
.appbar-avatar--lg { width: 40px; height: 40px; font-size: 14px; flex: none; }
.appbar-avatar--lg::after { width: 11px !important; height: 11px !important; }

/* profile menu (theme + language segments) */
.dd-menu.gw-menu { padding: 6px; }
.gw-user { display: flex; align-items: center; gap: 12px; padding: 4px 2px; }
.gw-user > span:last-child { display: grid; min-width: 0; }
.gw-user b { font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gw-user small { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gw-active { display: flex; align-items: center; gap: 6px; color: var(--success) !important; font-weight: 500; }
.gw-active i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok-dot); }
.gw-seg-wrap { display: grid; gap: 6px; }
.gw-seg-lbl { font-size: 12px; font-weight: 500; color: var(--text-3); }
.gw-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 2px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }
.gw-seg--lang { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dd-menu .gw-seg button { justify-content: center; gap: 6px; width: auto; height: 28px; padding: 0 6px; border: 1px solid transparent; border-radius: 6px; color: var(--text-2); font-size: 12.5px; }
.dd-menu .gw-seg button:hover { background: transparent; color: var(--text); }
.dd-menu .gw-seg button[aria-pressed="true"] { background: var(--surface); border-color: var(--brand); color: var(--primary); font-weight: 600; box-shadow: var(--shadow-sm); }
.gw-seg .icon { width: 14px; height: 14px; }
.gw-seg .flag { width: 18px; height: 13px; border-radius: 2px; }
.gw-empty { display: grid; justify-items: center; gap: 4px; padding: 18px 10px 20px; text-align: center; color: var(--text-3); font-size: 13px; }
.gw-empty .icon { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--primary-soft); stroke: var(--primary); }
.gw-empty b { color: var(--text); }

/* ---------- side navigation (264px): pinned company card · own scroll area (sections) · pinned collapse footer ----------
   The nav stays under the app bar at full viewport height (sticky; off-canvas fixed on ≤ 960 px) – only its middle part scrolls. */
.gw { --top-h: 48px; --nav-text: var(--text-2); --nav-icon: var(--text-3); }
.gw-shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: calc(100vh - var(--top-h)); }
.gw-shell { transition: grid-template-columns .2s ease; }
.sidenav { position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); height: calc(100dvh - var(--top-h)); display: flex; flex-direction: column;
  overflow: hidden; padding: 0; background: var(--surface); border-right: 1px solid var(--border); font-size: 14px; }
.gw-navhead { flex: none; padding: 12px 10px 6px; }
.gw-navscroll { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 2px 10px 14px;
  scrollbar-width: thin; scrollbar-color: transparent transparent; transition: scrollbar-color var(--dur-3) var(--ease-out); }
/* scrollbar only while the pointer is over the nav, it scrolls (.is-scrolling from app.js) or a nav item has keyboard focus – thin, themed */
.gw-navscroll:hover, .gw-navscroll.is-scrolling, .gw-navscroll:focus-within { scrollbar-color: var(--scroll-thumb) transparent; }
.gw-navscroll::-webkit-scrollbar-thumb { background-color: transparent; }
.gw-navscroll:hover::-webkit-scrollbar-thumb, .gw-navscroll.is-scrolling::-webkit-scrollbar-thumb { background-color: var(--scroll-thumb); }
.gw-navscroll > details, .gw-navscroll > .gw-trial { flex: none; }
.gw-company { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px 8px 8px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color var(--dur-1), background-color var(--dur-1); }
button.gw-company:hover { border-color: var(--border-strong); background: var(--surface-2); }
button.gw-company:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.gw-company > .icon { color: var(--text-3); }
.gw-company img, .gw-company__mark { flex: none; width: 32px; height: 32px; border-radius: 8px; object-fit: contain; }
.gw-company__mark { display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.gw-company__txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.gw-company__txt b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 13.5px; font-weight: 600; line-height: 18px; overflow: hidden; overflow-wrap: anywhere; }   /* long company names: two lines, then … */
.gw-company__txt small { font-size: 12px; line-height: 16px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* category headers: title case (no capitals), semi-bold, muted; only the chevron reacts on hover – no background behind the row */
.sidenav summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 32px; margin-top: 10px; padding: 0 8px 0 12px; border-radius: 6px;
  list-style: none; font-size: 12.5px; font-weight: 600; line-height: 16px; letter-spacing: 0; text-transform: none; color: var(--text-3); cursor: pointer; user-select: none; }
.gw-navscroll > details:first-of-type > summary { margin-top: 0; }
.sidenav summary::-webkit-details-marker { display: none; }
.nav-sec { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-chev { flex: none; width: 16px !important; height: 16px !important; color: var(--text-3); transition: transform var(--dur-2) var(--ease-snappy), color var(--dur-1); }
.sidenav details[open] > summary .nav-chev { transform: rotate(90deg); }
.sidenav summary:hover .nav-chev { color: var(--primary); transform: scale(1.2); }
.sidenav details[open] > summary:hover .nav-chev { transform: rotate(90deg) scale(1.2); }
/* items: 14.5 px, comfortable 36 px rows, icons optically centred on the text.
   Hover = very subtle neutral tint + darker text; active = soft brand-tinted pill, brand icon + text, semi-bold, no bar (dark: plus a hairline ring so the pill reads on the deep surface; the liquid highlight
   in motion.css paints the same pill and slides between the items). Tokens below, dark values in [data-mode="dark"]. */
.gw { --nav-hover-bg: color-mix(in srgb, var(--text) 5%, transparent); --nav-active-bg: color-mix(in srgb, var(--primary) 9%, transparent);
  --nav-active-fg: var(--brand-600); --nav-active-ring: none; --nav-ease: var(--ease-out); }
[data-mode="dark"] .gw { --nav-hover-bg: rgba(255, 255, 255, .05); --nav-active-bg: color-mix(in srgb, var(--brand-400) 22%, transparent); --nav-active-fg: var(--primary);
  --nav-active-ring: inset 0 0 0 1px color-mix(in srgb, var(--brand-400) 24%, transparent); }
.nav-link { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 10px 0 12px; border-radius: 8px; color: var(--nav-text); font-size: 14.5px; font-weight: 500;
  line-height: 20px; letter-spacing: -.003em; white-space: nowrap; transition: background-color var(--dur-2) var(--nav-ease), color var(--dur-2) var(--nav-ease), box-shadow var(--dur-2) var(--nav-ease); }
.nav-link + .nav-link { margin-top: 1px; }
.nav-link .icon { flex: none; width: 18px; height: 18px; stroke: var(--nav-icon); transition: stroke var(--dur-2) var(--nav-ease); }
.nav-link > span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav-link:hover { background: var(--nav-hover-bg); color: var(--text); text-decoration: none; }
.nav-link:hover .icon { stroke: var(--text-2); }
.nav-link[aria-current="page"], .nav-link[aria-current="page"]:hover { background: var(--nav-active-bg); box-shadow: var(--nav-active-ring); color: var(--nav-active-fg); font-weight: 600; }
.nav-link[aria-current="page"] .icon { stroke: var(--nav-active-fg); }
.nav-count { flex: none; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 600; line-height: 20px;
  text-align: center; font-variant-numeric: tabular-nums; }
.nav-count.info { background: var(--surface-3); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--border); }
.nav-link[aria-current="page"] .nav-count.info { background: var(--surface); }
.sidenav summary:focus-visible, .nav-link:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.gw-trial { display: grid; gap: 4px; margin: 16px 2px 2px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); font-size: 12.5px; color: var(--text-3); }
.gw-trial b { color: var(--text); font-size: 13px; }
.gw-trial .btn { margin-top: 6px; }
.gw-backdrop { display: none; }
/* collapse / expand (desktop): pinned at the bottom of the side navigation */
.gw-navfoot { flex: none; padding: 8px 10px 10px; background: var(--surface); border-top: 1px solid var(--border); }
.gw-collapse { display: flex; align-items: center; gap: 12px; width: 100%; height: 34px; padding: 0 10px 0 12px; border: 0; border-radius: 8px; background: none; color: var(--text-3);
  font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.gw-collapse:hover { background: var(--hover); color: var(--text); }
.gw-collapse:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.gw-collapse > span { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; }
.gw-collapse kbd { padding: 0 5px; border: 1px solid var(--border); border-radius: 4px; font: 500 10.5px/16px var(--font); color: var(--text-3); }
.gw-collapse .icon { width: 18px; height: 18px; transition: transform .2s; }
@media (min-width: 961px) {
  /* collapsed = icon rail: labels visually hidden (still the accessible name), section titles become dividers, badges become small counters */
  [data-nav="rail"] { --sidebar-w: 64px; }
  [data-nav="rail"] .gw-navhead { padding: 12px 8px 6px; }
  [data-nav="rail"] .gw-navscroll { padding: 2px 8px 12px; scrollbar-width: none; }
  [data-nav="rail"] .gw-navfoot { padding: 8px 8px 10px; }
  [data-nav="rail"] .gw-company { justify-content: center; padding: 6px 0; }
  [data-nav="rail"] .gw-company > .icon { display: none; }
  [data-nav="rail"] .gw-company__txt, [data-nav="rail"] .nav-link > span:first-of-type, [data-nav="rail"] .gw-collapse > span, [data-nav="rail"] .gw-collapse kbd {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  [data-nav="rail"] .sidenav summary { height: 1px; margin: 8px 10px; padding: 0; background: var(--border); font-size: 0; overflow: hidden; pointer-events: none; }
  [data-nav="rail"] .gw-navscroll > details:first-of-type > summary { margin-top: 4px; }
  [data-nav="rail"] .sidenav summary * { display: none; }
  [data-nav="rail"] .nav-link { justify-content: center; gap: 0; height: 38px; padding: 0; }
  [data-nav="rail"] .nav-count { position: absolute; top: 2px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; line-height: 16px; box-shadow: 0 0 0 2px var(--surface); }
  [data-nav="rail"] .nav-count.info { background: var(--text-3); color: var(--surface); }
  [data-nav="rail"] .nav-link[aria-current="page"] .nav-count.info { background: var(--nav-active-fg); color: var(--surface); }   /* the active item's counter stays readable */
  [data-nav="rail"] .gw-trial { display: none; }
  [data-nav="rail"] .gw-collapse { justify-content: center; padding: 0; }
  [data-nav="rail"] .gw-collapse .icon { transform: rotate(180deg); }
}

/* ---------- "Ansicht als Rolle" banner (sticky above the app bar; --top-h moves the app bar + side navigation down) ---------- */
.gw[data-viewas] { --top-h: 82px; }
.gw-viewas { position: sticky; top: 0; z-index: 31; display: flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 12px;
  background: var(--viewas-bg); color: var(--viewas-fg); font-size: 13px; line-height: 18px; white-space: nowrap; }
.gw-viewas .icon { flex: none; stroke: currentColor; }
.gw-viewas__txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gw-viewas__txt b { font-weight: 650; }
.gw-viewas__sep { opacity: .6; }
.gw-viewas__back { display: inline-flex; align-items: center; gap: 4px; flex: none; height: 26px; padding: 0 10px 0 6px; border: 1px solid color-mix(in srgb, var(--viewas-fg) 35%, transparent);
  border-radius: 999px; background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; transition: background-color var(--dur-1); }
.gw-viewas__back:hover { background: color-mix(in srgb, var(--viewas-fg) 14%, transparent); }
.gw-viewas__back:focus-visible { outline: 2px solid var(--viewas-fg); outline-offset: 1px; }
.gw[data-viewas] .appbar { top: 34px; }

/* user menu: "Ansicht als Rolle" drill-in panel; app bar theme menu */
.dd-menu [hidden] { display: none !important; }   /* drill-in panel: .dd-menu button { display: flex } must not beat [hidden] */
.dd-menu .head:has(> .gw-sub-open), .dd-menu .head:has(> .gw-sub) { padding: 0; }
.dd-menu .gw-sub-open > span { flex: 1; min-width: 0; }
.gw-sub-open > .icon:first-child, .gw-sub [role="group"] > button > .icon:first-child { color: var(--text-3); }
.gw-sub-cur { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--primary); font-size: 12px; font-weight: 600; }
.gw-sub-chev { width: 16px !important; height: 16px !important; color: var(--text-3); }
.dd-menu .gw-sub-back { font-weight: 600; }
.gw-sub-back .icon { color: var(--text-3); }
.gw-sub-hint { margin: 2px 10px 6px; font-size: 12px; line-height: 1.45; color: var(--text-3); }
.gw-sub [role="group"] { display: grid; gap: 1px; }
.dd-menu .gw-sub [role="group"] > button > span { flex: 1; min-width: 0; }
.dd-menu .gw-sub [aria-checked="true"] { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.dd-menu .gw-sub [aria-checked="true"] > .icon { color: var(--primary); }
.gw-menu--sub .gw-sub { animation: m-sub-in var(--dur-2) var(--ease-gentle); }
@keyframes m-sub-in { from { opacity: 0; transform: translateX(10px); } }
.gw-menu-sub { margin-left: 2px; color: var(--text-3); font-size: 12px; }
.gw-theme-menu .head { padding: 6px 10px 4px; }
.dd-menu [role="menuitemradio"][aria-checked="true"] { font-weight: 600; }
.appbar-icon[data-theme-btn] .icon { animation: m-pop var(--dur-3) var(--ease-snappy); }

/* ---------- workspace + breadcrumb strip ---------- */
.workspace { min-width: 0; display: flex; flex-direction: column; }
.strip { display: flex; align-items: center; gap: 12px; height: 44px; flex: none; padding: 0 20px; background: var(--surface); border-bottom: 1px solid var(--border); font-size: 14px; }
.strip > nav { flex: 1; min-width: 0; overflow: hidden; }
.crumbs { display: flex; align-items: center; gap: 2px; min-width: 0; margin: 0; padding: 0; list-style: none; color: var(--text-2); }
.crumbs li { display: flex; align-items: center; min-width: 0; white-space: nowrap; }
.crumbs li + li::before { content: ""; width: 14px; height: 14px; margin: 0 6px; flex: none; background: currentColor; opacity: .45;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
.crumbs a { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; }
.crumbs a:hover { color: var(--primary); }
.crumbs [aria-current] { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; }
.strip-pills { display: flex; gap: 8px; flex: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.pill .icon { width: 14px; height: 14px; }
.pill--dev { background: var(--warning-bg); border-color: color-mix(in srgb, var(--warning) 35%, transparent); color: var(--warning); }
.pill--dev .icon, .pill--demo .icon, .pill--support .icon { stroke: currentColor; }
.pill--demo { background: var(--accent-50); border-color: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--accent-text); }
.pill--support { background: var(--info-bg); border-color: color-mix(in srgb, var(--info) 35%, transparent); color: var(--info); }
.content { padding: 20px 20px 64px; max-width: 1480px; margin: 0; }

/* ---------- tablet / phone: navigation as a drawer (like Lumen) ---------- */
@media (max-width: 960px) {
  .gw-navfoot { display: none; }
  .appbar-burger { display: grid; }
  .appbar-search kbd { display: none; }
  .gw-shell { grid-template-columns: minmax(0, 1fr); }
  .sidenav { position: fixed; top: var(--top-h); left: 0; bottom: 0; z-index: 25; width: min(290px, 86vw); height: auto; transform: translateX(-100%); transition: transform .2s ease, visibility 0s linear .2s; visibility: hidden; }
  body.nav-open .sidenav { transform: none; visibility: visible; transition: transform .2s ease; box-shadow: var(--pop-shadow); }   /* closed: no shadow bleeding into the left edge, not focusable */
  body.nav-open .gw-backdrop { display: block; position: fixed; inset: var(--top-h) 0 0; z-index: 24; background: var(--overlay); }
  .nav-link { height: 40px; }   /* touch targets in the off-canvas menu */
  body.nav-open::after { content: none; }
}
@media (max-width: 700px) {
  .appbar { gap: 10px; padding: 0 12px; }
  .appbar-plan, .appbar-search { display: none; }
  .appbar-search-btn { display: grid; }
  .appbar-right { gap: 6px; }
  .strip { padding: 0 14px; }
  .strip-pills .pill span { display: none; }
  .strip-pills .pill { padding: 0 8px; }
  .crumbs li:not(:nth-last-child(-n+2)) { display: none; }
  .crumbs li:nth-last-child(2):not(:first-child)::before { display: none; }
  .content { padding: 16px 14px 72px; }
  .gw-viewas { justify-content: space-between; gap: 6px; padding: 0 8px 0 12px; }
  .gw-viewas__pre, .gw-viewas__sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .gw-viewas__back .lg { display: none; }
}
@media (min-width: 701px) { .gw-viewas__back .sm { display: none; } }
@media (max-width: 480px) { .appbar-help { display: none; } }   /* help stays in the user menu */
@media (prefers-reduced-motion: reduce) { .sidenav, .nav-chev, .gw-shell, .gw-collapse .icon { transition: none; } .appbar-icon[data-theme-btn] .icon, .gw-menu--sub .gw-sub { animation: none; } }

/* =====================================================================
   Sign-in + registration (Groundwork layout): gradient panel left, form right
   ===================================================================== */
.gw-auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; background: var(--surface); }
.gw-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 48px; color: #fff;
  background: radial-gradient(640px 420px at 100% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%), var(--logo-gradient); }   /* logo tile gradient + faint key-bow glow */
.gw-hero::before, .gw-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.gw-hero::before { width: 780px; height: 780px; right: -390px; bottom: -390px; background: rgba(255, 255, 255, .04); border: 80px solid rgba(255, 255, 255, .05); }
.gw-hero::after { width: 520px; height: 520px; right: -260px; bottom: -260px; border: 60px solid rgba(255, 255, 255, .05); }
.gw-hero > * { position: relative; }
.gw-hero__logo, .gw-mlogo { display: inline-flex; align-items: center; align-self: flex-start; }
.gw-hero__logo:hover, .gw-mlogo:hover { text-decoration: none; }
.gw-hero__logo:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 6px; }
.gw-hero__body { max-width: 520px; }
.gw-hero h1 { margin: 0 0 14px; font-size: 30px; font-weight: 600; line-height: 1.17; letter-spacing: -.025em; white-space: pre-line; color: #fff; }
.gw-lead { margin: 0; font-size: 16px; line-height: 1.65; opacity: .92; max-width: 480px; }
.gw-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); font-size: 12.5px; font-weight: 600; }
.gw-kicker .icon, .gw-hero .icon { stroke: currentColor; }
.gw-hcard { max-width: 460px; margin: 0; padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(6px); display: grid; gap: 10px; font-size: 14px; }
.gw-hcard__h, .gw-hcard__r, .gw-hcard__f { display: flex; align-items: center; gap: 10px; }
.gw-hcard__r { justify-content: space-between; opacity: .92; } .gw-hcard__r span { display: inline-flex; align-items: center; gap: 8px; }
.gw-hcard__dot { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .25); }
.gw-hcard__pill { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: 12px; font-weight: 600; }
.gw-hcard__bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .18); overflow: hidden; } .gw-hcard__bar i { display: block; width: 72%; height: 100%; background: #fff; border-radius: inherit; }
.gw-hcard__f { font-size: 13px; opacity: .9; }
.gw-facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0; padding: 0; list-style: none; }
.gw-facts b { display: block; font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.gw-facts span { display: block; font-size: 13px; opacity: .78; }
.gw-steps { display: grid; gap: 18px; margin: 30px 0 0; padding: 0; list-style: none; }
.gw-steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; }
.gw-steps li > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); font-weight: 600; }
.gw-steps b { display: block; font-size: 16px; } .gw-steps small { display: block; margin-top: 2px; font-size: 14px; opacity: .8; }
.gw-included { max-width: 560px; padding: 20px 22px; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.gw-included h2 { margin: 0 0 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .85; color: #fff; }
.gw-included ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin: 0; padding: 0; list-style: none; }
.gw-included li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; }
.gw-included__ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #fff; }
.gw-included__ic .icon { width: 17px; height: 17px; stroke: var(--brand) !important; }
.gw-included b { display: block; font-size: 14px; line-height: 1.35; } .gw-included small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; opacity: .78; }

.gw-panel { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 80px 24px 24px; background: var(--surface); }
.gw-langbox { position: absolute; top: 20px; right: 24px; }
.gw-lang { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; box-shadow: var(--shadow-sm); }
.gw-lang:hover { border-color: var(--border-strong); } .gw-lang .flag { width: 22px; height: 15px; border-radius: 3px; }
.gw-mlogo { display: none; }
.gw-box { width: min(440px, 100%); display: grid; gap: 16px; }
.gw-box--wide { width: min(600px, 100%); }
.gw-box h2 { margin: 0; font-size: 26px; font-weight: 650; letter-spacing: -.02em; color: var(--text); }
.gw-sub { margin: -8px 0 4px; color: var(--text-2); font-size: 14.5px; }
.gw-boxicon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--primary-soft); }
.gw-boxicon .icon { width: 24px; height: 24px; stroke: var(--primary); }
.gw-form { display: grid; gap: 16px; }
.gw-form .field { display: grid; gap: 6px; margin: 0; }
.gw-form label { font-size: 14px; font-weight: 500; color: var(--text); }
.gw-form .input { height: 44px; font-size: 15px; }
.gw-field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.gw-field-head a { font-size: 14px; font-weight: 500; }
.gw-pw { position: relative; } .gw-pw .input { padding-right: 44px; }
.gw-pw__eye, .gw-pw__ok { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 6px; background: none; color: var(--text-3); cursor: pointer; }
.gw-pw__eye:hover { background: var(--hover); color: var(--text); }
.gw-pw__ok { opacity: 0; cursor: default; color: var(--success); transition: opacity .15s; } .gw-pw__ok .icon { stroke: currentColor; }
.gw-pw.is-match .input { border-color: color-mix(in srgb, var(--success) 60%, transparent); } .gw-pw.is-match .gw-pw__ok { opacity: 1; }
.gw-pw.is-nomatch .input { border-color: var(--danger); }
.gw-code { font-size: 24px !important; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.gw-demo { height: 44px; background: var(--primary-soft); border-color: color-mix(in srgb, var(--brand) 22%, transparent); color: var(--primary); font-weight: 500; }
.gw-demo:hover { background: color-mix(in srgb, var(--brand) 14%, var(--surface)); }
.gw-demo .icon { stroke: currentColor; }
.gw-switchline { margin: 0; text-align: center; color: var(--text-2); font-size: 14.5px; } .gw-switchline a { font-weight: 600; }
.gw-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.gw-legal { margin: 8px 0 0; font-size: 12.5px; color: var(--text-3); } .gw-env { color: var(--warning); font-weight: 600; }

/* sign-in option: segmented switch with sliding pill + info cards (same as Groundwork) */
.gw-stay { margin: 0; padding: 0; border: 0; min-width: 0; }
.gw-stay legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--text); }
.gw-switch { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.gw-switch__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px; background: var(--surface);
  box-shadow: 0 1px 3px rgba(16, 24, 40, .1), 0 0 0 1px var(--brand); transition: transform .25s cubic-bezier(.3, .7, .4, 1); }
.gw-switch:has(input[value="year"]:checked) .gw-switch__thumb { transform: translateX(100%); }
.gw-switch__opt { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 6px 10px; border-radius: 9px;
  color: var(--text-3); font-size: 14px !important; font-weight: 500; line-height: 1.25; text-align: center; text-wrap: balance; cursor: pointer; transition: color .25s, background-color .25s; }
.gw-switch__opt:not(:has(input:checked)):hover { color: var(--primary); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.gw-switch__opt input { position: absolute; opacity: 0; pointer-events: none; }
.gw-switch__opt > .icon { flex: none; width: 16px; height: 16px; stroke: currentColor; }
.gw-switch__opt:has(input:checked) { color: var(--primary); font-weight: 600; }
.gw-switch__opt:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.gw-switch.is-switching .gw-switch__thumb { animation: gw-thumb-right .62s both; }
.gw-switch.is-switching[data-dir="left"] .gw-switch__thumb { animation-name: gw-thumb-left; }
.gw-switch.is-switching .gw-switch__opt:has(input:checked) .gw-switch__lbl,
.gw-switch.is-switching .gw-switch__opt:has(input:checked) > .icon { animation: gw-label-in .45s ease-out both; }
.gw-switch.is-switching[data-dir="left"] .gw-switch__opt:has(input:checked) .gw-switch__lbl,
.gw-switch.is-switching[data-dir="left"] .gw-switch__opt:has(input:checked) > .icon { --from: -4px; }
@keyframes gw-thumb-right { 0% { transform: translateX(0); animation-timing-function: cubic-bezier(.45, 0, .2, 1); } 62% { transform: translateX(101.8%); animation-timing-function: cubic-bezier(.4, 0, .4, 1); }
  84% { transform: translateX(99.5%); animation-timing-function: cubic-bezier(.4, 0, .4, 1); } 100% { transform: translateX(100%); } }
@keyframes gw-thumb-left { 0% { transform: translateX(100%); animation-timing-function: cubic-bezier(.45, 0, .2, 1); } 62% { transform: translateX(-1.8%); animation-timing-function: cubic-bezier(.4, 0, .4, 1); }
  84% { transform: translateX(.5%); animation-timing-function: cubic-bezier(.4, 0, .4, 1); } 100% { transform: translateX(0); } }
@keyframes gw-label-in { 0% { transform: translateX(var(--from, 4px)); opacity: .5; } 100% { transform: none; opacity: 1; } }
.gw-tip { position: absolute; bottom: calc(100% + 12px); left: -4px; z-index: 30; width: min(310px, calc(100vw - 40px)); padding: 14px 16px 15px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); box-shadow: var(--pop-shadow); color: var(--text-2); font-size: 13px; font-weight: 400; line-height: 1.45; text-align: left; text-wrap: pretty; pointer-events: none;
  opacity: 0; visibility: hidden; transform: translateY(6px) scale(.98); transition: opacity .18s ease, transform .22s cubic-bezier(.3, .7, .4, 1), visibility 0s linear .22s; }
.gw-switch__opt + .gw-switch__opt .gw-tip { left: auto; right: -4px; }
.gw-tip::after { content: ""; position: absolute; top: 100%; left: calc(25% + 2px); width: 12px; height: 12px; margin-top: -6px; background: var(--surface);
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); transform: rotate(45deg); }
.gw-switch__opt + .gw-switch__opt .gw-tip::after { left: auto; right: calc(25% + 2px); }
.gw-tip__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.gw-tip__head > span:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.gw-tip__ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 8px; background: var(--primary-soft); }
.gw-tip__ic .icon { width: 16px; height: 16px; stroke: var(--primary); }
.gw-tip b { color: var(--text); font-size: 14px; }
.gw-tip em { padding: 1px 8px; border-radius: 99px; background: var(--success-bg); color: var(--success); font-size: 11px; font-style: normal; font-weight: 600; }
.gw-tip__list { display: grid; gap: 6px; } .gw-tip__list span { position: relative; padding-left: 20px; }
.gw-tip__list span::before { content: ""; position: absolute; left: 3px; top: 5px; width: 8px; height: 4.5px; border-left: 1.6px solid var(--accent-600); border-bottom: 1.6px solid var(--accent-600); transform: rotate(-45deg); }
.gw-tip__list span:last-child { color: var(--text); font-weight: 500; }
@media (hover: hover) { .gw-switch__opt:hover .gw-tip { opacity: 1; visibility: visible; transform: none; transition-delay: .12s, .12s, 0s; } }
.gw-switch__opt:has(input:focus-visible) .gw-tip, .gw-switch__opt.show-tip .gw-tip { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

/* registration: progress, section cards, strength, plans, consent */
.gw-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--text-3); }
.gw-progress li { display: flex; align-items: center; gap: 8px; }
.gw-progress li + li::before { content: ""; width: 22px; height: 1px; background: var(--border-strong); }
.gw-progress span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border-strong); font-size: 12px; font-weight: 600; }
.gw-progress b { font-weight: 500; } .gw-progress .is-current { color: var(--primary); } .gw-progress .is-current span { background: var(--brand); border-color: var(--brand); color: #fff; } .gw-progress .is-current b { font-weight: 600; }
.gw-form--reg .form-section { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); min-width: 0; }
.gw-form--reg .form-section h3 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.gw-form--reg .form-section h3 .icon { width: 15px; height: 15px; stroke: var(--primary); }
.gw-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gw-strength { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-3); }
.gw-strength__bars { display: grid; grid-template-columns: repeat(4, 26px); gap: 5px; flex: none; } .gw-strength__bars i { height: 4px; border-radius: 99px; background: var(--border); }
.gw-strength[data-score="1"] i:nth-child(-n+1) { background: var(--danger); } .gw-strength[data-score="2"] i:nth-child(-n+2) { background: var(--warning); }
.gw-strength[data-score="3"] i:nth-child(-n+3) { background: var(--success); } .gw-strength[data-score="4"] i { background: var(--success); }
.gw-check { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 12px; font-size: 14px !important; font-weight: 400 !important; line-height: 1.5; cursor: pointer; }
.gw-check:has(input:checked) { border-color: var(--brand); background: var(--primary-soft); }
.gw-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand); flex: none; }

@media (max-width: 1199px) {
  .gw-auth--register { grid-template-columns: minmax(0, 1fr); }
  .gw-auth--register .gw-hero { padding: 28px 24px 32px; gap: 18px; }
  .gw-auth--register .gw-hero h1 { font-size: 26px; }
  .gw-auth--register .gw-steps, .gw-auth--register .gw-included, .gw-auth--register .gw-facts { display: none; }
  .gw-auth--register .gw-panel { padding: 72px 20px 24px; }
  .gw-auth--register .gw-langbox { top: 16px; right: 16px; }
}
@media (max-width: 900px) {
  .gw-auth { grid-template-columns: minmax(0, 1fr); }
  .gw-hero { padding: 28px 24px 32px; gap: 18px; }
  .gw-hero h1 { font-size: 26px; }
  .gw-hcard, .gw-facts, .gw-steps, .gw-included { display: none; }
  .gw-panel { padding: 72px 20px 24px; justify-content: flex-start; }
  .gw-langbox { top: 16px; right: 16px; }
}
@media (max-width: 600px) {
  .gw-grid2 { grid-template-columns: minmax(0, 1fr); }
  .gw-switch__opt { font-size: 13px !important; gap: 6px; padding: 6px; }
}
@media (prefers-reduced-motion: reduce) { .gw-switch__thumb { transition: none; } .gw-switch.is-switching * { animation: none !important; } .gw-tip { transition: opacity .1s, visibility 0s linear .1s; transform: none !important; } }
