:root {
  color-scheme: light;

  /* Warm Editorial Palette — Inspired by Flexa App Reference */
  --canvas: #f3efe9;
  --cream: #f5efe6;
  --cream-soft: #faf7f2;
  --surface: #ffffff;

  --ink: #11211e;
  --ink-2: #6b665f;
  --ink-3: #9a938a;

  --line: #eae4dc;
  --line-strong: #dcd3c7;

  /* Signature Tactile Chartreuse Lime */
  --lime: #d3f248;
  --lime-grad: linear-gradient(180deg, #defb5c 0%, #c8ea37 100%);
  --lime-grad-hover: linear-gradient(180deg, #e5fd72 0%, #d1f045 100%);
  --lime-border: #a3c320;
  --lime-soft: #f5fde2;
  --lime-ink: #11211e;

  /* Tactile Warm Sand / Pearl Secondary Pill */
  --sand-grad: linear-gradient(180deg, #fdfbf8 0%, #f3e9de 100%);
  --sand-grad-hover: linear-gradient(180deg, #ffffff 0%, #ede0d1 100%);
  --sand-border: #e4d7c7;

  /* Berry Pink & Mint Pop Accents */
  --pink: #ec348e;
  --pink-soft: #fff0f7;
  --pink-border: #f8bdd9;

  --mint: #16a374;
  --mint-soft: #eefbf5;
  --mint-border: #b6ebd6;

  --warn-ink: #8a5208;
  --warn-soft: #fef7ea;
  --warn-border: #f3dfb8;

  --err-ink: #be185d;
  --err-soft: #fff1f5;
  --err-border: #fbcfe0;

  --shadow-card: 0 2px 6px rgba(24, 20, 14, 0.03), 0 18px 42px rgba(24, 20, 14, 0.055);
  --shadow-sm: 0 2px 8px rgba(24, 20, 14, 0.04);
  --shadow-lime: inset 0 2px 2px rgba(255, 255, 255, 0.75), 0 4px 14px rgba(178, 212, 30, 0.25);
  --shadow-sand: inset 0 1.5px 2px rgba(255, 255, 255, 0.92), 0 2px 6px rgba(32, 24, 16, 0.045);

  --r-sheet: 28px;
  --r-card: 20px;
  --r-tile: 16px;
  --r-pill: 999px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  background-color: var(--canvas);
  color: var(--ink);
  font: 15px/1.62 "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-display {
  font-family: "Plus Jakarta Sans", "DM Sans", -apple-system, sans-serif;
  color: var(--ink);
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
}

p,
li,
span,
div {
  min-width: 0;
}

code,
.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.hide {
  display: none !important;
}

.muted {
  color: var(--ink-2);
}

/* ============================================================
   WARM APP HEADER
   ============================================================ */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background: rgba(243, 239, 233, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220, 211, 199, 0.65);
}

.header-inner {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.welcome-cluster {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1 1 auto;
  min-width: 0;
}

.avatar-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fde6d8;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(17, 33, 30, 0.08);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.avatar-badge svg {
  width: 26px;
  height: 26px;
}

.welcome-text {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.welcome-sub {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.welcome-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 11px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.timer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  flex-shrink: 0;
  animation: softPulse 2s infinite;
}

@keyframes softPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.88); }
}

.icon-sq-btn {
  height: 36px;
  padding: 0 11px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.icon-sq-btn:hover {
  border-color: var(--line-strong);
  background: var(--cream-soft);
}

.icon-sq-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.langsw {
  position: relative;
}

.langsw .dd {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 185px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(17, 33, 30, 0.12);
  z-index: 80;
}

.langsw .dd.open {
  display: block;
}

.langsw .dd button {
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  text-align: left;
}

.langsw .dd button:hover {
  background: var(--cream);
}

/* ============================================================
   TACTILE PILL BUTTONS
   ============================================================ */
.pill-btn,
.btn {
  appearance: none;
  max-width: 100%;
  border-radius: var(--r-pill);
  padding: 12px 22px;
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.14s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  user-select: none;
}

.pill-btn svg,
.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.pill-btn.lime,
.btn.primary,
.btn.ok-btn {
  background: var(--lime-grad);
  color: var(--lime-ink);
  border: 1px solid var(--lime-border);
  box-shadow: var(--shadow-lime);
}

.pill-btn.lime:hover:not(:disabled),
.btn.primary:hover:not(:disabled),
.btn.ok-btn:hover:not(:disabled) {
  background: var(--lime-grad-hover);
  transform: translateY(-1px);
}

.pill-btn.sand,
.btn.ghost {
  background: var(--sand-grad);
  color: var(--ink);
  border: 1px solid var(--sand-border);
  box-shadow: var(--shadow-sand);
}

.pill-btn.sand:hover:not(:disabled),
.btn.ghost:hover:not(:disabled) {
  background: var(--sand-grad-hover);
  transform: translateY(-1px);
}

.pill-btn:active:not(:disabled),
.btn:active:not(:disabled) {
  transform: translateY(0);
}

.pill-btn:disabled,
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.pill-btn.soft-muted {
  opacity: 0.75;
}

.btn.lg,
.pill-btn.lg {
  padding: 13px 26px;
  font-size: 14.5px;
}

.btn.sm,
.pill-btn.sm {
  padding: 8px 14px;
  font-size: 12.5px;
}

/* ============================================================
   MAIN SHELL & STAGE WRAPPERS (Strict Zero-Overflow Constraints)
   ============================================================ */
.app-shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

.stage-wrap {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
}

/* ============================================================
   SCREEN 1: ONBOARDING LANGUAGE HERO
   ============================================================ */
.onboard-card {
  width: 100%;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-sheet);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.onboard-visual {
  padding: 40px 36px;
  background: var(--cream);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

.editorial-h1 {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.editorial-h1 .dash-line {
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--ink);
  vertical-align: middle;
  margin-right: 8px;
  transform: translateY(-2px);
}

.editorial-h1 .grad-word {
  background: linear-gradient(90deg, #ec348e 0%, #c6df1f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sparkle-inline {
  display: inline-block;
  width: 22px;
  height: 22px;
  vertical-align: top;
  margin-left: 4px;
  transform: translateY(-3px);
}

.illus-wrap {
  width: 100%;
  max-width: 265px;
  margin: 4px auto;
}

.illus-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

.onboard-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}

.onboard-picker {
  padding: 40px 34px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.onboard-picker h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
}

.onboard-picker p {
  margin: 0 0 20px;
  font-size: 13.5px;
  color: var(--ink-2);
}

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

.langcard {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.langcard-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.langcard-left span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.langcard .fl {
  font-size: 18px;
  flex-shrink: 0;
}

.langcard-arrow {
  color: var(--ink-3);
  font-size: 14px;
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}

.langcard:hover {
  background: var(--lime-grad);
  border-color: var(--lime-border);
  box-shadow: var(--shadow-lime);
  transform: translateY(-1px);
}

.langcard:hover .langcard-arrow {
  color: var(--ink);
  transform: translateX(2px);
}

/* ============================================================
   SCREEN 2: JOB DETAIL SHEET
   ============================================================ */
.job-sheet {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sheet);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.sheet-cream-top {
  background: var(--cream);
  padding: 20px 30px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.back-text-btn {
  border: 0;
  background: transparent;
  padding: 4px 0;
  color: var(--ink-2);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.back-text-btn:hover {
  color: var(--ink);
}

.slot-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.slot-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a374;
  display: inline-block;
  flex-shrink: 0;
}

.sheet-body {
  padding: 0 32px 34px;
}

.emblem-circle {
  width: 68px;
  height: 68px;
  margin-top: -34px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(17, 33, 30, 0.06);
  display: grid;
  place-items: center;
}

.emblem-circle svg {
  width: 34px;
  height: 34px;
}

.job-title {
  margin: 0 0 8px;
  font-size: clamp(21px, 3vw, 27px);
  font-weight: 800;
  line-height: 1.22;
}

.job-desc {
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 580px;
}

.cta-action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

/* Underline Tabs */
.underline-tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.underline-tabs::-webkit-scrollbar {
  display: none;
}

.u-tab {
  position: relative;
  border: 0;
  background: transparent;
  padding: 10px 2px 13px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.u-tab:hover {
  color: var(--ink);
}

.u-tab.active {
  color: var(--ink);
  font-weight: 700;
}

.u-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2.5px;
  border-radius: 3px;
  background: var(--pink);
}

.tab-section-title {
  margin: 0 0 12px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
}

.clean-bullets {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.clean-bullets li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.58;
  color: var(--ink-2);
  overflow-wrap: break-word;
}

.clean-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ink-3);
  font-weight: 700;
}

.clean-bullets li b,
.clean-bullets li strong {
  color: var(--ink);
  font-weight: 600;
}

/* 3 Warm Square Info Tiles */
.info-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.info-tile {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.duo-ico {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.duo-ico svg {
  width: 30px;
  height: 30px;
  display: block;
}

.info-tile small {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 2px;
}

.info-tile strong {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: break-word;
}

/* ============================================================
   SCREEN 3: RESPONSIVE 9-STEP WORKSPACE (Desktop, iPad, Mobile)
   ============================================================ */
.work-layout {
  width: 100%;
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.work-sheet-col {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.mobile-pills-wrap {
  display: none;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

/* Desktop Left Sidebar */
.work-sidebar {
  position: sticky;
  top: 78px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.pack-job-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.pack-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.pack-logo-sm {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--cream);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pack-logo-sm svg {
  width: 22px;
  height: 22px;
}

.pack-step-counter {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--cream);
  color: var(--ink);
}

.pack-niche-lbl {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 2px;
}

.pack-niche-name {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 12px;
  overflow-wrap: break-word;
}

.pack-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
}

.pack-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pack-meta-item svg {
  width: 14px;
  height: 14px;
  color: var(--ink-3);
  flex-shrink: 0;
}

.step-pills-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.step-pills-head {
  padding: 4px 8px 10px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.step-pills-head span:last-child {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}

.v-pills-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-pill {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.14s ease;
}

.step-pill:hover:not(:disabled):not(.active) {
  background: var(--cream-soft);
  border-color: var(--line);
  color: var(--ink);
}

.step-pill:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sp-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.sp-num svg {
  width: 13px;
  height: 13px;
}

.step-pill.active {
  background: var(--lime-grad);
  border-color: var(--lime-border);
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--shadow-lime);
}

.step-pill.active .sp-num {
  background: var(--ink);
  color: var(--lime);
}

.step-pill.done:not(.active) {
  color: var(--ink);
}

.step-pill.done:not(.active) .sp-num {
  background: var(--mint-soft);
  color: var(--mint);
  border: 1px solid var(--mint-border);
}

/* ============================================================
   RIGHT COLUMN: STEP SHEET CARD
   ============================================================ */
.step-sheet {
  width: 100%;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sheet);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.step-cream-head {
  background: var(--cream);
  padding: 26px 32px 24px;
  border-bottom: 1px solid var(--line);
}

.step-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.step-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

.step-kicker i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  display: inline-block;
  flex-shrink: 0;
}

.step-cat-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.step-cream-head h2 {
  margin: 0;
  font-size: clamp(19px, 2.6vw, 24px);
  font-weight: 800;
  line-height: 1.26;
  color: var(--ink);
  overflow-wrap: break-word;
}

.step-cream-head .step-lead {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--ink-2);
  overflow-wrap: break-word;
}

.step-content-pad {
  width: 100%;
  max-width: 100%;
  padding: 28px 32px 24px;
}

.step-content-pad h3 {
  margin: 22px 0 10px;
  font-size: 16px;
  font-weight: 700;
}

.step-content-pad h3:first-child {
  margin-top: 0;
}

.step-content-pad ol,
.step-content-pad ul {
  margin: 10px 0 18px;
  padding-left: 20px;
  color: var(--ink-2);
}

.step-content-pad li {
  margin: 7px 0;
  font-size: 14.5px;
  overflow-wrap: break-word;
}

.step-content-pad li b,
.step-content-pad li strong {
  color: var(--ink);
}

/* Spec List Rows */
.spec-list {
  width: 100%;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  margin: 14px 0 18px;
}

.spec-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.spec-row:last-child {
  border-bottom: 0;
}

.spec-key {
  font-weight: 700;
  color: var(--ink);
}

.spec-val {
  color: var(--ink-2);
  min-width: 0;
  overflow-wrap: break-word;
}

/* Target Link Bar — Strict Zero-Overflow */
.target-bar {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 12px 16px;
  margin: 14px 0 18px;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.target-url {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
}

.target-url span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.target-url svg {
  width: 17px;
  height: 17px;
  color: var(--pink);
  flex-shrink: 0;
}

.target-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.open-ext-btn {
  padding: 8px 15px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #ffffff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: opacity 0.15s ease, transform 0.14s ease;
}

.open-ext-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.open-ext-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* ============================================================
   SMART COPYABLE DATA CARDS (.field)
   ============================================================ */
.field {
  width: 100%;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  margin: 12px 0;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.field:hover {
  border-color: var(--line-strong);
}

.field.copied-ok {
  background: #fbfef2;
  border-color: #bdd938;
}

.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.field-lbl {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
}

.field-cnt {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--ink-3);
}

.copy-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-pill);
}

.copy-status svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.copy-status.req {
  background: var(--cream);
  color: var(--ink-2);
}

.copy-status.ok {
  background: var(--lime-soft);
  color: #3f5905;
  border: 1px solid #cde65c;
}

.field-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.field .val {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.52;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  cursor: pointer;
  padding: 2px 4px;
  margin: -2px -4px;
  border-radius: 8px;
}

.field .val.mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 13.5px;
}

.copy {
  appearance: none;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--sand-grad);
  border: 1px solid var(--sand-border);
  box-shadow: var(--shadow-sand);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: all 0.14s ease;
}

.copy svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.copy:hover {
  background: var(--sand-grad-hover);
  transform: translateY(-1px);
}

.copy.done {
  background: var(--lime-grad);
  border-color: var(--lime-border);
  color: var(--ink);
  box-shadow: var(--shadow-lime);
}

/* ============================================================
   BOARDS CARDS (Step 7)
   ============================================================ */
.boards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
  width: 100%;
}

.board {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.board.copied-ok {
  background: #fbfef2;
  border-color: #bdd938;
}

.board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.board-title-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  flex: 1 1 auto;
  min-width: 0;
}

.board-idx {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.bt-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  overflow-wrap: anywhere;
}

.board-desc-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.board-desc-row span {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
}

/* ============================================================
   SCREEN GUIDE FRAME & ALERTS
   ============================================================ */
.browser-frame {
  width: 100%;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.browser-bar {
  padding: 10px 16px;
  background: var(--cream-soft);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}

.browser-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.browser-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd4c7;
  display: block;
}

.browser-cap {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-canvas {
  padding: 12px;
  background: var(--surface);
}

.browser-canvas svg {
  width: 100%;
  height: auto;
  display: block;
}

.note {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 16px;
  margin: 14px 0;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.55;
}

.note > div {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
}

.note svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.note.info {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.note.info svg {
  color: var(--pink);
}

.note.warn {
  background: var(--warn-soft);
  border: 1px solid var(--warn-border);
  color: var(--warn-ink);
}

.note.ok {
  background: var(--mint-soft);
  border: 1px solid var(--mint-border);
  color: #0e6b4c;
}

.note.err {
  background: var(--err-soft);
  border: 1px solid var(--err-border);
  color: var(--err-ink);
}

/* ============================================================
   CONFIRMATION CHECKBOX & VERIFICATION GATE CARDS
   ============================================================ */
.chk {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 18px;
  margin-top: 18px;
  border-radius: 18px;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.15s ease;
}

.chk span {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
}

.chk:hover {
  border-color: var(--line-strong);
}

.chk input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}

.chk:has(input:checked) {
  background: #f8fee8;
  border-color: #b7d633;
}

.gatebox,
.csv-box {
  width: 100%;
  margin-top: 22px;
  padding: 22px;
  border-radius: 22px;
  background: var(--cream-soft);
  border: 1px solid var(--line);
}

.gatebox.verified {
  background: var(--mint-soft);
  border-color: var(--mint-border);
}

.gatebox h3,
.csv-box h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gatebox h3 svg,
.csv-box h3 svg {
  width: 19px;
  height: 19px;
  color: var(--pink);
  flex-shrink: 0;
}

.inp-group {
  margin-bottom: 14px;
}

.inp-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.inp {
  width: 100%;
  padding: 12px 15px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.inp:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(211, 242, 72, 0.35);
}

.dropzone {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 22px 16px;
  margin: 12px 0 16px;
  border-radius: 18px;
  border: 1.5px dashed #d5cbbd;
  background: var(--surface);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone:hover,
.dropzone.drag-over {
  border-color: var(--ink);
  background: #f5fde2;
}

.dropzone input[type="file"] {
  display: none;
}

.drop-ico {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.drop-ico svg {
  width: 19px;
  height: 19px;
}

.shot-preview {
  max-width: 100%;
  max-height: 200px;
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.vcheck-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.vcheck-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 13px;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13.5px;
}

.vcheck-item.ok > span {
  color: var(--mint);
  font-weight: 800;
}

.vcheck-item.fail > span {
  color: var(--err-ink);
  font-weight: 800;
}

/* CSV Stats Tiles */
.csv-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.csv-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  min-width: 0;
}

.csv-stat small {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
}

.csv-stat b {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  color: var(--ink);
  overflow-wrap: break-word;
}

.pill {
  display: inline-block;
  max-width: 100%;
  padding: 4px 11px;
  margin: 3px 5px 3px 0;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
  overflow-wrap: break-word;
}

/* Proof Code Hero */
.proof-hero {
  width: 100%;
  padding: 28px 20px;
  margin: 12px 0 20px;
  border-radius: 22px;
  background: var(--cream);
  border: 1px solid var(--line-strong);
  text-align: center;
}

.proof-code-big {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 10px 0 16px;
  overflow-wrap: anywhere;
}

/* ============================================================
   INTEGRATED SHEET FOOTER
   ============================================================ */
.sheet-footer {
  padding: 18px 32px;
  background: var(--cream-soft);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  text-align: center;
}

.hint-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d5cbbd;
  flex-shrink: 0;
}

.hint-dot.ready {
  background: #84b816;
}

.row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================================================
   MODALS, TELEGRAM BANNER & TOAST
   ============================================================ */
.ov,
.tg-ov {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(17, 33, 30, 0.42);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ov .box,
.tg-modal {
  width: 100%;
  max-width: 580px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(17, 33, 30, 0.2);
  position: relative;
}

.tg-modal {
  max-width: 430px;
  text-align: center;
}

.tg-close-x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--cream-soft);
  cursor: pointer;
}

.tg-icon-wrap,
.tg-icon-sm {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e8f6fe;
  color: #0284c7;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
}

.tg-icon-sm {
  width: 42px;
  height: 42px;
  margin: 0;
  flex-shrink: 0;
}

.tg-icon-wrap svg,
.tg-icon-sm svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.tg-banner {
  margin-top: 20px;
  padding: 20px;
  border-radius: 20px;
  background: var(--cream-soft);
  border: 1px solid var(--line);
}

.tg-banner-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.tg-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--pink-soft);
  color: var(--pink);
}

.tg-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--r-pill);
  background: var(--lime-grad);
  border: 1px solid var(--lime-border);
  box-shadow: var(--shadow-lime);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.tg-cta svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.tg-handle-box {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.tg-handle-box span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tg-later {
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.w-toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  max-width: calc(100vw - 28px);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #ffffff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(17, 33, 30, 0.24);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(17, 33, 30, 0.22);
  border-top-color: var(--ink);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.attention-pulse {
  animation: warmShake 0.45s ease;
  box-shadow: 0 0 0 3px rgba(236, 52, 142, 0.28) !important;
}

@keyframes warmShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ============================================================
   MULTI-DEVICE RESPONSIVE BREAKPOINTS (PC, Laptop, iPad, Mobile)
   ============================================================ */

/* Compact Laptop & iPad Pro Landscape (1024px – 1160px) */
@media (max-width: 1160px) and (min-width: 1024px) {
  .work-layout {
    grid-template-columns: 265px minmax(0, 1fr);
    gap: 18px;
  }

  .step-cream-head,
  .step-content-pad,
  .sheet-footer {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* iPad Portrait, Tablets & Phones (< 1024px): Horizontal Swipeable Pill Strip */
@media (max-width: 1023px) {
  .work-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
    margin: 0 auto;
    gap: 14px;
  }

  .work-sidebar {
    display: none;
  }

  .mobile-pills-wrap {
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .mobile-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-pills::-webkit-scrollbar {
    display: none;
  }

  .m-pill {
    flex-shrink: 0;
    padding: 9px 15px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-2);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.14s ease;
  }

  .m-pill:disabled {
    opacity: 0.48;
    cursor: not-allowed;
  }

  .m-pill .m-ico {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--cream);
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
    display: grid;
    place-items: center;
    flex-shrink: 0;
  }

  .m-pill .m-ico svg {
    width: 11px;
    height: 11px;
  }

  .m-pill.active {
    background: var(--lime-grad);
    border-color: var(--lime-border);
    color: var(--ink);
    font-weight: 700;
    box-shadow: var(--shadow-lime);
  }

  .m-pill.active .m-ico {
    background: var(--ink);
    color: var(--lime);
  }

  .m-pill.done:not(.active) .m-ico {
    background: var(--mint-soft);
    color: var(--mint);
  }

  .onboard-card {
    grid-template-columns: minmax(0, 1fr);
    max-width: 680px;
    margin: 0 auto;
  }

  .onboard-visual {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 32px 28px;
  }

  .onboard-picker {
    padding: 30px 28px;
  }
}

/* Mobile Phones (< 768px): Native App Proportions + Sticky Bottom Thumb Dock */
@media (max-width: 767px) {
  body.in-work {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }

  .header-inner {
    padding: 10px 14px;
    gap: 8px;
  }

  .avatar-badge {
    width: 36px;
    height: 36px;
  }

  .avatar-badge svg {
    width: 22px;
    height: 22px;
  }

  .welcome-title {
    font-size: 14px;
  }

  .header-actions {
    gap: 6px;
  }

  .timer-pill {
    height: 34px;
    padding: 0 9px;
    font-size: 11.5px;
  }

  .icon-sq-btn {
    height: 34px;
    padding: 0 9px;
    border-radius: 10px;
  }

  .btn-txt-desktop {
    display: none;
  }

  .app-shell {
    padding: 12px 12px 32px;
  }

  .onboard-card,
  .job-sheet,
  .step-sheet {
    border-radius: 22px;
  }

  .onboard-visual {
    padding: 24px 20px 22px;
  }

  .illus-wrap {
    max-width: 200px;
  }

  .onboard-picker {
    padding: 22px 18px 26px;
  }

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

  .langcard {
    padding: 11px 13px;
    font-size: 13.5px;
  }

  /* Job Sheet Mobile */
  .sheet-cream-top {
    padding: 16px 18px 36px;
  }

  .sheet-body {
    padding: 0 18px 24px;
  }

  .cta-action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-action-row .pill-btn {
    width: 100%;
  }

  .info-tiles-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .info-tile {
    padding: 12px 10px;
    border-radius: 15px;
    gap: 8px;
  }

  .info-tile strong {
    font-size: 12.5px;
  }

  /* Step Sheet Mobile */
  .step-cream-head {
    padding: 18px 18px 16px;
  }

  .step-content-pad {
    padding: 18px 16px 22px;
  }

  .spec-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 11px 14px;
  }

  .target-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
  }

  .target-url span {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-all;
    line-height: 1.4;
  }

  .target-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .field {
    padding: 13px 14px;
  }

  .field-body {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .field-body .copy {
    align-self: flex-end;
  }

  .board {
    padding: 13px 14px;
  }

  .board-top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .board-top .copy {
    align-self: flex-end;
  }

  .board-desc-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .board-desc-row .copy {
    align-self: flex-end;
  }

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

  .gatebox,
  .csv-box {
    padding: 16px 14px;
    border-radius: 18px;
  }

  .gatebox .btn.lg,
  .csv-box .btn.lg {
    width: 100%;
    white-space: normal;
  }

  .ov .box,
  .tg-modal {
    padding: 20px 16px;
    border-radius: 22px;
  }

  /* Native Mobile Sticky Bottom Bar */
  .sheet-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px rgba(17, 33, 30, 0.06);
  }

  .footer-hint {
    display: none;
  }

  .sheet-footer #backBtn {
    padding: 12px 16px;
  }

  .sheet-footer #nextBtn {
    flex: 1;
    padding: 12px 18px;
  }

  .w-toast {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }
}

/* Compact Phones (< 400px — iPhone SE / Mini) */
@media (max-width: 399px) {
  #langswName {
    display: none;
  }

  .langgrid {
    grid-template-columns: minmax(0, 1fr);
  }

  .info-tiles-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .info-tile {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
}

/* RTL Support (Arabic) */
html[dir="rtl"] .clean-bullets li {
  padding-left: 0;
  padding-right: 16px;
}

html[dir="rtl"] .clean-bullets li::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .step-pill {
  text-align: right;
}

html[dir="rtl"] .langsw .dd {
  right: auto;
  left: 0;
}
