/* Chainlink Solutions — brand poster palette, one screen per page */

:root {
  --page: #e3ecf9;
  --page-2: #f2f7fd;
  --white: #ffffff;
  --ink: #0b1f3a;
  --muted: #56688b;
  --line: #c9d9ef;
  --blue: #0b2a66;
  --blue-2: #123c8c;
  --accent: #1d5bff;
  --yellow: #ffc400;
  --yellow-hi: #ffd633;
  --orange: #b54708;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --pill: 999px;
  --wrap: 1180px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { display: flex; flex: 1 0 auto; flex-direction: column; }

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
a { color: var(--blue-2); }

:focus-visible {
  outline: 2px solid var(--blue-2);
  outline-offset: 2px;
  border-radius: 4px;
}

.topbar :focus-visible,
.foot :focus-visible,
.section--navy :focus-visible {
  outline-color: var(--yellow);
}

.skip {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 999;
  padding: 12px 18px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 650;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), 100% - 40px);
  margin-inline: auto;
}

/* ---------- top bar ---------- */

.topbar {
  background: var(--blue);
  color: #c7d8ee;
  font-size: 0.78rem;
  padding: 7px 0;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  align-items: center;
  justify-content: space-between;
}
.topbar p { margin: 0; }
.topbar a {
  color: #e3edf9;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.topbar a:hover { color: var(--yellow); border-color: var(--yellow); }
.topbar__contact { display: flex; gap: 8px; flex-wrap: wrap; }
.topbar__contact span { color: #9fb4d4; }

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-head__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 80px;
}
.brand { display: block; flex: 0 0 auto; }
.brand img {
  height: 56px;
  width: auto;
}

.nav { display: flex; align-items: center; gap: 0; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 10px;
  white-space: nowrap;
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.91rem;
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
  transition: color 140ms ease, background-color 140ms ease;
}
.nav__link:hover { color: var(--blue-2); background: var(--page-2); }
.nav__link.is-active { color: var(--blue-2); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 2px;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
}
.nav__toggle svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 250px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(11, 31, 58, 0.16);
}
.nav__menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.nav__menu a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.88rem;
  text-decoration: none;
}
.nav__menu a:hover { background: var(--page-2); color: var(--blue-2); }
.nav__menu strong { font-weight: 650; }
.nav__menu span { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }

.site-head__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.head-phone { display: flex; flex-direction: column; text-decoration: none; line-height: 1.2; }
.head-phone span {
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.head-phone strong { color: var(--ink); font-size: 0.87rem; font-weight: 650; }
.head-phone:hover strong { color: var(--blue-2); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 2px;
  background: var(--page-2);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  cursor: pointer;
  font-family: inherit;
}
.lang-toggle__opt {
  padding: 4px 9px;
  border-radius: var(--pill);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: background-color 140ms ease, color 140ms ease;
}
.lang-toggle__opt.is-active { background: var(--blue); color: #fff; }
.lang-toggle:hover .lang-toggle__opt:not(.is-active) { color: var(--blue-2); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--yellow);
  border-radius: var(--pill);
  background: var(--yellow);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease,
              color 150ms ease, transform 120ms ease;
}
.btn:hover { background: var(--yellow-hi); border-color: var(--yellow-hi); }
.btn:active { transform: translateY(1px); }
.btn:disabled {
  background: #e5e9f0;
  border-color: #c9d9ef;
  color: #8a96a8;
  opacity: 1;
  cursor: not-allowed;
}
.btn:disabled:hover { background: #e5e9f0; border-color: #c9d9ef; }
.btn--ghost:disabled { background: #f2f4f8; border-color: #d7dee9; color: #8a96a8; }
.btn--ghost:disabled:hover { background: #f2f4f8; border-color: #d7dee9; color: #8a96a8; }
.btn--sm { padding: 9px 17px; font-size: 0.87rem; }
.btn--wide { width: 100%; }

.btn--ghost {
  background: var(--white);
  border-color: var(--line);
  color: var(--blue-2);
}
.btn--ghost:hover { background: var(--page-2); border-color: var(--blue-2); color: var(--blue-2); }

.btn--danger {
  background: #b3261e;
  border-color: #b3261e;
  color: #fff;
}
.btn--danger:hover { background: #8f1d17; border-color: #8f1d17; }
.btn--danger:disabled { opacity: 0.5; cursor: not-allowed; }
.client-delete { margin-right: auto; }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 11px 9px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 160ms ease, opacity 160ms ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, #dbe8fa 0%, var(--page) 100%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 44px;
  padding: clamp(28px, 4vw, 48px) 0 clamp(28px, 4vw, 44px);
}

.eyebrow {
  color: var(--blue-2);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow--light { color: var(--yellow); }

.hero h1 {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hl {
  display: inline-block;
  padding: 0 0.12em;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 6px;
  font-style: italic;
  transform: skewX(-6deg);
  box-decoration-break: clone;
}

.hero__lede {
  margin: 16px 0 0;
  max-width: 46ch;
  color: #3d5170;
  font-size: clamp(0.98rem, 1.3vw, 1.06rem);
  line-height: 1.6;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #b9cdea;
  list-style: none;
}
.hero__facts li { display: flex; flex-direction: column; gap: 0; }
.hero__facts strong { color: var(--ink); font-size: 1.18rem; font-weight: 750; letter-spacing: -0.02em; }
.hero__facts span { font-size: 0.74rem; color: var(--muted); }

.hero__art { justify-self: end; width: 100%; max-width: 400px; }

.pricecard {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 22px 50px rgba(11, 31, 58, 0.14);
}
.pricecard__head { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; }
.pricecard__kicker { color: var(--blue-2); font-size: 0.68rem; font-weight: 750; letter-spacing: 0.13em; text-transform: uppercase; }
.pricecard__note { color: var(--muted); font-size: 0.74rem; }

.pricecard__list { list-style: none; margin: 0; padding: 0; }
.pricecard__list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0 12px;
  padding: 8px 0;
  border-top: 1px solid #e6eefa;
}
.pc-name {
  grid-column: 1;
  grid-row: 1;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.pc-speed {
  grid-column: 1;
  grid-row: 2;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.pc-speed small { color: var(--muted); font-size: 0.66rem; font-weight: 650; letter-spacing: 0; }
.pc-price { grid-column: 2; grid-row: 1 / span 2; color: var(--blue); font-size: 1rem; font-weight: 800; }
.pricecard__link {
  display: block;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid #e6eefa;
  color: var(--blue-2);
  font-size: 0.83rem;
  font-weight: 650;
  text-decoration: none;
}
.pricecard__link:hover { text-decoration: underline; }

/* ---------- sections ---------- */

.section { padding: 30px 0; }
.section--white { background: var(--white); }
.section--page { background: var(--page); }
.section--navy { background: var(--blue); color: #fff; }
.section--flush { display: flex; flex: 1; align-items: center; padding-top: 20px; }
.section--flush > .wrap { width: min(var(--wrap), 100% - 40px); }

.section__head { max-width: 64ch; margin-bottom: 22px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head h2 {
  margin: 6px 0 8px;
  color: var(--ink);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.section__head p { color: var(--muted); font-size: 0.96rem; }
.section__head--dark h2 { color: #fff; }
.section__head--dark p { color: #c6d6f2; }

.page-hero {
  padding: 26px 0 18px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  margin: 6px 0 6px;
  color: var(--ink);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.page-hero__lede { max-width: 62ch; color: var(--muted); font-size: 0.98rem; }

/* ---------- benefits ---------- */

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.benefit {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.benefit__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  background: var(--page-2);
  border-radius: var(--pill);
}
.benefit__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--blue-2);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.benefit h2 { margin-bottom: 4px; color: var(--ink); font-size: 0.96rem; }
.benefit p { color: var(--muted); font-size: 0.85rem; line-height: 1.55; }

/* ---------- plans ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 170ms ease, box-shadow 170ms ease;
}
.plan:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(11, 31, 58, 0.12); }
.plan a:focus-visible { outline-color: var(--blue); }

.plan__head { position: relative; padding: 10px 16px; background: var(--blue); text-align: center; }
.plan h2 { color: #fff; font-size: 0.86rem; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; }
.plan__flag {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 3px 8px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: var(--pill);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.plan__speed { padding: 14px 16px 4px; color: var(--muted); font-size: 0.8rem; font-weight: 650; text-align: center; }
.plan__speed strong {
  margin-right: 2px;
  color: var(--ink);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}
.plan__price {
  padding: 7px 14px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}
.plan__price span { margin-left: 3px; color: #5a4700; font-size: 0.72rem; font-weight: 650; letter-spacing: 0; }

.plan ul {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 7px;
  margin: 0;
  padding: 13px 16px 2px;
  list-style: none;
}
.plan li { position: relative; padding-left: 20px; color: #33445f; font-size: 0.85rem; line-height: 1.45; }
.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.24em;
  width: 4px;
  height: 8px;
  border-right: 2px solid var(--blue-2);
  border-bottom: 2px solid var(--blue-2);
  transform: rotate(45deg);
}

.plan__cta {
  display: block;
  margin: 12px 16px 16px;
  padding: 10px 12px;
  border-radius: var(--pill);
  background: var(--blue);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease;
}
.plan__cta:hover { background: var(--blue-2); }

.plan--featured { border: 2px solid var(--yellow); box-shadow: 0 14px 34px rgba(255, 196, 0, 0.18); }

.plans__note { margin-top: 10px; color: var(--muted); font-size: 0.82rem; text-align: center; }

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0;
  list-style: none;
}
.steps li { padding-top: 16px; border-top: 2px solid rgba(255, 255, 255, 0.35); }
.steps__num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
  border: 1px solid var(--yellow);
  border-radius: var(--pill);
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 750;
}
.steps h2 { margin-bottom: 4px; color: var(--ink); font-size: 1.05rem; }
.steps p { color: var(--ink); font-size: 0.9rem; line-height: 1.6; }

/* ---------- faq ---------- */

.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary {
  position: relative;
  padding: 13px 36px 13px 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 650;
  list-style: none;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue-2);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
}
.faq__list details[open] summary::after { content: "–"; }
.faq__list details p { margin: 0 0 14px; max-width: 76ch; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.faq__list--wide { max-width: 900px; }

/* ---------- contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: start;
}
.details { display: grid; gap: 16px; }
.details div { display: grid; gap: 2px; }
.details dt { color: var(--muted); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.details dd { color: var(--ink); font-size: 0.98rem; line-height: 1.55; }
.details dd a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.details dd a:hover { color: var(--blue-2); border-color: var(--blue-2); }
.map-link { display: inline-block; margin-top: 2px; color: var(--blue-2); font-size: 0.85rem; }

.contact__card {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(11, 31, 58, 0.1);
}
.contact__card h2 { margin-bottom: 6px; color: var(--ink); font-size: 1.18rem; }
.contact__card > p { margin-bottom: 16px; color: var(--muted); font-size: 0.9rem; }
.contact__card .btn { margin-bottom: 8px; }

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  list-style: none;
}
.socials a { color: var(--muted); font-size: 0.84rem; text-decoration: none; border-bottom: 1px solid transparent; }
.socials a:hover { color: var(--blue-2); border-color: var(--blue-2); }

.note-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.note-row p { max-width: 62ch; color: var(--muted); font-size: 0.94rem; }
.note-row--tight { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.section--navy .note-row--tight { border-top-color: rgba(255, 255, 255, 0.3); }
.section--navy .note-row p { color: #c6d6f2; }

/* ---------- footer ---------- */

.foot { flex-shrink: 0; padding: 22px 0 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); background: var(--blue); color: #b9cbe3; }
.foot__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.foot__brand img { height: 30px; width: auto; margin-bottom: 8px; padding: 4px 8px 4px 0; background: transparent; }
.foot__brand p { max-width: 32ch; color: #a9bfdd; font-size: 0.8rem; }
.foot__nav { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 16px; }
.foot a { justify-self: start; color: #cfe0f5; font-size: 0.84rem; text-decoration: none; border-bottom: 1px solid transparent; }
.foot a:hover { color: var(--yellow); border-color: var(--yellow); }
.foot__legal { display: grid; gap: 4px; justify-self: end; max-width: 38ch; color: #a9bfdd; font-size: 0.76rem; text-align: right; }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise 480ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__copy > *:nth-child(2) { animation-delay: 30ms; }
  .hero__copy > *:nth-child(3) { animation-delay: 70ms; }
  .hero__copy > *:nth-child(4) { animation-delay: 110ms; }
  .hero__copy > *:nth-child(5) { animation-delay: 150ms; }
  .hero__art { animation: rise 620ms 100ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .page-hero > .wrap > * { animation: rise 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .page-hero > .wrap > *:nth-child(2) { animation-delay: 40ms; }
  .page-hero > .wrap > *:nth-child(3) { animation-delay: 80ms; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
  .head-phone { display: none; }
}

@media (max-width: 1080px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .hero__art { max-width: 380px; }
}

@media (max-width: 1040px) {
  html { scroll-padding-top: 80px; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(11, 31, 58, 0.16);
  }
  .nav.is-open { display: flex; }
  .nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 12px 4px;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav__link.is-active::after { display: none; }
  .nav__menu {
    position: static;
    min-width: 0;
    margin: 4px 0 10px;
    padding: 4px;
    border: 0;
    box-shadow: none;
    background: var(--page-2);
  }

  .burger { display: block; }
  .hero__inner { grid-template-columns: 1fr; gap: 0; }
  .hero__copy { display: contents; }
  .hero__copy > .eyebrow { order: 1; }
  .hero__copy > h1 { order: 2; }
  .hero__lede {
    order: 3;
    margin-bottom: 4px;
    padding-bottom: 18px;
    border-bottom: 1px solid #b9cdea;
  }
  .hero__cta { order: 4; }
  .hero__art {
    display: block;
    order: 5;
    width: 100%;
    max-width: 440px;
    margin: 26px auto 0;
  }
  .hero__facts { order: 6; margin-top: 26px; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .contact { grid-template-columns: 1fr; gap: 24px; }
  .foot__inner { grid-template-columns: 1fr 1fr; }
  .foot__legal { grid-column: 1 / -1; justify-self: start; text-align: left; }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .topbar__where { display: none; }
  .topbar__inner { justify-content: center; }
  .topbar__contact {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
  }
  .topbar__contact a { font-size: 0.72rem; white-space: nowrap; }
  .topbar__contact span { display: none; }
  .site-head__inner { min-height: 64px; gap: 10px; }
  .brand img { height: 40px; }
  .site-head__actions { gap: 8px; }
  .lang-toggle { padding: 1px; }
  .lang-toggle__opt { padding: 4px 7px; font-size: 0.68rem; }
  .site-head__actions .btn--sm { padding: 8px 12px; font-size: 0.8rem; }
  .plans { grid-template-columns: 1fr 1fr; gap: 10px; }
  .plan ul { display: none; }
  .plan__head { padding: 8px; }
  .plan h2 { font-size: 0.72rem; }
  .plan__flag { display: none; }
  .plan__speed { padding: 10px 10px 2px; font-size: 0.72rem; }
  .plan__speed strong { font-size: 2rem; }
  .plan__price { padding: 5px 8px; font-size: 1rem; }
  .plan__price span { display: block; margin: 0; font-size: 0.62rem; }
  .plan__cta { margin: 8px 10px 10px; padding: 8px 6px; font-size: 0.72rem; }

  .benefits { grid-template-columns: 1fr 1fr; gap: 10px; }
  .benefit { padding: 14px; }
  .benefit__icon { width: 32px; height: 32px; margin-bottom: 6px; }
  .benefit h2 { font-size: 0.9rem; }
  .benefit p { font-size: 0.8rem; }

  .page-hero { padding: 20px 0 14px; }
  .section { padding: 20px 0; }
  .section--flush { padding-top: 14px; }
  .faq__list summary { padding: 10px 30px 10px 0; font-size: 0.9rem; }
  .faq__list details p { margin-bottom: 10px; }
  .steps { gap: 12px; }
  .steps h2 { font-size: 1rem; }
  .steps p { font-size: 0.86rem; }
  .contact__card { padding: 16px; }
  .details { gap: 10px; }

  .hero__facts { justify-content: center; text-align: center; gap: 8px 24px; }
  .hero__facts li { align-items: center; }

  .topbar { padding: 4px 0; }

  .page-hero { padding: 12px 0 10px; }
  .page-hero h1 { font-size: 1.48rem; }
  .page-hero__lede { font-size: 0.86rem; line-height: 1.5; }
  .section { padding: 12px 0; }
  .section--flush { padding-top: 10px; }

  .benefit { padding: 12px; }
  .benefit__icon { width: 28px; height: 28px; margin-bottom: 4px; }
  .benefit__icon svg { width: 16px; height: 16px; }
  .benefit h2 { font-size: 0.86rem; }
  .benefit p {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .plans { gap: 8px; }
  .plan__head { padding: 6px; }
  .plan h2 { font-size: 0.68rem; }
  .plan__speed { padding: 8px 8px 0; }
  .plan__speed strong { font-size: 1.9rem; }
  .plan__price { padding: 4px 6px; font-size: 0.95rem; }
  .plan__cta { margin: 6px 8px 8px; padding: 7px 4px; font-size: 0.68rem; }

  .steps { gap: 8px; }
  .steps li { padding-top: 12px; }
  .steps h2 { font-size: 0.95rem; }
  .steps p { font-size: 0.8rem; line-height: 1.42; }
  .steps__num { width: 26px; height: 26px; margin-bottom: 4px; }

  .faq__list summary { padding: 9px 28px 9px 0; }
  .contact__card { padding: 14px; }
  .contact__card .btn { padding: 10px 14px; }
  .socials a { font-size: 0.78rem; }
  .contact__card > p { margin-bottom: 12px; }
  .socials { margin-top: 8px; padding-top: 8px; }
  .details { gap: 6px; }
  .note-row { gap: 10px; }

  .foot { padding: 14px 0 12px; }
  .foot__inner { grid-template-columns: 1fr; gap: 8px; }
  .foot__brand p { display: none; }
  .foot__nav { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 2px 14px; }
  .foot__legal { font-size: 0.68rem; gap: 0; text-align: left; }
}


/* ---------- language prompt ---------- */

.lang-prompt {
  width: min(440px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 70px rgba(11, 31, 58, 0.3);
}
.lang-prompt::backdrop { background: rgba(11, 31, 58, 0.45); }
.lang-prompt__body { padding: 24px; }
.lang-prompt h2 { font-size: 1.3rem; letter-spacing: -0.02em; }
.lang-prompt__sub { margin-top: 4px; color: var(--muted); font-size: 0.9rem; }
.lang-prompt__options { display: grid; gap: 10px; margin-top: 18px; }
.lang-choice {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.lang-choice strong { font-size: 0.98rem; }
.lang-choice span { color: var(--muted); font-size: 0.82rem; }
.lang-choice:hover { border-color: var(--blue-2); background: var(--page-2); }
.lang-choice:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }

/* ---------- apply form ---------- */

.apply-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.form-card {
  margin: 0;
  padding: 16px 18px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.form-card legend {
  padding: 0 8px;
  color: var(--blue-2);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.field { display: block; margin-bottom: 9px; }
.field__label {
  display: inline-block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
}
.field__hint {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.35;
}
.req { margin-left: 2px; color: var(--orange); font-weight: 700; }
.field input,
.field select {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.3;
}
.field input:hover,
.field select:hover { border-color: #a9c1e4; }
.field input:focus-visible,
.field select:focus-visible { border-color: var(--blue-2); outline: 2px solid var(--blue-2); outline-offset: 0; }

.plan-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 6px 0 10px;
}
.plan-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.plan-option:hover { border-color: #a9c1e4; }
.plan-option input { width: auto; margin: 0; accent-color: var(--blue-2); }
.plan-option__body { display: flex; flex-direction: column; line-height: 1.2; }
.plan-option__body strong { font-size: 0.86rem; }
.plan-option__body span { color: var(--muted); font-size: 0.75rem; }
.plan-option:has(input:checked) { border-color: var(--blue-2); background: var(--page-2); }

.fee-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 8px 12px;
  background: var(--yellow);
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
}
.fee-line strong { font-size: 1rem; }

.agreement {
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.form-errors {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #e3b7b0;
  border-radius: 10px;
  background: #fdf4f3;
  color: #86281f;
  font-size: 0.86rem;
}
.form-errors ul { margin: 6px 0 0 18px; padding: 0; }

.review { max-width: 820px; margin-inline: auto; }
.review h2 { color: var(--ink); font-size: 1.45rem; letter-spacing: -0.02em; }
.review__note { margin-top: 4px; color: var(--muted); font-size: 0.9rem; }
.review__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
  margin: 18px 0;
}
.review__list div { padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.review__list dt { color: var(--muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.review__list dd { color: var(--ink); font-size: 0.94rem; }
.review__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.review__status { min-height: 1.2em; margin-top: 10px; color: var(--muted); font-size: 0.84rem; }

@media (max-width: 900px) {
  .apply-form__grid { grid-template-columns: 1fr; }
  .review__list { grid-template-columns: 1fr; }
}

/* ---------- support form ---------- */

.support-form { margin-bottom: 0; }
.support-form .field { margin-bottom: 6px; }
.support-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.support-form textarea {
  display: block;
  width: 100%;
  min-height: 60px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.4;
  resize: vertical;
}
.support-form textarea:hover { border-color: #a9c1e4; }
.support-form textarea:focus-visible { border-color: var(--blue-2); outline: 2px solid var(--blue-2); outline-offset: 0; }
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status { min-height: 1.2em; margin-top: 8px; color: var(--muted); font-size: 0.83rem; }
.form-status--ok { color: #1d6b3c; }
.form-status--error { color: #8a2b22; }
.presence-note {
  margin: 8px 0 0;
  padding: 7px 10px;
  border: 1px solid #f0d9a8;
  border-radius: 8px;
  background: #fff8e8;
  color: #805400;
  font-size: 0.78rem;
  line-height: 1.35;
}
.contact__alt { margin: 14px 0 0; color: var(--muted); font-size: 0.82rem; }
.contact__alt a { color: var(--blue-2); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact__alt a:hover { border-color: var(--blue-2); }

/* ---------- account button in the site header ---------- */

.account-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.87rem;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 150ms ease;
}
.account-link:hover { background: var(--blue-2); }
.account-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- auth pages ---------- */

.auth-head { background: var(--white); border-bottom: 1px solid var(--line); }
.auth-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.auth-head .brand img { height: 44px; width: auto; }
.auth-head__actions { display: flex; align-items: center; gap: 14px; }
.auth-back {
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.auth-back:hover { color: var(--blue-2); border-color: var(--blue-2); }

.auth { padding: 36px 0 48px; }
.auth__grid {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  justify-content: center;
}
.auth__card {
  width: 100%;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(11, 31, 58, 0.07);
}
.auth__card h1 {
  margin: 8px 0 8px;
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}
.auth__lede { margin-bottom: 20px; color: var(--muted); font-size: 0.95rem; }
.auth__form .field { margin-bottom: 12px; }

.pw { position: relative; display: block; }
.pw input { padding-right: 74px; }
.pw__toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 8px;
  border: 0;
  background: none;
  color: var(--blue-2);
  font-family: inherit;
  font-size: 0.79rem;
  font-weight: 650;
  cursor: pointer;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 16px;
  color: var(--muted);
  font-size: 0.89rem;
  cursor: pointer;
}
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue-2); }

.auth__help { margin-top: 14px; color: var(--muted); font-size: 0.86rem; }
.auth__help a { color: var(--blue-2); font-weight: 650; text-decoration: none; }
.auth__staff {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}
.auth__staff a { color: var(--blue-2); font-weight: 650; text-decoration: none; }
.auth__staff a:hover { text-decoration: underline; }
.auth__demo {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}
.auth__demo summary { cursor: pointer; font-weight: 650; }
.auth__demo p { margin-top: 6px; }

.auth__aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 32px;
  background: var(--blue);
  border-radius: 18px;
  color: #fff;
}
.auth__aside h2 {
  color: #fff;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.auth__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; color: #c6d6f2; font-size: 0.94rem; }
.auth__list li { position: relative; padding-left: 22px; }
.auth__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--yellow);
  border-bottom: 2px solid var(--yellow);
  transform: rotate(45deg);
}
.auth__plan {
  display: grid;
  gap: 2px;
  margin-top: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
}
.auth__plan-kicker { color: var(--yellow); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.auth__plan strong { font-size: 1.05rem; }
.auth__plan span { color: #c6d6f2; font-size: 0.86rem; }

.auth-foot { padding: 18px 0; background: var(--white); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; }
.auth-foot a { color: var(--blue-2); }

/* ---------- account dashboard ---------- */

.dash { padding: 24px 0 48px; }
.dash__grid {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.dash__side {
  position: sticky;
  top: 20px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.dash__who { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.dash__avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 750;
}
.dash__who-label { margin: 0; color: var(--muted); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; }
.dash__who strong { font-size: 0.9rem; }

.dash__nav { display: grid; gap: 2px; margin: 12px 0 14px; }
.dash__nav a,
.dash__nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.91rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.dash__nav svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.dash__nav a:hover,
.dash__nav button:hover { background: #f2f7fd; }
.dash__nav a.is-active { background: #e8f1fd; color: var(--blue-2); }
.dash__nav a.is-active svg { color: var(--blue-2); }
.dash__logout {
  width: 100%;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.dash__logout:hover { border-color: var(--blue-2); color: var(--blue-2); }
.dash__logout--sub { margin-top: 6px; border-color: transparent; font-size: 0.78rem; }

.dash__head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 14px; }
.dash__head h1 { color: var(--ink); font-size: clamp(1.7rem, 2.6vw, 2.1rem); letter-spacing: -0.03em; }
.dash__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; color: var(--muted); font-size: 0.85rem; }
.dash__hello { margin-top: 8px; font-size: 0.95rem; }
.dash__address { max-width: 26ch; color: var(--muted); font-size: 0.79rem; text-align: right; text-decoration: none; }

.pill { padding: 3px 9px; border-radius: 999px; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.pill--ok { background: #e3f5e9; color: #1d6b3c; }
.pill--warn { background: #fdeee0; color: #9a4b12; }
.pill--bad { background: #fde7e9; color: #a12b22; }
.pill--muted { background: #eef0f3; color: #59616c; }

.bill-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  padding: 24px;
  background: var(--blue);
  border-radius: 16px;
  color: #fff;
}
.bill-card::after {
  content: "";
  position: absolute;
  right: -50px;
  top: -50px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}
.bill-card__label { color: #c6d6f2; font-size: 0.73rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; }
.bill-card__amount { margin-top: 6px; font-size: clamp(1.9rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; }
.bill-card__due { margin-top: 2px; color: #c6d6f2; font-size: 0.85rem; }
.bill-card__actions { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.bill-card__link {
  padding: 4px;
  border: 0;
  background: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: underline;
  cursor: pointer;
}
.dash__note { margin-top: 8px; color: var(--muted); font-size: 0.77rem; }
.dash__h2 { margin: 22px 0 10px; color: var(--ink); font-size: 1.15rem; }

.repair {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.95rem;
}
.plan-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.plan-card__top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
}
.plan-card__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--page-2);
}
.plan-card__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.plan-card__title { flex: 1; }
.plan-card__name { color: var(--ink); font-size: 1.06rem; font-weight: 750; }
.plan-card__speed { margin-top: 2px; color: var(--muted); font-size: 0.86rem; }
.plan-card__price { color: var(--ink); font-size: 1.06rem; font-weight: 750; white-space: nowrap; }
.plan-card__price small { color: var(--muted); font-size: 0.78rem; font-weight: 600; }

.plan-card__details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 0;
  padding: 18px;
  border-top: 1px solid var(--line);
}
.plan-card__details dt { margin-bottom: 3px; color: var(--muted); font-size: 0.76rem; }
.plan-card__details dd { margin: 0; color: var(--ink); font-size: 0.95rem; }
.plan-card__full { grid-column: 1 / -1; }
.plan-card__actions { padding: 0 18px 14px; }
.plan-card__update {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
}
.plan-card__update:hover { border-color: var(--blue-2); color: var(--blue-2); }
.plan-card__toggle {
  width: 100%;
  padding: 12px 18px;
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}
.plan-card__toggle:hover { color: var(--blue-2); }

@media (max-width: 760px) {
  .plan-card__details { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .plan-card__details { grid-template-columns: 1fr; }
  .plan-card__top { flex-wrap: wrap; }
}
.plan-card__name { color: var(--ink); font-size: 1.02rem; font-weight: 750; }
.plan-card__speed { margin-top: 2px; color: var(--muted); font-size: 0.86rem; }
.plan-card__price { color: var(--ink); font-size: 1.02rem; font-weight: 750; }
.plan-card__price small { color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.dash__link {
  display: inline-block;
  margin-top: 10px;
  color: var(--blue-2);
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.dash__link:hover { border-color: var(--blue-2); }

.dialog {
  position: relative;
  width: min(480px, calc(100% - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 70px rgba(11, 31, 58, 0.3);
}
.dialog::backdrop { background: rgba(11, 31, 58, 0.45); }
.dialog__body {
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  padding: 24px;
  overflow-y: auto;
}
.dialog__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--muted);
  font-family: inherit;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.dialog__close:hover { border-color: var(--blue-2); color: var(--ink); }
.dialog__close:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.dialog h2 { padding-right: 40px; margin-bottom: 10px; font-size: 1.25rem; color: var(--ink); }
.dialog p { margin-bottom: 14px; color: var(--muted); font-size: 0.9rem; }
.dialog__list { display: grid; gap: 8px; margin: 0 0 18px; }
.dialog__list div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.dialog__list dt { color: var(--muted); font-size: 0.78rem; }
.dialog__list dd { max-width: 72%; margin: 0; font-size: 0.9rem; font-weight: 650; text-align: right; overflow-wrap: anywhere; }
.bill-actions { display: grid; gap: 8px; }
.pay-list { display: grid; gap: 4px; margin: 0 0 16px 18px; padding: 0; color: var(--ink); font-size: 0.92rem; }
.dialog__link {
  display: block;
  margin: 10px auto 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 1040px) {
  .auth__grid { grid-template-columns: 1fr; }
  .auth__aside { display: none; }
  .dash__grid { grid-template-columns: 1fr; }
  .dash__side { position: static; }
  .dash__nav { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .account-link span { display: none; }
  .account-link { padding: 9px; border-radius: 50%; }
  .auth-head .brand img { height: 36px; }
  .auth { padding: 20px 0 32px; }
  .auth__card { padding: 20px; }
  .bill-card { flex-direction: column; align-items: flex-start; }
  .bill-card__actions { flex-direction: row; align-items: center; }
  .dash__head { flex-direction: column; }
  .dash__address { text-align: left; }
  .repair, .plan-card { flex-direction: column; align-items: flex-start; }
}

/* ---------- billing + account help ---------- */

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.tabs__btn {
  margin-bottom: -1px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
}
.tabs__btn.is-active { color: var(--ink); border-bottom-color: var(--blue-2); }

.panel { padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.panel__hint { margin-bottom: 10px; color: var(--muted); font-size: 0.82rem; }

.stmt-list { display: grid; margin: 0; padding: 0; list-style: none; }
.stmt { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.stmt:first-child { border-top: 0; }
.stmt__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
}
.stmt__icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.stmt__text { display: grid; flex: 1; gap: 1px; }
.stmt__text strong { font-size: 0.95rem; }
.stmt__text span { color: var(--muted); font-size: 0.8rem; }
.stmt__view {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
}
.stmt__view:hover { border-color: var(--blue-2); color: var(--blue-2); }

.help-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.help-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  min-height: 118px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.help-card:hover { border-color: var(--blue-2); box-shadow: 0 10px 24px rgba(11, 31, 58, 0.08); }
.help-card svg { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.empty-state {
  padding: 32px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}
.empty-state svg {
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  fill: none;
  stroke: #9fb0c9;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.empty-state__title { margin-bottom: 2px; color: var(--ink); font-size: 1rem; font-weight: 650; }

.repair-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.repair-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.repair-item strong { flex: 1; font-size: 0.92rem; }
.repair-item span { color: var(--muted); font-size: 0.8rem; }
.ticket-item { display: block; }
.ticket-item__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.ticket-item__head strong { flex: 1; min-width: 150px; }
.ticket-item__body { margin-top: 8px; color: var(--ink); white-space: pre-wrap; font-size: 0.9rem; line-height: 1.5; }
.ticket-item__actions { margin-top: 10px; }

@media (max-width: 900px) {
  .help-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .help-grid { grid-template-columns: 1fr; }
  .help-card { min-height: 92px; gap: 14px; }
}

/* very small phones: keep the header on one line */
@media (max-width: 400px) {
  .site-head__inner { gap: 6px; min-height: 56px; }
  .brand img { height: 28px; }
  .site-head__actions { gap: 6px; }
  .lang-toggle { padding: 1px; }
  .lang-toggle__opt { padding: 2px 5px; font-size: 0.6rem; }
  .account-link { padding: 8px; }
  .account-link svg { width: 15px; height: 15px; }
  .site-head__actions .btn--sm { padding: 7px 9px; font-size: 0.72rem; }
  .burger { width: 34px; height: 34px; padding: 8px 7px; }
}

.dialog--wide { width: min(620px, calc(100% - 32px)); }
.dialog__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin: 4px 0 16px;
}
.dialog__grid .field { margin-bottom: 0; }
.dialog__grid .field--full { grid-column: 1 / -1; }
.dialog__grid input[readonly] { background: #eef3fa; color: var(--muted); }

@media (max-width: 560px) {
  .dialog__grid { grid-template-columns: 1fr; }
}

/* ---------- signup ---------- */

.auth--single .wrap { width: min(560px, 100% - 40px); }
.auth__card--plain {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 8px 0;
}
.auth__hint { margin: -4px 0 14px; color: var(--muted); font-size: 0.82rem; }
.auth__phone { margin-bottom: 10px; color: var(--muted); font-size: 0.88rem; }
.auth__phone strong { color: var(--ink); }

.auth__steps {
  display: grid;
  gap: 14px;
  margin: 4px 0 22px;
  padding: 0;
  list-style: none;
  counter-reset: auth-step;
}
.auth__steps li {
  position: relative;
  padding-left: 42px;
  counter-increment: auth-step;
}
.auth__steps li::before {
  content: counter(auth-step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8f1ff;
  color: var(--blue-2);
  font-size: 0.82rem;
  font-weight: 700;
}
.auth__steps strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 0.95rem; }
.auth__steps span { display: block; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }

.auth__cta { display: grid; gap: 10px; margin-bottom: 16px; }

.demo-code {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #fff7d6;
  border: 1px solid #efd67a;
  border-radius: 8px;
  color: #5c4a00;
  font-size: 0.83rem;
}
.demo-code strong { color: #5c4a00; }
#demo-code-value { letter-spacing: 0.18em; font-size: 1rem; }

.auth__resend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.linkish {
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue-2);
  font-family: inherit;
  font-size: 0.84rem;
  text-decoration: underline;
  cursor: pointer;
}

.auth__foot-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.auth__signup { margin-top: 10px; color: var(--muted); font-size: 0.88rem; }
.auth__signup a { color: var(--blue-2); font-weight: 650; }

.dialog__hint {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: -4px 0 14px;
  padding: 10px 12px;
  background: var(--page-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
.dialog__hint a { color: var(--blue-2); font-weight: 650; text-decoration: none; }
.dialog__hint a:hover { text-decoration: underline; }

/* ---------- password reset ---------- */

.channel-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 16px; }
.channel {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.channel input { width: auto; margin: 0; accent-color: var(--blue-2); }
.channel span { display: grid; gap: 1px; }
.channel strong { font-size: 0.9rem; }
.channel small { color: var(--muted); font-size: 0.76rem; }
.channel:has(input:checked) { border-color: var(--blue-2); background: var(--page-2); }

.otp-row { display: flex; gap: 8px; margin: 6px 0 12px; }
.otp-box {
  width: 52px;
  height: 56px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
}
.otp-box:focus-visible { border-color: var(--blue-2); outline: 2px solid var(--blue-2); outline-offset: 0; }

.otp-resend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 16px; color: var(--muted); font-size: 0.84rem; }
.otp-resend .linkish { font-size: 0.84rem; }

#back-two, #back-three { margin-top: 12px; }

@media (max-width: 480px) {
  .otp-row { gap: 6px; }
  .otp-box { width: 44px; height: 50px; font-size: 1.15rem; }
}

.verify-alt {
  display: grid;
  gap: 1px;
  width: 100%;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-family: inherit;
  text-align: center;
  cursor: pointer;
}
.verify-alt span { font-size: 0.9rem; font-weight: 650; }
.verify-alt small { color: var(--muted); font-size: 0.78rem; }
.verify-alt:hover { border-color: var(--blue-2); color: var(--blue-2); }

/* ---------- 404 ---------- */

.notfound { padding: clamp(48px, 9vw, 110px) 0; text-align: center; }
.notfound h1 {
  margin: 10px 0 10px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}
.notfound__lede { color: var(--muted); font-size: 1rem; }
.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

/* ---------- staff clients ---------- */

.staff { padding: 32px 0 56px; }
.staff-badge {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--page-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
#logout { background: none; border: 0; cursor: pointer; font-family: inherit; padding: 0; }

.staff-login { display: grid; }
.staff-login__card { max-width: 460px; margin: 24px auto 0; }
.staff-login__card h1 { margin: 8px 0 8px; color: var(--ink); font-size: 1.9rem; letter-spacing: -0.03em; }
.staff-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -2px 0 14px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}
.staff-trust input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue-2); flex: none; }

.staff-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.staff-head h1 { color: var(--ink); font-size: clamp(1.7rem, 2.6vw, 2.1rem); letter-spacing: -0.03em; }
.staff-count { margin-top: 4px; color: var(--muted); font-size: 0.86rem; }
.staff-search input {
  width: min(320px, 70vw);
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
}
.staff-search input:focus-visible { border-color: var(--blue-2); outline: 2px solid var(--blue-2); outline-offset: 0; }

.staff-table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.staff-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.staff-table th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.staff-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.staff-table tr:last-child td { border-bottom: 0; }
.staff-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.staff-table tbody tr:hover { background: #f6faff; }
.staff-view-btn {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
}
.staff-view-btn:hover { border-color: var(--blue-2); color: var(--blue-2); }
.staff-view-btn:disabled {
  background: #f2f4f8;
  border-color: #d7dee9;
  color: #8a96a8;
  opacity: 1;
  cursor: not-allowed;
}
.staff-view-btn:disabled:hover { background: #f2f4f8; border-color: #d7dee9; color: #8a96a8; }
.staff-empty { margin-top: 16px; color: var(--muted); font-size: 0.9rem; text-align: center; }

.staff-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.staff-tabs {
  display: flex;
  gap: 2px;
  margin: 4px 0 18px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.staff-tab {
  padding: 10px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}
.staff-tab:hover { color: var(--blue-2); }
.staff-tab.is-active { color: var(--ink); border-bottom-color: var(--yellow); }
.staff-tab:focus-visible { outline: 2px solid var(--blue-2); outline-offset: -2px; }
.staff-panel { display: grid; gap: 14px; }
.staff-panel[hidden] { display: none; }
.staff-client-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 14px;
  margin-bottom: 12px;
}
.staff-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}
.staff-filter {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.staff-filter span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.staff-filter select {
  min-width: 120px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
}
.staff-filter select:focus-visible {
  border-color: var(--blue-2);
  outline: 2px solid var(--blue-2);
  outline-offset: 0;
}
.staff-filters > .staff-view-btn { align-self: flex-end; }
.staff-client-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 6px;
  align-self: flex-end;
}
.staff-client-actions .staff-view-btn { width: 100%; }
.staff-client-tools .staff-search { flex: 1 1 260px; max-width: 360px; margin-left: auto; }
.staff-client-tools .staff-search input { width: 100%; }

.staff-actions { white-space: nowrap; text-align: right; }
.staff-actions .staff-view-btn + .staff-view-btn { margin-left: 6px; }

.staff-dash { margin-bottom: 22px; }
.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 10px;
}
.dash-head .dash-h { margin: 0; }
.dash-head:first-child { margin-top: 0; }
.dash-filter {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
}
.dash-filter select {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
}
.dash-panel-wide { margin-top: 14px; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.stat {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.stat strong { display: block; color: var(--ink); font-size: 1.55rem; letter-spacing: -0.02em; }
.stat span { display: block; margin-top: 2px; color: var(--muted); font-size: 0.76rem; }
.stat--link {
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}
.stat--link:hover { border-color: var(--blue-2); }
.stat--link:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.dash-h {
  margin: 18px 0 10px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dash-h:first-child { margin-top: 0; }
.panel__meta { color: var(--muted); font-size: 0.74rem; white-space: nowrap; }
.billing-bar {
  height: 10px;
  margin: 12px 0 8px;
  border-radius: 999px;
  background: var(--page-2);
  overflow: hidden;
}
.billing-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--yellow);
  transition: width 0.25s ease;
}
.billing-caption { margin-bottom: 12px; color: var(--muted); font-size: 0.8rem; }
.billing-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.billing-split strong { display: block; color: var(--ink); font-size: 1.2rem; }
.billing-split span { color: var(--muted); font-size: 0.72rem; }

.bar-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bar-row {
  display: grid;
  grid-template-columns: minmax(82px, 1.1fr) minmax(60px, 2fr) auto;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
}
.bar-label {
  overflow: hidden;
  color: var(--ink);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-track { height: 8px; border-radius: 999px; background: var(--page-2); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--blue-2); }
.region-pie-layout {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.region-pie {
  position: relative;
  flex: none;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--page-2);
  box-shadow: inset 0 0 0 1px rgba(11, 31, 58, 0.08);
  cursor: help;
}
.region-pie-legend {
  display: grid;
  flex: 1 1 260px;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.region-pie-item { margin: 0; }
.region-pie-button {
  display: block;
  width: 100%;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.region-pie-button:hover { border-color: var(--line); background: #f5f9ff; }
.region-pie-button:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 1px; }
.region-pie-item.is-active .region-pie-button { border-color: #f0d9a8; background: #fff8e8; }
.region-pie-top { display: flex; align-items: center; gap: 8px; }
.region-pie-top .dot { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.region-pie-name { flex: 1; min-width: 0; font-size: 0.82rem; font-weight: 750; }
.region-pie-count { color: var(--muted); font-size: 0.72rem; white-space: nowrap; }
.region-pie-empty { color: var(--muted); font-size: 0.84rem; }
@media (max-width: 700px) {
  .region-pie { width: 150px; height: 150px; }
  .region-pie-legend { flex-basis: 100%; }
}

.plan-pie-layout {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.plan-pie {
  position: relative;
  flex: none;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--page-2);
  box-shadow: inset 0 0 0 1px rgba(11, 31, 58, 0.08);
  cursor: help;
}
.pie-tooltip {
  position: absolute;
  z-index: 5;
  width: max-content;
  max-width: 220px;
  padding: 6px 9px;
  border-radius: 7px;
  background: rgba(11, 31, 58, 0.94);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 10px));
  box-shadow: 0 6px 18px rgba(11, 31, 58, 0.24);
}
.plan-legend {
  display: grid;
  flex: 1 1 190px;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.plan-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}
.plan-legend .dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.plan-legend .name { flex: 1; min-width: 0; }
.plan-legend .value { color: var(--muted); font-size: 0.74rem; white-space: nowrap; }
.plan-pie-empty { color: var(--muted); font-size: 0.84rem; }
.bar-value { color: var(--muted); font-size: 0.72rem; white-space: nowrap; }
.bar-empty, .mini-empty { color: var(--muted); font-size: 0.82rem; }

.mini-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mini-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.mini-row:last-child { padding-bottom: 0; border-bottom: 0; }
.mini-row strong { display: block; color: var(--ink); font-size: 0.84rem; }
.mini-row span { display: block; color: var(--muted); font-size: 0.72rem; }
.mini-row b { color: var(--ink); font-size: 0.82rem; white-space: nowrap; }
.staff-profile { max-width: 760px; }
#staff-logout-all { margin-bottom: 10px; }
.staff-logout-hint { margin-top: 0; }

.staff-inbox .panel__head { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.staff-inbox__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.staff-inbox__filters { display: flex; flex-wrap: wrap; gap: 6px; }
.staff-inbox__filters .is-active { border-color: var(--blue-2); color: var(--blue-2); background: #eef7ff; }
.inbox-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.inbox-item { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.inbox-item.is-resolved { background: #f8fbff; }
.inbox-item__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.inbox-item__top strong { color: var(--ink); font-size: 1rem; }
.inbox-kind {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.inbox-time { margin-left: auto; color: var(--muted); font-size: 0.76rem; }
.inbox-contact { display: flex; flex-wrap: wrap; gap: 3px 14px; margin-top: 4px; color: var(--muted); font-size: 0.82rem; }
.inbox-contact a { color: var(--blue-2); text-decoration: none; }
.ticket-client-link { font-weight: 650; }
.ticket-client-link:hover { text-decoration: underline; }
.inbox-body { margin-top: 10px; color: var(--ink); white-space: pre-wrap; font-size: 0.92rem; line-height: 1.5; }
.inbox-item.is-resolved .inbox-body { color: var(--muted); }
.inbox-resolved { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: var(--page-2); color: var(--muted); font-size: 0.8rem; }
.inbox-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.inbox-actions a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 0.8rem; font-weight: 650; text-decoration: none; }
.inbox-actions a:hover { border-color: var(--blue-2); color: var(--blue-2); }
.inbox-delete { color: #a12b22; border-color: #e3b7b0; }
.inbox-delete:hover { color: #7f1f18; border-color: #a12b22; background: #fdf4f3; }
.ticket-thread { display: grid; gap: 8px; margin-top: 12px; }
.ticket-reply {
  padding: 10px 12px;
  border-left: 3px solid var(--line);
  border-radius: 6px;
  background: var(--page-2);
}
.ticket-reply--staff { border-left-color: var(--blue-2); background: #eef7ff; }
.ticket-reply--client { border-left-color: var(--yellow); }
.ticket-reply__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--muted); font-size: 0.74rem; }
.ticket-reply__meta strong { color: var(--ink); }
.ticket-reply__body { margin-top: 4px; color: var(--ink); white-space: pre-wrap; font-size: 0.88rem; line-height: 1.45; }
.ticket-reply-form { margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 8px; background: #f8fbff; }
.ticket-reply-form textarea {
  display: block;
  width: 100%;
  min-height: 74px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  resize: vertical;
}
.ticket-reply-form textarea:focus-visible { border-color: var(--blue-2); outline: 2px solid var(--blue-2); outline-offset: 0; }
.ticket-reply-form .check {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.ticket-reply-form .check input { width: 16px; height: 16px; margin: 0; }
.ticket-reply-form__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ticket-reply-form__status { margin-top: 6px; font-size: 0.8rem; }
.staff-name-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin: 14px 0 4px;
}
.staff-name-form .field { flex: 1 1 260px; margin-bottom: 0; }
.staff-name-form .form-status { flex-basis: 100%; margin: 0; }

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.settings-item {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
}
.settings-item span { display: block; color: var(--muted); font-size: 0.72rem; }
.settings-item strong { display: block; margin-top: 2px; color: var(--ink); font-size: 0.9rem; }
.settings-h { margin: 18px 0 8px; color: var(--ink); font-size: 0.95rem; }
.settings-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.settings-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}
.settings-stack .settings-actions--sticky {
  position: static;
  bottom: auto;
  z-index: auto;
  padding-top: 6px;
  border-top: 0;
  background: transparent;
}
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chip-list li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.78rem;
}
.chip-list .mini-empty { padding: 0; border: 0; background: none; color: var(--muted); }
.settings-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0 14px;
}
.settings-checks .check {
  margin: 2px 0;
  color: var(--ink);
  font-size: 0.86rem;
}
.settings-save {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.settings-save .form-status { margin: 0; }
.settings-item input,
.settings-item select {
  width: 100%;
  margin-top: 6px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
}
.settings-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.settings-actions .form-status { margin: 0; }
.settings-list { display: flex; flex-direction: column; }
.settings-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 3px 0;
}
.settings-row input {
  flex: 1 1 0;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
}
.settings-row input[data-field="code"] {
  flex: 0 0 92px;
  text-transform: uppercase;
}
#settings-plans td input {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
}
.settings-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}
.settings-head-actions .panel__meta { white-space: nowrap; }
.queue-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
#queue-process-status:empty { display: none; }
.queue-health {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 14px;
}
.queue-health-card {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
}
.queue-health-card span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.queue-health-card strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.2;
}
.queue-health-card small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.queue-health-card--wide { grid-column: 1 / -1; }
.queue-health-card.is-warn strong { color: #a15c00; }
.queue-health-card.is-bad strong { color: #a12b22; }
@media (max-width: 700px) {
  .queue-health { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .queue-health-card--wide { grid-column: 1 / -1; }
}
.queue-error-box {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid #efccc8;
  border-radius: 9px;
  background: #fdecea;
  color: #8a2b22;
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.queue-error-fields {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.queue-error-current {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}
.queue-error-fields .field { margin-bottom: 0; }
.queue-error-fields textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
}
.queue-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.queue-row-actions .staff-view-btn {
  padding: 5px 9px;
  font-size: 0.78rem;
}
.queue-delete,
.queue-delete-all {
  color: #a12b22;
  border-color: #efccc8;
}
.queue-delete:hover,
.queue-delete-all:hover {
  background: #fdecea;
  border-color: #a12b22;
  color: #a12b22;
}
@media (max-width: 700px) {
  .settings-head-actions { flex-wrap: wrap; justify-content: flex-end; }
}
.settings-subtabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 4px;
  margin: 4px 0 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #eef2f7;
  overflow-x: auto;
}
.settings-subtab {
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #5b6675;
  font-family: inherit;
  font-size: 0.87rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}
.settings-subtab:hover { background: #e4ebf5; color: var(--ink); }
.settings-subtab.is-active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(20, 45, 90, 0.12);
}
.settings-subtab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 90, 180, 0.24);
}
.settings-subpanel[hidden] { display: none; }
.settings-subpanel:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 4px; }
.settings-group {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #e1e8f1;
  border-radius: 12px;
  background: #fbfcfe;
}
.settings-group legend {
  padding: 0 6px;
  border-radius: 4px;
  background: #fbfcfe;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.settings-required-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.required-option {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 210px;
  max-width: 280px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid #dfe6ef;
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.88rem;
  cursor: pointer;
}
.required-option:hover { border-color: #b9cbe3; }
.required-option:has(input:checked) { border-color: #8db4e8; background: #f2f7ff; }
.required-option.is-locked { background: #f5f7fa; color: var(--muted); cursor: default; }
.required-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--blue-2);
}
.settings-preview {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
  color: var(--muted);
  font-size: 0.88rem;
}
.settings-preview--error {
  border-color: #f3c2bd;
  background: #fdecea;
  color: #a12b22;
}
.settings-actions--sticky {
  position: sticky;
  bottom: 8px;
  z-index: 4;
  padding: 10px 0 6px;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.settings-required-groups { display: grid; gap: 12px; }
.settings-required-groups .settings-group { margin: 0; }
.settings-cols--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 700px) {
  .settings-cols { grid-template-columns: 1fr; }
  .required-option { flex-basis: 100%; max-width: none; }
}



.dash-cols {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}
.dash-stack {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}
.panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.panel h2 { margin-bottom: 8px; color: var(--ink); font-size: 1rem; }
.panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.panel__link { color: var(--blue-2); font-size: 0.78rem; font-weight: 650; text-decoration: none; }
.panel__hint { margin-bottom: 10px; color: var(--muted); font-size: 0.8rem; }
.announcement-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 20px;
  align-items: start;
}
.announcement-preview {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
}
.announcement-preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.announcement-preview__head h3 { margin: 0; color: var(--ink); font-size: 0.95rem; }
.announcement-preview__item { margin-top: 12px; }
.announcement-preview__label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.site-notice.site-notice--preview {
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: left;
}
.site-notice--preview p { flex: 1; }
.site-notice.site-notice--preview .site-notice__close {
  width: auto;
  height: auto;
  border: 0;
  font-size: 1rem;
  opacity: 0.65;
}
.site-notice.site-notice--preview.is-empty { background: var(--page-2); color: var(--muted); font-weight: 400; }
.site-notice.site-notice--preview.is-empty .site-notice__close { display: none; }
.site-notice.site-notice--preview.is-empty .site-notice__track { position: static; width: auto; animation: none; }
.site-notice.site-notice--preview.is-empty .site-notice__track span:not(:first-child) { display: none; }
.site-notice.site-notice--preview.is-hidden { opacity: 0.5; }

@media (max-width: 900px) {
  .announcement-layout { grid-template-columns: 1fr; }
}

.audit-list { display: grid; gap: 10px; max-height: 260px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.audit-list li { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.audit-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.audit-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 0.84rem; }
.audit-top span { color: var(--muted); font-size: 0.7rem; white-space: nowrap; }
.audit-list p { margin: 2px 0 0; color: var(--muted); font-size: 0.76rem; }
.audit-empty { color: var(--muted); font-size: 0.84rem; }

.activity-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 8px;
}
.activity-dialog { width: min(900px, calc(100% - 32px)); }
.activity-filters .field { margin: 0; }
.activity-search { grid-column: span 2; }
.activity-filter-actions {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}
.activity-presets {
  display: flex;
  grid-column: 1 / -1;
  gap: 6px;
  flex-wrap: wrap;
}
.activity-list {
  display: grid;
  gap: 8px;
  max-height: 52vh;
  margin: 12px 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}
.activity-row {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}
.activity-row__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.activity-row__head strong { font-size: 0.88rem; }
.activity-row__head span { color: var(--muted); font-size: 0.72rem; white-space: nowrap; }
.activity-row__meta { margin-top: 2px; color: var(--muted); font-size: 0.76rem; }
.activity-row__details { margin: 4px 0 0; color: var(--ink); font-size: 0.82rem; overflow-wrap: anywhere; }
.activity-empty { padding: 16px; color: var(--muted); text-align: center; }
.activity-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 10px 0 14px;
}
.activity-pager span { color: var(--muted); font-size: 0.8rem; }
@media (max-width: 800px) {
  .activity-filters { grid-template-columns: 1fr 1fr; }
  .activity-search { grid-column: 1 / -1; }
}

.installation-dialog { width: min(1100px, calc(100% - 32px)); }
.installation-dialog .dialog__close { top: 16px; right: 16px; }
.installation-dialog #installation-title { padding-right: 42px; }
.installation-dialog .dialog__body > .btn--wide { margin-top: 14px; }
.installation-row-actions { white-space: nowrap; }
.installation-edit-dialog { width: min(560px, calc(100% - 32px)); }
#installation-mark-row { margin: 10px 0 4px; }
#installation-readonly-note { margin-top: 8px; }
.installation-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.installation-summary > div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfe;
}
.installation-summary strong { display: block; color: var(--ink); font-size: 1.2rem; }
.installation-summary span { display: block; color: var(--muted); font-size: 0.72rem; }
.installation-next strong { font-size: 0.86rem; line-height: 1.35; }
.installation-filter { max-width: 260px; margin-bottom: 12px; }
.installation-table td { padding: 8px 10px; }
.installation-table th { padding: 8px 10px; }
@media (max-width: 800px) {
  .installation-summary { grid-template-columns: 1fr 1fr; }
  .installation-filter { max-width: none; }
}
@media (max-width: 700px) {
  #installation-dialog .installation-table th:nth-child(3),
  #installation-dialog .installation-table td:nth-child(3),
  #installation-dialog .installation-table th:nth-child(4),
  #installation-dialog .installation-table td:nth-child(4),
  #installation-dialog .installation-table th:nth-child(5),
  #installation-dialog .installation-table td:nth-child(5),
  #installation-dialog .installation-table th:nth-child(6),
  #installation-dialog .installation-table td:nth-child(6) {
    display: table-cell;
  }
}

.copy-btn {
  margin-left: 8px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.66rem;
  cursor: pointer;
}
.copy-btn:hover { border-color: var(--blue-2); color: var(--blue-2); }

.team-toolbar { display: flex; justify-content: flex-end; margin: 4px 0 10px; }
.team-list { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.team-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.team-row:last-child { border-bottom: 0; }
.team-info strong { display: block; color: var(--ink); font-size: 0.92rem; }
.team-info span { display: block; color: var(--muted); font-size: 0.78rem; }
.team-info small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.72rem; }
.team-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.team-empty { padding: 8px 0; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 600px) {
  .team-row { flex-direction: column; }
  .team-actions { justify-content: flex-start; }
}

.client-notes {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid #f0d58a;
  border-radius: 8px;
  background: #fff8e6;
  color: var(--ink);
  font-size: 0.84rem;
  white-space: pre-wrap;
}

.dialog__rule { margin: 20px 0; border: 0; border-top: 1px solid var(--line); }
.twofa-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #f8fbff;
}
.twofa-qr {
  display: block;
  width: 220px;
  max-width: 100%;
  margin: 10px auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.twofa-box code {
  display: block;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #eef3fa;
  color: var(--ink);
  font-size: 0.82rem;
  word-break: break-all;
}
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
}
.field textarea:focus-visible { border-color: var(--blue-2); outline: 2px solid var(--blue-2); outline-offset: 0; }

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-cols { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .staff-tabs {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 4px;
    border-bottom: 0;
    padding-bottom: 4px;
  }
  .staff-tab {
    flex: 1 1 auto;
    min-height: 40px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
  }
  .staff-tab.is-active {
    border-color: var(--blue-2);
    border-bottom-color: var(--blue-2);
    background: #eef7ff;
  }
  .staff-view-btn,
  .inbox-actions a,
  .inbox-actions button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
  .dialog__actions { flex-wrap: wrap; }
}

#client-dialog {
  position: fixed;
  inset: 0;
  width: min(960px, calc(100% - 32px));
  margin: auto;
}
.client-profile__head { margin-bottom: 16px; }
.client-profile__head h2 { margin: 0; }
.client-profile__sub { margin: 4px 0 0; color: var(--muted); font-size: 0.88rem; }
.client-profile {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.client-profile__section {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
}
.client-profile__section--wide { grid-column: 1 / -1; }
.client-profile__section h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.client-profile__fields { display: flex; flex-direction: column; margin: 0; }
.client-profile__field {
  display: grid;
  grid-template-columns: minmax(105px, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #e6edf6;
}
.client-profile__field:last-child { padding-bottom: 0; border-bottom: 0; }
.client-profile__field dt { color: var(--muted); font-size: 0.78rem; }
.client-profile__field dd {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  margin: 0;
  font-size: 0.86rem;
  font-weight: 650;
  text-align: right;
}
.client-profile__field dd span { overflow-wrap: anywhere; }
.client-profile__field .copy-btn { flex: none; margin-left: 0; }
.client-profile__section--wide .client-profile__field { grid-template-columns: 80px minmax(0, 1fr); }
.client-profile__section--wide .client-profile__field dd { justify-content: flex-start; text-align: left; }
@media (max-width: 700px) {
  #client-dialog {
    width: calc(100% - 12px);
    max-height: calc(100dvh - 24px);
  }
  #client-dialog .dialog__body {
    padding: 18px 16px;
    max-height: calc(100dvh - 56px);
  }
  .client-profile { grid-template-columns: 1fr; gap: 10px; }
  .client-profile__section { padding: 12px; }
  .client-profile__section--wide { grid-column: auto; }
  .client-profile__field,
  .client-profile__section--wide .client-profile__field {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 8px 0;
  }
  .client-profile__field dd,
  .client-profile__section--wide .client-profile__field dd {
    justify-content: flex-start;
    text-align: left;
  }
}

.client-login {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
}
.client-login h3 { margin-bottom: 6px; color: var(--ink); font-size: 1rem; }
.client-login p { margin-bottom: 10px; }
.client-login__state { color: var(--muted); font-size: 0.86rem; }
.client-login__state.pill--ok { color: var(--ok, #0f7b45); }
.client-login__state.pill--warn { color: var(--warn, #a35b00); }

.temp-password {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px dashed var(--blue-2);
  border-radius: 10px;
  background: var(--white);
}
.temp-password code {
  display: inline-block;
  margin: 4px 8px 8px 0;
  padding: 6px 10px;
  border-radius: 6px;
  background: #eef3fa;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.temp-password .dialog__hint { margin-bottom: 0; }

.dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 700px) {
  .staff-tab { padding: 10px 9px; font-size: 0.82rem; }
  .staff-client-tools { align-items: stretch; }
  .staff-client-tools .staff-search { max-width: none; margin-left: 0; flex-basis: 100%; }
  .staff-client-actions { flex-direction: row; width: 100%; }
  .staff-client-actions .staff-view-btn { flex: 1 1 0; }
  .staff-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .staff-filter select { width: 100%; min-width: 0; }
  .staff-filters > .staff-view-btn { grid-column: span 2; justify-self: start; }
}

@media (max-width: 700px) {
  .staff-table:not(.staff-table--clients) th:nth-child(3),
  .staff-table:not(.staff-table--clients) td:nth-child(3),
  .staff-table:not(.staff-table--clients) th:nth-child(4),
  .staff-table:not(.staff-table--clients) td:nth-child(4),
  .staff-table:not(.staff-table--clients) th:nth-child(5),
  .staff-table:not(.staff-table--clients) td:nth-child(5),
  .staff-table:not(.staff-table--clients) th:nth-child(6),
  .staff-table:not(.staff-table--clients) td:nth-child(6) { display: none; }
  .staff-search input { width: 100%; }
  .staff-actions .staff-view-btn { padding: 6px 9px; font-size: 0.76rem; }
}

/* ---------- site announcement ---------- */

.site-notice {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 20px;
  overflow: hidden;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
}
.site-notice p { margin: 0; }
.site-notice__viewport { position: relative; flex: 1; min-width: 0; height: 1.35em; overflow: hidden; }
.site-notice__track {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  width: max-content;
  animation: site-notice-slide 18s linear infinite;
  will-change: transform;
}
.site-notice__track span { padding-right: 4rem; white-space: nowrap; }
.site-notice:hover .site-notice__track { animation-play-state: paused; }
@keyframes site-notice-slide {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--notice-loop, 200px))); }
}
@media (prefers-reduced-motion: reduce) {
  .site-notice__viewport { height: auto; }
  .site-notice__track { position: static; width: auto; animation: none; }
  .site-notice__track span { padding-right: 0; white-space: normal; }
  .site-notice__track span:not(:first-child) { display: none; }
}
.site-notice__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(11, 31, 58, 0.25);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.site-notice__close:hover { background: rgba(11, 31, 58, 0.08); }

.data-mode-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 11px 14px;
  border: 1px solid #f0d9a8;
  border-radius: 12px;
  background: #fff8e8;
  color: #6d4b10;
  font-size: 0.88rem;
  line-height: 1.45;
}
.data-mode-banner[hidden] { display: none; }
.data-mode-banner strong { color: #5c3d08; }
.data-mode-banner .staff-view-btn {
  flex: none;
  background: #fff;
  border-color: #e5c98c;
  color: #6d4b10;
}
.data-mode-banner .staff-view-btn:hover { border-color: #b98b2e; color: #5c3d08; }
.data-mode-options { display: grid; gap: 10px; margin: 12px 0; }
.data-mode-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
  cursor: pointer;
}
.data-mode-option:has(input:checked) {
  border-color: var(--blue-2);
  background: #f5f9ff;
  box-shadow: inset 0 0 0 1px rgba(30, 90, 180, 0.18);
}
.data-mode-option input { margin-top: 3px; accent-color: var(--blue-2); flex: none; }
.data-mode-option > span { display: grid; gap: 4px; min-width: 0; }
.data-mode-option strong { font-size: 0.95rem; }
.data-mode-option small { color: var(--muted); line-height: 1.45; }
.data-mode-option a { width: fit-content; font-size: 0.8rem; color: var(--blue-2); }
#add-client:disabled { opacity: 0.55; cursor: not-allowed; }
@media (max-width: 700px) {
  .data-mode-banner { flex-direction: column; align-items: flex-start; }
}

/* ---------- mobile / tablet usability fixes ---------- */

#panel-settings .panel { min-width: 0; width: 100%; }
.settings-subtabs { min-width: 0; max-width: 100%; }

@media (max-width: 700px) {
  /* Keep the settings header from forcing a desktop-width panel. */
  .panel__head { flex-wrap: wrap; }
  .settings-head-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .settings-head-actions .panel__meta { white-space: normal; }
  .settings-subtabs { position: static; flex-wrap: wrap; overflow-x: visible; }
  .settings-subtab { flex: 1 1 auto; }
  #panel-settings .settings-actions--sticky {
    position: static;
    padding-top: 6px;
    border-top: 0;
    background: transparent;
  }
  .settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Avoid iOS Safari zooming when a form control receives focus. */
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea { font-size: 16px; }
}

@media (max-width: 480px) {
  .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  /* Client table becomes a card list so the actions are always visible. */
  .staff-table--clients { font-size: 0.9rem; }
  .staff-table--clients thead { display: none; }
  .staff-table--clients,
  .staff-table--clients tbody,
  .staff-table--clients tr,
  .staff-table--clients td { display: block; width: 100%; }
  .staff-table--clients tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }
  .staff-table--clients tr:last-child { border-bottom: 0; }
  .staff-table--clients td { padding: 0; border: 0; min-width: 0; }
  .staff-table--clients td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .staff-table--clients td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .staff-table--clients td:nth-child(4) { grid-column: 2; grid-row: 1; justify-self: end; text-align: right; }
  .staff-table--clients td:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 1rem;
    font-weight: 700;
  }
  .staff-table--clients td:nth-child(3) { grid-column: 1; grid-row: 3; }
  .staff-table--clients td:nth-child(7) { grid-column: 2; grid-row: 3; justify-self: end; text-align: right; }
  .staff-table--clients td:nth-child(5) { display: none; }
  .staff-table--clients td:nth-child(6) { grid-column: 1 / -1; grid-row: 4; }
  .staff-table--clients td:nth-child(8) {
    grid-column: 1 / -1;
    grid-row: 5;
    display: flex;
    gap: 8px;
    margin-top: 4px;
  }
  .staff-table--clients td:nth-child(8)::before { display: none; }
  .staff-table--clients td:nth-child(8) .staff-view-btn { flex: 1 1 0; min-height: 44px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .staff-table--clients th:nth-child(5),
  .staff-table--clients td:nth-child(5),
  .staff-table--clients th:nth-child(6),
  .staff-table--clients td:nth-child(6) { display: none; }
}

@media (max-width: 900px) {
  /* Touch targets: 44px minimum on phones and tablets. */
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea { min-height: 44px; font-size: 16px; }
  .pw__toggle { min-width: 44px; min-height: 44px; }
  .check { min-height: 44px; }
  .btn,
  .btn--sm,
  .staff-view-btn,
  .staff-tab,
  .settings-subtab,
  .tabs__btn,
  .auth-back,
  .dash__logout,
  .bill-card__link,
  .plan-card__update,
  .plan-card__toggle,
  .plan__cta,
  .region-pie-button,
  .lang-toggle { min-height: 44px; }
  .site-notice__close,
  .burger { width: 44px; height: 44px; }
  .site-notice__close { display: inline-flex; align-items: center; justify-content: center; }
  #panel-settings .settings-actions--sticky {
    position: static;
    padding-top: 6px;
    border-top: 0;
    background: transparent;
  }
}

@media (max-width: 700px) {
  /* Compact the account sidebar so the balance is closer to the top. */
  .dash__side { padding: 12px; }
  .dash__who { display: none; }
  .dash__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 8px;
  }
  .dash__nav a,
  .dash__nav button {
    flex: 1 1 auto;
    min-height: 44px;
    padding: 8px 10px;
  }
  .dash__logout { min-height: 44px; }
  .dash__logout--sub { margin-top: 4px; }
}

@media (max-width: 700px) {
  /* Keep the plan inclusions visible on phones and small tablets. */
  .plan ul { display: grid; }
}

@media (max-width: 520px) {
  /* One plan per row so the inclusions are readable on small phones. */
  .plans { grid-template-columns: 1fr; }
}
/* ---------- support tickets ---------- */
.ticket-counters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 12px;
}
.ticket-counter {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
}
.ticket-counter span {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ticket-counter strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 1.25rem;
}
.ticket-report {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
}
.ticket-report summary {
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}
.ticket-report__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 14px;
  margin-top: 9px;
}
.ticket-report__grid span {
  display: block;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ticket-report__grid strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.ticket-filters {
  align-items: flex-end;
  margin-bottom: 10px;
}
.ticket-filters .staff-filter select { min-width: 120px; }
.ticket-search {
  flex: 1 1 220px;
  max-width: 360px;
  margin-left: 0;
}
.ticket-search input { width: 100%; }
.ticket-number {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}
.ticket-subject {
  flex: 1 1 220px;
  color: var(--ink);
  font-size: 1rem;
}
.ticket-priority {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.priority--urgent { background: #fde7e9; color: #a12b22; }
.priority--high { background: #fdeee0; color: #9a4b12; }
.priority--normal { background: #e8f1fd; color: #235d9f; }
.priority--low { background: #eef0f3; color: #59616c; }
.ticket-category,
.ticket-assignee {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.68rem;
  font-weight: 650;
}
.ticket-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.ticket-control {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ticket-control select {
  min-width: 108px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.82rem;
}
.ticket-attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.ticket-attachment-list a {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbff;
  color: var(--blue-2);
  font-size: 0.74rem;
  text-decoration: none;
}
.ticket-attachment-list a.is-internal {
  border-color: #efccc8;
  background: #fdecea;
  color: #8a2b22;
}
.ticket-reply--internal {
  border-left-color: #a12b22;
  background: #fdecea;
}
.ticket-file-input {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
}
.ticket-attach {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
@media (max-width: 700px) {
  .ticket-counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ticket-filters { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .ticket-search { grid-column: 1 / -1; max-width: none; }
  .ticket-filters #inbox-clear { grid-column: 1 / -1; justify-self: start; }
  .ticket-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .ticket-control select { width: 100%; }
  .ticket-controls > .staff-view-btn { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .ticket-control select,
  .ticket-filters .staff-filter select { font-size: 16px; }
}

/* keep ticket layouts inside narrow phones */
.staff-view,
.staff-panel,
.staff-inbox,
.staff-inbox.panel,
.inbox-list,
.inbox-item,
.repair-list,
.repair-item,
.ticket-item,
.ticket-reply-form,
.ticket-thread,
.ticket-reply,
.ticket-controls,
.ticket-filters,
.ticket-filters .staff-filter,
.ticket-search,
.ticket-counters,
.ticket-counter {
  min-width: 0;
}
.inbox-item__top > *,
.inbox-contact > *,
.ticket-reply__meta > *,
.ticket-item__head > * {
  min-width: 0;
}
.ticket-subject,
.inbox-body,
.ticket-reply__body,
.ticket-item__body,
.ticket-attachment-list a,
.ticket-item__head strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.ticket-reply-form textarea,
.ticket-reply-form input,
.ticket-control select,
.ticket-filters .staff-filter select {
  max-width: 100%;
}
@media (max-width: 700px) {
  .staff-inbox.panel { padding: 14px; }
  .inbox-item { padding: 12px; }
  .ticket-reply-form { padding: 10px; }
  .ticket-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ticket-control select { min-width: 0; width: 100%; }
  .ticket-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ticket-filters .staff-filter select { min-width: 0; width: 100%; }
  .ticket-report__grid { grid-template-columns: 1fr; }
}
