:root {
  --bg: #06111d;
  --surface: #0b1a2a;
  --surface-2: #0f2236;
  --surface-3: #142b44;
  --line: rgba(143, 184, 222, .13);
  --line-2: rgba(143, 184, 222, .22);
  --text: #eaf2f9;
  --muted: #8ea6bd;
  --faint: #5f7891;
  --accent: #3dd6d0;
  --accent-2: #2b9bd6;
  --sun: #ffb547;
  --s-exc: #2fd6a0; --s-good: #a3da4f; --s-ok: #f4c44f; --s-low: #f28c4d; --s-bad: #ea5b52;
  --radius: 20px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 32px -16px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text); line-height: 1.45; font-size: 15px;
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(43,155,214,.22), transparent 60%),
    radial-gradient(700px 400px at -10% 30%, rgba(61,214,208,.08), transparent 60%),
    var(--bg);
  min-height: 100vh; padding-bottom: env(safe-area-inset-bottom);
  font-feature-settings: "tnum" 1;
}
a { color: var(--accent); }
button { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.warrow, .moon, .wicon { flex: none; vertical-align: middle; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

/* ---------- topo ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(6,17,29,.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1240px; margin: 0 auto; padding: calc(10px + env(safe-area-inset-top)) 18px 10px; display: flex; gap: 12px 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.brand { display: flex; gap: 11px; align-items: center; text-decoration: none; color: inherit; }
.brand > span { display: grid; }
.logo { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 6px 18px -6px rgba(43,155,214,.7); }
.b-title { font-weight: 800; font-size: 1.12rem; letter-spacing: -.2px; }
.b-sub { font-size: .76rem; color: var(--muted); }
.controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sel { position: relative; display: flex; align-items: center; }
.sel-ic { position: absolute; left: 10px; color: var(--accent); pointer-events: none; display: flex; }
.sel select {
  appearance: none; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238ea6bd'/%3E%3C/svg%3E") no-repeat right 11px center;
  color: var(--text); border: 1px solid var(--line-2); border-radius: 12px; padding: 9px 30px 9px 34px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 9px; cursor: pointer; font-size: .86rem; font-weight: 600; color: var(--muted); transition: background .15s, color .15s; }
.seg button:hover { color: var(--text); }
.seg button[aria-checked="true"] { background: linear-gradient(180deg, #2fb7c9, #2384b8); color: #fff; box-shadow: 0 4px 12px -4px rgba(43,155,214,.8); }
.seg.small button { padding: 5px 10px; font-size: .78rem; }
.icon-btn { display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; width: 40px; height: 38px; cursor: pointer; color: var(--text); transition: background .15s; }
.icon-btn:hover:not(:disabled) { background: var(--surface-3); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn.spin .ic { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- layout ---------- */
main { max-width: 1240px; margin: 0 auto; padding: 18px 18px 30px; display: grid; gap: 18px; }
main > * { min-width: 0; }
.card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
h2 { font-size: 1.05rem; margin: 0; font-weight: 800; letter-spacing: -.2px; }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); }
.eyebrow .muted { letter-spacing: 0; text-transform: none; font-weight: 500; }
.sec-head { display: flex; justify-content: space-between; align-items: center; margin: 2px 2px 10px; gap: 10px; }
.error { background: #3a1517; border: 1px solid #7a2a2e; color: #ffd6d6; padding: 12px 14px; border-radius: 14px; }

/* ---------- destaque ---------- */
.hero {
  --c: var(--s-good);
  position: relative; overflow: hidden; border-radius: 26px; border: 1px solid var(--line-2);
  background:
    radial-gradient(600px 300px at 12% 10%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%),
    linear-gradient(135deg, #12365a 0%, #0b2239 55%, #081a2c 100%);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; padding: 26px 26px 54px; box-shadow: var(--shadow);
}
.hero-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; cursor: pointer; }
.hero-side { display: grid; gap: 8px; align-content: center; }
.ring { --p: 0; width: 136px; height: 136px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255,255,255,.08) 0); display: grid; place-items: center; box-shadow: 0 0 40px -6px color-mix(in srgb, var(--c) 55%, transparent); }
.ring > div { width: 112px; height: 112px; border-radius: 50%; background: #0b2034; display: grid; place-items: center; text-align: center; align-content: center; }
.ring b { font-size: 2.6rem; line-height: 1; font-weight: 800; letter-spacing: -1px; }
.ring span { font-size: .72rem; color: var(--muted); }
.h-date { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.5px; line-height: 1.15; margin: 4px 0 2px; }
.h-lab { color: var(--c); }
.h-win { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 10px 0 12px; font-size: .95rem; }
.h-win b { font-size: 1.05rem; }
.h-win .ic { color: var(--accent); }
.conf { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); white-space: nowrap; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.18); }
.c-hi .dots i { background: var(--s-exc); } .c-mid .dots i:nth-child(-n+2) { background: var(--s-ok); } .c-lo .dots i:first-child { background: var(--s-low); }
.bars { width: 100%; height: auto; display: block; }
.bars text { font-family: var(--font); fill: var(--muted); }
.bar-g { cursor: pointer; }
.bar-g:hover rect:nth-child(2), .bar-g.on rect:nth-child(2) { stroke: #fff; stroke-width: 1.5; }
.b-val { font-size: 11px; font-weight: 800; fill: var(--text) !important; }
.b-wd { font-size: 10.5px; font-weight: 700; }
.b-dm { font-size: 10px; }
.bar-g.on .b-wd { fill: var(--text); }
.b-best { font-size: 13px; fill: var(--sun) !important; }
.b-warn { font-size: 12px; font-weight: 800; fill: #3a1a00 !important; }
.hero-waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46px; pointer-events: none; }
.hero-waves .w1 { fill: rgba(61,214,208,.10); animation: drift 14s linear infinite; }
.hero-waves .w2 { fill: rgba(43,155,214,.16); animation: drift 9s linear infinite reverse; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-300px); } }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); white-space: nowrap; }
.chip.pos { border-color: rgba(47,214,160,.35); background: rgba(47,214,160,.10); color: #b5f3dc; }
.chip.neg { border-color: rgba(234,91,82,.35); background: rgba(234,91,82,.10); color: #ffcbc5; }
.chip.warn { border-color: rgba(255,181,71,.45); background: rgba(255,181,71,.13); color: #ffe2a8; }

/* ---------- agora ---------- */
.now { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.tile { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: grid; gap: 6px; align-content: start; box-shadow: var(--shadow); min-width: 0; }
.tile .t-k { display: flex; align-items: center; gap: 7px; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .7px; }
.tile .t-k .ic { color: var(--accent); width: 16px; height: 16px; }
.tile .t-v { font-size: 1.35rem; font-weight: 800; letter-spacing: -.3px; display: flex; align-items: center; gap: 6px; }
.tile .t-v small { font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.tile .t-s { font-size: .78rem; color: var(--muted); }
.gauge { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.gauge i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.tile.warn-on { border-color: rgba(255,181,71,.5); background: linear-gradient(180deg, rgba(255,181,71,.14), var(--surface)); }
.tile.warn-on .t-k .ic { color: var(--sun); }

/* ---------- faixa de dias ---------- */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(112px, 1fr); gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; }
.day {
  --c: var(--s-ok); position: relative; scroll-snap-align: start; cursor: pointer; text-align: center;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 18px;
  padding: 12px 8px 10px; display: grid; gap: 6px; justify-items: center; transition: transform .15s, border-color .15s, box-shadow .15s;
}
.day:hover { transform: translateY(-3px); border-color: var(--line-2); }
.day.sel { border-color: var(--c); box-shadow: 0 0 0 1px var(--c) inset, 0 12px 26px -14px var(--c); }
.day .wd { font-weight: 800; font-size: .92rem; }
.day .dt { font-size: .74rem; color: var(--muted); margin-top: -5px; }
.day .sc { font-size: 1.6rem; font-weight: 800; color: var(--c); line-height: 1; }
.day .lb { font-size: .7rem; font-weight: 700; color: var(--c); text-transform: uppercase; letter-spacing: .6px; margin-top: -3px; }
.day .mbar { width: 70%; height: 4px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; }
.day .mbar i { display: block; height: 100%; background: var(--c); }
.day .win { font-size: .74rem; font-weight: 600; color: var(--text); }
.day .row { display: flex; gap: 4px; align-items: center; justify-content: center; font-size: .76rem; color: var(--muted); }
.day .row b { color: var(--text); font-weight: 700; }
.day .rank { position: absolute; top: 8px; right: 8px; font-size: .7rem; color: var(--sun); font-weight: 800; }
.day .wbadge { position: absolute; top: 8px; left: 8px; color: var(--sun); }
.day .wbadge .ic { width: 15px; height: 15px; }
.s-exc { --c: var(--s-exc); } .s-good { --c: var(--s-good); } .s-ok { --c: var(--s-ok); } .s-low { --c: var(--s-low); } .s-bad { --c: var(--s-bad); }

/* ---------- detalhe ---------- */
.detail { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); scroll-margin-top: 84px; }
.d-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 16px; align-items: flex-start; }
.d-title { font-size: 1.45rem; font-weight: 800; letter-spacing: -.4px; }
.d-sub { color: var(--muted); font-size: .88rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.d-right { display: flex; gap: 10px; align-items: center; }
.pill { display: inline-flex; align-items: baseline; gap: 6px; background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); color: var(--c); border-radius: 14px; padding: 5px 12px; font-weight: 800; }
.pill b { font-size: 1.5rem; line-height: 1.1; }
.d-chips { margin: 12px 0 14px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 -20px 16px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { border: 0; background: none; padding: 10px 12px 12px; cursor: pointer; font-weight: 700; font-size: .88rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tab .ic { width: 16px; height: 16px; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; }
.stack { display: grid; gap: 16px; align-content: start; min-width: 0; }
.panel { background: rgba(4, 12, 21, .45); border: 1px solid var(--line); border-radius: 16px; padding: 14px; min-width: 0; }
.p-title { display: flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; margin: 0 0 10px; }
.p-title .ic { color: var(--accent); width: 16px; height: 16px; }
.p-title .muted { text-transform: none; letter-spacing: 0; font-weight: 500; }

.factors { display: grid; gap: 9px; }
.factor { display: grid; grid-template-columns: 128px minmax(0, 1fr) 34px; gap: 10px; align-items: center; font-size: .84rem; }
.factor .fb { height: 8px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.factor .fb i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.factor .n { text-align: right; color: var(--muted); font-weight: 700; }
.factor .w { color: var(--faint); font-size: .76rem; }

.wins { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wcard { border-radius: 14px; padding: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); cursor: pointer; display: grid; gap: 4px; }
.wcard:hover { border-color: var(--line-2); }
.wcard .wt { font-size: 1.15rem; font-weight: 800; }
.wcard .ws { font-size: .78rem; color: var(--muted); }
.wcard.first { border-color: color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 9%, transparent); }

.heat { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; margin-top: 4px; }
.heat button { height: 34px; border: 0; border-radius: 6px; cursor: pointer; padding: 0; position: relative; }
.heat button.on { outline: 2px solid #fff; outline-offset: 1px; }
.heat-l { display: grid; grid-template-columns: repeat(8, 1fr); font-size: .7rem; color: var(--faint); margin-top: 4px; }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.kv > div { background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; min-width: 0; }
.kv .k { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }
.kv .v { font-weight: 700; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.kv .v small { color: var(--muted); font-weight: 500; }

.list { display: grid; gap: 6px; font-size: .86rem; }
.li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.035); }
.li.major { box-shadow: inset 3px 0 0 var(--accent); }
.li.minor { box-shadow: inset 3px 0 0 #6d93b3; }
.li.boost { box-shadow: inset 3px 0 0 var(--sun); }
.li .l { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tag { font-size: .68rem; padding: 2px 7px; border-radius: 6px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.tag.HW { background: rgba(92,195,255,.16); color: #a9dcff; }
.tag.LW { background: rgba(180,160,255,.16); color: #d6caff; }
.warnbox { border-radius: 12px; padding: 10px 12px; font-size: .86rem; display: flex; gap: 10px; align-items: flex-start; }
.warnbox.lv1 { background: rgba(255,214,0,.12); border: 1px solid rgba(255,214,0,.35); }
.warnbox.lv2 { background: rgba(255,140,0,.14); border: 1px solid rgba(255,140,0,.4); }
.warnbox.lv3 { background: rgba(234,91,82,.16); border: 1px solid rgba(234,91,82,.45); }
.warnbox.ok { background: rgba(47,214,160,.08); border: 1px solid rgba(47,214,160,.25); }
.warnbox .ic { margin-top: 1px; }

/* gráficos */
.chart-wrap { position: relative; }
.chart { width: 100%; height: auto; display: block; touch-action: pan-y; overflow: visible; }
.chart text { fill: var(--muted); font-size: 12px; font-family: var(--font); }
.c-night { fill: #040b14; } .c-day { fill: #12304c; } .c-golden { fill: var(--sun); opacity: .07; }
.c-grid { stroke: rgba(143,184,222,.16); stroke-dasharray: 2 4; } .c-vgrid { stroke: rgba(143,184,222,.1); }
.c-major { fill: var(--accent); } .c-minor { fill: #6d93b3; } .c-boost { fill: var(--sun); }
.c-ptxt { fill: #06202a !important; font-size: 10.5px !important; font-weight: 800; }
.c-tide { fill: none; stroke: #6fd0ff; stroke-width: 2.4; }
.c-hw { fill: #a9dcff; } .c-lw { fill: #d6caff; }
.c-ext { fill: var(--text) !important; font-weight: 700; font-size: 12.5px !important; paint-order: stroke; stroke: #06111d; stroke-width: 3.5px; }
.c-now { stroke: var(--sun); stroke-width: 1.6; stroke-dasharray: 4 3; } .c-now-t { fill: var(--sun) !important; font-weight: 700; }
.cross { stroke: #fff; stroke-opacity: .55; }
.hcell { cursor: pointer; } .hcell:hover { stroke: #fff; stroke-width: 1.5; } .hcell.on { stroke: #fff; stroke-width: 2.5; }
.c-band-models { fill: rgba(61,214,208,.14); }
.c-band-ens { fill: rgba(61,214,208,.24); }
.c-wind { fill: none; stroke: var(--accent); stroke-width: 2.6; }
.c-gust { fill: none; stroke: var(--sun); stroke-width: 1.8; stroke-dasharray: 5 4; }
.c-thr { stroke: rgba(242,140,77,.4); stroke-dasharray: 6 4; } .c-thr-t { fill: rgba(242,140,77,.85) !important; font-size: 11px !important; }
.c-rain { fill: #4fa8e8; opacity: .7; } .c-rain.on { opacity: 1; }
.c-wave { fill: none; stroke: #6fd0ff; stroke-width: 2.6; }
.c-small { font-size: 10.5px !important; fill: #a9dcff !important; }
.c-ipma { fill: rgba(255,181,71,.10); stroke: rgba(255,181,71,.5); stroke-dasharray: 4 4; }
.c-ipma-t { fill: #ffd28a !important; font-size: 11px !important; font-weight: 700; }
.c-sel { fill: #fff; stroke: #06111d; stroke-width: 2; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .74rem; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 14px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.legend i.ln { height: 3px; }
.legend i.dash { height: 0; border-top: 2px dashed var(--sun); }

.tip { position: fixed; z-index: 60; pointer-events: none; max-width: 250px; background: rgba(5,14,24,.96); border: 1px solid var(--line-2); border-radius: 12px; padding: 9px 11px; font-size: .8rem; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.tip b { color: var(--accent); }

.hd { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.hd-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.hd-top b { font-size: 1.05rem; }

/* tabelas */
.tbl-scroll { overflow-x: auto; }
.tbl { border-collapse: collapse; font-size: .82rem; width: 100%; }
.tbl th, .tbl td { padding: 7px 8px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { color: var(--muted); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .4px; }
.tbl td:first-child, .tbl th:first-child { text-align: left; }
.tbl tr.on td { background: rgba(61,214,208,.09); }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover td { background: rgba(255,255,255,.03); }
.tbl .cons td { font-weight: 800; color: var(--accent); border-top: 1px solid var(--line-2); }
.tbl .off td { color: var(--faint); }
.sc-badge { display: inline-block; min-width: 32px; padding: 2px 6px; border-radius: 7px; font-weight: 800; color: #06111d; }
.src { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; }
.src > div { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid var(--line); font-size: .84rem; }
.src .ok { color: var(--s-exc); } .src .ko { color: var(--s-bad); }
.src small { display: block; color: var(--muted); }

.about summary { cursor: pointer; font-weight: 800; font-size: 1rem; }
.about-body { font-size: .88rem; color: #c8d8e6; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px 24px; margin-top: 10px; }
.about h4 { margin: 10px 0 4px; color: var(--accent); font-size: .9rem; }
.about .warn { color: #ffe2a8; margin-top: 14px; }
footer { text-align: center; font-size: .76rem; color: var(--muted); padding: 0 18px 26px; max-width: 900px; margin: 0 auto; }

.skeleton { border-radius: 14px; background: linear-gradient(90deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 100%); background-size: 200% 100%; animation: sh 1.2s infinite; min-height: 90px; }
@keyframes sh { to { background-position: -200% 0; } }

@media (max-width: 1080px) {
  .now { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 14px; }
  .top-in { padding-left: 12px; padding-right: 12px; }
  .controls { width: 100%; }
  .sel { flex: 1 1 100%; } .sel select { width: 100%; }
  #mode { flex: 1; } #mode button { flex: 1; }
  .top-in { gap: 8px; }
  .d-right { flex-wrap: wrap; width: 100%; }
  .d-right .pill { margin-left: auto; }
  .d-title { font-size: 1.25rem; }
  main { padding: 12px 10px 24px; gap: 14px; }
  .hero { padding: 18px 16px 48px; border-radius: 22px; }
  .hero-main { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ring { width: 108px; height: 108px; } .ring > div { width: 88px; height: 88px; } .ring b { font-size: 2.1rem; }
  .now { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile { padding: 11px; } .tile .t-v { font-size: 1.15rem; }
  .detail { padding: 14px; border-radius: 20px; }
  .tabs { margin: 0 -14px 14px; padding: 0 8px; }
  .wins { grid-template-columns: 1fr; }
  .factor { grid-template-columns: 104px minmax(0, 1fr) 30px; }
  .chart-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
  .chart { min-width: 620px; }
  .heat button { height: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---------- páginas (cabeçalho de página, SEO, início) ---------- */
.page-head { display: grid; gap: 4px; margin: 2px 2px -4px; }
.page-head h1 { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 800; letter-spacing: -.4px; }
.crumbs { font-size: .8rem; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--accent); }
.seo h2 { font-size: 1rem; margin: 18px 0 8px; } .seo h2:first-child { margin-top: 0; }
.seo p { font-size: .9rem; color: #c8d8e6; }
.seo .near a { color: var(--accent); text-decoration: none; font-weight: 600; } .seo .near a:hover { text-decoration: underline; }
.small { font-size: .8rem; }

.home-hero { position: relative; overflow: hidden; border-radius: 26px; border: 1px solid var(--line-2); padding: 34px 30px 64px;
  background: radial-gradient(700px 320px at 15% 0%, rgba(61,214,208,.22), transparent 70%), linear-gradient(135deg, #12365a 0%, #0b2239 55%, #081a2c 100%); box-shadow: var(--shadow); }
.home-hero h1 { font-size: clamp(1.8rem, 4.4vw, 3rem); line-height: 1.08; margin: 8px 0 10px; font-weight: 800; letter-spacing: -1px; max-width: 16ch; }
.home-hero .lead { max-width: 62ch; color: #c8d8e6; margin: 0 0 18px; font-size: 1rem; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px; font-weight: 800; text-decoration: none; color: #04202a; background: linear-gradient(180deg, #4fe0d9, #2bb6c4); box-shadow: 0 8px 20px -8px rgba(61,214,208,.7); }
.btn.ghost { background: rgba(255,255,255,.06); color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.btn[hidden] { display: none; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.home-grid h2 { margin-bottom: 12px; }
.opps { display: grid; gap: 8px; }
.opp { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: inherit; background: rgba(255,255,255,.035); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.opp:hover { border-color: var(--c); transform: translateX(2px); }
.o-score { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; color: #06111d; background: var(--c); }
.o-main, .o-when { display: grid; min-width: 0; } .o-when { text-align: right; }
.o-main small, .o-when small { color: var(--muted); font-size: .76rem; }
.map-card { position: sticky; top: 84px; }
.map-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.map-head h2 { margin: 0 !important; }
.pt-map { width: 100%; max-height: 640px; height: auto; display: block; }
.pt-map .coast { fill: none; stroke: rgba(143,184,222,.28); stroke-width: 2; stroke-linejoin: round; }
.pt-map circle { stroke: #06111d; stroke-width: 2; transition: r .15s; }
.pt-map .dot:hover circle { r: 10; stroke: #fff; }
.pt-map .lbl { fill: var(--muted); font-size: 12px; font-family: var(--font); }
.search { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; color: var(--text); padding: 9px 12px; font: inherit; min-width: 220px; }
.regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 14px; }
.region[hidden] { display: none; }
.region h2 { margin-bottom: 8px; }
.rlist { display: grid; gap: 2px; }
.rrow { display: grid; grid-template-columns: minmax(0, 1fr) auto 92px; gap: 10px; align-items: center; padding: 8px 8px; border-radius: 10px; text-decoration: none; color: inherit; }
.rrow:hover { background: rgba(255,255,255,.05); }
.rrow[hidden] { display: none; }
.rname { font-weight: 700; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rname small { color: var(--muted); font-weight: 500; }
.rcells { display: grid; grid-auto-flow: column; grid-auto-columns: 12px; gap: 3px; }
.rcells i { height: 18px; border-radius: 3px; }
.rbest { font-size: .78rem; color: var(--muted); text-align: right; white-space: nowrap; }
.rbest b { font-size: .95rem; }
@media (max-width: 900px) { .home-grid { grid-template-columns: minmax(0, 1fr); } .map-card { position: static; } .pt-map { max-height: 520px; } }
@media (max-width: 560px) {
  .home-hero { padding: 24px 18px 56px; }
  .rrow { grid-template-columns: minmax(0, 1fr) 80px; } .rcells { grid-column: 1 / -1; grid-row: 2; grid-auto-columns: minmax(0, 1fr); }
  .opp { grid-template-columns: 44px minmax(0, 1fr); } .o-when { grid-column: 2; text-align: left; } .o-score { width: 40px; height: 40px; }
  .search { min-width: 0; width: 100%; }
  .sec-head { flex-wrap: wrap; }
}

/* ---------- fase 2: ações, diálogos, espécies, regras, favoritos ---------- */
.page-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 16px; }
.page-head .crumbs, .page-head h1 { grid-column: 1; }
.ph-actions { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.act { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); border-radius: 11px; padding: 7px 11px; font-weight: 700; font-size: .82rem; cursor: pointer; white-space: nowrap; }
.act:hover { background: var(--surface-3); }
.act .ic { width: 16px; height: 16px; color: var(--accent); }
.act.on { border-color: rgba(255,181,71,.6); background: rgba(255,181,71,.12); }
.act.on .ic { color: var(--sun); fill: var(--sun); }
.act.small { padding: 5px 9px; font-size: .76rem; }
dialog#dlg { border: 1px solid var(--line-2); border-radius: 20px; background: #0b1a2a; color: var(--text); padding: 0; width: min(560px, calc(100vw - 24px)); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
dialog#dlg::backdrop { background: rgba(2, 8, 15, .7); backdrop-filter: blur(3px); }
.dlg-close { position: absolute; top: 10px; right: 10px; margin: 0; }
.dlg-close button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; }
.dlg-body { padding: 22px 22px 20px; }
.dlg-body h3 { display: flex; align-items: center; gap: 8px; margin: 0 30px 10px 0; font-size: 1.1rem; }
.dlg-body h3 .ic { color: var(--accent); }
.dlg-body p { font-size: .9rem; color: #c8d8e6; }
.dlg-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.dlg-row .btn .ic { width: 16px; height: 16px; }
.dlg-code { display: flex; gap: 8px; align-items: center; background: #06111d; border: 1px solid var(--line); border-radius: 10px; padding: 8px 8px 8px 12px; margin: 8px 0; }
.dlg-code code { flex: 1; min-width: 0; font-size: .76rem; color: #a9dcff; overflow-wrap: anywhere; max-height: 90px; overflow: auto; }
.dlg-preview { margin-top: 12px; }

.splist { display: grid; gap: 10px; }
.sp { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: rgba(255,255,255,.03); display: grid; gap: 8px; }
.sp.off { opacity: .6; }
.sp-head { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.sp-rank { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: .8rem; background: rgba(255,255,255,.07); color: var(--muted); }
.sp-name { display: grid; min-width: 0; }
.sp-name b { font-size: 1rem; } .sp-name i { color: var(--faint); font-size: .76rem; }
.sp-name span { color: var(--muted); font-size: .78rem; }
.sp-score { font-size: 1.5rem; font-weight: 800; color: var(--c); }
.sp .fb { height: 6px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; }
.sp .fb i { display: block; height: 100%; background: var(--c); }
.sp-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; color: var(--muted); }
.sp-meta span { display: inline-flex; align-items: center; gap: 5px; } .sp-meta b { color: var(--text); }
.sp-meta .ic { width: 14px; height: 14px; color: var(--accent); }
.sp details summary { cursor: pointer; font-size: .8rem; font-weight: 700; color: var(--accent); }
.sp details p { margin: 6px 0 0; font-size: .86rem; color: #c8d8e6; }
.rules { display: grid; gap: 10px; }
.rules b { font-size: .88rem; }
.rules p { margin: 2px 0 0; font-size: .84rem; color: #c8d8e6; }

.favs h2 { margin-bottom: 8px; }
.seo .species-list { display: grid; gap: 4px; padding-left: 18px; font-size: .9rem; color: #c8d8e6; }
@media (max-width: 720px) {
  .page-head { grid-template-columns: minmax(0, 1fr); }
  .ph-actions { grid-column: 1; grid-row: auto; justify-content: flex-start; }
}

/* ---------- fase 3: capturas, precisão ---------- */
.capform .fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.capform label { display: grid; gap: 4px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.capform label[hidden] { display: none; }
.capform input, .capform select { background: #06111d; border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); padding: 8px 10px; font: inherit; font-size: .9rem; }
.capform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.acc-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.acc-hero .tile .t-v { font-size: 1.6rem; }
.accbars { display: grid; gap: 10px; }
.accbar { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; font-size: .82rem; }
.accbar .two { display: grid; gap: 3px; }
.accbar .two div { display: grid; grid-template-columns: minmax(0, 1fr) 70px; gap: 8px; align-items: center; }
.accbar .two i { display: block; height: 10px; border-radius: 5px; }
.accbar .two span { color: var(--muted); font-size: .76rem; text-align: right; }
@media (max-width: 560px) { .capform .fgrid { grid-template-columns: 1fr; } }

/* =========================================================
   Redesign UX: menos ruído, uma resposta clara, linguagem simples
   ========================================================= */
/* cabeçalho compacto */
.top-in { padding-top: calc(8px + env(safe-area-inset-top)); padding-bottom: 8px; flex-wrap: nowrap; }
.logo { width: 34px; height: 34px; border-radius: 10px; }
.b-title { font-size: 1.05rem; white-space: nowrap; }
.pick { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 60vw; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 12px 8px 10px; color: var(--text); font-weight: 700; font-size: .9rem; cursor: pointer; }
.pick:hover { background: var(--surface-3); }
.pick .ic { width: 16px; height: 16px; color: var(--accent); }
.pick .ic:last-child { color: var(--muted); }
.pick-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* lista de pesqueiros */
dialog.picker { border: 0; padding: 0; margin: auto; width: min(560px, 100vw); height: min(760px, 100dvh); max-height: 100dvh; max-width: 100vw; background: #0a1826; color: var(--text); border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.6); display: none; flex-direction: column; }
dialog.picker[open] { display: flex; }
dialog.picker::backdrop { background: rgba(2, 8, 15, .72); backdrop-filter: blur(3px); }
.pk-top { display: flex; gap: 8px; padding: 14px; border-bottom: 1px solid var(--line); }
.pk-search { flex: 1; display: flex; align-items: center; gap: 8px; background: #06111d; border: 1px solid var(--line-2); border-radius: 14px; padding: 0 12px; }
.pk-search .ic { color: var(--muted); }
.pk-search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: inherit; font-size: 1rem; padding: 12px 0; outline: none; }
.pk-body { overflow-y: auto; padding: 8px 14px 24px; }
.pk-near { display: flex; align-items: center; gap: 8px; width: 100%; margin: 6px 0 4px; padding: 12px 14px; border-radius: 14px; border: 1px dashed rgba(61,214,208,.45); background: rgba(61,214,208,.08); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.pk-near .ic { color: var(--accent); }
.pk-h { font-size: .7rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin: 16px 2px 6px; }
.pk-item { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 11px 10px; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 600; }
.pk-item:hover, .pk-item:focus-visible { background: rgba(255,255,255,.06); }
.pk-item small { color: var(--muted); font-weight: 500; font-size: .78rem; text-align: right; }
.pk-item[hidden], .pk-group[hidden] { display: none; }
.pk-all .pk-item small { display: none; }

/* cabeçalho da página do pesqueiro */
.spot .page-head { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 0; }
.ph-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px 16px; flex-wrap: wrap; }
.page-head h1 { display: grid; gap: 0; }
.h1-name { font-size: clamp(1.7rem, 4.5vw, 2.4rem); font-weight: 800; letter-spacing: -.8px; line-height: 1.05; }
.h1-sub { font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.spot .ph-actions { grid-column: auto; grid-row: auto; display: flex; gap: 6px; }
.act span { display: inline; }
.modebar { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.mb-q { font-weight: 700; font-size: .88rem; }
.mb-hint { font-size: .8rem; }
#mode button { display: inline-flex; align-items: center; gap: 6px; }
#mode button .ic { width: 15px; height: 15px; }
.alertbar { display: grid; gap: 8px; }
.alertbar:empty { display: none; }

/* a resposta */
.answer { --c: var(--s-ok); position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--line-2); padding: 20px; display: grid; gap: 14px;
  background: radial-gradient(600px 260px at 0% 0%, color-mix(in srgb, var(--c) 20%, transparent), transparent 70%), linear-gradient(135deg, #12365a 0%, #0b2239 60%, #081a2c 100%); box-shadow: var(--shadow); }
.ans-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.answer .ring { width: 104px; height: 104px; }
.answer .ring > div { width: 84px; height: 84px; }
.answer .ring b { font-size: 2.1rem; }
.ans-day { margin: 2px 0 8px; font-size: clamp(1.35rem, 3.4vw, 1.9rem); font-weight: 800; letter-spacing: -.5px; line-height: 1.15; }
.ans-when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 1rem; }
.ans-when .ic { color: var(--accent); }
.badge-lab { --c: var(--s-ok); display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .85rem; background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); color: var(--c); white-space: nowrap; }
.badge-lab.s-exc { --c: var(--s-exc); } .badge-lab.s-good { --c: var(--s-good); } .badge-lab.s-ok { --c: var(--s-ok); } .badge-lab.s-low { --c: var(--s-low); } .badge-lab.s-bad { --c: var(--s-bad); }
.badge-lab b { font-weight: 800; }
.badge-lab span { font-weight: 700; opacity: .8; font-size: .8rem; }
.reasons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 6px 16px; }
.reasons li { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; line-height: 1.35; }
.reasons li .ic { width: 17px; height: 17px; margin-top: 1px; }
.reasons li.pos .ic { color: var(--s-exc); }
.reasons li.neg .ic { color: var(--s-low); }
.reasons li.warn { color: #ffe2a8; }
.reasons li.warn .ic { color: var(--sun); }
.reasons li.neu .ic { color: var(--muted); }
.ans-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.link-btn { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--accent); font-weight: 700; cursor: pointer; padding: 4px 0; font-size: .92rem; }
.link-btn .ic { width: 16px; height: 16px; }
.ans-today { font-size: .9rem; color: #c8d8e6; padding-top: 12px; border-top: 1px solid var(--line); }
.nowline { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: .84rem; color: #c8d8e6; padding-top: 12px; border-top: 1px solid var(--line); }
.nowline span { display: inline-flex; align-items: center; gap: 5px; }
.nowline .ic { width: 15px; height: 15px; color: var(--accent); }
.nl-k { font-size: .7rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }

/* dia a dia */
.week .sec-head { flex-wrap: wrap; }
.scale { display: flex; gap: 10px; flex-wrap: wrap; font-size: .72rem; color: var(--muted); }
.scale span { display: inline-flex; align-items: center; gap: 5px; }
.scale span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.strip { grid-auto-columns: minmax(96px, 1fr); }
.day { gap: 4px; padding: 12px 6px 10px; }
.day .wd { font-size: .95rem; }
.day .dt { margin-top: -3px; }
.day .lb { font-size: .74rem; text-transform: none; letter-spacing: 0; margin-top: 2px; }
.day .sc { font-size: 1.45rem; }
.day .win { font-size: .74rem; color: var(--muted); font-weight: 600; }
.day .star { position: absolute; top: 7px; right: 7px; color: var(--sun); }
.day .star .ic { width: 15px; height: 15px; fill: var(--sun); }

/* detalhe do dia */
.d-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.d-mid { display: grid; gap: 6px; justify-items: center; text-align: center; }
.d-title { font-size: 1.3rem; }
.d-sub { justify-content: center; gap: 10px; }
.d-best { font-size: .92rem; color: #c8d8e6; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.d-best .ic { color: var(--accent); }
.detail .tabs { margin-top: 16px; }
.tab { font-size: .9rem; }
details.more > summary { cursor: pointer; font-weight: 700; font-size: .9rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; font-size: 1.2rem; color: var(--accent); font-weight: 600; }
details.more[open] > summary::after { content: "\2013"; }
.hd { margin-top: 12px; padding-top: 12px; }
.hd p .ic { width: 15px; height: 15px; vertical-align: -3px; color: var(--s-exc); }
.sp-name i { display: none; }

/* início */
.bigsearch { display: flex; align-items: center; gap: 12px; width: min(560px, 100%); margin: 4px 0 14px; padding: 15px 18px; border-radius: 16px; border: 1px solid rgba(255,255,255,.18); background: rgba(6,17,29,.55); color: var(--muted); font: inherit; font-size: 1.05rem; cursor: pointer; text-align: left; box-shadow: 0 10px 30px -14px rgba(0,0,0,.8); }
.bigsearch:hover { border-color: var(--accent); color: var(--text); }
.bigsearch .ic { color: var(--accent); width: 20px; height: 20px; }
.rhead { display: grid; grid-template-columns: minmax(0, 1fr) auto 92px; gap: 10px; padding: 0 8px 4px; font-size: .66rem; color: var(--faint); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.rhead > span:last-child { text-align: right; }
.rhead .rcells i { height: auto; text-align: center; font-style: normal; background: none; }

@media (max-width: 720px) {
  .act span { display: none; }
  .act { padding: 9px; border-radius: 12px; }
}
@media (max-width: 560px) {
  .top-in { gap: 10px; }
  .b-title { display: none; }
  .pick { max-width: none; flex: 1; justify-content: space-between; }
  .pick-name { flex: 1; text-align: left; }
  dialog.picker { width: 100vw; height: 100dvh; border-radius: 0; }
  .answer { padding: 16px; border-radius: 20px; }
  .ans-main { grid-template-columns: 1fr; gap: 10px; }
  .answer .ring { display: none; }
  .reasons { grid-template-columns: 1fr; }
  .d-head { grid-template-columns: 40px minmax(0, 1fr) 40px; }
  .d-title { font-size: 1.1rem; }
  .rhead { grid-template-columns: minmax(0, 1fr) 80px; }
  .rhead .rcells { display: none; }
  .modebar .mb-hint { display: none; }
  #mode { flex: 1; }
  #mode button { flex: 1; justify-content: center; }
}

/* separadores: cabem sempre no ecrã */
.detail .tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; padding: 0; margin-left: 0; margin-right: 0; }
.detail .tab { justify-content: center; padding: 10px 6px 12px; }
@media (max-width: 560px) {
  .detail .tab .ic { display: none; }
  .detail .tab { font-size: .82rem; padding: 10px 2px 12px; white-space: normal; text-align: center; line-height: 1.15; }
}
.seo-more > summary { font-size: 1rem; margin-top: 6px; }

/* lista de pesqueiros: só a lista desliza; a pesquisa fica sempre visível */
dialog.picker { overflow: hidden; }
dialog.picker .pk-top { flex: none; }
dialog.picker .pk-body { flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; }

/* a cor da resposta segue a nota */
.answer.s-exc { --c: var(--s-exc); } .answer.s-good { --c: var(--s-good); } .answer.s-ok { --c: var(--s-ok); } .answer.s-low { --c: var(--s-low); } .answer.s-bad { --c: var(--s-bad); }
@media (max-width: 560px) { .brand > .b-title { display: none; } }

/* marca Picada: o ponto do i é uma boia */
.brand { gap: 0; }
.wm { position: relative; display: inline-flex; align-items: baseline; font-weight: 800; font-size: 1.6rem; letter-spacing: -1.2px; line-height: 1; color: #f4f8fb; padding-top: .35em; }
.wm-i { position: relative; display: inline-block; }
.wm-dot { position: absolute; left: 50%; bottom: .53em; width: .62em; height: .93em; transform: translateX(-52%); overflow: visible; }
.brand:hover .wm-dot { animation: bob 1.2s ease-in-out; }
@keyframes bob { 0%, 100% { transform: translate(-52%, 0); } 30% { transform: translate(-52%, .18em) rotate(-8deg); } 60% { transform: translate(-52%, -.05em); } }
@media (max-width: 560px) { .wm { font-size: 1.4rem; } }
.brand > .wm { display: inline-flex; white-space: nowrap; }

/* ===== essencial + zona técnica ===== */
.star-k { color: var(--sun); }
.answer { gap: 16px; scroll-margin-top: 84px; }
.ans-nav { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; justify-items: center; }
.best-is { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--sun); text-align: center; }
.best-is .ic, .best-go .ic:first-child { width: 15px; height: 15px; fill: var(--sun); color: var(--sun); }
.best-go { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; background: rgba(255,196,79,.1); border: 1px solid rgba(255,196,79,.35); color: #ffe2a8; border-radius: 999px; padding: 6px 12px; font-size: .84rem; cursor: pointer; font-weight: 600; }
.best-go b { color: #fff; }
.best-go:hover { background: rgba(255,196,79,.18); }
.best-go .ic:last-child { width: 14px; height: 14px; }
.ans-day { margin: 0 0 8px; }
.ans-hours { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); }
.ah-k { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--accent); }
.ah-k .ic { width: 16px; height: 16px; }
.ah-v { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.ah-v b { font-size: 1.35rem; font-weight: 800; letter-spacing: -.3px; }
.ans-warn { display: grid; gap: 8px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tile { background: rgba(4,12,21,.4); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: grid; gap: 3px; align-content: start; min-width: 0; }
.t-k { display: flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.t-k .ic { width: 15px; height: 15px; color: var(--accent); }
.t-v { font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.t-v .tag { min-width: 46px; text-align: center; }
.t-v2 { font-size: .8rem; color: var(--muted); }
.t-s { font-size: .8rem; font-weight: 700; margin-top: 4px; display: inline-flex; align-items: center; gap: 6px; }
.t-s::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.t-s.ok { color: var(--s-exc); } .t-s.mid { color: var(--s-ok); } .t-s.bad { color: var(--s-bad); }
.ans-fish { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.af-k { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--accent); }
.af-k .ic { width: 16px; height: 16px; }
.af-list { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); color: var(--text); font-weight: 700; font-size: .88rem; cursor: pointer; }
.fchip b { font-size: .76rem; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c); }
.fchip:hover { border-color: var(--c); }
.answer .reasons li { font-size: .88rem; color: #c8d8e6; }
@media (min-width: 900px) {
  .answer { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: 22px; align-content: start; }
  .answer > * { grid-column: 1; }
  .answer > .ans-nav, .answer > .nowline { grid-column: 1 / -1; }
  .answer > .tiles { grid-column: 2; grid-row: 2 / span 6; align-self: start; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .answer .tile { padding: 12px 14px; }
}
@media (max-width: 640px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .answer { padding: 16px; gap: 14px; }
  .ah-v b { font-size: 1.2rem; }
}
/* faixa dos dias mais compacta (a hora está no cartão) */
.day { gap: 3px; padding: 10px 6px 10px; }
.day .sc { margin-top: 2px; }
/* zona técnica */
.detail.tech { padding: 0; overflow: hidden; background: var(--surface); }
.tech-head { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 16px 18px; background: none; border: 0; color: var(--text); cursor: pointer; text-align: left; }
.tech-head:hover { background: rgba(255,255,255,.03); }
.th-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); }
.th-ic .ic { width: 18px; height: 18px; }
.th-txt { display: grid; gap: 2px; }
.th-txt b { font-size: 1.02rem; }
.th-txt small { color: var(--muted); font-size: .8rem; }
.th-chev .ic { width: 20px; height: 20px; color: var(--muted); transition: transform .2s; }
.detail.tech.open .th-chev .ic { transform: rotate(180deg); }
.tech-body { padding: 0 20px 20px; border-top: 1px solid var(--line); }
.tech-day { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 700; padding: 14px 0 0; color: #c8d8e6; }
.detail.tech .tabs { margin: 12px -20px 16px; }
@media (max-width: 640px) {
  .tech-head { padding: 14px; }
  .tech-body { padding: 0 14px 14px; }
  .detail.tech .tabs { margin: 10px -14px 14px; }
}

/* ===== inicial: essencial + zona técnica ===== */
.hero-upd { margin: 12px 0 0; font-size: .8rem; color: var(--muted); }
.hero-cta:not(:has(a:not([hidden]))) { display: none; }
.favs h2 { display: flex; align-items: center; gap: 8px; }
.favs h2 .ic { width: 18px; height: 18px; color: var(--sun); fill: var(--sun); }
.best-spots h2, .favs h2 { margin-bottom: 12px; }
@media (min-width: 900px) { .best-spots .opps, .favs .opps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
details.tech-home { padding: 0; overflow: hidden; background: var(--surface); }
details.tech-home > summary { list-style: none; }
details.tech-home > summary::-webkit-details-marker { display: none; }
details.tech-home[open] .th-chev .ic { transform: rotate(180deg); }
.tech-home-body { border-top: 1px solid var(--line); padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 18px; align-items: start; }
.tech-home .map-card { position: sticky; top: 84px; }
.tech-home .regions { grid-template-columns: minmax(0, 1fr); }
.tech-home .region.card { background: rgba(4,12,21,.45); box-shadow: none; }
@media (max-width: 900px) { .tech-home-body { grid-template-columns: minmax(0, 1fr); padding: 14px; } .tech-home .map-card { position: static; } }

/* ===== tipografia: uma escala só =====
   13 px é o mínimo para qualquer texto; rótulos em letra normal (sem MAIÚSCULAS espaçadas);
   números importantes grandes; texto secundário com mais contraste. */
:root {
  --fs-xs: .8125rem;   /* 13 */
  --fs-sm: .875rem;    /* 14 */
  --fs-md: 1rem;       /* 16 */
  --fs-lg: 1.125rem;   /* 18 */
  --fs-xl: 1.375rem;   /* 22 */
  --muted: #9db3c8;
}
body { font-size: 16px; line-height: 1.5; }
h1, h2, h3, .ans-day, .h1-name { line-height: 1.15; text-wrap: balance; }
h2, .sec-head h2 { font-size: 1.2rem; letter-spacing: -.3px; }
.small, p.small { font-size: var(--fs-sm); }

/* rótulos: discretos mas legíveis */
.eyebrow, .p-title, .kv .k, .t-k, .ah-k, .af-k, .nl-k, .pk-h, .best-is, .tbl th, .tag, .day .lb, .rhead {
  text-transform: none; letter-spacing: 0;
}
.p-title, .kv .k, .t-k, .pk-h, .tbl th { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.eyebrow { font-size: var(--fs-sm); font-weight: 700; }
.ah-k, .af-k { font-size: var(--fs-sm); font-weight: 700; }
.nl-k { font-size: var(--fs-sm); font-weight: 800; }
.best-is { font-size: var(--fs-sm); font-weight: 700; }
.tag { font-size: .75rem; font-weight: 700; padding: 2px 8px; }
.rhead { font-size: .75rem; }

/* cabeçalho do pesqueiro */
.h1-name { font-size: clamp(1.75rem, 5vw, 2.5rem); letter-spacing: -.9px; }
.h1-sub, .mb-q { font-size: var(--fs-sm); }
.mb-hint { font-size: var(--fs-sm); }
.seg button { font-size: var(--fs-sm); }
.seg.small button { font-size: var(--fs-xs); }

/* faixa dos dias */
.day .wd { font-size: var(--fs-md); }
.day .dt { font-size: var(--fs-xs); }
.day .sc { font-size: 1.65rem; letter-spacing: -.5px; }
.day .lb { font-size: var(--fs-xs); font-weight: 700; }

/* cartão do essencial */
.ans-day { font-size: clamp(1.45rem, 4vw, 2rem); letter-spacing: -.6px; }
.badge-lab { font-size: var(--fs-sm); }
.badge-lab span { font-size: var(--fs-xs); }
.ah-v b { font-size: clamp(1.4rem, 4vw, 1.75rem); letter-spacing: -.5px; }
.ah-v .muted { font-size: var(--fs-sm); }
.t-v { font-size: 1.0625rem; letter-spacing: -.2px; }
.t-v2 { font-size: var(--fs-sm); }
.t-s { font-size: var(--fs-sm); }
.fchip { font-size: var(--fs-sm); }
.fchip b { font-size: var(--fs-xs); }
.answer .reasons li { font-size: .9375rem; }
.conf { font-size: var(--fs-xs); }
.nowline { font-size: var(--fs-sm); }
.best-go { font-size: var(--fs-sm); }
.ring span { font-size: var(--fs-xs); }
@media (max-width: 640px) {
  /* a nota volta a ver-se no telemóvel, mais pequena */
  .answer .ring { display: grid; width: 78px; height: 78px; }
  .answer .ring > div { width: 63px; height: 63px; }
  .answer .ring b { font-size: 1.65rem; }
  .answer .ring span { display: none; }
  .ans-main { gap: 14px; }
  .ans-day { font-size: 1.4rem; margin-bottom: 6px; }
}

/* zona técnica e painéis */
.th-txt b { font-size: var(--fs-lg); }
.th-txt small { font-size: var(--fs-sm); }
.tech-day { font-size: var(--fs-md); }
.tab, .detail .tab { font-size: var(--fs-sm); }
.legend, .src small, .sp-name span, .sp-meta, .factor, .rules p { font-size: var(--fs-xs); }
.kv .v { font-size: var(--fs-md); }
.tbl { font-size: var(--fs-sm); }
.hd-top b { font-size: var(--fs-lg); }
.warnbox { font-size: var(--fs-sm); line-height: 1.45; }
details.more > summary, .about summary { font-size: var(--fs-md); }

/* página inicial */
.home-hero h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); letter-spacing: -1.2px; }
.home-hero .lead { font-size: var(--fs-lg); }
.hero-upd { font-size: var(--fs-xs); }
.o-score { font-size: 1.3rem; }
.o-main b, .o-when b { font-size: var(--fs-md); }
.o-main small, .o-when small { font-size: var(--fs-xs); }
.rname { font-size: var(--fs-sm); }
.rbest { font-size: var(--fs-xs); }
.pk-item small { font-size: var(--fs-xs); }
footer { font-size: var(--fs-xs); line-height: 1.6; }
.updated, .crumbs { font-size: var(--fs-xs); }
.tile .t-k { text-transform: none; letter-spacing: 0; font-size: var(--fs-xs); }
.ans-when .badge-lab span { display: none; }   /* o número já está no anel */
@media (max-width: 640px) {
  .answer .ans-main { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .ah-v b { font-size: 1.3rem; }
  .ah-v { gap: 2px 8px; }
}
.day .wd { font-size: .9375rem; }
.day .star { top: 4px; right: 4px; }
.day .star .ic { width: 13px; height: 13px; }
.day { padding-top: 13px; }

/* ===== cores e espaços =====
   Papéis: azul-céu = tocar/escolher; verde→vermelho = só notas e veredictos; amarelo-sol = só "melhor dia".
   Dentro dos cartões não há contornos, só fundos. Espaços: 4 · 8 · 12 · 16 · 24 · 32. */
:root {
  --bg: #07121f;
  --surface: #0c1a2a;
  --surface-2: #11233a;
  --surface-3: #183150;
  --line: rgba(150, 190, 230, .10);
  --line-2: rgba(150, 190, 230, .18);
  --fill: rgba(255, 255, 255, .045);
  --fill-2: rgba(255, 255, 255, .075);
  --accent: #56c8f5;
  --accent-2: #2b8fd6;
  --accent-bg: rgba(86, 200, 245, .10);
  --s-exc: #3fd68a; --s-good: #a9d651; --s-ok: #f2c94c; --s-low: #f59a4a; --s-bad: #ef5f5f;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px;
  --radius: 20px;
}
body {
  background:
    radial-gradient(1000px 520px at 85% -10%, rgba(43, 143, 214, .16), transparent 60%),
    var(--bg);
}

/* ritmo da página */
main { gap: var(--sp-5); padding: var(--sp-5) 20px var(--sp-6); }
.card { padding: var(--sp-5); border-color: var(--line); background: var(--surface); }
.sec-head { margin: 0 2px var(--sp-3); }
.page-head { gap: var(--sp-2) var(--sp-4); margin: 0 2px; }
.page-head h1 { gap: var(--sp-1); }
.crumbs { margin-bottom: var(--sp-1); }
.modebar { gap: var(--sp-2) var(--sp-3); margin-top: var(--sp-2); }
@media (max-width: 640px) {
  main { gap: var(--sp-4); padding: var(--sp-4) 14px var(--sp-6); }
  .card { padding: var(--sp-4); }
}

/* interação = azul-céu */
a { color: var(--accent); }
.seg { background: var(--surface); border-color: var(--line-2); }
.seg button[aria-checked="true"] { background: var(--accent); color: #04121d; box-shadow: none; }
.btn { background: var(--accent); color: #04121d; box-shadow: 0 8px 20px -10px rgba(86, 200, 245, .7); }
.btn:hover { filter: brightness(1.08); }
.act { background: var(--surface); border-color: var(--line-2); }
.act:hover, .icon-btn:hover:not(:disabled) { background: var(--surface-2); }
.icon-btn { background: var(--fill); border-color: transparent; }
.link-btn, .act .ic { color: var(--accent); }
.tab[aria-selected="true"] { border-bottom-color: var(--accent); }
.bigsearch:hover { border-color: var(--accent); }

/* faixa dos dias: a seleção é azul (é um botão); a nota tem a cor da nota */
.strip { gap: var(--sp-2); padding: 2px 2px var(--sp-3); }
.day { background: var(--surface); border-color: var(--line); border-radius: 16px; box-shadow: none; }
.day:hover { transform: none; background: var(--surface-2); border-color: var(--line-2); }
.day.sel { background: var(--surface-3); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.day .dt { color: var(--muted); }

/* cartão do essencial */
.answer {
  padding: var(--sp-5); gap: var(--sp-4); border-color: var(--line-2);
  background:
    radial-gradient(520px 240px at 0% 0%, color-mix(in srgb, var(--c) 13%, transparent), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
@media (min-width: 900px) { .answer { column-gap: var(--sp-6); } }
@media (max-width: 640px) { .answer { padding: var(--sp-4); gap: var(--sp-4); } }
.ans-hours { background: var(--accent-bg); border: 0; padding: var(--sp-3) var(--sp-4); }
.ah-k, .af-k { color: var(--muted); }
.ah-k .ic, .af-k .ic, .t-k .ic { color: var(--accent); }
.tiles { gap: var(--sp-2); }
.tile { background: var(--fill); border: 0; padding: var(--sp-3) var(--sp-4); gap: var(--sp-1); border-radius: 14px; }
.fchip { background: var(--fill); border: 1px solid transparent; }
.fchip:hover { border-color: var(--line-2); background: var(--fill-2); }
.answer .reasons { gap: var(--sp-2) var(--sp-4); }
.conf { background: var(--fill); border-color: transparent; }
.nowline { gap: var(--sp-2) var(--sp-4); padding-top: var(--sp-3); }
.tag.HW { background: rgba(86, 200, 245, .16); color: #c4ebff; }
.tag.LW { background: rgba(255, 255, 255, .09); color: #cfdbe7; }
.ring { box-shadow: 0 0 32px -10px color-mix(in srgb, var(--c) 60%, transparent); }
.ring > div { background: var(--surface); }

/* veredictos e chips antigos com as novas cores */
.chip.pos { border-color: color-mix(in srgb, var(--s-exc) 35%, transparent); background: color-mix(in srgb, var(--s-exc) 10%, transparent); color: #c4f3d9; }
.chip.neg { border-color: color-mix(in srgb, var(--s-bad) 35%, transparent); background: color-mix(in srgb, var(--s-bad) 10%, transparent); }
.reasons li.pos .ic { color: var(--s-exc); }

/* zona técnica: painéis sem contorno */
.detail.tech { background: var(--surface); border-color: var(--line); }
.th-ic { background: var(--fill); border-color: transparent; color: var(--accent); }
.tech-body { padding: 0 var(--sp-5) var(--sp-5); }
.detail.tech .tabs { margin: var(--sp-3) calc(-1 * var(--sp-5)) var(--sp-4); padding: 0 var(--sp-4); }
.panel { background: var(--fill); border-color: transparent; padding: var(--sp-4); }
.kv { gap: var(--sp-2); }
.kv > div { background: var(--fill); border-color: transparent; }
.grid2, .stack { gap: var(--sp-4); }
@media (max-width: 640px) {
  .tech-body { padding: 0 var(--sp-3) var(--sp-4); }
  .detail.tech .tabs { margin: var(--sp-3) calc(-1 * var(--sp-3)) var(--sp-3); padding: 0 var(--sp-2); }
  .panel { padding: var(--sp-3); }
}

/* página inicial */
.home-hero { padding: var(--sp-6) var(--sp-6) 72px; border-color: var(--line-2); }
.home-hero .lead { margin-bottom: var(--sp-4); }
.opps { gap: var(--sp-2); }
.opp { background: var(--fill); border-color: transparent; padding: var(--sp-3) var(--sp-4); gap: var(--sp-3); }
.opp:hover { transform: none; background: var(--fill-2); border-color: transparent; }
.tech-home-body { padding: var(--sp-5); gap: var(--sp-5); }
.tech-home .region.card { background: var(--fill); border-color: transparent; padding: var(--sp-4); }
@media (max-width: 640px) {
  .home-hero { padding: var(--sp-5) var(--sp-4) 64px; }
  .opp { padding: var(--sp-3); }
  .tech-home-body { padding: var(--sp-4); }
}
@media (max-width: 640px) {
  .tile { padding: var(--sp-3); }
  .t-v { font-size: 1rem; flex-wrap: nowrap; white-space: nowrap; }
}
@media (max-width: 640px) {
  .t-v { flex-wrap: wrap; white-space: normal; }
  .tile:nth-child(2) .t-v { flex-wrap: nowrap; white-space: nowrap; }
}

/* ===== ícones e animações ===== */
:root { --ease: cubic-bezier(.2, .8, .2, 1); --ease-pop: cubic-bezier(.34, 1.56, .64, 1); }

/* ícones: rótulos dos quadros e painéis com o ícone num quadradinho azul */
.tile .t-k { gap: 8px; }
.tile .t-k .ic, .p-title .ic { box-sizing: content-box; width: 15px; height: 15px; padding: 5px; border-radius: 8px; background: var(--accent-bg); color: var(--accent); }
.p-title { display: flex; align-items: center; gap: 8px; }
.th-ic { background: var(--accent-bg); border: 0; color: var(--accent); }
.tag { display: inline-flex; align-items: center; justify-content: center; gap: 3px; }
.tag .ic { width: 12px; height: 12px; stroke-width: 2.4; vertical-align: 0; }
.ah-k .ic, .af-k .ic { width: 17px; height: 17px; }
.wicon { overflow: visible; }

/* cartão do dia: entra a deslizar do lado do dia escolhido, o anel enche-se */
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }
@keyframes ring-fill { from { --p: 0; } }
@keyframes ans-in { from { opacity: 0; transform: translate(var(--dx, 0px), var(--dy, 0px)); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }
@keyframes open-down { from { opacity: 0; transform: translateY(-8px); } }
@keyframes pop { 0% { transform: scale(.6); } 55% { transform: scale(1.3); } 100% { transform: scale(1); } }

.answer[data-anim] .ring { animation: ring-fill .7s var(--ease) backwards; }
.answer[data-anim="r"] { --dx: 16px; }
.answer[data-anim="l"] { --dx: -16px; }
.answer[data-anim="in"] { --dy: 8px; }
.answer[data-anim] > :not(.ans-nav):not(.tiles), .answer[data-anim] .tile { animation: ans-in .4s var(--ease) backwards; }
.answer[data-anim] > :nth-child(3) { animation-delay: 40ms; }
.answer[data-anim] > :nth-child(4) { animation-delay: 80ms; }
.answer[data-anim] > :nth-child(n+5) { animation-delay: 120ms; }
.answer[data-anim] .tile:nth-child(2) { animation-delay: 50ms; }
.answer[data-anim] .tile:nth-child(3) { animation-delay: 100ms; }
.answer[data-anim] .tile:nth-child(4) { animation-delay: 150ms; }
.answer[data-anim] .best-is .ic { animation: pop .5s .2s var(--ease-pop) backwards; }

/* toque: tudo o que se carrega encolhe um pouco */
.btn, .icon-btn, .act, .seg button, .fchip, .best-go, .bigsearch, .day, .opp, .tab, .rrow, .pick {
  transition: transform .15s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .2s, filter .2s;
}
.btn:active, .icon-btn:active:not(:disabled), .act:active, .seg button:active, .fchip:active, .best-go:active, .bigsearch:active, .pick:active { transform: scale(.96); }
.day:active { transform: scale(.95); }
.opp:active, .rrow:active { transform: scale(.985); }
.best-go .ic:last-child, .opp .o-when { transition: transform .2s var(--ease); }
.best-go:hover .ic:last-child { transform: translateX(3px); }
.act .ic { transition: color .2s, fill .2s; }
.act.pop .ic { animation: pop .45s var(--ease-pop); }
.day.sel .sc { animation: pop .35s var(--ease-pop); }

/* zona técnica e separadores */
.th-chev .ic, details.tech-home .th-chev .ic { transition: transform .3s var(--ease); }
.tech-body.opening, details.tech-home[open] .tech-home-body { animation: open-down .3s var(--ease); }
#tabBody.fade { animation: fade .25s var(--ease); }
.tab { transition: color .2s, border-color .25s var(--ease); }

/* página inicial: entra por partes */
.home-hero h1, .home-hero .lead, .home-hero .bigsearch, .home-hero .hero-upd { animation: rise .5s var(--ease) backwards; }
.home-hero .lead { animation-delay: 60ms; }
.home-hero .bigsearch { animation-delay: 120ms; }
.home-hero .hero-upd { animation-delay: 180ms; }
.best-spots .opp, .favs .opp { animation: rise .45s var(--ease) backwards; }
.best-spots .opp:nth-child(2), .favs .opp:nth-child(2) { animation-delay: 40ms; }
.best-spots .opp:nth-child(3), .favs .opp:nth-child(3) { animation-delay: 80ms; }
.best-spots .opp:nth-child(4) { animation-delay: 120ms; }
.best-spots .opp:nth-child(5) { animation-delay: 160ms; }
.best-spots .opp:nth-child(6) { animation-delay: 200ms; }
.hero-waves .w1 { fill: rgba(86, 200, 245, .07); }
.hero-waves .w2 { fill: rgba(43, 143, 214, .13); }
.pt-map circle { transition: r .15s var(--ease), fill .35s; }

/* ===== gráfico e zona técnica ===== */
/* cada gráfico ocupa a largura toda, com uma coluna ao lado para o detalhe e a legenda */
.cpanel { display: grid; gap: var(--sp-4); }
@media (min-width: 1000px) { .cpanel { grid-template-columns: minmax(0, 1fr) 280px; gap: var(--sp-5); align-items: start; } }
.c-main { min-width: 0; }
.c-main .p-title { margin-bottom: var(--sp-3); flex-wrap: wrap; }
.c-hint { font-weight: 500; }
.c-side { display: grid; gap: var(--sp-4); align-content: start; min-width: 0; }
.c-side p { margin: 0; }
.c-side .hd { margin: 0; padding: var(--sp-3); border: 0; border-radius: 12px; background: var(--fill-2); }
.c-side .hd .kv { grid-template-columns: 1fr 1fr; }
.c-side .hd .kv > div { background: var(--fill); }
.c-now-box { display: grid; gap: 2px; padding: var(--sp-3); border-radius: 12px; background: var(--fill-2); }
.c-now-box .k { font-size: var(--fs-xs); color: var(--muted); font-weight: 700; }
.c-now-box b { font-size: var(--fs-lg); display: flex; align-items: center; gap: 6px; }
.c-now-box .muted { font-size: var(--fs-sm); }

/* legenda: lista com amostra + explicação curta */
ul.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--fs-xs); color: var(--muted); }
ul.legend li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; line-height: 1.4; }
ul.legend li b { color: var(--text); font-weight: 600; margin-right: 4px; }
ul.legend i { display: block; width: 18px; height: 10px; border-radius: 3px; margin: 4px 0 0; }
ul.legend i.ln { height: 3px; margin-top: 7px; border-radius: 2px; }
ul.legend i.dash { height: 0; border-top: 2px dashed var(--sun); margin-top: 8px; background: none; }

/* desenho dos gráficos */
.chart text { fill: #8aa3bb; font-size: 11.5px; }
.c-night { fill: rgba(0, 4, 10, .3); }
.c-vgrid { stroke: rgba(150, 190, 230, .06); }
.c-grid { stroke: rgba(150, 190, 230, .12); stroke-dasharray: 2 4; }
.c-axis { stroke: rgba(150, 190, 230, .22); }
.c-lane { font-size: 10.5px !important; fill: #6f8aa4 !important; font-weight: 600; }
.c-best { fill: rgba(63, 214, 138, .08); }
.c-bestp rect { fill: rgba(63, 214, 138, .9); }
.c-bestp text { fill: #052814 !important; font-size: 10.5px !important; font-weight: 800; }
.c-moon rect { fill: #b7a6ff; }
.c-moon text { fill: #1d1445 !important; font-size: 10.5px !important; font-weight: 800; }
.c-moon2 rect { fill: #b7a6ff; opacity: .4; }
.c-tide { fill: none; stroke: #6fd0ff; stroke-width: 2.4; stroke-linejoin: round; }
.c-hw { fill: #fff; stroke: #4cc0f0; stroke-width: 2; }
.c-lw { fill: #0c1a2a; stroke: #9db3c8; stroke-width: 2; }
.c-ext { fill: var(--text) !important; font-size: 12px !important; font-weight: 700; paint-order: stroke; stroke: #0c1a2a; stroke-width: 4px; stroke-linejoin: round; }
.c-sun { fill: #ffcf6b !important; font-size: 10.5px !important; font-weight: 600; }
.c-selcol { fill: rgba(255, 255, 255, .06); }
.hcell { cursor: pointer; opacity: .88; transition: opacity .15s; }
.hcell:hover { opacity: 1; stroke: none; }
.hcell.on { opacity: 1; stroke: #fff; stroke-width: 1.5; }
.c-selv { fill: var(--text) !important; font-weight: 800; font-size: 11.5px !important; }
.c-now-t { font-size: 10.5px !important; }
.c-zone-bad { fill: rgba(245, 154, 74, .06); }
.c-thr { stroke: rgba(245, 154, 74, .45); stroke-dasharray: 6 4; }
.c-thr-t { fill: rgba(245, 154, 74, .9) !important; font-size: 10.5px !important; font-weight: 600; }
.c-band-models { fill: rgba(86, 200, 245, .14); }
.c-band-ens { fill: rgba(86, 200, 245, .22); }
.c-wind { stroke: var(--accent); stroke-width: 2.6; stroke-linejoin: round; }
.c-wave { stroke: #6fd0ff; stroke-width: 2.6; stroke-linejoin: round; }
.c-rain { fill: #4f8fe0; opacity: .6; } .c-rain.on { opacity: 1; }
.c-sel { fill: #fff; stroke: #0c1a2a; stroke-width: 2; }
.cross { stroke: #fff; stroke-opacity: .4; stroke-width: 1; }

/* painéis de baixo: três colunas no computador */
.grid3 { display: grid; gap: var(--sp-4); }
@media (min-width: 900px) { .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } }
.kv > .wide { grid-column: 1 / -1; }
.kv .wide .v span + span::before { content: '·'; margin: 0 6px; color: var(--muted); }
.list .tag { min-width: 64px; }

@media (max-width: 640px) {
  .chart { min-width: 640px; }
  .chart-wrap { scrollbar-width: thin; }
}

/* ===== comunidade ===== */
/* cabeçalho: ligação e conta */
.top-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: var(--fs-sm); padding: 8px 10px; border-radius: 999px; margin-left: auto; white-space: nowrap; }
.top-link:hover, .top-link.on { color: var(--text); background: var(--fill); }
.top-link .ic { color: var(--accent); }
.acct { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-width: 40px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); text-decoration: none; font-weight: 700; font-size: var(--fs-sm); overflow: hidden; }
.acct.out { padding: 0 14px 0 10px; }
.acct .ic { color: var(--accent); }
.acct.in { width: 40px; padding: 0; background: var(--accent-bg); }
.acct.in img { width: 100%; height: 100%; object-fit: cover; }
.acct.in span { color: var(--accent); font-weight: 800; }
@media (max-width: 640px) {
  .top-link span, .acct.out b { display: none; }
  .top-link { padding: 8px; }
  .acct.out { padding: 0; width: 40px; }
}

/* avatares */
.av { width: var(--s); height: var(--s); border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; background: var(--accent-bg); }
.av-ini { color: var(--accent); font-weight: 800; font-size: calc(var(--s) * .42); }

/* páginas */
.cm-page { max-width: 1100px; margin: 0 auto; padding: var(--sp-5) var(--sp-4) var(--sp-6); display: grid; gap: var(--sp-5); }
.cm-page.narrow { max-width: 680px; }
.cm-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.cm-hero h1 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.cm-hero h1 .ic { width: 30px; height: 30px; color: var(--accent); }
.cm-hero .lead { margin: 0; color: var(--muted); max-width: 52ch; }
.cm-bar { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.cm-bar select, .cform input, .cform select, .cform textarea {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; color: var(--text); padding: 10px 12px; font: inherit; font-size: var(--fs-md); min-width: 0;
}
.cm-bar select { flex: 1 1 200px; max-width: 280px; }
.cform textarea { resize: vertical; min-height: 80px; }
.cform input:focus, .cform select:focus, .cform textarea:focus, .cm-bar select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.cm-layout { display: grid; gap: var(--sp-5); align-items: start; }
@media (min-width: 960px) { .cm-layout { grid-template-columns: minmax(0, 640px) minmax(0, 1fr); } .cm-side { position: sticky; top: 80px; } }
.cm-side { display: grid; gap: var(--sp-4); }
.cm-side .card { margin: 0; }
.side-card:empty { display: none; }
.side-card h3 { display: flex; align-items: center; gap: 8px; font-size: var(--fs-md); margin: 0 0 var(--sp-2); }
.side-card h3 .ic { color: var(--accent); }
.side-card h3 + .side-list { margin-bottom: var(--sp-4); }
.side-list { display: grid; gap: 4px; }
.side-list a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--fill); color: var(--text); text-decoration: none; font-weight: 600; }
.side-list a:hover { background: var(--fill-2); }
.side-list b { color: var(--muted); }
.rules-list { margin: 0 0 var(--sp-3); padding-left: 18px; display: grid; gap: 8px; color: #c8d8e6; }
.cm-more { justify-self: center; width: 100%; justify-content: center; }
.posts-col { display: grid; gap: var(--sp-4); }
.empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: var(--sp-6) var(--sp-4); background: var(--fill); border-radius: 16px; }
.empty .ic { width: 34px; height: 34px; color: var(--accent); }
.empty p { margin: 0; }

/* publicação */
.post { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; position: relative; }
.post.compact { background: var(--fill); border-color: transparent; }
.po-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 12px 10px 14px; }
.po-user { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-width: 0; }
.po-user span { display: grid; min-width: 0; }
.po-user b { font-size: var(--fs-md); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.po-user small { color: var(--muted); font-size: var(--fs-xs); }
.po-more { background: none; border: 0; width: 36px; height: 36px; }
.po-photos { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #050d16; }
.po-photos::-webkit-scrollbar { display: none; }
.po-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: start; display: block; }
.po-photos:not(.n1) { grid-auto-columns: 88%; gap: 4px; }
.po-body { padding: 12px 14px 4px; display: grid; gap: 8px; }
.po-catch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--fs-lg); }
.po-catch > .ic { width: 20px; height: 20px; color: var(--accent); }
.no-fish .po-catch { color: var(--muted); }
.po-score { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.po-score b { color: #04121d; background: var(--c); border-radius: 8px; padding: 2px 7px; font-size: var(--fs-sm); }
.po-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--fs-sm); color: var(--muted); }
.po-meta > * { display: inline-flex; align-items: center; gap: 5px; }
.po-meta .ic { width: 15px; height: 15px; }
.po-meta a { color: var(--accent); text-decoration: none; font-weight: 700; }
.po-text { margin: 2px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.po-act { display: flex; align-items: center; gap: 4px; padding: 4px 8px 8px; flex-wrap: wrap; }
.po-act button { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--muted); font: inherit; font-weight: 700; font-size: var(--fs-sm); padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.po-act button:hover { background: var(--fill); color: var(--text); }
.po-like.on { color: #ff6b81; }
.po-like.on .ic { fill: #ff6b81; }
.po-like.pop .ic { animation: pop .4s var(--ease-pop); }
.po-hidden { font-size: var(--fs-xs); color: var(--s-low); margin-left: auto; padding-right: 6px; }
.po-menu { position: absolute; top: 50px; right: 10px; z-index: 5; background: var(--surface-3); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; display: grid; min-width: 210px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.po-menu[hidden] { display: none; }
.po-menu button { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--text); font: inherit; font-size: var(--fs-sm); padding: 9px 10px; border-radius: 8px; cursor: pointer; text-align: left; }
.po-menu button:hover { background: var(--fill-2); }
.po-menu [data-act="delete"] { color: #ff8a80; }

/* janelas e formulários */
dialog.cdlg { border: 1px solid var(--line-2); border-radius: 20px; background: var(--surface); color: var(--text); padding: 0; width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
dialog.cdlg.wide { width: min(640px, calc(100vw - 16px)); }
dialog.cdlg::backdrop { background: rgba(2, 8, 15, .72); backdrop-filter: blur(3px); }
dialog.cdlg[open] { animation: open-down .25s var(--ease); }
.cform { display: grid; gap: var(--sp-3); }
.cform > label, .cform .fgrid label { display: grid; gap: 6px; font-size: var(--fs-sm); font-weight: 700; color: var(--muted); }
.cform label[hidden] { display: none; }
.cform .fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.cform .fgrid .span2 { grid-column: span 2; }
@media (max-width: 520px) { .cform .fgrid { grid-template-columns: 1fr 1fr; } }
.cform .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--text); cursor: pointer; }
.cform .check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.cform .check span { display: block; }
.cform .check small { display: block; color: var(--muted); margin-top: 2px; }
.radios { display: grid; gap: 6px; }
.radio { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--fill); cursor: pointer; }
.radio input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.cm-res { width: 100%; }
.cm-res button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; }
.cm-res button[aria-checked="true"] { background: var(--accent); color: #04121d; }
.cm-size { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--s-low) 14%, transparent); color: #ffd2b0; }
.cm-size .ic { color: var(--s-low); flex: none; margin-top: 2px; }
.cm-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cm-add { grid-column: 1 / -1; display: grid; justify-items: center; gap: 4px; padding: 18px; border: 2px dashed var(--line-2); border-radius: 16px; cursor: pointer; text-align: center; color: var(--text); transition: border-color .2s, background-color .2s; }
.cm-add:hover { border-color: var(--accent); background: var(--accent-bg); }
.cm-add .ic { width: 28px; height: 28px; color: var(--accent); }
.cm-add small { color: var(--muted); font-weight: 500; }
.cm-add[hidden] { display: none; }
.cm-photos:has(.cm-th) .cm-add { order: 9; }
.cm-photos:has(.cm-th) .cm-add { grid-column: auto; padding: 8px; aspect-ratio: 1; align-content: center; }
.cm-photos:has(.cm-th) .cm-add b, .cm-photos:has(.cm-th) .cm-add small { display: none; }
.cm-th { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; animation: pop .3s var(--ease-pop); }
.cm-th img { width: 100%; height: 100%; object-fit: cover; }
.cm-th button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; display: grid; place-items: center; cursor: pointer; }
.cm-th button .ic { width: 15px; height: 15px; }
.at-input { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding-left: 12px; }
.at-input span { color: var(--muted); font-weight: 700; }
.at-input input { border: 0 !important; background: none !important; flex: 1; padding-left: 4px !important; }
.at-input:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.at-input input:focus { outline: none !important; }
.ok-t { color: var(--s-exc); } .bad-t { color: var(--s-bad); }
.btn.bad { background: var(--s-bad); color: #fff; box-shadow: none; }
details.more.danger > summary { color: #ff8a80; font-size: var(--fs-sm); }
details.more.danger { border-top: 1px solid var(--line); padding-top: var(--sp-3); margin-top: var(--sp-2); }

/* entrar */
.auth { display: grid; gap: var(--sp-4); }
.auth h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2rem); }
.auth .lead { margin: -8px 0 0; color: var(--muted); }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid #dadce0; background: #fff; color: #1f1f1f; font: inherit; font-weight: 700; font-size: var(--fs-md); cursor: pointer; }
.btn-google .ic { width: 20px; height: 20px; }
.btn-google:hover { background: #f4f6f8; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: var(--fs-sm); }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.auth .cform .btn { justify-content: center; }
.sent { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--accent-bg); }
.sent > .ic { width: 26px; height: 26px; color: var(--accent); flex: none; }
.pf-photo { display: flex; align-items: center; gap: var(--sp-3); }
.pf-photo .btn { cursor: pointer; }
.priv summary { font-size: var(--fs-sm) !important; }

/* perfil */
.pf-head { display: grid; gap: var(--sp-4); }
.pf-id { display: flex; gap: var(--sp-4); align-items: center; }
.pf-id h1 { margin: 0; font-size: clamp(1.4rem, 4vw, 1.9rem); }
.pf-id p { margin: 2px 0 0; }
.pf-id .muted .ic { width: 15px; height: 15px; vertical-align: -2px; }
.pf-bio { margin-top: 8px !important; white-space: pre-line; }
.pf-btns { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.pf-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); }
.pf-stats > div { background: var(--fill); border-radius: 12px; padding: 10px 12px; display: grid; }
.pf-stats b { font-size: var(--fs-xl); }
.pf-stats span { font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 520px) { .pf-stats { grid-template-columns: 1fr 1fr; } .pf-id { align-items: flex-start; } }
.pf-links { display: grid; gap: var(--sp-3); }
.pf-links > div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pf-links .k { width: 100%; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.chip-l { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--fill); color: var(--text); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
.chip-l:hover { background: var(--fill-2); }
.chip-l .ic { width: 15px; height: 15px; color: var(--accent); }
.chip-l b { color: var(--muted); }
.pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pf-tile { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--fill); color: var(--text); font: inherit; display: grid; place-items: center; }
.pf-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.pf-tile:hover img { transform: scale(1.04); }
.pf-tile > span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: var(--fs-xs); font-weight: 700; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.pf-tile.txt > .ic { width: 28px; height: 28px; color: var(--accent); margin-bottom: 16px; }
.pf-tile.txt > span { background: none; text-align: center; color: var(--muted); }
.pf-n { position: absolute; top: 6px; right: 6px; display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: var(--fs-xs); font-weight: 800; background: rgba(0,0,0,.55); padding: 2px 6px; border-radius: 8px; }
.pf-n .ic { width: 13px; height: 13px; }

/* página do pesqueiro e início */
.cm-spot { display: grid; gap: var(--sp-4); }
.cm-spot-head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.cm-spot-head > div { display: grid; gap: 2px; }
.cm-spot-head small { color: var(--muted); }
.cm-kv { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 560px) { .cm-kv { grid-template-columns: 1fr 1fr; } }
.com-home h2 .ic { width: 20px; height: 20px; color: var(--accent); vertical-align: -3px; }
.ch-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--sp-3); }
.ch-tile { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; color: #fff; text-decoration: none; background: var(--fill); }
.ch-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.ch-tile:hover img { transform: scale(1.04); }
.ch-tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 10px 10px; display: grid; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.ch-tile small { color: #d5e2ee; font-size: var(--fs-xs); }

/* aviso curto */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 100; background: var(--surface-3); color: var(--text); border: 1px solid var(--line-2); padding: 12px 18px; border-radius: 14px; font-weight: 700; box-shadow: 0 16px 40px rgba(0,0,0,.5); transition: opacity .2s, transform .25s var(--ease); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-color: var(--s-bad); }
.cm-spot .posts-col { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); align-items: start; }

/* ===== fórum e comentários ===== */
.pf-stats { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
.btn.small { padding: 7px 12px; font-size: var(--fs-sm); border-radius: 10px; }
.chip-l small { color: var(--muted); font-weight: 500; }
.mention { color: var(--accent); font-weight: 700; text-decoration: none; }
.mention:hover { text-decoration: underline; }

/* separadores Capturas | Fórum */
.cm-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-top: calc(-1 * var(--sp-2)); }
.cm-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--muted); text-decoration: none; font-weight: 700; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.cm-tabs a:hover { color: var(--text); }
.cm-tabs a[aria-current] { color: var(--text); border-bottom-color: var(--accent); }
.cm-tabs .ic { width: 18px; height: 18px; color: var(--accent); }

/* secções e filtros */
.cm-main, .cm-side { min-width: 0; }
.fm-secs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-bottom: var(--sp-3); }
.fm-secs::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .fm-secs { flex-wrap: wrap; overflow: visible; } }
.fm-secs button { flex: none; border: 1px solid var(--line-2); background: var(--fill); color: var(--muted); font: inherit; font-weight: 700; font-size: var(--fs-sm); padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.fm-secs button:hover { color: var(--text); }
.fm-secs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #04121d; }
.cm-main > .cm-bar { margin-bottom: var(--sp-3); }
.fchip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--accent); background: var(--accent-bg); color: var(--text); font: inherit; font-weight: 700; font-size: var(--fs-sm); padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.fchip .ic { width: 15px; height: 15px; }
.fchip .ic:last-child { color: var(--muted); }
.fm-note { margin: 0 0 var(--sp-3); color: var(--muted); }
.sec-list a { padding: 9px 12px; }
.sec-list span { display: grid; gap: 1px; }
.sec-list small { color: var(--muted); font-weight: 500; font-size: var(--fs-xs); }

/* lista de tópicos */
.tp-list { display: grid; gap: 6px; }
.tp-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .15s, background-color .15s; }
.tp-row:hover { border-color: var(--line-2); background: var(--surface-2); }
.tp-row.fixo { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.tp-main { display: grid; gap: 4px; min-width: 0; }
.tp-title { display: flex; align-items: center; gap: 6px; font-size: var(--fs-md); line-height: 1.3; }
.tp-title .ic, .tp-head h1 .ic { width: 16px; height: 16px; flex: none; color: var(--accent); }
.tp-tags { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: var(--fs-xs); color: var(--muted); }
.tp-tags > span { display: inline-flex; align-items: center; gap: 4px; }
.tp-tags .ic { width: 13px; height: 13px; }
.tp-sec { color: var(--accent); font-weight: 700; }
.tp-main small { color: var(--muted); font-size: var(--fs-xs); }
.tp-n { display: grid; justify-items: center; gap: 2px; color: var(--muted); min-width: 36px; }
.tp-n .ic { width: 18px; height: 18px; }
.tp-n b { font-size: var(--fs-sm); color: var(--text); }
.cm-spot .tp-list .tp-row, .card .tp-list .tp-row { background: var(--fill); border-color: transparent; }
.cm-spot .tp-list .tp-row:hover, .card .tp-list .tp-row:hover { background: var(--fill-2); }
.cm-forum-head { margin-top: var(--sp-5); }

/* um tópico */
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: var(--fs-sm); margin-bottom: var(--sp-3); }
.back-link:hover { color: var(--text); }
.back-link .ic { width: 16px; height: 16px; }
.tp-full { display: grid; gap: var(--sp-4); margin: 0 0 var(--sp-4); }
.tp-head { display: grid; gap: var(--sp-3); }
.tp-head h1 { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: clamp(1.3rem, 3vw, 1.7rem); line-height: 1.25; }
.tp-head h1 .ic { width: 20px; height: 20px; margin-top: .25em; }
.tp-text { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.6; }
.tp-photos { border-radius: 14px; }
.tp-links { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-full .po-act { padding: 0; margin: 0 -10px -6px; }
.tp-about { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 12px; margin: 0; display: grid; gap: 8px; }
.tp-about legend { font-weight: 700; font-size: var(--fs-sm); padding: 0 4px; }

/* comentários e respostas */
.cmts { display: grid; gap: var(--sp-3); }
.with-cmts #postCmts { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
#oneCmts { margin-top: var(--sp-3); }
.cmts-h { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-md); }
.cmts-h .ic { color: var(--accent); }
.cmts-n { color: var(--muted); }
.cmts-list { display: grid; gap: 2px; }
.cmts-empty { margin: 0; }
.cmt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 8px 6px; border-radius: 12px; }
.cmt.new { animation: cmt-new 1.6s var(--ease); }
@keyframes cmt-new { from { background: var(--accent-bg); } to { background: transparent; } }
.cmt:target { background: var(--accent-bg); }
.cmt.is-hidden { opacity: .55; }
.cmt-b { display: grid; gap: 3px; min-width: 0; }
.cmt-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.cmt-h a { color: var(--text); text-decoration: none; }
.cmt-h small { color: var(--muted); font-size: var(--fs-xs); }
.cmt-t { margin: 0; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.5; }
.cmt-a { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-left: -8px; }
.cmt-a button { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; color: var(--muted); font: inherit; font-size: var(--fs-xs); font-weight: 700; padding: 5px 8px; border-radius: 8px; cursor: pointer; }
.cmt-a button:hover { background: var(--fill); color: var(--text); }
.cmt-a .ic { width: 14px; height: 14px; }
.cmt-a [data-act="delete"]:hover { color: #ff8a80; }
.cmt-form { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.cmt-form textarea, .cmt-edit textarea { width: 100%; resize: none; min-height: 44px; overflow-y: hidden; background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 12px; font: inherit; line-height: 1.4; }
.cmt-edit textarea { resize: vertical; overflow-y: auto; }
.cmt-form textarea:focus, .cmt-edit textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.cmt-form .btn { padding: 11px 14px; }
.cmt-edit { display: grid; gap: 8px; }
.cmt-edit .dlg-row { gap: 8px; }
.cmts-closed { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); }
@media (max-width: 560px) { .cmt-form > .av { display: none; } .cmt-form { grid-template-columns: minmax(0, 1fr) auto; } .cmt-form .btn span { display: none; } }

/* ===== dicas (/dicas/) ===== */
.guide { max-width: 820px; }
.g-art h1 { font-size: var(--fs-xl); line-height: 1.2; margin: 0 0 var(--sp-4); display: flex; gap: 10px; align-items: center; }
.g-art h1 .ic { width: 26px; height: 26px; color: var(--accent); }
.g-art h2 { font-size: var(--fs-lg); margin: var(--sp-5) 0 var(--sp-2); }
.g-art h3 { font-size: var(--fs-md); margin: var(--sp-4) 0 var(--sp-2); }
.g-art p, .g-art li { line-height: 1.6; color: #d4e2ee; }
.g-art ul { padding-left: 20px; margin: 0; display: grid; gap: 6px; }
.g-art a:not(.opp):not(.chip-l):not(.g-item) { color: var(--accent); }
.g-short { background: var(--accent-bg); border: 1px solid rgba(86,200,245,.3); border-radius: 14px; padding: var(--sp-3) var(--sp-4); }
.g-short p { margin: 4px 0 0; font-size: 1.02rem; color: var(--text); }
.g-k { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; color: var(--accent); }
.g-k .ic { width: 14px; height: 14px; }
.g-box { border-radius: 14px; padding: var(--sp-3) var(--sp-4); margin-top: var(--sp-5); background: var(--fill); }
.g-box h2 { margin-top: 0; font-size: var(--fs-md); display: flex; align-items: center; gap: 8px; }
.g-box h2 .ic { width: 18px; height: 18px; color: var(--accent); }
.g-box p { margin: 0 0 6px; }
.g-nodeal { border-left: 3px solid var(--s-ok); }
.g-picada { border-left: 3px solid var(--accent); }
.g-picada .opps { margin: var(--sp-2) 0; }
.g-art .warnbox { margin-top: var(--sp-4); }
.g-faq { display: grid; gap: 6px; }
.g-faq details { background: var(--fill); border-radius: 12px; padding: 10px 14px; }
.g-faq summary { font-weight: 600; cursor: pointer; }
.g-faq p { margin: 8px 0 0; }
.g-src { margin-top: var(--sp-5); }
.g-src ol { padding-left: 20px; display: grid; gap: 3px; }
.g-src li, .g-src p { color: var(--muted); }
.g-rev { margin-top: var(--sp-4); }
.g-art .tbl th a { color: var(--accent); text-decoration: none; }
.g-more { font-weight: 600; color: var(--accent); text-decoration: none; }
.g-more:hover { text-decoration: underline; }
.dh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.g-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.g-item { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--fill); text-decoration: none; color: var(--text); border: 1px solid transparent; transition: border-color .15s; }
.g-item:hover { border-color: var(--accent); }
.g-item small { color: var(--muted); font-size: var(--fs-xs); line-height: 1.45; }
.g-index .lead { margin-top: 0; }

/* ===== notificações ===== */
.bell-w { position: relative; flex: none; }
.bell-w[hidden] { display: none; }
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); cursor: pointer; }
.bell:hover, .bell[aria-expanded="true"] { background: var(--fill-2); }
.bell .ic { width: 20px; height: 20px; }
.bell-n { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--s-bad); color: #fff; font-size: 11px; font-weight: 800; line-height: 19px; text-align: center; border: 2px solid var(--bg, #06121d); animation: pop .35s var(--ease-pop); }
.bell-n[hidden] { display: none; }
.notif-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: min(380px, calc(100vw - 24px)); max-height: min(70vh, 560px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.55); animation: open-down .2s var(--ease); }
.notif-panel[hidden] { display: none; }
@media (max-width: 560px) { .notif-panel { position: fixed; left: 10px; right: 10px; top: 62px; width: auto; max-height: calc(100dvh - 80px); } }
.np-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 14px 16px 10px; background: var(--surface); border-bottom: 1px solid var(--line); }
.np-head small { color: var(--accent); font-weight: 700; font-size: var(--fs-xs); }
.np-list { display: grid; padding: 6px; }
.np-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px; border-radius: 12px; color: var(--text); text-decoration: none; }
.np-item:hover { background: var(--fill); }
.np-item.unread { background: var(--accent-bg); }
.np-item.unread:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.np-av { position: relative; display: block; }
.np-ic { position: absolute; right: -5px; bottom: -4px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; background: var(--accent); color: #04121d; border: 2px solid var(--surface); }
.np-ic .ic { width: 11px; height: 11px; stroke-width: 2.4; }
.t-gosto .np-ic { background: #ff6b81; color: #fff; }
.t-gosto .np-ic .ic { fill: currentColor; }
.np-at { font-size: 11px; font-weight: 900; line-height: 1; }
.np-b { display: grid; gap: 3px; min-width: 0; font-size: var(--fs-sm); line-height: 1.4; }
.np-q { color: var(--muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.np-b small { color: var(--muted); font-size: var(--fs-xs); }
.np-item.unread .np-b small { color: var(--accent); font-weight: 700; }
.np-empty { display: grid; justify-items: center; gap: 10px; text-align: center; margin: 0; padding: 28px 22px 30px; color: var(--muted); font-size: var(--fs-sm); }
.np-empty .ic { width: 30px; height: 30px; color: var(--accent); }

/* ===== comunidade "em breve" ===== */
.cm-app { display: contents; }
.cm-app[hidden] { display: none; }
.soon-pill { font-style: normal; font-size: 11px; font-weight: 800; color: #04121d; background: var(--accent); border-radius: 999px; padding: 2px 7px; }
@media (max-width: 560px) { .soon-pill { display: none; } }
.soon { display: grid; gap: var(--sp-5); }
.soon-hero { position: relative; overflow: hidden; padding: clamp(24px, 5vw, 44px); border-radius: 22px; border: 1px solid var(--line-2);
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%), var(--surface); animation: rise .5s var(--ease) backwards; }
.soon-tag { display: inline-block; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .02em; color: #04121d; background: var(--accent); border-radius: 999px; padding: 4px 10px; margin-bottom: var(--sp-3); }
.soon-hero h1 { display: flex; align-items: center; gap: 12px; margin: 0 0 var(--sp-2); font-size: clamp(1.7rem, 4.5vw, 2.5rem); line-height: 1.15; }
.soon-hero h1 .ic { width: 34px; height: 34px; flex: none; color: var(--accent); }
.soon-hero .lead { margin: 0; color: var(--muted); max-width: 56ch; font-size: var(--fs-lg); }
.soon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: var(--sp-3); }
.soon-card { display: grid; align-content: start; gap: 6px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); animation: rise .5s var(--ease) backwards; }
.soon-card:nth-child(2) { animation-delay: .05s; } .soon-card:nth-child(3) { animation-delay: .1s; } .soon-card:nth-child(4) { animation-delay: .15s; }
.soon-card:nth-child(5) { animation-delay: .2s; } .soon-card:nth-child(6) { animation-delay: .25s; }
.soon-card > .ic { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--accent-bg); color: var(--accent); margin-bottom: 4px; }
.soon-card b { font-size: var(--fs-md); }
.soon-card p { margin: 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; }
.soon-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: 18px 20px; border-radius: 16px; background: var(--fill); }
.soon-btns { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ---------- moderação ---------- */
.mod-link[hidden] { display: none; }
.role-pill { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; padding: 2px 8px 2px 6px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .01em; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); white-space: nowrap; }
.role-pill .ic { width: 13px; height: 13px; }
.role-pill.r-dono { background: color-mix(in srgb, var(--sun) 18%, transparent); color: var(--sun); }
.role-pill.r-susp { background: color-mix(in srgb, var(--s-bad) 18%, transparent); color: #ff9a92; padding-left: 8px; }
h1 .role-pill { font-size: var(--fs-xs); margin-left: 6px; }
.mod-gate { display: grid; justify-items: center; text-align: center; gap: var(--sp-2); padding: var(--sp-6) var(--sp-4); max-width: 520px; margin: var(--sp-6) auto; }
.mod-gate > .ic { width: 40px; height: 40px; color: var(--accent); }
.mod-gate h1 { margin: 0; font-size: var(--fs-xl); }
.mod-tabs { overflow-x: auto; scrollbar-width: none; }
.mod-tabs a { white-space: nowrap; }
.mt-n { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--s-bad); color: #fff; font-size: 11px; line-height: 17px; text-align: center; }
.mt-n:empty { display: none; }
.mod-body { display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }
.mod-hint { margin: 0; }
.mq-list { display: grid; gap: var(--sp-3); }
.mq { display: grid; gap: var(--sp-3); padding: var(--sp-4); transition: opacity .25s, transform .25s; }
.mq.gone { opacity: 0; transform: translateX(16px); }
.mq.is-hidden { border-color: color-mix(in srgb, var(--s-low) 40%, transparent); }
.mq-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.mq-h small { margin-left: auto; color: var(--muted); }
.mq-kind { font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mq-state { font-size: var(--fs-xs); font-weight: 800; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--s-low) 18%, transparent); color: var(--s-low); }
.mq-n { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); font-weight: 800; color: #ff9a92; }
.mq-n .ic { width: 14px; height: 14px; }
.mq-mots { display: flex; flex-wrap: wrap; gap: 6px; }
.mq-mot { font-size: var(--fs-xs); font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--fill-2); }
.mq-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-sm); }
.mq-who a { color: var(--muted); text-decoration: none; }
.mq-who a:hover { color: var(--text); }
.mq-body { display: grid; gap: 6px; padding: var(--sp-3); border-radius: 12px; background: var(--fill); min-width: 0; }
.mq-title { font-size: var(--fs-md); overflow-wrap: anywhere; }
.mq-title small { color: var(--muted); font-weight: 600; }
.mq-ctx { font-size: var(--fs-xs); color: var(--muted); font-weight: 700; }
.mq-text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; color: #d5e2ee; }
.mq-photos { display: flex; gap: 6px; flex-wrap: wrap; }
.mq-photos img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; display: block; }
.mq-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0; margin: 0; max-width: none; text-align: left; font-size: inherit; line-height: inherit; color: inherit; }
.mq-act .btn .ic { width: 16px; height: 16px; }
.mq-more { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; margin-left: auto; font-size: var(--fs-sm); }
.btn.danger:hover, .btn.ghost.danger:hover { background: color-mix(in srgb, var(--s-bad) 22%, transparent); border-color: var(--s-bad); color: #ffb3ad; }
.linklike { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--accent); cursor: pointer; }
.linklike:hover, .mq-more a:hover { text-decoration: underline; }
.mq-more a { font-weight: 700; text-decoration: none; }
.mod-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--sp-4); align-items: start; }
.mod-h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 var(--sp-3); font-size: var(--fs-md); }
.mod-h3 .ic { color: var(--accent); }
.mod-search { width: 100%; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--fill); color: var(--text); font: inherit; margin-bottom: var(--sp-3); }
.mod-search:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.pp-list { display: grid; gap: 6px; margin-bottom: var(--sp-2); }
.pp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px; border-radius: 12px; background: var(--fill); }
.pp-who { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 180px; color: var(--text); text-decoration: none; }
.pp-who span { display: grid; min-width: 0; }
.pp-who b, .pp-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-who small { color: var(--muted); font-size: var(--fs-xs); }
.pp-who b small { display: inline; }
.pp-pills { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.pp-pills:empty { display: none; }
.pp-act { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.log-list { display: grid; }
.log-row { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.log-row:last-child { border-bottom: 0; }
.log-row p { margin: 0; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.log-row a { color: inherit; }
.log-row small { color: var(--muted); font-size: var(--fs-xs); }
.log-q { color: var(--muted); margin-top: 2px !important; }
.log-n { color: var(--sun); margin-top: 2px !important; }
.log-row.a-apagar b:first-child, .log-row.a-suspender b:first-child { color: #ffb3ad; }
.mod-acts { display: grid; gap: 6px; }
.mod-act { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid transparent; background: var(--fill); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.mod-act:hover { background: var(--fill-2); border-color: var(--line-2); }
.mod-act > .ic { width: 20px; height: 20px; color: var(--accent); flex: none; }
.mod-act span { display: grid; }
.mod-act small { color: var(--muted); font-size: var(--fs-xs); }
.mod-act.danger > .ic { color: var(--s-bad); }
.mod-act.danger:hover { border-color: color-mix(in srgb, var(--s-bad) 50%, transparent); }
.mod-dlg input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--fill); color: var(--text); font: inherit; }
/* no telemóvel o cabeçalho não tem espaço: o painel abre-se pelo perfil */
@media (max-width: 560px) { .top-in .mod-link { display: none; } }
@media (max-width: 760px) {
  .mod-cols { grid-template-columns: minmax(0, 1fr); }
  .mq-more { margin-left: 0; width: 100%; }
}
