/* =========================================================
   Move Abroad Without Guesswork — styles.css
   Version 3.2 · A Pitch Black Joint LLC
   Minimal, calm, professional. Black / white / neutral tones.
   ========================================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black:       #0d0d0d;
  --white:       #ffffff;
  --gray-100:    #f5f5f4;
  --gray-200:    #e8e7e5;
  --gray-300:    #d1d0cd;
  --gray-400:    #9b9893;
  --gray-500:    #6b6966;
  --gray-600:    #4a4846;
  --gray-700:    #2e2c2b;
  --accent:      #1a1a1a;
  --success:     #1c6b3a;
  --danger:      #9b1c1c;
  --warning:     #7a5c10;
  --info:        #1c3d6b;

  --badge-past-color:          #fff;
  --badge-past-bg:             var(--notice-urgent-color);
  --badge-past-border:         var(--notice-urgent-color-dark);
  --badge-today-color:         #15803d;
  --badge-today-bg:            #dcfce7;
  --badge-today-border:        #86efac;
  --badge-warning-color:       #b45309;
  --badge-warning-bg:          #fef3c7;
  --badge-warning-border:      #fcd34d;

  --badge-success-bg:          #d4edda;
  --badge-danger-bg:           #fde8e8;
  --badge-info-bg:             #ddeeff;

  --seq-urgent-bg:             #fef3c7;
  --seq-urgent-color:          #92400e;
  --seq-soon-bg:               #fef9c3;
  --seq-soon-color:            #713f12;
  --seq-ok-bg:                 #dcfce7;
  --seq-ok-color:              #15803d;

  --notice-urgent-bg:          #fee2e2;
  --notice-urgent-color:       rgb(185, 28, 28);
  --notice-urgent-color-dark:  rgb(153, 27, 27);
  --notice-today-color:        #15803d;
  --notice-warning-color:      #b45309;
  --notice-warning-bg:         #fffbeb;
  --notice-warning-border:     #b45309;
  --notice-warning-text:       #7a5c10;
  --notice-warning-accent:     #d97706;
  --notice-warning-hover:      #92400e;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --shadow: 0 1px 4px rgba(0,0,0,0.08), 0 0 0 0.5px rgba(0,0,0,0.07);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.10), 0 0 0 0.5px rgba(0,0,0,0.07);
  --sidebar-w: 240px;
  --transition: 0.15s ease;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--gray-100);
  color: var(--black);
  line-height: 1.5;
  min-height: 100vh;
}

/* --- Skip link (accessibility) --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--black);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  z-index: 9999;
  text-decoration: none;
  transition: top var(--transition);
}
.skip-link:focus {
  top: 1rem;
}

/* =========================================================
   LAYOUT SHELL
   ========================================================= */

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

/* --- Sidebar --- */
.sidebar {
  width: var(--sidebar-w);
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 200;
  overflow-y: auto;
  transition: transform var(--transition);
}

.sidebar-header {
  padding: 20px 18px 14px;
  border-bottom: 1px solid var(--gray-200);
}

.sidebar-brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.sidebar-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.3;
}

.sidebar-progress-wrap {
  padding: 12px 18px;
  border-bottom: 1px solid var(--gray-200);
}

.sidebar-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--gray-500);
  margin-bottom: 6px;
}

.progress-bar-track {
  height: 3px;
  background: var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--black);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}

.sections-summary {
  font-size: 10.5px;
  color: var(--gray-400);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.sidebar-move-date {
  font-size: 10.5px;
  color: var(--gray-500);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.sidebar-move-date--warning {
  color: var(--notice-warning-color);
  font-weight: 600;
}

.sidebar-move-date--urgent {
  color: var(--notice-urgent-color);
  font-weight: 600;
}

.sidebar-move-date--past {
  color: var(--badge-past-border);
  font-weight: 600;
}

.sidebar-move-date__text {
  text-decoration: line-through;
}

.sidebar-move-date__badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--badge-past-bg);
  border: 1px solid var(--badge-past-border);
  border-radius: 3px;
  padding: 1px 5px;
  vertical-align: middle;
  line-height: 1.6;
  animation: badge-past-pulse 2s ease-in-out infinite;
}

@keyframes badge-past-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.65; }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar-move-date__badge {
    animation: none;
  }
}

.move-date-touch-tooltip {
  position: fixed;
  z-index: 9999;
  background: #1f2937;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: 6px;
  max-width: 220px;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.move-date-touch-tooltip.move-date-touch-tooltip--visible {
  opacity: 1;
}

.sidebar-nav {
  flex: 1;
  padding: 10px 0;
  list-style: none;
}

.sidebar-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding: 10px 18px 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}

.sidebar-section-label.section-incomplete::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--gray-300);
  opacity: 0.7;
  letter-spacing: 0;
  flex-shrink: 0;
}

.sidebar-section-label.section-done {
  color: #4a9e6e;
}

.sidebar-section-label.section-done::after {
  content: '✓';
  font-size: 9px;
  font-weight: 700;
  color: #4a9e6e;
  opacity: 0.85;
  letter-spacing: 0;
}

@keyframes checkmark-pop {
  0%   { opacity: 0; transform: scale(0.5); }
  60%  { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.85; transform: scale(1); }
}

.sidebar-section-label.section-done.section-done-animate::after {
  animation: checkmark-pop 0.35s ease-out forwards;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  font-size: 12.5px;
  color: var(--gray-600);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: background var(--transition), color var(--transition);
  border-radius: 0;
  line-height: 1.3;
}

.sidebar-nav-item:hover {
  background: var(--gray-100);
  color: var(--black);
}

.sidebar-nav-item.active {
  background: var(--black);
  color: var(--white);
  font-weight: 500;
}

.sidebar-nav-item .page-num {
  font-size: 10px;
  min-width: 18px;
  color: inherit;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}

.sidebar-nav-item.active .page-num {
  opacity: 0.7;
}

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--gray-200);
}

.version-badge {
  font-size: 10px;
  color: var(--gray-400);
  letter-spacing: 0.04em;
}

/* --- Sidebar overlay (mobile) --- */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 199;
}

.sidebar-overlay.visible {
  display: block;
}

/* --- Main content area --- */
.main-area {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- Top bar --- */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 12px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--black);
}

.menu-toggle svg {
  display: block;
}

.topbar-page-indicator {
  font-size: 12px;
  color: var(--gray-500);
  font-variant-numeric: tabular-nums;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: 12px;
  font-family: var(--font);
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn:hover {
  background: var(--gray-100);
  color: var(--black);
  border-color: var(--gray-400);
}

.btn-danger {
  border-color: #f5c5c5;
  color: var(--danger);
}

.btn-danger:hover {
  background: #fff1f1;
  border-color: var(--danger);
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-primary:hover {
  background: var(--gray-700);
  border-color: var(--gray-700);
}

/* --- Content body --- */
.content-body {
  flex: 1;
  padding: 32px 24px;
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
}

/* --- Page navigation --- */
.page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}

.page-nav-center {
  font-size: 12px;
  color: var(--gray-400);
}

/* =========================================================
   PAGE CARDS
   ========================================================= */

.page {
  display: none;
  flex-direction: column;
  gap: 18px;
  animation: fadeIn 0.2s ease;
}

.page.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Page header --- */
.section-tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.page-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.page-sub {
  font-size: 13.5px;
  color: var(--gray-500);
  line-height: 1.65;
  max-width: 560px;
}

.divider {
  height: 1px;
  background: var(--gray-200);
  width: 100%;
  border: none;
}

/* --- Photo slot ---
   Slots are invisible when no image is present.
   Use onerror="this.closest('.photo-slot').style.display='none'"
   on every img tag so the slot vanishes cleanly when missing.
   ----------------------------------------------------------- */
.photo-slot {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  /* No background — slot disappears entirely if image fails */
  background: transparent;
  line-height: 0; /* kill any inline whitespace gap */
}

/* Cover: wide cinematic ratio */
.photo-slot-cover {
  aspect-ratio: 21 / 9;
}

/* Section header: narrower, understated */
.photo-slot-section {
  aspect-ratio: 4 / 1;
}

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  /* Subtle desaturation keeps it documentary, not decorative */
  filter: saturate(0.88) brightness(0.97);
  transition: filter 0.3s ease;
}

/* Slightly more saturated on hover — respectful, not flashy */
.photo-slot img:hover {
  filter: saturate(1) brightness(1);
}

/* =========================================================
   FORM ELEMENTS
   ========================================================= */

.field-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}

.field {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  font-size: 13px;
  color: var(--black);
  background: var(--white);
  resize: vertical;
  font-family: var(--font);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.field:focus {
  outline: none;
  border-color: var(--gray-500);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.field::placeholder {
  color: var(--gray-300);
}

.field-textarea {
  min-height: 88px;
  line-height: 1.6;
  resize: vertical;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* --- Grids --- */
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.grid3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

/* --- Checkboxes --- */
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--black);
  padding: 4px 0;
  cursor: pointer;
  line-height: 1.4;
}

.check-row input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  width: 14px;
  height: 14px;
  accent-color: var(--black);
  cursor: pointer;
}

/* --- Radio buttons --- */
.radio-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.radio-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-600);
  cursor: pointer;
}

.radio-opt input[type="radio"] {
  width: 14px;
  height: 14px;
  accent-color: var(--black);
  cursor: pointer;
}

/* =========================================================
   TABLES
   ========================================================= */

.tbl-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.tbl th {
  text-align: left;
  font-weight: 600;
  color: var(--gray-500);
  padding: 7px 10px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tbl td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--black);
  vertical-align: middle;
}

.tbl tr:last-child td {
  border-bottom: none;
}

.tbl tr.tbl-total td {
  font-weight: 600;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-100);
}

.tbl-field {
  border: none;
  border-bottom: 1.5px solid var(--gray-200);
  background: transparent;
  font-size: 12.5px;
  color: var(--black);
  width: 100%;
  min-width: 70px;
  min-height: 28px;
  font-family: var(--font);
  padding: 4px 3px;
  transition: background var(--transition), border-color var(--transition);
}

.tbl-field:hover {
  background: rgba(0,0,0,0.025);
  border-radius: 3px;
}

.tbl-field:focus {
  outline: none;
  background: var(--gray-100);
  border-radius: 3px;
  border-bottom-color: var(--black);
  padding: 4px 6px;
}

.tbl-field::placeholder {
  color: var(--gray-300);
}

/* =========================================================
   CARDS & BLOCKS
   ========================================================= */

.card-sm {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.card-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.card-val {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--black);
}

.card-val-sub {
  font-size: 12.5px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* Section cards (numbered) */
.section-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-card {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.section-card-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-300);
  min-width: 26px;
  line-height: 1;
  padding-top: 2px;
}

.section-card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 2px;
}

.section-card-desc {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* Quote / callout block */
.callout {
  border-left: 3px solid var(--gray-300);
  padding: 4px 12px;
  font-size: 12.5px;
  color: var(--gray-500);
  line-height: 1.65;
}

/* Mistake blocks */
.mistake-block {
  border-left: 2px solid var(--gray-200);
  padding: 4px 14px;
  font-size: 13px;
  color: var(--black);
  line-height: 1.65;
}

.mistake-head {
  font-weight: 600;
  font-size: 13px;
  color: var(--black);
  margin-bottom: 3px;
}

/* =========================================================
   BADGES
   ========================================================= */

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-info    { background: var(--badge-info-bg);    color: var(--info); }
.badge-success { background: var(--badge-success-bg); color: var(--success); }
.badge-danger  { background: var(--badge-danger-bg);  color: var(--danger); }
.badge-warning { background: var(--badge-warning-bg); color: var(--warning); }
.badge-neutral { background: var(--gray-200); color: var(--gray-600); }

/* =========================================================
   TOOL CHIPS
   ========================================================= */

.tools-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tools-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 4px 11px;
  font-size: 11.5px;
  color: var(--gray-500);
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  white-space: nowrap;
}

.tool-chip:hover {
  border-color: var(--gray-500);
  color: var(--black);
  background: var(--gray-100);
}

.tool-chip::before {
  content: "↗";
  font-size: 10px;
  opacity: 0.6;
}

/* =========================================================
   COVER PAGE
   ========================================================= */

.cover-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  border-left: 3px solid var(--black);
  padding-left: 24px;
  min-height: 420px;
}

.cover-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.cover-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.1;
  letter-spacing: -0.8px;
}

.cover-subtitle {
  font-size: 14.5px;
  color: var(--gray-500);
  line-height: 1.6;
  max-width: 380px;
}

.cover-meta {
  font-size: 11.5px;
  color: var(--gray-400);
}

.cover-version {
  font-size: 11px;
  color: var(--gray-400);
  letter-spacing: 0.03em;
}

/* =========================================================
   FOOTER
   ========================================================= */

.page-footer {
  font-size: 10.5px;
  color: var(--gray-400);
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
  letter-spacing: 0.02em;
}

/* =========================================================
   SECTION COMPLETION INDICATOR
   ========================================================= */

.completion-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--gray-400);
}

.completion-dots {
  display: flex;
  gap: 3px;
}

.completion-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-200);
}

.completion-dot.filled {
  background: var(--black);
}

/* =========================================================
   PAGE 2 — SECTION BLOCKS
   ========================================================= */

.p2-section {
  margin-bottom: 28px;
}

.p2-section-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
  line-height: 1.3;
}

.p2-section-body {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
}

.legal-collapsed {
  margin-bottom: 24px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.legal-collapsed-summary {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  padding: 10px 14px;
  background: var(--gray-100);
  list-style: none;
  user-select: none;
}

.legal-collapsed-summary::-webkit-details-marker { display: none; }

.legal-collapsed[open] .legal-collapsed-summary {
  border-bottom: 1px solid var(--gray-200);
}

.legal-collapsed .legal-block {
  border: none;
  border-radius: 0;
  margin-bottom: 0;
}

/* =========================================================
   PATH OVERLAY FOOTER
   ========================================================= */

.path-box-footer {
  font-size: 11px;
  color: var(--gray-400);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

/* =========================================================
   LEGAL BLOCK
   ========================================================= */

.legal-block {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 4px;
}

.legal-block-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 14px;
}

.legal-block p {
  font-size: 12.5px;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 10px;
}

.legal-block p:last-of-type {
  margin-bottom: 0;
}

.legal-block strong {
  color: var(--black);
  font-weight: 600;
}

.legal-block-footer {
  margin-top: 16px !important;
  padding-top: 14px;
  border-top: 1px solid var(--gray-200);
  font-size: 11px !important;
  color: var(--gray-400) !important;
  letter-spacing: 0.02em;
}

/* =========================================================
   COUNTRY COMPARISON GRID
   ========================================================= */

.cmp-country-names {
  display: grid;
  grid-template-columns: 160px 1fr 1fr 1fr;
  gap: 6px;
  align-items: end;
  margin-bottom: 2px;
}

.cmp-country-names .cmp-spacer {
  /* empty cell to align with factor label column */
}

.cmp-country-names .field-group {
  gap: 3px;
}

/* ---- Country autocomplete dropdown ---- */
.country-ac-wrapper {
  position: relative;
}

.country-ac-list {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 200px;
  overflow-y: auto;
  z-index: 300;
}

.country-ac-list.ac-open {
  display: block;
}

.country-ac-item {
  padding: 7px 12px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-primary, #2c2a24);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-ac-item:hover,
.country-ac-item.ac-active {
  background: var(--warm-50, #f5f2ea);
  color: var(--accent, #7c5c3a);
}

.cmp-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.cmp-row {
  display: grid;
  grid-template-columns: 160px 1fr 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--gray-200);
}

.cmp-row:last-child {
  border-bottom: none;
}

.cmp-factor {
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--gray-100);
  border-right: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  line-height: 1.35;
}

.cmp-cell {
  padding: 6px 8px;
  border-right: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
}

.cmp-cell:last-child {
  border-right: none;
}

.cmp-cell .field {
  border: none;
  border-bottom: 1.5px solid var(--gray-200);
  border-radius: 0;
  padding: 4px 4px;
  font-size: 12.5px;
  background: transparent;
  box-shadow: none;
  min-height: 28px;
}

.cmp-cell .field:focus {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.06);
}

@media (max-width: 600px) {
  .cmp-country-names,
  .cmp-row {
    grid-template-columns: 120px 1fr 1fr 1fr;
  }
  .cmp-factor {
    font-size: 11.5px;
    padding: 8px 8px;
  }
  /* Make cell inputs visually discoverable on touch screens */
  .cmp-cell .field {
    border-bottom: 1px solid var(--gray-200) !important;
    min-height: 26px;
    padding-bottom: 3px !important;
  }
}

/* =========================================================
   MONTHLY BUDGET TABLE
   ========================================================= */

.budget-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.budget-row {
  display: grid;
  grid-template-columns: 1fr 100px 100px 90px;
  gap: 0;
  border-bottom: 1px solid var(--gray-200);
}

.budget-row:last-child {
  border-bottom: none;
}

.budget-row.budget-header {
  background: var(--gray-100);
}

.budget-row.budget-total {
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
}

.budget-row.budget-total .budget-cat {
  font-weight: 700;
}

.budget-col-head {
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-right: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
}

.budget-col-head:last-child {
  border-right: none;
}

.budget-cat {
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gray-600);
  border-right: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
}

.budget-cell {
  padding: 5px 6px;
  border-right: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
}

.budget-cell:last-child {
  border-right: none;
}

.budget-cell .field {
  border: none;
  border-bottom: 1.5px solid var(--gray-200);
  border-radius: 0;
  padding: 4px 5px;
  font-size: 12.5px;
  background: transparent;
  box-shadow: none;
  text-align: right;
  width: 100%;
  min-height: 28px;
  font-variant-numeric: tabular-nums;
}

.budget-cell .field:focus {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.06);
}

@media (max-width: 520px) {
  .budget-row {
    grid-template-columns: 1fr 80px 80px 70px;
  }
  /* Make budget inputs discoverable on touch screens */
  .budget-cell .field {
    border-bottom: 1px solid var(--gray-200) !important;
    min-height: 26px;
    padding-bottom: 3px !important;
  }
}

/* =========================================================
   ADMIN TRACKER CARDS
   ========================================================= */

.admin-tracker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.admin-card:focus-within {
  border-color: var(--gray-400);
}

.admin-task-name {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.3;
}

.admin-fields {
  display: grid;
  grid-template-columns: 1fr 100px 110px;
  gap: 0;
}

.admin-field {
  padding: 8px 10px;
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.admin-field:last-child {
  border-right: none;
}

.admin-field .field-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gray-400);
  white-space: nowrap;
}

.admin-field .field {
  border: none;
  border-bottom: 1.5px solid var(--gray-200);
  border-radius: 0;
  padding: 4px 3px;
  font-size: 12.5px;
  background: transparent;
  box-shadow: none;
  min-height: 26px;
}

.admin-field .field:focus {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 2px 5px;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.06);
}

/* Editable program name input inside admin-task-name header bar */
.admin-task-name .field {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--black);
  width: 100%;
}

.admin-task-name .field::placeholder {
  color: var(--gray-300);
  font-weight: 400;
}

.admin-task-name .field:focus {
  outline: none;
  background: rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-sm);
  padding: 2px 5px;
  margin: -2px -5px;
}

/* App tracker uses Deadline-narrow / Status-flex / Decision-flex */
.app-tracker .admin-fields {
  grid-template-columns: 110px 1fr 1fr;
}

@media (max-width: 520px) {
  .admin-fields {
    grid-template-columns: 1fr;
  }
  .admin-field {
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
  }
  .admin-field:last-child {
    border-bottom: none;
  }
}

/* =========================================================
   APPLICATION TRACKER CARDS
   ========================================================= */

.app-tracker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: border-color var(--transition);
}

.app-card:focus-within {
  border-color: var(--gray-400);
}

.app-card-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-300);
  min-width: 18px;
  text-align: center;
  padding-top: 26px; /* aligns with field content, below label */
  font-variant-numeric: tabular-nums;
}

.app-card-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.app-card-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.app-card-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

/* Column size proportions */
.app-card-field-prog { flex: 3; min-width: 160px; }
.app-card-field-dead { flex: 1.2; min-width: 90px; }
.app-card-field-stat { flex: 1.4; min-width: 100px; }
.app-card-field-dec  { flex: 1.4; min-width: 100px; }

.app-card-field .field-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

/* Compact field size inside cards */
.app-card-field .field {
  padding: 6px 8px;
  font-size: 12.5px;
}

@media (max-width: 520px) {
  .app-card-field-prog { min-width: 100%; }
  .app-card-row { gap: 6px; }
}

/* =========================================================
   MODAL / DIALOG
   ========================================================= */

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.visible {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
}

.modal-body {
  font-size: 13.5px;
  color: var(--gray-500);
  margin-bottom: 20px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* --- PDF section picker modal --- */
.modal--pdf-sections {
  max-width: 520px;
}

.pdf-sections-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.btn-sm {
  font-size: 12px;
  padding: 4px 10px;
  height: auto;
}

.pdf-sections-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
}

.pdf-sections-list li + li {
  border-top: 1px solid var(--gray-100);
}

.pdf-section-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.1s;
}

.pdf-section-item:hover {
  background: var(--gray-50);
}

.pdf-section-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: var(--black);
  cursor: pointer;
}

.pdf-section-label {
  font-size: 13.5px;
  color: var(--gray-700);
}

/* =========================================================
   TOAST NOTIFICATION
   ========================================================= */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--black);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  z-index: 2000;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  max-width: 300px;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.has-action {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 360px;
}

.toast-action-btn {
  flex-shrink: 0;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.toast-action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.8);
}

.toast.has-actions {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 480px;
  flex-wrap: wrap;
}

/* =========================================================
   PDF PROGRESS OVERLAY
   ========================================================= */

.pdf-progress-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3000;
  background: var(--black);
  color: var(--white);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}

.pdf-progress-overlay.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.pdf-progress-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 480px;
}

.pdf-progress-label {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.pdf-progress-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.pdf-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--white);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.pdf-progress-counter {
  font-size: 12px;
  opacity: 0.75;
  white-space: nowrap;
  flex-shrink: 0;
}

.pdf-cancel-btn {
  flex-shrink: 0;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pdf-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
}

/* =========================================================
   UTILITY
   ========================================================= */

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

.text-muted { color: var(--gray-500); }
.text-sm    { font-size: 11.5px; }
.mt-sm      { margin-top: 6px; }
.mt-md      { margin-top: 12px; }

.sub-section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  margin-top: 10px;
}

/* =========================================================
   RESPONSIVE — Mobile
   ========================================================= */

@media (max-width: 768px) {
  :root {
    --sidebar-w: 0px;
  }

  .sidebar {
    transform: translateX(-240px);
    width: 240px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-area {
    margin-left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .topbar {
    padding: 10px 16px;
  }

  .content-body {
    padding: 20px 16px;
  }

  .grid2 {
    grid-template-columns: 1fr;
  }

  .grid3 {
    grid-template-columns: 1fr 1fr;
  }

  .cover-title {
    font-size: 28px;
  }

  .topbar-actions .btn span {
    display: none;
  }

  .page-title {
    font-size: 19px;
  }
}

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

  .topbar-actions {
    gap: 4px;
  }

  .btn {
    padding: 6px 9px;
  }
}

/* =========================================================
   MILESTONE MESSAGE
   ========================================================= */

@keyframes milestone-slide-in {
  0%   { opacity: 0; transform: translateY(-10px); }
  55%  { opacity: 1; transform: translateY(3px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes milestone-slide-out {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-6px); }
}

.milestone-msg {
  font-size: 11px;
  color: var(--gray-400);
  line-height: 1.45;
  margin-top: 8px;
  padding: 6px 8px;
  background: transparent;
  border-left: 2px solid var(--gray-700);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, margin-top 0.35s ease;
  pointer-events: none;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.milestone-msg-text {
  flex: 1;
}

.milestone-close {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0 2px;
  margin: 0;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.milestone-close:hover {
  opacity: 1;
  color: var(--gray-400);
}

.milestone-msg.visible {
  opacity: 1;
  max-height: 60px;
  animation: milestone-slide-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  pointer-events: auto;
  cursor: grab;
}

.milestone-msg.fade-out {
  animation: milestone-slide-out 0.35s ease-in forwards;
}

.milestone-msg.dragging {
  animation: none;
  transition: none;
  will-change: transform, opacity;
  cursor: grabbing;
}

/* Applied to document.body while a banner is being mouse-dragged so that
   moving over child elements cannot revert the cursor to its default. */
.banner-dragging * {
  cursor: grabbing !important;
}

.milestone-msg.snapping {
  animation: none;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

/* =========================================================
   SAVE STATUS INDICATOR
   ========================================================= */

.save-status {
  font-size: 11px;
  color: var(--gray-400);
  letter-spacing: 0.01em;
  padding-left: 10px;
  opacity: 0;
  transition: opacity 0.25s ease;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.save-status.visible {
  opacity: 1;
}

.save-status.saving {
  color: var(--gray-400);
}

.save-status.saved {
  color: var(--gray-400);
}

/* =========================================================
   MOBILE: icon-only toolbar on small screens
   ========================================================= */

@media (max-width: 480px) {
  /* Feedback/reset modal: scroll if keyboard pushes content out of view */
  .modal {
    max-height: 85vh;
    overflow-y: auto;
  }

  .topbar-actions .btn span {
    display: none;
  }

  .topbar-actions .btn {
    padding: 6px 8px;
    gap: 0;
    min-width: 34px;
    justify-content: center;
  }

  .topbar-actions .btn svg {
    width: 15px;
    height: 15px;
  }

  .save-status {
    display: none; /* too cramped on very small screens */
  }
}

/* =========================================================
   PDF EXPORT MODE (applied during client-side html2canvas capture)
   ========================================================= */

body.pdf-export-mode .sidebar,
body.pdf-export-mode .topbar,
body.pdf-export-mode .page-nav,
body.pdf-export-mode .sidebar-overlay,
body.pdf-export-mode .toast,
body.pdf-export-mode .save-status,
body.pdf-export-mode .milestone-msg,
body.pdf-export-mode .skip-link,
body.pdf-export-mode .tools-section,
body.pdf-export-mode .feedback-prompt,
body.pdf-export-mode .feedback-float,
body.pdf-export-mode .path-overlay,
body.pdf-export-mode .mode-note,
body.pdf-export-mode .premium-card,
body.pdf-export-mode .custom-add-row,
body.pdf-export-mode .custom-item-del,
body.pdf-export-mode .upgrade-nudge,
body.pdf-export-mode .mid-flow-nudge,
body.pdf-export-mode .missed-items-unlock,
body.pdf-export-mode .change-path-controls,
body.pdf-export-mode .sidebar-currency-wrap {
  display: none !important;
}

body.pdf-export-mode .page {
  display: flex !important;
  flex-direction: column !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 24px 28px !important;
  gap: 14px !important;
  min-height: 0 !important;
  max-width: 700px !important;
  background: #ffffff !important;
}

body.pdf-export-mode .page-footer {
  display: block !important;
  font-size: 9px !important;
  color: #aaa !important;
  padding-top: 8px;
  border-top: 0.5px solid #e0e0e0;
}

body.pdf-export-mode .field {
  border: 1px solid #ccc !important;
  background: transparent !important;
  padding: 3px 5px !important;
}

/* =========================================================
   PRINT / PDF EXPORT
   ========================================================= */

@media print {

  /* ---- Page setup ---- */
  @page {
    size: A4 portrait;
    margin: 1.8cm 1.5cm 1.4cm 1.5cm;
  }

  /* ---- Global resets ---- */
  *, *::before, *::after {
    box-shadow: none !important;
    animation: none !important;
    transition: none !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  html, body {
    background: #fff !important;
    font-size: 11pt;
    color: #000;
    overflow: visible !important;
  }

  /* ---- Remove link URL artifacts ---- */
  a[href]::after {
    content: none !important;
  }

  /* ---- Hide all UI chrome ---- */
  .sidebar,
  .sidebar-overlay,
  .topbar,
  .page-nav,
  .modal-backdrop,
  .toast,
  .save-status,
  .milestone-msg,
  .skip-link,
  .tools-section,
  .feedback-prompt,
  .feedback-float,
  .path-overlay,
  .mode-note,
  .premium-card,
  .custom-add-row,
  .custom-item-del,
  .upgrade-nudge,
  .mid-flow-nudge,
  .missed-items-unlock,
  .change-path-controls,
  .sidebar-currency-wrap,
  #import-file-input {
    display: none !important;
  }

  /* Show abroad-only content in print for abroad-stage users */
  body.stage-abroad .moved-only,
  body.stage-abroad .abroad-only {
    display: block !important;
  }

  /* Hide planning-only content in print for abroad-stage users */
  body.stage-abroad .planning-only {
    display: none !important;
  }

  /* ---- Reset app shell layout ---- */
  .app-shell {
    display: block !important;
    width: 100% !important;
  }

  .main-area {
    margin-left: 0 !important;
    width: 100% !important;
    overflow: visible !important;
  }

  .content-body {
    padding: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }

  /* ---- Pages: all visible, one per printed page ---- */
  .page {
    display: flex !important;
    flex-direction: column !important;
    break-after: page;
    page-break-after: always;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 14pt !important;
    min-height: 0 !important;
    max-width: 100% !important;
    box-shadow: none !important;
  }

  .page:last-child {
    break-after: avoid;
    page-break-after: avoid;
  }

  /* ---- Cover ---- */
  .cover-wrap {
    padding-top: 16pt;
  }

  .cover-title {
    font-size: 26pt;
    line-height: 1.1;
  }

  .cover-subtitle {
    font-size: 11pt;
  }

  /* ---- Section tags, headings ---- */
  .section-tag {
    font-size: 8pt;
  }

  .page-title {
    font-size: 18pt;
  }

  .page-sub {
    font-size: 10.5pt;
  }

  /* ---- Page footer ---- */
  .page-footer {
    display: block !important;
    font-size: 7.5pt !important;
    color: #aaa !important;
    margin-top: auto;
    padding-top: 8pt;
    border-top: 0.5pt solid #e0e0e0;
  }

  /* ---- Standard fields ---- */
  .field {
    border: 0.5pt solid #bbb !important;
    background: transparent !important;
    padding: 3pt 5pt !important;
    font-size: 10pt !important;
    border-radius: 2pt !important;
  }

  /* ---- Admin card / app tracker print ---- */
  .admin-card {
    break-inside: avoid;
    border: 0.5pt solid #ccc !important;
  }

  .admin-task-name {
    background: #f5f5f5 !important;
    border-bottom: 0.5pt solid #ccc !important;
    padding: 6pt 10pt !important;
  }

  /* Program name input inside header — strip border for print */
  .admin-task-name .field {
    border: none !important;
    padding: 0 !important;
    font-weight: 600;
    font-size: 10.5pt !important;
    background: transparent !important;
  }

  .admin-fields {
    display: grid !important;
  }

  .admin-field {
    padding: 6pt 8pt !important;
  }

  .admin-field .field {
    border: none !important;
    border-bottom: 0.5pt solid #ccc !important;
    border-radius: 0 !important;
    padding: 2pt 0 !important;
    background: transparent !important;
    font-size: 10pt !important;
  }

  /* ---- Budget table print ---- */
  .budget-table {
    border: 0.5pt solid #ccc !important;
    break-inside: avoid;
  }

  .budget-row {
    border-bottom: 0.5pt solid #ccc !important;
  }

  .budget-row.budget-header,
  .budget-row.budget-total {
    background: #f5f5f5 !important;
  }

  .budget-cell {
    border-right: 0.5pt solid #ccc !important;
    padding: 4pt 6pt !important;
  }

  .budget-cell .field {
    border: none !important;
    background: transparent !important;
    font-size: 10pt !important;
    padding: 0 !important;
  }

  /* ---- Country comparison print ---- */
  .cmp-table {
    border: 0.5pt solid #ccc !important;
    break-inside: avoid;
  }

  .cmp-row {
    border-bottom: 0.5pt solid #ccc !important;
  }

  .cmp-factor {
    background: #f5f5f5 !important;
    border-right: 0.5pt solid #ccc !important;
    font-size: 10pt !important;
    padding: 5pt 8pt !important;
  }

  .cmp-cell {
    border-right: 0.5pt solid #ccc !important;
    padding: 4pt 6pt !important;
  }

  .cmp-cell .field {
    border: none !important;
    background: transparent !important;
    font-size: 10pt !important;
    padding: 0 !important;
  }

  .cmp-country-names .field {
    font-size: 10pt !important;
  }

  /* ---- Keep short blocks together ---- */
  .field-group,
  .check-row,
  .callout,
  .legal-block,
  .section-card,
  .badges-row {
    break-inside: avoid;
  }

  /* ---- Photo slots ---- */
  .photo-slot {
    break-inside: avoid;
    height: 140pt;          /* explicit height so child img has a reference */
    max-height: 140pt;
    overflow: hidden;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
    aspect-ratio: unset !important; /* let the fixed height define the box in print */
  }

  .photo-slot-cover {
    height: 160pt;
    max-height: 160pt;
  }

  .photo-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block !important;
    filter: none !important; /* remove saturate/brightness — some renderers skip filtered images */
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  /* ---- Checkboxes / radios: exact color ---- */
  .check-row input[type="checkbox"],
  .radio-opt input[type="radio"] {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  /* ---- Legacy tbl classes ---- */
  .tbl-wrap {
    overflow: visible !important;
  }

  .tbl-field {
    border-bottom: 0.5pt solid #ccc !important;
    background: transparent !important;
    font-size: 10pt !important;
  }

  /* ---- Badges ---- */
  .badge {
    border: 0.5pt solid #999 !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  /* ---- Grid layouts ---- */
  .grid2 {
    display: grid !important;
  }
}

/* =========================================================
   FEEDBACK PROMPTS
   ========================================================= */

.feedback-prompt {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

.feedback-prompt-final {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  border: none;
  margin-top: 24px;
}

.feedback-prompt-label {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.feedback-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  color: var(--gray-400);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: var(--font);
  transition: color var(--transition);
}

.feedback-link:hover {
  color: var(--black);
}

/* =========================================================
   FLOATING FEEDBACK BUTTON
   ========================================================= */

/* Sidebar feedback link (desktop — inside fixed sidebar, zero obstruction) */
.sidebar-feedback-link {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  color: var(--gray-400);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.sidebar-feedback-link:hover { color: var(--black); }

/* Floating feedback — mobile-only fallback; hidden on desktop */
.feedback-float {
  display: flex; /* visible on all screen sizes */
  position: fixed;
  bottom: 80px;   /* default: above iOS browser chrome */
  left: 16px;     /* default: bottom-left, away from Next button */
  right: auto;
  z-index: 150;
  width: 38px;
  height: 38px;
  background: var(--white);
  color: var(--gray-400);
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.15s, color 0.15s, opacity 0.15s;
  opacity: 0.5;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  touch-action: none; /* hand touch events to JS so drag works cleanly */
}
.feedback-float:hover,
.feedback-float:focus {
  color: var(--black);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  opacity: 1;
}
.feedback-float.is-dragging {
  cursor: grabbing;
  opacity: 1;
  transition: none; /* no lag while dragging */
}

/* Premium badge and hint */
.premium-badge {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 6px;
  line-height: 1.4;
}

.premium-hint {
  font-size: 11.5px;
  color: var(--gray-400);
  border-left: 2px solid var(--gray-200);
  padding: 6px 10px;
  margin-top: 10px;
  line-height: 1.5;
}

.premium-note {
  margin-top: 12px;
  font-size: 11px;
  color: var(--gray-400);
  text-align: center;
  letter-spacing: 0.02em;
}

/* =========================================================
   PATH SELECTION OVERLAY
   ========================================================= */

.path-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.path-overlay.visible {
  display: flex;
}

.path-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.path-box-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 5px;
}

.path-box-sub {
  font-size: 12.5px;
  color: var(--gray-500);
  margin-bottom: 18px;
}

.path-options {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 14px;
}

.path-option {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  cursor: pointer;
  font-family: var(--font);
  transition: border-color 0.12s, background 0.12s;
}

.path-option:hover,
.path-option.selected {
  border-color: var(--black);
  background: var(--gray-100);
}

.path-skip {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font-family: var(--font);
}

.path-skip:hover { color: var(--gray-600); }

.path-indicator {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 6px;
  padding: 3px 8px;
  background: var(--gray-100);
  border-radius: 20px;
  display: inline-block;
  letter-spacing: 0.01em;
}

/* =========================================================
   JOURNEY STAGE — MOVED-ONLY / MODE VISIBILITY
   =========================================================
   .moved-only   — hidden by default; shown when body.stage-moved
   .mode-note    — contextual banner shown on planning-heavy pages
                   in moved mode
   ========================================================= */

.moved-only,
.abroad-only {
  display: none;
}

body.stage-abroad .moved-only,
body.stage-abroad .abroad-only {
  display: block;
}

/* Some abroad-only blocks need flex */
body.stage-abroad .moved-only.moved-flex,
body.stage-abroad .abroad-only.abroad-flex {
  display: flex;
}

/* planning-only: visible by default, hidden when abroad */
.planning-only {
  display: block;
}

body.stage-abroad .planning-only {
  display: none;
}

/* =========================================================
   STAGE-WORK — employer relocation track
   ========================================================= */

/* stage-work-only: hidden by default, shown when body.stage-work */
.stage-work-only {
  display: none;
}
body.stage-work .stage-work-only {
  display: block;
}

/* stage-planning-show / stage-exploring-show: visible by default,
   hidden when body.stage-work (used on cover subtitle etc.) */
body.stage-work .stage-planning-show,
body.stage-work .stage-exploring-show {
  display: none;
}

/* Hide pure-decision content for work users (pages 1–5 items tagged stage-decision-only) */
body.stage-work .stage-decision-only {
  display: none;
}

/* Sidebar legal links */
.sidebar-legal-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 10px;
}
.sidebar-legal-link {
  color: var(--gray-400);
  text-decoration: none;
}
.sidebar-legal-link:hover {
  color: var(--gray-600);
  text-decoration: underline;
}
.sidebar-legal-sep {
  color: var(--gray-300);
}

.mode-note {
  background: var(--gray-100);
  border-left: 3px solid var(--gray-300);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.55;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* =========================================================
   PREMIUM CARD
   ========================================================= */

.premium-card {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin: 24px 0 20px;
}

.premium-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.premium-card-sub {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 18px;
  line-height: 1.45;
}

.premium-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.premium-col-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 9px;
}

.premium-col-paid .premium-col-label {
  color: var(--black);
}

.premium-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.premium-list li {
  font-size: 12.5px;
  color: var(--gray-500);
  padding-left: 12px;
  position: relative;
  line-height: 1.45;
}

.premium-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--gray-400);
}

.premium-col-paid .premium-list li {
  color: var(--black);
}

.premium-col-paid .premium-list li::before {
  color: var(--black);
}

.premium-cta {
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 15px;
  display: inline-block;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: opacity 0.15s;
}

.premium-cta:hover { opacity: 0.78; }

.premium-checkout {
  border-top: 1px solid var(--gray-200);
  margin-top: 20px;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.premium-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
}

.premium-price-freq {
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-400);
  margin-left: 4px;
  text-transform: lowercase;
  letter-spacing: 0;
}

.premium-reassurance {
  font-size: 11.5px;
  color: var(--gray-400);
  margin-bottom: 4px;
}

/* =========================================================
   CUSTOM CHECKLIST ITEMS
   ========================================================= */

.custom-checklist-wrap {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
}

.custom-checklist-note {
  font-size: 11.5px;
  color: var(--gray-500);
  margin-bottom: 10px;
  font-style: italic;
}

.custom-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.custom-item-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  cursor: pointer;
  font-size: 14px;
  color: var(--black);
}

.custom-item-del {
  background: none;
  border: none;
  color: var(--gray-300);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 3px;
  flex-shrink: 0;
  transition: color 0.12s;
}

.custom-item-del:hover { color: #c0392b; }

.custom-add-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}

.custom-add-input {
  flex: 1;
  font-size: 13.5px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 7px 10px;
  background: var(--white);
  color: var(--black);
  min-width: 0;
  font-family: var(--font);
}

.custom-add-input:focus {
  outline: 2px solid var(--black);
  outline-offset: 1px;
  border-color: var(--black);
}

.custom-add-btn {
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  color: var(--black);
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.custom-add-btn:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

@media (max-width: 520px) {
  .premium-compare { grid-template-columns: 1fr; }
}

/* Mobile: sidebar is collapsed — show floating feedback as fallback */
@media (max-width: 767px) {
  .feedback-float { display: flex; }

  /* ---- iOS auto-zoom prevention ----
     iOS Safari zooms the page when focusing any input with font-size < 16px.
     Setting 16px on mobile prevents the zoom without disabling user pinch-zoom. */
  input,
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* --- Mobile adjustments --- */
@media (max-width: 600px) {
  .feedback-prompt-final {
    padding: 14px;
  }
}

/* =========================================================
   INSIGHT PROMPTS (V1.5)
   Calm, factual, inline. Human tone, not alarmist.
   ========================================================= */

.insight-prompt {
  border-left: 3px solid var(--gray-300);
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--gray-500);
  line-height: 1.65;
  background: transparent;
}

.insight-prompt strong {
  color: var(--gray-600);
  font-weight: 600;
}

/* =========================================================
   PAST DATE NOTICE — move date picker (page-9)
   Mirrors the sidebar's bold red + Passed badge style.
   ========================================================= */

.p9-past-date-notice {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  color: var(--gray-400);
  font-size: 11px;
}

.p9-past-date-notice__badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--badge-past-color);
  background: var(--badge-past-bg);
  border: 1px solid var(--badge-past-border);
  border-radius: 3px;
  padding: 1px 5px;
  line-height: 1.6;
  flex-shrink: 0;
  animation: badge-past-pulse 2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .p9-past-date-notice__badge {
    animation: none;
  }
}

.p9-past-date-notice__text {
  color: var(--gray-400);
  text-decoration: line-through;
}

body.pdf-export-mode .p9-past-date-notice {
  display: none;
}

.p9-past-date-notice--urgent {
  color: var(--notice-urgent-color);
}
.p9-past-date-notice--urgent .p9-past-date-notice__text {
  color: var(--notice-urgent-color);
  text-decoration: none;
}

.p9-past-date-notice--today {
  color: var(--notice-today-color);
}
.p9-past-date-notice--today .p9-past-date-notice__badge {
  color: var(--badge-today-color);
  background: var(--badge-today-bg);
  border-color: var(--badge-today-border);
}
.p9-past-date-notice--today .p9-past-date-notice__text {
  color: var(--notice-today-color);
  text-decoration: none;
  font-weight: 600;
}

.p9-past-date-notice--warning {
  color: var(--notice-warning-color);
}
.p9-past-date-notice--warning .p9-past-date-notice__badge {
  color: var(--badge-warning-color);
  background: var(--badge-warning-bg);
  border-color: var(--badge-warning-border);
}
.p9-past-date-notice--warning .p9-past-date-notice__text {
  color: var(--notice-warning-color);
  text-decoration: none;
}

/* =========================================================
   OVERDUE WARNING — Timeline Planner (page-8)
   Subtle inline warning. Non-blocking, low visual weight.
   ========================================================= */

.overdue-banner {
  border-left: 3px solid var(--notice-warning-border);
  background: var(--notice-warning-bg);
  color: var(--notice-warning-text);
  font-size: 12.5px;
  line-height: 1.6;
  padding: 9px 13px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 12px;
}

.tbl-row--overdue td:first-child {
  color: var(--notice-warning-color);
  font-weight: 600;
}

.tbl-row--overdue td:first-child::after {
  content: ' ·';
  color: var(--notice-warning-color);
  font-weight: 400;
  opacity: 0.6;
}

.tbl-row--overdue {
  background: var(--notice-warning-bg);
}

body.pdf-export-mode .overdue-banner {
  display: none;
}

body.pdf-export-mode .tbl-row--overdue {
  background: transparent;
}

body.pdf-export-mode .tbl-row--overdue td:first-child {
  color: inherit;
  font-weight: inherit;
}

body.pdf-export-mode .tbl-row--overdue td:first-child::after {
  content: none;
}

.warning-dismiss-wrap {
  display: flex;
  gap: 5px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.warning-dismiss-btn,
.warning-snooze-btn {
  font-size: 11px;
  line-height: 1;
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid var(--notice-warning-accent);
  background: transparent;
  color: var(--notice-warning-color);
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.warning-dismiss-btn:hover,
.warning-snooze-btn:hover {
  background: var(--notice-warning-accent);
  color: #fff;
}

body.pdf-export-mode .warning-dismiss-wrap {
  display: none;
}

.overdue-reset-link {
  font-size: 12px;
  color: #78716c;
  margin: 0 0 10px 0;
}

.overdue-reset-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  color: var(--notice-warning-color);
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

.overdue-reset-btn:hover {
  color: var(--notice-warning-hover);
}

/* =========================================================
   UPGRADE NUDGE (V1.5)
   Contextual, inline, non-blocking. No popups, no pressure.
   ========================================================= */

.upgrade-nudge {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  background: var(--gray-100);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.upgrade-nudge-text {
  flex: 1;
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.6;
  min-width: 200px;
}

.upgrade-nudge-text strong {
  color: var(--black);
  display: block;
  font-size: 12.5px;
  margin-bottom: 2px;
  font-weight: 600;
}

.upgrade-nudge-link {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  padding: 7px 12px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  background: var(--white);
  white-space: nowrap;
  transition: border-color var(--transition), background var(--transition);
  display: inline-flex;
  align-items: center;
}

.upgrade-nudge-link:hover {
  border-color: var(--black);
  background: var(--gray-100);
}

/* =========================================================
   CHANGE PATH CONTROL (V1.5)
   ========================================================= */

.change-path-controls {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.change-path-btn {
  background: none;
  border: none;
  font-size: 10.5px;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font-family: var(--font);
  text-align: left;
  letter-spacing: 0.01em;
}

.change-path-btn:hover {
  color: var(--black);
}

/* =========================================================
   ABROAD MODE OVERHAUL PROMPTS (V1.5)
   ========================================================= */

.abroad-focus-prompt {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 4px;
}

.abroad-focus-prompt-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--gray-400);
  margin-bottom: 10px;
}

.abroad-focus-prompt-q {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 5px;
  line-height: 1.4;
}

.abroad-focus-prompt .field {
  margin-top: 2px;
}

/* =========================================================
   MISSED ITEMS SECTION (Page 8 — premium deeper layer)
   ========================================================= */

.missed-items-section {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}

.missed-items-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.missed-items-note {
  font-size: 12.5px;
  color: var(--gray-400);
  margin: 0 0 14px;
  font-style: italic;
  line-height: 1.45;
}

.missed-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 13px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  font-size: 12.5px;
  color: var(--gray-400);
  pointer-events: none;
  user-select: none;
  line-height: 1.45;
}

.missed-item-lock {
  font-size: 11px;
  flex-shrink: 0;
  color: var(--gray-300);
  margin-top: 1px;
}

.missed-items-unlock {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--gray-500);
}

.missed-items-unlock a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Path-specific visibility — default: all show (no path selected) */
body.path-study .missed-item.work-only,
body.path-study .missed-item.remote-only  { display: none; }

body.path-work .missed-item.study-only,
body.path-work .missed-item.remote-only   { display: none; }

body.path-remote .missed-item.study-only,
body.path-remote .missed-item.work-only   { display: none; }

body.path-exploring .missed-item.study-only,
body.path-exploring .missed-item.work-only,
body.path-exploring .missed-item.remote-only { display: none; }

/* =========================================================
   MID-FLOW NUDGE (Page 13 — subtle upgrade prompt)
   ========================================================= */

.mid-flow-nudge {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 20px 0;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
}

.mid-flow-nudge-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.mid-flow-nudge-link:hover { opacity: 0.65; }

/* =========================================================
   SKIP NOTE (inline reassurance on heavy pages)
   ========================================================= */

.skip-note {
  font-size: 12px;
  color: var(--gray-400);
  font-style: italic;
  margin: 0 0 16px;
  line-height: 1.4;
}

/* =========================================================
   PRIVACY FIRST NOTE (Page 2)
   ========================================================= */

.privacy-first {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--gray-100);
  border-left: 3px solid var(--black);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.45;
}

/* =========================================================
   COUNTRY GUIDANCE PANEL (Page 4 — Country comparison)
   ========================================================= */

.country-guidance-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 8px;
}

.country-guidance-intro {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.country-guidance-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--black);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.country-guidance-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}

.country-guidance-row {
  display: flex;
  gap: 10px;
  font-size: 12.5px;
  color: var(--gray-600);
  margin-bottom: 5px;
  line-height: 1.5;
}

.country-guidance-label {
  font-weight: 600;
  color: var(--black);
  min-width: 90px;
  flex-shrink: 0;
}

.country-guidance-pitfall .country-guidance-label {
  color: var(--warning);
}

.country-guidance-link {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.country-guidance-link:hover { opacity: 0.65; }

/* =========================================================
   NEXT STEPS PANEL — personalized summary (Page 8)
   ========================================================= */

.next-steps-panel {
  margin: 24px 0 8px;
}

.next-steps-panel:empty {
  display: none;
}

.next-steps-header {
  margin-bottom: 12px;
}

.next-steps-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.next-steps-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
}

.next-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.next-steps-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--black);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.next-steps-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  background: var(--black);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.next-steps-text {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
}

.next-steps-check-label {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.next-steps-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--black);
  flex-shrink: 0;
}

.next-steps-item--done {
  border-left-color: var(--gray-300);
  opacity: 0.6;
}

.next-steps-item--done .next-steps-text {
  text-decoration: line-through;
  color: var(--gray-400);
}

.next-steps-item--done .next-steps-num {
  background: var(--gray-300);
}

.next-steps-pitfall {
  font-size: 12.5px;
  color: var(--warning);
  background: #fffbf0;
  border: 1px solid #e8d98a;
  border-radius: var(--radius-md);
  padding: 9px 13px;
  line-height: 1.5;
}

.next-steps-pitfall-label {
  font-weight: 700;
  margin-right: 6px;
}

/* =========================================================
   PATH-SPECIFIC DOCUMENT CHECKLIST SECTIONS (Page 8)
   ========================================================= */

.path-doc-section {
  display: none;
}

body.path-study  .path-doc-section.study-doc-section  { display: block; }
body.path-work   .path-doc-section.work-doc-section   { display: block; }
body.path-remote .path-doc-section.remote-doc-section { display: block; }

/* =========================================================
   PAGE 6 — PATH-SPECIFIC BLOCKS (Pathway decision)
   ========================================================= */
.p6-path-block {
  display: none;
}

body.path-study     .p6-study     { display: block; }
body.path-work      .p6-work      { display: block; }
body.path-remote    .p6-remote    { display: block; }
body.path-exploring .p6-exploring { display: block; }

/* No path chosen yet — show exploring block as fallback */
body:not(.path-study):not(.path-work):not(.path-remote):not(.path-exploring) .p6-exploring {
  display: block;
}

.p6-path-intro {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0 0 20px;
}

.p6-closing-prompt {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.p6-closing-label {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--black) !important;
}

/* =========================================================
   COST COUNTRY REFERENCE NOTE (Page 10 — Full cost breakdown)
   ========================================================= */

.cost-country-note {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: 4px;
}

.cost-country-note strong {
  color: var(--black);
  font-weight: 600;
}

/* =========================================================
   EXPLORING PATH — doc section hint (V1.7)
   ========================================================= */

.exploring-doc-hint {
  display: none;
  font-size: 12.5px;
  color: var(--gray-400);
  font-style: italic;
  margin-top: 16px;
  padding: 10px 14px;
  border-left: 2px solid var(--gray-200);
}

/* Show only when no specific path is active */
body:not(.path-study):not(.path-work):not(.path-remote) .exploring-doc-hint {
  display: block;
}

/* =========================================================
   COUNTRY GUIDANCE HINT TEXT (V1.7)
   ========================================================= */

.field-hint-subtle {
  font-size: 12px;
  color: var(--gray-400);
  margin: 0 0 12px;
  line-height: 1.45;
}

/* =========================================================
   WIDE TABLE — HORIZONTAL SCROLL ON MOBILE (V1.7)
   ========================================================= */

.tbl--wide {
  min-width: 460px;
}

/* =========================================================
   MOBILE: MAKE TBL-FIELD INPUTS VISUALLY DISCOVERABLE (V1.7)
   ========================================================= */

@media (max-width: 600px) {
  .tbl-field {
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 3px;
    min-height: 26px;
  }

  /* Ensure wide tables scroll instead of squishing */
  .tbl-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* =========================================================
   v2.0 additions
   ========================================================= */

/* T1 / T8: Cover page additions */
.cover-wazowork-note {
  font-size: 11px;
  color: var(--gray-400);
  margin: 4px 0 10px;
  letter-spacing: .01em;
}

.cover-usage-count {
  font-size: 12px;
  color: var(--gray-400);
  margin: 4px 0 8px;
}

/* T1: Sidebar WazoWork note */
.sidebar-wazowork-note {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 6px;
  line-height: 1.4;
  opacity: .7;
}

/* T9: Locked preview elements */
.locked-preview-card {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 12px;
  opacity: .5;
  position: relative;
  user-select: none;
}

.locked-preview-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 6px;
}

.locked-preview-content {
  font-size: 13px;
  color: var(--gray-500);
  font-style: italic;
}

.locked-insight {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--gray-400);
  opacity: .6;
  user-select: none;
}

.locked-blur {
  background: var(--gray-300);
  color: transparent;
  border-radius: 2px;
  padding: 0 4px;
  user-select: none;
}

.locked-checklist-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  opacity: .45;
  user-select: none;
}

.locked-checklist-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--gray-400);
  font-style: italic;
}

/* T2: Visa check + T4 Housing lookup */
.section-subtitle {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--gray-700, #333);
  margin: 0 0 10px;
}

.visa-check-section,
.housing-lookup-section {
  margin-bottom: 4px;
}

.visa-check-inputs {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin: 12px 0;
}

.visa-check-result {
  margin-top: 12px;
}

.visa-result-card {
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}

.visa-result-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--gray-100);
}

.visa-result-row:last-child {
  border-bottom: none;
}

.visa-result-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-400);
  min-width: 130px;
  flex-shrink: 0;
}

.visa-result-val {
  font-size: 13px;
  color: var(--gray-800, #222);
  flex: 1;
}

.visa-result-disclaimer {
  font-size: 11px;
  color: var(--gray-400);
  padding: 8px 14px;
  background: var(--gray-50, #fafafa);
  border-top: 1px solid var(--gray-100);
  font-style: italic;
}

.visa-result-unknown {
  font-size: 13px;
  color: var(--gray-500);
  padding: 12px 0;
  font-style: italic;
}

.visa-result-unknown a {
  color: var(--gray-700, #333);
}

/* T3: Readiness score */
.readiness-section {
  padding: 4px 0 8px;
}

.readiness-display {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin: 10px 0 8px;
}

.readiness-score-num {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--gray-900, #111);
  line-height: 1;
}

.readiness-score-denom {
  font-size: 20px;
  color: var(--gray-400);
  font-weight: 400;
}

.readiness-score-msg {
  font-size: 14px;
  color: var(--gray-600, #555);
  line-height: 1.5;
  max-width: 480px;
}

/* T5: Micro-feedback */
.micro-feedback {
  padding: 12px 0 4px;
  border-top: 1px solid var(--gray-100);
  margin-top: 24px;
}

.mf-ask {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mf-label {
  font-size: 12px;
  color: var(--gray-500);
}

.mf-btn {
  font-size: 12px;
  padding: 4px 12px;
  border: 1px solid var(--gray-300, #ccc);
  background: none;
  border-radius: 3px;
  cursor: pointer;
  color: var(--gray-600, #555);
  transition: border-color .15s, color .15s;
}

.mf-btn:hover {
  border-color: var(--gray-500);
  color: var(--gray-900, #111);
}

.mf-followup {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.mf-input {
  flex: 1;
  min-width: 180px;
  font-size: 13px !important;
}

.mf-followup-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mf-send-btn {
  font-size: 12px !important;
  padding: 5px 12px !important;
}

.mf-skip-btn {
  font-size: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  padding: 0;
  text-decoration: underline;
}

.mf-skip-btn:hover {
  color: var(--gray-600, #555);
}

.mf-thanks {
  font-size: 12px;
  color: var(--gray-400);
  padding: 6px 0;
  font-style: italic;
}

/* Inline feedback forms (replaces static Google Form links) */
.feedback-inline-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fi-input {
  font-size: 13px !important;
  resize: vertical;
  min-height: 52px;
  line-height: 1.5;
}
.fi-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fi-send {
  font-size: 12px !important;
  padding: 5px 14px !important;
}
.fi-thanks {
  font-size: 12px;
  color: var(--gray-400);
  font-style: italic;
}

/* T6: Email capture */
.email-capture-block {
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 16px;
  margin: 20px 0;
  background: var(--gray-50, #fafafa);
}

.email-capture-label {
  font-size: 13px;
  color: var(--gray-700, #333);
  margin-bottom: 10px;
  font-weight: 500;
}

.email-capture-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.email-capture-input {
  flex: 1;
  min-width: 180px;
}

.email-capture-thanks {
  font-size: 13px;
  color: var(--gray-500);
  font-style: italic;
  padding: 4px 0;
}

.email-capture-privacy {
  font-size: 11px;
  color: var(--gray-400);
  padding: 4px 0 2px;
  line-height: 1.4;
}

.email-capture-dismiss {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  color: var(--gray-400);
  padding: 6px 0 0;
  text-decoration: underline;
  text-align: left;
}

.email-capture-dismiss:hover {
  color: var(--gray-600, #555);
}

/* Mobile adjustments for new elements */
@media (max-width: 767px) {
  .visa-check-inputs {
    flex-direction: column;
    align-items: stretch;
  }

  .visa-check-inputs .field-group {
    width: 100%;
  }

  .visa-check-inputs .btn {
    width: 100%;
  }

  .visa-result-label {
    min-width: 100px;
  }

  .readiness-score-num {
    font-size: 40px;
  }

  .email-capture-row {
    flex-direction: column;
    align-items: stretch;
  }

  .email-capture-input,
  #email-capture-submit {
    width: 100%;
  }

  .mf-followup {
    flex-direction: column;
    align-items: stretch;
  }

  .mf-input {
    width: 100%;
  }
}

/* =========================================================
   v2.1 fixes
   ========================================================= */

/* Visa disclaimer banner */
.visa-warning-banner {
  font-size: 12px;
  color: var(--gray-700, #333);
  background: var(--gray-100, #f5f5f5);
  border-left: 3px solid var(--gray-400, #999);
  padding: 8px 12px;
  margin-bottom: 14px;
  line-height: 1.5;
  border-radius: 0 3px 3px 0;
}

/* Backup reminder on page 2 */
.backup-reminder-banner {
  font-size: 13px;
  color: var(--gray-800, #222);
  background: var(--gray-100, #f5f5f5);
  border: 1px solid var(--gray-300, #ccc);
  border-left: 3px solid var(--gray-600, #555);
  padding: 10px 14px;
  margin-bottom: 20px;
  border-radius: 0 3px 3px 0;
  line-height: 1.5;
}

/* Readiness guidance */
.readiness-guidance {
  margin-top: 10px;
}

.readiness-next-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gray-400, #999);
  font-weight: 600;
  margin-bottom: 6px;
}

.readiness-next-item {
  font-size: 12px;
  color: var(--gray-600, #555);
  padding: 4px 0;
  border-bottom: 1px solid var(--gray-100, #f0f0f0);
  line-height: 1.4;
}

.readiness-next-item:last-child {
  border-bottom: none;
}

/* What's next block (page 17) */
.whats-next-block {
  padding: 20px 0 4px;
  border-top: 1px solid var(--gray-200, #e0e0e0);
  margin-bottom: 28px;
}

.whats-next-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--gray-900, #111);
  margin: 0 0 14px;
}

.whats-next-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.whats-next-item {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 13px;
  color: var(--gray-700, #333);
  line-height: 1.5;
}

.whats-next-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gray-900, #111);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ================================================================
   PREMIUM UNLOCK — v2.0
   ================================================================ */

/* --- Default: hide all premium content --- */
.premium-content {
  display: none;
}

/* --- When body.premium: show premium content, hide upsell --- */
body.premium .premium-content            { display: block; }
body.premium .upgrade-nudge              { display: none !important; }
body.premium .mid-flow-nudge             { display: none !important; }
body.premium .premium-hint               { display: none !important; }
body.premium .missed-items-unlock        { display: none !important; }
body.premium .premium-card               { display: none !important; }
body.premium .locked-preview-card        { display: none !important; }
body.premium .locked-insight             { display: none !important; }
body.premium .locked-checklist-items     { display: none !important; }

/* --- Path-specific doc sections (hidden until body.path-* set) --- */
body.premium .premium-study-docs,
body.premium .premium-work-docs,
body.premium .premium-remote-docs {
  display: none;
}
body.premium.path-study .premium-study-docs   { display: block; }
body.premium.path-work  .premium-work-docs    { display: block; }
body.premium.path-remote .premium-remote-docs { display: block; }
/* No path selected → show all three sections */
body.premium:not(.path-study):not(.path-work):not(.path-remote) .premium-study-docs,
body.premium:not(.path-study):not(.path-work):not(.path-remote) .premium-work-docs,
body.premium:not(.path-study):not(.path-work):not(.path-remote) .premium-remote-docs {
  display: block;
}

/* --- Premium sidebar badge --- */
.premium-sidebar-badge {
  font-size: 11px;
  font-weight: 700;
  color: #047857;
  letter-spacing: 0.04em;
  padding: 3px 0 6px;
}

/* --- Premium intro text --- */
.premium-intro-text {
  font-size: 13px;
  color: var(--gray-600, #444);
  margin: 0 0 16px;
  line-height: 1.6;
}

/* --- Premium rule block (the sequencing/first-month rule) --- */
.premium-rule-block {
  background: var(--gray-50, #f9f9f9);
  border-left: 3px solid var(--gray-300, #ccc);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--gray-700, #333);
  line-height: 1.6;
  border-radius: 0 4px 4px 0;
  margin-top: 16px;
}

/* --- Application sequencing list --- */
.premium-seq-ol {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.premium-seq-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  flex-wrap: wrap;
}
.seq-rank {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gray-900, #111);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.seq-name {
  font-weight: 600;
  color: var(--gray-900, #111);
  flex: 1;
  min-width: 140px;
}
.seq-deadline {
  font-size: 12px;
  color: var(--gray-500);
}
.seq-status {
  font-size: 11px;
  color: var(--gray-400);
  font-style: italic;
}
.seq-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
}
.seq-overdue { background: var(--notice-urgent-bg); color: var(--notice-urgent-color); }
.seq-urgent  { background: var(--seq-urgent-bg);  color: var(--seq-urgent-color); }
.seq-soon    { background: var(--seq-soon-bg);    color: var(--seq-soon-color); }
.seq-ok      { background: var(--seq-ok-bg);      color: var(--seq-ok-color); }
.premium-seq-empty {
  font-size: 13px;
  color: var(--gray-500);
  font-style: italic;
}

/* --- Budget insight card --- */
.premium-insight-card {
  background: var(--gray-50, #f9f9f9);
  border: 1px solid var(--gray-200, #e5e5e5);
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 4px;
}
.premium-insight-text {
  font-size: 13px;
  color: var(--gray-700, #333);
  line-height: 1.7;
  margin: 0;
}

/* --- Premium document list --- */
.premium-doc-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.premium-doc-list li {
  font-size: 13px;
  line-height: 1.5;
}

/* --- Premium path section label --- */
.premium-path-section {
  margin-bottom: 20px;
}
.premium-path-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 8px;
}

/* --- Country doc extras --- */
.premium-country-doc-block {
  background: var(--notice-warning-bg);
  border-left: 3px solid var(--notice-warning-accent);
  padding: 12px 14px;
  border-radius: 0 4px 4px 0;
  margin-top: 4px;
}
.premium-country-doc-title {
  color: var(--notice-warning-hover);
}
.premium-country-doc-text {
  font-size: 13px;
  color: var(--gray-700, #333);
  line-height: 1.6;
  margin: 6px 0 0;
}

/* --- First days guide blocks --- */
.premium-guide-block {
  background: var(--gray-50, #f9f9f9);
  border: 1px solid var(--gray-200, #e5e5e5);
  border-radius: 6px;
  padding: 14px 16px;
  margin-top: 16px;
}
.premium-guide-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.premium-guide-text {
  font-size: 13px;
  color: var(--gray-700, #333);
  line-height: 1.7;
  margin: 0;
}

/* --- Thank you card (page 17) --- */
.premium-thankyou-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 24px;
}
.premium-thankyou-title {
  font-size: 22px;
  font-weight: 700;
  color: #15803d;
  margin-bottom: 10px;
}
.premium-thankyou-sub {
  font-size: 14px;
  color: var(--gray-700, #333);
  line-height: 1.6;
  margin-bottom: 16px;
}
.premium-thankyou-access {
  font-size: 13px;
  color: var(--gray-600, #444);
  line-height: 1.6;
  padding: 12px 14px;
  background: #dcfce7;
  border-radius: 6px;
  margin-bottom: 12px;
}
.premium-thankyou-note {
  font-size: 11px;
  color: #16a34a;
  letter-spacing: 0.03em;
}

/* ================================================================
   UNLOCK CODE MODAL — v2.0
   ================================================================ */

/* Sidebar trigger — hidden when premium is active */
.sidebar-unlock-trigger {
  display: block;
  background: none;
  border: none;
  padding: 0;
  font-size: 11px;
  color: var(--gray-400, #888);
  cursor: pointer;
  text-align: left;
  margin-bottom: 4px;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sidebar-unlock-trigger:hover { color: var(--gray-700, #333); }
body.premium .sidebar-unlock-trigger { display: none; }

/* Inline "Already paid?" trigger in upsell blocks */
.unlock-code-trigger {
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  margin-top: 10px;
  font-size: 12px;
  color: var(--gray-500, #666);
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-align: left;
}
.unlock-code-trigger:hover { color: var(--gray-900, #111); }
body.premium .unlock-code-trigger { display: none !important; }

/* CTA area trigger on page 17 premium card */
.premium-cta-code-trigger {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--gray-500, #666);
}

/* Overlay */
.unlock-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Modal box */
.unlock-modal-box {
  background: #fff;
  border-radius: 10px;
  padding: 32px 28px 24px;
  max-width: 400px;
  width: 100%;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}

/* Close button */
.unlock-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--gray-400, #888);
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.unlock-modal-close:hover { color: var(--gray-900, #111); }

/* Title & sub */
.unlock-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900, #111);
  margin-bottom: 8px;
}
.unlock-modal-sub {
  font-size: 13px;
  color: var(--gray-600, #555);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Input */
.unlock-modal-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--gray-300, #ccc);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: monospace;
  letter-spacing: 0.04em;
  color: var(--gray-900, #111);
  margin-bottom: 8px;
  outline: none;
}
.unlock-modal-input:focus { border-color: var(--gray-700, #333); }

/* Error */
.unlock-modal-error {
  font-size: 12px;
  color: var(--notice-urgent-color);
  margin-bottom: 10px;
  line-height: 1.5;
}

/* Submit button */
.unlock-modal-submit {
  display: block;
  width: 100%;
  background: var(--gray-900, #111);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 16px;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}
.unlock-modal-submit:hover { background: var(--gray-700, #333); color: #fff; }

/* Help line */
.unlock-modal-help {
  font-size: 12px;
  color: var(--gray-500, #666);
  text-align: center;
}
.unlock-modal-help a { color: inherit; }

/* =========================================================
   PAGE-LINK BUTTONS (inline nav links in mode-note blocks)
   ========================================================= */
.pg-link {
  background: none;
  border: none;
  border-bottom: 1.5px solid currentColor;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline;
  line-height: inherit;
}
.pg-link:hover {
  opacity: 0.65;
}

/* ==========================================
   BUDGET CURRENCY PICKER
   ========================================== */
.currency-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.currency-row-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.currency-select {
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 5px 28px 5px 10px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.currency-select:hover {
  border-color: var(--gray-400);
}
.currency-select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.currency-auto-badge {
  font-size: 11px;
  color: var(--gray-500);
  font-style: italic;
}
.budget-ccy {
  font-size: 10px;
  opacity: 0.6;
  font-weight: 400;
  margin-left: 2px;
}

/* Sidebar global currency selector */
.sidebar-currency-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.sidebar-currency-label {
  font-size: 10.5px;
  color: var(--gray-400);
  white-space: nowrap;
}
.sidebar-currency-select {
  font-size: 11.5px;
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 5px;
  padding: 3px 22px 3px 7px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  max-width: 120px;
}
.sidebar-currency-select:hover {
  border-color: var(--gray-400);
}
.sidebar-currency-select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* =========================================================
   PAGE 18: HEALTH INSURANCE FINDER
   ========================================================= */

.p18-info-card {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--gray-400);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 12px 0 16px;
}
.p18-info-card-header {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.p18-requirement-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.p18-requirement-list li {
  font-size: 13px;
  color: var(--gray-600);
  padding: 5px 0;
  border-bottom: 1px solid var(--gray-200);
  line-height: 1.45;
}
.p18-requirement-list li:last-child { border-bottom: none; }

.p18-cost-card {
  background: var(--gray-700);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 12px 0 16px;
}
.p18-cost-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0.7;
  margin-bottom: 4px;
}
.p18-cost-amount {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}
.p18-cost-note {
  font-size: 12px;
  opacity: 0.8;
}

.p18-provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 12px 0 16px;
}
.p18-provider-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: var(--white);
}
.p18-provider-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 8px;
}
.p18-provider-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
}
.p18-provider-badge {
  font-size: 10px;
  padding: 2px 6px;
  background: var(--gray-700);
  color: var(--white);
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.p18-provider-badge:empty { display: none; }
.p18-provider-cost {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 4px;
}
.p18-provider-note {
  font-size: 11px;
  color: var(--gray-500);
  line-height: 1.45;
}

.p18-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 16px;
}
.p18-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.5;
}
.p18-checklist-item input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.p18-warning-card {
  background: #fffbf0;
  border: 1px solid #e8d87a;
  border-left: 3px solid var(--warning);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 12px 0 16px;
}
.p18-warning-card > strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--warning);
  margin-bottom: 8px;
}
.p18-warning-card ul {
  padding-left: 16px;
  margin: 0;
}
.p18-warning-card li {
  font-size: 12px;
  color: var(--gray-700);
  line-height: 1.5;
  margin-bottom: 4px;
}
.p18-warning-card li:last-child { margin-bottom: 0; }

.p18-comparison-wrap {
  overflow-x: auto;
  margin: 8px 0 16px;
}
.p18-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.p18-comparison-table th,
.p18-comparison-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}
.p18-comparison-table th {
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-700);
}
.p18-comparison-table td { color: var(--gray-600); }
.p18-comparison-table a { color: var(--gray-700); font-weight: 500; }

.p18-guide-card {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-700);
  margin-bottom: 16px;
}
.p18-guide-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--black);
}
.p18-guide-card h5 {
  font-size: 11px;
  font-weight: 600;
  margin: 12px 0 5px;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.p18-guide-card ul { padding-left: 16px; margin: 0; }
.p18-guide-card li { margin-bottom: 4px; }

.p18-template-pre {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--gray-700);
  font-family: 'Courier New', Courier, monospace;
  margin: 8px 0 12px;
}

@media (max-width: 600px) {
  .p18-provider-grid { grid-template-columns: 1fr; }
  .p18-cost-amount { font-size: 22px; }
}

/* ============================================================
   PREMIUM MODAL — What you get for €15
   ============================================================ */

.premium-modal-box {
  max-width: 480px;
}

.premium-modal-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.premium-modal-list li {
  font-size: 13px;
  color: var(--gray-700, #333);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}

.premium-modal-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--black, #111);
  font-weight: 700;
  font-size: 12px;
}

.premium-modal-list li strong {
  color: var(--black, #111);
  font-weight: 600;
}

.premium-modal-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--black, #111);
  margin: 16px 0 4px;
  letter-spacing: -0.02em;
}

.premium-modal-price span {
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-500, #777);
  letter-spacing: 0;
}

.premium-modal-reassurance {
  font-size: 12px;
  color: var(--gray-500, #777);
  margin-bottom: 14px;
}

.premium-modal-code-btn {
  display: block;
  background: none;
  border: none;
  font-size: 12px;
  color: var(--gray-500, #777);
  cursor: pointer;
  padding: 6px 0 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.premium-modal-code-btn:hover {
  color: var(--black, #111);
}

/* Rent baseline hint below cost-country-note */
.rent-baseline-hint {
  font-size: 12px;
  color: var(--gray-600, #555);
  background: var(--gray-50, #fafafa);
  border: 1px solid var(--gray-200, #e8e6e2);
  border-radius: var(--radius-md, 6px);
  padding: 8px 12px;
  margin: 6px 0 10px;
  line-height: 1.5;
}

.rent-baseline-hint strong {
  color: var(--black, #111);
}

/* Visa verified badge */
.visa-verified-date {
  font-size: 10.5px;
  color: var(--gray-500, #777);
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--gray-200, #e8e6e2);
}

/* ============================================================
   MOBILE LAYOUT PASS — v2.7
   Comprehensive fixes across all 18 pages.
   ============================================================ */

/* ----------------------------------------------------------
   COMPARISON TABLE — horizontal scroll on mobile
   Wraps .cmp-country-names + .cmp-table
   ---------------------------------------------------------- */

.cmp-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  padding: 0 4px 4px;
}

@media (max-width: 600px) {
  .cmp-scroll-wrap {
    /* Nudge left so the sticky factor column feels flush */
    margin: 0 -2px;
  }
  .cmp-country-names,
  .cmp-row {
    /* Fixed factor column + 3 equally wide columns — never narrower than 440px */
    grid-template-columns: 110px repeat(3, minmax(100px, 1fr));
    min-width: 440px;
  }
  .cmp-table {
    min-width: 440px;
  }
  .cmp-factor {
    font-size: 11px;
    padding: 7px 8px;
  }
}

/* ----------------------------------------------------------
   BUDGET TABLE — horizontal scroll on very small screens
   ---------------------------------------------------------- */

@media (max-width: 420px) {
  .budget-table {
    min-width: 380px;
  }
  /* Wrap the budget table so it scrolls rather than squishing */
  .budget-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ----------------------------------------------------------
   TOPBAR — tighten further below 400px
   ---------------------------------------------------------- */

@media (max-width: 400px) {
  .topbar {
    padding: 8px 12px;
    gap: 6px;
  }
  .topbar-page-indicator {
    font-size: 11px;
  }
  /* On the smallest phones, hide "Share summary" — least critical action */
  #share-summary-btn {
    display: none;
  }
  .topbar-actions {
    gap: 3px;
  }
  .topbar-actions .btn {
    padding: 5px 7px;
    min-width: 30px;
  }
}

/* ----------------------------------------------------------
   PAGE NAV — larger tap targets + full-width on tiny screens
   ---------------------------------------------------------- */

@media (max-width: 480px) {
  .page-nav {
    margin-top: 24px;
    padding-top: 16px;
  }
  .page-nav .btn {
    padding: 10px 18px;
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .page-nav {
    flex-direction: column;
    gap: 10px;
  }
  .page-nav .btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }
  .page-nav-center {
    order: -1;
  }
}

/* ----------------------------------------------------------
   CONTENT BODY — slightly tighter on very small phones
   ---------------------------------------------------------- */

@media (max-width: 380px) {
  .content-body {
    padding: 16px 12px;
  }
}

/* ----------------------------------------------------------
   COVER PAGE — scale down heading on tiny screens
   ---------------------------------------------------------- */

@media (max-width: 420px) {
  .cover-title {
    font-size: 24px;
  }
  .cover-subtitle {
    font-size: 14px;
  }
}

/* ----------------------------------------------------------
   UNLOCK + PREMIUM MODALS — tighter padding on mobile
   ---------------------------------------------------------- */

@media (max-width: 480px) {
  .unlock-modal-box,
  .premium-modal-box {
    padding: 24px 16px 18px;
    border-radius: 8px;
  }
  .unlock-modal-title,
  .premium-modal-title {
    font-size: 16px;
  }
  .unlock-modal-overlay {
    padding: 12px;
    align-items: flex-end; /* sheet-style — rises from the bottom */
  }
  .unlock-modal-box,
  .premium-modal-box {
    border-radius: 12px 12px 0 0;
    max-width: 100%;
  }
  .premium-modal-price {
    font-size: 20px;
  }
}

/* ----------------------------------------------------------
   JOURNEY PROMPT MODAL (first-run stage picker)
   ---------------------------------------------------------- */

@media (max-width: 480px) {
  .journey-modal-overlay {
    padding: 12px;
    align-items: flex-end;
  }
  .journey-modal-box {
    border-radius: 12px 12px 0 0;
    max-width: 100%;
    padding: 24px 16px 20px;
  }
  .journey-choice-btn {
    padding: 14px 16px;
    font-size: 14px;
  }
}

/* ----------------------------------------------------------
   SECTION LABELS — a touch smaller at mobile
   ---------------------------------------------------------- */

@media (max-width: 480px) {
  .section-label {
    font-size: 9.5px;
  }
  .page-title {
    font-size: 18px;
  }
}

/* ----------------------------------------------------------
   UPGRADE NUDGE / PREMIUM CARD — full width, no orphan CTA
   ---------------------------------------------------------- */

@media (max-width: 480px) {
  .upgrade-nudge,
  .mid-flow-nudge {
    padding: 14px;
  }
  .upgrade-nudge-link,
  .mid-flow-nudge-link {
    display: block;
    text-align: center;
    margin-top: 8px;
  }
  .premium-card {
    padding: 16px;
  }
  .premium-compare {
    grid-template-columns: 1fr;
  }
  .premium-compare-col {
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
    padding: 14px;
  }
  .premium-compare-col:last-child {
    border-bottom: none;
  }
}

/* ----------------------------------------------------------
   APPLICATION TRACKER TABLE — horizontal scroll
   ---------------------------------------------------------- */

@media (max-width: 600px) {
  .tracker-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ----------------------------------------------------------
   SIDEBAR — prevent body scroll when open on mobile
   ---------------------------------------------------------- */

body.sidebar-open {
  overflow: hidden;
}

/* ----------------------------------------------------------
   FORM FIELD LABELS — comfortable line height on mobile
   ---------------------------------------------------------- */

@media (max-width: 600px) {
  .field-label {
    font-size: 11.5px;
    line-height: 1.45;
  }
  .field-hint-subtle,
  .field-hint {
    font-size: 11.5px;
  }
  /* Textarea fields — min height so they're not tiny on mobile */
  textarea.field {
    min-height: 80px;
  }
}

/* ----------------------------------------------------------
   HEALTH INSURANCE PAGE (18) — provider grid on mobile
   ---------------------------------------------------------- */

@media (max-width: 480px) {
  .p18-provider-grid {
    grid-template-columns: 1fr;
  }
  .p18-cost-amount {
    font-size: 20px;
  }
  .p18-comparison-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ----------------------------------------------------------
   CHECKLIST ITEMS — tap target size
   ---------------------------------------------------------- */

@media (max-width: 600px) {
  .checklist-item {
    padding: 9px 0;
    gap: 10px;
  }
  .checklist-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
}

/* ----------------------------------------------------------
   VISA RESULT CARD — tighter on mobile
   ---------------------------------------------------------- */

@media (max-width: 480px) {
  .visa-result-card {
    padding: 12px;
  }
  .visa-result-row {
    flex-direction: column;
    gap: 2px;
    padding: 7px 0;
  }
  .visa-result-label {
    min-width: unset;
    font-size: 10px;
  }
  .visa-result-value {
    font-size: 13px;
  }
}

/* ----------------------------------------------------------
   LANDING PAGE (index.html) — tighter hero on mobile
   ---------------------------------------------------------- */

@media (max-width: 480px) {
  .lp-hero-title {
    font-size: 32px;
  }
  .lp-hero-subtitle {
    font-size: 16px;
  }
}

/* ----------------------------------------------------------
   COVER PAGE — destination input + Begin button
   ---------------------------------------------------------- */

.cover-destination {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
}

.cover-destination-label {
  font-size: 13px;
  font-weight: 600;
  color: #111;
  letter-spacing: 0.01em;
}

.cover-destination-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  background: #fff;
  color: #111;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.cover-destination-input:focus {
  border-color: #111;
}

.cover-begin-btn {
  align-self: flex-start;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s, opacity 0.15s;
}

.cover-begin-btn:hover {
  background: #333;
}

/* ----------------------------------------------------------
   UNLOCK MODAL — email-first redesign
   ---------------------------------------------------------- */

.unlock-email-cta {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: #111;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.01em;
  transition: background 0.15s;
  box-sizing: border-box;
}

.unlock-email-cta:hover {
  background: #333;
}

.unlock-modal-divider {
  margin: 16px 0 8px;
  font-size: 12px;
  color: #888;
  text-align: center;
  white-space: nowrap;
}

.unlock-modal-code-hint {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 8px;
}

.unlock-modal-code-hint code {
  font-family: monospace;
  background: #f0f0f0;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 11px;
}

/* Dev-only swipe-dismiss failure notice */
.swipe-dismiss-dev-warn {
  position: fixed;
  bottom: 14px;
  right: 14px;
  z-index: 9999;
  max-width: 320px;
  background: #fff8e1;
  border: 1px solid #f9a825;
  border-left: 4px solid #f9a825;
  border-radius: 4px;
  padding: 10px 36px 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #5d4200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.swipe-dismiss-dev-warn strong {
  display: block;
  margin-bottom: 2px;
  font-size: 12.5px;
}

.swipe-dismiss-dev-warn-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #a07000;
  padding: 0 2px;
}

.pdf-libs-dev-warn {
  position: fixed;
  bottom: 100px;
  right: 14px;
  z-index: 9999;
  max-width: 320px;
  background: #fff8e1;
  border: 1px solid #f9a825;
  border-left: 4px solid #f9a825;
  border-radius: 4px;
  padding: 10px 36px 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #5d4200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pdf-libs-dev-warn strong {
  display: block;
  margin-bottom: 2px;
  font-size: 12.5px;
}

.pdf-libs-dev-warn-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #a07000;
  padding: 0 2px;
}
