/* VIVA — Cultive sua melhor versão */
:root {
  --forest: #1F3D2B; --forest-2: #2E5A3C; --forest-3: #16301F;
  --olive: #6B7F3A; --leaf: #A8C686; --leaf-soft: #DDE8C8;
  --beige: #E8DCC4; --cream: #FAF6EE; --paper: #FFFDF8;
  --gold: #C9A24B; --gold-soft: #F1E3B8;
  --ink: #1E2A22; --muted: #6F7A6F; --line: rgba(31, 61, 43, 0.1);
  --ok: #6FA046; --mid: #E7C766; --low: #E5A595; --none: #D9D6CC;
  --radius: 22px; --shadow: 0 10px 30px -12px rgba(31, 61, 43, 0.25);
  --serif: 'Cormorant Garamond', 'Cardo', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --nav-h: 74px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 16px; -webkit-font-smoothing: antialiased; }
body { overscroll-behavior-y: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: 0.2px; margin: 0; }
h1 { font-size: 2.1rem; line-height: 1.1; }
h2 { font-size: 1.65rem; line-height: 1.15; }
h3 { font-size: 1.3rem; }
p { line-height: 1.55; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.gold { color: var(--gold); }

#app { max-width: 520px; margin: 0 auto; min-height: 100%; position: relative; background: var(--cream); }
@media (min-width: 560px) { body { background: #E9E3D3; } #app { box-shadow: 0 0 60px rgba(0,0,0,0.12); } }

.screen { padding: calc(18px + var(--safe-t)) 20px calc(var(--nav-h) + 28px + var(--safe-b)); animation: fadeUp .45s ease both; }
.screen.full { padding-bottom: calc(30px + var(--safe-b)); }
.screen.flush { padding: 0 0 calc(var(--nav-h) + 28px + var(--safe-b)); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Botões */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; padding: 0 22px; border-radius: 18px; font-weight: 600; font-size: 1rem; letter-spacing: 0.4px; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: linear-gradient(180deg, var(--forest-2), var(--forest)); color: var(--cream); box-shadow: 0 12px 26px -10px rgba(31, 61, 43, 0.6); }
.btn-gold { background: linear-gradient(180deg, #D9B45E, #B98E33); color: #fff; box-shadow: 0 12px 24px -10px rgba(185, 142, 51, 0.7); }
.btn-ghost { background: rgba(31, 61, 43, 0.06); color: var(--forest); }
.btn-line { border: 1.5px solid var(--line); background: var(--paper); color: var(--forest); }
.btn-danger { background: #F6E3DE; color: #9B4A3A; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-sm { min-height: 44px; width: auto; padding: 0 16px; border-radius: 14px; font-size: .92rem; }
.row { display: flex; gap: 10px; align-items: center; }
.row > * { flex: 1; }
.stack > * + * { margin-top: 12px; }
.spacer { height: 18px; }
.link { color: var(--forest-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Cards */
.card { background: var(--paper); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,0.7); }
.card + .card { margin-top: 14px; }
.card-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-title h3 { font-size: 1.25rem; }
.eyebrow { font-size: .72rem; letter-spacing: 2.4px; text-transform: uppercase; color: var(--olive); font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: var(--leaf-soft); color: var(--forest); font-size: .85rem; font-weight: 500; margin: 0 6px 8px 0; }
.chip.neg { background: #F5E6DF; color: #8B4F3F; }
.chip.gold { background: var(--gold-soft); color: #7A5C17; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; background: rgba(250, 246, 238, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .82rem; font-weight: 600; color: var(--forest); }

/* Tela de boas-vindas */
.welcome { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; position: relative; overflow: hidden; background: var(--forest-3); color: var(--cream); }
.welcome canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.welcome .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,24,16,0.55) 0%, rgba(10,24,16,0) 34%, rgba(10,24,16,0) 52%, rgba(10,24,16,0.88) 82%); }
.welcome .top { position: relative; padding: calc(44px + var(--safe-t)) 28px 0; text-align: center; }
.welcome .bottom { position: relative; margin-top: auto; padding: 0 26px calc(32px + var(--safe-b)); text-align: center; }
.brand { font-family: var(--serif); font-size: 3.3rem; letter-spacing: 16px; font-weight: 600; margin-left: 16px; }
.slogan { font-size: .74rem; letter-spacing: 4.5px; text-transform: uppercase; color: #E2C67F; margin-top: 4px; }
.welcome .quote { font-family: var(--serif); font-size: 1.35rem; line-height: 1.4; margin-bottom: 26px; color: #F4EDDC; }
.logo-mark { width: 64px; height: 64px; margin: 0 auto 14px; display: block; }

/* Escolha das jornadas */
.journey-card { position: relative; display: flex; gap: 16px; align-items: center; width: 100%; text-align: left; padding: 16px; border-radius: 26px; background: var(--paper); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; transition: transform .2s; }
.journey-card:active { transform: scale(0.985); }
.journey-card .art { flex: 0 0 96px; height: 116px; border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, #DCEBDD, #F5F0E3); }
.journey-card .art svg { width: 100%; height: 100%; display: block; }
.journey-card h3 { font-size: 1.45rem; margin-bottom: 4px; }
.journey-card p { font-size: .9rem; color: var(--muted); }
.journey-card .go { position: absolute; right: 14px; top: 14px; color: var(--gold); font-size: 1.1rem; }

/* Formulários */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--forest); margin-bottom: 7px; }
.input { width: 100%; min-height: 54px; padding: 0 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper); font-size: 1rem; outline: none; transition: border .2s, box-shadow .2s; }
textarea.input { padding: 14px 16px; min-height: 90px; resize: vertical; }
.input:focus { border-color: var(--olive); box-shadow: 0 0 0 4px rgba(107, 127, 58, 0.14); }
.hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 12px 16px; border-radius: 18px; background: var(--paper); border: 1.5px solid var(--line); text-align: left; font-weight: 500; transition: all .2s; }
.choice .box { flex: 0 0 26px; height: 26px; border-radius: 9px; border: 2px solid #C9CFBE; display: grid; place-items: center; transition: all .2s; }
.choice.on { border-color: var(--olive); background: #F3F7EA; }
.choice.on .box { background: var(--forest-2); border-color: var(--forest-2); }
.choice.on .box::after { content: ''; width: 7px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.seg button { min-height: 84px; border-radius: 18px; background: var(--paper); border: 1.5px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.seg button b { font-family: var(--serif); font-size: 1.9rem; color: var(--forest); line-height: 1; }
.seg button span { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.seg button.on { background: var(--forest); border-color: var(--forest); }
.seg button.on b, .seg button.on span { color: var(--cream); }
.progress-dots { display: flex; gap: 6px; margin: 6px 0 20px; }
.progress-dots i { height: 5px; flex: 1; border-radius: 4px; background: rgba(31,61,43,0.12); }
.progress-dots i.on { background: var(--olive); }
.topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.back { width: 44px; height: 44px; border-radius: 14px; background: rgba(31,61,43,0.06); display: grid; place-items: center; font-size: 1.2rem; color: var(--forest); flex: 0 0 auto; }
.alert { border-radius: 18px; padding: 16px; background: #FBF1DC; color: #6B5218; border: 1px solid #F0DDAF; }
.alert.danger { background: #F8E7E2; color: #8B3F31; border-color: #EECBC2; }
.alert.ok { background: #EEF5E3; color: #3E5A22; border-color: #D5E6BD; }

/* Início */
.hero { position: relative; height: 62vh; min-height: 420px; max-height: 640px; overflow: hidden; border-radius: 0 0 34px 34px; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero .overlay { position: absolute; left: 0; right: 0; top: 0; padding: calc(16px + var(--safe-t)) 18px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.hero .stage { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.stage-card { background: rgba(250, 246, 238, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 18px; padding: 10px 14px; max-width: 70%; }
.stage-card b { font-family: var(--serif); font-size: 1.15rem; color: var(--forest); display: block; }
.stage-card span { font-size: .78rem; color: var(--muted); }
.icon-btn { width: 48px; height: 48px; border-radius: 16px; background: rgba(250, 246, 238, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: grid; place-items: center; font-size: 1.15rem; color: var(--forest); box-shadow: 0 6px 18px -8px rgba(0,0,0,.3); }
.greet { color: var(--forest); text-shadow: 0 1px 12px rgba(250,246,238,.8); }
.greet.night { color: var(--cream); text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.greet h2 { font-size: 1.7rem; }
.home-body { padding: 18px 20px 0; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: var(--paper); border-radius: 20px; padding: 14px 16px; box-shadow: var(--shadow); }
.stat b { font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--forest); display: block; }
.stat span { font-size: .78rem; color: var(--muted); }
.ring { --p: 0; width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(var(--olive) calc(var(--p) * 1%), rgba(31,61,43,0.08) 0); display: grid; place-items: center; flex: 0 0 auto; }
.ring > div { width: 74px; height: 74px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; text-align: center; }
.ring b { font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--forest); }
.ring span { font-size: .62rem; color: var(--muted); display: block; }
.message { font-family: var(--serif); font-size: 1.28rem; line-height: 1.4; color: var(--forest); }
.quote-card { background: linear-gradient(160deg, var(--forest-2), var(--forest-3)); color: var(--cream); }
.quote-card .message { color: var(--cream); }
.mentor-btn { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; }
.mentor-btn .av { width: 52px; height: 52px; border-radius: 18px; background: linear-gradient(160deg, #E7D29A, var(--gold)); display: grid; place-items: center; font-size: 1.5rem; flex: 0 0 auto; }

/* Hoje */
.today-head { position: relative; height: 230px; border-radius: 0 0 30px 30px; overflow: hidden; }
.today-head canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.today-head .overlay { position: absolute; inset: 0; padding: calc(14px + var(--safe-t)) 18px 14px; display: flex; flex-direction: column; justify-content: space-between; }
.today-title { padding: 18px 20px 4px; }
.score-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 20px 6px; }
.score-strip div { background: var(--paper); border-radius: 16px; padding: 10px 6px; text-align: center; box-shadow: var(--shadow); }
.score-strip b { display: block; font-family: var(--serif); font-size: 1.45rem; line-height: 1.1; }
.score-strip span { font-size: .68rem; color: var(--muted); }
.plus { color: var(--ok); } .minus { color: #B96A57; }
.section { padding: 10px 20px 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 10px; }
.section-title h3 { font-size: 1.3rem; }
.task { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 12px 14px; margin-bottom: 10px; border-radius: 20px; background: var(--paper); box-shadow: 0 4px 14px -8px rgba(31,61,43,.25); text-align: left; transition: background .25s, transform .15s; position: relative; }
.task:active { transform: scale(0.985); }
.task .ic { width: 42px; height: 42px; border-radius: 14px; background: #F1F4EA; display: grid; place-items: center; font-size: 1.25rem; flex: 0 0 auto; }
.task .tx { flex: 1; font-weight: 500; line-height: 1.3; }
.task .tx small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; margin-top: 2px; }
.check { width: 32px; height: 32px; border-radius: 11px; border: 2px solid #C8CFBC; display: grid; place-items: center; flex: 0 0 auto; transition: all .25s; }
.task.done { background: linear-gradient(90deg, #EEF5E2, #F7FAF0); }
.task.done .check { background: var(--forest-2); border-color: var(--forest-2); }
.task.done .check::after { content: ''; width: 8px; height: 14px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -2px); }
.task.done .tx { color: var(--forest); }
.counter { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.counter button { width: 40px; height: 40px; border-radius: 13px; background: #F4EFE6; font-size: 1.3rem; color: var(--forest); font-weight: 600; }
.counter b { min-width: 22px; text-align: center; font-family: var(--serif); font-size: 1.35rem; }
.task.neg.has { background: #FBF3EE; }
.task.neg .ic { background: #F8EEE8; }
.note-gentle { font-size: .82rem; color: var(--muted); background: rgba(201,162,75,0.08); border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; }
.editing-bar { margin: 10px 20px 0; padding: 10px 14px; border-radius: 14px; background: var(--gold-soft); color: #6B5218; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .9rem; }
.flyleaf { position: fixed; z-index: 90; width: 22px; height: 12px; pointer-events: none; border-radius: 0 100% 0 100%; background: radial-gradient(circle at 30% 30%, #E6F5B8, #7FAE4E 70%); box-shadow: 0 0 16px 6px rgba(255, 228, 140, 0.75); }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 24px + var(--safe-b)); transform: translateX(-50%); z-index: 95; background: var(--forest); color: var(--cream); padding: 12px 18px; border-radius: 16px; font-weight: 600; box-shadow: 0 14px 30px -10px rgba(0,0,0,.4); animation: toastIn .3s ease both; max-width: 88%; text-align: center; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Jornada */
.week { border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; }
.week-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; text-align: left; }
.week-num { width: 46px; height: 46px; border-radius: 15px; background: #F1F4EA; display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--forest); flex: 0 0 auto; }
.week.current .week-num { background: var(--forest); color: var(--cream); }
.week.past .week-num { background: var(--leaf-soft); }
.week-head .tx { flex: 1; }
.week-head .tx b { display: block; font-family: var(--serif); font-size: 1.2rem; }
.week-head .tx span { font-size: .78rem; color: var(--muted); }
.week-body { padding: 0 16px 14px; display: none; }
.week.open .week-body { display: block; }
.goal-line { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 0; border-top: 1px solid var(--line); text-align: left; font-size: .95rem; }
.goal-line .check { width: 26px; height: 26px; border-radius: 9px; }
.goal-line.done .check { background: var(--olive); border-color: var(--olive); }
.goal-line.done .check::after { content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.goal-line.done span { color: var(--muted); text-decoration: line-through; }

/* Evolução */
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(31,61,43,0.06); border-radius: 16px; padding: 4px; margin: 14px 0 16px; }
.tabs button { min-height: 44px; border-radius: 12px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.tabs button.on { background: var(--paper); color: var(--forest); box-shadow: 0 4px 12px -6px rgba(0,0,0,.2); }
.chart { width: 100%; height: auto; display: block; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head b { font-family: var(--serif); font-size: 1.35rem; text-transform: capitalize; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .dow { text-align: center; font-size: .7rem; color: var(--muted); font-weight: 600; padding-bottom: 2px; }
.cal .d { aspect-ratio: 1; border-radius: 13px; display: grid; place-items: center; font-weight: 600; font-size: .92rem; background: #F2EFE7; color: #8C8A80; position: relative; }
.cal .d.out { background: transparent; color: #C8C4B8; font-weight: 400; }
.cal .d.green { background: #9CC56A; color: #1F3D2B; }
.cal .d.yellow { background: #F0D77C; color: #5E4A12; }
.cal .d.red { background: #EDB4A6; color: #6E3326; }
.cal .d.gray { background: #E2DFD5; color: #8C8A80; }
.cal .d.pause { background: repeating-linear-gradient(45deg, #EDEAE1, #EDEAE1 4px, #E2DED2 4px, #E2DED2 8px); }
.cal .d.today { box-shadow: 0 0 0 2.5px var(--forest); }
.cal .d.future { background: #F7F5EF; color: #B9B6AA; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 14px; font-size: .78rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.report h3 { font-size: 1.35rem; }
.kv { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.kv b { font-weight: 600; }

/* Perfil */
.avatar { width: 78px; height: 78px; border-radius: 26px; background: linear-gradient(160deg, var(--leaf), var(--olive)); color: #fff; font-family: var(--serif); font-size: 2.2rem; display: grid; place-items: center; font-weight: 600; }
.menu-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 4px; text-align: left; border-top: 1px solid var(--line); font-weight: 500; }
.menu-item:first-child { border-top: 0; }
.menu-item .mi { width: 40px; height: 40px; border-radius: 13px; background: #F1F4EA; display: grid; place-items: center; font-size: 1.1rem; flex: 0 0 auto; }
.menu-item .tx { flex: 1; }
.menu-item .tx small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; margin-top: 2px; }
.menu-item .ar { color: #B7B3A6; }
.switch { width: 52px; height: 32px; border-radius: 99px; background: #D6D3C8; position: relative; transition: background .2s; flex: 0 0 auto; }
.switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .2s; }
.switch.on { background: var(--olive); }
.switch.on::after { transform: translateX(20px); }

/* Navegação inferior */
.nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 520px; z-index: 50; padding: 0 12px calc(10px + var(--safe-b)); pointer-events: none; }
.nav-inner { pointer-events: auto; height: var(--nav-h); border-radius: 26px; background: rgba(255, 253, 248, 0.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 14px 40px -14px rgba(31, 61, 43, 0.35); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; border: 1px solid rgba(255,255,255,.8); }
.nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 100%; font-size: .68rem; font-weight: 600; color: #9A9C90; }
.nav button svg { width: 24px; height: 24px; }
.nav button.on { color: var(--forest); }
.nav button.center .bub { width: 56px; height: 56px; border-radius: 20px; background: linear-gradient(180deg, var(--forest-2), var(--forest)); color: var(--cream); display: grid; place-items: center; margin-top: -26px; box-shadow: 0 12px 24px -8px rgba(31,61,43,.6); border: 4px solid var(--cream); }
.nav button.center.on .bub { background: linear-gradient(180deg, #D9B45E, #B98E33); }

/* Folha inferior (sheet) e modais */
.sheet-bg { position: fixed; inset: 0; z-index: 80; background: rgba(16, 30, 20, 0.45); animation: fade .25s ease both; display: flex; align-items: flex-end; justify-content: center; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; background: var(--cream); border-radius: 30px 30px 0 0; padding: 10px 20px calc(24px + var(--safe-b)); animation: sheetUp .35s cubic-bezier(.2,.9,.3,1) both; }
@keyframes sheetUp { from { transform: translateY(100%); } }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: #D6D2C5; margin: 0 auto 14px; }
.stageup { position: fixed; inset: 0; z-index: 99; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(255, 233, 160, 0.95), rgba(31, 61, 43, 0.96) 62%); color: var(--cream); text-align: center; padding: 30px; animation: fade .5s ease both; }
.stageup .burst { width: 180px; height: 180px; margin: 0 auto 20px; border-radius: 50%; background: radial-gradient(circle, #FFF6D6, rgba(255, 220, 130, 0) 70%); animation: burst 2.2s ease-in-out infinite; display: grid; place-items: center; font-size: 4rem; }
@keyframes burst { 50% { transform: scale(1.15); filter: brightness(1.2); } }
.replay-bar { position: absolute; left: 18px; right: 18px; bottom: 16px; background: rgba(250,246,238,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 18px; padding: 12px 14px; }
.replay-bar .bar { height: 5px; border-radius: 3px; background: rgba(31,61,43,.12); margin-top: 8px; overflow: hidden; }
.replay-bar .bar i { display: block; height: 100%; background: var(--gold); width: 0; }

/* Orientadora */
.chat { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.bubble { max-width: 86%; padding: 12px 15px; border-radius: 20px; line-height: 1.5; font-size: .95rem; white-space: pre-wrap; }
.bubble.me { align-self: flex-end; background: var(--forest); color: var(--cream); border-bottom-right-radius: 6px; }
.bubble.ai { align-self: flex-start; background: var(--paper); box-shadow: var(--shadow); border-bottom-left-radius: 6px; }
.chat-input { display: flex; gap: 8px; position: sticky; bottom: calc(var(--nav-h) + 18px + var(--safe-b)); }
.chat-input .input { flex: 1; }

/* Login */
.login { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 30px 24px; background: radial-gradient(circle at 50% 0%, #2E5A3C, #16301F 70%); color: var(--cream); }
.login .card { color: var(--ink); }
.sync { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--muted); }
.sync i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.sync.pending i { background: var(--mid); }
.sync.off i { background: #B9B6AA; }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.paused-banner { margin: 14px 20px 0; }
.row > .field, .row > .input { min-width: 0; }
.input { min-width: 0; max-width: 100%; }
input[type="time"].input { padding: 0 10px; -webkit-appearance: none; appearance: none; }
#app { overflow-x: hidden; }
