/* SAVE-1150 — shared styling for the extension-setup guide pages
   (savegenie.app/safariextensionios | safariextensionmacos | chromeextensionmacos).

   GenieFeed restyle (2026-09-11): mirrors the app's design language —
   one violet brand wash per mode (SGGradient.brandWashLight / dark field),
   frosted cards (SGColor.surface + SGColor.divider hairline + SGShadow.card,
   28pt continuous corners), violet accent (#7C3AED / #864BED), capsule
   primary button, Figtree 800 wordmark. Token values are copied from
   Sources/SGDesign/Sources/SGDesign/Tokens — keep them in step. */

:root {
  /* SGColor.sgAccent */
  --sg-accent: #7C3AED;
  --sg-accent-press: #6D2FD6;
  --sg-accent-wash: rgba(124, 58, 237, 0.10);
  --sg-accent-wash-strong: rgba(124, 58, 237, 0.16);
  --sg-eyebrow-fill: rgba(124, 58, 237, 0.14);
  --sg-eyebrow-ink: #5B21B6;
  --sg-glyph: #7C3AED;
  /* SGColor.primary / secondary / tertiary (light) */
  --sg-ink: #0B0B0F;
  --sg-ink-soft: rgba(60, 60, 67, 0.62);
  --sg-ink-faint: rgba(60, 60, 67, 0.40);
  /* SGColor.surface / divider (light) */
  --sg-card: rgba(255, 255, 255, 0.80);
  --sg-line: rgba(0, 0, 0, 0.12);
  --sg-shadow: 0 8px 16px rgba(0, 0, 0, 0.10);
  /* SGColor.priceDrop / pillGreen */
  --sg-ok: #1DA851;
  --sg-ok-wash: rgba(34, 197, 94, 0.14);
  /* SGRadius.card / button */
  --sg-radius: 28px;
  --sg-radius-inner: 16px;
  /* SGGradient.brandWashLight */
  --sg-field: linear-gradient(180deg, #CCB8F2 0%, #E6DEF9 45%, #F6F5FB 100%);
  --sg-hero-fill: linear-gradient(160deg, #8F57F5 0%, #7538DB 100%);
}

* { box-sizing: border-box; }

html { background: #F6F5FB; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--sg-ink);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--sg-field);
  background-attachment: fixed;
}

.sg-wrap {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(28px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
}

/* ---- Brand row: Smoky + wordmark -------------------------------------- */
.sg-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}
.sg-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.30);
}
.sg-wordmark {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--sg-ink);
}

/* ---- Header: eyebrow + title ------------------------------------------ */
.sg-header { margin-bottom: 18px; }
.sg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--sg-eyebrow-fill);
  color: var(--sg-eyebrow-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.sg-header h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.sg-lede {
  margin: 10px 0 0;
  color: var(--sg-ink-soft);
  font-size: 16px;
  line-height: 1.45;
}

/* ---- Frosted card (SGColor.surface + divider + SGShadow.card) --------- */
.sg-card {
  background: var(--sg-card);
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  box-shadow: var(--sg-shadow);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

/* ---- Footer / return area ---------------------------------------------- */
.sg-footer { margin-top: auto; padding-top: 28px; text-align: center; }
.sg-hint { color: var(--sg-ink-soft); font-size: 15px; margin: 0 0 14px; }

/* Capsule primary button (.sgPrimary) */
.sg-btn {
  display: block;
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 999px;
  background: var(--sg-accent);
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.28);
  transition: background .15s ease, opacity .2s ease, box-shadow .2s ease, transform .05s ease;
}
.sg-btn:active { transform: translateY(1px); background: var(--sg-accent-press); }

/* Return button dims until the beacon confirms the extension is on. It stays
   tappable throughout (never hard-blocked) — dimming is a readiness hint only. */
.sg-btn[data-sg-return] { opacity: .5; box-shadow: none; }
.sg-btn[data-sg-return].is-ready { opacity: 1; box-shadow: 0 8px 20px rgba(124, 58, 237, 0.28); }

/* Status pill: "✓ Save Genie is on" (pillGreen wash, priceDrop ink) */
.sg-detected {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 auto 14px;
  padding: 8px 14px;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  background: var(--sg-ok-wash);
  color: var(--sg-ok);
  font-weight: 700;
  font-size: 15px;
}
/* .sg-reload visibility is JS-authoritative (guide.js shows/hides it). */
.sg-reload { display: none; color: var(--sg-ink-faint); font-size: 13px; margin: 12px 0 0; }

/* ---- Hero panel (non-Safari iOS, Chrome coming-soon) ------------------- */
.sg-hero { text-align: center; padding: 28px 22px 24px; }
.sg-hero-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 20px;
}
.sg-hero-icons img,
.sg-hero-icons svg {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}
.sg-hero-icons span { color: var(--sg-ink-faint); font-size: 22px; font-weight: 700; }
.sg-hero h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 8px;
}
.sg-hero p { color: var(--sg-ink-soft); font-size: 16px; line-height: 1.45; margin: 0 0 18px; }

/* The ONE saturated violet container per screen (SGGradient.insightsHero). */
.sg-hero.is-accent {
  background: var(--sg-hero-fill);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.35);
}
.sg-hero.is-accent h2 { color: #fff; }
.sg-hero.is-accent p { color: rgba(255, 255, 255, 0.82); margin-bottom: 0; }
.sg-hero.is-accent .sg-hero-icons span { color: rgba(255, 255, 255, 0.7); }
.sg-hero.is-accent .sg-eyebrow {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  margin-bottom: 14px;
}

/* Copy-link row (inset well, concentric with the card: 28 − 12) */
.sg-copy-row {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius-inner);
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}
.sg-copy-row code {
  flex: 1 1 auto;
  /* min-width:0 lets the nowrap URL ellipsize instead of forcing the row
     (and the whole card) wider than the viewport. */
  min-width: 0;
  padding: 14px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--sg-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
.sg-copy-row button {
  flex: 0 0 auto;
  margin: 5px;
  border: none;
  border-radius: 999px;
  background: var(--sg-accent);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 0 16px;
  cursor: pointer;
}
.sg-copy-row button:active { background: var(--sg-accent-press); }

/* ---- Dark mode (SGAppBackground dark field, SGColor dark branch) ------ */
@media (prefers-color-scheme: dark) {
  :root {
    --sg-accent: #864BED;
    --sg-accent-press: #7A3FE0;
    --sg-accent-wash: rgba(134, 75, 237, 0.22);
    --sg-accent-wash-strong: rgba(134, 75, 237, 0.30);
    --sg-eyebrow-fill: rgba(134, 75, 237, 0.30);
    --sg-eyebrow-ink: #DCCDFF;
    --sg-glyph: #C4B0FF;
    --sg-ink: #ffffff;
    --sg-ink-soft: rgba(255, 255, 255, 0.60);
    --sg-ink-faint: rgba(255, 255, 255, 0.50);
    --sg-card: rgba(255, 255, 255, 0.08);
    --sg-line: rgba(255, 255, 255, 0.14);
    --sg-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    --sg-ok: #30D158;
    --sg-ok-wash: rgba(48, 209, 88, 0.16);
    /* darkFieldBase + darkFieldBloom */
    --sg-field:
      radial-gradient(120% 60% at 100% 0%, rgba(124, 58, 237, 0.35) 0%, rgba(124, 58, 237, 0) 60%),
      linear-gradient(180deg, rgba(82, 41, 140, 0.85) 0%, rgba(41, 23, 77, 0.55) 30%, rgba(14, 10, 26, 0) 55%),
      #0E0A1A;
  }
  html { background: #0E0A1A; }
  .sg-copy-row { background: rgba(255, 255, 255, 0.06); }
  .sg-hero-icons img, .sg-hero-icons svg { box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4); }
}

@media (prefers-reduced-motion: reduce) {
  .sg-btn, .sg-copy-row button { transition: none; }
}

/* =====================================================================
   Scenes — a mock of the real UI moment above each step, with a violet
   spotlight on the tap target (Checkmate-style, in the GenieFeed skin).
   Mocks use the system font so they read as iOS / macOS chrome, not as
   page copy. ONE stage panel shows the current step's scene (tap a step,
   or it auto-advances until you do); the steps are a compact list.
   ===================================================================== */
/* The inset well (SGColor.imageWell), concentric with the card: 28 − 12 */
.sg-scene {
  --mock-bg: #ffffff;
  --mock-ink: #1c1c1e;
  --mock-ink-soft: #8e8e93;
  --mock-line: rgba(60, 60, 67, 0.16);
  --mock-fill: #f2f2f7;
  position: relative;
  border-radius: 16px;
  background: var(--sg-well);
  padding: 22px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--mock-ink);
  -webkit-user-select: none;
  user-select: none;
}
.sg-scene svg { width: 18px; height: 18px; }

/* Spotlight: violet halo + ring on the tap target */
.spot {
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--sg-accent), 0 0 0 14px rgba(124, 58, 237, 0.18);
  border-radius: inherit;
}
.spot-pulse { animation: sg-pulse 2.2s ease-in-out infinite; }
@keyframes sg-pulse {
  0%, 100% { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--sg-accent), 0 0 0 14px rgba(124, 58, 237, 0.18); }
  50%      { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--sg-accent), 0 0 0 20px rgba(124, 58, 237, 0.06); }
}
@media (prefers-reduced-motion: reduce) { .spot-pulse { animation: none; } }

/* Highlighted row/menu item (the thing to choose) */
.is-hot { background: var(--sg-accent-wash-strong) !important; color: var(--sg-accent-press) !important; }
.is-hot svg { color: var(--sg-accent-press); }

/* ---- iOS address bar ---------------------------------------------- */
.mock-ios-bar { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 300px; }
.mock-pill {
  flex: 1 1 auto; min-width: 0; height: 48px; border-radius: 23px;
  background: var(--mock-bg); box-shadow: 0 1px 3px rgba(0,0,0,0.10);
  display: flex; align-items: center; gap: 8px; padding: 0 8px 0 6px;
}
.mock-aa {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--mock-fill); color: var(--mock-ink); font-weight: 700; font-size: 13px; letter-spacing: -0.02em;
}
.mock-url { flex: 1 1 auto; min-width: 0; text-align: center; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-reload { color: var(--mock-ink); font-size: 18px; padding-right: 4px; }

/* ---- iOS menu sheet / list ---------------------------------------- */
.mock-sheet, .mock-list {
  width: 100%; max-width: 300px; border-radius: 14px; overflow: hidden;
  background: var(--mock-bg); box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.mock-menu-row, .mock-row {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  font-size: 15px; border-top: 1px solid var(--mock-line);
}
.mock-menu-row:first-child, .mock-row:first-child { border-top: none; }
.mock-menu-row > span:first-child, .mock-row > .mock-label { flex: 1 1 auto; }
.mock-menu-row svg { color: var(--mock-ink); }
.mock-muted { color: var(--mock-ink-soft); }
.mock-app { width: 26px; height: 26px; border-radius: 7px; }
.mock-app-blank { background: #d1d1d6; }
.mock-row .mock-label { font-weight: 500; }
.mock-toggle {
  flex: 0 0 auto; width: 46px; height: 28px; border-radius: 14px; background: #e9e9eb; position: relative;
}
.mock-toggle::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}
.mock-toggle.on { background: #34c759; }
.mock-toggle.on::after { left: 20px; }
.mock-chevron { color: #c7c7cc; font-size: 16px; }

/* ---- macOS menu bar + dropdown ------------------------------------ */
.mock-mac { width: 100%; max-width: 330px; }
.mock-menubar {
  display: flex; align-items: center; gap: 14px; padding: 6px 12px; border-radius: 10px 10px 0 0;
  background: var(--mock-bg); font-size: 13px; font-weight: 500; box-shadow: 0 1px 3px rgba(0,0,0,0.10);
}
.mock-menubar .apple { width: 12px; height: 14px; border-radius: 4px 4px 5px 5px; background: var(--mock-ink); }
.mock-menubar .is-open { padding: 2px 8px; margin: -2px -8px; border-radius: 5px; background: var(--sg-accent); color: #fff !important; font-weight: 700; }
.mock-dropdown {
  margin: 4px 0 0 22px; width: 190px; border-radius: 10px; padding: 5px;
  background: var(--mock-bg); box-shadow: 0 6px 18px rgba(0,0,0,0.18); font-size: 13px;
}
.mock-dropdown > div { display: flex; justify-content: space-between; padding: 5px 9px; border-radius: 6px; }
.mock-dropdown kbd { font-family: inherit; color: var(--mock-ink-soft); }
.mock-dropdown .is-hot kbd { color: inherit; }
.mock-sep { height: 1px; background: var(--mock-line); margin: 4px 6px; padding: 0 !important; }

/* ---- macOS Settings toolbar tabs ---------------------------------- */
.mock-tabs {
  display: flex; gap: 4px; padding: 8px; border-radius: 12px; width: 100%; max-width: 330px;
  background: var(--mock-bg); box-shadow: 0 1px 3px rgba(0,0,0,0.10); overflow: hidden;
}
.mock-tab {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 2px 6px; border-radius: 8px; font-size: 10.5px; color: var(--mock-ink); text-align: center;
}
.mock-tab .ico { width: 22px; height: 22px; border-radius: 6px; background: #d1d1d6; }
.mock-tab.is-hot .ico { background: var(--sg-accent); display: flex; align-items: center; justify-content: center; }
.mock-tab.is-hot .ico svg { width: 15px; height: 15px; color: #fff; }

/* ---- macOS checkbox list + detail pane ---------------------------- */
.mock-check {
  flex: 0 0 auto; width: 16px; height: 16px; border-radius: 4px; border: 1px solid #b8b8bd; background: #fff;
}
.mock-check.on { background: var(--sg-accent); border-color: var(--sg-accent); position: relative; }
.mock-check.on::after {
  content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.mock-pane { width: 100%; max-width: 300px; }
.mock-pane .mock-caption { font-size: 12px; color: var(--mock-ink-soft); margin: 0 0 8px; }
.mock-select {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 12px; border-radius: 9px; background: var(--mock-bg); font-size: 13.5px; font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12); border: 1px solid var(--mock-line);
}
.mock-select .caret { font-size: 11px; }

/* ---- Chrome toolbar ----------------------------------------------- */
.mock-chrome-bar {
  display: flex; align-items: center; gap: 8px; width: 100%; max-width: 330px; padding: 8px 10px;
  border-radius: 12px; background: var(--mock-bg); box-shadow: 0 1px 3px rgba(0,0,0,0.10);
}
.mock-omni { flex: 1 1 auto; min-width: 0; height: 30px; border-radius: 15px; background: var(--mock-fill); display: flex; align-items: center; padding: 0 12px; font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mock-toolbtn { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--mock-ink); }
.mock-toolbtn img { width: 22px; height: 22px; border-radius: 6px; }

/* Well colour tokens */
:root { --sg-well: #EFEAF4; }
@media (prefers-color-scheme: dark) {
  :root { --sg-well: rgba(255, 255, 255, 0.06); }
  .sg-scene {
    --mock-bg: #2c2c2e; --mock-ink: #f2f2f7; --mock-ink-soft: #98989d;
    --mock-line: rgba(255,255,255,0.12); --mock-fill: #3a3a3c;
  }
  .spot, .spot-pulse { box-shadow: 0 0 0 3px var(--mock-bg), 0 0 0 6px var(--sg-accent), 0 0 0 14px rgba(134, 75, 237, 0.22); }
  @keyframes sg-pulse {
    0%, 100% { box-shadow: 0 0 0 3px var(--mock-bg), 0 0 0 6px var(--sg-accent), 0 0 0 14px rgba(134, 75, 237, 0.22); }
    50%      { box-shadow: 0 0 0 3px var(--mock-bg), 0 0 0 6px var(--sg-accent), 0 0 0 20px rgba(134, 75, 237, 0.08); }
  }
  .is-hot { color: #DCCDFF !important; }
  .is-hot svg { color: #DCCDFF; }
  .mock-check { background: #3a3a3c; border-color: #6e6e73; }
  .mock-toggle { background: #48484a; }
  .mock-app-blank, .mock-tab .ico { background: #5a5a5e; }
}

/* Spotlight rings must not be clipped by their container: containers stay
   overflow-visible and round their first/last rows instead. */
.mock-sheet, .mock-list, .mock-tabs { overflow: visible; }
.mock-menu-row:first-child, .mock-row:first-child { border-radius: 14px 14px 0 0; }
.mock-menu-row:last-child,  .mock-row:last-child  { border-radius: 0 0 14px 14px; }
.mock-menu-row.spot, .mock-row.spot, .mock-tab.spot, .mock-dropdown > .spot { border-radius: 10px; }
.mock-tabs { padding: 10px 12px; }
.sg-scene { padding: 26px 24px; }

/* ---- Stage: ONE static hero visual of the critical moment ------------- */
.sg-stage { padding: 12px; margin-bottom: 14px; }
.sg-stage .sg-scene { min-height: 0; padding: 22px 18px; }

/* ---- Compact step list ------------------------------------------------- */
.sg-steplist { list-style: none; margin: 0; padding: 4px 6px; }
.sg-steplist li {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 12px; font-size: 16px; font-weight: 500; line-height: 1.35; color: var(--sg-ink);
}
.sg-steplist li + li { border-top: 1px solid var(--sg-line); }
.sg-steplist .n {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--sg-hero-fill); color: #fff; font-weight: 800; font-size: 14px;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.30);
}
.sg-steplist .t { flex: 1 1 auto; min-width: 0; }
.sg-steplist .t b { font-weight: 700; }
.sg-steplist .t svg { width: 20px; height: 20px; vertical-align: -4px; color: var(--sg-glyph); margin: 0 1px; }
.sg-steplist .t img { width: 22px; height: 22px; border-radius: 6px; vertical-align: -5px; margin: 0 1px; }
.sg-steplist .t kbd {
  font-family: inherit; font-size: 13px; font-weight: 700; padding: 0 6px; border-radius: 6px;
  border: 1px solid var(--sg-line); background: var(--sg-accent-wash); vertical-align: 1px;
}
.mini-toggle { display: inline-block; width: 30px; height: 18px; border-radius: 9px; background: #34c759; position: relative; vertical-align: -4px; margin: 0 1px; }
.mini-toggle::after { content: ""; position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.mini-check { display: inline-block; width: 16px; height: 16px; border-radius: 4px; background: var(--sg-accent); position: relative; vertical-align: -3px; margin: 0 1px; }
.mini-check::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---- Composite mocks ---------------------------------------------------- */
.mock-stack { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 330px; }
.mock-window { width: 100%; max-width: 420px; border-radius: 12px; overflow: visible; background: var(--mock-bg); box-shadow: 0 8px 24px rgba(0,0,0,0.16); }
.mock-titlebar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--mock-line); font-size: 13px; font-weight: 600; }
.mock-titlebar .dots { display: inline-flex; gap: 5px; }
.mock-titlebar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.mock-titlebar .dots i:nth-child(2) { background: #febc2e; }
.mock-titlebar .dots i:nth-child(3) { background: #28c840; }
.mock-titlebar strong { flex: 1 1 auto; text-align: center; margin-right: 40px; }
.mock-window .mock-tabs { box-shadow: none; border-radius: 0; padding: 8px 10px; border-bottom: 1px solid var(--mock-line); max-width: none; }
.mock-split { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px; }
.mock-split .mock-list { flex: 1 1 150px; box-shadow: none; border: 1px solid var(--mock-line); max-width: none; }
.mock-split .mock-pane { flex: 1 1 150px; padding: 4px 2px; }
.mock-pane .mock-name { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin: 0 0 12px; }
.mock-split .mock-row { padding: 10px 12px; font-size: 14px; }

/* ---- Hero logo tiles (real browser marks in a white rounded tile) ----- */
.sg-tile {
  width: 60px; height: 60px; border-radius: 16px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}
.sg-tile img { width: 46px; height: 46px; border-radius: 0; box-shadow: none; }

/* ---- Extra mocks for the iOS Manage Extensions sheet ------------------ */
.mock-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 8px; font-size: 15px; }
.mock-sheet-head strong { flex: 1 1 auto; text-align: center; font-weight: 600; }
.mock-sheet-head .mock-done { color: #0a7aff; font-weight: 600; }
.mock-sheet-head > span:first-child { width: 34px; }
.mock-search { margin: 0 12px 10px; height: 34px; border-radius: 10px; background: var(--mock-fill); color: var(--mock-ink-soft); font-size: 15px; display: flex; align-items: center; padding: 0 10px; gap: 6px; }
.mock-search svg { width: 17px; height: 17px; color: var(--mock-ink-soft); }
.mock-skel { flex: 1 1 auto; height: 12px; border-radius: 6px; background: var(--mock-fill); }
.mock-app-blank.alt { background: #7c3aed; opacity: .55; }
.mock-app-blank.alt2 { background: #34a853; opacity: .55; }

/* ---- macOS Safari Settings › Extensions (faithful layout) ------------ */
.mock-window { max-width: 460px; }
.mock-tabs.is-cropped { justify-content: flex-end; overflow: hidden; position: relative; gap: 2px; }
.mock-tabs.is-cropped::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 40px; z-index: 1;
  background: linear-gradient(90deg, var(--mock-bg), rgba(255,255,255,0));
}
.mock-tabs.is-cropped .mock-tab { flex: 0 0 auto; width: 58px; }
.mock-tab.is-hot { background: var(--sg-accent-wash-strong) !important; color: #0a7aff !important; }
.mock-tab.is-hot .ico { background: transparent; }
.mock-tab.is-hot .ico svg { color: #0a7aff; width: 20px; height: 20px; }
.mock-side { flex: 0 0 150px; border: 1px solid var(--mock-line); border-radius: 8px; padding: 6px 0; font-size: 13px; }
.mock-side-add { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-weight: 500; }
.mock-side-add svg { color: var(--mock-ink-soft); width: 18px; height: 18px; }
.mock-side-head { padding: 10px 12px 4px; font-size: 12px; font-weight: 600; color: var(--mock-ink-soft); }
.mock-side .mock-row { padding: 8px 10px; border-top: none; font-size: 13px; }
.mock-side .mock-row.spot { border-radius: 8px; margin: 0 6px; }
.mock-side .mock-check.on { background: #0a7aff; border-color: #0a7aff; }
.mock-detail { flex: 1 1 180px; min-width: 0; font-size: 13px; }
.mock-detail-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.mock-app.lg { width: 40px; height: 40px; border-radius: 9px; flex: 0 0 auto; }
.mock-detail-title { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.mock-muted.small { font-size: 12px; line-height: 1.35; }
.mock-detail .mock-caption { font-size: 12.5px; font-weight: 600; color: var(--mock-ink); margin: 0 0 8px; }
.mock-btnrow { display: flex; flex-wrap: wrap; gap: 8px; }
.mock-btn {
  display: inline-block; padding: 6px 12px; border-radius: 7px; font-size: 12.5px; font-weight: 500;
  background: var(--mock-fill); color: var(--mock-ink); border: 1px solid var(--mock-line); white-space: nowrap;
}
.mock-btn.spot { border-radius: 7px; }
@media (prefers-color-scheme: dark) {
  .mock-tabs.is-cropped::before { background: linear-gradient(90deg, var(--mock-bg), rgba(44,44,46,0)); }
  .mock-tab.is-hot { background: rgba(255,255,255,0.10) !important; color: #4aa3ff !important; }
  .mock-tab.is-hot .ico svg { color: #4aa3ff; }
}

/* Sidebar: keep the extension name on one line, give the ring room. */
.mock-side { flex: 0 0 176px; }
.mock-side .mock-label { white-space: nowrap; }
.mock-side .mock-row.spot { margin: 8px 8px 4px; }
.mock-side-head { padding-bottom: 0; }


/* ---- iOS 26 vs 27 glyphs ------------------------------------------- */
/* Safari on iPhone changed its page-menu button and the Manage Extensions
   icon in iOS 27. The page shows the iOS 27 glyphs unless guide.js marks the
   body as Safari 26. */
.sg-v26 { display: none; }
.sg-safari26 .sg-v26 { display: contents; }
.sg-safari26 .sg-v27 { display: none; }
