/* Next · hoja de estilos. Paleta tierra: terracota (esfuerzo), verde oliva (nutrición), crema. */
:root {
  --bg: #faf6f2; --bg2: #ffffff; --bg3: #f3ece6; --line: #eadfd8; --line2: #ddcfc6;
  --ink: #2b1d17; --ink2: #5c4a42; --muted: #8f7d75;
  --acc: #c8471f; --acc2: #a9391a; --acc-soft: #fbe9e2; --acc-ink: #7c2a11;
  --green: #4f8a5b; --green-soft: #e6f1e8; --green-ink: #2d5a37;
  --gold: #d99a2b; --gold-soft: #fbf0d9;
  --blue: #3f6fb0; --blue-soft: #e5edf8;
  --danger: #b3261e; --danger-soft: #fbe5e3;
  --radius: 16px; --radius-sm: 10px; --shadow: 0 10px 30px -18px rgba(43, 29, 23, .35);
  --font-head: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17120f; --bg2: #211a16; --bg3: #2a211c; --line: #33281f; --line2: #423429;
    --ink: #f4ede7; --ink2: #d8ccc3; --muted: #9d8c82;
    --acc: #e8623a; --acc2: #c8471f; --acc-soft: #3a1f16; --acc-ink: #f6b8a2;
    --green: #6fae7d; --green-soft: #1f2e22; --green-ink: #b9dec2;
    --gold: #e6ad45; --gold-soft: #3a2d15; --blue: #6f9ad8; --blue-soft: #1c2637;
    --danger: #e26b62; --danger-soft: #3a1c1a; --shadow: 0 10px 30px -18px rgba(0,0,0,.8);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); }
h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -.01em; margin: 0 0 .4em; line-height: 1.15; }
h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 .8em; }
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--radius-sm); padding: 10px 12px; width: 100%; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 3px solid color-mix(in srgb, var(--acc) 35%, transparent); outline-offset: 1px; }
label { display: block; font-weight: 600; font-size: 13px; color: var(--ink2); margin-bottom: 6px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.hidden { display: none !important; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
.center { text-align: center; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 10px 18px; font-weight: 600; background: var(--bg3); color: var(--ink); transition: transform .08s ease, background .15s; text-decoration: none !important; }
.btn:hover { background: var(--line); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--acc); color: #fff; }
.btn.primary:hover { background: var(--acc2); }
.btn.green { background: var(--green); color: #fff; }
.btn.ghost { background: transparent; border-color: var(--line2); }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.lg { padding: 14px 26px; font-size: 16px; }
.btn.block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn .spin { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Tarjetas */
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card.soft { background: var(--bg3); box-shadow: none; }
.card.acc { border-left: 5px solid var(--acc); }
.card.green { border-left: 5px solid var(--green); }
.card.gold { border-left: 5px solid var(--gold); }
.card h3 { margin-bottom: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg3); color: var(--ink2); }
.pill.acc { background: var(--acc-soft); color: var(--acc-ink); }
.pill.green { background: var(--green-soft); color: var(--green-ink); }
.pill.gold { background: var(--gold-soft); color: #7a5410; }
.pill.blue { background: var(--blue-soft); color: var(--blue); }
.pill.danger { background: var(--danger-soft); color: var(--danger); }
.kpi { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi .v { font-family: var(--font-head); font-size: 28px; font-weight: 800; line-height: 1.1; }
.kpi .l { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.bar { height: 8px; background: var(--bg3); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--acc); border-radius: 999px; transition: width .4s ease; }
.bar.green > span { background: var(--green); }
.bar.gold > span { background: var(--gold); }
.alert { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg3); }
.alert.warn { background: var(--gold-soft); border-color: #ead9b0; color: #6a4a10; }
.alert.danger { background: var(--danger-soft); border-color: #eebcb8; color: var(--danger); }
.alert.ok { background: var(--green-soft); border-color: #c8e2cd; color: var(--green-ink); }
.alert.info { background: var(--blue-soft); border-color: #c9d8ef; color: var(--blue); }

/* Landing */
.landing { max-width: 1100px; margin: 0 auto; padding: 20px 20px 60px; }
.topnav { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--ink); text-decoration: none !important; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--acc), #f08a5d); display: grid; place-items: center; color: #fff; font-size: 16px; }
.brand small { display: block; font: 600 10px/1 var(--font); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 30px 0 40px; }
.hero .eyebrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); margin-bottom: 14px; }
.hero p.lead { font-size: 18px; color: var(--ink2); max-width: 560px; }
.hero-visual { position: relative; }
.mock { background: var(--bg2); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); transform: rotate(-1.5deg); }
.mock .mrow { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--bg3); margin-bottom: 8px; font-size: 13px; }
.mock .mrow b { font-family: var(--font-head); }
.mock .chip { position: absolute; right: -10px; bottom: -14px; background: var(--acc); color: #fff; padding: 10px 14px; border-radius: 14px; font-weight: 700; font-size: 13px; box-shadow: var(--shadow); transform: rotate(2deg); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 30px 0; }
.feature { padding: 18px; border-radius: var(--radius); background: var(--bg2); border: 1px solid var(--line); }
.feature .ico { font-size: 26px; margin-bottom: 8px; }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.price { background: var(--bg2); border: 1px solid var(--line); border-radius: 22px; padding: 24px; position: relative; display: flex; flex-direction: column; }
.price.featured { border-color: var(--acc); box-shadow: 0 20px 50px -24px rgba(200, 71, 31, .5); }
.price .tag { position: absolute; top: -12px; left: 20px; background: var(--acc); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.price .amount { font-family: var(--font-head); font-size: 42px; font-weight: 800; }
.price .amount small { font-size: 14px; color: var(--muted); font-weight: 600; }
.price ul { padding: 0; margin: 14px 0 20px; list-style: none; display: grid; gap: 8px; color: var(--ink2); font-size: 14px; }
.price ul li::before { content: '✓ '; color: var(--green); font-weight: 700; }
.steps { counter-reset: paso; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.step { position: relative; padding: 18px 18px 18px 56px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: paso; content: counter(paso); position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--acc); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--font-head); }
.faq details { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; }
.footer { margin-top: 50px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .mock { transform: none; } }

/* Auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth .card { width: 100%; max-width: 420px; padding: 28px; }
.field { margin-bottom: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; color: var(--ink2); }
.check input { width: auto; margin-top: 3px; }

/* App shell */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: var(--bg2); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; }
.side .brand { padding: 6px 8px 16px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--ink2); font-weight: 600; text-decoration: none !important; }
.nav a:hover { background: var(--bg3); }
.nav a.active { background: var(--acc-soft); color: var(--acc-ink); }
.nav a .ico { width: 22px; text-align: center; }
.nav a .badge { margin-left: auto; background: var(--acc); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 999px; }
.side .foot { margin-top: auto; padding: 10px 8px; font-size: 12px; color: var(--muted); }
.main { padding: 18px 26px 60px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.topbar h2 { margin: 0; }
.stat-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); font-weight: 700; font-size: 13px; }
.bell { position: relative; border: 1px solid var(--line); background: var(--bg2); width: 38px; height: 38px; border-radius: 50%; font-size: 17px; }
.bell .dot { position: absolute; top: 4px; right: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--acc); border: 2px solid var(--bg2); }
.mobile-nav { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: 14px 14px 90px; }
  .mobile-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg2); border-top: 1px solid var(--line); justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 20; }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); text-decoration: none !important; padding: 4px 8px; border-radius: 10px; font-weight: 600; }
  .mobile-nav a.active { color: var(--acc); background: var(--acc-soft); }
  .mobile-nav a .ico { font-size: 18px; }
}

/* Plan */
.weeks { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.week-tab { border: 1px solid var(--line2); background: var(--bg2); border-radius: 12px; padding: 8px 14px; font-weight: 600; text-align: left; min-width: 150px; }
.week-tab.active { border-color: var(--acc); background: var(--acc-soft); color: var(--acc-ink); }
.week-tab.locked { opacity: .6; }
.week-tab small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.day { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 150px; position: relative; }
.day.today { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.day.rest { background: var(--bg3); border-style: dashed; }
.day.done { border-color: var(--green); }
.day .dname { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; display: flex; justify-content: space-between; }
.day .title { font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.day .meta { font-size: 13px; color: var(--ink2); }
.day .actions { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.tipo { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--bg3); color: var(--ink2); text-transform: uppercase; letter-spacing: .04em; }
.tipo.series, .tipo.umbral, .tipo.tempo, .tipo.test, .tipo.competicion { background: var(--acc-soft); color: var(--acc-ink); }
.tipo.larga { background: var(--gold-soft); color: #7a5410; }
.tipo.fuerza { background: var(--blue-soft); color: var(--blue); }
.tipo.recuperacion, .tipo.movilidad, .tipo.descanso { background: var(--green-soft); color: var(--green-ink); }
.locked-overlay { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 14px; color: var(--muted); font-size: 13px; }
.struct { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.struct li { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg3); font-size: 13px; }
.struct li b { color: var(--acc-ink); }
.meal { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 8px; align-items: start; }
.meal.done { background: var(--green-soft); border-color: #c8e2cd; }
.meal input { width: 20px; height: 20px; margin-top: 3px; }
.meal .mname { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.meal .plato { font-weight: 600; }
.meal .ings { font-size: 13px; color: var(--ink2); }
.meal .macros { font-size: 12px; color: var(--muted); }
.macro-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--bg3); }
.macro-bar span:nth-child(1) { background: var(--acc); } .macro-bar span:nth-child(2) { background: var(--gold); } .macro-bar span:nth-child(3) { background: var(--blue); }

/* Chat */
.chat { display: flex; flex-direction: column; height: calc(100vh - 150px); min-height: 420px; }
.chat .log { flex: 1; overflow: auto; padding: 8px 4px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 16px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.msg.user { align-self: flex-end; background: var(--acc); color: #fff; border-bottom-right-radius: 4px; }
.msg.assistant { align-self: flex-start; background: var(--bg2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg .who { font-size: 11px; font-weight: 700; opacity: .7; margin-bottom: 2px; }
.chat form { display: flex; gap: 8px; margin-top: 10px; }
.chat textarea { resize: none; height: 52px; }
.typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); margin-right: 3px; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
.suggest { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* Onboarding */
.wizard .progress { display: flex; gap: 6px; margin-bottom: 18px; }
.wizard .progress span { flex: 1; height: 6px; border-radius: 999px; background: var(--bg3); }
.wizard .progress span.on { background: var(--acc); }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.choice { border: 1px solid var(--line2); background: var(--bg2); border-radius: 14px; padding: 12px; text-align: left; font-weight: 600; display: flex; flex-direction: column; gap: 4px; }
.choice small { font-weight: 400; color: var(--muted); font-size: 12px; }
.choice.on { border-color: var(--acc); background: var(--acc-soft); color: var(--acc-ink); }
.dayspick { display: flex; gap: 6px; flex-wrap: wrap; }
.dayspick button { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg2); font-weight: 700; }
.dayspick button.on { background: var(--acc); color: #fff; border-color: var(--acc); }

/* Progreso */
canvas.chart { width: 100%; height: 200px; display: block; }
.ranks { display: flex; gap: 6px; flex-wrap: wrap; }
.rank { padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--bg3); color: var(--muted); }
.rank.on { background: var(--gold); color: #fff; }
.rank.past { background: var(--gold-soft); color: #7a5410; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.badge-card { padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); text-align: center; }
.badge-card .ico { font-size: 28px; }
.badge-card.locked { opacity: .45; filter: grayscale(1); }
.reto { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); margin-bottom: 8px; }
.reto.done { border-color: var(--green); background: var(--green-soft); }

/* Tablas */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tr.click { cursor: pointer; } tr.click:hover { background: var(--bg3); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.tabs button { border: none; background: transparent; padding: 10px 14px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; }
.tabs button.active { color: var(--acc); border-bottom-color: var(--acc); }

/* Modal, toasts */
.modal-bg { position: fixed; inset: 0; background: rgba(20, 12, 8, .55); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: var(--bg2); border-radius: 22px; max-width: 640px; width: 100%; max-height: 92vh; overflow: auto; padding: 22px; position: relative; }
.modal .x { position: absolute; top: 12px; right: 12px; border: none; background: var(--bg3); width: 34px; height: 34px; border-radius: 50%; font-size: 16px; }
.toasts { position: fixed; top: 14px; right: 14px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 14px; font-weight: 600; box-shadow: var(--shadow); animation: pop .25s ease; max-width: 340px; }
.toast.logro { background: var(--gold); color: #fff; }
.toast.err { background: var(--danger); color: #fff; }
@keyframes pop { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
.rating { display: flex; gap: 6px; flex-wrap: wrap; }
.rating button { min-width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg2); font-weight: 700; }
.rating button.on { background: var(--acc); color: #fff; border-color: var(--acc); }
.lince-reply { background: var(--acc-soft); border-left: 4px solid var(--acc); border-radius: 12px; padding: 12px 14px; color: var(--acc-ink); white-space: pre-wrap; }
.skeleton { background: linear-gradient(90deg, var(--bg3), var(--line), var(--bg3)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; min-height: 80px; }
@keyframes sk { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .ico { font-size: 40px; }
@media print { .side, .topbar, .mobile-nav, .btn, .toasts { display: none !important; } .shell { display: block; } .main { padding: 0; } }

/* ---------- Móvil: prioridad a una sola columna, controles grandes y sin desbordes ---------- */
.two-col { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.topbar { flex-wrap: wrap; }
.topbar .row { gap: 6px; }
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; margin-bottom: 12px; }
  .topbar h2 { font-size: 22px; flex: 1 1 100%; order: 2; }
  .topbar .row { order: 1; width: 100%; justify-content: flex-end; }
  .stat-chip { padding: 5px 10px; font-size: 12px; }
  .weeks { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .week-tab { flex: 0 0 auto; min-width: 170px; scroll-snap-align: start; }
  .modal-bg { padding: 0; align-items: end; }
  .modal { max-width: none; border-radius: 22px 22px 0 0; max-height: 94vh; padding: 18px 16px 24px; }
  .chat { height: calc(100vh - 210px); }
  .msg { max-width: 92%; }
  .pricing { grid-template-columns: 1fr; }
  .price .amount { font-size: 34px; }
  .hero { padding: 10px 0 24px; }
  .landing { padding: 12px 14px 40px; }
  .card { padding: 14px; }
  .kpi .v { font-size: 22px; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .struct li { grid-template-columns: 1fr; gap: 2px; }
  .rating button { min-width: 34px; height: 40px; }
  .btn { padding: 10px 14px; }
  .btn.lg { width: 100%; justify-content: center; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; }
  .tabs button { white-space: nowrap; }
  .table-wrap table { min-width: 640px; }
  .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .days { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: 1fr 1fr; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .dayspick button { width: 40px; height: 40px; }
  .choices { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 30px; }
}
