.portal-top { background: #fff; border-bottom: 1px solid var(--line); }
.portal-top .inner { max-width: 1040px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; }
.portal-top .brandmark { margin: 0; }
.portal-top .spacer { flex: 1; }
.portal { max-width: 1040px; margin: 0 auto; padding: 28px 20px 40px; }
.portal-foot { max-width: 1040px; margin: 0 auto; padding: 24px 20px 48px; color: var(--slate); font-size: 13px; border-top: 1px solid var(--line); }
.portal-foot nav { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.trust div { font-size: 14px; color: var(--slate); }
.trust b { display: block; color: var(--ink); margin-bottom: 2px; }
@media (max-width: 720px) { .trust { grid-template-columns: 1fr; } }

/* status hero: one bold element */
.status-hero { display: flex; align-items: center; gap: 18px; padding: 26px 24px; border-radius: 14px; background: var(--ink); color: #d6deec; margin-bottom: 16px; }
.status-hero h1 { color: #fff; font-size: 30px; letter-spacing: -0.02em; }
.status-hero p { margin: 4px 0 0; }
.pulse { width: 18px; height: 18px; border-radius: 50%; background: #3fbf86; flex: none; box-shadow: 0 0 0 0 rgba(63, 191, 134, .6); animation: pulse 2.2s infinite; }
.status-hero.paused .pulse { background: #e0a43a; animation: none; }
.status-hero.done .pulse { background: #7fb2ff; animation: none; }
.status-hero.off .pulse { background: #8a97ad; animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63, 191, 134, .55); } 70% { box-shadow: 0 0 0 14px rgba(63, 191, 134, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 191, 134, 0); } }
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.actions .btn { min-height: 56px; font-size: 15px; }
@media (max-width: 760px) { .actions { grid-template-columns: 1fr 1fr; } .status-hero h1 { font-size: 24px; } }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.facts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--slate); } .facts dd { margin: 2px 0 0; color: var(--ink); font-weight: 500; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* onboarding */
.onb { max-width: 680px; margin: 0 auto; }
.progress { display: flex; gap: 6px; margin-bottom: 22px; }
.progress span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.progress span.on { background: var(--signal); }
.onb .stepno { font-size: 13px; color: var(--slate); }
.onb h1 { margin: 2px 0 6px; }
.onb .lede { color: var(--slate); margin-bottom: 22px; }
.onb-foot { display: flex; justify-content: space-between; margin-top: 24px; gap: 10px; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; font: inherit; width: 100%; }
.choice[aria-pressed=true] { border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }
.choice b { display: block; color: var(--ink); }
.center-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.center-row .segmented button { padding: 7px 10px; font-size: 13px; }
.wdays { display: flex; gap: 6px; flex-wrap: wrap; }
.wdays button { min-width: 48px; height: 42px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; font: 500 14px var(--font); cursor: pointer; color: var(--slate); }
.wdays button[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.plancards { display: grid; gap: 12px; }
.plancard { border: 1px solid var(--line-2); border-radius: 12px; padding: 18px; background: #fff; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.plancard .price { font-size: 24px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.map svg { width: 100%; height: auto; background: #f7f9fc; border-radius: 10px; border: 1px solid var(--line); }
.map .grid { stroke: #e6eaf1; } .map .pt { fill: var(--muted); } .map .pt.in { fill: var(--signal); } .map .home { fill: var(--ink); } .map .ring { fill: rgba(46,107,217,.07); stroke: var(--signal); stroke-dasharray: 4 4; }
.map text { font: 11px var(--font); fill: var(--slate); }
.maint { max-width: 520px; margin: 12vh auto; text-align: center; padding: 0 20px; }

/* ---------- polish pass 1 */
.actions .btn { white-space: normal; min-width: 0; line-height: 1.25; text-align: center; }
.portal > div > * + * { margin-top: 0; }
.cols { margin-top: 0; }

.segmented { flex-wrap: nowrap; }
@media (max-width: 560px) {
  .center-row { grid-template-columns: 1fr; gap: 8px; }
  .center-row .segmented { display: flex; width: 100%; }
  .center-row .segmented button { flex: 1; }
}
#main:focus { outline: none; }

/* A2P consent: keep disclosure visibly associated with SMS selection. */
.sms-consent { margin-top: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid #cfd8e6; border-radius: 10px; background: #f8fafc; }
.sms-consent input { margin-top: 3px; flex: 0 0 auto; }
.sms-consent span { font-size: 13px; line-height: 1.45; color: #42536a; }
.sms-consent a { text-decoration: underline; }

/* ==================================================================
   v1.0.6 premium customer-portal presentation
   ================================================================== */
.portal-top {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(5,20,39,.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(1,12,26,.14);
}
.portal-top .inner {
  max-width: 1180px;
  min-height: 74px;
  padding: 12px 22px;
}
.portal-top .brandmark {
  color: #fff;
  font-size: 16px;
  letter-spacing: -.01em;
}
.portal-top .brandmark img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
}
.portal-top .btn-ghost {
  color: #e7f3ff;
  border-color: rgba(255,255,255,.13);
  background: rgba(255,255,255,.065);
}
.portal-top .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.portal {
  max-width: 1180px;
  padding: 34px 22px 54px;
  min-height: calc(100vh - 170px);
}
.portal-foot {
  max-width: none;
  margin: 0;
  padding: 30px max(22px, calc((100vw - 1136px)/2)) 42px;
  color: #b8c7d8;
  background: #06172c;
  border-top: 1px solid rgba(255,255,255,.08);
}
.portal-foot a { color: #d8eaff; }
.portal-foot nav { gap: 20px; }
.trust {
  gap: 12px;
  margin: 20px 0 0;
}
.trust div {
  padding: 16px;
  color: #5a6b7e;
  border: 1px solid rgba(16,42,71,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
}
.trust b { color: #102a48; }
.status-hero {
  position: relative;
  overflow: hidden;
  min-height: 142px;
  padding: 30px 30px;
  border-radius: 22px;
  background:
    linear-gradient(104deg, rgba(5,21,42,.97) 0%, rgba(7,39,74,.92) 53%, rgba(12,75,122,.73) 100%),
    url('/app/travel-bg.jpg') center / cover no-repeat;
  color: #dce9f6;
  box-shadow: 0 24px 55px rgba(4,25,50,.22);
}
.status-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 85% 20%, rgba(73,171,255,.18), transparent 34%);
}
.status-hero > * { position: relative; z-index: 1; }
.status-hero h1 {
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.status-hero p { color: #d9e8f7; font-size: 15px; max-width: 720px; }
.pulse { width: 17px; height: 17px; box-shadow: 0 0 0 0 rgba(68,216,153,.65); }
.actions {
  gap: 12px;
  margin: 18px 0;
}
.actions .btn {
  min-height: 58px;
  border-radius: 14px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 8px 22px rgba(7,26,49,.07);
}
.actions .btn-primary {
  color: #fff;
  background: linear-gradient(180deg,#1888ed,#0969c6);
}
.cols { gap: 18px; }
.cols > .panel { min-width: 0; }
.panel-head { margin-bottom: 18px; }
.panel-head h2 { font-size: 22px; }
.onb {
  max-width: 760px;
  padding: 28px 0 40px;
}
.onb > h1, .onb .stepno, .onb .lede { text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.onb h1 { font-size: 36px; letter-spacing: -.035em; }
.onb .lede { font-size: 16px; color: #50657b; }
.progress { gap: 7px; }
.progress span { height: 5px; background: rgba(7,26,49,.12); }
.progress span.on { background: linear-gradient(90deg,#0b68c0,#38a8ff); }
.choice { padding: 16px 17px; }
.choice[aria-pressed=true] {
  border-color: #1888ed;
  background: linear-gradient(180deg,#fff,#f5faff);
  box-shadow: 0 0 0 4px rgba(24,136,237,.10), 0 10px 28px rgba(7,26,49,.07);
}
.wdays button {
  border-radius: 10px;
  min-width: 52px;
  height: 44px;
}
.wdays button[aria-pressed=true] { background: linear-gradient(180deg,#0b2748,#06172d); }
.plancard { padding: 21px; }
.plancard .price { font-size: 28px; }
.map svg { border-radius: 14px; background: linear-gradient(180deg,#f8fbfe,#edf5fb); }
.sms-consent {
  border-radius: 13px;
  background: #f7fbff;
  border-color: #cadbec;
}
@media (max-width: 760px) {
  body {
    background:
      linear-gradient(rgba(239,245,250,.95),rgba(239,245,250,.97)),
      url('/app/travel-bg.jpg') center / cover fixed no-repeat;
  }
  .portal-top .inner { min-height: 68px; padding: 10px 15px; gap: 10px; }
  .portal-top .brandmark { font-size: 14px; }
  .portal-top .brandmark img { width: 38px; height: 38px; }
  .portal-top .btn { padding-inline: 12px; min-height: 40px; font-size: 13px; }
  .portal { padding: 22px 14px 36px; }
  .status-hero { padding: 24px 20px; min-height: 130px; border-radius: 18px; align-items: flex-start; }
  .status-hero h1 { font-size: 28px; }
  .actions { grid-template-columns: 1fr 1fr; }
  .actions .btn { min-height: 54px; }
  .onb { padding-top: 12px; }
  .onb h1 { font-size: 30px; }
  .panel { padding: 17px; border-radius: 16px; }
  .trust { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .portal-top .brandmark span { max-width: 128px; line-height: 1.15; }
  .status-hero { gap: 14px; }
  .actions { grid-template-columns: 1fr; }
  .actions .btn { min-height: 50px; }
}

/* Customer experience: shared spacing and an explicit safe area for navigation. */
.mobile-nav { display: none; }
.portal :where(h1,h2,h3,p,dd,a) { overflow-wrap: anywhere; }
.portal :where(input,select,textarea) { min-width: 0; max-width: 100%; }
.portal .btn { min-height: 44px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: #166ac0; }
.walkthrough { max-width: 760px; margin: 0 auto; padding: 20px 0; }
.walkthrough-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.tour-visual { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; border-radius: 20px; background: linear-gradient(145deg,#fff,#e3f1ff); border: 1px solid #d4e4f5; margin-bottom: 24px; }
.tour-icon { display: inline-flex; padding: 16px; color: #0969c6; background: #dcecff; border-radius: 16px; }
.tour-icon svg { width: 32px; height: 32px; }
.tour-visual .tour-example { width: 100%; box-sizing: border-box; }
.walkthrough .tour-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tour-card { padding: 38px; background: linear-gradient(145deg,#fff,#edf6ff); border: 1px solid #d4e4f5; border-radius: 24px; box-shadow: 0 16px 44px #12385d10; }
.tour-card h1 { font-size: 34px; line-height: 1.16; letter-spacing: -.03em; margin: 20px 0 14px; }
.tour-symbol { display: inline-flex; padding: 16px; color: #0969c6; background: #e0efff; border-radius: 18px; }
.tour-symbol svg { width: 32px; height: 32px; }
.tour-example { margin-top: 24px; padding: 18px; background: #fff; border: 1px solid #d6e5f3; border-radius: 14px; color: #245079; line-height: 1.7; }
.tour-dots { display: flex; gap: 7px; margin: 24px 0; }
.tour-dots span { width: 24px; height: 5px; background: #cbdbea; border-radius: 5px; }
.tour-dots span.on { background: #0969c6; }
.help-view .panel { margin-top: 16px; }
.help-card { display: flex; align-items: flex-start; gap: 18px; }
.help-card > svg { flex: none; color: #0969c6; margin-top: 3px; }
.help-card h2 { font-size: 21px; margin: 0 0 8px; }
.help-card p { color: #50657b; margin: 0; }
@media (max-width: 760px) {
  :root { --mobile-nav-space: calc(68px + env(safe-area-inset-bottom,0px)); }
  body.has-mobile-nav { padding-bottom: var(--mobile-nav-space); }
  .portal-top { padding-top: env(safe-area-inset-top,0px); }
  .portal-top .inner { min-height: 62px; padding: 8px 16px; gap: 8px; }
  .portal-top .brandmark { gap: 8px; min-width: 0; }
  .portal-top .brandmark img { width: 32px; height: 32px; border-radius: 9px; }
  .portal-top .brandmark span { max-width: 160px; font-size: 14px; line-height: 1.2; }
  .portal-top .desktop-billing { display: none; }
  .portal { padding: 18px 16px 28px; min-height: calc(100dvh - 240px); }
  .portal-foot { padding: 24px 16px 28px; font-size: 12px; }
  .mobile-nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); position: fixed; z-index: 50; bottom: 0; left: 0; right: 0; height: var(--mobile-nav-space); padding: 6px 12px calc(6px + env(safe-area-inset-bottom,0px)); background: #fffffff5; border-top: 1px solid #d6e1ec; backdrop-filter: blur(16px); box-sizing: border-box; }
  .mobile-nav a { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; min-height: 44px; color: #536a81; border-radius: 10px; font-size: 11px; font-weight: 600; text-decoration: none; }
  .mobile-nav a[aria-current=page] { color: #0969c6; background: #eef6ff; }
  .status-hero { min-height: 0; padding: 20px 18px; gap: 12px; border-radius: 16px; }
  .status-hero h1 { font-size: 24px; line-height: 1.18; }
  .status-hero p { font-size: 14px; line-height: 1.5; }
  .status-hero .pulse { width: 12px; height: 12px; margin-top: 7px; }
  .actions { grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
  .actions .btn { min-height: 48px; font-size: 13px; padding: 10px 12px; border-radius: 12px; }
  .onb { padding: 8px 0 20px; }
  .onb h1 { font-size: 27px; line-height: 1.18; }
  .onb .lede { font-size: 15px; line-height: 1.6; margin-bottom: 18px; }
  .panel-head h2,.panel h2 { font-size: 21px; }
  .panel { padding: 18px; border-radius: 16px; }
  .facts dd { font-size: 14px; line-height: 1.6; }
  .plancard { grid-template-columns: minmax(0,1fr); padding: 20px; gap: 14px; }
  .plancard .btn { width: 100%; margin-top: 12px; }
  .onb-foot { margin-top: 20px; }
  .wdays { gap: 5px; }
  .wdays button { min-width: 36px; flex: 1; padding: 0 4px; }
  .walkthrough { padding: 8px 0; }
  .tour-card { padding: 24px 20px; border-radius: 18px; }
  .tour-card h1 { font-size: 28px; }
  .tour-card .lede { font-size: 16px; line-height: 1.65; }
  .tour-example { font-size: 14px; padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
