/* ─── styles.css — WeatherForIt ─────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { font-size: 17px; }

:root {
  --wfi-light-bg: #b8d4ee;
  --wfi-light-text: #0f2744;
  --wfi-light-text-2: #3d5670;
  --wfi-light-card: #ffffff;
  --wfi-light-card-soft: #eaf2fb;
  --wfi-light-accent-bg: #dbeafe;
  --wfi-light-featured-bg: #dde9f7;
  --wfi-light-link: #1d4ed8;
  --wfi-light-link-hover: #1e3a5f;
  --wfi-light-border: rgba(37,99,235,0.12);
  --wfi-light-divider: rgba(37,99,235,0.18);
  --wfi-light-hover-surface: #cce0f5;
  --wfi-light-sky-gradient: linear-gradient(160deg, #9bc1e1 0%, #b8d4ee 50%, #d4e4f1 100%);
}

body {
  min-height: 100vh;
  background: #0a1628;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1.5rem 1rem 5rem;
}

/* ── BACKGROUND ── */
.sky { position: fixed; inset: 0; background: linear-gradient(160deg, #0d1f3c 0%, #0a1628 50%, #060d1a 100%); z-index: 0; }
.stars { display: none; }
.stars.hidden { opacity: 0; }
.clouds { position: fixed; inset: 0; background: radial-gradient(ellipse at 50% -20%, rgba(58,90,130,0.5) 0%, transparent 60%); z-index: 0; opacity: 0; transition: opacity 1.5s ease; }
.clouds.visible { opacity: 1; }

/* ── LOCATION BLOCK ── */
.loc-block { display: flex; align-items: center; justify-content: center; gap: 0.7rem; margin: 0.5rem 0 1.25rem; position: relative; z-index: 10; }
.loc-block.hidden { display: none; }
.loc-block-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.clock-weather-ico { font-size: 1.8rem; line-height: 1; }
.loc-block-text { display: flex; flex-direction: column; align-items: flex-start; gap: 0.05rem; }
.loc-block-town { font-family: 'Manrope', sans-serif; font-size: 1.4rem; font-weight: 700; color: #fff; line-height: 1.1; transition: opacity 0.2s ease, font-style 0.2s ease; }
.loc-block-town--placeholder { font-style: italic; opacity: 0.7; }
.loc-block-time { font-family: 'Inter', sans-serif; font-size: 1rem; color: rgba(220,235,255,0.85); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.loc-block-date { font-family: 'Inter', sans-serif; font-size: 0.78rem; color: rgba(147,197,253,0.55); letter-spacing: 0.02em; }
body.light .loc-block-town { color: #0f2744; }
body.light .loc-block-time { color: #1e3a5f; }
body.light .loc-block-date { color: #3d5670; }

/* ── TOP CONTROLS ── */
.top-controls { position: absolute; top: 1rem; right: 1rem; z-index: 100; display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-end; }
.ctrl-btn { background: rgba(255,255,255,0.08); border: 1px solid rgba(147,197,253,0.18); border-radius: 50px; padding: 0.42rem 0.75rem; cursor: pointer; font-size: 0.88rem; color: rgba(200,220,255,0.6); transition: all 0.2s; backdrop-filter: blur(8px); display: flex; align-items: center; gap: 0.35rem; }
.ctrl-btn:hover { background: rgba(255,255,255,0.14); color: #e8f0fe; }
.ctrl-label { font-size: 0.68rem; font-family: 'Inter', sans-serif; font-weight: 500; letter-spacing: 0.04em; }
/* ── THEME TOGGLE ── */
.theme-toggle { position: fixed; bottom: 1.25rem; left: 1.25rem; z-index: 300; background: rgba(255,255,255,0.08); border: 1px solid rgba(147,197,253,0.18); border-radius: 50px; padding: 0.4rem 0.7rem; cursor: pointer; font-size: 1rem; backdrop-filter: blur(8px); transition: all 0.2s; line-height: 1; }
.theme-toggle:hover { background: rgba(255,255,255,0.16); }
body.light .theme-toggle { background: rgba(255,255,255,0.7); border-color: rgba(37,99,235,0.2); }
.theme-icon-dark { display: inline; }
.theme-icon-light { display: none; }
body.light .theme-icon-dark { display: none; }
body.light .theme-icon-light { display: inline; }
/* ── EASY READ TOGGLE ── */
.er-toggle { position: fixed; bottom: 1.25rem; left: 4rem; z-index: 300; background: rgba(255,255,255,0.08); border: 1px solid rgba(147,197,253,0.18); border-radius: 50px; padding: 0.4rem 0.55rem; cursor: pointer; font-size: 1rem; font-family: 'Inter', sans-serif; font-weight: 500; color: rgba(200,220,255,0.6); backdrop-filter: blur(8px); transition: all 0.2s; line-height: 1; }
.er-toggle:hover { background: rgba(255,255,255,0.16); color: #e8f0fe; }
.er-toggle.er-on { background: rgba(59,130,246,0.2); border-color: rgba(147,197,253,0.45); color: #93c5fd; }
body.light .er-toggle { background: rgba(255,255,255,0.7); border-color: rgba(37,99,235,0.2); color: #1d4ed8; }
body.light .er-toggle.er-on { background: rgba(37,99,235,0.1); border-color: rgba(37,99,235,0.4); }
.er-btn.er-on { background: rgba(134,239,172,0.15); border-color: rgba(134,239,172,0.4); color: #86efac; }

/* ── APP HEADER ── */
.app-header { position: fixed; top: 0; left: 0; right: 0; height: 52px; z-index: 200; display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; background: rgba(10,22,40,0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(147,197,253,0.1); }
.app-header-logo { height: 36px; width: auto; }
.app-header-controls { display: flex; align-items: center; gap: 0.5rem; }
.app-header .theme-toggle,
.app-header .er-toggle { position: static; bottom: auto; left: auto; }
body.light .app-header { background: rgba(240,246,255,0.92); border-bottom-color: rgba(37,99,235,0.12); }
body.has-app-header { padding-top: calc(52px + 0.5rem); }

/* ── AUTH NAV BUTTON ── */
.tier-badge { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.15rem 0.45rem; border-radius: 50px; margin-left: 0.3rem; }
.tier-badge.tier-plus { background: rgba(96,165,250,0.2); color: #93c5fd; border: 1px solid rgba(96,165,250,0.35); }
.tier-badge.tier-pro  { background: rgba(167,139,250,0.2); color: #c4b5fd; border: 1px solid rgba(167,139,250,0.35); }

/* ── CARD WRAPPER ── */
.card { position: relative; z-index: 10; width: 100%; max-width: 460px; padding-top: 1.2rem; margin: 0 auto; }

/* ── HOMEPAGE ── */
.loc-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 0; margin-top: -0.8rem; width: 100%; }
.app-logo { font-size: 3rem; margin-bottom: 0.8rem; display: block; }
.app-name { font-family: 'Manrope', sans-serif; font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 800; color: #ffffff; letter-spacing: -0.03em; margin-bottom: 0.5rem; line-height: 1; }
.app-name span { color: #60a5fa; }
.app-tagline { font-family: 'Manrope', sans-serif; font-size: clamp(1.4rem, 4.5vw, 1.8rem); color: rgba(148,185,255,0.75); font-weight: 500; margin: 0; letter-spacing: -0.01em; line-height: 1.4; max-width: 500px; }
.app-tagline strong { color: rgba(148,185,255,0.95); font-weight: 600; }
.app-subhead { font-family: 'Inter', sans-serif; font-size: clamp(0.88rem, 2.5vw, 1rem); color: rgba(148,185,255,0.5); font-weight: 400; margin: 0.5rem 0 1.6rem; max-width: 400px; line-height: 1.5; }
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.1rem; margin: 0.9rem 0 1.5rem; }
.trust-strip span { font-family: 'Inter', sans-serif; font-size: 0.72rem; color: rgba(147,197,253,0.38); font-weight: 500; }
.feature-section-hdr { font-family: 'Inter', sans-serif; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(147,197,253,0.35); margin: 0.4rem 0 0.6rem; width: 100%; max-width: 420px; text-align: left; }
.feature-plus-badge { display: inline-block; font-size: 0.55rem; font-weight: 700; letter-spacing: 0.05em; background: rgba(251,191,36,0.15); color: #fbbf24; border-radius: 4px; padding: 0.08rem 0.35rem; margin-left: 0.35rem; vertical-align: middle; text-transform: uppercase; }
#go-btn { background: linear-gradient(135deg, #15803d, #16a34a); box-shadow: 0 4px 24px rgba(22,163,74,0.35); }
#go-btn:hover:not(:disabled) { box-shadow: 0 8px 32px rgba(22,163,74,0.55); }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; width: 100%; max-width: 420px; margin-bottom: 1.8rem; text-align: left; }
.feature-grid-hero { grid-template-columns: 1fr; }
.feature-item { display: flex; align-items: flex-start; gap: 0.6rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(147,197,253,0.08); border-radius: 12px; padding: 0.7rem 0.8rem; text-decoration: none; cursor: pointer; transition: background 0.18s, border-color 0.18s, transform 0.18s; }
.feature-item:hover { background: rgba(255,255,255,0.09); border-color: rgba(147,197,253,0.22); transform: translateY(-2px); }
.feature-item:active { transform: translateY(0); }
.feature-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 0.05rem; }
.feature-title { font-size: 0.78rem; font-weight: 600; color: rgba(200,220,255,0.85); margin-bottom: 0.15rem; }
.feature-desc { font-size: 0.68rem; color: rgba(148,185,255,0.45); line-height: 1.4; }

.search-outer { width: 100%; max-width: 420px; }
.search-label { font-size: 0.78rem; color: rgba(148,185,255,0.45); margin-bottom: 0.7rem; font-weight: 400; }

/* ── SEARCH ── */
.search-wrap { position: relative; margin-bottom: 0.7rem; width: 100%; }
.search-row { display: flex; gap: 0.45rem; }
.s-input { flex: 1; background: rgba(255,255,255,0.07); border: 1px solid rgba(147,197,253,0.18); border-radius: 50px; padding: 0.88rem 1.3rem; color: #e8f0fe; font-family: 'Inter', sans-serif; font-size: 0.9rem; outline: none; transition: all 0.2s; }
.s-input::placeholder { color: rgba(200,220,255,0.3); }
.s-input:focus { border-color: rgba(96,165,250,0.6); background: rgba(255,255,255,0.09); }
.sugg { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #0d1e35; border: 1px solid rgba(147,197,253,0.16); border-radius: 14px; overflow: hidden; z-index: 200; box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
.sugg-item { padding: 0.72rem 1.2rem; font-family: 'Inter', sans-serif; font-size: 0.85rem; color: rgba(210,230,255,0.9); cursor: pointer; transition: background 0.15s; border-bottom: 1px solid rgba(147,197,253,0.06); }
.sugg-item:last-child { border-bottom: none; }
.sugg-item:hover { background: rgba(37,99,235,0.22); color: #e8f0fe; }
.gps-btn { background: rgba(255,255,255,0.07); border: 1px solid rgba(147,197,253,0.18); color: rgba(147,197,253,0.75); border-radius: 50px; padding: 0.88rem 1.05rem; font-size: 1rem; cursor: pointer; transition: all 0.2s; flex-shrink: 0; }
.gps-btn:hover { background: rgba(37,99,235,0.22); color: #93c5fd; }
.main-btn { width: 100%; background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: white; border: none; padding: 0.95rem 2rem; font-family: 'Inter', sans-serif; font-size: 0.92rem; font-weight: 600; border-radius: 50px; cursor: pointer; letter-spacing: 0.01em; transition: all 0.2s; box-shadow: 0 4px 24px rgba(37,99,235,0.4); }
.main-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(37,99,235,0.6); }
.main-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── LOADING ── */
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.loading-text { color: rgba(200,220,255,0.65); font-family: 'Inter', sans-serif; font-size: 0.9rem; animation: pulse 1.5s ease infinite; text-align: center; margin-bottom: 0.35rem; font-weight: 500; }
.loading-sub { color: rgba(180,210,255,0.55); font-family: 'Inter', sans-serif; font-size: 0.76rem; text-align: center; }

/* ── RESULTS ── */
@keyframes fadeUp { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
.screen-nav { display: flex; justify-content: flex-end; padding: 0.5rem 0 0; margin-bottom: 0.25rem; }
.results-actions { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.6rem; padding-bottom: 0.5rem; }
.res-change { font-family: 'Inter', sans-serif; font-size: 0.7rem; color: rgba(147,197,253,0.4); cursor: pointer; letter-spacing: 0.05em; text-transform: uppercase; transition: color 0.2s; display: inline-block; font-weight: 500; }
.res-change:hover { color: rgba(147,197,253,0.75); }

/* ── PERSONA GRID ── */
.persona-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; padding: 0 0 0.8rem; width: 100%; }
.pg-tile { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0.15rem; padding: 0.8rem 0.4rem 0.7rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(147,197,253,0.1); border-radius: 14px; cursor: pointer; transition: all 0.2s; text-align: center; position: relative; width: 100%; }
.pg-tile:hover { background: rgba(255,255,255,0.09); border-color: rgba(147,197,253,0.25); }
.pg-tile.active { background: rgba(37,99,235,0.28); border-color: rgba(96,165,250,0.55); box-shadow: 0 0 0 2px rgba(96,165,250,0.15); }
.pg-tile.locked { opacity: 0.55; }
.pg-tile.locked:hover { opacity: 0.75; }
.pg-icon { font-size: 1.5rem; line-height: 1; margin-bottom: 0.15rem; }
.pg-icon-img { width: 36px; height: 36px; object-fit: contain; margin-bottom: 0.15rem; display: block; }
.pg-name { font-family: 'Manrope', sans-serif; font-size: 0.7rem; font-weight: 700; color: #e8f0fe; line-height: 1.2; }
.pg-tagline { font-size: 0.59rem; color: rgba(147,197,253,0.55); line-height: 1.3; }
.pg-lock { position: absolute; top: 0.3rem; right: 0.35rem; font-size: 0.62rem; opacity: 0.7; }

/* ── SUB BAR (legacy) ── */
.sub-bar { display: none; }

/* ── PICKER SCREEN ── */
.picker-wrap { padding: 0.25rem 0 1rem; }
.picker-heading { font-family: 'Manrope', sans-serif; font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 800; color: #e8f0fe; text-align: center; margin-bottom: 0.35rem; line-height: 1.35; padding: 0 0.5rem; }
.picker-sub { font-family: 'Inter', sans-serif; font-size: 0.8rem; color: rgba(147,197,253,0.6); text-align: left; margin-bottom: 0; }
.picker-sub-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 1rem; }
.picker-ctrl-btns { display: flex; gap: 0.35rem; flex-shrink: 0; }
.picker-select-all { flex-shrink: 0; background: none; border: 1px solid rgba(147,197,253,0.25); border-radius: 50px; padding: 0.25rem 0.8rem; font-size: 0.72rem; color: rgba(147,197,253,0.7); cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.2s; white-space: nowrap; }
.picker-select-all:hover { border-color: rgba(147,197,253,0.5); color: #93c5fd; }
.picker-group-row { display: flex; margin-bottom: 0.75rem; }
.picker-group-btn { background: none; border: 1px solid rgba(147,197,253,0.18); border-radius: 50px; padding: 0.22rem 0.75rem; font-size: 0.7rem; color: rgba(147,197,253,0.5); cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.2s; }
.picker-group-btn:hover { border-color: rgba(147,197,253,0.4); color: #93c5fd; }
.picker-group-btn.active { border-color: rgba(147,197,253,0.5); color: #93c5fd; background: rgba(147,197,253,0.08); }
.picker-cat-hdr { grid-column: 1 / -1; font-family: 'Inter', sans-serif; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(147,197,253,0.4); padding: 0.65rem 0 0.2rem; border-bottom: 1px solid rgba(147,197,253,0.07); margin-bottom: 0.1rem; }
.picker-footer { margin-top: 1rem; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.picker-save { display: flex; align-items: center; gap: 0.5rem; font-family: 'Inter', sans-serif; font-size: 0.78rem; color: rgba(147,197,253,0.55); cursor: pointer; }
.picker-save input { accent-color: #3b82f6; width: 1rem; height: 1rem; cursor: pointer; }
.pg-tile.selected { background: rgba(37,99,235,0.32); border-color: rgba(96,165,250,0.65); box-shadow: 0 0 0 2px rgba(96,165,250,0.2); }
.pg-tile.selected .pg-name { color: #e8f0fe; }
.pg-check { position: absolute; top: 0.28rem; left: 0.35rem; font-size: 0.68rem; color: #60a5fa; font-weight: 700; line-height: 1; }

/* ── RANKED VIEW ── */
.rank-section { font-family: 'Manrope', sans-serif; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 1rem 0.2rem 0.45rem; display: flex; align-items: center; gap: 0.5rem; grid-column: 1 / -1; }
.rank-section:first-child { padding-top: 0.2rem; }
.rank-section-good { color: #4ade80; }
.rank-section-caution { color: #fbbf24; }
.rank-section-danger { color: #f87171; }
.rank-section-setup { color: rgba(147,197,253,0.6); }
/* Section card wrapper — stacks vertically on mobile, centred row on desktop */
.rank-section-cards { display: flex; flex-direction: column; gap: 1rem; grid-column: 1 / -1; }
.rank-section-cards .rank-card { margin-bottom: 0; }
.rank-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(147,197,253,0.1); border-radius: 16px; margin-bottom: 0.65rem; overflow: hidden; cursor: pointer; transition: box-shadow 0.15s; min-height: 8.5rem; }
.rank-card.expanded { overflow: visible; }
.rank-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.18); }
/* border-radius on name-tab maintains corner clipping when card overflow is visible */
.rank-name-tab { display: flex; align-items: center; justify-content: center; gap: 0.55rem; padding: 0.75rem 1.1rem; border-bottom: 1px solid rgba(147,197,253,0.08); background: rgba(255,255,255,0.05); border-radius: 16px 16px 0 0; }
.rank-good .rank-name-tab    { background: rgba(74,222,128,0.08);    border-bottom-color: rgba(74,222,128,0.14); }
.rank-caution .rank-name-tab { background: rgba(251,191,36,0.08);    border-bottom-color: rgba(251,191,36,0.14); }
.rank-danger .rank-name-tab  { background: rgba(248,113,113,0.08);   border-bottom-color: rgba(248,113,113,0.14); }
.rank-setup .rank-name-tab   { background: rgba(147,197,253,0.06);   border-bottom-color: rgba(147,197,253,0.1); }
.rank-card-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0.82rem 1.1rem 0; }
.rank-card-right { display: flex; align-items: center; justify-content: flex-end; gap: 0.35rem; }
.rank-details-lbl { font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 500; color: rgba(147,197,253,0.4); letter-spacing: 0.03em; }
.rank-icon { font-size: 1.5rem; line-height: 1; }
.rank-icon-img { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; }
.rank-name { font-family: 'Manrope', sans-serif; font-size: 0.97rem; font-weight: 700; color: #e8f0fe; }
.rank-badge { font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 600; padding: 0.3rem 0.78rem; border-radius: 50px; white-space: nowrap; }
.badge-good { background: rgba(74,222,128,0.15); color: #4ade80; }
.badge-caution { background: rgba(251,191,36,0.15); color: #fbbf24; }
.badge-danger { background: rgba(248,113,113,0.15); color: #f87171; }
.badge-setup { background: rgba(147,197,253,0.12); color: rgba(147,197,253,0.7); }
.rank-chev { font-size: 0.68rem; color: rgba(147,197,253,0.35); transition: transform 0.2s; }
.rank-reason { font-family: 'Inter', sans-serif; font-size: 0.83rem; color: rgba(200,220,255,0.55); padding: 0.68rem 1.1rem 0.9rem; margin-top: 0.5rem; border-top: 1px solid rgba(147,197,253,0.08); line-height: 1.5; }
.rank-detail { border-top: 1px solid rgba(147,197,253,0.07); padding: 0.75rem 0.5rem 0.4rem; }
.rank-detail .acc { margin-bottom: 0.5rem; }

/* ── ACCORDION ── */
.acc { background: rgba(255,255,255,0.04); border: 1px solid rgba(147,197,253,0.1); border-radius: 18px; margin-bottom: 0.7rem; overflow: hidden; animation: fadeUp 0.5s ease forwards; opacity: 0; }
.acc:nth-child(1) { animation-delay: 0s; }
.acc:nth-child(2) { animation-delay: 0.1s; }
.acc:nth-child(3) { animation-delay: 0.2s; }
.acc-hdr { display: flex; align-items: center; justify-content: space-between; padding: 1.15rem 1.4rem; cursor: pointer; user-select: none; transition: background 0.15s; }
.acc-hdr:hover { background: rgba(255,255,255,0.025); }
.acc-left { display: flex; align-items: center; gap: 0.7rem; }
.acc-ico { font-size: 1.28rem; }
.acc-ttl { font-family: 'Inter', sans-serif; font-size: 0.94rem; font-weight: 600; color: rgba(220,235,255,0.95); }
.acc-smry { font-family: 'Inter', sans-serif; font-size: 0.8rem; color: rgba(147,197,253,0.7); margin-top: 0.12rem; }
.acc-chev { color: rgba(147,197,253,0.3); font-size: 0.75rem; transition: transform 0.25s; flex-shrink: 0; }
.acc.open .acc-chev { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.38s ease; padding: 0 1.4rem; }
.acc.open .acc-body { max-height: 1200px; padding: 0 1.4rem 1.4rem; }

/* ── CARD CONTENT ── */
.verdict { font-family: 'Manrope', sans-serif; font-size: clamp(1.8rem, 5.5vw, 2.6rem); font-weight: 700; line-height: 1; margin-bottom: 0.28rem; }
.verdict.yes { color: #93c5fd; } .verdict.no { color: #fde68a; } .verdict.warn { color: #fbbf24; }
.verdict.good { color: #86efac; } .verdict.caution { color: #fbbf24; } .verdict.danger { color: #f87171; }
.v-sub { font-family: 'Inter', sans-serif; font-size: 0.87rem; color: rgba(190,215,255,0.75); margin-bottom: 1rem; }
.stats-grid { display: grid; gap: 0.5rem; margin-bottom: 0.85rem; }
.stats-grid.cols2 { grid-template-columns: 1fr 1fr; }
.stats-grid.cols3 { grid-template-columns: 1fr 1fr 1fr; }
.stat-box { background: rgba(255,255,255,0.04); border-radius: 10px; padding: 0.75rem 0.85rem; border: 1px solid rgba(147,197,253,0.07); }
.stat-v { font-family: 'Manrope', sans-serif; font-size: 1.35rem; color: #e8f0fe; font-weight: 700; }
.stat-l { font-family: 'Inter', sans-serif; font-size: 0.68rem; color: rgba(180,210,255,0.6); letter-spacing: 0.07em; text-transform: uppercase; margin-top: 0.08rem; }
.alert-box { border-radius: 10px; padding: 0.72rem 1rem; display: flex; align-items: flex-start; gap: 0.55rem; margin-bottom: 0.72rem; }
.alert-box.blue { background: rgba(37,99,235,0.13); border: 1px solid rgba(147,197,253,0.17); }
.alert-box.green { background: rgba(16,185,129,0.1); border: 1px solid rgba(52,211,153,0.17); }
.alert-box.amber { background: rgba(245,158,11,0.1); border: 1px solid rgba(251,191,36,0.2); }
.alert-box.red { background: rgba(239,68,68,0.1); border: 1px solid rgba(248,113,113,0.2); }
.alert-icon { font-size: 1rem; flex-shrink: 0; margin-top: 0.05rem; }
.alert-text { font-family: 'Inter', sans-serif; font-size: 0.85rem; line-height: 1.45; }
.alert-box.blue .alert-text { color: rgba(180,215,255,0.95); }
.alert-box.green .alert-text { color: rgba(134,239,172,0.95); }
.alert-box.amber .alert-text { color: rgba(251,210,80,0.95); }
.alert-box.red .alert-text { color: rgba(252,165,165,0.95); }
.layers { display: flex; flex-direction: column; gap: 0.42rem; margin-bottom: 0.85rem; }
.layer { display: flex; align-items: flex-start; gap: 0.55rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(147,197,253,0.06); border-radius: 10px; padding: 0.58rem 0.82rem; }
.l-ico { font-size: 1.05rem; flex-shrink: 0; margin-top: 0.04rem; }
.l-text { font-family: 'Inter', sans-serif; font-size: 0.78rem; color: rgba(210,230,255,0.9); line-height: 1.44; }
.l-label { font-size: 0.6rem; color: rgba(147,197,253,0.7); text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 0.08rem; }
.why-box { background: rgba(255,255,255,0.022); border-left: 2px solid rgba(147,197,253,0.18); border-radius: 0 8px 8px 0; padding: 0.72rem 1rem; margin-bottom: 0.6rem; }
.why-text { font-family: 'Inter', sans-serif; font-size: 0.83rem; color: rgba(190,215,255,0.7); line-height: 1.55; font-style: italic; }
.dtag { font-family: 'Inter', sans-serif; font-size: 0.7rem; color: rgba(180,210,255,0.55); }
.dtag span { color: rgba(147,197,253,0.85); }
.wear-temp-row { display: flex; align-items: baseline; gap: 0.55rem; margin-bottom: 0.18rem; }
.wear-temp { font-family: 'Manrope', sans-serif; font-size: clamp(2rem, 6.5vw, 3rem); font-weight: 700; color: #e8f0fe; line-height: 1; }
.wear-range { font-family: 'Inter', sans-serif; font-size: 0.78rem; color: rgba(190,215,255,0.7); }
.wear-feels { font-family: 'Inter', sans-serif; font-size: 0.76rem; color: rgba(190,215,255,0.7); margin-bottom: 0.9rem; }
.divider { height: 1px; background: rgba(147,197,253,0.07); margin: 0.8rem 0; }
.section-ttl { font-family: 'Inter', sans-serif; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(147,197,253,0.7); margin-bottom: 0.55rem; }

/* ── SELECTOR PILLS ── */
.selector-wrap { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.2rem; }
.selector-pill { background: rgba(255,255,255,0.04); border: 1px solid rgba(147,197,253,0.1); border-radius: 50px; padding: 0.35rem 0.75rem; font-family: 'Inter', sans-serif; font-size: 0.75rem; color: rgba(200,220,255,0.5); cursor: pointer; transition: all 0.18s; white-space: nowrap; }
.selector-pill:hover { background: rgba(37,99,235,0.15); color: rgba(200,220,255,0.8); }
.selector-pill.active { background: rgba(37,99,235,0.35); border-color: rgba(147,197,253,0.35); color: #e8f0fe; font-weight: 500; }

/* ── DEPARTURE BOARD ── */
.dep-board { background: #0a0a0a; border: 2px solid #333; border-radius: 10px; padding: 1rem 1.1rem; font-family: 'Courier New', Courier, monospace; box-shadow: inset 0 0 20px rgba(0,0,0,0.5), 0 0 0 1px #222; }
.dep-board-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid #2a2a2a; }
.dep-board-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; color: #f5a623; }
.dep-board-live { font-size: 0.62rem; color: #4ade80; letter-spacing: 0.08em; animation: blink 2s ease infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.4} }
.dep-row { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.9rem; }
.dep-field { flex: 1; position: relative; }
.dep-arrow { color: #f5a623; font-size: 1.2rem; margin-top: 1.6rem; flex-shrink: 0; }
.dep-label { font-size: 0.6rem; letter-spacing: 0.15em; color: #666; margin-bottom: 0.35rem; font-weight: 700; }
.dep-input { width: 100%; background: #fff; border: 1px solid #555; border-radius: 6px; padding: 0.6rem 0.8rem; color: #111; font-family: 'Courier New', Courier, monospace; font-size: 0.88rem; outline: none; transition: border-color 0.2s; letter-spacing: 0.03em; }
.dep-input::placeholder { color: #999; }
.dep-input:focus { border-color: #f5a623; box-shadow: 0 0 0 2px rgba(245,166,35,0.15); }
.dep-sugg { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #111; border: 1px solid #f5a623; border-radius: 6px; overflow: hidden; z-index: 200; box-shadow: 0 8px 24px rgba(0,0,0,0.8); }
.dep-sugg-item { padding: 0.6rem 0.8rem; font-size: 0.82rem; color: #ccc; cursor: pointer; transition: background 0.12s; border-bottom: 1px solid #1a1a1a; font-family: 'Courier New', Courier, monospace; }
.dep-sugg-item:last-child { border-bottom: none; }
.dep-sugg-item:hover { background: #1a1200; color: #f5a623; }
.dep-times-row { display: flex; align-items: flex-end; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.dep-go-row { display: flex; justify-content: center; }
.dep-time-block { flex: 1; min-width: 80px; }
.dep-time-input { width: 100%; background: #111; border: 1px solid #2a2a2a; border-radius: 6px; padding: 0.6rem 0.6rem; color: #ffffff; font-family: 'Courier New', Courier, monospace; font-size: 0.9rem; outline: none; transition: border-color 0.2s; letter-spacing: 0.05em; }
.dep-time-input:focus { border-color: #f5a623; }
.dep-time-input::-webkit-calendar-picker-indicator { filter: invert(1); cursor: pointer; }
.dep-go-btn { background: #f5a623; color: #000; border: none; border-radius: 6px; padding: 0.62rem 1rem; font-family: 'Courier New', Courier, monospace; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; cursor: pointer; transition: all 0.15s; white-space: nowrap; flex-shrink: 0; }
.dep-go-btn:hover { background: #ffb83f; transform: translateY(-1px); }
.dep-go-btn:active { transform: translateY(0); }
.dep-saved-route { margin-top: 0.8rem; padding-top: 0.7rem; border-top: 1px solid #1a1a1a; font-size: 0.72rem; color: #555; letter-spacing: 0.05em; }
.dep-saved-route span { color: #f5a623; }
.dep-clear-btn { background: none; border: none; color: #888; font-family: 'Courier New', Courier, monospace; font-size: 0.68rem; cursor: pointer; text-decoration: underline; letter-spacing: 0.05em; }
.dep-clear-btn:hover { color: #f5a623; }

/* ── EASY READ ── */
.er-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(147,197,253,0.12); border-radius: 20px; padding: 1.6rem 1.4rem; margin-bottom: 0.75rem; animation: fadeUp 0.5s ease forwards; opacity: 0; text-align: center; }
.er-card:nth-child(2) { animation-delay: 0.1s; }
.er-card:nth-child(3) { animation-delay: 0.2s; }
.er-emoji { font-size: 3.5rem; line-height: 1; margin-bottom: 0.6rem; display: block; }
.er-verdict { font-family: 'Manrope', sans-serif; font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.1; }
.er-verdict.yes { color: #93c5fd; } .er-verdict.no { color: #fde68a; }
.er-verdict.good { color: #86efac; } .er-verdict.caution { color: #fbbf24; } .er-verdict.danger { color: #f87171; }
.er-sentence { font-family: 'Inter', sans-serif; font-size: 1.05rem; color: rgba(200,220,255,0.85); line-height: 1.5; margin-bottom: 0.4rem; font-weight: 400; }
.er-detail { font-family: 'Inter', sans-serif; font-size: 0.82rem; color: rgba(147,197,253,0.55); margin-top: 0.3rem; }
.er-alert { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 0.75rem; background: rgba(37,99,235,0.12); border: 1px solid rgba(147,197,253,0.2); border-radius: 12px; padding: 0.65rem 1rem; }
.er-alert.amber { background: rgba(245,158,11,0.12); border-color: rgba(251,191,36,0.25); }
.er-alert.red { background: rgba(239,68,68,0.1); border-color: rgba(248,113,113,0.2); }
.er-alert.green { background: rgba(16,185,129,0.1); border-color: rgba(52,211,153,0.2); }
.er-alert-icon { font-size: 1.3rem; }
.er-alert-text { font-family: 'Inter', sans-serif; font-size: 0.9rem; color: rgba(200,220,255,0.9); font-weight: 500; line-height: 1.4; }

/* ── EASY READ STACKED VIEW ── */
.er-all-wrap { max-width: 520px; margin: 0 auto; width: 100%; grid-column: 1 / -1; }
.er-persona-section { margin-bottom: 2.5rem; }
.er-persona-section:last-child { margin-bottom: 0; }
.er-section-hdr { font-family: 'Manrope', sans-serif; font-size: 1.3rem; font-weight: 700; color: #e8f0fe; margin-bottom: 1rem; padding: 0.8rem 1rem; background: rgba(255,255,255,0.05); border-radius: 14px; border: 1px solid rgba(147,197,253,0.15); }
body.light .er-section-hdr { background: white; border-color: rgba(37,99,235,0.1); color: #0f2744; box-shadow: 0 2px 6px rgba(0,0,0,0.05); }

/* ── RESET / ERROR ── */
.error-text { font-family: 'Inter', sans-serif; color: rgba(253,186,116,0.8); font-size: 0.86rem; margin-bottom: 1.5rem; line-height: 1.5; }
/* ── HOMEPAGE GUIDES SECTION (Plus/Pro) ── */
.home-guides { width: 100%; max-width: 420px; margin: 1.5rem auto 0; }
.home-share-row { display: flex; justify-content: center; margin-top: 1.6rem; padding-bottom: 0.5rem; }
.home-share-btn { display: inline-flex; align-items: center; gap: 0.45rem; background: none; border: 1px solid rgba(147,197,253,0.2); border-radius: 50px; padding: 0.5rem 1.2rem; font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 500; color: rgba(147,197,253,0.6); cursor: pointer; transition: all 0.2s; }
.home-share-btn:hover { border-color: rgba(147,197,253,0.45); color: #93c5fd; background: rgba(147,197,253,0.06); }
body.light .home-share-btn { border-color: rgba(37,99,235,0.2); color: #6b8ab0; }
body.light .home-share-btn:hover { border-color: rgba(37,99,235,0.4); color: #1d4ed8; background: rgba(37,99,235,0.04); }
.home-guides-title { font-family: 'Inter', sans-serif; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(147,197,253,0.4); margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.5rem; }
.guides-lock { font-size: 0.6rem; background: rgba(251,191,36,0.12); color: #fbbf24; padding: 0.1rem 0.45rem; border-radius: 50px; font-weight: 600; letter-spacing: 0.02em; text-transform: none; }
.home-guides-grid { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.home-guide-card { display: inline-flex; align-items: center; gap: 0.35rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(147,197,253,0.1); border-radius: 50px; padding: 0.35rem 0.85rem; font-family: 'Inter', sans-serif; font-size: 0.78rem; color: rgba(200,220,255,0.7); text-decoration: none; transition: all 0.15s; }
a.home-guide-card:hover { background: rgba(255,255,255,0.09); color: rgba(200,220,255,0.95); border-color: rgba(147,197,253,0.28); }
.home-guides-blur { opacity: 0.3; filter: blur(2px); pointer-events: none; user-select: none; }
.guides-upgrade-btn { display: inline-block; margin-top: 0.65rem; font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 600; color: #fbbf24; text-decoration: none; letter-spacing: 0.01em; }
.guides-upgrade-btn:hover { opacity: 0.75; }
body.light .home-guides-title { color: #3d5670; }
body.light .home-guide-card { background: white; border-color: rgba(37,99,235,0.1); color: #2d4a6a; }
body.light a.home-guide-card:hover { background: var(--wfi-light-hover-surface); }
body.light .guides-upgrade-btn { color: #d97706; }

/* ── FEEDBACK STRIP ── */
.feedback-strip { margin-top: 1.8rem; padding: 1.2rem 0.5rem 0.4rem; border-top: 1px solid rgba(147,197,253,0.08); text-align: center; }
.feedback-strip-label { font-family: 'Manrope', sans-serif; font-size: 0.7rem; font-weight: 700; color: rgba(147,197,253,0.4); display: block; margin-bottom: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; }
.feedback-strip-btns { display: flex; justify-content: center; gap: 0.45rem; flex-wrap: wrap; }
.feedback-strip-btn { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.42rem 0.9rem; border-radius: 50px; border: 1px solid rgba(147,197,253,0.15); background: rgba(255,255,255,0.04); cursor: pointer; font-family: 'Inter', sans-serif; font-size: 0.73rem; color: rgba(200,220,255,0.55); transition: all 0.18s; }
.feedback-strip-btn:hover { border-color: rgba(96,165,250,0.4); background: rgba(37,99,235,0.12); color: #e8f0fe; }
body.light .feedback-strip { border-top-color: rgba(37,99,235,0.1); }
body.light .feedback-strip-label { color: rgba(37,99,235,0.4); }
body.light .feedback-strip-btn { border-color: rgba(37,99,235,0.15); background: white; color: #5b7ea0; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
body.light .feedback-strip-btn:hover { border-color: rgba(37,99,235,0.4); background: rgba(37,99,235,0.06); color: #1d4ed8; }

/* ── FEEDBACK MODAL ── */
.modal-close-x { position: absolute; top: 0.85rem; right: 0.9rem; background: none; border: none; font-size: 1rem; color: rgba(147,197,253,0.35); cursor: pointer; line-height: 1; padding: 0.25rem; }
.modal-close-x:hover { color: rgba(147,197,253,0.75); }
.modal-box { position: relative; }
.fb-type-row { display: flex; gap: 0.45rem; margin: 1rem 0 0.9rem; }
.fb-type-tile { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.6rem 0.3rem; border-radius: 12px; border: 1.5px solid rgba(147,197,253,0.12); background: rgba(255,255,255,0.03); cursor: pointer; transition: all 0.15s; }
.fb-type-tile:hover { border-color: rgba(147,197,253,0.32); background: rgba(37,99,235,0.08); }
.fb-type-tile.active { border-color: rgba(96,165,250,0.55); background: rgba(37,99,235,0.16); }
.fb-type-icon { font-size: 1.25rem; line-height: 1; }
.fb-type-label { font-family: 'Inter', sans-serif; font-size: 0.66rem; font-weight: 600; color: rgba(200,220,255,0.6); white-space: nowrap; }
.fb-type-tile.active .fb-type-label { color: #93c5fd; }
.fb-textarea { width: 100%; box-sizing: border-box; min-height: 108px; background: rgba(255,255,255,0.05); border: 1.5px solid rgba(147,197,253,0.18); border-radius: 12px; padding: 0.8rem 1rem; font-family: 'Inter', sans-serif; font-size: 0.88rem; color: #e8f0fe; resize: vertical; outline: none; transition: border-color 0.15s; margin-bottom: 0.55rem; display: block; }
.fb-textarea:focus { border-color: rgba(96,165,250,0.5); }
.fb-textarea::placeholder { color: rgba(147,197,253,0.35); }
.fb-email { width: 100%; box-sizing: border-box; background: rgba(255,255,255,0.05); border: 1.5px solid rgba(147,197,253,0.18); border-radius: 10px; padding: 0.6rem 1rem; font-family: 'Inter', sans-serif; font-size: 0.84rem; color: #e8f0fe; outline: none; transition: border-color 0.15s; margin-bottom: 0.7rem; display: block; }
.fb-email:focus { border-color: rgba(96,165,250,0.5); }
.fb-email::placeholder { color: rgba(147,197,253,0.35); }
.fb-err { font-family: 'Inter', sans-serif; font-size: 0.76rem; color: #f87171; min-height: 1rem; margin: 0 0 0.3rem; text-align: center; }
body.light .modal-close-x { color: rgba(37,99,235,0.3); }
body.light .modal-close-x:hover { color: rgba(37,99,235,0.6); }
body.light .fb-type-tile { border-color: rgba(37,99,235,0.12); background: rgba(37,99,235,0.02); }
body.light .fb-type-tile.active { border-color: rgba(37,99,235,0.45); background: rgba(37,99,235,0.08); }
body.light .fb-type-label { color: #3d5670; }
body.light .fb-type-tile.active .fb-type-label { color: #1e66ff; }
body.light .fb-textarea, body.light .fb-email { background: var(--wfi-light-card-soft); border-color: rgba(37,99,235,0.18); color: #0f2744; }
body.light .fb-textarea::placeholder, body.light .fb-email::placeholder { color: rgba(37,99,235,0.32); }

/* ── INSTALL BANNER ── */
.install-banner { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 480px; margin: 0 auto; background: #0d1e35; border: 1px solid rgba(147,197,253,0.2); border-radius: 16px; padding: 0.85rem 1rem; display: flex; align-items: center; gap: 0.75rem; z-index: 9000; box-shadow: 0 8px 32px rgba(0,0,0,0.45); }
.install-banner.hidden { display: none; }
.install-banner-icon { width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px; }
.install-banner-text { flex: 1; min-width: 0; }
.install-banner-text strong { display: block; font-family: 'Manrope', sans-serif; font-size: 0.82rem; font-weight: 700; color: #e8f0fe; margin-bottom: 0.1rem; }
.install-banner-text span { font-family: 'Inter', sans-serif; font-size: 0.7rem; color: rgba(147,197,253,0.6); }
.install-banner-add { flex-shrink: 0; background: #1e66ff; border: none; border-radius: 50px; padding: 0.42rem 1.1rem; font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 600; color: white; cursor: pointer; white-space: nowrap; }
.install-banner-dismiss { flex-shrink: 0; background: none; border: none; color: rgba(147,197,253,0.4); font-size: 1rem; cursor: pointer; padding: 0.2rem; line-height: 1; }
body.light .install-banner { background: #ffffff; border-color: rgba(37,99,235,0.15); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
body.light .install-banner-text strong { color: #0f2744; }
body.light .install-banner-text span { color: #6b8ab0; }

/* ── RESULTS GUIDES STRIP ── */
.guides-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.3rem 0.75rem; padding: 1rem 0 0.5rem; }
.guides-strip .guides-label { font-family: 'Inter', sans-serif; font-size: 0.65rem; color: rgba(147,197,253,0.35); letter-spacing: 0.05em; text-transform: uppercase; }
.guides-strip a { font-family: 'Inter', sans-serif; font-size: 0.72rem; color: rgba(147,197,253,0.5); text-decoration: none; transition: color 0.15s; }
.guides-strip a:hover { color: rgba(147,197,253,0.85); }
body.light .guides-strip .guides-label { color: #a0b8d0; }
body.light .guides-strip a { color: #5b8ab0; }
body.light .guides-strip a:hover { color: #1d4ed8; }

/* ── HOMEPAGE FEATURED GUIDES ── */
.guides-hub-lead { text-align: center; font-family: 'Inter', sans-serif; font-size: 0.85rem; color: rgba(147,197,253,0.6); margin: 0.4rem auto 1rem; max-width: 420px; }
.featured-guides-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; width: 100%; max-width: 480px; margin: 0 auto 1rem; }
.featured-guide-card { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(147,197,253,0.1); border-radius: 14px; padding: 0.85rem 0.6rem; text-decoration: none; transition: background 0.15s, transform 0.15s; }
.featured-guide-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-1px); }
.featured-guide-card .fg-icon { font-size: 1.5rem; }
.featured-guide-card .fg-title { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 0.82rem; color: #e8f0fe; }
.featured-guide-card .fg-sub { font-size: 0.7rem; color: rgba(148,185,255,0.55); text-align: center; }
.all-guides-link { display: block; text-align: center; font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 0.85rem; color: #1E66FF; text-decoration: none; padding: 0.6rem 0; margin: 0 auto 1.2rem; transition: color 0.15s; }
.all-guides-link:hover { color: #1a55d4; text-decoration: underline; }
@media (min-width: 700px) {
  .featured-guides-grid { grid-template-columns: repeat(4, 1fr); max-width: 100%; }
}
body.light .guides-hub-lead { color: #5b8ab0; }
body.light .featured-guide-card { background: white; border-color: rgba(37,99,235,0.1); }
body.light .featured-guide-card:hover { background: var(--wfi-light-hover-surface); }
body.light .featured-guide-card .fg-title { color: #0f2744; }
body.light .featured-guide-card .fg-sub { color: #5b8ab0; }

.footer {
  font-family: 'Inter', sans-serif;
  text-align: center;
  margin-top: 2.5rem;
  padding: 0 1rem 2.25rem;
  position: relative;
  z-index: 10;
}
.footer::before {
  content: '';
  display: block;
  height: 1px;
  max-width: 800px;
  margin: 0 auto 2rem;
  background: rgba(147,197,253,0.1);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.4rem;
  margin-bottom: 0.85rem;
}
.footer-links a,
.footer-cookie-btn {
  color: rgba(200,220,255,0.95);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover,
.footer-cookie-btn:hover { color: #fff; }
.footer-cookie-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.footer-meta {
  color: rgba(148,185,255,0.85);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

/* ── UPGRADE MODAL ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 1.5rem; backdrop-filter: blur(4px); }
.modal-box { background: #0d1e35; border: 1px solid rgba(147,197,253,0.2); border-radius: 20px; padding: 2rem 1.8rem; max-width: 380px; width: 100%; position: relative; }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: rgba(147,197,253,0.4); font-size: 1.2rem; cursor: pointer; padding: 0.25rem; line-height: 1; }
.modal-close:hover { color: rgba(147,197,253,0.8); }
.modal-icon { font-size: 2.5rem; margin-bottom: 0.8rem; display: block; text-align: center; }
.modal-title { font-family: 'Manrope', sans-serif; font-size: 1.25rem; font-weight: 700; color: #e8f0fe; margin-bottom: 0.6rem; text-align: center; }
.modal-msg { font-family: 'Inter', sans-serif; font-size: 0.84rem; color: rgba(190,215,255,0.75); line-height: 1.6; text-align: center; margin-bottom: 1.4rem; }
.modal-cta { width: 100%; background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: white; border: none; padding: 0.9rem 2rem; font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 600; border-radius: 50px; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 20px rgba(37,99,235,0.4); margin-bottom: 0.7rem; }
.modal-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(37,99,235,0.6); }
.modal-login-link { display: block; text-align: center; font-family: 'Inter', sans-serif; font-size: 0.8rem; color: rgba(147,197,253,0.6); cursor: pointer; background: none; border: none; width: 100%; padding: 0.4rem; transition: color 0.2s; }
.modal-login-link:hover { color: rgba(147,197,253,0.9); }

/* ── AUTH PAGES (login / pricing / account) ── */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem; position: relative; z-index: 10; }
.auth-card { background: rgba(13,30,53,0.85); border: 1px solid rgba(147,197,253,0.15); border-radius: 24px; padding: 2.5rem 2rem; width: 100%; max-width: 420px; backdrop-filter: blur(12px); box-shadow: 0 24px 64px rgba(0,0,0,0.5); }
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo .app-name { font-size: 1.8rem; }
.auth-title { font-family: 'Manrope', sans-serif; font-size: 1.5rem; font-weight: 700; color: #e8f0fe; text-align: center; margin-bottom: 0.4rem; }
.auth-subtitle { font-family: 'Inter', sans-serif; font-size: 0.85rem; color: rgba(147,185,255,0.6); text-align: center; margin-bottom: 1.8rem; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-field { display: flex; flex-direction: column; gap: 0.4rem; }
.auth-label { font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 600; color: rgba(147,197,253,0.7); letter-spacing: 0.06em; text-transform: uppercase; }
.auth-input { background: rgba(255,255,255,0.06); border: 1px solid rgba(147,197,253,0.2); border-radius: 12px; padding: 0.88rem 1.1rem; color: #e8f0fe; font-family: 'Inter', sans-serif; font-size: 0.9rem; outline: none; transition: all 0.2s; }
.auth-input::placeholder { color: rgba(200,220,255,0.25); }
.auth-input:focus { border-color: rgba(96,165,250,0.6); background: rgba(255,255,255,0.09); }
.auth-btn { width: 100%; background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: white; border: none; padding: 0.95rem 2rem; font-family: 'Inter', sans-serif; font-size: 0.92rem; font-weight: 600; border-radius: 50px; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 24px rgba(37,99,235,0.4); margin-top: 0.5rem; }
.auth-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(37,99,235,0.6); }
.auth-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-divider { display: flex; align-items: center; gap: 0.75rem; margin: 0.5rem 0; }
.auth-divider-line { flex: 1; height: 1px; background: rgba(147,197,253,0.1); }
.auth-divider-text { font-family: 'Inter', sans-serif; font-size: 0.72rem; color: rgba(147,197,253,0.35); white-space: nowrap; }
.auth-toggle { text-align: center; margin-top: 1.2rem; font-family: 'Inter', sans-serif; font-size: 0.82rem; color: rgba(147,185,255,0.55); }
.auth-toggle a { color: rgba(147,197,253,0.85); text-decoration: none; cursor: pointer; font-weight: 500; }
.auth-toggle a:hover { color: #93c5fd; }
.auth-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(248,113,113,0.25); border-radius: 10px; padding: 0.7rem 1rem; font-family: 'Inter', sans-serif; font-size: 0.8rem; color: rgba(252,165,165,0.9); text-align: center; }
.auth-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(52,211,153,0.25); border-radius: 10px; padding: 0.7rem 1rem; font-family: 'Inter', sans-serif; font-size: 0.8rem; color: rgba(134,239,172,0.9); text-align: center; }

/* ── PRICING PAGE ── */
.pricing-wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 2rem 1rem 4rem; position: relative; z-index: 10; }
.pricing-header { text-align: center; margin-bottom: 2.5rem; }
.pricing-toggle { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 1.4rem; }
.pricing-toggle-label { font-family: 'Inter', sans-serif; font-size: 0.82rem; color: rgba(147,185,255,0.6); }
.pricing-toggle-label.active { color: #e8f0fe; font-weight: 600; }
.toggle-switch { position: relative; width: 44px; height: 24px; cursor: pointer; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track { position: absolute; inset: 0; background: rgba(255,255,255,0.1); border-radius: 50px; border: 1px solid rgba(147,197,253,0.2); transition: background 0.2s; }
.toggle-switch input:checked + .toggle-track { background: rgba(37,99,235,0.5); border-color: rgba(96,165,250,0.5); }
.toggle-thumb { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: rgba(147,197,253,0.7); border-radius: 50%; transition: transform 0.2s; }
.toggle-switch input:checked + .toggle-track + .toggle-thumb { transform: translateX(20px); background: #60a5fa; }
.save-badge { background: rgba(16,185,129,0.15); border: 1px solid rgba(52,211,153,0.25); color: #6ee7b7; font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 600; padding: 0.2rem 0.55rem; border-radius: 50px; letter-spacing: 0.04em; }
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.plan-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(147,197,253,0.1); border-radius: 20px; padding: 1.8rem 1.6rem; position: relative; transition: all 0.2s; }
.plan-card:hover { border-color: rgba(147,197,253,0.2); background: rgba(255,255,255,0.06); }
.plan-card.featured { border-color: rgba(96,165,250,0.4); background: rgba(37,99,235,0.08); box-shadow: 0 0 0 1px rgba(96,165,250,0.2), 0 8px 32px rgba(37,99,235,0.2); }
.plan-badge { position: absolute; top: -0.65rem; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: white; font-family: 'Inter', sans-serif; font-size: 0.65rem; font-weight: 700; padding: 0.28rem 0.9rem; border-radius: 50px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.plan-name { font-family: 'Manrope', sans-serif; font-size: 1.3rem; font-weight: 700; color: #e8f0fe; margin-bottom: 0.3rem; }
.plan-tagline { font-family: 'Inter', sans-serif; font-size: 0.8rem; color: rgba(147,185,255,0.55); margin-bottom: 1.2rem; }
.plan-price { display: flex; align-items: baseline; gap: 0.3rem; margin-bottom: 0.3rem; }
.plan-price-amount { font-family: 'Manrope', sans-serif; font-size: 2.2rem; font-weight: 800; color: #e8f0fe; }
.plan-price-period { font-family: 'Inter', sans-serif; font-size: 0.82rem; color: rgba(147,185,255,0.55); }
.plan-annual-note { font-family: 'Inter', sans-serif; font-size: 0.72rem; color: rgba(147,185,255,0.45); margin-bottom: 1.4rem; min-height: 1.1rem; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.6rem; }
.plan-features li { display: flex; align-items: flex-start; gap: 0.55rem; font-family: 'Inter', sans-serif; font-size: 0.82rem; color: rgba(190,215,255,0.8); line-height: 1.4; }
.plan-features li .feat-check { font-size: 0.9rem; flex-shrink: 0; margin-top: 0.05rem; }
.plan-features li.feat-locked { color: rgba(147,185,255,0.3); }
.plan-btn { width: 100%; border: none; padding: 0.88rem 2rem; font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 600; border-radius: 50px; cursor: pointer; transition: all 0.2s; letter-spacing: 0.01em; }
.plan-btn.btn-primary { background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: white; box-shadow: 0 4px 20px rgba(37,99,235,0.4); }
.plan-btn.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,99,235,0.6); }
.plan-btn.btn-secondary { background: rgba(255,255,255,0.06); color: rgba(200,220,255,0.7); border: 1px solid rgba(147,197,253,0.15); }
.plan-btn.btn-secondary:hover { background: rgba(255,255,255,0.1); color: #e8f0fe; }
.plan-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.trial-note { text-align: center; font-family: 'Inter', sans-serif; font-size: 0.76rem; color: rgba(147,185,255,0.4); margin-top: 2rem; }

/* ── ACCOUNT PAGE ── */
.account-wrap { width: 100%; max-width: 480px; margin: 0 auto; padding: 2rem 1rem 4rem; position: relative; z-index: 10; }
.account-section { background: rgba(255,255,255,0.04); border: 1px solid rgba(147,197,253,0.1); border-radius: 18px; padding: 1.5rem; margin-bottom: 1rem; }
.account-section-title { font-family: 'Inter', sans-serif; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(147,197,253,0.5); margin-bottom: 1rem; }
.account-plan-row { display: flex; align-items: center; justify-content: space-between; }
.account-plan-name { font-family: 'Manrope', sans-serif; font-size: 1.5rem; font-weight: 700; color: #e8f0fe; }
.account-plan-badge { font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 50px; }
.badge-free { background: rgba(255,255,255,0.08); color: rgba(147,197,253,0.6); border: 1px solid rgba(147,197,253,0.15); }
.badge-plus { background: rgba(96,165,250,0.15); color: #93c5fd; border: 1px solid rgba(96,165,250,0.3); }
.badge-pro  { background: rgba(167,139,250,0.15); color: #c4b5fd; border: 1px solid rgba(167,139,250,0.3); }
.account-detail { font-family: 'Inter', sans-serif; font-size: 0.8rem; color: rgba(147,185,255,0.5); margin-top: 0.4rem; }
.account-btn { width: 100%; border: none; padding: 0.85rem 2rem; font-family: 'Inter', sans-serif; font-size: 0.88rem; font-weight: 600; border-radius: 50px; cursor: pointer; transition: all 0.2s; margin-bottom: 0.6rem; }
.account-btn.btn-upgrade { background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: white; box-shadow: 0 4px 20px rgba(37,99,235,0.35); }
.account-btn.btn-upgrade:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(37,99,235,0.55); }
.account-btn.btn-manage { background: rgba(255,255,255,0.06); color: rgba(200,220,255,0.7); border: 1px solid rgba(147,197,253,0.15); }
.account-btn.btn-manage:hover { background: rgba(255,255,255,0.1); color: #e8f0fe; }
.account-btn.btn-signout { background: rgba(239,68,68,0.08); color: rgba(252,165,165,0.7); border: 1px solid rgba(248,113,113,0.15); }
.account-btn.btn-signout:hover { background: rgba(239,68,68,0.15); color: rgba(252,165,165,0.9); }
.account-email { font-family: 'Inter', sans-serif; font-size: 0.88rem; color: rgba(190,215,255,0.7); }
.account-success-banner { background: rgba(16,185,129,0.1); border: 1px solid rgba(52,211,153,0.25); border-radius: 12px; padding: 0.85rem 1rem; font-family: 'Inter', sans-serif; font-size: 0.82rem; color: rgba(134,239,172,0.9); text-align: center; margin-bottom: 1rem; }

/* ── BACK LINK ── */
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; font-family: 'Inter', sans-serif; font-size: 0.78rem; color: rgba(147,197,253,0.5); text-decoration: none; margin-bottom: 1.5rem; transition: color 0.2s; cursor: pointer; background: none; border: none; padding: 0; }
.back-link:hover { color: rgba(147,197,253,0.85); }

/* ── DESKTOP ── */
@media (min-width: 768px) {
  body { padding: 2rem 2rem 4rem; }
  .card { max-width: 1000px; }
  #s-location { max-width: 700px; margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); max-width: 100%; }
  .feature-grid-hero { grid-template-columns: repeat(3, 1fr); }
  .feature-section-hdr { max-width: 100%; }
  .app-name { font-size: 3.5rem; }
  .app-logo-img { width: 390px; margin-top: -3rem; margin-bottom: -5.8rem; }
  .app-tagline { font-size: 2rem; max-width: 500px; }
  .app-subhead { max-width: 560px; }
  body.has-app-header { padding-top: calc(52px + 1rem); }
  .search-outer { max-width: 100%; }
  .home-guides { max-width: 100%; }
  .persona-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .pg-icon { font-size: 1.7rem; }
  .pg-icon-img { width: 40px; height: 40px; }
  .pg-name { font-size: 0.74rem; }
  .pg-tagline { font-size: 0.62rem; }
  #cards-wrap { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; align-items: start; }
  .acc { margin-bottom: 0; }
  .acc-body { max-height: none !important; padding: 0 1.4rem 1.4rem !important; }
  .acc-chev { display: none; }
  .acc-hdr { cursor: default; }
  .acc-hdr:hover { background: transparent; }
  .loc-block-town { font-size: 1.7rem; }
  .clock-weather-ico { font-size: 2.1rem; }
  .results-actions { margin-top: 1.2rem; }
  .er-verdict { font-size: 2.4rem; }
  .er-sentence { font-size: 1.15rem; }
  .er-all-wrap { max-width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; align-items: start; }
  .er-persona-section { margin-bottom: 0; }
  @supports (grid-template-rows: subgrid) {
    .er-persona-section { display: grid; grid-row: span 4; grid-template-rows: subgrid; gap: 0.75rem; }
    .er-card { margin-bottom: 0; }
  }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin-left: auto; margin-right: auto; }

  /* Section card wrappers — centred row layout, cards at 1/3 column width */
  .rank-section-cards { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: stretch; }
  .rank-section-cards .rank-card { flex: 0 0 calc(33.333% - 0.667rem); }
  /* Expanded card stretches to full wrapper width */
  .rank-section-cards .rank-card.expanded { flex: 0 0 100%; }
  .rank-card.expanded .rank-reason { display: none; }
  .rank-card.expanded .rank-detail { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; align-items: start; padding: 0.65rem 0.9rem 0.9rem; }
}

/* ── MOBILE PERSONA GRID ── */
@media (max-width: 420px) {
  .persona-grid { grid-template-columns: repeat(2, 1fr); }
  .app-header-logo { height: 30px; }
}

/* ── EASY READ — 3 columns on wide desktop ── */
@media (min-width: 1050px) {
  .er-all-wrap { grid-template-columns: repeat(3, 1fr); }
}

/* ── BACK TO TOP ── */
/* ── LOCATION NUDGE TOAST ── */
.loc-nudge-toast { position: fixed; bottom: 4.5rem; left: 50%; transform: translateX(-50%); background: rgba(29,78,216,0.97); border: 1px solid rgba(147,197,253,0.3); border-radius: 16px; padding: 0.85rem 1rem; display: flex; align-items: center; gap: 0.75rem; z-index: 400; max-width: 400px; width: calc(100% - 2rem); backdrop-filter: blur(10px); box-shadow: 0 8px 32px rgba(0,0,0,0.35); animation: slideUp 0.3s ease; }
.loc-nudge-toast.hidden { display: none; }
.loc-nudge-text { font-family: 'Inter', sans-serif; font-size: 0.84rem; color: rgba(255,255,255,0.92); line-height: 1.4; flex: 1; margin: 0; }
.loc-nudge-text strong { color: white; }
.loc-nudge-cta { font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 600; color: white; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.3); border-radius: 50px; padding: 0.3rem 0.75rem; text-decoration: none; white-space: nowrap; transition: background 0.2s; flex-shrink: 0; }
.loc-nudge-cta:hover { background: rgba(255,255,255,0.28); }
.loc-nudge-close { background: none; border: none; color: rgba(255,255,255,0.6); cursor: pointer; font-size: 0.95rem; padding: 0; flex-shrink: 0; line-height: 1; }
.loc-nudge-close:hover { color: white; }
@keyframes slideUp { from { transform: translateX(-50%) translateY(16px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }

.back-to-top { position: fixed; bottom: 1.5rem; right: 1.2rem; background: rgba(37,99,235,0.85); border: none; color: white; width: 2.6rem; height: 2.6rem; border-radius: 50%; font-size: 1.1rem; cursor: pointer; z-index: 200; transition: opacity 0.25s, transform 0.25s; box-shadow: 0 4px 16px rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; }
.back-to-top:hover { background: rgba(37,99,235,1); transform: translateY(-2px); }
.back-to-top.hidden { opacity: 0; pointer-events: none; transform: translateY(8px); }
body.light .back-to-top { background: #1d4ed8; box-shadow: 0 4px 16px rgba(0,0,0,0.15); }

/* ── RANK CARD EXPAND HINT ── */
.rank-card.expanded .rank-details-lbl { opacity: 0; }
body.light .rank-details-lbl { color: rgba(37,99,235,0.35); }

/* ── LIGHT MODE ── */
body.light { background: var(--wfi-light-sky-gradient) fixed; color: var(--wfi-light-text); }
body.light .sky { background: var(--wfi-light-sky-gradient); }
body.light .lp-wrap { color: var(--wfi-light-text); }
body.light .stars { opacity: 0; }
body.light .clouds { background: radial-gradient(ellipse at 50% -10%, rgba(147,197,253,0.4) 0%, transparent 60%); }
body.light .ctrl-btn { background: rgba(255,255,255,0.7); border-color: rgba(37,99,235,0.2); color: #1e3a5f; }
body.light .ctrl-btn:hover { background: white; }
body.light .er-btn.er-on { background: rgba(5,150,105,0.1); border-color: rgba(5,150,105,0.35); color: #065f46; }
body.light .app-name { color: #0f2744; }
body.light .app-name span { color: #1d4ed8; }
body.light .app-tagline { color: #3d5670; }
body.light .app-tagline strong { color: #1d4ed8; }
body.light .app-subhead { color: #6b8ab0; }
body.light .trust-strip span { color: #3d5670; }
body.light .feature-section-hdr { color: #3d5670; }
body.light .feature-item { background: white; border-color: rgba(37,99,235,0.1); box-shadow: 0 1px 6px rgba(0,0,0,0.05); }
body.light .feature-item:hover { background: var(--wfi-light-hover-surface); border-color: rgba(37,99,235,0.25); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
body.light .feature-title { color: #0f2744; }
body.light .feature-desc { color: #3d5670; }
body.light .search-label { color: #3d5670; }
body.light .s-input { background: white; border-color: rgba(37,99,235,0.25); color: #0f2744; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
body.light .s-input::placeholder { color: #3d5670; }
body.light .s-input:focus { border-color: #2563eb; }
body.light .gps-btn { background: white; border-color: rgba(37,99,235,0.25); color: #2563eb; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
body.light .sugg { background: white; border-color: rgba(37,99,235,0.2); box-shadow: 0 8px 32px rgba(0,0,0,0.15); }
body.light .sugg-item { color: #1e3a5f; border-color: rgba(0,0,0,0.06); }
body.light .sugg-item:hover { background: var(--wfi-light-hover-surface); color: #0f2744; }
body.light .res-change { color: #2563eb; }
body.light .pg-tile { background: white; border-color: rgba(37,99,235,0.15); box-shadow: 0 2px 8px rgba(0,0,0,0.07); }
body.light .pg-tile:hover { background: #f0f5ff; }
body.light .pg-tile.selected { background: var(--wfi-light-accent-bg); border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,0.2); }
body.light .pg-tile.selected .pg-name { color: #1e3a5f; }
body.light .pg-check { color: #2563eb; }
body.light .pg-name { color: #1e3a5f; }
body.light .pg-tagline { color: #64748b; }
body.light .picker-heading { color: #0f2744; }
body.light .picker-sub { color: #3d5670; }
body.light .picker-select-all { border-color: rgba(37,99,235,0.2); color: #3d5670; }
body.light .picker-select-all:hover { border-color: rgba(37,99,235,0.4); color: #1d4ed8; }
body.light .picker-group-btn { border-color: rgba(37,99,235,0.15); color: #6b8ab0; }
body.light .picker-group-btn.active { border-color: rgba(37,99,235,0.4); color: #1d4ed8; background: rgba(37,99,235,0.06); }
body.light .picker-cat-hdr { color: #3d5670; border-bottom-color: rgba(37,99,235,0.08); }
body.light .picker-save { color: #3d5670; }
body.light .rank-card { background: white; border-color: rgba(37,99,235,0.12); box-shadow: 0 2px 12px rgba(0,0,0,0.07); }
body.light .rank-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.12); }
body.light .rank-name-tab { background: rgba(0,0,0,0.025); border-bottom-color: rgba(37,99,235,0.08); }
body.light .rank-good .rank-name-tab    { background: rgba(22,163,74,0.06);  border-bottom-color: rgba(22,163,74,0.12); }
body.light .rank-caution .rank-name-tab { background: rgba(217,119,6,0.06);  border-bottom-color: rgba(217,119,6,0.12); }
body.light .rank-danger .rank-name-tab  { background: rgba(220,38,38,0.06);  border-bottom-color: rgba(220,38,38,0.12); }
body.light .rank-setup .rank-name-tab   { background: rgba(37,99,235,0.04);  border-bottom-color: rgba(37,99,235,0.08); }
body.light .rank-name { color: #0f2744; }
body.light .rank-reason { color: #3d5670; }
body.light .rank-section-good { color: #16a34a; }
body.light .rank-section-caution { color: #d97706; }
body.light .rank-section-danger { color: #dc2626; }
body.light .rank-section-setup { color: #6b8ab0; }
body.light .badge-good { background: rgba(22,163,74,0.12); color: #16a34a; }
body.light .badge-caution { background: rgba(217,119,6,0.12); color: #d97706; }
body.light .badge-danger { background: rgba(220,38,38,0.12); color: #dc2626; }
body.light .badge-setup { background: rgba(37,99,235,0.08); color: #6b8ab0; }
body.light .acc { background: white; border-color: rgba(37,99,235,0.12); box-shadow: 0 2px 16px rgba(0,0,0,0.08); }
body.light .acc-hdr:hover { background: var(--wfi-light-hover-surface); }
body.light .acc-ttl { color: #0f2744; }
body.light .acc-smry { color: #2563eb; }
body.light .acc-chev { color: #2563eb; }
body.light .verdict.yes { color: #1d4ed8; } body.light .verdict.no { color: #b45309; }
body.light .verdict.good { color: #047857; } body.light .verdict.caution { color: #b45309; } body.light .verdict.danger { color: #dc2626; }
body.light .v-sub { color: #3d5670; }
body.light .stat-box { background: var(--wfi-light-card-soft); border-color: var(--wfi-light-border); }
body.light .stat-v { color: #0f2744; }
body.light .stat-l { color: #5a80a0; }
body.light .alert-box.blue { background: var(--wfi-light-accent-bg); border-color: rgba(37,99,235,0.3); }
body.light .alert-box.blue .alert-text { color: #1e40af; }
body.light .alert-box.green { background: #d1fae5; border-color: rgba(5,150,105,0.3); }
body.light .alert-box.green .alert-text { color: #065f46; }
body.light .alert-box.amber { background: #fef3c7; border-color: rgba(217,119,6,0.3); }
body.light .alert-box.amber .alert-text { color: #92400e; }
body.light .alert-box.red { background: #fee2e2; border-color: rgba(220,38,38,0.3); }
body.light .alert-box.red .alert-text { color: #991b1b; }
body.light .layer { background: var(--wfi-light-card-soft); border-color: rgba(37,99,235,0.1); }
body.light .l-text { color: #1e3a5f; }
body.light .l-label { color: #2563eb; font-weight: 600; }
body.light .why-box { background: var(--wfi-light-accent-bg); border-left-color: #3b82f6; }
body.light .why-text { color: #1e40af; }
body.light .wear-temp { color: #0f2744; }
body.light .wear-range, body.light .wear-feels { color: #3d5670; }
body.light .dtag { color: #3d5670; }
body.light .dtag span { color: #1d4ed8; font-weight: 600; }
body.light .divider { background: rgba(37,99,235,0.12); }
body.light .section-ttl { color: #2563eb; font-weight: 600; }
body.light .selector-pill { background: var(--wfi-light-card-soft); border-color: rgba(37,99,235,0.15); color: #3d5670; }
body.light .selector-pill:hover { background: var(--wfi-light-accent-bg); color: #1e3a5f; }
body.light .selector-pill.active { background: #1d4ed8; border-color: #1d4ed8; color: white; }
body.light .dep-board { background: #0a0a0a; border-color: #444; }
body.light .footer::before { background: rgba(37,99,235,0.12); }
body.light .footer-links a,
body.light .footer-cookie-btn { color: #1e3a5f; }
body.light .footer-links a:hover,
body.light .footer-cookie-btn:hover { color: #0d1b3d; }
body.light .footer-meta { color: #3d5670; }
body.light .loading-text { color: #1e3a5f; }
body.light .loading-sub { color: #3d5670; }
body.light .er-card { background: white; border-color: rgba(37,99,235,0.12); box-shadow: 0 2px 16px rgba(0,0,0,0.08); }

/* ── LOGIN PAGE EXTRAS ── */
.auth-logo { font-size: 2.5rem; text-align: center; display: block; margin-bottom: 0.5rem; }
.auth-heading { font-family: 'Manrope', sans-serif; font-size: 1.5rem; font-weight: 700; color: #e8f0fe; text-align: center; margin-bottom: 0.4rem; }
.auth-sub { font-family: 'Inter', sans-serif; font-size: 0.85rem; color: rgba(147,185,255,0.6); text-align: center; margin-bottom: 1.6rem; }
.auth-toggle { text-align: center; margin-top: 1rem; font-family: 'Inter', sans-serif; font-size: 0.82rem; color: rgba(147,185,255,0.55); display: flex; align-items: center; justify-content: center; gap: 0.4rem; }
.auth-toggle-btn { background: none; border: none; color: rgba(147,197,253,0.85); font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; font-size: 0.82rem; padding: 0; transition: color 0.2s; }
.auth-toggle-btn:hover { color: #93c5fd; }
.auth-forgot { text-align: center; margin-top: 0.6rem; }
.auth-link-btn { background: none; border: none; color: rgba(147,197,253,0.45); font-family: 'Inter', sans-serif; font-size: 0.76rem; cursor: pointer; padding: 0; text-decoration: underline; transition: color 0.2s; }
.auth-link-btn:hover { color: rgba(147,197,253,0.75); }
.auth-divider { display: flex; align-items: center; gap: 0.75rem; margin: 1rem 0 0.5rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: rgba(147,197,253,0.1); }
.auth-divider span { font-family: 'Inter', sans-serif; font-size: 0.72rem; color: rgba(147,197,253,0.35); white-space: nowrap; }

/* ── PRICING PAGE EXTRAS ── */
.pricing-heading { font-family: 'Manrope', sans-serif; font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 800; color: #e8f0fe; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.pricing-sub { font-family: 'Inter', sans-serif; font-size: 0.95rem; color: rgba(147,185,255,0.55); }
.pricing-toggle { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 2rem; }
.period-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(147,197,253,0.12); border-radius: 50px; padding: 0.45rem 1.1rem; font-family: 'Inter', sans-serif; font-size: 0.82rem; color: rgba(200,220,255,0.5); cursor: pointer; transition: all 0.18s; display: inline-flex; align-items: center; gap: 0.5rem; }
.period-btn.active { background: rgba(37,99,235,0.25); border-color: rgba(96,165,250,0.4); color: #e8f0fe; font-weight: 500; }
.plan-price-wrap { display: flex; align-items: baseline; gap: 0.2rem; margin-bottom: 0.25rem; }
.plan-price { font-family: 'Manrope', sans-serif; font-size: 2.2rem; font-weight: 800; color: #e8f0fe; }
.plan-period { font-family: 'Inter', sans-serif; font-size: 0.82rem; color: rgba(147,185,255,0.55); }
.plan-trial { font-family: 'Inter', sans-serif; font-size: 0.75rem; color: rgba(134,239,172,0.75); margin-bottom: 1.2rem; }
.plan-features li.feat { list-style: none; }
.plan-features li.feat.yes { color: rgba(190,215,255,0.85); }
.plan-features li.feat.yes::before { content: '✓ '; color: #86efac; flex-shrink: 0; }
.plan-features li.feat.no { color: rgba(147,185,255,0.3); }
.plan-features li.feat.no::before { content: '✕ '; color: rgba(147,197,253,0.2); flex-shrink: 0; }
.plan-features li.feat.soon { color: rgba(190,215,255,0.5); }
.plan-features li.feat.soon::before { content: '◷ '; color: rgba(251,191,36,0.5); flex-shrink: 0; }
.soon-tag { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.04em; color: rgba(251,191,36,0.7); background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.2); border-radius: 50px; padding: 0.08rem 0.45rem; margin-left: 0.3rem; white-space: nowrap; }
.plan-btn-primary { background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: white; box-shadow: 0 4px 20px rgba(37,99,235,0.4); }
.plan-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,99,235,0.6); }
.plan-btn-ghost { background: rgba(255,255,255,0.04); color: rgba(200,220,255,0.55); border: 1px solid rgba(147,197,253,0.1); }
.plan-btn-ghost:hover { background: rgba(255,255,255,0.08); color: rgba(200,220,255,0.8); }
.plan-btn-outline { background: transparent; color: rgba(200,220,255,0.7); border: 1px solid rgba(147,197,253,0.2); }
.plan-btn-outline:hover { background: rgba(255,255,255,0.06); color: #e8f0fe; border-color: rgba(147,197,253,0.35); }
.pricing-note { text-align: center; font-family: 'Inter', sans-serif; font-size: 0.74rem; color: rgba(147,185,255,0.3); margin-top: 2rem; }

/* ── ACCOUNT PAGE EXTRAS ── */
.account-heading { font-family: 'Manrope', sans-serif; font-size: 1.7rem; font-weight: 700; color: #e8f0fe; margin-bottom: 0.3rem; }
.account-section-label { font-family: 'Inter', sans-serif; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(147,197,253,0.5); margin-bottom: 0.5rem; }
.account-plan-detail { font-family: 'Inter', sans-serif; font-size: 0.8rem; color: rgba(147,185,255,0.5); margin-top: 0.3rem; }
.account-badge { font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 50px; flex-shrink: 0; }
.account-trial-msg { font-family: 'Inter', sans-serif; font-size: 0.85rem; color: rgba(251,210,80,0.8); line-height: 1.5; }
.account-actions { display: flex; flex-direction: column; }
.account-btn-primary { background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: white; box-shadow: 0 4px 20px rgba(37,99,235,0.35); }
.account-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(37,99,235,0.55); }
.account-btn-secondary { background: rgba(255,255,255,0.06); color: rgba(200,220,255,0.7); border: 1px solid rgba(147,197,253,0.15); }
.account-btn-secondary:hover { background: rgba(255,255,255,0.1); color: #e8f0fe; }
.account-btn-ghost { background: rgba(239,68,68,0.08); color: rgba(252,165,165,0.7); border: 1px solid rgba(248,113,113,0.15); }
.account-btn-ghost:hover { background: rgba(239,68,68,0.15); color: rgba(252,165,165,0.9); }

/* ── PREFERENCE TOGGLES ── */
.pref-row { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; }
.pref-left { flex: 1; }
.pref-name { font-family: 'Inter', sans-serif; font-size: 0.88rem; font-weight: 500; color: rgba(220,235,255,0.9); margin-bottom: 0.15rem; }
.pref-desc { font-family: 'Inter', sans-serif; font-size: 0.74rem; color: rgba(147,185,255,0.45); }
.pref-divider { height: 1px; background: rgba(147,197,253,0.07); }
.pref-toggle { position: relative; width: 46px; height: 26px; cursor: pointer; flex-shrink: 0; }
.pref-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.pref-track { position: absolute; inset: 0; background: rgba(255,255,255,0.08); border-radius: 50px; border: 1px solid rgba(147,197,253,0.15); transition: background 0.2s, border-color 0.2s; }
.pref-toggle input:checked + .pref-track { background: rgba(37,99,235,0.5); border-color: rgba(96,165,250,0.5); }
.pref-thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: rgba(147,197,253,0.6); border-radius: 50%; transition: transform 0.2s, background 0.2s; pointer-events: none; }
.pref-toggle input:checked ~ .pref-thumb { transform: translateX(20px); background: #60a5fa; }

/* ── MODAL EXTRAS ── */
.modal-emoji { font-size: 2.5rem; text-align: center; margin-bottom: 0.8rem; }
.modal-body { font-family: 'Inter', sans-serif; font-size: 0.84rem; color: rgba(190,215,255,0.75); line-height: 1.6; text-align: center; margin-bottom: 1.4rem; }
.modal-actions { display: flex; flex-direction: column; gap: 0.6rem; }
.modal-btn-primary { display: block; width: 100%; background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: white; border: none; padding: 0.88rem 2rem; font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 600; border-radius: 50px; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 20px rgba(37,99,235,0.4); text-align: center; text-decoration: none; }
.modal-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(37,99,235,0.6); }
.modal-btn-ghost { width: 100%; background: none; border: none; color: rgba(147,197,253,0.45); font-family: 'Inter', sans-serif; font-size: 0.8rem; cursor: pointer; padding: 0.4rem; transition: color 0.2s; }
.modal-btn-ghost:hover { color: rgba(147,197,253,0.8); }
body.light .er-verdict.yes { color: #1d4ed8; } body.light .er-verdict.no { color: #b45309; }
body.light .er-verdict.good { color: #047857; } body.light .er-verdict.caution { color: #b45309; } body.light .er-verdict.danger { color: #dc2626; }
body.light .er-sentence { color: #1e3a5f; }
body.light .er-detail { color: #3d5670; }
body.light .er-alert { background: var(--wfi-light-accent-bg); border-color: rgba(37,99,235,0.25); }
body.light .er-alert.amber { background: #fef3c7; border-color: rgba(217,119,6,0.25); }
body.light .er-alert.red { background: #fee2e2; border-color: rgba(220,38,38,0.2); }
body.light .er-alert.green { background: #d1fae5; border-color: rgba(5,150,105,0.25); }
body.light .er-alert-text { color: #1e3a5f; }
body.light .auth-card { background: rgba(255,255,255,0.9); border-color: rgba(37,99,235,0.15); }
body.light .auth-title { color: #0f2744; }
body.light .auth-subtitle { color: #3d5670; }
body.light .auth-input { background: white; border-color: rgba(37,99,235,0.25); color: #0f2744; box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
body.light .auth-label { color: #2563eb; }
body.light .plan-card { background: white; border-color: rgba(37,99,235,0.12); box-shadow: 0 2px 16px rgba(0,0,0,0.07); }
body.light .plan-card.featured { border-color: rgba(37,99,235,0.35); background: var(--wfi-light-featured-bg); }
body.light .plan-name { color: #0f2744; }
body.light .plan-price-amount { color: #0f2744; }
body.light .plan-features li { color: #1e3a5f; }
body.light .account-section { background: white; border-color: rgba(37,99,235,0.12); box-shadow: 0 2px 12px rgba(0,0,0,0.07); }
body.light .account-plan-name { color: #0f2744; }
body.light .account-email { color: #1e3a5f; }
body.light .account-heading { color: #0f2744; }
body.light .account-section-label { color: #2563eb; }
body.light .account-plan-detail { color: #3d5670; }
body.light .account-trial-msg { color: #92400e; }
body.light .account-btn-secondary { background: var(--wfi-light-card-soft); color: #1e3a5f; border-color: rgba(37,99,235,0.2); }
body.light .account-btn-ghost { background: #fee2e2; color: #991b1b; border-color: rgba(220,38,38,0.2); }
body.light .pref-name { color: #0f2744; }
body.light .pref-desc { color: #3d5670; }
body.light .pref-divider { background: rgba(37,99,235,0.08); }
body.light .pref-track { background: rgba(0,0,0,0.08); border-color: rgba(37,99,235,0.2); }
body.light .back-link { color: #2563eb; }
body.light .back-link:hover { color: #1d4ed8; }
body.light .loading-text { color: #1e3a5f; }

/* ── APP LOGO IMAGE ── */
.app-logo-img { width: 340px; max-width: 93%; height: auto; object-fit: contain; margin: -2.4rem auto -5rem; display: block; }
.app-logo-light { display: none; }
body.light .app-logo-dark { display: none; }
body.light .app-logo-light { display: block; }
.auth-logo-img { width: 180px; max-width: 72%; height: auto; object-fit: contain; display: block; margin: 0 auto 1.5rem; }
.auth-logo-light { display: none; }
body.light .auth-logo-dark { display: none; }
body.light .auth-logo-light { display: block; }

/* ── GOOGLE SIGN-IN BUTTON ── */
.google-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.65rem; background: white; border: 1px solid rgba(0,0,0,0.12); border-radius: 50px; padding: 0.82rem 1.5rem; font-family: 'Inter', sans-serif; font-size: 0.88rem; font-weight: 500; color: #3c4043; cursor: pointer; transition: all 0.2s; box-shadow: 0 1px 4px rgba(0,0,0,0.15); margin-bottom: 0.5rem; }
.google-btn:hover { background: #f8f9fa; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
body.light .google-btn { border-color: rgba(0,0,0,0.18); }

/* ── SHARE ROW ── */
.share-row { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 0.6rem; flex-wrap: wrap; }
.share-forecast-btn { display: inline-flex; align-items: center; gap: 0.4rem; background: linear-gradient(135deg, rgba(37,99,235,0.22), rgba(59,130,246,0.18)); border: 1px solid rgba(96,165,250,0.35); border-radius: 50px; padding: 0.42rem 1.05rem; font-family: 'Inter', sans-serif; font-size: 0.74rem; font-weight: 600; color: rgba(200,220,255,0.9); cursor: pointer; transition: all 0.2s; letter-spacing: 0.01em; }
.share-forecast-btn:hover { background: linear-gradient(135deg, rgba(37,99,235,0.35), rgba(59,130,246,0.3)); border-color: rgba(96,165,250,0.55); color: white; }
.share-btn { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(147,197,253,0.14); border-radius: 50px; padding: 0.38rem 0.85rem; font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 500; color: rgba(200,220,255,0.55); cursor: pointer; transition: all 0.2s; letter-spacing: 0.02em; }
.share-btn:hover { background: rgba(255,255,255,0.12); color: rgba(200,220,255,0.85); border-color: rgba(147,197,253,0.3); }
body.light .share-forecast-btn { background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(59,130,246,0.08)); border-color: rgba(37,99,235,0.3); color: #1d4ed8; }
body.light .share-forecast-btn:hover { background: linear-gradient(135deg, rgba(37,99,235,0.18), rgba(59,130,246,0.14)); }
body.light .share-btn { background: white; border-color: rgba(37,99,235,0.15); color: #3d5670; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
body.light .share-btn:hover { background: var(--wfi-light-hover-surface); color: #1e3a5f; }

/* ── SHARE MODAL ── */
.share-preview { font-family: 'Inter', sans-serif; font-size: 0.81rem; line-height: 1.65; color: rgba(200,220,255,0.82); background: rgba(255,255,255,0.04); border: 1px solid rgba(147,197,253,0.12); border-radius: 12px; padding: 0.95rem 1.1rem; white-space: pre-wrap; text-align: left; margin: 0.75rem 0 1rem; }
.share-platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 0.85rem; }
.share-platform-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.65rem 0.8rem; border-radius: 10px; border: 1px solid rgba(147,197,253,0.14); background: rgba(255,255,255,0.05); font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 600; color: rgba(200,220,255,0.75); cursor: pointer; transition: all 0.15s; }
.share-platform-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(147,197,253,0.28); color: #e8f0fe; }
.share-x-btn { background: rgba(0,0,0,0.25); border-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); }
.share-x-btn:hover { background: rgba(0,0,0,0.4); }
.share-fb-btn { background: rgba(24,119,242,0.12); border-color: rgba(24,119,242,0.28); color: #7bb8f8; }
.share-fb-btn:hover { background: rgba(24,119,242,0.22); }
.share-wa-btn { background: rgba(37,211,102,0.1); border-color: rgba(37,211,102,0.22); color: #4ade80; }
.share-wa-btn:hover { background: rgba(37,211,102,0.2); }
body.light .share-preview { background: var(--wfi-light-card-soft); border-color: var(--wfi-light-border); color: #1e3a5f; }
body.light .share-platform-btn { background: white; border-color: rgba(37,99,235,0.15); color: #3d5670; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
body.light .share-platform-btn:hover { background: var(--wfi-light-hover-surface); color: #1e3a5f; }
body.light .share-x-btn { background: #000; border-color: #000; color: white; }
body.light .share-fb-btn { background: #1877f2; border-color: #1877f2; color: white; }
body.light .share-wa-btn { background: #25d366; border-color: #25d366; color: white; }

/* ── LIGHT MODE CONTRAST FIXES ── */
/* Pricing page */
body.light .pricing-heading { color: #0f2744; }
body.light .pricing-sub { color: #3d5670; }
body.light .plan-price { color: #0f2744; }
body.light .plan-period { color: #3d5670; }
body.light .plan-trial { color: #047857; }
body.light .plan-features li.feat.yes { color: #1e3a5f; }
body.light .plan-features li.feat.yes::before { color: #16a34a; }
body.light .plan-features li.feat.no { color: #3d5670; }
body.light .plan-features li.feat.no::before { color: #b0c4d0; }
body.light .plan-features li.feat.soon { color: #6b7280; }
body.light .period-btn { color: #3d5670; background: rgba(37,99,235,0.06); border-color: rgba(37,99,235,0.15); }
body.light .save-badge { color: #047857; background: rgba(5,150,105,0.1); border-color: rgba(5,150,105,0.25); }
body.light .plan-btn-ghost { color: #3d5670; border-color: rgba(37,99,235,0.2); background: rgba(37,99,235,0.04); }
body.light .plan-btn-ghost:hover { background: rgba(37,99,235,0.08); color: #1e3a5f; }
body.light .pricing-note { color: #3d5670; }
/* Auth page */
body.light .auth-sub { color: #3d5670; }
body.light .auth-toggle { color: #3d5670; }
body.light .auth-toggle-btn { color: #2563eb; }
body.light .auth-link-btn { color: #3d5670; }
body.light .auth-divider::before, body.light .auth-divider::after { background: rgba(37,99,235,0.15); }
body.light .auth-divider span { color: #3d5670; }
/* Account page */
body.light .account-plan-detail { color: #3d5670; }
body.light .account-trial-msg { color: #92400e; }
body.light .pref-name { color: #1e3a5f; }
body.light .pref-desc { color: #3d5670; }
body.light .account-btn-secondary { color: #1e3a5f; border-color: rgba(37,99,235,0.2); background: rgba(37,99,235,0.04); }
body.light .account-btn-secondary:hover { background: rgba(37,99,235,0.08); color: #0f2744; }
body.light .account-btn-ghost { color: #dc2626; border-color: rgba(220,38,38,0.2); background: rgba(220,38,38,0.04); }
/* Modals */
body.light .modal-body { color: #1e3a5f; }
body.light .modal-btn-ghost { color: #3d5670; }
/* Guide page headings (lp-wrap) */
body.light .lp-hero h1 { color: #0f2744; }
body.light .lp-section h2 { color: #0f2744; }
body.light .lp-section h3 { color: #1e3a5f; }
body.light .lp-faq h2 { color: #0f2744; }
body.light .lp-cta-section h2 { color: #0f2744; }
body.light .lp-cta-section p { color: #3d5670; }
body.light .lp-hero p { color: #3d5670; }


/* ── TASK ROWS (Garden Work merged card) ── */
.task-rows { margin: 0 0 0.85rem; border-radius: 10px; overflow: hidden; border: 1px solid rgba(147,197,253,0.1); }
.task-row { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.5rem 0.82rem; border-bottom: 1px solid rgba(147,197,253,0.07); }
.task-row:last-child { border-bottom: none; }
.task-row-dot { font-size: 0.75rem; flex-shrink: 0; margin-top: 0.22rem; }
.task-row-name { font-family: 'Manrope', sans-serif; font-size: 0.85rem; font-weight: 600; color: #e8f0fe; margin-bottom: 0.1rem; }
.task-row-detail { font-family: 'Inter', sans-serif; font-size: 0.76rem; color: rgba(190,215,255,0.7); line-height: 1.4; }
body.light .task-rows { border-color: rgba(37,99,235,0.14); background: var(--wfi-light-card-soft); }
body.light .task-row { border-bottom-color: rgba(37,99,235,0.08); }
body.light .task-row-name { color: #0f2744; }
body.light .task-row-detail { color: #3d5670; }

/* ── WALK WINDOWS ── */
.walk-windows { margin: 0 0 0.85rem; border-radius: 10px; overflow: hidden; border: 1px solid rgba(147,197,253,0.1); }
.walk-window-row { display: flex; align-items: baseline; gap: 0.75rem; padding: 0.52rem 0.82rem; border-bottom: 1px solid rgba(147,197,253,0.07); }
.walk-window-row:last-child { border-bottom: none; }
.walk-window-time { font-family: 'Manrope', sans-serif; font-size: 0.95rem; font-weight: 700; color: #93c5fd; min-width: 3.2rem; flex-shrink: 0; }
.walk-window-detail { font-family: 'Inter', sans-serif; font-size: 0.76rem; color: rgba(190,215,255,0.7); line-height: 1.4; }
body.light .walk-windows { border-color: rgba(37,99,235,0.14); background: var(--wfi-light-card-soft); }
body.light .walk-window-row { border-bottom-color: rgba(37,99,235,0.08); }
body.light .walk-window-time { color: #1d4ed8; }
body.light .walk-window-detail { color: #3d5670; }

/* ── TIGHTER RANK SECTION SPACING ── */
.rank-section { padding-top: 0.6rem; }
.rank-section:first-child { padding-top: 0.2rem; }

/* ── GENERAL TILE ── */
.pg-tile-general { border-color: rgba(251,191,36,0.28); background: rgba(251,191,36,0.06); }
.pg-tile-general:hover { border-color: rgba(251,191,36,0.45); background: rgba(251,191,36,0.1); }
.pg-tile-general.selected { border-color: rgba(251,191,36,0.7); background: rgba(251,191,36,0.14); box-shadow: 0 0 0 2px rgba(251,191,36,0.18); }
body.light .pg-tile-general { border-color: rgba(180,130,0,0.28); background: rgba(251,191,36,0.07); }
body.light .pg-tile-general:hover { border-color: rgba(180,130,0,0.45); background: rgba(251,191,36,0.13); }
body.light .pg-tile-general.selected { border-color: rgba(180,130,0,0.65); background: rgba(251,191,36,0.16); }

/* ── PICKER SAVE NUDGE ── */
.picker-save-nudge { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; background: rgba(37,99,235,0.1); border: 1px solid rgba(96,165,250,0.28); border-radius: 12px; padding: 0.75rem 1rem; width: 100%; text-align: center; }
.picker-nudge-text { font-family: 'Inter', sans-serif; font-size: 0.82rem; color: rgba(200,220,255,0.85); line-height: 1.4; }
.picker-nudge-btns { display: flex; gap: 0.5rem; }
.picker-nudge-yes { background: rgba(37,99,235,0.35); border: 1px solid rgba(96,165,250,0.5); border-radius: 50px; padding: 0.38rem 1rem; font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 600; color: #e8f0fe; cursor: pointer; transition: all 0.18s; }
.picker-nudge-yes:hover { background: rgba(37,99,235,0.55); }
.picker-nudge-no { background: transparent; border: 1px solid rgba(147,197,253,0.2); border-radius: 50px; padding: 0.38rem 1rem; font-family: 'Inter', sans-serif; font-size: 0.78rem; color: rgba(147,197,253,0.55); cursor: pointer; transition: all 0.18s; }
.picker-nudge-no:hover { color: rgba(147,197,253,0.85); border-color: rgba(147,197,253,0.38); }
body.light .picker-save-nudge { background: rgba(37,99,235,0.06); border-color: rgba(37,99,235,0.2); }
body.light .picker-nudge-text { color: #1e3a5f; }
body.light .picker-nudge-yes { background: rgba(37,99,235,0.12); border-color: rgba(37,99,235,0.35); color: #1e3a5f; }
body.light .picker-nudge-yes:hover { background: rgba(37,99,235,0.2); }
body.light .picker-nudge-no { color: #3d5670; border-color: rgba(37,99,235,0.15); }

/* ── SHARED CONDITIONS CARD ── */
.shared-conditions-card { background: rgba(255,255,255,0.035); border: 1px solid rgba(147,197,253,0.12); border-radius: 16px; padding: 1.2rem 1.25rem 1rem; margin-bottom: 0.8rem; }
.shared-cond-label { font-family: 'Inter', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(147,197,253,0.4); margin-bottom: 0.75rem; }
.shared-cond-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.55rem; }
.shared-cond-item { flex: 1; min-width: 60px; display: flex; flex-direction: column; align-items: center; background: rgba(255,255,255,0.04); border-radius: 10px; padding: 0.55rem 0.6rem; }
.shared-cond-val { font-family: 'Manrope', sans-serif; font-size: 1.1rem; font-weight: 700; color: #e8f0fe; line-height: 1.1; }
.shared-cond-lbl { font-family: 'Inter', sans-serif; font-size: 0.66rem; color: rgba(147,197,253,0.45); margin-top: 0.15rem; text-align: center; line-height: 1.3; }
.shared-cond-footer { font-family: 'Inter', sans-serif; font-size: 0.76rem; color: rgba(200,220,255,0.5); line-height: 1.5; padding-top: 0.5rem; border-top: 1px solid rgba(147,197,253,0.07); }
body.light .shared-conditions-card { background: white; border-color: rgba(37,99,235,0.12); box-shadow: 0 2px 12px rgba(0,0,0,0.07); }
body.light .shared-cond-label { color: #3d5670; }
body.light .shared-cond-item { background: var(--wfi-light-card-soft); }
body.light .shared-cond-val { color: #0f2744; }
body.light .shared-cond-lbl { color: #3d5670; }
body.light .shared-cond-footer { color: #3d5670; border-top-color: rgba(37,99,235,0.08); }

/* ── COMBINED SPORT CHIP CARD ── */
.rank-combined { background: rgba(255,255,255,0.04); border: 1px solid rgba(147,197,253,0.1); border-radius: 16px; margin-bottom: 0.55rem; overflow: hidden; }
.rank-combined-intro { display: flex; align-items: center; justify-content: space-between; padding: 0.65rem 1rem 0; }
.rank-combined-hint { font-family: 'Inter', sans-serif; font-size: 0.62rem; color: rgba(147,197,253,0.38); padding: 0 1rem 0.6rem; }
.rank-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1rem 0.75rem; }
.rank-chip { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.32rem 0.75rem; border-radius: 50px; border: 1px solid rgba(147,197,253,0.2); background: rgba(255,255,255,0.04); font-family: 'Inter', sans-serif; font-size: 0.74rem; font-weight: 500; color: rgba(200,220,255,0.65); cursor: pointer; transition: all 0.18s; }
.rank-chip:hover { background: rgba(255,255,255,0.1); color: rgba(200,220,255,0.9); }
.rank-chip.active { box-shadow: 0 0 0 2px rgba(96,165,250,0.25); }
.rank-chip-good { border-color: rgba(74,222,128,0.3); color: rgba(134,239,172,0.8); }
.rank-chip-good:hover { background: rgba(74,222,128,0.08); color: #4ade80; }
.rank-chip-good.active { background: rgba(74,222,128,0.12); border-color: rgba(74,222,128,0.55); color: #4ade80; box-shadow: 0 0 0 2px rgba(74,222,128,0.18); }
.rank-chip-caution { border-color: rgba(251,191,36,0.3); color: rgba(251,191,36,0.8); }
.rank-chip-caution:hover { background: rgba(251,191,36,0.08); color: #fbbf24; }
.rank-chip-caution.active { background: rgba(251,191,36,0.12); border-color: rgba(251,191,36,0.55); color: #fbbf24; box-shadow: 0 0 0 2px rgba(251,191,36,0.18); }
.rank-chip-danger { border-color: rgba(248,113,113,0.3); color: rgba(248,113,113,0.8); }
.rank-chip-danger:hover { background: rgba(248,113,113,0.08); color: #f87171; }
.rank-chip-danger.active { background: rgba(248,113,113,0.12); border-color: rgba(248,113,113,0.55); color: #f87171; box-shadow: 0 0 0 2px rgba(248,113,113,0.18); }
.rank-combined .rank-detail { border-top: 1px solid rgba(147,197,253,0.07); padding: 0.75rem 0.5rem 0.4rem; }
body.light .rank-combined { background: white; border-color: rgba(37,99,235,0.12); box-shadow: 0 2px 12px rgba(0,0,0,0.07); }
body.light .rank-chip { background: var(--wfi-light-card-soft); border-color: rgba(37,99,235,0.18); color: #3d5670; }
body.light .rank-chip:hover { background: #e8f0ff; color: #1e3a5f; }
body.light .rank-chip-good { border-color: rgba(22,163,74,0.3); color: #16a34a; }
body.light .rank-chip-good.active { background: rgba(22,163,74,0.08); border-color: rgba(22,163,74,0.5); }
body.light .rank-chip-caution { border-color: rgba(217,119,6,0.3); color: #d97706; }
body.light .rank-chip-caution.active { background: rgba(217,119,6,0.08); border-color: rgba(217,119,6,0.5); }
body.light .rank-chip-danger { border-color: rgba(220,38,38,0.3); color: #dc2626; }
body.light .rank-chip-danger.active { background: rgba(220,38,38,0.08); border-color: rgba(220,38,38,0.5); }

/* ── SPORT COLLAPSIBLE (PICKER) ── */
.picker-tiles-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; grid-column: 1 / -1; }
.picker-cat-collapsible { cursor: pointer; user-select: none; display: flex; align-items: center; }
.picker-cat-count { font-weight: 400; padding-left: 0.25rem; color: rgba(147,197,253,0.35); }
.picker-cat-chev { font-size: 0.65rem; margin-left: auto; color: rgba(147,197,253,0.4); }
body.light .picker-cat-count { color: #3d5670; }
body.light .picker-cat-chev { color: #3d5670; }

/* ── COMBINED SPORT CARD REDESIGN ── */
.rank-combined-tab { justify-content: space-between !important; padding: 0.75rem 1.1rem !important; }
.rank-combined-hdr-left { display: flex; align-items: center; gap: 0.45rem; }
.rank-combined-title-group { display: flex; flex-direction: column; gap: 0.06rem; }
.rank-combined-count { font-family: 'Inter', sans-serif; font-size: 0.74rem; color: rgba(147,197,253,0.45); font-weight: 400; }
.rank-combined-body { padding: 0.6rem 1.1rem 0.85rem; }
.rank-combined-hint { font-family: 'Inter', sans-serif; font-size: 0.79rem; color: rgba(147,197,253,0.4); margin-bottom: 0.6rem; margin-top: 0; }
body.light .rank-combined-count { color: #6b8ab0; }
body.light .rank-combined-hint { color: #3d5670; }

/* ── GO BUTTON: DISABLED/ENABLED STATES ── */
#go-btn:not(:disabled) { background: linear-gradient(135deg, #15803d, #16a34a); box-shadow: 0 4px 24px rgba(22,163,74,0.35); }
#go-btn:not(:disabled):hover { box-shadow: 0 8px 32px rgba(22,163,74,0.55); transform: translateY(-2px); }
#go-btn:disabled { background: rgba(255,255,255,0.04); box-shadow: none; border: 1px solid rgba(147,197,253,0.1); color: rgba(200,220,255,0.3); opacity: 1; cursor: not-allowed; }
body.light #go-btn:disabled { background: rgba(0,0,0,0.03); border-color: rgba(37,99,235,0.12); color: rgba(15,39,68,0.3); }

/* ── GPS BUTTON LABEL ── */
.gps-btn { display: flex; flex-direction: column; align-items: center; gap: 0.05rem; padding: 0.6rem 0.85rem; }
.gps-label { font-family: 'Inter', sans-serif; font-size: 0.48rem; color: rgba(147,197,253,0.45); font-weight: 600; letter-spacing: 0.03em; white-space: nowrap; line-height: 1; }
body.light .gps-label { color: #3d5670; }

/* ── LINK BUTTON (inline action links in card copy) ── */
.link-btn { background: none; border: none; color: #60a5fa; font-family: inherit; font-size: inherit; cursor: pointer; padding: 0; text-decoration: underline; display: inline; }
.link-btn:hover { color: #93c5fd; }
body.light .link-btn { color: #2563eb; }
body.light .link-btn:hover { color: #1d4ed8; }

/* ── PICKER CTA BUMP ANIMATION ── */
@keyframes btn-count-bump { 0%,100% { transform: scale(1); } 50% { transform: scale(1.025); } }
.btn-count-bump { animation: btn-count-bump 0.2s ease; }

/* ── ACTIVITY GUIDE PAGES + LOCATION PAGES (.lp-*) ── */
.lp-wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 2rem 1.5rem 5rem; font-family: Inter, sans-serif; color: rgba(200,220,255,0.85); line-height: 1.7; position: relative; z-index: 10; }
.lp-hero { text-align: center; padding: 2.5rem 0 2rem; }
.lp-hero-icon { font-size: 3.5rem; margin-bottom: 0.75rem; display: block; }
.lp-hero h1 { font-family: Manrope, sans-serif; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; color: #fff; margin: 0 0 0.75rem; line-height: 1.2; }
.lp-hero p { font-size: 1rem; color: rgba(148,185,255,0.7); margin: 0 0 1.8rem; }
.lp-cta-btn { display: inline-block; background: #1E66FF; color: #fff; font-family: Manrope, sans-serif; font-weight: 700; font-size: 0.95rem; padding: 0.85rem 2rem; border-radius: 50px; text-decoration: none; transition: background 0.2s; }
.lp-cta-btn:hover { background: #1a55d4; }
.lp-divider { width: 40px; height: 2px; background: linear-gradient(90deg, #3b82f6, #93c5fd); border-radius: 2px; margin: 2.5rem auto; }
.lp-section { margin-bottom: 2.5rem; }
.lp-section h2 { font-family: Manrope, sans-serif; font-size: 1.25rem; font-weight: 700; color: #fff; margin: 0 0 0.9rem; }
.lp-section h3 { font-family: Manrope, sans-serif; font-size: 1rem; font-weight: 700; color: #e8f0fe; margin: 1.4rem 0 0.4rem; }
.lp-section p { font-size: 0.93rem; margin-bottom: 0.8rem; color: rgba(200,220,255,0.8); }
.conditions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1rem; }
.cond-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(147,197,253,0.1); border-radius: 14px; padding: 1rem 1.1rem; }
.cond-card .cond-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.5rem; }
.cond-card .cond-value { font-family: Manrope, sans-serif; font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.2rem; }
.cond-card .cond-desc { font-size: 0.78rem; color: rgba(200,220,255,0.55); line-height: 1.4; }
.cond-good .cond-label { color: #4ade80; }
.cond-caution .cond-label { color: #fbbf24; }
.cond-danger .cond-label { color: #f87171; }
.content-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(147,197,253,0.1); border-radius: 16px; padding: 1rem 1.25rem; margin: 0 0 1rem; overflow: hidden; }
.content-card .wind-table { margin-bottom: 0; }
.wind-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-bottom: 1rem; }
.wind-table th { font-family: Manrope, sans-serif; font-weight: 700; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(148,185,255,0.5); padding: 0.4rem 0.6rem; text-align: left; border-bottom: 1px solid rgba(147,197,253,0.1); }
.wind-table td { padding: 0.6rem 0.6rem; border-bottom: 1px solid rgba(147,197,253,0.06); color: rgba(200,220,255,0.8); vertical-align: top; }
.wind-table tr:last-child td { border-bottom: none; }
.wtag { display: inline-block; font-size: 0.62rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 50px; white-space: nowrap; }
.wtag-good { background: rgba(74,222,128,0.15); color: #4ade80; }
.wtag-caution { background: rgba(251,191,36,0.15); color: #fbbf24; }
.wtag-danger { background: rgba(248,113,113,0.15); color: #f87171; }
.lp-faq { margin-bottom: 2.5rem; }
.lp-faq h2 { font-family: Manrope, sans-serif; font-size: 1.25rem; font-weight: 700; color: #fff; margin: 0 0 1rem; }
.faq-item { border-bottom: 1px solid rgba(147,197,253,0.08); padding: 1rem 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-family: Manrope, sans-serif; font-weight: 700; font-size: 0.92rem; color: #e8f0fe; margin-bottom: 0.4rem; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; }
.faq-q span.faq-chev { color: rgba(147,197,253,0.4); font-size: 0.65rem; flex-shrink: 0; margin-top: 0.15rem; transition: transform 0.2s; }
.faq-a { font-size: 0.88rem; color: rgba(200,220,255,0.65); line-height: 1.65; display: none; padding-top: 0.3rem; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-chev { transform: rotate(180deg); }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.related-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(147,197,253,0.1); border-radius: 14px; padding: 0.9rem 1rem; text-decoration: none; display: flex; align-items: center; gap: 0.7rem; transition: background 0.15s; }
.related-card:hover { background: rgba(255,255,255,0.08); }
.related-card .rel-icon { font-size: 1.5rem; flex-shrink: 0; }
.related-card .rel-title { font-family: Manrope, sans-serif; font-weight: 700; font-size: 0.82rem; color: #e8f0fe; }
.related-card .rel-sub { font-size: 0.72rem; color: rgba(148,185,255,0.5); margin-top: 0.1rem; }
.lp-cta-section { text-align: center; background: rgba(30,102,255,0.08); border: 1px solid rgba(30,102,255,0.2); border-radius: 20px; padding: 2rem 1.5rem; margin-top: 2.5rem; }
.lp-cta-section h2 { font-family: Manrope, sans-serif; font-size: 1.2rem; font-weight: 800; color: #fff; margin: 0 0 0.5rem; }
.lp-cta-section p { font-size: 0.88rem; color: rgba(148,185,255,0.65); margin: 0 0 1.2rem; }
.lp-meta { font-size: 0.72rem; color: rgba(147,197,253,0.4); text-align: right; margin-top: 2rem; font-family: 'Inter', sans-serif; letter-spacing: 0.02em; }
@media (max-width: 480px) {
  .conditions-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .lp-cta-btn { white-space: nowrap; font-size: 0.85rem; padding: 0.8rem 1.5rem; }
}
@media (max-width: 600px) {
  .wtag { white-space: normal; }
  .wind-table { font-size: 0.8rem; }
  .wind-table th, .wind-table td { padding: 0.5rem 0.45rem; }
}
body.light .cond-card { background: white; border-color: rgba(37,99,235,0.1); }
body.light .content-card { background: var(--wfi-light-card); border-color: var(--wfi-light-border); box-shadow: 0 2px 12px rgba(0,0,0,0.07); }
body.light .cond-value { color: #0f2744; }
body.light .cond-desc { color: #3d5670; }
body.light .wind-table td { color: #0f2744; }
body.light .wind-table th { color: #3d5670; }
body.light .wind-table td { border-bottom-color: rgba(37,99,235,0.06); }
body.light .wtag-good    { background: rgba(22,163,74,0.12);  color: #065f46; }
body.light .wtag-caution { background: rgba(217,119,6,0.12);  color: #92400e; }
body.light .wtag-danger  { background: rgba(220,38,38,0.12);  color: #991b1b; }
body.light .faq-q { color: #0f2744; }
body.light .faq-a { color: #3d5670; }
body.light .faq-item { border-bottom-color: rgba(37,99,235,0.08); }
body.light .related-card { background: white; border-color: rgba(37,99,235,0.1); }
body.light .related-card:hover { background: var(--wfi-light-hover-surface); }
body.light .rel-title { color: #0f2744; }
body.light .related-card .rel-sub { color: #3d5670; }
body.light .lp-cta-section { background: rgba(30,102,255,0.05); border-color: rgba(30,102,255,0.15); }
body.light .lp-section p { color: #2d4a6a; }
body.light .lp-hero p { color: #3d5670; }
body.light .lp-meta { color: #3d5670; }

.hidden { display: none !important; }

/* ── TASK-005 Pattern 1 — time-aware school-run card + inline editor ── */
/* max-width centres the engine card inside the 3-column .rank-detail grid
   on desktop. With cards.length === 1 the right two grid tracks are empty;
   without max-width the card sits in the leftmost third with whitespace
   beside it, which reads as broken layout. 540px keeps it readable on
   wide screens; on mobile the parent column is already <540px so the
   max-width is a no-op. */
.taw-card { display: flex; flex-direction: column; gap: 0.5rem; max-width: 540px; margin: 0 auto; width: 100%; }
/* Tighter verdict size in the engine card. Global .verdict is clamp(1.8rem,
   5.5vw, 2.6rem), designed for short strings (5-15 chars) used by other
   personas. Engine headlines are 16-22 chars and dominate at the global
   size, especially in the expanded single-card view. Override sits a
   tier below — closer to a section title than a hero. */
.taw-card .verdict { font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.15; }
.taw-overnight-ctx { display: flex; align-items: center; gap: 0.45rem; font-size: 0.78rem; color: rgba(200,220,255,0.78); background: rgba(147,197,253,0.06); border: 1px solid rgba(147,197,253,0.1); border-radius: 8px; padding: 0.5rem 0.7rem; margin: 0 0 0.6rem; }
.taw-overnight-ctx .taw-ctx-icon { font-size: 0.95rem; flex-shrink: 0; }
body.light .taw-overnight-ctx { background: rgba(30,102,255,0.05); border-color: rgba(30,102,255,0.12); color: #3d5670; }
/* Single-card .rank-detail grid override. Global desktop rule (>=768px)
   sets grid-template-columns: 1fr 1fr 1fr; .taw-card with max-width 540px
   only centres WITHIN the leftmost cell, leaving the right two-thirds
   empty. Marker class on .rank-detail (added in makeRankCard when
   cards.length === 1) collapses the grid to a single ≤540px column,
   centred horizontally in the row. */
@media (min-width: 768px) {
  .rank-card.expanded .rank-detail.rank-detail--single { grid-template-columns: minmax(0, 540px); justify-content: center; }
}
.taw-card .v-sub { color: rgba(148,185,255,0.6); font-size: 0.78rem; margin: 0 0 0.4rem; }
.taw-pending { display: flex; align-items: center; gap: 0.7rem; background: rgba(147,197,253,0.06); border: 1px solid rgba(147,197,253,0.12); border-radius: 12px; padding: 0.7rem 0.85rem; }
.taw-pending-icon { font-size: 1.4rem; flex-shrink: 0; }
.taw-pending-title { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 0.88rem; color: #e8f0fe; }
.taw-pending-sub { font-size: 0.78rem; color: rgba(200,220,255,0.6); margin-top: 0.15rem; line-height: 1.45; }
.taw-preview-line { font-size: 0.78rem; color: rgba(200,220,255,0.6); margin: 0.1rem 0; }
.taw-preview-line .taw-preview-label { color: rgba(147,197,253,0.5); font-weight: 600; margin-right: 0.3rem; }
/* TASK-008 done footer — quiet acknowledgement of the completed trip, sits
   below the why text and above the preview / edit-times. Independent of
   weather data: still renders when active anchor is beyond_wx_horizon. */
.taw-done-footer { font-size: 0.78rem; font-style: italic; color: rgba(200,220,255,0.55); margin: 0.3rem 0 0.1rem; }
/* TASK-007 draft-restore toast — non-blocking notification at the top of
   the engine card after a draft is auto-restored. Fades in via the
   --visible modifier, auto-dismisses after 5s. */
.taw-toast { background: rgba(59,130,246,0.18); border: 1px solid rgba(147,197,253,0.35); border-radius: 10px; padding: 0.55rem 0.8rem; color: #cfe2ff; font-size: 0.82rem; margin: 0 0 0.65rem; opacity: 0; transform: translateY(-4px); transition: opacity 0.3s ease, transform 0.3s ease; }
.taw-toast.taw-toast--visible { opacity: 1; transform: translateY(0); }
body.light .taw-toast { background: rgba(37,99,235,0.08); border-color: rgba(37,99,235,0.3); color: #1d4ed8; }
.taw-edit-btn { align-self: flex-start; background: rgba(255,255,255,0.06); border: 1px solid rgba(147,197,253,0.18); border-radius: 50px; color: rgba(200,220,255,0.85); font-size: 0.78rem; font-family: 'Inter', sans-serif; padding: 0.4rem 0.85rem; cursor: pointer; transition: background 0.15s, color 0.15s; margin-top: 0.3rem; }
.taw-edit-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* Inline editor — hidden by default; shown when card has data-editing="true" */
.taw-editor { display: none; margin-top: 0.6rem; padding: 0.85rem 0.95rem; background: rgba(13,30,53,0.6); border: 1px solid rgba(147,197,253,0.18); border-radius: 12px; }
.taw-card[data-editing="true"] .taw-editor { display: block; }
.taw-card[data-editing="true"] .taw-edit-btn { display: none; }
.taw-editor-row { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.7rem; }
.taw-editor-row-col { flex-direction: column; align-items: stretch; gap: 0.4rem; }
.taw-editor-row label { font-size: 0.8rem; color: rgba(200,220,255,0.75); min-width: 6rem; font-family: 'Inter', sans-serif; }
.taw-editor-row input[type="time"] { background: rgba(0,0,0,0.3); border: 1px solid rgba(147,197,253,0.25); border-radius: 8px; padding: 0.4rem 0.6rem; color: #e8f0fe; font-family: 'Inter', sans-serif; font-size: 0.9rem; color-scheme: dark; }
.taw-day-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.taw-day-chip { background: rgba(255,255,255,0.04); border: 1px solid rgba(147,197,253,0.18); border-radius: 50px; color: rgba(200,220,255,0.6); font-size: 0.74rem; font-family: 'Inter', sans-serif; font-weight: 600; padding: 0.32rem 0.65rem; cursor: pointer; transition: all 0.12s; }
.taw-day-chip:hover { background: rgba(255,255,255,0.1); color: #e8f0fe; }
.taw-day-chip.active { background: rgba(30,102,255,0.25); border-color: rgba(30,102,255,0.5); color: #cfe1ff; }
/* Skip-dates section (school holidays, INSET, etc). */
.taw-skip-input-row { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.taw-skip-input-row input[type="date"] { background: rgba(0,0,0,0.3); border: 1px solid rgba(147,197,253,0.25); border-radius: 8px; padding: 0.35rem 0.55rem; color: #e8f0fe; font-family: 'Inter', sans-serif; font-size: 0.85rem; color-scheme: dark; flex: 0 1 auto; min-width: 0; }
.taw-skip-add-btn { background: rgba(30,102,255,0.18); border: 1px solid rgba(30,102,255,0.4); color: #cfe1ff; font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 600; padding: 0.4rem 0.8rem; border-radius: 50px; cursor: pointer; transition: all 0.12s; }
.taw-skip-add-btn:hover { background: rgba(30,102,255,0.3); border-color: rgba(30,102,255,0.55); }
/* Max-height + internal scroll so a user diligently logging 30+ holidays
   doesn't grow the editor into a tall wall. 200px = ~7-8 visible pills. */
.taw-skip-pills { display: flex; flex-direction: column; gap: 0.3rem; max-height: 200px; overflow-y: auto; margin-top: 0.45rem; }
.taw-skip-pills:empty { margin-top: 0; }
.taw-skip-pill { background: rgba(255,255,255,0.04); border: 1px solid rgba(147,197,253,0.18); color: rgba(200,220,255,0.78); font-family: 'Inter', sans-serif; font-size: 0.78rem; padding: 0.35rem 0.65rem; border-radius: 8px; cursor: pointer; text-align: left; transition: all 0.12s; display: flex; align-items: center; gap: 0.4rem; }
.taw-skip-pill:hover { background: rgba(248,113,113,0.12); border-color: rgba(248,113,113,0.35); color: #fca5a5; }
.taw-skip-x { color: rgba(248,113,113,0.7); font-weight: 700; font-size: 0.95rem; line-height: 1; }
.taw-skip-pill:hover .taw-skip-x { color: #fca5a5; }
.taw-toggle { position: relative; display: inline-block; width: 38px; height: 22px; }
.taw-toggle input { opacity: 0; width: 0; height: 0; }
.taw-toggle-slider { position: absolute; cursor: pointer; inset: 0; background: rgba(255,255,255,0.08); border: 1px solid rgba(147,197,253,0.18); border-radius: 22px; transition: background 0.15s; }
.taw-toggle-slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; top: 50%; transform: translateY(-50%); background: rgba(200,220,255,0.85); border-radius: 50%; transition: transform 0.15s, background 0.15s; }
.taw-toggle input:checked + .taw-toggle-slider { background: rgba(30,102,255,0.45); border-color: rgba(30,102,255,0.7); }
.taw-toggle input:checked + .taw-toggle-slider:before { transform: translateY(-50%) translateX(16px); background: #fff; }
.taw-editor-error { color: #fca5a5; font-size: 0.78rem; margin-bottom: 0.5rem; }
.taw-editor-actions { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 0.4rem; }
.taw-cancel-btn, .taw-save-btn { font-family: 'Inter', sans-serif; font-size: 0.82rem; font-weight: 600; padding: 0.45rem 1rem; border-radius: 8px; cursor: pointer; transition: all 0.12s; }
.taw-cancel-btn { background: transparent; border: 1px solid rgba(147,197,253,0.25); color: rgba(200,220,255,0.7); }
.taw-cancel-btn:hover { background: rgba(255,255,255,0.05); color: #e8f0fe; }
.taw-save-btn { background: #1E66FF; border: 1px solid #1E66FF; color: #fff; }
.taw-save-btn:hover { background: #1a55d4; }
.taw-save-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Light theme overrides */
body.light .taw-pending { background: rgba(30,102,255,0.05); border-color: rgba(30,102,255,0.18); }
body.light .taw-pending-title { color: #0f2744; }
body.light .taw-pending-sub { color: #3d5670; }
body.light .taw-preview-line { color: #3d5670; }
body.light .taw-preview-line .taw-preview-label { color: #3d5670; }
body.light .taw-done-footer { color: #3d5670; }
body.light .taw-edit-btn { background: white; border-color: rgba(37,99,235,0.18); color: #1e3a5f; }
body.light .taw-edit-btn:hover { background: var(--wfi-light-hover-surface); color: #0d1b3d; }
body.light .taw-editor { background: white; border-color: rgba(37,99,235,0.15); }
body.light .taw-editor-row label { color: #1e3a5f; }
body.light .taw-editor-row input[type="time"] { background: var(--wfi-light-card-soft); border-color: rgba(37,99,235,0.2); color: #0d1b3d; color-scheme: light; }
body.light .taw-day-chip { background: var(--wfi-light-card-soft); border-color: rgba(37,99,235,0.18); color: #3d5670; }
body.light .taw-day-chip:hover { background: var(--wfi-light-accent-bg); color: #1e3a5f; }
body.light .taw-day-chip.active { background: rgba(30,102,255,0.15); border-color: rgba(30,102,255,0.5); color: #1d4ed8; }
body.light .taw-skip-input-row input[type="date"] { background: var(--wfi-light-card-soft); border-color: rgba(37,99,235,0.2); color: #0d1b3d; color-scheme: light; }
body.light .taw-skip-add-btn { background: rgba(30,102,255,0.1); border-color: rgba(30,102,255,0.3); color: #1d4ed8; }
body.light .taw-skip-add-btn:hover { background: rgba(30,102,255,0.18); border-color: rgba(30,102,255,0.45); }
body.light .taw-skip-pill { background: white; border-color: rgba(37,99,235,0.18); color: #3d5670; }
body.light .taw-skip-pill:hover { background: #fff5f5; border-color: rgba(220,38,38,0.3); color: #b91c1c; }
body.light .taw-skip-x { color: rgba(220,38,38,0.7); }
body.light .taw-skip-pill:hover .taw-skip-x { color: #b91c1c; }
body.light .taw-toggle-slider { background: rgba(37,99,235,0.12); border-color: rgba(37,99,235,0.2); }
body.light .taw-toggle-slider:before { background: #fff; }
body.light .taw-cancel-btn { border-color: rgba(37,99,235,0.25); color: #3d5670; }
body.light .taw-cancel-btn:hover { background: var(--wfi-light-hover-surface); color: #0d1b3d; }
