/* ============================================================
   SOLVIA THEME — navy, teal, and generous white space.
   Presentation only: no view depends on these class names for
   behavior; forms, routes and ids live in the views.
   Accessibility brief: base font >= 1.1rem, high contrast,
   big tap targets, one strong primary action per screen.
   ============================================================ */

:root {
  --sv-navy: #071b46;
  --sv-navy-2: #102b5c;
  --sv-blue: #1357db;
  --sv-blue-dark: #1044a7;
  --sv-blue-soft: #edf3ff;
  --sv-teal: #007f79;
  --sv-teal-soft: #e8f7f5;
  --sv-gold: #f2b33d;
  --sv-gold-soft: #fdf3dd;
  --sv-ink: #14232e;
  --sv-muted: #4d6070;
  --sv-bg: #f7f9fc;
  --sv-card: #ffffff;
  --sv-line: #e2e8f0;
  --sv-green: #0e7c3e;
  --sv-green-soft: #e6f6ec;
  --sv-radius: 1rem;
}

html {
  /* 17.5px base: every Bootstrap fs-* size scales up with it */
  font-size: 16px;
  position: relative;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--sv-ink);
  background: var(--sv-bg);
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
  padding-bottom: 2.5rem;
}

h1, h2, h3 {
  color: var(--sv-navy);
  letter-spacing: -0.01em;
}

a {
  color: var(--sv-blue-dark);
}

::selection {
  background: var(--sv-gold);
  color: var(--sv-navy);
}

/* ---------- Header: deep navy, logo + wordmark, gold rule ---------- */

.sv-header {
  background: #fff;
  border-bottom: 1px solid var(--sv-line);
}

.sv-header .sv-bar {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding-top: .8rem;
  padding-bottom: .8rem;
  flex-wrap: wrap;
}

.sv-logo {
  height: 52px;
  width: auto;
  border-radius: .65rem;
  background: #fff;
  padding: 3px;
}

.sv-wordmark {
  color: var(--sv-navy);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
  text-decoration: none;
}

.sv-wordmark:hover { color: var(--sv-teal); }

.sv-tagline {
  color: var(--sv-muted);
  font-size: .8rem;
  letter-spacing: .02em;
}

.sv-nav {
  margin-left: auto;
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}

.sv-nav a {
  color: var(--sv-navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: .55rem 1rem;
  border-radius: 999px;
}

.sv-nav a:hover {
  background: var(--sv-teal-soft);
  color: var(--sv-teal);
}

/* ---------- Footer ---------- */

.sv-footer {
  background: var(--sv-navy);
  color: #cfe0f0;
  border-top: 1px solid var(--sv-line);
  padding: 1.4rem 0 1.6rem;
  margin-top: auto;
  font-size: 1rem;
}

.sv-footer .sv-foot-brand {
  color: #fff;
  font-weight: 700;
  letter-spacing: .04em;
}

.sv-footer a { color: #87e2d8; }

/* ---------- Cards & panels ---------- */

.sv-card {
  background: var(--sv-card);
  border: 1px solid var(--sv-line);
  border-radius: var(--sv-radius);
  box-shadow: 0 5px 20px rgba(7, 27, 70, .035);
  padding: 1.6rem;
}

.sv-card + .sv-card { margin-top: 1.2rem; }

.price-panel {
  background: var(--sv-navy);
  color: #fff;
  border-radius: var(--sv-radius);
  padding: 1.4rem 1.6rem;
  box-shadow: 0 12px 30px rgba(10, 37, 64, .22);
}

.price-panel .price-total {
  font-size: 2.9rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.price-panel .text-muted,
.price-panel .price-note { color: #bcd6ee !important; }

/* Definition lists inside cards: roomy, easy to scan */
.sv-card dl { margin-bottom: 0; }
.sv-card dt { color: var(--sv-muted); font-weight: 600; margin-top: .9rem; }
.sv-card dt:first-child { margin-top: 0; }
.sv-card dd { font-weight: 600; margin-bottom: 0; }

/* ---------- Buttons: one strong PayPal-blue primary ---------- */

.btn-primary,
.btn-success {
  color: #fff;
  background: var(--sv-blue);
  border-color: var(--sv-blue-dark);
  border-radius: .9rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(19, 87, 219, .12);
}

.btn-primary:hover, .btn-primary:focus,
.btn-success:hover, .btn-success:focus {
  color: #fff;
  background: var(--sv-blue-dark);
  border-color: var(--sv-blue-dark);
}

.btn-outline-primary {
  color: var(--sv-blue-dark);
  border-color: var(--sv-blue);
  border-radius: .9rem;
  font-weight: 600;
}

.btn-outline-primary:hover {
  background: var(--sv-blue);
  border-color: var(--sv-blue-dark);
  color: #fff;
}

.btn-outline-secondary { border-radius: .9rem; font-weight: 600; }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus, .form-select:focus {
  box-shadow: 0 0 0 .22rem rgba(242, 179, 61, .55);
}

.sv-cta {
  font-size: 1.6rem !important;
  padding-top: 1.1rem !important;
  padding-bottom: 1.1rem !important;
  border-radius: 1.1rem !important;
}

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

.sv-hero {
  text-align: left;
  padding: 1.6rem 0 .4rem;
}

.sv-hero-logo {
  width: 132px;
  max-width: 40vw;
  height: auto;
  border-radius: 1.4rem;
  box-shadow: 0 14px 34px rgba(10, 37, 64, .25);
  background: #fff;
  padding: 6px;
  margin-bottom: 1.1rem;
}

.sv-hero h1 {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: .4rem;
}

/* ---------- College pick list ---------- */

#collegeList { gap: .8rem; display: flex; flex-direction: column; }
#collegeList .list-group-item { border: 1px solid var(--sv-line) !important; }

.college-card {
  background: #fff;
  border-radius: var(--sv-radius) !important;
  box-shadow: 0 6px 18px rgba(10, 37, 64, .07);
  padding: 1.1rem 1.3rem !important;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.college-card:hover, .college-card:focus {
  border-color: var(--sv-blue) !important;
  box-shadow: 0 10px 24px rgba(0, 112, 224, .18);
  transform: translateY(-2px);
}

.price-chip {
  display: inline-block;
  margin-top: .45rem;
  padding: .28rem .95rem;
  border-radius: 999px;
  background: var(--sv-blue-soft);
  color: var(--sv-blue-dark);
  font-weight: 700;
  font-size: 1.15rem !important;
}

.price-chip-free {
  background: var(--sv-green-soft);
  color: var(--sv-green);
  box-shadow: inset 0 0 0 2px var(--sv-green);
}

.price-chip-none {
  background: #fdecec;
  color: #9c1c1c;
  box-shadow: none;
}

/* ---------- Questions: big selectable choice cards ---------- */

.choice-cards { gap: .8rem !important; }

.choice-cards .btn {
  border-radius: 1rem;
  border: 2px solid var(--sv-line);
  background: #fff;
  color: var(--sv-navy);
  min-width: 9.5rem;
  text-align: center;
  transition: all .12s ease;
}

.choice-cards .btn:hover { border-color: var(--sv-blue); }

.btn-check:checked + .btn,
.btn-check:active + .btn {
  background: var(--sv-navy);
  border-color: var(--sv-gold);
  color: #fff;
  box-shadow: 0 8px 20px rgba(10, 37, 64, .3), inset 0 0 0 2px var(--sv-gold);
}

.btn-check:focus-visible + .btn {
  box-shadow: 0 0 0 .25rem rgba(242, 179, 61, .6);
}

textarea.form-control, input.form-control, .form-select {
  border-radius: .9rem;
  border: 2px solid var(--sv-line);
}

textarea.form-control:focus, input.form-control:focus {
  border-color: var(--sv-blue);
}

/* ---------- Receipt (Checkout Done + Permits Receipt) ---------- */

.receipt-card {
  background: #fff;
  border: 1px solid var(--sv-line);
  border-top: 10px solid var(--sv-green);
  border-radius: var(--sv-radius);
  box-shadow: 0 14px 34px rgba(10, 37, 64, .12);
  padding: 1.8rem;
  max-width: 46rem;
}

.receipt-card-pending { border-top-color: var(--sv-gold); }

.receipt-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--sv-navy);
  letter-spacing: .01em;
  line-height: 1.15;
  word-break: break-all;
}

.receipt-ids {
  background: var(--sv-bg);
  border: 1px dashed var(--sv-line);
  border-radius: .8rem;
  padding: 1rem 1.2rem;
  font-size: 1rem;
}

.receipt-ids code {
  color: var(--sv-navy);
  word-break: break-all;
}

/* ---------- Verify cards ---------- */

.verify-card {
  border-radius: 1.4rem;
  padding: 2.2rem 1.6rem;
  text-align: center;
  box-shadow: 0 14px 34px rgba(10, 37, 64, .12);
}

.verify-valid {
  background: var(--sv-green-soft);
  border: 3px solid var(--sv-green);
}

.verify-valid h1 { color: var(--sv-green); }

.verify-invalid {
  background: #fff;
  border: 3px solid var(--sv-line);
}

.verify-invalid h1 { color: var(--sv-navy); }

/* ---------- College side: tables, rosters, dates ---------- */

.fee-table {
  font-size: 1.08rem;
  background: #fff;
}

.fee-table thead th {
  background: var(--sv-navy);
  color: #fff;
  border-color: var(--sv-navy);
  padding: .9rem 1rem;
}

.fee-table td { padding: .8rem 1rem; }

.ag-theme-quartz {
  font-size: 1.05rem;
  --ag-row-height: 54px;
  --ag-header-height: 58px;
  --ag-header-background-color: #0a2540;
  --ag-header-foreground-color: #ffffff;
  --ag-font-family: "Segoe UI", system-ui, sans-serif;
  border-radius: .8rem;
  overflow: hidden;
}

.roster-card, .permit-card {
  background: #fff;
  border: 1px solid var(--sv-line) !important;
  border-radius: var(--sv-radius) !important;
  box-shadow: 0 6px 18px rgba(10, 37, 64, .06);
  margin-bottom: .8rem;
}

.list-group { gap: 0; }
.list-group .roster-card + .roster-card { margin-top: 0; }

.badge { border-radius: 999px; padding: .5em .9em; }

/* Alerts keep their honest words; just rounder and roomier */
.alert { border-radius: 1rem; padding: 1.1rem 1.3rem; }

/* ---------- Small screens (the video is shot on a phone) ---------- */

@media (max-width: 576px) {
  .sv-hero h1 { font-size: 2.5rem; }
  .sv-logo { height: 44px; }
  .sv-wordmark { font-size: 1.45rem; }
  .sv-nav { margin-left: 0; }
  .receipt-number { font-size: 2.2rem; }
  .price-panel .price-total { font-size: 2.3rem; }
  .choice-cards .btn { min-width: 0; flex: 1 1 42%; }
  .sv-card, .receipt-card { padding: 1.2rem; }
}

/* Product shell: restrained institutional styling, mobile first. */
.sv-shell { flex: 1; padding-block: 2rem 4rem; }
.sv-shell, .sv-header .container { max-width: 1400px; }
.sv-main { min-width: 0; }
.sv-main > h1, .sv-main > h2 { font-weight: 750; margin-block: .25rem 1.5rem; letter-spacing: -.04em; }
.sv-main .fs-3 { font-size: 1.35rem !important; }
.sv-main .fs-4 { font-size: 1.2rem !important; }
.sv-main .fs-5 { font-size: 1.08rem !important; }
.sv-main .btn { min-height: 46px; padding: .65rem 1rem; }
.sv-main .btn-sm { padding: .45rem .8rem; }
.sv-main .sv-cta { font-size: 1.2rem !important; padding-block: .85rem !important; }
.sv-main .form-control, .sv-main .form-select { min-height: 48px; border-width: 1px; background-color: #fff; }
.sv-main label { font-weight: 650; }
.sv-main .table-responsive { border: 1px solid var(--sv-line); border-radius: 1rem; background: #fff; }
.sv-main .table { margin-bottom: 0; font-size: 1rem; }
.sv-main .table th { padding: .9rem 1rem; color: var(--sv-muted); background: #f1f5fa; font-weight: 650; }
.sv-main .table td { padding: 1rem; vertical-align: middle; border-color: #eef1f6; }
.sv-main .alert { border-width: 1px; font-size: 1rem; }
.sv-main .alert-info, .sv-main .alert-success { background: var(--sv-teal-soft); border-color: #b8dfd9; color: #17534f; }
.sv-main .badge.text-bg-success { background: var(--sv-teal) !important; }
.sv-demo-badge { align-self: center; padding: .4rem .7rem; color: #775017; background: #fff4de; font-size: .78rem; font-weight: 700; border-radius: 99px; }
.sv-logo { width: 46px; height: 46px; object-fit: contain; padding: 0; }
.sv-nav { align-items: center; }
.sv-nav a { font-size: .92rem; }
.sv-skip-link { position: fixed; z-index: 100; top: -100px; left: 1rem; padding: .8rem 1rem; background: var(--sv-navy); color: #fff; }
.sv-skip-link:focus { top: .5rem; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--sv-teal); outline-offset: 3px; }
.sv-sidebar { background: var(--sv-navy); border-radius: 1.1rem; color: #fff; padding: 1.4rem 1rem; align-self: start; }
.sv-sidebar-label { display: block; padding: .75rem .75rem .5rem; color: #aebfdb; font-size: .65rem; font-weight: 700; letter-spacing: .13em; }
.sv-sidebar nav { display: grid; gap: .3rem; }
.sv-sidebar nav a { display: flex; align-items: center; gap: .7rem; padding: .85rem .75rem; border-radius: .6rem; color: #e4ecf8; text-decoration: none; font-size: .9rem; }
.sv-sidebar nav a span { font-size: 1.2rem; width: 1.3rem; text-align: center; }
.sv-sidebar nav a:hover, .sv-sidebar nav a.is-active { background: #124b60; color: #fff; }
.sv-sidebar-note { margin: 2rem .5rem 0; border: 1px solid #40567c; padding: .8rem; border-radius: .6rem; font-size: .8rem; }
.sv-sidebar-note p { margin: .4rem 0 0; color: #b6c5dc; font-size: .75rem; }
.sv-status-dot { display: inline-block; width: .5rem; height: .5rem; background: #0bab97; border-radius: 50%; margin-right: .35rem; flex-shrink: 0; }
.sv-home-hero { display: grid; gap: 3.5rem; padding-block: 3rem 4rem; align-items: center; }
.sv-eyebrow { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .13em; color: var(--sv-teal); margin-bottom: 1rem; }
.sv-home-hero h1 { font-size: clamp(2.8rem, 5vw, 4.8rem); line-height: 1.06; font-weight: 780; letter-spacing: -.065em; }
.sv-home-hero h1 > span { color: var(--sv-teal); }
.sv-hero-description { max-width: 35rem; color: var(--sv-muted); line-height: 1.7; margin-block: 1.5rem; }
.sv-hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.sv-hero-actions .btn { font-size: 1rem; padding: .9rem 1.25rem; }
.sv-hero-actions .btn span { padding-left: 1rem; }
.sv-trust-row { display: flex; gap: .8rem 1.4rem; flex-wrap: wrap; margin-top: 1.5rem; font-size: .75rem; font-weight: 600; color: var(--sv-muted); }
.sv-journey-panel { border: 1px solid var(--sv-line); border-radius: 1.4rem; background: #fff; box-shadow: 0 18px 55px rgba(7, 27, 70, .08); overflow: hidden; }
.sv-panel-heading { display: flex; align-items: center; gap: .8rem; padding: 1.4rem; background: #f9fbff; border-bottom: 1px solid var(--sv-line); }
.sv-panel-heading strong { font-size: .95rem; color: var(--sv-navy); }
.sv-panel-heading p { font-size: .75rem; color: var(--sv-muted); margin: .2rem 0 0; }
.sv-mini-brand { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; position: relative; background: var(--sv-navy); border-radius: .7rem; font-size: 1.6rem; color: #fff; font-weight: 750; }
.sv-mini-brand > span { position: absolute; color: #42d6c0; right: -.2rem; top: -.3rem; font-size: 1.4rem; }
.sv-panel-label { margin-left: auto; font-size: .55rem; letter-spacing: .1em; color: var(--sv-muted); }
.sv-journey-list { list-style: none; margin: 0; padding: .5rem 1.5rem; }
.sv-journey-list li { display: flex; gap: 1rem; padding-block: 1.4rem; }
.sv-journey-list li + li { border-top: 1px solid #edf1f7; }
.sv-step-number { display: grid; place-items: center; flex-shrink: 0; width: 2.3rem; height: 2.3rem; background: var(--sv-teal-soft); color: var(--sv-teal); font-size: .8rem; font-weight: 800; border-radius: .7rem; }
.sv-journey-list strong { font-size: .95rem; color: var(--sv-navy); }
.sv-journey-list p { margin: .4rem 0 0; font-size: .85rem; color: var(--sv-muted); line-height: 1.6; }
.sv-journey-footer { display: flex; align-items: center; padding: 1rem 1.5rem; background: #f3f9f8; color: #275752; font-size: .7rem; font-weight: 600; }
.sv-journey-footer > span:last-child { margin-left: auto; font-weight: 400; }
.sv-demo-panel { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; background: #fff; border: 1px solid var(--sv-line); padding: 1.8rem; border-radius: 1rem; }
.sv-demo-panel .sv-eyebrow { margin-bottom: .5rem; font-size: .65rem; }
.sv-demo-panel h2 { font-size: 1.55rem; font-weight: 750; letter-spacing: -.035em; }
.sv-demo-panel p { color: var(--sv-muted); font-size: .85rem; margin-bottom: 0; }
.sv-demo-people { display: flex; gap: .5rem; flex-wrap: wrap; }
.sv-person { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--sv-line); background: #fff; border-radius: 99px; padding: .5rem .8rem .5rem .5rem; color: var(--sv-navy); font-size: .8rem; font-weight: 650; min-height: 48px; }
.sv-avatar { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #edf1f9; font-size: .75rem; }
.sv-person:hover, .sv-person.is-selected { background: var(--sv-teal-soft); border-color: var(--sv-teal); }
.sv-person.is-selected .sv-avatar { background: var(--sv-teal); color: #fff; }
.sv-person-label { display: grid; gap: .15rem; text-align: left; line-height: 1.3; }
.sv-person-role { color: var(--sv-muted); font-size: .68rem; font-weight: 450; }
.sv-demo-disclosure { flex-basis: 100%; border-top: 1px solid #edf1f6; padding-top: 1rem; font-size: .72rem !important; }
.sv-feature-grid { display: grid; gap: 1.2rem; margin-top: 1.5rem; }
.sv-feature-card { display: block; text-decoration: none; background: #fff; border: 1px solid var(--sv-line); border-radius: 1rem; padding: 1.8rem; }
.sv-feature-card:hover { border-color: #86bcb6; }
.sv-feature-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .7rem; background: var(--sv-teal-soft); color: var(--sv-teal); font-size: 1.6rem; margin-bottom: 1.5rem; }
.sv-feature-card h2 { font-size: 1.2rem; font-weight: 750; }
.sv-feature-card p { color: var(--sv-muted); font-size: .9rem; line-height: 1.7; }
.sv-feature-link { color: var(--sv-blue-dark); font-size: .85rem; font-weight: 700; }
@media (min-width: 1000px) {
  .sv-workspace .sv-shell { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 2.25rem; }
  .sv-home-hero { grid-template-columns: 1.05fr 1fr; }
  .sv-feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 999px) {
  .sv-sidebar { padding: .6rem; margin-bottom: 1.5rem; }
  .sv-sidebar nav { display: flex; overflow-x: auto; }
  .sv-sidebar nav a { flex-shrink: 0; padding: .7rem; }
  .sv-sidebar-label, .sv-sidebar-note { display: none; }
  .sv-home-hero { padding-top: 1rem; gap: 2rem; }
}
@media (max-width: 576px) {
  .sv-shell { padding: 1.3rem 1rem 2.5rem; }
  .sv-header .sv-bar { gap: .6rem; }
  .sv-tagline { font-size: .7rem; }
  .sv-nav { width: 100%; gap: 0; }
  .sv-nav a { padding: .55rem .6rem; font-size: .8rem; }
  .sv-demo-badge { margin-left: auto; font-size: .65rem; }
  .sv-home-hero h1 { font-size: 3.1rem; }
  .sv-hero-actions .btn { flex: 1 1 100%; }
  .sv-trust-row { font-size: .7rem; }
  .sv-demo-panel, .sv-feature-card { padding: 1.3rem; }
  .sv-panel-label { display: none; }
  .sv-journey-footer { flex-wrap: wrap; gap: .4rem; }
  .sv-journey-footer > span:last-child { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
.sv-brand-icon { display: block; width: 44px; height: 44px; border-radius: 50%; object-fit: contain; }
.sv-fee-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.25rem; margin: 1.5rem 0 1rem; border: 1px solid var(--sv-line); border-radius: 1rem; background: #fff; }
.sv-fee-tools > div { flex: 1 1 280px; max-width: 560px; }
.sv-fee-grid { height: 620px; width: 100%; min-width: 0; }
.sv-main { min-width: 0; }

/* ---------- View controls (desktop/mobile preview + language, v1) ---------- */
.sv-view-controls { display: flex; align-items: center; gap: .45rem; margin-left: auto; flex-wrap: wrap; }
.sv-lang-group { display: inline-flex; gap: .3rem; }
.sv-ctl-btn { border: 1px solid var(--sv-line); background: #fff; color: var(--sv-navy); border-radius: 99px; padding: .4rem .75rem; font-size: .8rem; font-weight: 700; min-height: 40px; cursor: pointer; }
.sv-ctl-btn:hover { border-color: var(--sv-teal); }
.sv-ctl-btn.is-active, .sv-ctl-btn[aria-pressed="true"] { background: var(--sv-teal-soft); border-color: var(--sv-teal); color: var(--sv-navy); }

/* ---------- Mobile preview (additive only; default OFF) ----------
   A width cap alone does NOT fire the @media (max-width: ...) rules
   above (they key off the viewport, which stays wide on a desktop),
   so the <=999px stacking rules and the small-screen shell rules
   are restated here under body.sv-mobile-preview. Nothing in this
   block applies unless the toggle adds the class. Specificity
   (body + class) beats the min-width grid rules it overrides. */
body.sv-mobile-preview { background: #cfd9e6; }
body.sv-mobile-preview .sv-header .container,
body.sv-mobile-preview .sv-shell,
body.sv-mobile-preview .sv-footer .container {
  max-width: 430px;
  margin-inline: auto;
  border-inline: 3px solid #22314e;
  background-clip: padding-box;
}
body.sv-mobile-preview .sv-header,
body.sv-mobile-preview .sv-footer { box-shadow: none; }
body.sv-mobile-preview .sv-shell { background: #fff; box-shadow: 0 24px 60px rgba(7, 27, 70, .35); padding: 1.3rem 1rem 2.5rem; }
body.sv-mobile-preview .sv-footer .container { padding-bottom: 1rem; }
/* Workspace: restate the <=999px sidebar stacking, kill the >=1000px grid */
body.sv-mobile-preview.sv-workspace .sv-shell { display: block; }
body.sv-mobile-preview .sv-sidebar { padding: .6rem; margin-bottom: 1.5rem; }
body.sv-mobile-preview .sv-sidebar nav { display: flex; overflow-x: auto; }
body.sv-mobile-preview .sv-sidebar nav a { flex-shrink: 0; padding: .7rem; }
body.sv-mobile-preview .sv-sidebar-label, body.sv-mobile-preview .sv-sidebar-note { display: none; }
body.sv-mobile-preview .sv-home-hero { grid-template-columns: 1fr; padding-top: 1rem; gap: 2rem; }
body.sv-mobile-preview .sv-feature-grid { grid-template-columns: 1fr; }
/* Header on a phone width: nav wraps, tagline shrinks (restated <=576px rules) */
body.sv-mobile-preview .sv-header .sv-bar { gap: .6rem; flex-wrap: wrap; }
body.sv-mobile-preview .sv-tagline { font-size: .7rem; }
body.sv-mobile-preview .sv-nav { width: 100%; gap: 0; margin-left: 0; flex-wrap: wrap; }
body.sv-mobile-preview .sv-nav a { padding: .55rem .6rem; font-size: .8rem; }
body.sv-mobile-preview .sv-demo-badge { margin-left: auto; font-size: .65rem; }
body.sv-mobile-preview .sv-view-controls { margin-left: 0; }
/* Home grids: restate single-column stacking over home.css min-width rules */
body.sv-mobile-preview .sv-home-layout { grid-template-columns: 1fr; grid-template-areas: "intro" "start" "guide" "resources"; }
body.sv-mobile-preview .sv-home-resources { grid-template-columns: 1fr; }
body.sv-mobile-preview .sv-start-actions { grid-template-columns: 1fr; }
body.sv-mobile-preview .sv-start-action { grid-template-columns: 2rem minmax(0, 1fr) auto; align-content: center; }
body.sv-mobile-preview .sv-action-icon { grid-column: auto; }
body.sv-mobile-preview .sv-home-start { grid-template-columns: 1fr; }
body.sv-mobile-preview .sv-home-choices { border-inline-start: 0; padding-inline-start: 0; border-block-start: 1px solid var(--sv-line); padding-block-start: 1.3rem; }
/* Wide tables keep their own horizontal scroll inside the frame */
body.sv-mobile-preview .sv-main .table-responsive { overflow-x: auto; }
body.sv-mobile-preview .sv-fee-grid { height: 520px; overflow: auto; }

/* Feature-build correction (verified in screenshots): sidebar links must
   not wrap inside the preview strip, and the native fee table (the AG Grid
   fallback) scrolls inside the frame instead of painting past it. */
body.sv-mobile-preview .sv-sidebar nav a { white-space: nowrap; }
body.sv-mobile-preview .sv-main .fee-table { display: block; overflow-x: auto; max-width: 100%; }

/* Feature-build repair (additive): the sidebar's icon rule
   (.sv-sidebar nav a span { width: 1.3rem }) also matches the i18n label
   spans added beside each icon. Give label spans their natural width so
   sidebar text renders exactly as it did before the spans existed. */
.sv-sidebar nav a span[data-i18n] { width: auto; font-size: inherit; text-align: left; }
