/*
 * ultrawide. - site stylesheet. Plain CSS, no build step.
 *
 * Palette from the existing brand (dark navy, electric blue, cyan, white). Every text/background
 * pair used here is checked for WCAG AA contrast in tests/contrast.test.ts.
 * Signature: one typeface, two widths - headings use Archivo's expanded width (the "ultra wide"
 * idea made literal), body copy stays at normal width.
 */

/* Archivo variable font (SIL OFL), self-hosted. latin-ext covers Hungarian ő and ű. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------- tokens */
:root {
  --color-ink-950: #050a1e;
  --color-ink-900: #0a1230;
  --color-ink-800: #101b45;
  --color-ink-700: #1b2b66;
  --color-brand-500: #4340ff; /* official ultrawide primary - used to highlight "5G" */
  --color-electric-600: #1f6bff; /* electric blue end of the primary button */
  --color-electric-500: #2b66f8;
  --color-electric-400: #5b8cff;
  --color-electric-300: #8fb0ff;
  --color-signal-400: #22d3ee;
  --color-signal-300: #67e8f9;
  --color-mist-100: #eef3ff;
  --color-mist-300: #b9c6ec;
  --color-mist-400: #93a4d4;
  --color-edge-400: #6f83c4;
  --color-danger-300: #ff9aa8;
  --color-ok-300: #8bf0b8;
  --color-amber-300: #fcd34d;
  --color-white: #ffffff;

  --font-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-panel: 1.75rem;
  --radius-field: 0.9rem;
  --radius-pill: 9999px;
  --container: 72rem;
  --gutter: 1.25rem;
  --hairline: 1px solid rgb(255 255 255 / 0.1);
  color-scheme: dark;
}
@media (min-width: 640px) {
  :root {
    --gutter: 2rem;
  }
}

/* ---------------------------------------------------------------- base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background-color: var(--color-ink-950);
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-ink-950);
  color: var(--color-mist-100);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-stretch: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main {
  flex: 1 0 auto;
  outline: none;
}
h1,
h2,
h3 {
  margin: 0;
  color: var(--color-white);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
  /* Long Hungarian compounds ("rendezvényhelyszíneknek") must never widen the page on phones;
     wider screens never hyphenate a heading. */
  overflow-wrap: anywhere;
  hyphens: auto;
}
@media (min-width: 640px) {
  h1,
  h2,
  h3 {
    hyphens: manual;
    overflow-wrap: break-word;
  }
}
h1 {
  font-stretch: 122%;
}
h2 {
  font-stretch: 112%;
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
}
h3 {
  font-stretch: 105%;
  font-weight: 700;
  font-size: 1.25rem;
}
p,
ul,
ol,
dl,
dd {
  margin: 0;
}
a {
  color: inherit;
}
img,
svg {
  display: block;
  max-width: 100%;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
  color: var(--color-signal-300);
}
:focus-visible {
  outline: 3px solid var(--color-signal-300);
  outline-offset: 3px;
  border-radius: 0.5rem;
}
::selection {
  background: var(--color-electric-500);
  color: var(--color-white);
}

/* ---------------------------------------------------------------- utilities */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-ink-950);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}
.page-glow {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: -1;
  height: 42rem;
  pointer-events: none;
  background:
    radial-gradient(60rem 28rem at 72% -8%, rgb(43 102 248 / 0.38), transparent),
    radial-gradient(38rem 22rem at 8% 2%, rgb(34 211 238 / 0.16), transparent);
}
.lead {
  margin-top: 1.25rem;
  max-width: 58ch;
  font-size: 1.125rem;
  color: var(--color-mist-300);
}
.muted {
  color: var(--color-mist-400);
}
.narrow {
  max-width: 40rem;
}
.break {
  overflow-wrap: anywhere;
}
.nowrap {
  white-space: nowrap;
}
.eyebrow {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-signal-300);
}
.link {
  color: var(--color-signal-300);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.link:hover {
  color: var(--color-white);
}
.actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.actions-center {
  justify-content: center;
}
.stack-sm > * + * {
  margin-top: 0.75rem;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}
/* Primary: electric blue into the ultrawide purple (#4340FF), white text, blue and purple glow. */
.btn-primary {
  color: var(--color-white);
  background-color: var(--color-brand-500);
  background-image: linear-gradient(120deg, var(--color-electric-600), var(--color-brand-500));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.28),
    inset 0 0 0 1px rgb(255 255 255 / 0.16),
    0 10px 34px -10px rgb(34 140 255 / 0.8),
    0 8px 30px -14px rgb(67 64 255 / 0.9);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.34),
    inset 0 0 0 1px rgb(255 255 255 / 0.22),
    0 14px 44px -8px rgb(34 140 255 / 0.9),
    0 10px 36px -12px rgb(67 64 255 / 0.95);
}
.btn-secondary {
  color: var(--color-white);
  background-color: rgb(255 255 255 / 0.06);
  border-color: rgb(255 255 255 / 0.3);
}
.btn-secondary:hover {
  background-color: rgb(255 255 255 / 0.13);
}
.btn-ghost {
  /* transparent also on <button>, which otherwise gets the browser's grey button face */
  background-color: transparent;
  color: var(--color-mist-300);
}
.btn-ghost:hover {
  background-color: rgb(255 255 255 / 0.06);
  color: var(--color-white);
}
.btn-block {
  width: 100%;
}
.btn-compact {
  padding: 0.5rem 0.85rem;
}
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}
.icon-sm {
  width: 1rem;
  height: 1rem;
}

/* ================================================================ NAVBAR
 * Markup: src/views/components/navbar.ts. Sizes (heights, paddings, gaps) are unchanged from the
 * original design - only the surface is "glass", after the previous ultrawide.hu navbar.
 * Tune the look with the variables below. */
.site-header {
  /* glass surface of the bar */
  --nav-glass-base: rgb(8 12 40 / 0.55); /* dark base keeps text readable over any content */
  --nav-glass-tint: rgb(67 64 255 / 0.3); /* brand blue #4340FF */
  --nav-glass-tint-end: rgb(67 64 255 / 0.1);
  --nav-glass-blur: blur(40px); /* frosted; lower (e.g. 2px) for see-through, add saturate(180%) for a more vivid tint */
  --nav-panel-blur: blur(12px) saturate(180%); /* open mobile menu: stronger, it holds text to read */
  --nav-glass-edge: rgb(255 255 255 / 0.32);
  /* glass buttons */
  --glass-fill: rgb(255 255 255 / 0.07);
  --glass-fill-hover: rgb(255 255 255 / 0.15);
  --glass-rim: inset 2px 2px 1px 0 rgb(255 255 255 / 0.24), inset -2px -2px 2px 0 rgb(255 255 255 / 0.12);
  --glass-drop: 0 4px 8px 0 rgb(0 0 0 / 0.2), 0 6px 20px 0 rgb(0 0 0 / 0.2);
  /* springy hover (slight overshoot), as on the old site */
  --glass-spring: cubic-bezier(0.2, 0.9, 0.3, 1.5);
  --glass-hover-scale: 1.05;

  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0.75rem 0.75rem 0;
}
@media (min-width: 640px) {
  .site-header {
    padding-inline: 1.5rem;
  }
}
.nav-bar {
  position: relative;
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  border: 1px solid var(--nav-glass-edge);
  border-radius: var(--radius-pill);
}
/* The glass lives on a pseudo-element: an element with backdrop-filter stops its children from
   blurring what is behind the page, and the mobile menu panel (a child) needs its own blur. */
.nav-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.02) 55%),
    linear-gradient(120deg, var(--nav-glass-tint), var(--nav-glass-tint-end)),
    var(--nav-glass-base);
  -webkit-backdrop-filter: var(--nav-glass-blur);
  backdrop-filter: var(--nav-glass-blur);
  box-shadow:
    0 8px 32px rgb(31 38 135 / 0.35),
    inset 0 4px 20px rgb(255 255 255 / 0.07);
}
/* Light catching the rim of the glass. */
.nav-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 1px 1px 0 rgb(255 255 255 / 0.28),
    inset -10px -8px 0 -11px rgb(255 255 255 / 0.9),
    inset 0 -9px 0 -8px rgb(255 255 255 / 0.55);
  opacity: 0.6;
}
.brand {
  display: inline-flex;
  padding: 0.25rem 0;
  border-radius: var(--radius-pill);
  text-decoration: none;
}
.nav-list,
.nav-mobile-list,
.footer-list,
.perm-list {
  list-style: none;
  padding: 0;
}
.nav-desktop {
  display: none;
}
.nav-list {
  display: flex;
  gap: 0.25rem;
}
.nav-link {
  --ra: 1.33rem; /* corner radii; swapped on hover for the "liquid" wobble */
  --rb: 1.17rem;
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--ra) var(--rb) var(--ra) var(--rb);
  color: var(--color-mist-300);
  background-color: rgb(255 255 255 / 0.04);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.45); /* legible over content showing through the glass */
}
.nav-link:hover {
  color: var(--color-white);
  background-color: var(--glass-fill-hover);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.3),
    var(--glass-rim),
    0 4px 12px rgb(0 0 0 / 0.2);
}
.nav-link[aria-current="page"] {
  color: var(--color-white);
  background-color: rgb(255 255 255 / 0.16);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.42),
    var(--glass-rim);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
/* Language switch and menu button. */
.btn-glass {
  --ra: 1.45rem;
  --rb: 1.3rem;
  color: var(--color-white);
  background-color: var(--glass-fill);
  border-color: rgb(255 255 255 / 0.35);
  border-radius: var(--ra) var(--rb) var(--ra) var(--rb);
  box-shadow: var(--glass-rim), var(--glass-drop);
}
.btn-glass:hover {
  background-color: var(--glass-fill-hover);
}
.lang-switch {
  gap: 0.35rem;
  font-size: 0.85rem;
}
/* Account button: keeps the logo-matched gradient, gains the glass rim. */
.nav-account {
  --ra: 1.45rem;
  --rb: 1.3rem;
  border-radius: var(--ra) var(--rb) var(--ra) var(--rb);
  box-shadow:
    inset 2px 2px 1px 0 rgb(255 255 255 / 0.45),
    inset -2px -2px 2px 0 rgb(255 255 255 / 0.22),
    var(--glass-drop),
    0 10px 34px -10px rgb(34 140 255 / 0.8),
    0 8px 30px -14px rgb(67 64 255 / 0.9);
}
.nav-account .btn-label {
  max-width: 12rem; /* long names end in "…"; the full name is in the tooltip and screen-reader name */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Shared glass motion: springy grow on hover, press-in on click. */
.glass-btn {
  transition:
    transform 0.35s var(--glass-spring),
    border-radius 0.35s var(--glass-spring),
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}
@media (hover: hover) {
  .site-header .glass-btn:hover {
    transform: scale(var(--glass-hover-scale));
    border-radius: var(--rb) var(--ra) var(--rb) var(--ra);
  }
}
.site-header .glass-btn:active {
  transform: scale(0.95);
}

.logo {
  display: inline-flex;
}
.logo img {
  display: block;
  width: auto;
}
.logo-nav img {
  height: 1.625rem;
}

.nav-mobile > summary {
  list-style: none;
}
.nav-mobile > summary::-webkit-details-marker {
  display: none;
}
.nav-mobile .icon-close,
.nav-mobile[open] .icon-open,
.nav-mobile:not([open]) .nav-mobile-panel {
  display: none;
}
.nav-mobile[open] .icon-close {
  display: block;
}
.nav-mobile-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  padding: 0.75rem;
  border: 1px solid var(--nav-glass-edge);
  border-radius: 1.5rem;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.08), rgb(255 255 255 / 0.02) 40%),
    linear-gradient(120deg, var(--nav-glass-tint), var(--nav-glass-tint-end)),
    rgb(8 12 40 / 0.82);
  -webkit-backdrop-filter: var(--nav-panel-blur);
  backdrop-filter: var(--nav-panel-blur);
  box-shadow:
    0 24px 48px -12px rgb(0 0 0 / 0.6),
    inset 0 1px 0 rgb(255 255 255 / 0.3),
    inset 0 4px 20px rgb(255 255 255 / 0.06);
}
.nav-mobile-list {
  display: grid;
  gap: 0.25rem;
}
.nav-mobile-list .nav-link {
  --ra: 1.6rem;
  --rb: 1.4rem;
  display: flex;
  min-height: 3rem;
  font-size: 1rem;
}
@media (max-width: 639px) {
  .nav-account .btn-label {
    max-width: 8rem;
  }
}
/* Phones: the language link shrinks to the globe (its aria-label still names the language) and the
   logo becomes the compact "uw." mark (components/logo.ts), so the account button keeps its text. */
@media (max-width: 400px) {
  .site-header {
    padding-inline: 0.5rem;
  }
  .nav-bar {
    padding-left: 0.9rem;
  }
  .nav-actions {
    gap: 0.375rem;
  }
  .btn-compact {
    padding-inline: 0.7rem;
  }
  .lang-code {
    display: none;
  }
  .nav-account .btn-label {
    max-width: 5.5rem;
  }
}
@media (max-width: 339px) {
  .nav-account .btn-label {
    max-width: 4rem;
  }
}
@media (min-width: 1024px) {
  .nav-desktop {
    display: block;
  }
  .nav-mobile {
    display: none;
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .nav-account .btn-label {
    max-width: 8rem;
  }
}

/* Brand highlight for "5G" (company colour #4340FF). White on #4340FF passes WCAG AA at any size. */
.brand-5g {
  display: inline-block;
  padding: 0 0.16em;
  margin-inline: 0.02em;
  border-radius: 0.2em;
  background-color: var(--color-brand-500);
  color: var(--color-white);
  line-height: 1.05;
  box-shadow: 0 0 0.7em rgb(67 64 255 / 0.55);
}

/* Grid children may shrink below their content's intrinsic width (no sideways scrolling on phones). */
.footer-grid > *,
.perm-grid > *,
.split > *,
.feature-grid > *,
.pkg-grid > *,
.contact-grid > * {
  min-width: 0;
}

/* ---------------------------------------------------------------- sections */
.section {
  padding-block: 3rem;
}
@media (min-width: 1024px) {
  .section {
    padding-block: 5rem;
  }
}
.section-tight {
  margin-top: 3.5rem;
}
.section-title {
  max-width: 40ch;
}
.panel {
  border: var(--hairline);
  border-radius: var(--radius-panel);
  background-color: var(--color-ink-900);
  background-image: linear-gradient(180deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.015));
}
.panel-pad {
  padding: 1.5rem;
}
@media (min-width: 640px) {
  .panel-pad {
    padding: 2rem;
  }
}
.panel-title {
  font-size: 1.25rem;
}

.chip {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background-color: rgb(43 102 248 / 0.22);
  color: var(--color-signal-300);
}
.chip .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.closing {
  position: relative;
  overflow: hidden;
  padding: 3rem 1.75rem;
  border: 1px solid rgb(255 255 255 / 0.15);
  border-radius: 2rem;
  text-align: center;
  background-color: var(--color-ink-900);
  background-image:
    radial-gradient(34rem 16rem at 50% 0%, rgb(43 102 248 / 0.45), transparent),
    radial-gradient(24rem 12rem at 50% 110%, rgb(34 211 238 / 0.25), transparent);
}
.closing h2 {
  max-width: 22ch;
  margin-inline: auto;
}
.closing .lead {
  margin-inline: auto;
  max-width: 52ch;
}
@media (min-width: 640px) {
  .closing {
    padding: 4rem 3.5rem;
  }
}


/* ---------------------------------------------------------------- home (2026-10-26)
 * Markup: src/views/pages/home.ts. A plain hero, a ruled list, the four steps as rising signal
 * bars, two photo panels whose glass cards stay clear of the routers in the photos, the questions
 * in a glass panel and a large closing line right above the footer.
 */
.home {
  --glass-bg: linear-gradient(160deg, rgb(255 255 255 / 0.09), rgb(255 255 255 / 0.02) 60%), rgb(16 27 69 / 0.42);
  --glass-edge: rgb(255 255 255 / 0.16);
  --glass-shine: inset 1px 1px 0 rgb(255 255 255 / 0.22), inset -1px -1px 0 rgb(255 255 255 / 0.05), inset 0 18px 40px -24px rgb(255 255 255 / 0.18);
  --glass-drop: 0 30px 60px -30px rgb(0 0 0 / 0.65);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  position: relative;
  overflow-x: clip;
}
.home > section {
  position: relative;
}
.home-h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem);
  font-stretch: 118%;
  line-height: 1.02;
}

/* 1. hero */
.home-hero {
  padding-block: 3rem;
}
.home-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.5rem, 1.2rem + 5.4vw, 5.6rem);
  font-stretch: 125%;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.home-hero h1 .thin {
  display: block;
  font-weight: 300;
  color: var(--color-mist-300);
}
.home-hero .lead {
  max-width: 46ch;
}
@media (min-width: 960px) {
  .home-hero {
    padding-block: 5rem 4rem;
  }
}

/* what we do: a ruled list */
.home-services {
  padding-block: 3rem;
}
.home-services ol {
  margin-top: 2.5rem;
  padding: 0;
  list-style: none;
  border-top: var(--hairline);
}
.home-services li {
  display: grid;
  gap: 0.75rem 2rem;
  padding-block: 2rem;
  border-bottom: var(--hairline);
}
.home-services h3 {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  font-stretch: 115%;
}
.home-services p {
  max-width: 52ch;
  color: var(--color-mist-300);
}
@media (min-width: 860px) {
  .home-services li {
    grid-template-columns: 1fr 1fr;
    align-items: baseline;
  }
}

/* 2. the steps as signal bars: each one taller, the text always at the bottom */
.home-steps {
  padding-block: 4rem;
}
.signal-bars {
  margin-top: 3rem;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: end;
}
.signal-bar {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--glass-edge);
  border-radius: 1.4rem;
  background: var(--glass-bg);
  box-shadow: var(--glass-shine), var(--glass-drop);
  isolation: isolate;
}
/* The signal rises from the bottom, stronger in every bar. */
.signal-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgb(34 211 238 / var(--bar-glow)), transparent 70%);
}
.bar-1 {
  --bar-glow: 0.06;
  min-height: 14rem;
}
.bar-2 {
  --bar-glow: 0.11;
  min-height: 17rem;
}
.bar-3 {
  --bar-glow: 0.16;
  min-height: 20rem;
}
.bar-4 {
  --bar-glow: 0.22;
  min-height: 23rem;
}
.bar-number {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgb(103 232 249 / 0.45);
  background: var(--color-ink-950);
  color: var(--color-signal-300);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
}
.bar-text {
  margin-top: auto;
  padding-top: 1.25rem;
}
.signal-bar h3 {
  font-size: 1rem;
  font-stretch: 108%;
}
.signal-bar p {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--color-mist-300);
}
@media (min-width: 640px) {
  .signal-bar {
    padding: 1.4rem;
  }
  .signal-bar h3 {
    font-size: 1.15rem;
  }
  .signal-bar p {
    font-size: 0.95rem;
  }
}
@media (min-width: 960px) {
  .signal-bars {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
  .bar-1 {
    min-height: 15rem;
  }
  .bar-2 {
    min-height: 19rem;
  }
  .bar-3 {
    min-height: 23rem;
  }
  .bar-4 {
    min-height: 27rem;
  }
}

/* 3. indoor and outdoor photos. Phones: the whole photo, the card below it. Wider: the cards sit in
   the top corners (indoor left, outdoor right), small enough that the routers stay in view. */
.home-who {
  padding-block: 4rem;
}
.home-who-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
}
.home-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-panel);
  background-color: var(--color-ink-900);
}
.home-photo picture {
  display: block;
}
.home-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-photo.indoor picture {
  aspect-ratio: 3 / 2;
}
.home-photo.outdoor picture {
  aspect-ratio: 5 / 4;
}
.home-photo-card {
  position: relative;
  margin: -2rem 0.75rem 0.75rem;
  padding: 1.25rem;
  border: 1px solid var(--glass-edge);
  border-radius: 1.25rem;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.02)), rgb(5 10 30 / 0.62);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: var(--glass-shine), var(--glass-drop);
}
.home-photo-card h3 {
  font-size: 1.3rem;
  font-stretch: 115%;
}
.home-photo-card p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-mist-300);
}
.home-photo-card .go {
  margin-top: 0.85rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--color-signal-300);
  text-decoration: none;
}
.home-photo-card .go:hover {
  color: var(--color-white);
}
@media (min-width: 640px) {
  .home-photo {
    display: block;
    aspect-ratio: 4 / 3;
  }
  .home-photo picture,
  .home-photo.indoor picture,
  .home-photo.outdoor picture {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }
  /* the router on the TV cabinet is at the right edge of the room */
  .home-photo.indoor img {
    object-position: 100% 50%;
  }
  /* mirrored corners, same size: indoor top-left, outdoor top-right, clear of every router */
  .home-photo-card {
    position: absolute;
    top: 1rem;
    max-width: min(45%, 22rem);
    margin: 0;
  }
  .home-photo.indoor .home-photo-card {
    left: 1rem;
  }
  .home-photo.outdoor .home-photo-card {
    right: 1rem;
  }
}
@media (min-width: 1100px) {
  .home-who-grid {
    grid-template-columns: 1fr 1fr;
  }
  .home-photo {
    aspect-ratio: 1 / 1;
  }
  .home-photo.outdoor img {
    object-position: 70% 50%;
  }
  .home-photo-card {
    max-width: min(50%, 22rem);
  }
}

/* 4. questions */
.home-faq {
  padding-block: 4rem;
}
.home-faq-grid {
  display: grid;
  gap: 2rem;
}
.home-faq-list {
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-panel);
  background: var(--glass-bg);
  box-shadow: var(--glass-shine), var(--glass-drop);
}
.home-faq details {
  border-bottom: var(--hairline);
}
.home-faq details:last-child {
  border-bottom: 0;
}
.home-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  list-style: none;
  font-weight: 700;
  color: var(--color-white);
  cursor: pointer;
}
.home-faq summary::-webkit-details-marker {
  display: none;
}
.home-faq summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--color-signal-300);
  transition: transform 0.25s;
}
.home-faq details[open] summary::after {
  transform: rotate(45deg);
}
.home-faq details p {
  padding-bottom: 1.25rem;
  max-width: 60ch;
  color: var(--color-mist-300);
}
@media (min-width: 960px) {
  .home-faq-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
  }
}

/* 5. closing, right above the footer */
.home-close {
  padding-block: 5rem 4rem;
}
.home-close h2 {
  font-size: clamp(2.75rem, 1rem + 7vw, 7.5rem);
  font-stretch: 125%;
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.home-close h2 em {
  display: block;
  font-style: normal;
  background: linear-gradient(100deg, var(--color-signal-400), var(--color-electric-400) 60%, var(--color-brand-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home-close-row {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
  align-items: end;
}
.home-close-row .lead {
  margin-top: 0;
}
.home-close-row .actions {
  margin-top: 0;
}
@media (min-width: 860px) {
  .home-close-row {
    grid-template-columns: 1fr auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-faq summary::after {
    transition: none;
  }
}

/* ---------------------------------------------------------------- content pages
 * Residential, business, packages, about and contact (src/views/components/sections.ts, packages.ts).
 */
.page-intro {
  padding-block: 3rem 0.5rem;
}
@media (min-width: 640px) {
  .page-intro {
    padding-block: 4.5rem 1rem;
  }
}
.section-flush {
  padding-top: 0;
}
.section-first {
  padding-top: 2rem;
}
.section-lead {
  margin-top: 1rem;
  max-width: 60ch;
  color: var(--color-mist-300);
}
.section-more {
  margin-top: 1.5rem;
}
.section-more .btn {
  padding-inline: 0;
}

.split {
  display: grid;
  gap: 1.25rem;
}
.split-body {
  max-width: 60ch;
  font-size: 1.125rem;
  color: var(--color-mist-300);
}
@media (min-width: 1024px) {
  .split {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
    align-items: start;
  }
}

.feature-grid {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.25rem;
}
.feature {
  padding: 1.75rem;
  border: var(--hairline);
  border-radius: 1.5rem;
  background-color: var(--color-ink-900);
  background-image: linear-gradient(180deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.015));
}
.feature h3 {
  margin-top: 1.25rem;
}
.feature p {
  margin-top: 0.6rem;
  color: var(--color-mist-300);
}
@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .feature-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .feature-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .feature-grid-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Package cards: same blue (indoor) and cyan (outdoor) tints as the home page audiences. */
.pkg-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}
.pkg-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--radius-panel);
  background-color: var(--color-ink-900);
}
.pkg-indoor {
  border: 1px solid rgb(143 176 255 / 0.3);
  background-image: linear-gradient(160deg, rgb(43 102 248 / 0.24), rgb(10 18 48 / 0.6) 60%);
}
.pkg-outdoor {
  border: 1px solid rgb(103 232 249 / 0.25);
  background-image: linear-gradient(160deg, rgb(34 211 238 / 0.16), rgb(10 18 48 / 0.6) 60%);
}
.pkg-tier {
  display: flex;
  gap: 0.35rem;
}
.pkg-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background-color: rgb(255 255 255 / 0.16);
}
.pkg-dot.is-on {
  background-color: var(--color-signal-400);
  box-shadow: 0 0 0.6rem rgb(34 211 238 / 0.6);
}
.pkg-name {
  margin-top: 1rem;
  font-size: 1.5rem;
}
.pkg-summary {
  margin-top: 0.6rem;
  color: var(--color-mist-100);
}
.pkg-spec {
  flex: 1;
  margin-top: 1.5rem;
  display: grid;
  align-content: start;
  gap: 1.1rem;
}
.pkg-spec dt,
.pkg-price dt {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-signal-300);
}
.pkg-spec dd,
.pkg-price dd {
  margin-top: 0.35rem;
  color: var(--color-mist-300);
}
.pkg-spec .pkg-units {
  color: var(--color-white);
  font-size: 1.125rem;
  font-weight: 700;
}
.pkg-price {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: var(--hairline);
}
.pkg-price dd {
  color: var(--color-white);
  font-weight: 600;
}
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--color-mist-100);
}
.check-list .icon {
  margin-top: 0.3rem;
  color: var(--color-signal-300);
}

.faq {
  margin-top: 2rem;
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
}
.faq-item {
  border: var(--hairline);
  border-radius: 1.25rem;
  background-color: rgb(255 255 255 / 0.04);
}
.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 1.25rem;
  color: var(--color-white);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.faq-item > summary::-webkit-details-marker {
  display: none;
}
.faq-item > summary:hover {
  background-color: rgb(255 255 255 / 0.04);
}
.faq-icon {
  color: var(--color-signal-300);
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 1.25rem 1.25rem;
}
.faq-answer p {
  max-width: 65ch;
  color: var(--color-mist-300);
}

.contact-grid {
  display: grid;
  gap: 1.25rem;
}
.contact-form .form {
  margin-top: 1.5rem;
}
.contact-form .btn-primary {
  justify-self: start;
}
.panel-text {
  margin-top: 0.75rem;
}
@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 0.8fr 1.2fr;
    grid-template-rows: auto 1fr; /* extra height of the form goes below the side panels */
    gap: 1.5rem 2rem;
    align-items: start;
  }
  .contact-form {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

/* ---------------------------------------------------------------- inner pages */
.page {
  padding-block: 3rem 5rem;
}
@media (min-width: 640px) {
  .page {
    padding-block: 4.5rem 6rem;
  }
}
.page-title {
  max-width: 22ch;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.page .eyebrow + .page-title {
  margin-top: 0.75rem;
}
.page > .muted,
.page > .narrow {
  margin-top: 1.5rem;
}
.page-actions {
  margin-top: 2.5rem;
}
.page-panel {
  margin-top: 2rem;
  max-width: 42rem;
}
.page-panel .muted {
  margin-top: 0.75rem;
}
.contact-list {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
  max-width: 28rem;
}
.contact-list dt,
.facts dt {
  font-size: 0.875rem;
  color: var(--color-mist-400);
}
.contact-list dt {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.panel .contact-list {
  margin-top: 1.25rem;
}
.contact-list dd {
  margin-top: 0.25rem;
  font-size: 1.125rem;
}
.facts {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}
.facts dd {
  margin-top: 0.25rem;
  font-weight: 600;
}
@media (min-width: 640px) {
  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------------------------------------------------------------- forms */
.auth {
  padding-block: 3rem 5rem;
}
.auth-card {
  max-width: 28rem;
  margin-inline: auto;
}
.auth-card-wide {
  max-width: 34rem;
}
.auth-card .page-title {
  font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.4rem);
}
.auth-panel {
  margin-top: 2rem;
}
.form {
  display: grid;
  gap: 1.25rem;
}
.form-links {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-mist-300);
}
.form-actions {
  margin-top: 1.25rem;
}
.field label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 600;
}
.input {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-edge-400);
  border-radius: var(--radius-field);
  background-color: var(--color-ink-800);
  color: var(--color-white);
  font: inherit;
}
.input::placeholder {
  color: var(--color-mist-400);
}
.input:hover {
  border-color: var(--color-electric-300);
}
.input[aria-invalid="true"] {
  border-color: var(--color-danger-300);
}
.textarea {
  min-height: 9rem;
  resize: vertical;
  line-height: 1.5;
}
.input-compact {
  width: auto;
  min-height: 2.75rem;
  padding: 0.4rem 0.75rem;
}
.hint {
  margin-top: 0.4rem;
  font-size: 0.875rem;
  color: var(--color-mist-400);
}
.field-error {
  margin-top: 0.4rem;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--color-danger-300);
}
.field-error .icon {
  margin-top: 0.15rem;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-mist-300);
}
.field .checkbox {
  display: flex;
  margin-bottom: 0;
  color: var(--color-mist-300);
  font-weight: 400;
}
.checkbox input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.1rem 0 0;
  accent-color: var(--color-signal-400);
}
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid;
  border-radius: 1rem;
  font-size: 0.925rem;
}
.notice-icon {
  margin-top: 0.1rem;
}
.notice-title {
  color: var(--color-white);
  font-weight: 700;
}
.notice-title + .notice-body {
  margin-top: 0.25rem;
  color: var(--color-mist-300);
}
.notice-ok {
  border-color: rgb(139 240 184 / 0.4);
  background-color: rgb(139 240 184 / 0.08);
}
.notice-ok .notice-icon {
  color: var(--color-ok-300);
}
.notice-error {
  border-color: rgb(255 154 168 / 0.5);
  background-color: rgb(255 154 168 / 0.08);
}
.notice-error .notice-icon {
  color: var(--color-danger-300);
}
.notice-info {
  border-color: rgb(143 176 255 / 0.4);
  background-color: rgb(43 102 248 / 0.1);
}
.notice-info .notice-icon {
  color: var(--color-electric-300);
}

/* ---------------------------------------------------------------- staff console */
.perm-grid {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .perm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.perm-group {
  font-size: 1.1rem;
  text-transform: capitalize;
}
.perm-list {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.875rem;
}
.search-form {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  max-width: 60rem;
}
.grow {
  flex: 1 1 18rem;
  min-width: 0;
}
.table-wrap {
  /* positioned, so visually-hidden (absolute) labels inside the table scroll with it instead of widening the page */
  position: relative;
  margin-top: 2rem;
  overflow-x: auto;
}
.table {
  width: 100%;
  min-width: 52rem;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}
.table th,
.table td {
  padding: 0.8rem 1.25rem;
  vertical-align: middle;
}
.table thead th {
  border-bottom: var(--hairline);
  color: var(--color-mist-400);
  font-weight: 600;
}
.table tbody tr + tr {
  border-top: var(--hairline);
}
.table tbody th {
  color: var(--color-white);
  font-weight: 600;
}
.table td {
  color: var(--color-mist-300);
}
.inline-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pagination {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* ---------------------------------------------------------------- accounts, requests and console (Task 3)
 * Customer request pages (views/pages/installation.ts) and the staff console (views/pages/console-*.ts).
 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.section-head,
.title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}
.title-row {
  justify-content: flex-start;
}
.section-subtitle {
  font-size: 1.35rem;
  font-stretch: 108%;
}
.panel-subtitle {
  margin-top: 1.5rem;
  font-size: 1rem;
}
.user-text {
  margin-top: 0.5rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--color-mist-100);
}

/* Show/hide password (button appears only when assets/js/password.js runs) */
.password-wrap {
  position: relative;
}
.password-wrap .input {
  padding-right: 3.25rem;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.3rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  transform: translateY(-50%);
  border: 0;
  border-radius: 0.6rem;
  background: transparent;
  color: var(--color-mist-300);
  cursor: pointer;
}
.password-toggle[hidden] {
  display: none;
}
.password-toggle:hover {
  color: var(--color-white);
  background-color: rgb(255 255 255 / 0.06);
}
.password-toggle .icon-hide,
.password-toggle.is-visible .icon-show {
  display: none;
}
.password-toggle.is-visible .icon-hide {
  display: block;
}

/* Status pills: the text says the status, the colour only supports it. */
.status {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.7rem;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.status-info {
  color: var(--color-signal-300);
}
.status-action {
  border-color: var(--color-brand-500);
  background-color: var(--color-brand-500);
  color: var(--color-white);
}
.status-ok {
  color: var(--color-ok-300);
}
.status-muted {
  color: var(--color-mist-300);
}
.tag {
  padding: 0 0.5rem;
  border-radius: 0.4rem;
  background-color: rgb(255 255 255 / 0.08);
  color: var(--color-mist-300);
  font-size: 0.75rem;
  font-weight: 600;
}

/* My requests (account page) */
.request-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}
/* One item per row on two lines: the title with its status, then the details. Details never break
   inside a piece (a reference, a date), only between pieces. */
.request-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title status"
    "meta meta";
  gap: 0.4rem 1rem;
  align-items: center;
  padding: 1.1rem 1.25rem;
  border: var(--hairline);
  border-radius: 1.25rem;
  background-color: var(--color-ink-900);
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.request-row:hover {
  border-color: rgb(143 176 255 / 0.45);
  background-color: var(--color-ink-800);
}
.request-title {
  grid-area: title;
  min-width: 0;
  color: var(--color-white);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.request-row > .status {
  grid-area: status;
  justify-self: end;
}
.request-meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.6rem;
  color: var(--color-mist-300);
  font-size: 0.9rem;
}
.request-meta-item {
  white-space: nowrap;
}
.request-meta-item-long {
  white-space: normal;
  overflow-wrap: anywhere;
}
.request-meta-item + .request-meta-item::before {
  content: "·";
  margin-right: 0.6rem;
  color: var(--color-mist-400);
}
.request-arrow {
  display: none;
}
@media (min-width: 768px) {
  .request-row {
    grid-template-columns: minmax(0, 1fr) auto 1.25rem;
    grid-template-areas:
      "title status arrow"
      "meta meta arrow";
  }
  .request-arrow {
    grid-area: arrow;
    display: block;
    color: var(--color-signal-300);
  }
}

/* Forms with sections */
fieldset {
  min-width: 0;
  margin: 0;
}
legend {
  float: left;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0;
}
legend + * {
  clear: both;
}
.request-form {
  margin-top: 2rem;
  max-width: 44rem;
}
.form-section {
  display: grid;
  gap: 1.25rem;
}
.form-row {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 560px) {
  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-row-postal {
    grid-template-columns: 10rem minmax(0, 1fr);
  }
}
.form-gap {
  margin-top: 1.25rem;
}
select.input {
  appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-mist-300) 50%), linear-gradient(135deg, var(--color-mist-300) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) 50%, calc(100% - 0.75rem) 50%;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
}

/* Request detail: main column + side column */
.detail-grid {
  margin-top: 1.5rem;
  display: grid;
  /* minmax(0, …): wide tables scroll inside their .table-wrap instead of widening the page */
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}
.detail-main,
.detail-side,
.action-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-content: start;
  min-width: 0;
}
.detail-section {
  display: grid;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .detail-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 2rem;
  }
  .detail-grid-console {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
}
.status-line {
  margin-top: 1rem;
}
.status-panel .muted,
.status-panel .scheduled {
  margin-top: 0.75rem;
}
.site-address {
  margin-top: 0.75rem;
  color: var(--color-white);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.side-facts {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
}
.side-facts dt {
  font-size: 0.8rem;
  color: var(--color-mist-400);
}
.side-facts dd {
  margin-top: 0.15rem;
  overflow-wrap: anywhere;
}
.side-facts .user-text {
  margin-top: 0;
}

/* Timeline */
.timeline {
  margin: 0;
  padding: 0 0 0 1.25rem;
  list-style: none;
  border-left: 1px solid rgb(255 255 255 / 0.15);
  display: grid;
  gap: 1rem;
}
.timeline-item {
  position: relative;
  padding: 0.9rem 1.1rem;
  border: var(--hairline);
  border-radius: 1rem;
  background-color: var(--color-ink-900);
}
.timeline-item::before {
  content: "";
  position: absolute;
  top: 1.2rem;
  left: -1.6rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background-color: var(--color-ink-700);
  box-shadow: 0 0 0 3px var(--color-ink-950);
}
.timeline-item.is-customer::before {
  background-color: var(--color-signal-400);
}
.timeline-item.is-question {
  border-color: rgb(67 64 255 / 0.7);
}
.timeline-item.is-question::before {
  background-color: var(--color-brand-500);
}
.timeline-item.is-internal {
  border-style: dashed;
  background-color: transparent;
}
.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.timeline-title {
  color: var(--color-white);
  font-weight: 700;
}
.timeline-meta {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--color-mist-400);
}
.reply-form {
  gap: 1rem;
}

/* Quotes */
.quote-card {
  padding: 1.5rem;
  border: var(--hairline);
  border-radius: var(--radius-panel);
  background-color: var(--color-ink-900);
}
.quote-card.is-current {
  border-color: rgb(143 176 255 / 0.45);
  background-image: linear-gradient(160deg, rgb(43 102 248 / 0.2), rgb(10 18 48 / 0.6) 60%);
}
.quote-card + .quote-card {
  margin-top: 1rem;
}
.quote-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}
.quote-head h3 {
  font-size: 1.2rem;
}
.quote-amounts {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}
.quote-amounts dt,
.quote-spec dt {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-signal-300);
}
.quote-amounts dd {
  margin-top: 0.25rem;
  color: var(--color-white);
}
.quote-amounts strong {
  font-size: 1.35rem;
  font-stretch: 108%;
}
.quote-spec {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: var(--hairline);
  display: grid;
  gap: 1rem;
}
.quote-spec dd {
  margin-top: 0.25rem;
  overflow-wrap: anywhere;
}
@media (min-width: 640px) {
  .quote-amounts,
  .quote-spec {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quote-spec {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .quote-wide {
    grid-column: 1 / -1;
  }
}
.quote-respond {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: var(--hairline);
  display: grid;
  gap: 1.25rem;
}
.quote-respond-title {
  font-size: 1rem;
  color: var(--color-white);
}
.quote-decline {
  padding-top: 1.25rem;
  border-top: 1px dashed rgb(255 255 255 / 0.12);
}
.history {
  border: var(--hairline);
  border-radius: 1.25rem;
  padding: 0.25rem 1.25rem;
}
.history > summary {
  padding: 0.85rem 0;
  color: var(--color-white);
  font-weight: 700;
  cursor: pointer;
}
.history[open] {
  padding-bottom: 1.25rem;
}

/* Console */
.console-nav ul,
.console-tabs ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.console-tabs {
  margin-top: 1.5rem;
}
.console-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: var(--radius-pill);
  color: var(--color-mist-100);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.console-link:hover {
  border-color: rgb(143 176 255 / 0.5);
  color: var(--color-white);
}
.console-link.is-current {
  border-color: var(--color-brand-500);
  background-color: var(--color-brand-500);
  color: var(--color-white);
}
.console-cards {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.console-card {
  display: grid;
  gap: 1rem;
  align-content: start;
}
.console-card .btn {
  justify-self: start;
}
.count-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  color: var(--color-mist-300);
}
.count-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.count-list strong {
  color: var(--color-white);
}
.assessment-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}
.assessment-list li + li {
  padding-top: 1rem;
  border-top: var(--hairline);
}
.quote-form .actions {
  margin-top: 0.25rem;
}
.btn-danger {
  color: var(--color-danger-300);
  background-color: transparent;
  border-color: var(--color-danger-300);
}
.btn-danger:hover {
  background-color: rgb(255 154 168 / 0.12);
}
.danger-zone {
  border-color: rgb(255 154 168 / 0.35);
}
.panel-title + p {
  margin-top: 0.5rem;
}
.narrow-panel {
  margin-top: 1.5rem;
  max-width: 40rem;
}
.message-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
  max-width: 52rem;
}
.message-actions {
  margin-top: 1rem;
  flex-wrap: wrap;
}
.message-select {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
}
.message-select input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--color-signal-400);
}
.bulk-bar {
  position: sticky;
  top: 5.5rem;
  z-index: 5;
  margin-top: 1.5rem;
  max-width: 52rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding-block: 0.85rem;
}
.filter-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  align-items: end;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.filter-actions {
  margin-top: 0;
}
.db-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}
.db-side,
.db-main {
  min-width: 0;
}
.db-main {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}
.db-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  overflow-wrap: anywhere;
}
.db-list .link.is-current {
  color: var(--color-white);
  font-weight: 700;
}
@media (min-width: 1024px) {
  .db-grid {
    grid-template-columns: 18rem minmax(0, 1fr);
    align-items: start;
  }
}
.table-wrap-flush {
  margin-top: 1rem;
}
.table-compact {
  min-width: 0;
}
.table-compact th,
.table-compact td {
  padding: 0.5rem 0.75rem;
  vertical-align: top;
}
.db-main > * {
  min-width: 0;
}
.table-compact code {
  overflow-wrap: anywhere;
}
/* Data rows: one line per row, scroll sideways inside the panel; long values are cut with "…". */
.table-data {
  width: max-content;
  min-width: 100%;
  font-size: 0.8rem;
}
.table-data th,
.table-data td {
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table-audit {
  min-width: 60rem;
}
.table-audit td {
  vertical-align: top;
}
.code-block {
  margin: 0.5rem 0 0;
  max-width: 28rem;
  max-height: 16rem;
  overflow: auto;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background-color: var(--color-ink-950);
  color: var(--color-mist-100);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.audit-details > summary {
  color: var(--color-signal-300);
  cursor: pointer;
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  margin-top: 6rem;
  border-top: var(--hairline);
  background-color: var(--color-ink-900);
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 3.5rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
  }
}
.logo-footer img {
  height: 2rem;
}
.footer-tagline {
  margin-top: 1rem;
  max-width: 34ch;
  font-size: 0.9rem;
  color: var(--color-mist-300);
}
.footer-title {
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: 0;
}
.footer-title-spaced {
  margin-top: 2rem;
}
.footer-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-mist-300);
}
.footer-list a {
  color: var(--color-mist-300);
  text-decoration: none;
}
.footer-list a:hover {
  color: var(--color-white);
  text-decoration: underline;
}
.footer-rights {
  padding: 1.25rem var(--gutter);
  border-top: var(--hairline);
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-mist-400);
}

/* ---------------------------------------------------------------- accessibility modes */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn-primary:hover,
  .site-header .glass-btn:hover,
  .site-header .glass-btn:active {
    transform: none;
  }
}
@media (forced-colors: active) {
  .btn,
  .notice,
  .panel,
  .nav-bar {
    border: 1px solid CanvasText;
  }
  .btn-primary {
    background-image: none;
  }
}

/* ---------------------------------------------------------------- buildings, partners and join codes (Task 4)
 * Resident page (views/pages/building.ts), partner portal (views/pages/partner.ts) and the console
 * building/partner pages (views/pages/console-buildings.ts).
 */
.plain-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
  overflow-wrap: anywhere;
}
.row-between {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}
.building-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}
.building-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}
.building-card {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  overflow-wrap: anywhere;
}
.building-card .actions {
  margin-top: 0.75rem;
  align-items: flex-start;
}
.building-link {
  height: 100%;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.building-link:hover,
.building-link:focus-visible {
  border-color: rgb(143 176 255 / 0.45);
  background-color: var(--color-ink-800);
}
.building-open {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-electric-300);
  font-weight: 600;
}
.leave-box summary {
  list-style: none;
  cursor: pointer;
}
.leave-box summary::-webkit-details-marker {
  display: none;
}
.leave-box[open] {
  flex-basis: 100%;
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgb(255 154 168 / 0.35);
  border-radius: 1.1rem;
}
.leave-box[open] summary {
  justify-self: start;
}

/* Totals */
.stat-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  gap: 0.75rem;
}
.stat-grid > div {
  padding: 0.85rem 1rem;
  border: var(--hairline);
  border-radius: 1rem;
  background-color: rgb(255 255 255 / 0.03);
}
.stat-grid dt {
  font-size: 0.8rem;
  color: var(--color-mist-400);
}
.stat-grid dd {
  margin-top: 0.25rem;
  color: var(--color-white);
  font-size: 1.15rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* Join codes: the new code is shown once, large and selectable */
.code-reveal {
  margin-top: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgb(139 240 184 / 0.45);
  border-radius: 1.25rem;
  background-color: rgb(139 240 184 / 0.06);
}
.join-code {
  margin-top: 0.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1.35rem, 5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-white);
  user-select: all;
  overflow-wrap: anywhere;
}
.code-form {
  margin-top: 1.25rem;
}
.code-form + .table-wrap,
.code-form + p {
  margin-top: 1.5rem;
}
.notice .plain-list {
  margin-top: 0.5rem;
}

/* Join codes and agreed prices: rows that wrap instead of wide tables */
.item-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  border-top: var(--hairline);
}
.item-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  padding: 0.9rem 0;
  border-bottom: var(--hairline);
}
.item-main {
  flex: 1 1 14rem;
  min-width: 0;
  display: grid;
  gap: 0.25rem;
  overflow-wrap: anywhere;
}
.item-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
}
.item-name {
  color: var(--color-white);
  font-weight: 600;
}
.code-hint {
  color: var(--color-signal-300);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.price-amounts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 0.4rem 1rem;
}
.price-amounts dt {
  font-size: 0.78rem;
  color: var(--color-mist-400);
}
.price-amounts dd {
  color: var(--color-mist-100);
}
/* Small tables (residents): natural width, no 52rem minimum */
.table-fit {
  min-width: 0;
}

/* ---------------------------------------------------------------- site-wide notices (banners, pop-ups)
 * Set by admins in the console (views/components/notices.ts). Icon + text, never colour alone.
 */
.site-notices {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}
.site-notice-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgb(143 176 255 / 0.4);
  border-radius: 1.1rem;
  background-color: rgb(16 27 69 / 0.92);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.25);
}
.site-notice-icon {
  flex: none;
  margin-top: 0.1rem;
  color: var(--color-electric-300);
}
.site-notice-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  color: var(--color-mist-100);
  overflow-wrap: anywhere;
}
.site-notice-text strong {
  color: var(--color-white);
}
.user-text-inline {
  white-space: pre-line;
}
.site-notice-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  white-space: nowrap;
}
.site-notice-close {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: -0.4rem -0.4rem -0.4rem 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-mist-300);
  cursor: pointer;
}
.site-notice-close:hover {
  background-color: rgb(255 255 255 / 0.08);
  color: var(--color-white);
}
.site-notice-warning .site-notice-inner {
  border-color: rgb(252 211 77 / 0.55);
  background-color: rgb(44 34 10 / 0.92);
}
.site-notice-warning .site-notice-icon,
.site-popup-warning .site-notice-icon {
  color: var(--color-amber-300);
}
.site-notice-success .site-notice-inner {
  border-color: rgb(139 240 184 / 0.45);
  background-color: rgb(10 40 32 / 0.92);
}
.site-notice-success .site-notice-icon,
.site-popup-success .site-notice-icon {
  color: var(--color-ok-300);
}

/* Pop-up: shown on a dimming layer without JavaScript; notices.js turns it into a modal dialog. */
.popup-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background-color: rgb(5 10 30 / 0.72);
  overflow-y: auto;
}
.site-popup {
  position: relative;
  inset: auto;
  margin: 0;
  width: min(100%, 34rem);
  max-height: calc(100dvh - 2 * var(--gutter));
  overflow-y: auto;
  padding: 1.5rem;
  border: 1px solid rgb(143 176 255 / 0.4);
  border-radius: var(--radius-panel);
  background-color: var(--color-ink-900);
  color: var(--color-mist-100);
  box-shadow: 0 24px 64px rgb(0 0 0 / 0.5);
}
.site-popup:modal {
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
}
.site-popup::backdrop {
  background: transparent;
}
.site-popup-warning {
  border-color: rgb(252 211 77 / 0.55);
}
.site-popup-success {
  border-color: rgb(139 240 184 / 0.45);
}
.site-popup-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  overflow-wrap: anywhere;
}
.site-popup .user-text {
  margin-top: 0.75rem;
}
.site-popup .actions {
  margin-top: 1.25rem;
}
.notice-close-form {
  display: contents;
}
/* admin preview: the pop-up sits in the page */
.notice-preview {
  margin-top: 1rem;
}
.popup-preview .site-popup {
  width: 100%;
}
.section-tight-sm {
  margin-top: 1rem;
}
/* a titled group of fields inside a panel form (no box of its own) */
.form-subsection {
  margin: 0;
  padding: 1.25rem 0 0;
  min-width: 0;
  border: 0;
  border-top: var(--hairline);
}
.form-subsection > legend {
  float: left;
  width: 100%;
  margin: 0 0 0.25rem;
  padding: 0;
  color: var(--color-white);
  font-weight: 700;
}
.form-subsection > legend + * {
  clear: both;
}

/* ---------------------------------------------------------------- consumer portal (Task 5)
 * Account menu, details, subscriptions with the monthly fee, support requests, invoices.
 */
.account-nav {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: var(--hairline);
}
.account-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.status-alert {
  border-color: rgb(255 154 168 / 0.55);
  background-color: rgb(255 154 168 / 0.12);
  color: var(--color-danger-300);
}
.profile-grid {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  align-items: start;
}
.profile-grid > * {
  min-width: 0;
}
.fee-amount {
  margin-top: 0.75rem;
  font-size: 1.35rem;
  color: var(--color-white);
}
.fee-why {
  margin-top: 1rem;
  display: grid;
  gap: 0.35rem;
  color: var(--color-mist-100);
}
.fee-panel .hint {
  margin-top: 1rem;
}
.item-row.is-removed .item-name {
  color: var(--color-mist-400);
  text-decoration: line-through;
}
.console-card .plain-list li {
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------- Task 6: staff workspaces
 * Grouped console menu, invoices and payments (views/pages/console-billing.ts), packages,
 * statistics with bar lists (components/charts.ts), reply templates, legal pages and the
 * customer overview on the user page.
 */

/* Console menu (owner, 2026-10-22: no dropdowns). Wide screens: a sidebar beside the page with each
   group as a short list. Tablets: the groups side by side above the page. Phones: one row per group,
   scrolling sideways. */
.console-nav {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: var(--hairline);
}
.console-home {
  justify-self: start;
}
.console-nav-groups {
  display: grid;
  gap: 1rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.console-nav-group {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  min-width: 0;
}
.console-nav-group ul {
  gap: 0.4rem;
}
.console-nav-label {
  color: var(--color-mist-400);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.console-nav .console-link {
  white-space: nowrap;
}
@media (max-width: 639px) {
  .console-nav-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }
  .console-nav-group ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: thin;
  }
}
@media (min-width: 1024px) {
  .console {
    max-width: 90rem;
  }
  .console-layout {
    display: grid;
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }
  .console-aside {
    position: sticky;
    top: 6.5rem;
    max-height: calc(100vh - 7.5rem);
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .console-nav {
    gap: 1.5rem;
    margin-bottom: 0;
    padding: 0 1.25rem 0.5rem 0;
    border-bottom: 0;
    border-right: var(--hairline);
  }
  .console-home {
    justify-self: stretch;
  }
  .console-nav-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .console-nav-group {
    gap: 0.35rem;
  }
  .console-nav-group ul {
    display: grid;
    gap: 0.1rem;
  }
  .console-nav .console-link {
    display: flex;
    width: 100%;
    min-height: 2.1rem;
    padding: 0.3rem 0.85rem;
    border-color: transparent;
    border-radius: 0.7rem;
  }
  .console-nav .console-link:hover {
    border-color: transparent;
    background-color: rgb(255 255 255 / 0.06);
  }
  .console-nav .console-link.is-current {
    border-color: var(--color-brand-500);
    background-color: var(--color-brand-500);
  }
}

/* Staff notifications (owner, 2026-10-22): a menu link with the unread count, the list page and
   the newest ones on the console home. Unread rows have a brighter title, a tinted icon and a dot. */
.console-nav-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.console-notif {
  gap: 0.55rem;
}
.nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.4rem;
  border-radius: var(--radius-pill);
  background-color: var(--color-signal-400);
  color: var(--color-ink-950);
  font-size: 0.74rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.nav-count[hidden] {
  display: none;
}
.notif-panel {
  margin-top: 1rem;
  padding: 0.4rem;
}
.notif-list {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.console-notif-card {
  margin-top: 2rem;
}
.console-notif-card .notif-list {
  margin: 0.5rem -0.9rem 0;
}
.notif-link {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.8rem 0.9rem;
  border-radius: 1rem;
  color: var(--color-mist-300);
  text-decoration: none;
}
.notif-link:hover {
  background-color: rgb(255 255 255 / 0.05);
}
.notif-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.75rem;
  background-color: rgb(255 255 255 / 0.06);
  color: var(--color-mist-400);
}
.notif.is-unread .notif-icon {
  background-color: rgb(67 64 255 / 0.3);
  color: var(--color-electric-300);
}
.notif-body {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.notif-title {
  color: var(--color-mist-100);
  font-weight: 600;
}
.notif.is-unread .notif-title {
  color: var(--color-white);
  font-weight: 700;
}
.notif.is-unread .notif-title::after {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-left: 0.45rem;
  border-radius: 50%;
  background-color: var(--color-signal-400);
  vertical-align: middle;
}
.notif-ref {
  color: var(--color-mist-400);
  font-size: 0.85rem;
  white-space: nowrap;
}
.notif-detail {
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}
.notif-time {
  color: var(--color-mist-400);
  font-size: 0.8rem;
}
@media (min-width: 1024px) {
  .console-nav-top {
    display: grid;
    gap: 0.1rem;
  }
  .console-nav .console-notif {
    justify-content: space-between;
  }
}

/* Calendar address on the day plan (owner, 2026-10-22) */
.calendar-feed > .notice,
.calendar-feed > p,
.calendar-feed > .field {
  margin: 0 0 1rem;
}
.calendar-feed > .actions {
  margin: 0 0 1rem;
}
.calendar-feed > .actions:last-child {
  margin: 1.5rem 0 0;
}
.calendar-feed .input[readonly] {
  font-size: 0.9rem;
}

/* Passkeys (owner, 2026-10-22): the button at the second sign-in step and the list on Adataim. */
.passkey-login .btn .icon,
.passkey-add .btn .icon {
  margin-right: 0.35rem;
}
.passkey-login .field-error {
  margin-top: 0.75rem;
}
.field-error[hidden],
.form[hidden] {
  display: none;
}
.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--color-mist-400);
  font-size: 0.85rem;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-top: var(--hairline);
}
.passkey-list {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}
.passkey-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem;
  border: var(--hairline);
  border-radius: 1rem;
}
.passkey-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.75rem;
  background-color: rgb(67 64 255 / 0.3);
  color: var(--color-electric-300);
}
.passkey-main {
  flex: 1;
  min-width: 0;
}
.passkey-main .hint {
  margin-top: 0.15rem;
}
.passkey-name {
  color: var(--color-white);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.passkey-add {
  margin-top: 1rem;
}

/* Data protection requests (owner, 2026-10-22) */
.privacy-list {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.privacy-item .job-head {
  align-items: flex-start;
}
.privacy-answer {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border: var(--hairline);
  border-radius: 1rem;
}

/* Small shared pieces */
.amount {
  color: var(--color-white);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.field-label {
  margin-bottom: 0.4rem;
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 600;
}
.section-head-tight .panel-title {
  margin: 0;
}
.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.input-file {
  padding: 0.55rem 0.75rem;
}
.input-file::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.45rem 1rem;
  border: 1px solid rgb(255 255 255 / 0.24);
  border-radius: var(--radius-pill);
  background-color: transparent;
  color: var(--color-mist-100);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.input-file::file-selector-button:hover {
  border-color: var(--color-electric-300);
}

/* Payments: the authorisation code only matters for in-person card payments. Browsers without :has()
   ignore this rule and simply always show the field. */
.payment-form:not(:has(select[name="method"] option[value="card_present"]:checked)) .card-only {
  display: none;
}

/* Monthly billing list */
.billing-head {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.billing-month {
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: 700;
}

/* Ticket reply templates */
.template-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
}

/* Customer overview on the user page */
.overview-blocks {
  display: grid;
  gap: 0.25rem;
}
.overview-block .item-list {
  margin-top: 0.5rem;
}

/* Statistics */
.stats-section {
  margin-top: 2.5rem;
}
.stats-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 1.25rem;
}
.stats-wide {
  grid-column: 1 / -1;
}
.stat-grid dd.stat-value {
  font-size: 1.5rem;
}
.stat-sub {
  font-size: 0.8rem;
  font-weight: 400;
}

/* Bar lists (components/charts.ts). Series colours validated on the dark panel (#121a37):
   1 = #5b8cff, 2 = #d95926. Text stays in text colours; the coloured key carries identity. */
.viz {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}
.viz-title {
  color: var(--color-white);
  font-weight: 700;
}
.viz-legend {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  color: var(--color-mist-300);
  font-size: 0.85rem;
}
.viz-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.viz-key {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 3px;
}
.viz-key-1 {
  background-color: #5b8cff;
}
.viz-key-2 {
  background-color: #d95926;
}
.viz-bars {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}
.viz-row {
  display: grid;
  grid-template-columns: minmax(5rem, 9.5rem) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}
.viz-label {
  color: var(--color-mist-300);
  overflow-wrap: anywhere;
}
.viz-track {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 2px 0;
  border-left: 1px solid rgb(255 255 255 / 0.18);
}
.viz-svg {
  display: block;
  overflow: visible;
}
.viz-s1 {
  fill: #5b8cff;
}
.viz-s2 {
  fill: #d95926;
}
.viz-value {
  display: grid;
  justify-items: end;
  color: var(--color-white);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.viz-bars-multi .viz-value {
  font-size: 0.8rem;
  line-height: 1.3;
}
.viz-empty,
.viz-note {
  margin: 0;
}

/* Legal pages: company-approved text rendered from the console's simple format (components/legal.ts) */
.legal-panel {
  max-width: 52rem;
}
.legal-text {
  margin-top: 1rem;
  color: var(--color-mist-100);
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.legal-text h2 {
  margin-top: 2rem;
  font-size: 1.3rem;
}
.legal-text h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}
.legal-text h4 {
  margin-top: 1.25rem;
  font-size: 1rem;
}
.legal-text > :first-child {
  margin-top: 0;
}
.legal-text p,
.legal-text ul,
.legal-text ol {
  margin-top: 0.75rem;
}
.legal-text ul,
.legal-text ol {
  padding-left: 1.4rem;
}
.legal-text li + li {
  margin-top: 0.3rem;
}
.legal-text strong {
  color: var(--color-white);
}
.notice-inline {
  padding: 0.75rem 1rem;
  border: 1px solid rgb(103 232 249 / 0.35);
  border-radius: 1rem;
  background-color: rgb(103 232 249 / 0.07);
}
.legal-format code {
  color: var(--color-signal-300);
}

/* Fields inside a fieldset (package texts): the same rhythm as a form */
.form-fields {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.75rem;
}
/* Row actions on their own wrapping line under the item (package prices) */
.item-actions {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.item-actions .inline-form {
  flex-wrap: wrap;
}
.billing-head .actions {
  margin-top: 0;
  align-items: center;
}
.viz-value .viz-zero {
  color: var(--color-mist-400);
}
/* Collapsible panels (correct / cancel / void): the summary reads like the other panel titles */
summary.panel-title {
  font-weight: 700;
  cursor: pointer;
}

/* ---------------------------------------------------------------- 2026-10-21 additions */
/* Request form: the settlement follows the postal code (postal.js); locked until "Incorrect city?" */
.postal-lookup {
  display: grid;
  gap: 0.75rem;
}
.postal-status:empty {
  display: none;
}
.input[readonly] {
  background-color: var(--color-ink-900);
  border-style: dashed;
  color: var(--color-mist-300);
}
.city-manual .field {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------- Task 8: two-step verification */
.mfa-steps {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.9rem;
  color: var(--color-mist-100);
}
.mfa-qr {
  margin: 0.9rem 0 0.6rem;
}
.qr {
  display: block;
  width: 13.75rem;
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
}
.mfa-key {
  word-spacing: 0.15em;
  overflow-wrap: anywhere;
}
.recovery-codes {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
}
.recovery-codes code {
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--color-white);
}

/* ---------------------------------------------------------------- photos and self-help (2026-10-22) */
.photo-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.photo-thumb {
  display: block;
  width: 9rem;
  height: 7rem;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.16);
  background-color: var(--color-ink-800);
}
.photo-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-thumb:hover,
.photo-thumb:focus-visible {
  border-color: var(--color-electric-300);
}
.photo-file {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  min-height: 2.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 0.75rem;
  color: var(--color-mist-100);
  text-decoration: none;
}
.photo-file:hover {
  border-color: var(--color-electric-300);
}
.photo-removed {
  color: var(--color-mist-400);
  font-size: 0.9rem;
}
.topic-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  max-width: 36rem;
}
.topic-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  color: var(--color-white);
  font-weight: 600;
  text-decoration: none;
}
.topic-card:hover,
.topic-card:focus-visible {
  border-color: var(--color-electric-300);
}
.steps-list {
  margin: 0 0 1.5rem;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.75rem;
}
.steps-list li::marker {
  color: var(--color-signal-300);
  font-weight: 700;
}

/* ---------------------------------------------------------------- day plan (2026-10-22): made for a phone */
.day-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  max-width: 34rem;
  margin: 1.25rem 0;
}
.day-nav > .link {
  grid-column: 1 / -1;
  justify-self: start;
}
.day-pick {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  min-width: 0;
}
.day-pick .input {
  flex: 1 1 auto;
  min-width: 0;
}
.job-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
  max-width: 48rem;
}
.job-card {
  display: grid;
  gap: 0.9rem;
  scroll-margin-top: 7rem;
}
.job-card.is-done {
  opacity: 0.85;
}
.job-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.job-time {
  color: var(--color-white);
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.job-facts dd {
  overflow-wrap: anywhere;
}
.checklist {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.35rem;
}
.checklist legend {
  margin-bottom: 0.4rem;
  color: var(--color-white);
  font-weight: 700;
}
.checklist .checkbox {
  min-height: 2.75rem;
  align-items: center;
}
.job-form {
  padding-top: 0.9rem;
  border-top: var(--hairline);
}
.link-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ---------------------------------------------------------------- Rendszer → Jogkörök (2026-10-24) */
.role-wrap {
  max-height: 75vh;
  overflow: auto;
}
.role-table {
  min-width: 46rem;
}
.role-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--color-ink-900);
}
.role-table .role-col {
  width: 6.5rem;
  text-align: center;
  font-size: 0.78rem;
}
.role-table tbody th {
  font-weight: 400;
}
.role-table tbody th code {
  display: block;
  color: var(--color-white);
}
.role-desc {
  display: block;
  margin-top: 0.15rem;
  color: var(--color-mist-400);
  font-size: 0.78rem;
}
.role-table .role-group th {
  padding-top: 1.25rem;
  color: var(--color-signal-300);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.role-cell {
  text-align: center;
  vertical-align: middle !important;
}
.role-cell input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--color-signal-400);
  cursor: pointer;
}
.role-cell input:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.role-cell.is-changed,
.role-legend {
  box-shadow: inset 0 0 0 2px var(--color-amber-300);
  border-radius: 0.5rem;
}
.role-legend {
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  vertical-align: -0.1rem;
}
.role-actions {
  position: sticky;
  bottom: 0;
  padding: 0.75rem 0;
  background: var(--color-ink-950);
}

/* Signed-in devices on Adataim (2026-10-24): on a phone the button goes under the text. */
@media (max-width: 30rem) {
  .session-row {
    flex-wrap: wrap;
  }
  .session-row form {
    width: 100%;
    padding-left: 2.95rem;
  }
}

/* Packages page: the one-time fee and, when the owner set it, the monthly fee under it (2026-10-26). */
.pkg-price > div + div {
  margin-top: 0.85rem;
}
