/* L!FE by Cloud Nine. Brand: raspberry #E43675, orange #FF5900, pale pink #FAA4BB, peach #F4D7C7 (sparingly),
   red #FF0000 (rarely). Gold is always a metallic material, never a flat fill.
   Display font: Beauty Luxury is the brand font; Cormorant Garamond is a STAND-IN until the licensed file is added. */
:root {
  --raspberry: #E43675;
  --orange: #FF5900;
  --pink: #FAA4BB;
  --peach: #F4D7C7;
  --red: #FF0000;
  --ink: #2a1b22;
  --ink-soft: #6d5a63;
  --line: rgba(42, 27, 34, 0.08);
  --paper: #fffdfc;
  --card: #ffffff;
  --sky: linear-gradient(180deg, #fdf7f8 0%, #fff 40%, #fff8f3 100%);
  --gold: linear-gradient(115deg, #6b4a12 0%, #b8862b 14%, #f3d77d 26%, #fff6cf 33%, #d4a645 42%, #8c6420 52%, #c99a3a 63%, #fbe8a6 74%, #fffbe6 79%, #b4862f 88%, #6b4a12 100%);
  --display: 'Beauty Luxury', 'Cormorant Garamond', 'Times New Roman', serif;
  --body: 'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(120, 40, 70, 0.08), 0 2px 6px rgba(120, 40, 70, 0.05);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--body); font-weight: 300; color: var(--ink); background: var(--sky);
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--raspberry); }

#app { max-width: 480px; margin: 0 auto; min-height: 100%; padding: 18px 18px calc(110px + var(--safe-b)); position: relative; }

/* Metallic gold: a moving sheen over a many-stop gradient reads as real foil rather than a flat color. */
.gold-text {
  background: var(--gold); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 6s ease-in-out infinite;
  filter: drop-shadow(0 1px 0 rgba(107, 74, 18, 0.25));
}
.gold-fill { background: var(--gold); background-size: 220% 100%; animation: sheen 6s ease-in-out infinite; }
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: 0.01em; margin: 0; }
.eyebrow { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.muted { color: var(--ink-soft); }
.small { font-size: 13px; }

/* Header */
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-size: 20px; color: #fff; padding: 2px;
}
.avatar span { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: var(--raspberry); }
.wordmark { font-family: var(--display); font-size: 22px; text-align: right; line-height: 1; }
.wordmark small { display: block; font-family: var(--body); font-size: 9px; letter-spacing: 0.3em; color: var(--ink-soft); margin-top: 4px; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px; position: relative; overflow: hidden; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }

/* Aura Miles hero */
.hero { text-align: center; padding: 22px 18px 20px; }
.hero .miles { font-family: var(--display); font-size: 54px; line-height: 1; margin: 8px 0 4px; font-weight: 600; }
.hero .tier { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--raspberry); font-weight: 700; }
.tierbar { height: 6px; border-radius: 6px; background: #f6e9ee; margin: 14px 8px 6px; overflow: hidden; }
.tierbar i { display: block; height: 100%; border-radius: 6px; }
.hero .row { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-soft); margin: 0 8px; }

/* Captain message */
.captain { text-align: center; padding: 26px 22px; background: radial-gradient(120% 90% at 50% 0%, #fff 0%, #fff7f9 60%, #fdeef2 100%); }
.captain blockquote { font-family: var(--display); font-size: 27px; line-height: 1.25; margin: 12px 0 14px; }
.captain .actions { display: flex; gap: 10px; justify-content: center; }

/* North Star */
.northstar { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; }
.ring { position: relative; width: 92px; height: 92px; }
.ring svg { transform: rotate(-90deg); }
.ring .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .center b { font-family: var(--display); font-size: 30px; font-weight: 600; line-height: 1; display: block; }
.ring .center small { font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.northstar h3 { font-size: 22px; margin: 2px 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.chip { font-size: 11px; padding: 4px 9px; border-radius: 99px; background: #fbf1f4; color: var(--ink-soft); font-weight: 600; }
.chip.on { background: var(--raspberry); color: #fff; }

/* Quest dials */
.dials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dial { text-align: center; padding: 10px 4px 12px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.dial svg { display: block; margin: 0 auto; }
.dial .name { font-family: var(--display); font-size: 18px; margin-top: 2px; }
.dial .pct { font-size: 11px; color: var(--ink-soft); font-weight: 600; letter-spacing: 0.08em; }
.dial.empty { opacity: 0.5; box-shadow: none; border: 1px dashed var(--line); }

/* Cloud climb */
.climb { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 14px 18px; }
.climb .stop { text-align: center; flex: 0 0 auto; }
.climb .stop b { display: block; font-family: var(--display); font-size: 22px; }
.climb .stop small { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.climb .stop.reached b { color: var(--raspberry); }
.climb .path { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--pink) 0 6px, transparent 6px 12px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 99px; font-weight: 700; font-size: 14px; letter-spacing: 0.03em; }
.btn.primary { background: linear-gradient(135deg, var(--raspberry), #ff4f6b 55%, var(--orange)); color: #fff; box-shadow: 0 8px 20px rgba(228, 54, 117, 0.3); }
.btn.ghost { background: #fbf1f4; color: var(--raspberry); }
.btn.gold { color: #3c2a08; box-shadow: 0 6px 18px rgba(140, 100, 32, 0.35); }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn:active:not(:disabled) { transform: scale(0.97); }
.link { color: var(--raspberry); font-weight: 600; font-size: 13px; }

/* Quick log button */
.fab {
  position: fixed; right: max(18px, calc(50% - 240px + 18px)); bottom: calc(22px + var(--safe-b));
  width: 74px; height: 74px; border-radius: 50%; color: #3c2a08; font-family: var(--display); font-size: 17px; font-weight: 700;
  box-shadow: 0 12px 28px rgba(140, 100, 32, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.7); z-index: 20;
}
.fab span { display: block; font-family: var(--body); font-size: 9px; letter-spacing: 0.2em; font-weight: 700; }

/* Bottom sheet */
.sheet-bg { position: fixed; inset: 0; background: rgba(42, 27, 34, 0.35); z-index: 40; animation: fadein 0.2s; }
.sheet {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 480px; max-height: 92vh; overflow: auto;
  background: var(--paper); border-radius: 28px 28px 0 0; padding: 22px 20px calc(24px + var(--safe-b)); z-index: 41; animation: up 0.28s cubic-bezier(.2, .9, .3, 1);
}
.sheet h2 { font-size: 30px; margin-bottom: 4px; }
@keyframes up { from { transform: translate(-50%, 100%); } }
@keyframes fadein { from { opacity: 0; } }

label.field { display: block; margin: 14px 0; }
label.field > span { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], textarea {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 13px 14px; font-size: 16px; font-weight: 400; outline: none;
}
input:focus, textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(250, 164, 187, 0.3); }
textarea { resize: none; min-height: 70px; }

.rate { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.rate button { padding: 12px 0; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 16px; }
.rate button.on { background: var(--raspberry); color: #fff; border-color: transparent; }
.rate-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-soft); margin-top: 4px; }

.preview { text-align: center; margin: 16px 0 6px; min-height: 48px; }
.preview .n { font-family: var(--display); font-size: 34px; font-weight: 600; }
.tier-tag { display: inline-block; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 800; padding: 3px 10px; border-radius: 99px; margin-left: 6px; vertical-align: middle; }
.tier-tag.micro { background: #fbf1f4; color: var(--raspberry); }
.tier-tag.macro { background: var(--raspberry); color: #fff; }
.tier-tag.mega { color: #3c2a08; }

/* Celebration */
.celebrate { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; pointer-events: none; }
.celebrate .burst { text-align: center; animation: pop 0.5s cubic-bezier(.2, 1.4, .4, 1); }
.celebrate .burst .n { font-family: var(--display); font-size: 64px; font-weight: 700; line-height: 1; }
.celebrate .burst .t { font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 800; color: var(--raspberry); margin-top: 6px; }
.celebrate canvas { position: absolute; inset: 0; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }

/* Auth */
.auth { min-height: calc(100vh - 40px); display: flex; flex-direction: column; justify-content: center; }
.auth h1 { font-size: 46px; text-align: center; line-height: 1; }
.auth .tag { text-align: center; margin: 10px 0 26px; }
.tabs { display: flex; background: #fbf1f4; border-radius: 99px; padding: 4px; margin-bottom: 8px; }
.tabs button { flex: 1; padding: 10px; border-radius: 99px; font-weight: 700; font-size: 13px; color: var(--ink-soft); }
.tabs button.on { background: #fff; color: var(--raspberry); box-shadow: var(--shadow); }
.msg { padding: 12px 14px; border-radius: 14px; font-size: 14px; margin: 10px 0; }
.msg.err { background: #fff0f0; color: #b3123b; }
.msg.ok { background: #f2fbf5; color: #1f6b3a; }

/* Clouds overlay */
.clouds { position: fixed; inset: 0; z-index: 100; touch-action: none; outline: none; cursor: grab; }
.clouds canvas { display: block; }
.clouds.fade { transition: opacity 0.6s; opacity: 0; }
.clouds-hint { position: absolute; left: 0; right: 0; bottom: calc(46px + var(--safe-b)); text-align: center; pointer-events: none; transition: opacity 0.4s; }
.clouds-hint span { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: #7d6b74; font-weight: 700; animation: breathe 2.8s ease-in-out infinite; }
.clouds-hint.gone { opacity: 0; }
@keyframes breathe { 50% { opacity: 0.45; } }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--pink); flex: 0 0 auto; display: grid; place-items: center; color: #fff; font-size: 14px; }
.check.done { background: var(--raspberry); border-color: var(--raspberry); }
.grow { flex: 1; min-width: 0; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); font-weight: 600; font-size: 13px; margin-bottom: 10px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 20px 4px 10px; }
.section-title h2 { font-size: 24px; }
.center { text-align: center; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #f6e9ee; border-top-color: var(--raspberry); animation: spin 0.8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(110px + var(--safe-b)); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 99px; font-size: 14px; z-index: 80; animation: fadein 0.2s; max-width: 90vw; text-align: center; }
.steps { display: flex; gap: 6px; justify-content: center; margin: 4px 0 14px; }
.steps i { width: 26px; height: 4px; border-radius: 4px; background: #f3dde4; }
.steps i.on { background: var(--raspberry); }
.count-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.count-pick button { padding: 18px 0; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.count-pick button b { display: block; font-family: var(--display); font-size: 36px; }
.count-pick button.on { border-color: var(--raspberry); box-shadow: 0 0 0 3px rgba(228, 54, 117, 0.18); }
.mute { position: absolute; top: 0; right: 0; font-size: 12px; color: var(--ink-soft); padding: 6px; }

/* Co-Pilot (Ava) */
.ava-entry { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 18px; }
.ava-entry b { display: block; font-family: var(--display); font-size: 22px; font-weight: 600; }
.ava-orb { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 0 4px #fff, 0 0 18px rgba(212, 166, 69, 0.55); }
.copilot { display: flex; flex-direction: column; min-height: calc(100vh - 40px); }
.cp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cp-name { display: flex; align-items: center; gap: 10px; }
.cp-name .ava-orb { width: 30px; height: 30px; box-shadow: 0 0 0 3px #fff, 0 0 12px rgba(212, 166, 69, 0.5); }
.cp-name b { font-family: var(--display); font-size: 24px; }
.cp-name small { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.cp-metrics { padding: 12px 14px; position: sticky; top: 8px; z-index: 5; }
.metrics { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; }
.metrics div { flex: 0 0 auto; text-align: center; }
.metrics b { display: block; font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.1; }
.metrics small { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.allowance { margin-top: 10px; font-size: 11px; color: var(--ink-soft); }
.allowance i { display: block; height: 4px; border-radius: 4px; background: #f6e9ee; margin-top: 4px; overflow: hidden; }
.allowance em { display: block; height: 100%; background: linear-gradient(90deg, var(--raspberry), var(--orange)); }
.chat { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 6px 2px 16px; }
.bubble { max-width: 84%; padding: 11px 15px; border-radius: 20px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; font-weight: 400; }
.bubble.ava { align-self: flex-start; background: #fff; box-shadow: var(--shadow); border-bottom-left-radius: 6px; }
.bubble.me { align-self: flex-end; background: linear-gradient(135deg, var(--raspberry), #ff4f6b); color: #fff; border-bottom-right-radius: 6px; }
.bubble.typing { color: var(--ink-soft); animation: breathe 1.2s ease-in-out infinite; }
.confirm { align-self: stretch; background: #fff; border: 1px solid rgba(212, 166, 69, 0.45); border-radius: 20px; padding: 14px 16px; box-shadow: var(--shadow); }
.confirm b { display: block; font-family: var(--display); font-size: 21px; margin: 4px 0; }
.confirm .row { display: flex; gap: 8px; margin-top: 12px; }
.confirm .row .btn { flex: 1; }
.composer { position: sticky; bottom: 0; display: flex; gap: 8px; align-items: flex-end; padding: 10px 0 calc(10px + var(--safe-b)); background: linear-gradient(180deg, rgba(255, 253, 252, 0), var(--paper) 30%); }
.composer textarea { min-height: 48px; max-height: 140px; border-radius: 24px; padding: 13px 16px; }

/* Quick navigation on Home */
.quicknav { display: flex; gap: 8px; margin: -2px 0 14px; overflow-x: auto; scrollbar-width: none; }
.quicknav button { flex: 0 0 auto; padding: 8px 14px; border-radius: 99px; background: #fff; box-shadow: var(--shadow); font-size: 13px; font-weight: 700; color: var(--ink); }

/* Game Board */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; margin: 8px 0 16px; }
.podium-spot { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.podium-name { font-weight: 700; font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-val { font-family: var(--display); font-size: 22px; font-weight: 600; }
.podium-block { width: 100%; border-radius: 14px 14px 4px 4px; background: #f6e6ec; display: grid; place-items: center; font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--raspberry); }
.podium-block.gold-fill { color: #3c2a08; }
.p1 .podium-block { height: 120px; } .p2 .podium-block { height: 88px; } .p3 .podium-block { height: 66px; }
.podium-spot.empty .podium-block { opacity: 0.4; }
.rank { width: 26px; height: 26px; border-radius: 50%; background: #fbf1f4; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--raspberry); flex: 0 0 auto; }
.toggle { width: 22px; height: 22px; accent-color: var(--raspberry); flex: 0 0 auto; }

/* Vibe Check */
.attune { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.attune button { padding: 12px 6px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; }
.attune button.on { background: var(--raspberry); color: #fff; border-color: transparent; }
.vibe-score { font-family: var(--display); font-size: 64px; font-weight: 700; line-height: 1; margin-top: 6px; }
.slice-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; text-align: left; font-size: 13px; }
.slice-list li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 4px 0; }
.slice { padding: 14px; }
.slice-name { font-family: var(--display); font-size: 20px; margin-bottom: 8px; }
.ten { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.ten button { padding: 9px 0; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 13px; }
.ten button.on { background: var(--raspberry); color: #fff; border-color: transparent; }

/* Playbook */
.playbook h2 { font-size: 26px; margin-bottom: 6px; }
.playbook p, .playbook li { font-weight: 400; line-height: 1.55; }
.playbook ul { padding-left: 18px; }
table.pb { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 14px; }
table.pb th, table.pb td { text-align: left; padding: 7px 4px; border-bottom: 1px solid var(--line); }
table.pb th { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }

/* Batch 3: saved messages, North Star review, practices */
.captain .actions { gap: 18px; }
.captain.saved { text-align: left; padding: 18px 20px; }
.captain.saved blockquote { font-size: 22px; margin: 0 0 8px; }
.review { border: 1px solid rgba(212, 166, 69, 0.5); }
.review h3 { font-size: 24px; margin: 4px 0 6px; }
.review-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.practices-entry { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 18px; }
.practices-entry b { display: block; font-family: var(--display); font-size: 22px; font-weight: 600; }
.practice h3 { font-size: 22px; margin: 0 0 2px; }
.row-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }

/* Flight Crew and Brags */
.share-toggle { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 700; font-size: 14px; }
.brag p { margin: 6px 0 10px; font-weight: 400; }
.brag-head { display: flex; justify-content: space-between; align-items: baseline; }
.reacts { display: flex; gap: 6px; flex-wrap: wrap; }
.reacts button { padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: 16px; }
.reacts button.on { border-color: var(--raspberry); background: #fbf1f4; }
.reacts small { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.invite-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.join-row { display: flex; gap: 8px; margin-top: 12px; }
.invite-code { font-family: var(--display); font-size: 44px; font-weight: 700; letter-spacing: 0.12em; text-align: center; margin: 10px 0; }

/* Navigation Hub */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.steps li:last-child button { border-bottom: 0; }
.steps .num { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fbf1f4; font-weight: 700; color: var(--raspberry); }
.steps li.done .num { background: var(--gold); color: #fff; }
.steps li.done b { opacity: .7; }
.hubgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hubgrid button { text-align: left; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: #fff; font: inherit; color: inherit; cursor: pointer; }
.hubgrid b { display: block; }
.hubgrid span { font-size: 12px; color: var(--ink-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tag { font-size: 13px; padding: 5px 10px; border-radius: 99px; background: #fbf1f4; }
.tag.on { background: var(--raspberry); color: #fff; }
.tag button { background: none; border: 0; color: inherit; font-size: 15px; padding: 0 0 0 4px; cursor: pointer; }
.tags .chip { border: 0; cursor: pointer; font-size: 12px; padding: 6px 10px; }
.replace { background: #fdf8ec; border: 1px solid rgba(212, 166, 69, .4); border-radius: 12px; padding: 8px 12px; margin: 8px 0; max-height: 180px; overflow-y: auto; }
.replace p { margin: 4px 0; }
.id-card h3 { font-size: 26px; margin: 0; }
.id-card.alt { border: 1px solid rgba(212, 166, 69, .5); }
.mantra { font-family: 'Cormorant Garamond', serif; font-size: 20px; margin: 8px 0; }
.layer { margin-top: 8px; }
details summary { cursor: pointer; color: var(--raspberry); margin-top: 8px; }
select { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--line); font: inherit; background: #fff; }
.lore summary { list-style: none; }
.lore summary::-webkit-details-marker { display: none; }
.lore h3 { font-size: 22px; margin: 16px 0 4px; }
.lore ul { padding-left: 18px; }
.lore ol { padding-left: 20px; }
.lore ol li, .lore ul li { margin: 4px 0; }
.care { columns: 2; font-size: 14px; }
.gloss dt { font-weight: 700; margin-top: 8px; }
.gloss dd { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* Ava's voice */
.cp-voice { border: 1px solid rgba(94, 70, 82, 0.18); background: #fff; color: var(--ink-soft); border-radius: 999px; padding: 7px 12px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.cp-voice.on { color: #8a6a1f; border-color: rgba(212, 166, 69, 0.6); box-shadow: 0 0 10px rgba(212, 166, 69, 0.25); }
.mic { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--raspberry), #ff4f6b); box-shadow: 0 6px 16px rgba(228, 54, 117, 0.3); }
.mic.live { animation: micPulse 1.2s ease-in-out infinite; background: linear-gradient(135deg, #ff5900, var(--raspberry)); }
@keyframes micPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(228, 54, 117, 0.45); } 50% { box-shadow: 0 0 0 12px rgba(228, 54, 117, 0); } }
.ava-orb.speaking { animation: orbTalk 0.9s ease-in-out infinite; }
@keyframes orbTalk { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.bubble.note { font-size: 13px; color: var(--ink-soft); background: rgba(255, 255, 255, 0.7); box-shadow: none; font-style: italic; }
@media (prefers-reduced-motion: reduce) { .mic.live, .ava-orb.speaking { animation: none; } }
.vrow { gap: 8px; }
.vrow b { display: block; font-weight: 600; }
.vrow small { display: block; font-size: 11px; color: var(--ink-soft); letter-spacing: 0.08em; text-transform: uppercase; }
.vrow .btn { padding: 8px 12px; font-size: 13px; }
.vrow.picked b { color: #8a6a1f; }
