/* Creator Radar phone view. Mobile first, three themes (dark, light, pink) like the extension. */
:root {
  --bg: #0a0f1a; --surface: #121a2b; --surface-2: #1a2338; --border: #26314a;
  --text: #e8ecf6; --muted: #90a0bd; --faint: #5c6c8a;
  --accent: #5b8def; --accent-strong: #7ba4f5; --accent-soft: rgba(91, 141, 239, 0.14); --on-accent: #06101f;
  --good: #4ade80; --warn: #f2b84b; --bad: #f87171;
  --secondary: #2dd4bf; --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
:root[data-theme="light"] {
  --bg: #f4f6fb; --surface: #ffffff; --surface-2: #eef1f8; --border: #d8dfee;
  --text: #121a2b; --muted: #55627d; --faint: #8794ae;
  --accent: #2f6fe0; --accent-strong: #1f56b8; --accent-soft: rgba(47, 111, 224, 0.1); --on-accent: #ffffff; --secondary: #0d9488;
}
:root[data-theme="pink"] {
  --bg: #fdf1f6; --surface: #ffffff; --surface-2: #fbe3ee; --border: #f2c4d8;
  --text: #4a1230; --muted: #8a4a68; --faint: #b98aa3;
  --accent: #d6317f; --secondary: #d6317f; --accent-strong: #b01f64; --accent-soft: rgba(214, 49, 127, 0.1); --on-accent: #ffffff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.45; min-height: 100vh; padding-bottom: 5.2rem; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-strong); }

.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--border); padding: 0.7rem 1rem 0.6rem; }
.top-row { display: flex; align-items: center; gap: 0.6rem; }
.brand { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; margin-right: auto; }
.updated { font-size: 0.72rem; color: var(--faint); margin-top: 0.15rem; }
.icon-btn { min-width: 44px; min-height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-size: 1.1rem; }

.controls { display: grid; gap: 0.5rem; margin-top: 0.6rem; }
.search { width: 100%; min-height: 46px; padding: 0 0.9rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.search::placeholder { color: var(--faint); }
.row { display: flex; gap: 0.5rem; align-items: center; }
select.sort { min-height: 44px; padding: 0 0.7rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); flex: 1; min-width: 0; }
.count { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.chips { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.15rem; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; min-height: 36px; padding: 0 0.85rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 0.82rem; color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); font-weight: 600; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem; background: var(--surface-2); border-radius: 12px; padding: 0.25rem; }
.seg button { min-height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }

main { padding: 0.8rem 1rem 1rem; display: grid; gap: 0.6rem; }
.card { display: block; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.8rem 0.9rem; }
.card:active { background: var(--surface-2); }
.card-top { display: flex; gap: 0.7rem; align-items: flex-start; }
.card-name { font-weight: 650; font-size: 1rem; min-width: 0; overflow-wrap: anywhere; }
.card-sub { font-size: 0.8rem; color: var(--muted); margin-top: 0.1rem; overflow-wrap: anywhere; }
.score { flex: 0 0 auto; margin-left: auto; min-width: 2.6rem; text-align: center; border-radius: 10px; padding: 0.25rem 0.5rem; font-weight: 700; font-size: 0.95rem; }
.score.hi { background: rgba(74, 222, 128, 0.18); color: var(--good); }
.score.mid { background: rgba(242, 184, 75, 0.18); color: var(--warn); }
.score.lo { background: rgba(248, 113, 113, 0.18); color: var(--bad); }
:root[data-theme="light"] .score.hi, :root[data-theme="pink"] .score.hi { color: #15803d; }
:root[data-theme="light"] .score.mid, :root[data-theme="pink"] .score.mid { color: #a16207; }
:root[data-theme="light"] .score.lo, :root[data-theme="pink"] .score.lo { color: #b91c1c; }
.tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.55rem; }
.tag { font-size: 0.72rem; padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.tag.on { background: var(--accent-soft); color: var(--accent-strong); border-color: transparent; }
.excerpt { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }

.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
.nav button { min-height: 56px; border: 0; background: transparent; color: var(--muted); font-size: 0.7rem; padding: 0 0.1rem; display: grid; place-items: center; gap: 0.1rem; }
.nav button span.i { font-size: 1.25rem; line-height: 1; }
.nav button[aria-current="page"] { color: var(--accent-strong); font-weight: 700; }

.sheet-back { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, 0.55); display: flex; align-items: flex-end; justify-content: center; }
.sheet-back[hidden] { display: none; }
.sheet { width: 100%; max-width: 40rem; max-height: 88vh; overflow-y: auto; background: var(--surface); border-radius: 18px 18px 0 0; border: 1px solid var(--border); padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); }
.sheet-head { display: flex; gap: 0.6rem; align-items: flex-start; }
.sheet h2 { margin: 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.sheet .close { margin-left: auto; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 0.8rem 0; }
.fact { background: var(--surface-2); border-radius: 10px; padding: 0.5rem 0.65rem; }
.fact b { display: block; font-size: 1rem; }
.fact span { font-size: 0.72rem; color: var(--muted); }
.actions { display: grid; gap: 0.5rem; margin: 0.8rem 0; }
.btn { display: flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 48px; padding: 0 1rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); text-decoration: none; color: var(--text); font-weight: 600; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.transcript { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-2); border-radius: 12px; padding: 0.8rem; font-size: 0.92rem; max-height: 38vh; overflow-y: auto; margin: 0.4rem 0 0; }
.label { font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-top: 0.9rem; }
.toast { position: fixed; left: 50%; bottom: 6.2rem; transform: translateX(-50%); background: var(--good); color: #052e16; font-weight: 700; padding: 0.55rem 1rem; border-radius: 999px; z-index: 60; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.toast.show { opacity: 1; }

.msg { max-width: 30rem; margin: 18vh auto 0; padding: 0 1.25rem; text-align: center; }
.msg h1 { font-size: 1.3rem; margin: 0 0 0.5rem; }
.msg p { color: var(--muted); margin: 0.4rem 0; }
.foot { text-align: center; font-size: 0.72rem; color: var(--faint); padding: 0.5rem 1rem 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (min-width: 52rem) {
  main, .top, .foot { max-width: 46rem; margin-left: auto; margin-right: auto; }
  .nav { max-width: 46rem; left: 50%; right: auto; width: 100%; transform: translateX(-50%); border-radius: 14px 14px 0 0; border: 1px solid var(--border); }
}

/* thumbnails: small beside a card, wide at the top of a detail sheet; hidden if the picture fails to load */
.card.has-thumb { display: flex; gap: 0.75rem; align-items: flex-start; }
.card.has-thumb .card-body { min-width: 0; flex: 1; }
.thumb { flex: 0 0 auto; width: 64px; height: 88px; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.thumb.hero { display: block; width: 100%; height: auto; max-height: 38vh; object-fit: cover; margin: 0.7rem 0 0; border-radius: 12px; }

/* ---- Radar additions ---- */
.proto { background: var(--accent-soft); color: var(--accent-strong); font-size: 0.72rem; text-align: center; padding: 0.3rem 0.6rem; }
.nav { grid-template-columns: repeat(5, 1fr); }
.hello { margin: 0.2rem 0 0.1rem; font-size: 0.82rem; color: var(--muted); }
.section-h { margin: 0.6rem 0 0.1rem; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.sig { display: flex; gap: 0.4rem; align-items: flex-start; margin-top: 0.5rem; font-size: 0.84rem; }
.sig .dot { flex: 0 0 auto; font-size: 1rem; line-height: 1.2; }
.sig.new .why { color: var(--good); } .sig.ads .why { color: var(--warn); } .sig.money .why { color: var(--accent-strong); }
.pill { font-size: 0.7rem; padding: 0.12rem 0.5rem; border-radius: 999px; font-weight: 700; background: var(--accent-soft); color: var(--accent-strong); }
.pill.new { background: rgba(74, 222, 128, 0.18); color: var(--good); }
.pill.hot { background: rgba(242, 184, 75, 0.2); color: var(--warn); }
:root[data-theme="light"] .pill.new, :root[data-theme="pink"] .pill.new { color: #15803d; }
:root[data-theme="light"] .pill.hot, :root[data-theme="pink"] .pill.hot { color: #a16207; }
.big { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 1.1rem 1.1rem 1rem; }
.big h2 { margin: 0.2rem 0 0.1rem; font-size: 1.35rem; overflow-wrap: anywhere; }
.big .facts { margin: 0.9rem 0 0.4rem; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.9rem; }
.btn { min-height: 48px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); font-weight: 650; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.progress { font-size: 0.78rem; color: var(--muted); text-align: center; margin-top: 0.7rem; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem; display: grid; gap: 0.7rem; }
.panel h3 { margin: 0; font-size: 0.95rem; }
.panel p { margin: 0; font-size: 0.82rem; color: var(--muted); }
.toggle { display: flex; align-items: center; gap: 0.7rem; min-height: 44px; }
.toggle input { width: 22px; height: 22px; accent-color: var(--accent); }
.note { font-size: 0.74rem; color: var(--faint); }
.link-btn { background: none; border: 0; color: var(--accent-strong); text-decoration: underline; padding: 0; min-height: 36px; }
.mock-alert { position: fixed; top: 0.7rem; left: 50%; transform: translate(-50%, -150%); width: min(92vw, 24rem); z-index: 80; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 16px; padding: 0.7rem 0.9rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); transition: transform 0.3s ease; }
.mock-alert.show { transform: translate(-50%, 0); }
.mock-app { font-size: 0.72rem; color: var(--muted); display: flex; gap: 0.4rem; }
.mock-app span { margin-left: auto; }
.mock-title { font-weight: 700; margin-top: 0.25rem; }
.mock-body { font-size: 0.85rem; color: var(--muted); margin-top: 0.1rem; }

/* ---- polish pass ---- */
.brand { display: flex; align-items: center; gap: 0.5rem; background: linear-gradient(90deg, var(--accent-strong), var(--text)); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 1.2rem; font-weight: 800; }
.sweep { width: 1.35rem; height: 1.35rem; border-radius: 50%; border: 2px solid var(--secondary); position: relative; flex: 0 0 auto; background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%); }
.sweep::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, var(--secondary) 0deg, transparent 70deg); animation: spin 2.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 184, 75, 0.55); } 50% { box-shadow: 0 0 0 6px rgba(242, 184, 75, 0); } }
main > * { animation: rise 0.28s ease both; }
main > *:nth-child(2) { animation-delay: 0.04s; } main > *:nth-child(3) { animation-delay: 0.08s; } main > *:nth-child(4) { animation-delay: 0.12s; } main > *:nth-child(n+5) { animation-delay: 0.16s; }
.hero { background: linear-gradient(135deg, var(--accent-soft), transparent 70%); border: 1px solid var(--border); border-radius: 18px; padding: 0.9rem 1rem 0.7rem; }
.hero-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.hero-stats { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.stat { font-size: 0.8rem; padding: 0.25rem 0.65rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); }
.stat b { font-size: 1rem; color: var(--text); margin-right: 0.2rem; }
.stat.new { border-color: rgba(74, 222, 128, 0.5); } .stat.hot { border-color: rgba(242, 184, 75, 0.55); }
.hero .hello { margin-top: 0.55rem; }
.card { position: relative; border-left-width: 4px; transition: transform 0.12s ease, border-color 0.12s ease; }
.card:active { transform: scale(0.985); }
.card.acc-new { border-left-color: var(--good); } .card.acc-ads { border-left-color: var(--warn); } .card.acc-money { border-left-color: var(--accent); }
.flame { margin-left: auto; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; padding: 0.12rem 0.45rem; border-radius: 999px; background: var(--warn); color: #3a2600; animation: pulse 1.8s ease-out infinite; }
.big { background: linear-gradient(160deg, var(--surface-2), var(--surface) 55%); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28); touch-action: pan-y; cursor: grab; user-select: none; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.big.lean-save { box-shadow: 0 0 0 3px var(--good), 0 14px 36px rgba(0, 0, 0, 0.28); }
.big.lean-skip { box-shadow: 0 0 0 3px var(--bad), 0 14px 36px rgba(0, 0, 0, 0.28); }
.big h2 { font-size: 1.6rem; letter-spacing: -0.02em; }
.btn.primary { box-shadow: 0 6px 18px var(--accent-soft); }
.progress::before { content: "Swipe right to save, left to skip. "; }
.empty-i { font-size: 2rem; margin-bottom: 0.4rem; }
@media (prefers-reduced-motion: reduce) { .sweep::after, .flame, main > * { animation: none; } }

/* ---- Home screen ---- */
.home-hi { padding: 0.2rem 0.1rem 0; }
.home-hello { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.home-sub { font-size: 0.85rem; color: var(--muted); margin-top: 0.1rem; }
.alert-card { display: block; width: 100%; text-align: left; background: linear-gradient(135deg, rgba(242, 184, 75, 0.2), var(--surface) 70%); border: 1px solid rgba(242, 184, 75, 0.55); border-radius: 18px; padding: 0.9rem 1rem; box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22); }
.alert-top { display: flex; align-items: center; gap: 0.6rem; }
.alert-badge { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--warn); margin-right: auto; }
:root[data-theme="light"] .alert-badge, :root[data-theme="pink"] .alert-badge { color: #a16207; }
.alert-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 0.4rem; overflow-wrap: anywhere; }
.alert-why { margin-top: 0.3rem; font-size: 0.92rem; }
.alert-meta { margin-top: 0.4rem; font-size: 0.78rem; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0.6rem 0.2rem; text-align: center; }
.tile b { display: block; font-size: 1.35rem; letter-spacing: -0.02em; }
.tile span { font-size: 0.66rem; color: var(--muted); }
.strip { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.1rem 0 0.4rem; scroll-snap-type: x proximity; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.mini { flex: 0 0 9.2rem; scroll-snap-align: start; text-align: left; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--good); border-radius: 14px; padding: 0.65rem 0.7rem; }
.mini-name { font-weight: 700; font-size: 0.95rem; overflow-wrap: anywhere; }
.mini-sub { font-size: 0.72rem; color: var(--muted); margin-top: 0.1rem; }
.mini-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.3rem; margin-top: 0.5rem; font-size: 0.68rem; color: var(--muted); }
.shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.short { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0.7rem 0.3rem; text-align: center; }
.short b { display: block; font-size: 1.25rem; color: var(--accent-strong); }
.short span { font-size: 0.68rem; color: var(--muted); }

/* Ask Radar preview */
.chat { display: grid; gap: 0.5rem; margin-bottom: 0.8rem; }
.bub { max-width: 92%; padding: 0.6rem 0.8rem; border-radius: 16px; font-size: 0.9rem; line-height: 1.4; }
.bub.me { justify-self: end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 4px; font-weight: 600; }
.bub.bot { justify-self: start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.bub.typing { display: flex; gap: 0.3rem; padding: 0.8rem 0.9rem; }
.bub.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: blink 1s infinite; }
.bub.typing span:nth-child(2) { animation-delay: .15s; } .bub.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.ask-brand { display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 0.6rem; width: 100%; text-align: left; margin-top: 0.5rem; padding: 0.55rem 0.65rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); }
.ask-bn { font-weight: 700; } .ask-why { grid-column: 1 / -1; font-size: 0.78rem; color: var(--muted); } .ask-brand .score { grid-row: 1; grid-column: 2; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.7rem; }
.ask-in { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; }
.ask-in input { min-height: 46px; padding: 0 0.9rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.ask-in .btn { min-height: 46px; padding: 0 1.1rem; border-radius: 12px; border: 0; font-weight: 700; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
@media (prefers-reduced-motion: reduce) { .bub.typing span { animation: none; } }

.ask-fact { grid-column: 1 / -1; justify-self: start; margin-top: 0.15rem; font-size: 0.78rem; font-weight: 700; padding: 0.12rem 0.55rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); }

/* sign-in and subscription gate */
body.gated .nav, body.gated .controls { display: none; }
.gate { max-width: 26rem; margin: 3.5rem auto 0; padding: 0 0.4rem; display: grid; gap: 0.9rem; }
.gate-brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.25rem; }
.gate h2 { margin: 0; font-size: 1.5rem; }
.gate p { margin: 0; color: var(--muted); }
.gate form { display: grid; gap: 0.6rem; }
.gate input { min-height: 50px; padding: 0 1rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-size: 1.05rem; }
.gate input#gate-code { letter-spacing: 0.4rem; text-align: center; font-size: 1.4rem; font-weight: 700; }
.gate .btn { min-height: 50px; border-radius: 12px; font-weight: 700; text-align: center; text-decoration: none; display: flex; align-items: center; justify-content: center; }
.gate .btn[disabled] { opacity: 0.6; }
.gate-note { color: var(--warn) !important; }
.gate-fine, .gate-links { font-size: 0.85rem; color: var(--faint) !important; }
body.gated .proto, body.gated .updated, body.gated .gate-brand { display: none; }

/* ---- S.H.O.P. (pink accent on the Radar base; same layout, cards, sheets and nav) ---- */
:root { --accent: #f062aa; --accent-strong: #ff8cc6; --accent-soft: rgba(240, 98, 170, 0.14); --on-accent: #1a0612; --secondary: #f062aa; }
:root[data-theme="light"] { --accent: #c2287a; --accent-strong: #a01f64; --accent-soft: rgba(194, 40, 122, 0.1); --on-accent: #ffffff; --secondary: #c2287a; }
.nav { grid-template-columns: repeat(5, 1fr); }
.brand { display: flex; align-items: center; gap: 0.5rem; }
.brand img { width: 26px; height: 26px; border-radius: 7px; display: block; }
.seg.three { grid-template-columns: repeat(3, 1fr); }
.seg.four { grid-template-columns: repeat(4, 1fr); }
.seg.four button { padding: 0 0.2rem; font-size: 0.86rem; }
.formrow { display: grid; gap: 0.5rem; margin-top: 0.6rem; }
.formrow textarea, .formrow input, .formrow select { width: 100%; padding: 0.7rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; }
.formrow textarea { min-height: 130px; resize: vertical; }
.formrow label.check { display: flex; gap: 0.5rem; align-items: center; font-size: 0.92rem; }
.hook { font-weight: 650; font-size: 1.02rem; line-height: 1.35; overflow-wrap: anywhere; }
.kind { font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 700; color: var(--accent-strong); margin-bottom: 0.3rem; }
.lock { opacity: 0.75; }
.fine { font-size: 0.76rem; color: var(--faint); text-align: center; margin: 0.4rem 0 0; }
.list-row { display: flex; align-items: center; gap: 0.6rem; justify-content: space-between; padding: 0.5rem 0; border-top: 1px solid var(--border); }
.list-row:first-child { border-top: 0; }
.list-row span.n { min-width: 0; overflow-wrap: anywhere; }
.mini-x { min-width: 36px; min-height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); }
.addrow { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; margin-top: 0.4rem; }
.addrow input, .addrow select { min-height: 46px; padding: 0 0.8rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.steps { margin: 0.2rem 0 0; padding-left: 1.2rem; font-size: 0.86rem; color: var(--muted); display: grid; gap: 0.25rem; }
.linkbox { font-size: 0.8rem; word-break: break-all; background: var(--surface-2); border-radius: 10px; padding: 0.55rem 0.65rem; color: var(--muted); }
a.ask-brand { text-decoration: none; color: var(--text); }
a.ask-brand .ask-bn { color: var(--text); font-weight: 650; }
a.ask-brand .ask-why { color: var(--muted); }

/* Phones in full-screen (home screen) mode draw under the clock and battery; keep the header clear of them. */
.top { padding-top: calc(0.7rem + env(safe-area-inset-top, 0px)); }
.sheet-back .sheet { padding-top: 1rem; }

.rankno { flex: 0 0 auto; min-width: 2rem; text-align: center; font-weight: 800; color: var(--accent-strong); font-size: 0.95rem; padding-top: 0.1rem; }
.warnbox { background: var(--accent-soft); border-radius: 10px; padding: 0.55rem 0.7rem; font-size: 0.84rem; margin: 0.6rem 0; }

.nav button[data-tab="deals"] { font-size: 0.6rem; letter-spacing: -0.01em; white-space: nowrap; }

/* newest hooks (added in the last day and a half) stand out */
.card.fresh { border: 1.5px solid var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 6px 18px var(--accent-soft); }
.card.fresh .kind::before { content: "NEW \2022  "; color: var(--accent-strong); }

/* Prompt library (Coach tab) */
.prompt-text { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 0.6rem 0.7rem; font-size: 0.88rem; line-height: 1.45; margin: 0.4rem 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.prompt-text b { color: var(--accent-strong); font-weight: 600; }
/* Refer & earn: opens the affiliate sign-up page (added 2026-10-22) */
.refer-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.8rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 0.85rem; font-weight: 600; text-decoration: none; margin-right: 0.4rem; }
.refer-link:hover { border-color: var(--accent-strong); }
/* keep it on one line and never crowd the refresh and theme buttons (fits 375px phones; phones under 380px wide get the short "Earn") */
.refer-link { white-space: nowrap; flex: 0 0 auto; padding: 0 0.65rem; font-size: 0.8rem; margin-right: 0.4rem; }
.refer-short { display: none; }
@media (max-width: 380px) { .refer-long { display: none; } .refer-short { display: inline; } }
