:root {
  --root-blue: #0f5289;
  --root-blue-dark: #08365f;
  --root-orange: #f7941d;
  --root-green: #1f7a4f;
  --ink: #172033;
  --muted: #667085;
  --line: #d8dee8;
  --soft: #f5f7fb;
  --paper: #ffffff;
  --danger: #b42318;
  --shadow: 0 16px 45px rgba(15, 82, 137, 0.12);
  color-scheme: light;
  font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(15, 82, 137, 0.08), rgba(255, 255, 255, 0) 360px),
    var(--soft);
  color: var(--ink);
  font-family: "Cairo", system-ui, sans-serif;
  letter-spacing: 0;
}

body[data-theme="dark"] {
  --ink: #f8fafc;
  --muted: #b7c0d1;
  --line: #2a3344;
  --soft: #111827;
  --paper: #172033;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
  background:
    linear-gradient(180deg, rgba(247, 148, 29, 0.12), rgba(17, 24, 39, 0) 360px),
    var(--soft);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
}

.container {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(216, 222, 232, 0.75);
  backdrop-filter: blur(18px);
}

body[data-theme="dark"] .topbar {
  background: rgba(17, 24, 39, 0.84);
}

.topbar-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand img {
  width: 112px;
  height: auto;
  display: block;
}

.brand strong {
  font-size: 1.02rem;
  color: var(--root-blue);
  white-space: nowrap;
}

body[data-theme="dark"] .brand strong {
  color: #9fd1ff;
}

.nav-actions,
.inline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link,
.icon-btn,
.btn {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: transparent;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav-link:hover,
.icon-btn:hover,
.btn:hover {
  transform: translateY(-1px);
}

.icon-btn {
  width: 42px;
  padding: 0;
  border-color: var(--line);
  background: var(--paper);
}

.btn {
  border-color: var(--line);
  background: var(--paper);
}

.btn.primary {
  background: var(--root-blue);
  border-color: var(--root-blue);
  color: #fff;
}

.btn.orange {
  background: var(--root-orange);
  border-color: var(--root-orange);
  color: #172033;
}

.btn.ghost {
  background: transparent;
}

.btn.danger {
  border-color: rgba(180, 35, 24, 0.28);
  color: var(--danger);
}

.btn.full {
  width: 100%;
}

.hero-grid {
  padding: 42px 0 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(15, 82, 137, 0.22);
  border-radius: 999px;
  color: var(--root-blue);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

body[data-theme="dark"] .eyebrow {
  color: #9fd1ff;
  background: rgba(23, 32, 51, 0.72);
}

.hero-copy h1 {
  max-width: 790px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 1.08;
  font-weight: 900;
}

.hero-copy p {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 2;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
}

.metric {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.metric strong {
  display: block;
  color: var(--root-blue);
  font-size: 1.3rem;
}

body[data-theme="dark"] .metric strong {
  color: #9fd1ff;
}

.metric span {
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-panel,
.surface,
.preview-phone,
.admin-stat,
.plan-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.auth-panel {
  padding: 22px;
  align-self: center;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-head h2,
.section-title h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.35;
}

.panel-head p,
.section-title p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}

.switcher button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.switcher button.active {
  background: var(--paper);
  color: var(--root-blue);
  box-shadow: 0 8px 18px rgba(15, 82, 137, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full,
.full-row {
  grid-column: 1 / -1;
}

.field span,
.field label {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.8;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--root-blue);
  box-shadow: 0 0 0 3px rgba(15, 82, 137, 0.14);
}

.hint {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.alert {
  border-radius: 8px;
  border: 1px solid rgba(180, 35, 24, 0.2);
  background: rgba(180, 35, 24, 0.08);
  color: var(--danger);
  padding: 10px 12px;
  margin: 12px 0;
  line-height: 1.7;
  font-weight: 700;
}

.success {
  border-color: rgba(31, 122, 79, 0.24);
  background: rgba(31, 122, 79, 0.08);
  color: var(--root-green);
}

.preview-phone {
  margin-top: 18px;
  overflow: hidden;
  box-shadow: none;
}

.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(15, 82, 137, 0.08), rgba(247, 148, 29, 0.08));
}

.preview-card {
  padding: 18px;
}

.mini-profile {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--root-blue);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 900;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-profile h3,
.public-hero h1,
.cv-document h1 {
  margin: 0;
}

.mini-profile p,
.preview-card p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 82, 137, 0.08);
  color: var(--root-blue);
  font-weight: 800;
  font-size: 0.86rem;
}

body[data-theme="dark"] .chip {
  color: #9fd1ff;
}

.section-band {
  padding: 20px 0 44px;
}

.section-title {
  margin: 0 0 18px;
}

.plans-grid,
.features-grid,
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.plan-card {
  padding: 18px;
  box-shadow: none;
  position: relative;
}

.plan-card.highlight {
  border-color: rgba(247, 148, 29, 0.72);
}

.plan-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 12px 0;
  color: var(--root-blue);
  font-weight: 900;
}

.price strong {
  font-size: 2rem;
}

.plan-card ul,
.clean-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}

.plan-card li,
.clean-list li {
  color: var(--muted);
  line-height: 1.7;
}

.plan-card li::before,
.clean-list li::before {
  content: "✓";
  color: var(--root-green);
  margin-inline-end: 8px;
  font-weight: 900;
}

.dashboard-layout,
.admin-layout {
  padding: 26px 0 50px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
}

.sidebar,
.workbench,
.public-shell,
.cv-shell {
  min-width: 0;
}

.surface {
  padding: 18px;
  box-shadow: none;
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 12px;
}

.user-badge {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.user-badge h3,
.user-badge p {
  overflow-wrap: anywhere;
}

.user-badge h3 {
  margin: 0;
  font-size: 1rem;
}

.user-badge p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.tab-list {
  display: grid;
  gap: 6px;
}

.tab-list button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-align: start;
  padding: 8px 10px;
  font-weight: 800;
}

.tab-list button.active {
  background: rgba(15, 82, 137, 0.09);
  color: var(--root-blue);
  border-color: rgba(15, 82, 137, 0.16);
}

body[data-theme="dark"] .tab-list button.active {
  color: #9fd1ff;
}

.workbench {
  display: grid;
  gap: 14px;
}

.workbench > * {
  min-width: 0;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 14px;
}

.stack {
  display: grid;
  gap: 14px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.toolbar h2,
.toolbar h3 {
  margin: 0;
}

.link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  overflow-wrap: anywhere;
}

.link-box code {
  direction: ltr;
  flex: 1;
  min-width: 180px;
  color: var(--root-blue);
  font-weight: 800;
}

.repeat-list {
  display: grid;
  gap: 10px;
}

.repeat-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--paper);
}

.repeat-item .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 100%;
  min-width: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 840px;
  table-layout: fixed;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

th {
  color: var(--muted);
  font-size: 0.86rem;
  background: var(--soft);
}

td input,
td select {
  width: 100%;
  min-width: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 3px 9px;
  font-weight: 900;
  font-size: 0.82rem;
  color: var(--root-green);
  background: rgba(31, 122, 79, 0.1);
}

.status-pill.trial {
  color: var(--root-blue);
  background: rgba(15, 82, 137, 0.1);
}

.status-pill.canceled,
.status-pill.past_due {
  color: var(--danger);
  background: rgba(180, 35, 24, 0.1);
}

.admin-stats {
  margin-bottom: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
}

.admin-stat {
  padding: 16px;
  box-shadow: none;
}

.admin-stat span {
  color: var(--muted);
  font-weight: 800;
}

.admin-stat strong {
  display: block;
  margin-top: 6px;
  color: var(--root-blue);
  font-size: 1.8rem;
}

.public-page {
  min-height: 100vh;
  background: var(--public-bg, var(--soft));
  color: var(--public-ink, var(--ink));
}

.public-page.dark {
  --public-bg: #0e1624;
  --public-ink: #f8fafc;
}

.public-hero {
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--line);
}

.public-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: end;
}

.public-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.08;
  font-weight: 900;
}

.public-hero p {
  color: var(--muted);
  line-height: 2;
  font-size: 1.05rem;
}

.contact-lines {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.contact-lines a,
.contact-lines span {
  display: inline-flex;
  gap: 8px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 18px;
  padding: 24px 0 54px;
}

.portfolio-section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.portfolio-section h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  padding-inline-start: 14px;
  border-inline-start: 3px solid var(--accent, var(--root-blue));
}

.timeline-item h3 {
  margin: 0;
  font-size: 1.02rem;
}

.timeline-item p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.cv-shell {
  padding: 24px 0 50px;
}

.cv-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cv-document {
  width: min(900px, calc(100vw - 32px));
  margin: 0 auto;
  min-height: 1188px;
  background: #fff;
  color: #111;
  border: 1px solid #d0d0d0;
  border-radius: 2px;
  padding: 44px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
  font-family: "Cairo", Arial, sans-serif;
}

.cv-document h1 {
  font-size: 2.1rem;
  color: #111;
}

.cv-document .cv-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 2px solid #111;
}

.cv-document .cv-contact {
  color: #333;
  text-align: end;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.cv-document h2 {
  margin: 24px 0 8px;
  font-size: 1.08rem;
  letter-spacing: 0;
  color: #111;
  border-bottom: 1px solid #111;
  padding-bottom: 5px;
}

.cv-document h3 {
  margin: 0;
  font-size: 1rem;
}

.cv-document p,
.cv-document li {
  color: #222;
  line-height: 1.8;
}

.cv-document ul {
  margin: 8px 0 0;
  padding-inline-start: 22px;
}

.empty-state {
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.cookie-banner {
  position: fixed;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  width: min(780px, calc(100vw - 32px));
  margin-inline: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.loading {
  min-height: 62vh;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.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: 980px) {
  .hero-grid,
  .dashboard-layout,
  .admin-layout,
  .two-col,
  .public-hero-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: auto;
    padding-top: 12px;
  }

  .auth-panel {
    align-self: stretch;
  }

  .sidebar {
    position: static;
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tab-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .topbar-inner {
    min-height: 66px;
  }

  .brand img {
    width: 86px;
  }

  .brand strong {
    display: none;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-link {
    display: none;
  }

  .hero-grid {
    padding-top: 22px;
  }

  .hero-copy h1 {
    font-size: 2.35rem;
  }

  .hero-metrics,
  .plans-grid,
  .features-grid,
  .admin-stats,
  .form-grid,
  .repeat-item .form-grid {
    grid-template-columns: 1fr;
  }

  .panel-head,
  .toolbar,
  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    align-items: stretch;
  }

  .tab-list {
    grid-template-columns: 1fr 1fr;
  }

  .public-hero {
    padding-top: 30px;
  }

  .cv-document {
    width: calc(100vw - 20px);
    padding: 24px;
    min-height: auto;
  }

  .cv-document .cv-head {
    grid-template-columns: 1fr;
  }

  .cv-document .cv-contact {
    text-align: start;
  }
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  body {
    background: #fff !important;
  }

  .topbar,
  .cv-actions,
  .cookie-banner,
  .no-print {
    display: none !important;
  }

  .cv-shell {
    padding: 0;
  }

  .cv-document {
    width: 100%;
    min-height: auto;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}

/* ROOT CV v5 visual refresh */
body {
  background:
    linear-gradient(180deg, rgba(15, 82, 137, 0.10), rgba(238, 243, 248, 0) 420px),
    #eef3f8;
}

.topbar {
  box-shadow: 0 1px 0 rgba(15, 82, 137, 0.08);
}

.topbar-inner {
  min-height: 68px;
}

.brand img {
  width: 122px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  gap: 28px;
  align-items: center;
  padding-top: 30px;
}

.hero-copy {
  min-height: 520px;
  gap: 22px;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4.5vw, 4.6rem);
  max-width: 760px;
}

.hero-copy p {
  max-width: 650px;
  font-size: 1.02rem;
}

.auth-panel {
  padding: 20px;
  box-shadow: 0 20px 55px rgba(15, 82, 137, 0.14);
}

.panel-head h2 {
  font-size: 1.35rem;
}

.panel-head p {
  font-size: 0.94rem;
}

.field span,
.field label {
  font-size: 0.88rem;
}

.field input,
.field textarea,
.field select {
  min-height: 42px;
  font-size: 0.96rem;
}

.alert {
  font-size: 0.95rem;
}

.btn,
.nav-link,
.icon-btn {
  min-height: 40px;
}

.plans-grid {
  align-items: stretch;
}

.plan-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88));
}

body[data-theme="dark"] .plan-card {
  background: #172033;
}

@media (max-width: 1180px) {
  .hero-grid,
  .dashboard-layout,
  .admin-layout,
  .two-col,
  .public-hero-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: auto;
    padding-top: 18px;
  }

  .auth-panel {
    width: min(100%, 760px);
    margin-inline: auto;
  }

  .nav-link {
    display: none;
  }

  .brand strong {
    display: none;
  }
}

@media (max-width: 760px) {
  body {
    background:
      linear-gradient(180deg, rgba(15, 82, 137, 0.12), rgba(238, 243, 248, 0) 300px),
      #eef3f8;
  }

  .container {
    width: min(100% - 20px, 1180px);
  }

  .topbar-inner {
    min-height: 58px;
    gap: 8px;
  }

  .brand img {
    width: 74px;
  }

  .nav-actions {
    gap: 5px;
  }

  .icon-btn,
  .btn {
    min-height: 36px;
    border-radius: 8px;
    padding-inline: 10px;
    font-size: 0.88rem;
  }

  .icon-btn {
    width: 36px;
    padding: 0;
  }

  .hero-grid {
    padding: 14px 0 18px;
    gap: 14px;
  }

  .hero-copy {
    text-align: start;
    gap: 14px;
  }

  .hero-copy h1 {
    font-size: 2rem;
    line-height: 1.18;
  }

  .hero-copy p {
    font-size: 0.95rem;
    line-height: 1.85;
  }

  .eyebrow {
    font-size: 0.82rem;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .metric {
    padding: 11px;
  }

  .preview-phone {
    display: none;
  }

  .auth-panel {
    padding: 14px;
    box-shadow: 0 12px 28px rgba(15, 82, 137, 0.11);
  }

  .panel-head {
    margin-bottom: 12px;
  }

  .panel-head h2 {
    font-size: 1.18rem;
  }

  .panel-head p {
    font-size: 0.84rem;
    line-height: 1.7;
  }

  .switcher {
    margin-bottom: 12px;
  }

  .switcher button {
    min-height: 34px;
    font-size: 0.9rem;
  }

  .form-grid,
  .repeat-item .form-grid {
    gap: 10px;
  }

  .field {
    gap: 5px;
  }

  .field span,
  .field label {
    font-size: 0.82rem;
  }

  .field input,
  .field textarea,
  .field select {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 16px;
  }

  .hint {
    font-size: 0.76rem;
  }

  .alert {
    padding: 9px 10px;
    font-size: 0.86rem;
    line-height: 1.65;
  }

  .section-band {
    padding: 12px 0 30px;
  }

  .section-title h2 {
    font-size: 1.25rem;
  }

  .plan-card {
    padding: 14px;
  }

  .cookie-banner {
    font-size: 0.84rem;
  }
}
