/* =====================================================================
   Aterra — identidade visual
   Verde-petróleo (confiança) + terracota (calor humano), papel quente,
   serifada editorial nos títulos e grotesca limpa no texto.
   ===================================================================== */
:root {
  --bg: #F6F4EF;
  --surface: #FFFFFF;
  --surface-2: #FBFAF7;
  --ink: #15212B;
  --ink-2: #33414C;
  --muted: #5E6A73;
  --line: #E4DFD5;
  --line-strong: #CFC8BA;
  --brand: #0E5A4A;
  --brand-hover: #0B4A3D;
  --brand-ink: #FFFFFF;
  --brand-soft: #E2EEE9;
  --accent: #B4532F;
  --accent-soft: #F6E6DD;
  --danger: #B42318;
  --danger-soft: #FCEBE9;
  --ok: #17663A;
  --ok-soft: #E4F2E9;
  --focus: #2A7FFF;
  --shadow: 0 1px 2px rgba(21,33,43,.06), 0 4px 16px rgba(21,33,43,.05);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --gutter: 16px;
  --maxw: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1418; --surface: #161D22; --surface-2: #131A1E; --ink: #E8EDEF; --ink-2: #C9D2D7;
    --muted: #9AA7AF; --line: #25313A; --line-strong: #364551; --brand: #4DB497; --brand-hover: #63C5A9;
    --brand-ink: #0B1512; --brand-soft: #17302A; --accent: #E59570; --accent-soft: #3A2419;
    --danger: #F27467; --danger-soft: #3A1C1A; --ok: #6CCB93; --ok-soft: #173024;
    --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font);
  min-height: 100dvh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 20px var(--gutter) 96px; outline: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.9rem); }
h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-size: 1.12rem; font-family: var(--font); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { padding: 24px; text-align: center; }
[hidden] { display: none !important; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { max-width: var(--maxw); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 1.32rem; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex: none; }
.topnav { display: none; gap: 2px; margin-left: 12px; }
.topnav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.topnav a:hover { background: var(--surface); color: var(--ink); }
.topnav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 28px 7px 12px; font: 500 .85rem var(--font); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235E6A73' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; cursor: pointer; }
@media (min-width: 1100px) { .topnav { display: flex; } }

/* ---------- Bottom tab bar (mobile) ---------- */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 8px; text-decoration: none; color: var(--muted); font-size: .72rem; font-weight: 600; min-height: 56px; }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--brand); }
@media (min-width: 1100px) { .tabbar { display: none !important; } main { padding-bottom: 48px; } }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 22px var(--gutter) 100px; }
.foot-in { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .85rem; }
.foot a { color: var(--muted); }
@media (min-width: 860px) { .foot { padding-bottom: 28px; } }

/* ---------- Buttons ---------- */
.btn { --b: var(--brand); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; background: var(--b); color: var(--brand-ink); font: 600 .97rem var(--font); text-decoration: none; cursor: pointer; transition: background .15s, transform .08s, box-shadow .15s; white-space: nowrap; }
.btn:hover { background: var(--brand-hover); color: var(--brand-ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--surface); color: var(--ink); }
.btn.quiet { background: transparent; color: var(--brand); padding: 0 10px; min-height: 40px; }
.btn.quiet:hover { background: var(--brand-soft); }
.btn.danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: .87rem; }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.btn .spinner { width: 16px; height: 16px; border-width: 2px; }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; padding: 0; }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Avatar ---------- */
.avatar { --s: 40px; width: var(--s); height: var(--s); border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: inline-grid; place-items: center; font-weight: 700; font-size: calc(var(--s) * .38); overflow: hidden; flex: none; border: 1px solid var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { --s: 88px; }
.avatar.xl { --s: 112px; }
a.avatar { text-decoration: none; }

/* ---------- Cards / layout ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 14px; }
.card.flat { box-shadow: none; }
.card.link { display: block; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.card.link:hover { border-color: var(--line-strong); transform: translateY(-1px); color: inherit; }
.grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .grid.c2 { grid-template-columns: repeat(2, 1fr); } .grid.c3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.c3 { grid-template-columns: repeat(3, 1fr); } }
.stack > * + * { margin-top: 14px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.section { margin-top: 36px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: .74rem; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.mid { max-width: 680px; margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero { padding: 28px 0 8px; display: grid; gap: 28px; align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lead { font-size: 1.13rem; color: var(--ink-2); max-width: 46ch; }
.hero-art { border-radius: 22px; background: var(--brand); color: var(--brand-ink); padding: 26px; position: relative; overflow: hidden; min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-art svg.horizon { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .95; }
.hero-art .quote { position: relative; font-family: var(--serif); font-size: 1.22rem; line-height: 1.3; max-width: 22ch; }
.hero-art .quote small { display: block; font-family: var(--font); font-size: .8rem; opacity: .8; margin-top: 10px; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.15fr .85fr; padding-top: 48px; } .hero-art { min-height: 360px; } }

/* ---------- Audience / feature tiles ---------- */
.tile { display: flex; gap: 14px; align-items: flex-start; }
.tile .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.tile .ico svg { width: 22px; height: 22px; }
.tile .ico.warm { background: var(--accent-soft); color: var(--accent); }
.tile h3 { margin-bottom: 4px; }
.tile p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); letter-spacing: .01em; white-space: nowrap; }
.badge svg { width: 13px; height: 13px; }
.badge.warm { background: var(--accent-soft); color: var(--accent); }
.badge.gray { background: color-mix(in srgb, var(--muted) 14%, transparent); color: var(--ink-2); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 500; font-size: .93rem; transition: all .12s; user-select: none; }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.tag { display: inline-block; font-size: .82rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); background: var(--surface-2); }

/* ---------- Choice cards (radio) ---------- */
.choices { display: grid; gap: 10px; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice .box { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--surface); transition: border-color .12s, background .12s; }
.choice .box .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); flex: none; }
.choice .box .ico svg { width: 20px; height: 20px; }
.choice .box strong { display: block; font-weight: 600; }
.choice .box small { color: var(--muted); font-size: .87rem; }
.choice input:checked + .box { border-color: var(--brand); background: var(--brand-soft); }
.choice input:checked + .box .ico { background: var(--brand); color: var(--brand-ink); }
.choice input:focus-visible + .box { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 16px; }
.field > .lbl { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .hint { display: block; font-size: .82rem; color: var(--muted); margin-top: 5px; }
.field .err { display: block; font-size: .84rem; color: var(--danger); margin-top: 5px; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=search], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font: 400 1rem var(--font); transition: border-color .12s, box-shadow .12s;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235E6A73' stroke-width='1.8' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.switch { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; cursor: pointer; }
.switch input { appearance: none; width: 46px; height: 28px; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; transition: background .15s; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .18s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(18px); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: .93rem; margin-bottom: 16px; border: 1px solid; }
.alert.err { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.alert.ok { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.alert.info { background: var(--brand-soft); color: var(--ink); border-color: color-mix(in srgb, var(--brand) 25%, transparent); }
.pw-meter { height: 4px; border-radius: 4px; background: var(--line); margin-top: 8px; overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--danger); transition: width .2s, background .2s; }

/* ---------- Auth layout ---------- */
.auth { max-width: 440px; margin: 12px auto 0; }
.auth h1 { font-size: 2rem; }
.auth .card { padding: 24px; }
.auth .alt { margin-top: 18px; text-align: center; font-size: .93rem; color: var(--muted); }

/* ---------- Onboarding ---------- */
.ob { max-width: 600px; margin: 0 auto; }
.ob-progress { display: flex; gap: 6px; margin: 4px 0 22px; }
.ob-progress i { flex: 1; height: 5px; border-radius: 5px; background: var(--line); transition: background .25s; }
.ob-progress i.on { background: var(--brand); }
.ob-step { animation: rise .28s ease both; }
.ob-step h1 { font-size: clamp(1.6rem, 1.3rem + 1.6vw, 2.2rem); }
.ob-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; position: sticky; bottom: 72px; padding: 12px 0; background: linear-gradient(to top, var(--bg) 70%, transparent); }
@media (min-width: 860px) { .ob-nav { bottom: 0; } }

/* ---------- Home ---------- */
.greet { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.greet h1 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
.meter { height: 8px; background: var(--line); border-radius: 8px; overflow: hidden; margin: 10px 0 6px; }
.meter i { display: block; height: 100%; background: var(--brand); border-radius: 8px; transition: width .4s; }
.next, .card.link.next { display: flex; align-items: center; gap: 14px; }
.next .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.next .ico svg { width: 21px; height: 21px; }
.next .txt { flex: 1; min-width: 0; }
.next .txt strong { display: block; }
.next .txt span { color: var(--muted); font-size: .9rem; }
.next .go { color: var(--muted); }
.next .go svg { width: 20px; height: 20px; }
.soon { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px dashed var(--line); }
.soon:first-child { border-top: 0; padding-top: 0; }
.soon .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); flex: none; }
.soon .ico svg { width: 18px; height: 18px; }
.soon p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.people { display: flex; flex-direction: column; }
.person { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.person:first-child { border-top: 0; }
.person:hover { color: inherit; }
.person .nm { font-weight: 600; }
.person .meta { color: var(--muted); font-size: .86rem; }

/* ---------- Profile ---------- */
.pf-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.pf-head h1 { margin: 0 0 4px; font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem); }
.pf-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .92rem; align-items: center; }
.pf-meta span { display: inline-flex; align-items: center; gap: 5px; }
.pf-meta svg { width: 16px; height: 16px; }
.kv { display: grid; grid-template-columns: 1fr; gap: 2px 18px; margin: 0; }
.kv dt { font-size: .82rem; color: var(--muted); font-weight: 600; margin-top: 12px; }
.kv dd { margin: 0; }
@media (min-width: 640px) { .kv { grid-template-columns: 180px 1fr; } .kv dt { margin-top: 0; padding: 10px 0; border-top: 1px solid var(--line); } .kv dd { padding: 10px 0; border-top: 1px solid var(--line); } }
.avatar-edit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fieldset { border: 0; padding: 0; margin: 0 0 8px; }
.fieldset legend { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; padding: 0; }

/* ---------- Destinations ---------- */
.dest { display: flex; flex-direction: column; gap: 10px; min-height: 150px; }
.dest .flag { font-size: 2rem; line-height: 1; }
.dest h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin: 0; }
.dest .foot-l { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.city-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.city { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.city strong { display: block; }
.city span { color: var(--muted); font-size: .84rem; }

/* ---------- Admin ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 18px; scrollbar-width: none; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 11px 14px; font: 600 .93rem var(--font); color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat b { display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 600; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .86rem; }
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list-row { display: flex; gap: 12px; align-items: center; padding: 13px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.list-row:first-child { border-top: 0; }
.list-row .grow { flex: 1; min-width: 180px; }
.list-row .grow strong { display: block; }
.list-row .grow span { color: var(--muted); font-size: .86rem; word-break: break-word; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 10px; }
.audit-row { font-size: .88rem; }
.audit-row code { font-size: .8rem; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); }
details.sub { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); padding: 0 14px; margin-top: 10px; }
details.sub summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
details.sub[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.inline-form { display: grid; gap: 10px; grid-template-columns: 1fr; padding-bottom: 14px; }
@media (min-width: 640px) { .inline-form { grid-template-columns: repeat(2, 1fr); } .inline-form .full { grid-column: 1 / -1; } }
.inline-form .field { margin: 0; }

/* ---------- Empty / loading / misc ---------- */
.empty { text-align: center; padding: 34px 18px; color: var(--muted); }
.empty svg { width: 40px; height: 40px; margin: 0 auto 10px; opacity: .6; }
.empty strong { display: block; color: var(--ink); margin-bottom: 4px; }
.boot { display: grid; place-items: center; min-height: 50vh; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; display: inline-block; }
.skel { background: linear-gradient(90deg, var(--line) 0%, var(--surface-2) 50%, var(--line) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 10px; min-height: 18px; }
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: 84px; z-index: 60; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 12px; font-size: .93rem; font-weight: 500; box-shadow: 0 8px 24px rgba(0,0,0,.18); animation: rise .22s ease both; pointer-events: auto; }
.toast.err { background: var(--danger); color: #fff; }
@media (min-width: 860px) { .toasts { bottom: 24px; } }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.35rem; }
.prose li { margin-bottom: .4em; }
.setup { max-width: 640px; margin: 20px auto; }
.setup ol li { margin-bottom: .6em; }
.setup code { background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: .88em; }
.hr { height: 1px; background: var(--line); margin: 22px 0; border: 0; }
.pill-status { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.pill-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-status.live { color: var(--ok); }
.pill-status.wip { color: var(--accent); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fade { animation: rise .25s ease both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Rede de colaboradores ---------- */
.count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; margin-left: 6px; vertical-align: 1px; }
.tabbar a { position: relative; }
.tabbar a .count { position: absolute; top: 4px; left: calc(50% + 6px); margin: 0; }
.avatar.md { --s: 52px; }
.filters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 12px; padding: 16px 16px 2px; }
.filters .field { margin-bottom: 12px; }
.filters .field > .lbl { font-size: .8rem; margin-bottom: 4px; }
.filters select { min-height: 42px; padding-top: 8px; padding-bottom: 8px; font-size: .93rem; }
@media (min-width: 760px) { .filters { grid-template-columns: repeat(4, 1fr); } }
.collab { display: flex; flex-direction: column; gap: 10px; min-height: 230px; }
.collab .nm { font-size: 1.02rem; }
.hl { font-weight: 500; color: var(--ink-2); margin: 0; overflow-wrap: anywhere; }
.chips.sm { gap: 6px; }
.chips.sm .tag { font-size: .76rem; padding: 2px 8px; }
.stars { color: var(--line-strong); letter-spacing: 1px; white-space: nowrap; }
.stars .on { color: #D99A1E; }
.stars .half { background: linear-gradient(90deg, #D99A1E 50%, var(--line-strong) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.collab-page { grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .collab-page { grid-template-columns: minmax(0, 1fr) 340px; } .sticky-side { position: sticky; top: 80px; } }
.cat-list { display: grid; gap: 14px; }
@media (min-width: 640px) { .cat-list { grid-template-columns: 1fr 1fr; } }
.review { padding: 14px 0; border-top: 1px solid var(--line); }
.review:first-of-type { border-top: 0; padding-top: 4px; }
.choices.cats { grid-template-columns: 1fr; }
@media (min-width: 640px) { .choices.cats { grid-template-columns: 1fr 1fr; } }
.sticky-actions { position: sticky; bottom: 72px; background: var(--bg); padding: 12px 0; z-index: 5; }
@media (min-width: 860px) { .sticky-actions { bottom: 0; } }
.rq .msg { margin: 12px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.rq.open { border-left: 3px solid var(--accent); }
.reply { margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); overflow-wrap: anywhere; }
.rate { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate label { cursor: pointer; font-size: 1.9rem; line-height: 1; color: var(--line-strong); padding: 2px; }
.rate label:hover, .rate label:hover ~ label, .rate input:checked ~ span, .rate label:has(input:checked), .rate label:has(input:checked) ~ label { color: #D99A1E; }
.rate input:focus-visible + span { outline: 3px solid var(--focus); border-radius: 4px; }
.filters-wrap > summary { list-style: none; margin-bottom: 10px; }
.filters-wrap > summary::-webkit-details-marker { display: none; }
@media (min-width: 760px) { .filters-wrap > summary { display: none; } }

/* ---------- Programa de embaixadores ---------- */
.badge.amb { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.amb-hero { padding: 18px 0 6px; }
.amb-hero .lead { font-size: 1.1rem; color: var(--ink-2); }
.levels { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.levels li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); }
.levels li .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--line); color: var(--ink-2); flex: none; }
.levels li.done .n { background: var(--brand); color: var(--brand-ink); }
.levels li.cur { border-color: var(--brand); background: var(--brand-soft); }
.levels li p { margin: 2px 0 0; font-size: .87rem; color: var(--muted); }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 12px; }
.steps li strong { display: block; }
.steps li span { color: var(--muted); font-size: .93rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 3px; }
.person-card { display: flex; gap: 12px; align-items: center; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.timeline li { display: flex; gap: 10px; align-items: flex-start; }
.timeline .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); margin-top: 7px; flex: none; }
.timeline .dot.good { background: var(--ok); }
.timeline .dot.bad { background: var(--danger); }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 999px; font: 600 .88rem var(--font); color: var(--muted); cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--brand); color: var(--brand-ink); }
input[type=number], input[type=url] { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 400 1rem var(--font); }
h2.section { margin-top: 32px; }

/* ---------- Comunidades ---------- */
.bell, .chatb { position: relative; }
.bell .count, .chatb .count { position: absolute; top: -4px; right: -4px; margin: 0; }
.comm-card { display: flex; flex-direction: column; gap: 8px; min-height: 130px; }
.comm-card h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin: 0; }
.comm-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 1.2rem; }
.comm-ico svg { width: 18px; height: 18px; }
.comm-layout { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
@media (min-width: 960px) { .comm-layout { grid-template-columns: minmax(0, 1fr) 300px; } .comm-side .card { position: sticky; top: 80px; } }
.composer > summary { list-style: none; display: flex; align-items: center; gap: 12px; cursor: pointer; color: var(--muted); }
.composer > summary::-webkit-details-marker { display: none; }
.composer > summary span:last-child { flex: 1; padding: 12px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); }
.composer[open] > summary { margin-bottom: 16px; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.thumb { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; line-height: 1; }
.topics { margin: 16px 0 12px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: thin; }
.chip-link { display: inline-flex; align-items: center; white-space: nowrap; min-height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); text-decoration: none; font-size: .87rem; font-weight: 500; }
.chip-link.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.post { padding: 16px; }
.post.pinned { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.post.notice { background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
.post-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin: 6px 0 4px; }
.post-title a { color: var(--ink); text-decoration: none; }
.post-body { margin: 4px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.post-body.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.post-media { display: grid; gap: 4px; margin-top: 12px; border-radius: 12px; overflow: hidden; }
.post-media.n2, .post-media.n4 { grid-template-columns: 1fr 1fr; }
.post-media.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.post-media.n3 a:first-child { grid-row: 1 / 3; }
.post-media img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; aspect-ratio: 4 / 3; }
.post-media.n1 img { aspect-ratio: auto; }
.event-box { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--brand-soft); }
.event-box svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 2px; }
.event-box span { display: block; color: var(--muted); font-size: .9rem; }
.post-actions { gap: 4px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.post-actions .btn.on { color: var(--brand); background: var(--brand-soft); }
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: 44px; z-index: 15; min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 6px; display: flex; flex-direction: column; }
.menu-list a, .menu-list button { text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 8px; font: 500 .93rem var(--font); color: var(--ink); text-decoration: none; cursor: pointer; }
.menu-list a:hover, .menu-list button:hover { background: var(--surface-2); }
.comments { display: grid; gap: 14px; }
.comment { display: flex; gap: 10px; align-items: flex-start; }
.comment .cbody { flex: 1; min-width: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.comment .cbody p { margin: 4px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.comment .cbody a { color: var(--ink); text-decoration: none; }
.notif { text-decoration: none; color: inherit; }
.notif.unread { background: color-mix(in srgb, var(--brand-soft) 60%, var(--surface)); }
.dot-unread { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
dialog.modal { border: 0; border-radius: var(--radius); padding: 22px; width: min(92vw, 520px); max-height: 90dvh; background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog.modal::backdrop { background: rgba(15,20,24,.5); }
dialog.modal .choices { max-height: 40dvh; overflow: auto; }
dialog.modal .choice .box { padding: 10px 14px; }
.rep-list { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; }
input[type=datetime-local] { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 400 1rem var(--font); }
@media (max-width: 420px) { .topbar-end .lang { max-width: 100px; padding-right: 22px; } .topbar-end { gap: 6px; } .topbar-end .btn.sm { padding-left: 10px; padding-right: 10px; font-size: .84rem; } .topbar-in { gap: 8px; } }

/* ---------- Preciso de ajuda (Etapa 5) */
input[type=date] { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 400 1rem var(--font); }
.avatar.xs { --s: 24px; }
.help-card { display: grid; gap: 8px; }
.help-card h3 { margin: 2px 0 0; }
.help-card .clamp { margin: 0; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ico-round { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.ico-round svg { width: 20px; height: 20px; }
.choices.cats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.choices.cats .box { padding: 10px 12px; gap: 10px; }
.choices.cats .box .ico { width: 32px; height: 32px; }
.choices.cats .box strong { font-size: .93rem; overflow-wrap: break-word; hyphens: auto; min-width: 0; }
.choices.cats .box > span:last-child { min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.seg label { position: relative; }
.seg label input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label span { display: inline-block; padding: 8px 14px; border-radius: 999px; font: 600 .88rem var(--font); color: var(--muted); }
.seg label input:checked + span { background: var(--brand); color: var(--brand-ink); }
.seg label input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }
.hsteps { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0; margin: 16px 0 0; }
@media (min-width: 620px) { .hsteps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hsteps li { min-width: 0; display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.hsteps li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .78rem; background: var(--surface); border: 1px solid var(--line-strong); flex: none; }
.hsteps li span svg { width: 13px; height: 13px; }
.hsteps li.done { color: var(--ink-2); }
.hsteps li.done span { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.hsteps li.cur { color: var(--ink); font-weight: 600; border-color: var(--brand); background: var(--brand-soft); }
.hsteps li.cur span { background: var(--brand); color: var(--brand-ink); border-color: transparent; }
.resp .msg { margin: 12px 0 8px; white-space: pre-line; overflow-wrap: anywhere; }
.resp.chosen { border-color: var(--ok); }
.thread { margin-top: 10px; border-top: 1px solid var(--line); }
.msgs { display: grid; gap: 8px; margin-bottom: 10px; }
.bubble { max-width: 85%; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: var(--surface-2); border: 1px solid var(--line); }
.bubble.me { justify-self: end; border-radius: 14px 14px 4px 14px; background: var(--brand-soft); border-color: transparent; }
.bubble p { margin: 2px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.comm-side .person { align-items: flex-start; }
.comm-side .person .grow { min-width: 0; flex: 1; }

.topnav a, .topnav summary { white-space: nowrap; }
.nav-more > summary { padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: .95rem; cursor: pointer; }
.nav-more > summary:hover { background: var(--surface); color: var(--ink); }
.nav-more > summary[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.nav-more .menu-list { right: auto; left: 0; }
.topbar-end .icon-btn, .topbar-end > .avatar { flex: none; }

/* ---------- Marketplace (Etapa 6) */
.listing-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.lc-media { display: block; aspect-ratio: 16 / 9; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.lc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lc-ico { width: 100%; height: 100%; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); }
.lc-ico svg { width: 34px; height: 34px; }
.lc-body { padding: 14px 16px 16px; display: grid; gap: 8px; min-width: 0; }
.lc-body h3 { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.lc-body h3 a { color: var(--ink); text-decoration: none; }
.lc-body h3 a:hover { text-decoration: underline; }
.lc-price { margin: 0; font-weight: 700; color: var(--brand); }
.lc-price.big { font-size: 1.35rem; margin: 10px 0 0; }
.icon-btn.fav, .btn.fav { color: var(--muted); }
.icon-btn.fav.on, .btn.fav.on { color: var(--accent); }
.icon-btn.fav.on svg, .btn.fav.on svg { fill: currentColor; }
.mk-kv { margin-top: 14px; }
.mk-kv > div { display: contents; }
.filters .mk-q { grid-column: 1 / -1; }
.company-card { display: flex; gap: 14px; align-items: center; }
.co-logo { width: 52px; height: 52px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; overflow: hidden; flex: none; border: 1px solid var(--line); }
.co-logo img { width: 100%; height: 100%; object-fit: cover; }
.co-logo.lg { width: 72px; height: 72px; font-size: 1.3rem; }
.co-logo svg { width: 26px; height: 26px; }
.tabbar a .count { left: calc(50% + 4px); }
.post-media.n1 img { max-height: 400px; width: 100%; object-fit: cover; display: block; }

/* ---------- Mensagens (Etapa 7) */
.msg-btn { display: none; }
@media (min-width: 1100px) { .msg-btn { display: inline-grid; } }
.msg-layout { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.msg-layout .card { padding: 0; overflow: hidden; }
.msg-layout.has-thread .msg-list, .msg-layout.no-thread .msg-empty { display: none; }
@media (min-width: 960px) {
  .msg-layout { grid-template-columns: 320px minmax(0, 1fr); height: calc(100dvh - 150px); min-height: 480px; }
  .msg-layout.has-thread .msg-list, .msg-layout.no-thread .msg-empty { display: block; }
  .msg-list { overflow-y: auto; }
  .back-m { display: none; }
}
.msg-empty { display: grid; place-items: center; padding: 30px; }
.conv-head { padding: 16px 16px 10px; border-bottom: 1px solid var(--line); }
.conv-head h1 { font-size: 1.4rem; }
.conv { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.conv:hover { background: var(--surface-2); color: inherit; }
.conv.on { background: var(--brand-soft); }
.conv .grow { min-width: 0; flex: 1; display: grid; gap: 2px; }
.conv-prev, .conv-ctx { font-size: .86rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-ctx { color: var(--brand); font-size: .8rem; }
.conv.unread .conv-prev { color: var(--ink); font-weight: 600; }
.msg-thread { display: flex; flex-direction: column; min-height: calc(100dvh - 200px); }
@media (min-width: 960px) { .msg-thread { min-height: 0; } }
.thread-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); min-width: 0; }
.thread-head .conv-ctx { max-width: 52vw; }
.msg-scroll { flex: 1; overflow-y: auto; padding: 14px; display: block; min-height: 260px; max-height: calc(100dvh - 290px); }
@media (min-width: 960px) { .msg-scroll { max-height: none; } }
#msg-items { display: flex; flex-direction: column; gap: 6px; }
#msg-items .bubble { max-width: min(78%, 560px); align-self: flex-start; position: relative; }
#msg-items .bubble.me { align-self: flex-end; }
.bubble .gone { font-style: italic; color: var(--muted); }
.bubble .tr { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line-strong); }
.bmeta { display: flex; align-items: center; justify-content: flex-end; gap: 6px; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.bacts { display: inline-flex; gap: 2px; opacity: .35; transition: opacity .15s; }
.bubble:hover .bacts, .bubble:focus-within .bacts { opacity: 1; }
@media (hover: none) { .bacts { opacity: .8; } }
.bact { border: 0; background: none; padding: 2px; color: var(--muted); cursor: pointer; border-radius: 6px; display: inline-grid; }
.bact svg { width: 14px; height: 14px; }
.bact:hover { color: var(--ink); background: var(--surface); }
.day-sep { text-align: center; margin: 10px 0 4px; }
.day-sep span { font-size: .75rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; }
.composer-m { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.composer-m p { flex-basis: 100%; }
.composer-m textarea { flex: 1; min-height: 44px; max-height: 160px; resize: none; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 400 1rem var(--font); }
.msg-layout > .card { margin: 0; }

/* ---------- Jornada, simulador, fontes (Etapa 8) */
.jtasks { list-style: none; padding: 0; margin: 0; }
.jtask { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.jtask .grow { flex: 1; min-width: 0; }
.jtask.done strong { text-decoration: line-through; color: var(--muted); }
.jcheck input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--brand); cursor: pointer; }
.jnote summary { cursor: pointer; color: var(--brand); margin-top: 4px; }
.jnote textarea { width: 100%; min-height: 60px; margin-top: 6px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 400 .92rem var(--font); }
.overdue { color: var(--danger); font-weight: 600; }
.jpct { font-size: 1.8rem; color: var(--brand); font-family: var(--serif); }
.table-scroll { overflow-x: auto; }
.sim-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.sim-table th, .sim-table td { text-align: left; padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: middle; font-size: .93rem; }
.sim-table thead th { font-size: .78rem; color: var(--muted); border-top: 0; text-transform: uppercase; letter-spacing: .03em; }
.sim-table th[scope=row] { font-weight: 600; }
.sim-table input { width: 110px; min-height: 40px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 400 .95rem var(--font); }
.sim-table .qty { color: var(--muted); white-space: nowrap; }
.sim-table .tot { font-weight: 700; white-space: nowrap; }
.sim-table tr.off { opacity: .45; }
.src-badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; margin-top: 3px; text-decoration: none; }
.src-badge.off { background: var(--ok-soft); color: var(--ok); }
.src-badge.com { background: var(--brand-soft); color: var(--brand); }
.src-badge.none { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.sim-big { display: grid; gap: 2px; margin-bottom: 12px; }
.sim-big span { color: var(--muted); font-size: .9rem; }
.sim-big strong { font-size: 2rem; font-family: var(--serif); color: var(--brand); }
.sim-big em { font-style: normal; color: var(--ink-2); font-weight: 600; }
.src-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.src-list li { overflow-wrap: anywhere; }
.ai-answer { margin-top: 14px; padding: 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }

/* ---------- Admin (Etapa 9) */
.site-banner { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 9px var(--gutter); background: var(--brand-soft); color: var(--brand); font-size: .9rem; font-weight: 600; text-align: center; }
.site-banner.warn { background: var(--accent-soft); color: var(--accent); }
.site-banner .bact { font-size: 1.1rem; color: inherit; }
.card.attn { display: flex; flex-direction: row; gap: 12px; align-items: center; text-align: left; width: 100%; font: inherit; color: inherit; cursor: pointer; }
.attn .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.attn .txt { flex: 1; display: grid; gap: 2px; min-width: 0; }
.attn .txt span { font-size: .85rem; color: var(--muted); }
.mini-chart { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 10px; }
.mini-chart figcaption { display: flex; justify-content: space-between; align-items: baseline; font-size: .88rem; color: var(--ink-2); margin-bottom: 10px; }
.mini-chart figcaption strong { font-size: 1.3rem; color: var(--ink); font-family: var(--serif); }
.mini-chart .bars { display: flex; align-items: flex-end; gap: 2px; height: 72px; border-bottom: 1px solid var(--line-strong); }
.mini-chart .bar { flex: 1; min-width: 2px; background: var(--brand); border-radius: 4px 4px 0 0; position: relative; outline: none; }
.mini-chart .bar:hover, .mini-chart .bar:focus-visible { background: var(--brand-hover, var(--brand)); opacity: .8; }
.mini-chart .bar:hover::after, .mini-chart .bar:focus-visible::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: var(--bg); font-size: .75rem; padding: 3px 8px; border-radius: 6px; z-index: 5; pointer-events: none; }
.mini-chart .bars .bar[style*="height:0%"] { min-height: 0; }
.mini-chart .axis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: 4px; }
.attn .go { color: var(--muted); flex: none; display: grid; }
.attn .go svg { width: 18px; height: 18px; }
.attn .ico svg { width: 20px; height: 20px; }
