/* ═══════════════════════════════════════
   WOBAZI — Feng Shui tools (FENGSHUI_TOOLS): /fengshui hero, Tools row, sticky bar, tools layer
   public/fengshui/fs-tools.css

   Site tokens only (gold #f0c040 for the main button, the Feng Shui jade for accents, Outfit).
   The layer carries .ph-no-capture so PostHog replay never records the camera, canvases or photos.
═══════════════════════════════════════ */
:root { --fs-jade: #7FE3B0; --fs-jade-2: #2FBF84; --fs-gold: var(--gold, #f0c040); --fs-on-gold: var(--on-gold, #1a1206); }

/* ── Hero ── */
.fs-hero { text-align: center; max-width: 640px; margin: 8px auto 28px; padding: 18px 4px 4px; }
.fs-hero-kicker { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fs-jade); }
.fs-hero-h { margin: 0 auto 10px; max-width: 560px; font-size: clamp(26px, 7vw, 40px); line-height: 1.12; font-weight: 700; color: var(--text, #f3f1ea); letter-spacing: -0.01em; }
.fs-hero-sub { margin: 0 auto; max-width: 480px; font-size: 15px; line-height: 1.5; color: var(--m8, var(--muted, #b9b6c8)); }
.fs-hero-last { margin: 10px auto 0; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 8px 14px; border-radius: 99px; background: rgba(127, 227, 176, 0.08); border: 1px solid rgba(127, 227, 176, 0.3); font-size: 14px; color: var(--text, #f3f1ea); }
.fs-hero-last[hidden] { display: none; }
.fs-hero-last b { color: var(--fs-jade); font-size: 16px; }
.fs-hero-last .fs-up { color: var(--fs-jade); font-weight: 700; }
.fs-cta-main {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 360px; min-height: 54px;
  margin: 20px auto 0; padding: 0 24px; border-radius: 99px; border: 0; cursor: pointer;
  background: var(--fs-gold); color: var(--fs-on-gold); font: inherit; font-size: 17px; font-weight: 800; text-decoration: none;
  box-shadow: 0 10px 28px rgba(240, 192, 64, 0.32);
}
.fs-cta-main:hover { filter: brightness(1.05); }
.fs-cta-main:focus-visible, .fs-cta-ghost:focus-visible, .fs-tool-card:focus-visible, .fs-btn:focus-visible, .fs-chip:focus-visible { outline: 2px solid var(--fs-gold); outline-offset: 3px; }
.fs-cta-alt { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 12px auto 0; }
.fs-cta-ghost { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 99px; color: var(--text, #f3f1ea); text-decoration: none; font-size: 14.5px; font-weight: 600; border: 1px solid var(--border, rgba(255, 255, 255, 0.14)); background: rgba(255, 255, 255, 0.03); }
.fs-cta-ghost:hover { border-color: rgba(127, 227, 176, 0.5); }
/* The hero's three tools: one button style, equal size (stacked on phones, one row from 640px). */
.fs-cta-row { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 360px; margin: 20px auto 0; }
@media (min-width: 640px) { .fs-cta-row { grid-template-columns: repeat(3, 1fr); max-width: 620px; } }
.fs-cta-row > div { display: flex; }
.fs-cta-eq {
  flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 50px;
  padding: 8px 16px; border-radius: 99px; background: var(--fs-gold); color: var(--fs-on-gold);
  font: inherit; font-size: 15.5px; font-weight: 800; line-height: 1.2; text-decoration: none;
  box-shadow: 0 8px 22px rgba(240, 192, 64, 0.22);
}
.fs-cta-eq:hover { filter: brightness(1.05); }
.fs-cta-eq:focus-visible { outline: 2px solid var(--fs-gold); outline-offset: 3px; }
.fs-trust { display: inline-flex; align-items: center; gap: 6px; margin: 14px 0 0; font-size: 13px; color: var(--m8, var(--muted, #b9b6c8)); }
.fs-trust svg { color: var(--fs-jade); flex: none; }

/* ── Tools row ── */
.fs-tools-row { margin: 0 0 44px; }
.fs-tools-row h2 { margin: 0 0 12px; font-size: clamp(20px, 4vw, 24px); color: var(--text, #f3f1ea); }
.fs-tools-cards { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .fs-tools-cards { grid-template-columns: repeat(3, 1fr); } }
.fs-tool-card { position: relative; display: grid; grid-template-columns: 40px 1fr; grid-template-areas: "ico name" "ico text" "ico badge"; column-gap: 12px; row-gap: 4px; align-items: start; padding: 16px; border-radius: 16px; text-decoration: none; color: inherit; background: var(--w04, rgba(255, 255, 255, 0.04)); border: 1px solid var(--border, rgba(255, 255, 255, 0.08)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: border-color 0.2s; }
.fs-tool-card:hover { border-color: rgba(127, 227, 176, 0.45); }
.fs-tool-ico { grid-area: ico; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--fs-jade); background: rgba(127, 227, 176, 0.1); border: 1px solid rgba(127, 227, 176, 0.3); }
.fs-tool-name { grid-area: name; font-weight: 700; font-size: 15.5px; color: var(--text, #f3f1ea); }
.fs-tool-text { grid-area: text; font-size: 13.5px; line-height: 1.45; color: var(--m8, var(--muted, #b9b6c8)); }
.fs-tool-badge { grid-area: badge; justify-self: start; margin-top: 4px; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; color: var(--fs-jade); border: 1px solid rgba(127, 227, 176, 0.35); }

/* ── Sticky bar (phones, after the hero scrolls away) ── */
.fs-sticky { position: fixed; left: 16px; right: 16px; bottom: calc(var(--dock-h, 0px) + 12px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; justify-content: center; pointer-events: none; transform: translateY(20px); opacity: 0; transition: transform 0.25s, opacity 0.25s; }
html.has-dock .fs-sticky { bottom: calc(var(--dock-h, 0px) + 12px); }
.fs-sticky.on { transform: none; opacity: 1; pointer-events: auto; }
.fs-sticky[hidden] { display: none; }
.fs-sticky .fs-sticky-btn { margin: 0; max-width: 300px; min-height: 50px; font-size: 16px; }
html.fs-has-fab .fs-sticky { right: 84px; }
@media (min-width: 768px) { .fs-sticky { display: none !important; } }
html.fs-layer-open .fs-sticky { display: none !important; }

/* ── The layer ── */
/* (Before 2026-11-25 the layer was full screen and locked the page's scroll; it now sits in the page.) */
.fs-layer { position: fixed; inset: 0; z-index: 1200; display: flex; flex-direction: column; background: var(--bg, #07070f); color: var(--text, #f3f1ea); font-family: 'Outfit', 'Noto Sans SC', 'Noto Sans Thai', system-ui, sans-serif; line-height: 1.4; -webkit-font-smoothing: antialiased; }
.fs-layer[hidden] { display: none; }
.fs-top { flex: none; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 4px; padding: calc(8px + env(safe-area-inset-top, 0px)) 8px 8px; border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08)); }
.fs-top-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--text, #f3f1ea); font-size: 22px; cursor: pointer; display: grid; place-items: center; }
.fs-top-btn:hover { background: rgba(255, 255, 255, 0.06); }
.fs-top-btn[hidden] { visibility: hidden; display: grid; }
.fs-title { margin: 0; text-align: center; font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-title small { display: block; font-weight: 500; font-size: 11.5px; color: var(--fs-jade); letter-spacing: 0.06em; text-transform: uppercase; }
.fs-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 16px calc(28px + env(safe-area-inset-bottom, 0px)); }
.fs-wrap { max-width: 560px; margin: 0 auto; }
.fs-step-h { margin: 4px 0 6px; font-size: 22px; line-height: 1.2; }
.fs-step-p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.55; color: var(--m8, var(--muted, #b9b6c8)); }
.fs-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--m8, var(--muted, #b9b6c8)); }
.fs-err { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; background: rgba(229, 72, 77, 0.1); border: 1px solid rgba(229, 72, 77, 0.35); }
.fs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 99px; border: 1px solid var(--border, rgba(255, 255, 255, 0.14)); background: rgba(255, 255, 255, 0.04); color: var(--text, #f3f1ea); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; }
.fs-btn:disabled { opacity: 0.5; cursor: default; }
.fs-btn-gold { background: var(--fs-gold); color: var(--fs-on-gold); border-color: transparent; box-shadow: 0 8px 22px rgba(240, 192, 64, 0.25); }
.fs-btn-full { width: 100%; }
.fs-btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.fs-btn-row .fs-btn { flex: 1 1 140px; }
.fs-link { background: none; border: 0; padding: 8px 4px; color: var(--m8, var(--muted, #b9b6c8)); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.fs-card { padding: 16px; border-radius: 16px; background: var(--w04, rgba(255, 255, 255, 0.04)); border: 1px solid var(--border, rgba(255, 255, 255, 0.08)); margin: 0 0 12px; }
.fs-card h3 { margin: 0 0 8px; font-size: 16px; }
.fs-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--m8, var(--muted, #b9b6c8)); }
.fs-card p + p { margin-top: 8px; }
.fs-kicker { margin: 0 0 4px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fs-jade); }

/* Room type grid */
.fs-rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fs-room { position: relative; display: grid; gap: 6px; justify-items: start; padding: 14px; min-height: 92px; border-radius: 14px; border: 1px solid var(--border, rgba(255, 255, 255, 0.12)); background: rgba(255, 255, 255, 0.03); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.fs-room svg { color: var(--fs-jade); }
.fs-room b { font-size: 15px; }
.fs-room.sel { border-color: var(--fs-gold); background: rgba(240, 192, 64, 0.08); }
.fs-room.locked { opacity: 0.6; }
.fs-room-lock { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 700; color: var(--fs-gold); }
.fs-room-last { font-size: 12px; color: var(--m8, var(--muted, #b9b6c8)); }

/* Compass */
.fs-compass { position: relative; width: min(260px, 70vw); aspect-ratio: 1; margin: 6px auto 12px; }
.fs-compass svg { width: 100%; height: 100%; display: block; }
.fs-compass-dir { text-align: center; font-size: 28px; font-weight: 800; color: var(--fs-gold); margin: 0; }
.fs-compass-deg { text-align: center; font-size: 13px; color: var(--m8, var(--muted, #b9b6c8)); margin: 2px 0 0; }
.fs-guide { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: rgba(127, 227, 176, 0.06); border: 1px solid rgba(127, 227, 176, 0.25); font-size: 13.5px; line-height: 1.45; margin: 0 0 12px; }
.fs-guide svg { flex: none; color: var(--fs-jade); }
.fs-dirs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 300px; margin: 8px auto 0; }
.fs-dirs button { min-height: 48px; border-radius: 12px; border: 1px solid var(--border, rgba(255, 255, 255, 0.14)); background: rgba(255, 255, 255, 0.03); color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.fs-dirs button.sel { border-color: var(--fs-gold); background: rgba(240, 192, 64, 0.12); color: var(--fs-gold); }
.fs-dirs .fs-dirs-mid { visibility: hidden; }

/* Camera / photo stage */
.fs-stage { position: relative; width: 100%; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: var(--ar, 3 / 4); max-height: calc(100dvh - 260px); margin: 0 auto; }
.fs-stage video, .fs-stage canvas.fs-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.fs-stage canvas.fs-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fs-stage.tagging { cursor: crosshair; }
.fs-stage.tagging canvas.fs-overlay { pointer-events: none; }
.fs-scanline { position: absolute; left: 0; right: 0; height: 3px; top: 0; background: linear-gradient(90deg, transparent, var(--fs-jade), transparent); box-shadow: 0 0 18px var(--fs-jade); animation: fs-scan 1.4s ease-in-out infinite; }
@keyframes fs-scan { 0% { top: 0; } 50% { top: calc(100% - 3px); } 100% { top: 0; } }
@media (prefers-reduced-motion: reduce) { .fs-scanline { animation: none; top: 50%; } }
.fs-live { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.fs-live span { padding: 4px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; background: rgba(7, 7, 15, 0.72); border: 1px solid rgba(127, 227, 176, 0.5); color: var(--fs-jade); }
.fs-load { padding: 18px; text-align: center; }
.fs-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin: 10px auto 0; max-width: 260px; }
.fs-bar i { display: block; height: 100%; width: 0; background: var(--fs-jade); transition: width 0.2s; }
.fs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.fs-chip { min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--border, rgba(255, 255, 255, 0.14)); background: rgba(255, 255, 255, 0.03); color: inherit; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.fs-chip.sel { border-color: var(--fs-gold); color: var(--fs-gold); background: rgba(240, 192, 64, 0.1); }
.fs-chip.done::after { content: ' ✓'; color: var(--fs-jade); }

/* Results */
.fs-ring { display: grid; place-items: center; margin: 4px auto 10px; width: 168px; height: 168px; position: relative; }
.fs-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.fs-ring-n { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.fs-ring-n b { display: block; font-size: 46px; line-height: 1; }
.fs-ring-n small { display: block; font-size: 12px; color: var(--m8, var(--muted, #b9b6c8)); margin-top: 4px; }
.fs-delta { text-align: center; margin: 0 0 12px; font-weight: 700; color: var(--fs-jade); }
.fs-delta.down { color: #ff8a8f; }
.fs-bars { display: grid; gap: 10px; }
.fs-bars-row { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; font-size: 13px; }
.fs-bars-row b { font-weight: 700; }
.fs-bars-pair { display: grid; gap: 3px; }
.fs-bars-pair i { display: block; height: 8px; border-radius: 99px; background: var(--c); min-width: 2px; }
.fs-bars-pair i.need { opacity: 0.35; background: repeating-linear-gradient(90deg, var(--c), var(--c) 4px, transparent 4px, transparent 7px); opacity: 0.8; }
.fs-legend { display: flex; gap: 14px; font-size: 12px; color: var(--m8, var(--muted, #b9b6c8)); margin: 10px 0 0; }
.fs-legend i { display: inline-block; width: 18px; height: 6px; border-radius: 99px; background: #c9ced8; vertical-align: middle; margin-right: 6px; }
.fs-legend i.need { background: repeating-linear-gradient(90deg, #c9ced8, #c9ced8 4px, transparent 4px, transparent 7px); }
.fs-items { display: flex; flex-wrap: wrap; gap: 6px; }
.fs-items span { padding: 4px 10px; border-radius: 99px; font-size: 13px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border, rgba(255, 255, 255, 0.1)); }
.fs-items span.tag { border-color: rgba(240, 192, 64, 0.45); }
.fs-fix { display: grid; grid-template-columns: 32px 1fr; gap: 12px; }
.fs-fix-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--fs-on-gold); background: var(--fs-gold); }
.fs-fix h3 { margin: 2px 0 6px; }
.fs-fix .fs-where { margin-top: 8px; font-size: 13px; color: var(--fs-jade); }
.fs-keep { border-color: rgba(127, 227, 176, 0.35); }
.fs-swatches { display: flex; gap: 6px; margin: 8px 0 0; }
.fs-swatches i { width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.2); display: block; }
.fs-locked { position: relative; overflow: hidden; border-color: rgba(240, 192, 64, 0.35); background: linear-gradient(135deg, rgba(240, 192, 64, 0.08), rgba(255, 255, 255, 0.02)); }
.fs-locked-blur { filter: blur(5px); user-select: none; pointer-events: none; margin: 8px 0 12px; }
.fs-premium h3 { color: var(--fs-gold); }
.fs-spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.15); border-top-color: var(--fs-jade); animation: fs-spin 0.9s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes fs-spin { to { transform: rotate(360deg); } }
.fs-history { display: grid; gap: 8px; }
.fs-history-row { width: 100%; color: inherit; font: inherit; cursor: pointer; text-align: left; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border, rgba(255, 255, 255, 0.08)); font-size: 14px; }
.fs-history-row b { font-size: 16px; }
.fs-history-row .fs-up { color: var(--fs-jade); font-weight: 700; }
.fs-kua-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fs-kua-cell { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border, rgba(255, 255, 255, 0.1)); font-size: 13px; }
.fs-kua-cell b { display: block; font-size: 18px; }
.fs-kua-cell.good { border-color: rgba(127, 227, 176, 0.4); background: rgba(127, 227, 176, 0.06); }
.fs-kua-cell.bad { border-color: rgba(229, 72, 77, 0.35); background: rgba(229, 72, 77, 0.05); }
.fs-kua-cell.door { outline: 2px solid var(--fs-gold); }
.fs-field { display: grid; gap: 6px; font-size: 13px; color: var(--m8, var(--muted, #b9b6c8)); margin: 0 0 12px; }
.fs-field input, .fs-field select { font: inherit; font-size: 16px; color: var(--text, #f3f1ea); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px; padding: 11px 12px; min-height: 46px; }

/* App shell: the Today card and the Feng Shui app's Tools row */
.fs-today-card { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--w04, rgba(255, 255, 255, 0.04)); border: 1px solid rgba(127, 227, 176, 0.3); color: inherit; text-decoration: none; }
.fs-today-card .fs-tool-ico { flex: none; }
.fs-today-card b { display: block; font-size: 15px; }
.fs-today-card span { display: block; font-size: 13px; color: var(--m8, var(--muted, #b9b6c8)); }
.fs-today-card em { margin-left: auto; flex: none; font-style: normal; font-weight: 700; color: var(--fs-gold); font-size: 14px; }
.fs-app-tools .fs-tools-cards { margin-top: 4px; }

/* public/css/system.css (loaded last) sets every paragraph on a site page to the body size; the
   hero's lines are paragraphs, so they are restated here with a stronger selector. */
html body .seo-main .fs-hero p.fs-hero-kicker { font-size: 12px; line-height: 1.4; color: var(--fs-jade); margin: 0 0 8px; }
html body .seo-main .fs-hero p.fs-hero-h { font-size: clamp(27px, 7.4vw, 42px); line-height: 1.12; color: var(--text, #f3f1ea); margin: 0 auto 10px; max-width: 560px; font-weight: 700; }
html body .seo-main .fs-hero p.fs-hero-sub { font-size: 15px; line-height: 1.5; margin: 0 auto; }
html body .seo-main .fs-hero p.fs-hero-last { font-size: 14px; line-height: 1.4; margin: 10px auto 0; color: var(--text, #f3f1ea); }
html body .seo-main .fs-hero p.fs-trust { font-size: 13px; line-height: 1.4; margin: 14px 0 0; }
.fs-layer a:not(.fs-btn) { color: var(--fs-gold); }

/* Result figures (2026-11-24): the photo (or a diagram) with overlay layers, and the score breakdown. */
.fs-figure { padding: 14px; }
.fs-fig-tabs { margin: 4px 0 10px; }
.fs-fig-tabs .fs-chip { min-height: 36px; font-size: 13px; padding: 0 12px; }
.fs-fig-canvas { display: block; width: 100%; border-radius: 12px; background: #0a0a16; }
.fs-fig-text { margin-top: 10px; }
.fs-fig-text p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.5; color: var(--m8, var(--muted, #b9b6c8)); }
.fs-el-chip i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 6px; vertical-align: -1px; }
.fs-break { width: 100%; border-collapse: collapse; font-size: 14px; }
.fs-break th { text-align: left; font-weight: 600; padding: 7px 0; color: var(--text, #f3f1ea); }
.fs-break th small { display: block; font-weight: 400; font-size: 12px; color: var(--m8, var(--muted, #b9b6c8)); }
.fs-break td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
.fs-break tr + tr th, .fs-break tr + tr td { border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08)); }
.fs-break tr.tot th, .fs-break tr.tot td { color: var(--fs-gold); font-size: 16px; border-top: 1px solid rgba(240, 192, 64, 0.4); }

/* Opt-in pictures + share-photo choice (2026-11-24) */
.fs-keep-opt { margin-top: 12px; }
.fs-keep-opt label { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; color: var(--text, #f0f0ff); cursor: pointer; }
.fs-keep-opt input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold, #f0c040); cursor: pointer; }
.fs-keep-opt input:disabled + span { opacity: 0.55; }
.fs-keep-opt .fs-note { margin: 6px 0 0 30px; min-height: 0; }
.fs-keep-opt .fs-note:empty { display: none; }
.fs-share-photo { margin: 0 0 12px; }
.fs-fig-img { display: block; width: 100%; height: auto; border-radius: 12px; }
.fs-history-row > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.fs-history-thumb { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; }


/* ═══ In the page (2026-11-25): the tool is a section of the page, under the site's header and above its
   footer, like every other app. In the Feng Shui app it is the first section; on /fengshui it takes the
   hero's place. The hero and the tool cards step aside while a tool is open. ═══ */
.fs-layer.fs-inline { position: relative; inset: auto; z-index: auto; display: block; background: none; margin: 0 0 24px;
  border: 1px solid var(--card-line, rgba(255, 255, 255, 0.09)); border-radius: var(--radius-lg, 24px);
  background: var(--bg-card, #13132a); overflow: clip; scroll-margin-top: 80px; }
.fs-layer.fs-inline[hidden] { display: none; }
.fs-inline .fs-top { grid-template-columns: 44px 1fr auto; padding: 8px 10px; background: var(--bg-card, #13132a); }
.fs-inline .fs-title { text-align: left; font-size: 17px; padding-left: 2px; }
.fs-top-done { min-height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--border, rgba(255, 255, 255, 0.16)); background: transparent; color: var(--text, #f3f1ea); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.fs-top-done:hover { border-color: rgba(127, 227, 176, 0.5); }
.fs-top-done:focus-visible { outline: 2px solid var(--fs-gold); outline-offset: 2px; }
.fs-inline .fs-body { overflow: visible; padding: 16px 16px 24px; }
.fs-inline .fs-wrap { max-width: 640px; }
html.fs-layer-open .fs-hero, html.fs-layer-open .fs-tools-row, html.fs-layer-open #fs-app-hero { display: none; }
main .fs-layer.fs-inline { max-width: 960px; margin-left: auto; margin-right: auto; }

/* The Feng Shui app's top: the hero, the three tools, then Your outfits + Your rooms. */
.fs-app-hero .fs-hero { margin: 4px auto 22px; }
.fs-app-hero .fs-hero-h { font-size: clamp(28px, 4.4vw, 44px); max-width: 720px; }
.fs-app-hero .fs-tools-cards { margin: 0 0 16px; }
.fs-app-history { display: grid; gap: 12px; }
.fs-app-history:empty { display: none; }
@media (min-width: 860px) { .fs-app-history { grid-template-columns: 1fr 1fr; align-items: start; } }
.fs-hist-card { margin: 0; }
.fs-hist-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.fs-hist-head h3 { margin: 0; font-size: 17px; }
.fs-hist-go { font-size: 13.5px; color: var(--fs-gold); text-decoration: none; white-space: nowrap; }
.fs-hist-go:hover { text-decoration: underline; }
.fs-history-dot { width: 36px; height: 36px; border-radius: 8px; flex: none; background: radial-gradient(circle at 35% 30%, rgba(127, 227, 176, 0.5), rgba(127, 227, 176, 0.08)); border: 1px solid rgba(127, 227, 176, 0.3); }
.fs-history-row:hover { border-color: rgba(127, 227, 176, 0.45); }
.fs-history-row:focus-visible { outline: 2px solid var(--fs-gold); outline-offset: 2px; }
@media (min-width: 900px) {
  .fs-inline .fs-wrap { max-width: 720px; }
  .fs-inline .fs-body { padding: 22px 28px 28px; }
}

/* Results on a wide screen (2026-11-25): the photo smaller on the left (it stays in view), the score and
   everything else beside it. Steps without a photo keep one centred column. */
@media (min-width: 900px) {
  .fs-inline .fs-wrap:has(> .fs-figure) { max-width: none; display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); column-gap: 28px; align-items: start; }
  .fs-inline .fs-wrap:has(> .fs-figure) > .fs-figure { grid-column: 1; grid-row: 1 / span 40; position: sticky; top: 64px; margin: 0; }
  .fs-inline .fs-wrap:has(> .fs-figure) > :not(.fs-figure) { grid-column: 2; }
  .fs-inline .fs-wrap:has(> .fs-figure) .fs-fig-canvas { max-height: 60vh; object-fit: contain; }
}

/* One Share button everywhere (2026-11-25): Face Reading's filled orange. */
.fs-btn[data-share-open] { background: linear-gradient(120deg, #fb923c, #ea580c); border-color: transparent; color: #fff; font-weight: 600; box-shadow: 0 6px 18px rgba(234, 88, 12, 0.35); }
.fs-btn[data-share-open]:hover { filter: brightness(1.06); }
