/* CoastalWatch - visualizador beta. Identidade visual derivada de site/assets/style.css */
:root {
  --navy: #071d33; --navy-2: #0b2f4f; --blue: #18abeb; --blue-dark: #0a7cb4; --aqua: #5fd4ff;
  --ink: #182634; --muted: #5a6b7b; --line: #e1e9f0; --soft: #f3f8fc; --white: #fff;
  --ok: #1a7f5a; --ok-bg: #dff3ea; --no: #b3261e; --no-bg: #fbe3e0;
  --radius: 16px; --shadow: 0 10px 30px rgba(7, 29, 51, .08); --shadow-lg: 0 22px 50px rgba(7, 29, 51, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--white); overflow-x: hidden; -webkit-font-smoothing: antialiased;
  font: 16px/1.55 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; text-wrap: balance;
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; }
h2 { font-size: 26px; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
.wrap { width: min(1320px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); font-size: 14.5px; max-width: 560px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-dark); margin-bottom: 10px; }
.h-small { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }

/* cabeçalho */
.cw-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.brand img { width: 150px; }
.product-id { display: flex; align-items: center; gap: 10px; padding-left: 22px; border-left: 1px solid var(--line); margin-right: auto; }
.product-id img { height: 50px; width: auto; }
.beta { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-dark); background: var(--soft); border: 1px dashed #a9cfe6; border-radius: 999px; padding: 3px 10px; }
.langs { display: flex; gap: 2px; background: var(--soft); border-radius: 999px; padding: 3px; flex: none; }
.langs button { border: 0; background: none; font: inherit; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.langs button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(7, 29, 51, .15); }
.back { color: #fff; background: var(--navy); text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 9px 20px; border-radius: 999px; transition: background .2s; white-space: nowrap; }
.back:hover { background: var(--blue-dark); }

/* banner com ondas */
.banner { position: relative; background: radial-gradient(120% 140% at 85% 0%, #0f5c8e 0%, var(--navy-2) 42%, var(--navy) 100%); color: #fff; padding: 16px 0 50px; overflow: hidden; }
.banner .wrap { position: relative; }
.banner .eyebrow { color: var(--aqua); }
.banner h1 { color: #fff; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; margin: 0; }
.banner p { margin: 8px 0 0; color: #d3e6f4; font-size: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips li { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 5px 14px; font-size: 13.5px; color: #e6f2fa; }
.chips b { font-weight: 650; color: #fff; }
.waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 44px; display: block; pointer-events: none; }
.waves path { animation: wave 22s linear infinite; }
.waves .w1 { fill: rgba(255, 255, 255, .14); animation-duration: 30s; }
.waves .w2 { fill: rgba(255, 255, 255, .28); animation-duration: 21s; animation-direction: reverse; }
.waves .w3 { fill: #fff; animation-duration: 14s; }
@keyframes wave { to { transform: translateX(-1440px); } }

/* avisos */
.notice { margin: 18px 0 0; padding: 12px 18px; border-radius: 12px; background: #fff6e0; border: 1px solid #f0d58a; color: #5c4400; font-size: 14.5px; }
.notice.error { background: var(--no-bg); border-color: #efb1ab; color: #6d1410; }

/* painéis */
.tabs { display: flex; gap: 4px; margin-top: 14px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { border: 0; background: none; font: inherit; font-size: 15.5px; font-weight: 650; color: var(--muted); padding: 10px 18px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--navy); }
.tabs button.on { color: var(--navy); border-bottom-color: var(--blue); }
.layout { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(300px, 1fr); gap: 18px; margin-top: 18px; align-items: stretch; }
.below { margin-top: 18px; }
.map-panel { display: flex; flex-direction: column; }
.side { overflow-y: auto; max-height: calc(100vh - 150px); min-height: 480px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; position: relative; }
.windows { margin-top: 18px; padding: 28px; overflow: hidden; }
.windows::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--blue), var(--blue-dark)); }

/* controles */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
#basemaps { margin-left: auto; }
.seg { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); padding: 6px 15px; border-radius: 999px; cursor: pointer; }
.seg button:hover { color: var(--navy); }
.seg button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(7, 29, 51, .15); }
.map-wrap { position: relative; flex: 1; height: calc(100vh - 330px); min-height: 420px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #eef2f5; touch-action: none; }
#map { width: 100%; height: 100%; display: block; cursor: crosshair; }
#map.drag { cursor: grabbing; }
.gmap { width: 100%; height: 100%; display: block; cursor: crosshair; }
.seg.right { margin-left: auto; }
.gmsg { margin-top: 18px; }
.spread { margin: 8px 0 10px; color: var(--ink); }
.chart .line.other { stroke: #9fb9cc; stroke-width: 1.2; }
#g-table td .link { font-weight: 600; text-align: left; }
#fx, .fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mini { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.mini select { width: auto; padding: 5px 8px; font-size: 13.5px; border-radius: 999px; }
.zoom { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.zoom button { width: 36px; height: 36px; border: 0; background: #fff; font-size: 20px; color: var(--navy); cursor: pointer; }
.zoom button + button { border-top: 1px solid var(--line); }
.zoom button:hover { background: var(--soft); }
.legend { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .94); border-radius: 10px; padding: 8px 12px 6px; box-shadow: var(--shadow); font-size: 12.5px; color: var(--ink); }
.legend > span { font-weight: 650; display: block; margin-bottom: 5px; }
.legend-bar canvas { display: block; width: 100%; min-width: 220px; height: 10px; border-radius: 3px; }
.legend-ticks { display: flex; justify-content: space-between; color: var(--muted); font-size: 11.5px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.readout { position: absolute; left: 12px; top: 12px; background: rgba(7, 29, 51, .88); color: #fff; border-radius: 8px; padding: 5px 10px; font-size: 13px; font-variant-numeric: tabular-nums; pointer-events: none; }
.attrib { position: absolute; right: 8px; bottom: 6px; background: rgba(255, 255, 255, .8); border-radius: 6px; padding: 1px 7px; font-size: 11px; color: var(--ink); pointer-events: none; }
.timebar { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.play { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--blue-dark); color: #fff; font-size: 15px; cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.play:hover { background: var(--navy); transform: scale(1.06); }
.timeline { flex: 1; min-width: 0; }
.speed { flex: none; width: auto; padding: 6px 8px; font-size: 13.5px; border-radius: 999px; font-variant-numeric: tabular-nums; }
#time, .timeline input[type=range] { width: 100%; display: block; accent-color: var(--blue-dark); margin: 0; }
.sel-strip { display: flex; gap: 1px; height: 12px; margin: 6px 7px 0; }
.sel-strip:empty { display: none; }
#time-label { flex: none; min-width: 190px; text-align: right; font-weight: 650; color: var(--navy); font-variant-numeric: tabular-nums; font-size: 14.5px; }

/* lateral */
.h-small.first { margin-top: 2px; }
.hint { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.coords { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; }
.coords span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
.btn-small { border: 0; background: var(--blue-dark); color: #fff; font: inherit; font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 10px; cursor: pointer; }
.btn-small:hover { background: var(--navy); }
.form-msg { margin: 8px 0 0; font-size: 13.5px; color: var(--no); }
.points { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.points li { display: inline-flex; align-items: center; background: var(--soft); border-radius: 999px; font-size: 13.5px; }
.points li.sel { background: var(--navy); }
.points button { border: 0; background: none; font: inherit; cursor: pointer; color: var(--ink); padding: 5px 4px 5px 12px; font-variant-numeric: tabular-nums; }
.points button.rm { padding: 5px 10px 5px 4px; color: var(--muted); font-size: 15px; line-height: 1; }
.points li.sel button { color: #fff; }
.points button b { font-weight: 700; margin-right: 5px; }
.h-mini { font-size: 12px; font-weight: 700; color: var(--muted); margin: 14px 0 0; letter-spacing: .02em; }
.h-mini + .points { margin-top: 6px; }
.points li.ref button { padding-right: 12px; font-weight: 600; }
.points li.off { opacity: .5; }
.points li.off button { cursor: not-allowed; }
.limits-title { grid-column: 1 / -1; font-size: 14px; color: var(--navy); }
.rules { margin-bottom: 6px; }
.rules li { position: relative; padding: 6px 0 6px 20px; font-size: 14px; color: var(--ink); border-bottom: 1px solid var(--line); }
.rules li::before { content: "§"; position: absolute; left: 0; color: var(--blue-dark); font-weight: 700; }
.rules a { color: var(--blue-dark); font-size: 13px; white-space: nowrap; }
.series-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.series-head .link { grid-column: auto; white-space: nowrap; }
.field { display: block; }
.field span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
select, input[type=number] { font: inherit; color: var(--ink); background: #fff; border: 1px solid #c9d6e2; border-radius: 10px; padding: 8px 12px; width: 100%; }
.status { margin: 14px 0; padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: 14.5px; }
.status.ok { background: var(--ok-bg); color: #0d4f37; }
.status.no { background: var(--no-bg); color: #7a1711; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tile { background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.tile small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.tile b { font-size: 21px; color: var(--navy); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.tile b i { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.tile.over b { color: var(--no); }
.tile em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px 22px; }
.ukc-charts { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); margin: 18px 0 6px; }
.ukc-tiles { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-top: 20px; }
.ukc-form { grid-template-columns: repeat(3, minmax(120px, 1fr)); max-width: 640px; }
.ukc-form .wide { grid-column: 1 / -1; }
.notice.slim { margin: 0; font-size: 13.5px; padding: 9px 14px; max-width: 560px; }
.pick { margin-top: 6px; max-width: 420px; }
td.num { text-align: right; font-weight: 600; }
.chart { position: relative; }
.chart h4 { margin: 0; font-size: 13px; color: var(--ink); font-weight: 650; }
.chart h4 span { color: var(--muted); font-weight: 500; }
.chart svg { display: block; width: 100%; height: auto; cursor: crosshair; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.chart .line { fill: none; stroke: var(--blue-dark); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .limit { stroke: var(--no); stroke-width: 1.2; stroke-dasharray: 5 4; }
.chart .limit-label { fill: var(--no); font-size: 10px; font-weight: 600; }
.chart .over { fill: var(--no); opacity: .1; }
.chart .cursor { stroke: var(--navy); stroke-width: 1.2; }
.chart .dot { fill: var(--blue-dark); stroke: #fff; stroke-width: 2; }
.chart .hover { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; }
.tooltip { position: fixed; z-index: 80; pointer-events: none; background: var(--navy); color: #fff; border-radius: 10px; padding: 8px 12px; font-size: 12.5px; line-height: 1.5; box-shadow: var(--shadow-lg); font-variant-numeric: tabular-nums; max-width: 260px; }
.tooltip b { display: block; font-size: 12px; color: var(--aqua); font-weight: 650; }

/* janelas operacionais */
.windows-head { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; align-items: flex-start; }
.limits { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 10px 14px; background: var(--soft); border-radius: var(--radius); padding: 16px 18px; flex: 1; max-width: 560px; }
.limits label span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
.limits input { padding: 6px 10px; font-variant-numeric: tabular-nums; }
.link { grid-column: 1 / -1; justify-self: end; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--blue-dark); cursor: pointer; padding: 0; }
.link:hover { color: var(--navy); text-decoration: underline; }
.strip-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.sw.ok, .cell.ok { background: #7cc9a6; }
.sw.no, .cell.no { background: #e58f86; }
.strip { display: grid; grid-template-columns: 150px minmax(0, 1fr) 64px; gap: 4px 12px; align-items: center; font-size: 13.5px; overflow-x: auto; }
.strip .name { font-weight: 600; color: var(--ink); background: none; border: 0; font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; padding: 2px 8px; border-radius: 8px; white-space: nowrap; }
.strip .name:hover { background: var(--soft); }
.strip .name.sel { background: var(--navy); color: #fff; }
.strip .cells { display: flex; gap: 1px; height: 20px; min-width: 0; }
.strip .days { display: flex; height: 18px; min-width: 0; font-size: 11.5px; color: var(--muted); position: relative; }
.strip .days span { position: absolute; top: 0; border-left: 1px solid #c9d6e2; padding-left: 5px; white-space: nowrap; }
.cell { flex: 1; border-radius: 2px; cursor: pointer; }
.cell.no { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .55) 0 2px, transparent 2px 5px); }
.cell.now { outline: 2px solid var(--navy); outline-offset: 0; z-index: 1; }
.strip .pct { font-variant-numeric: tabular-nums; color: var(--muted); text-align: right; font-size: 12.5px; }
.two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td.empty { color: var(--muted); white-space: normal; }
tr.current td { background: var(--ok-bg); }
.alerts li { padding: 10px 14px; border-radius: 12px; background: var(--no-bg); color: #6d1410; margin-bottom: 8px; font-size: 14px; }
.alerts li b { display: block; color: #7a1711; }
.alerts li.none { background: var(--ok-bg); color: #0d4f37; }
.foot-note { color: var(--muted); font-size: 13px; margin: 22px 0 34px; }
.cw-footer { background: var(--navy); color: #b9cfe0; font-size: 13.5px; padding: 22px 0; }

@media (max-width: 1020px) {
  .layout, .two { grid-template-columns: minmax(0, 1fr); }
  .side { max-height: none; min-height: 0; }
  .map-wrap { height: 62vh; }
  .limits { max-width: none; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 24px); }
  .bar { gap: 12px; min-height: 64px; }
  .brand img { width: 108px; }
  .product-id { padding-left: 12px; }
  .product-id img { height: 28px; }
  .beta { display: none; }
  .langs button { padding: 3px 7px; font-size: 11.5px; }
  .back { padding: 7px 12px; font-size: 13px; }
  .banner { padding: 26px 0 70px; }
  .panel { padding: 12px; }
  .windows { padding: 20px 14px; }
  .limits, .ukc-form { grid-template-columns: repeat(2, 1fr); }
  .tabs button { padding: 9px 12px; font-size: 14.5px; }
  .attrib { position: absolute; right: 8px; bottom: 6px; background: rgba(255, 255, 255, .8); border-radius: 6px; padding: 1px 7px; font-size: 11px; color: var(--ink); pointer-events: none; }
.timebar { flex-wrap: wrap; }
  #time-label { min-width: 0; width: 100%; text-align: left; order: 3; }
  .strip { grid-template-columns: 104px minmax(0, 1fr) 46px; }
  .map-wrap { min-height: 320px; height: 58vh; }
  .legend-bar canvas { min-width: 150px; }
}
@media (prefers-reduced-motion: reduce) { .waves path { animation: none; } }

/* seletor de região */
.region-select { font: inherit; font-weight: 600; font-size: 14.5px; color: var(--navy); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; max-width: 280px; cursor: pointer; }
.region-select:hover { border-color: var(--blue); }
@media (max-width: 760px) { .region-select { order: 5; width: 100%; max-width: none; } }

/* níveis das abas: Brasil | região */
.tab-group { align-self: center; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 6px 0 2px; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.tab-sep { align-self: stretch; width: 1px; background: var(--line); margin: 8px 10px; }

/* monitoramento */
.mon-map { width: 100%; height: auto; background: #cfe6f5; border-radius: 12px; display: block; }
.mon-land { fill: #eef0ea; stroke: #b9c2bd; stroke-width: .6; }
.mon-zone { fill: rgba(24, 171, 235, .22); stroke: var(--blue-dark); stroke-width: 1.3; cursor: pointer; }
.mon-zone:hover { fill: rgba(24, 171, 235, .5); }
.mon-st { fill: #9aa7b3; stroke: #fff; stroke-width: 1.4; cursor: pointer; }
.mon-st.on { fill: var(--ok); }
.mon-st.sel { stroke: var(--navy); stroke-width: 2.4; }
.mon-chart { width: 100%; height: auto; display: block; margin-top: 10px; }
.mon-grid { stroke: var(--line); stroke-width: 1; }
.mon-tick { font-size: 11.5px; fill: var(--muted); }
.mon-now { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.mon-line { fill: none; stroke-width: 2; stroke-linejoin: round; }
.mon-line.obs { stroke: var(--ink); }
.mon-line.local { stroke: var(--blue); }
.mon-line.global { stroke: #a66a00; }
.mon-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); margin: 8px 0; }
.mon-legend i { display: inline-block; vertical-align: -1px; margin-right: 5px; }
.mon-dot { width: 11px; height: 11px; border-radius: 50%; background: #9aa7b3; } .mon-dot.on { background: var(--ok); }
.mon-box { width: 13px; height: 11px; background: rgba(24, 171, 235, .3); border: 1.3px solid var(--blue-dark); border-radius: 2px; }
.mon-sw { width: 16px; height: 3px; border-radius: 2px; background: var(--ink); vertical-align: 3px !important; } .mon-sw.local { background: var(--blue); } .mon-sw.global { background: #a66a00; }
.mon-pill { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 2px 9px; }
.mon-pill.ok { color: var(--ok); background: var(--ok-bg); } .mon-pill.no { color: var(--no); background: var(--no-bg); }

/* navegação por nível, como no protótipo: [Brasil] › [região] e abas numeradas */
.scale { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.scale .lvl { font: inherit; font-weight: 600; font-size: 14.5px; border: 1px solid var(--line); background: #fff; color: var(--navy); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.scale .lvl.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.scale .sep { color: var(--muted); }
.tabs button .n { display: inline-block; width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 50%; background: var(--soft); color: var(--blue-dark); font-size: 12px; margin-right: 7px; }
.rlist { display: grid; gap: 8px; margin-bottom: 6px; }
.rlist button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 9px 12px; cursor: pointer; }
.rlist button:hover { border-color: var(--blue); background: var(--soft); }
.rlist b { color: var(--navy); display: block; font-size: 14.5px; } .rlist small { color: var(--muted); font-size: 12.5px; }
.rlist .go { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--blue-dark); white-space: nowrap; }
.mon-zlabel { font-size: 11.5px; font-weight: 600; fill: var(--navy); paint-order: stroke; stroke: #fff; stroke-width: 3px; pointer-events: none; }

/* botão de volta à visão Brasil, no mesmo nível das abas da região */
.tabs button.tab-back { color: var(--blue-dark); background: var(--soft); border: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin: 4px 12px 6px 0; font-size: 14px; align-self: center; }
.tabs button.tab-back:hover { border-color: var(--blue); color: var(--navy); }

/* maré e janelas de manobra por fase da maré */
.tide-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { .tide-layout { grid-template-columns: 1fr; } }
.tide-group { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-dark); margin: 14px 0 6px; }
.tide-rule { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: #fff; }
.tide-rule strong { display: block; color: var(--navy); font-size: 14.5px; }
.tide-note { display: block; font-size: 12.5px; color: var(--muted); margin: 2px 0 6px; }
.tide-wins { display: flex; flex-wrap: wrap; gap: 6px; }
.tide-wins li { font-size: 13px; background: var(--ok-bg); color: var(--ink); border-radius: 8px; padding: 4px 9px; }
.tide-wins li.inst { background: var(--soft); }
.tide-wins li.none { background: var(--no-bg); color: var(--no); }
.tide-amp { margin-left: 8px; color: var(--muted); font-size: 12px; }

/* faixa de situação: dentro dos limites, mas fora das janelas de maré para manobra (regiões com regras de preamar/baixa-mar) */
.sw.tide, .cell.tide { background: #c9d3dd; }
.cell.tide { background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .6) 0 1px, transparent 1px 4px); }
/* faixa por tipo de manobra (atracação / desatracação) */
.strip.by-kind { grid-template-columns: 210px minmax(0, 1fr) 64px; }
.strip .name .kind { font-weight: 400; font-size: 11.5px; color: var(--muted); margin-left: 8px; }
.strip .name.sel .kind { color: #d6e2ee; }
.strip .name.sub { text-align: right; }
.strip .name.sub .kind { margin-left: 0; }
@media (max-width: 720px) { .strip.by-kind { grid-template-columns: 132px minmax(0, 1fr) 46px; } .strip .name .kind { display: block; margin-left: 0; } }
/* nome do ponto à esquerda e tipo de manobra alinhado à direita, na mesma coluna nas duas faixas */
.strip.by-kind .name { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.strip.by-kind .name.sub { justify-content: flex-end; }
.strip.by-kind .name .kind { margin-left: 0; }

/* aba global: séries e comparação entre modelos no ponto, abaixo do mapa (um cartão por variável) */
.gcomp { margin-top: 18px; }
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px 22px; }
.gcard { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 8px; }
.gcard h4 { margin: 0 0 2px; font-size: 13.5px; color: var(--navy); font-weight: 700; }
.gcard h4 small { color: var(--muted); font-weight: 500; }
.gcard .spread { font-size: 12.5px; margin: 4px 0 6px; }
.gcard table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.gcard th, .gcard td { text-align: left; padding: 2px 6px; border-bottom: 1px solid var(--line); }
.gcard td.num { text-align: right; }
.gcard tr.current td { font-weight: 700; color: var(--navy); }
.gcard button.link { border: 0; background: none; padding: 0; font: inherit; color: var(--blue-dark); cursor: pointer; text-align: left; }
.gcard .empty { color: var(--muted); font-size: 12.5px; margin: 6px 0; }

.coords .full { grid-column: 1 / -1; }
.points button.ed { padding: 5px 2px 5px 2px; color: var(--muted); font-size: 13px; line-height: 1; }
.points li.sel button.ed { color: #cfe6f5; }
/* aba global: ponto ao lado do mapa */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gpt-sel select { width: 100%; font: inherit; font-size: 15px; font-weight: 600; color: var(--navy); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; }
.gadd { margin: 4px 0 6px; font-size: 13.5px; }
.gadd summary { cursor: pointer; color: var(--blue-dark); font-weight: 600; margin-bottom: 8px; }
.gnow { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; margin-top: 6px; }
.gnow th, .gnow td { text-align: left; padding: 4px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.gnow td.num { text-align: right; white-space: nowrap; }
.gnow td small { color: var(--muted); display: block; font-size: 11.5px; }
.gnow tr.cur td:first-child { font-weight: 700; color: var(--navy); }
.gseries { width: 100%; margin-top: 6px; }
.gmap-hint { position: absolute; right: 12px; top: 12px; max-width: 60%; display: flex; align-items: center; gap: 7px; background: rgba(255, 255, 255, .92); color: var(--navy); border-radius: 8px; padding: 5px 10px; font-size: 12.5px; font-weight: 600; box-shadow: 0 1px 6px rgba(7, 29, 51, .18); pointer-events: none; }
.gmap-hint .mon-box { display: inline-block; }

#g-map-wrap { height: min(84vh, 880px); min-height: 520px; }
#tab-glob .side { max-height: none; }
.hint .mon-box { display: inline-block; vertical-align: -1px; }
@media (max-width: 1080px) { #g-map-wrap { height: 70vh; min-height: 360px; } }
table.skill-wrap th { white-space: normal; vertical-align: bottom; line-height: 1.25; min-width: 4.5em; max-width: 8em; }
table.skill-wrap th.grp { text-align: center; max-width: none; border-bottom: 1px solid var(--line, #d0d7de); }
table.skill-wrap td:first-child, table.skill-wrap td:last-child { white-space: normal; min-width: 8em; }

/* monitoramento: seletor de variável, mapa mais baixo, várias séries de modelo */
.mon-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.mon-head .mini { margin: 0; }
#tab-mon .mon-map { max-height: min(62vh, 560px); width: auto; max-width: 100%; margin: 0 auto; }
.mon-line.pick { stroke: #a66a00; stroke-width: 2.2; }
.mon-line.other { stroke: #9aa7b3; stroke-width: 1.2; opacity: .85; }
.mon-line.other:hover { stroke: #a66a00; stroke-width: 2.4; opacity: 1; }
.mon-sw.pick { background: #a66a00; } .mon-sw.other { background: #9aa7b3; }
.mon-obsdot { fill: var(--ink); stroke: #fff; stroke-width: 1.4; }
#skill-table td.best { font-weight: 700; color: var(--ok); }
#skill-table tr.skill-foot td { font-weight: 700; border-top: 2px solid var(--line); }
#mon-src-wrap { display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
#mon-src-wrap select { width: 100%; max-width: 100%; }

/* monitoramento: mapa maior com o campo do modelo; destaque do melhor modelo no desempenho */
#tab-mon .mon-map { max-height: min(84vh, 880px); }
.mon-ovl { image-rendering: auto; opacity: .78; }
.mon-map.ovl-wind .mon-land { fill: rgba(238, 240, 234, .25); stroke: rgba(7, 29, 51, .7); }
.mon-ovl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 8px 0 2px; font-size: 12.5px; color: var(--muted); }
.mon-ovl-row .chk { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.mon-ovl-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.mon-ovl-scale { display: inline-flex; align-items: center; gap: 6px; }
.mon-ovl-scale b { font-weight: 600; color: var(--ink); }
.mon-ovl-scale i { display: inline-block; width: 120px; height: 9px; border-radius: 3px; }
#skill-table .sk-best { display: inline-block; font-weight: 800; font-size: 1.08em; color: #0b6b3a; background: #d7f3e3; border-radius: 6px; padding: 1px 7px; }
#skill-table .sk-worst { color: #b4442f; }
#skill-table th.sk-top { color: #0b6b3a; }

/* monitoramento: zoom, pontos coloridos pelo valor medido, regiões só como referência */
.mon-mapwrap { position: relative; }
.mon-mapwrap .mon-map { cursor: grab; touch-action: none; }
.mon-mapwrap .mon-map:active { cursor: grabbing; }
.mon-zoom { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 4px; }
.mon-zoom button { width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 17px; font-weight: 700; line-height: 1; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.mon-zoom button:hover { background: #eef5fb; }
.mon-zone.ref { cursor: inherit; pointer-events: none; fill: rgba(24, 171, 235, .08); }
.mon-st.val { stroke: #071d33; }
.mon-st.val.sel { stroke: #000; }
.mon-fx { position: absolute; left: 0; top: 0; pointer-events: none; opacity: .9; }

.mon-st-wrap { display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: 100%; margin-bottom: 10px; }
.mon-st-wrap select { width: 100%; max-width: 100%; }

/* monitoramento com o mesmo visual do mapa da aba global */
#tab-mon .mon-map { background: #dfe7ee; }
#tab-mon .mon-land { fill: #ece7dc; stroke: #a89c84; }
#tab-mon .mon-map.ovl-wind .mon-land { fill: none; stroke: rgba(7, 29, 51, .8); }
#tab-mon .mon-ovl { opacity: 1; }
#tab-mon .mon-zone.ref { fill: rgba(255, 255, 255, .28); stroke: #071d33; }
#tab-mon .mon-fx { opacity: 1; }
/* cartões da comparação global: tabela cabe sem rolagem horizontal (textos quebram; números não) */
.gcard th, .gcard td { white-space: normal; padding: 2px 4px; vertical-align: top; }
.gcard td.num { white-space: nowrap; }
.gcard th { font-size: 11.5px; line-height: 1.2; }
.gcard td .link { white-space: normal; }
/* mapa do monitoramento do mesmo tamanho do mapa da aba global (largura do painel, mesma altura) */
#tab-mon .mon-map { width: 100%; height: min(84vh, 880px); min-height: 520px; max-height: none; max-width: none; margin: 0; }
@media (max-width: 1080px) { #tab-mon .mon-map { height: 70vh; min-height: 360px; } }

/* monitoramento em camadas: campo (fundo) < animação < terra, regiões e pontos */
#tab-mon .mon-mapwrap { position: relative; }
#tab-mon .mon-field { position: absolute; left: 0; top: 0; width: 100%; height: min(84vh, 880px); min-height: 520px; background: #dfe7ee; border-radius: 12px; z-index: 0; }
#tab-mon .mon-fx { z-index: 1; }
#tab-mon .mon-map { position: relative; z-index: 2; background: transparent; }
#tab-mon .mon-zoom { z-index: 3; }
@media (max-width: 1080px) { #tab-mon .mon-field { height: 70vh; min-height: 360px; } }

.mon-hover { stroke: var(--navy); stroke-width: 1; stroke-dasharray: 2 3; pointer-events: none; }
#mon-chart { cursor: crosshair; }

/* previsão local no monitoramento: satélite da região + linha de costa definida (branca, como na previsão local) */
#tab-mon .mon-sat { opacity: 1; }
#tab-mon .mon-ovl.over-sat { opacity: .7; }
#tab-mon .mon-coast { fill: none; stroke: #fff; stroke-linejoin: round; opacity: .95; pointer-events: none; }
#tab-mon .mon-zone.ref.own { fill: none; stroke: rgba(255,255,255,.85); }
#tab-mon .mon-ovl.over-sat { opacity: .35; }

/* seletor de região logo abaixo das abas (antes ficava no topo do site) */
.region-row { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; }
.region-pick { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.region-pick .region-select { max-width: 340px; }
@media (max-width: 760px) { .region-pick { flex-direction: column; align-items: stretch; width: 100%; } .region-pick .region-select { max-width: none; } }

/* abas só com o nome (sem numeração), em todos os níveis */
.tabs button .n { display: none !important; }

/* subtítulo ao lado do logo (no lugar do selo Beta), no mesmo esquema do XYZ2DXF */
.cw-ttl { padding-left: 14px; border-left: 1px solid var(--line); max-width: 380px; line-height: 1.25; }
.cw-ttl b { display: block; color: var(--navy); font-size: 15px; font-weight: 700; }
@media (max-width: 1180px) { .cw-ttl b { font-size: 13px; } .cw-ttl { max-width: 260px; } }
@media (max-width: 900px) { .cw-ttl { display: none; } }

/* ===================== celular e tablet (decisões em docs/ux-mobile.md) ===================== */
.tb-more { display: none; }
.chart svg, #mon-chart { touch-action: pan-y; }   /* arrastar na horizontal percorre a série; na vertical rola a página */
@media (pointer: coarse) {
  .seg button, .langs button, .tabs button, .btn-small, .link, .points button, .zoom button, .back, select, input[type=number], input[type=text] { min-height: 40px; }
  .langs button { min-width: 40px; }
  .seg button { padding: 6px 14px; }
  .zoom button { width: 44px; height: 44px; }
  .points li { min-height: 40px; }
  .points button.rm, .points button.ed { min-width: 36px; }
  .play { width: 48px; height: 48px; }
  #time { height: 40px; }
  .strip .name { min-height: 36px; }
  .link { display: inline-flex; align-items: center; }
  .mon-zoom button { width: 40px; height: 40px; }
  #g-time, .timeline input[type=range] { height: 40px; }
  .rules a { display: inline-block; padding: 8px 2px; }
}
.gcard { min-width: 0; }
@media (max-width: 1180px) and (min-width: 761px) {
  .coords { grid-template-columns: 1fr 1fr; }
  .coords .btn-small { grid-column: 1 / -1; }
}
@media (max-width: 1020px) and (min-width: 761px) {
  .map-wrap { height: 56vh; min-height: 380px; }
  .side { max-height: none; }
}
@media (max-width: 760px) {
  /* cabeçalho: rola junto com a página; a barra de abas é que fica fixa no topo */
  .cw-header { position: static; }
  .bar { flex-wrap: wrap; gap: 8px 10px; min-height: 0; padding: 8px 0; }
  .brand img { width: 96px; }
  .product-id { padding-left: 10px; margin-right: auto; }
  .product-id img { height: 26px; }
  .back { font-size: 0; padding: 0; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
  .back::before { content: "←"; font-size: 18px; line-height: 1; }
  /* faixa do título mais baixa; dados da rodada numa linha que rola na horizontal */
  .banner { padding: 10px 0 30px; }
  .banner h1 { font-size: 22px; }
  .banner p { font-size: 14px; margin-top: 4px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 8px -12px 0; padding: 0 12px 4px; scrollbar-width: none; }
  .chips li { flex: none; font-size: 12.5px; padding: 4px 11px; }
  .waves { height: 26px; }
  .tabs { position: sticky; top: 0; z-index: 40; background: #fff; margin: 8px -12px 0; padding: 0 12px; scrollbar-width: none; scroll-snap-type: x proximity; box-shadow: 0 6px 12px -10px rgba(7, 29, 51, .35); }
  .tabs button { scroll-snap-align: start; padding: 10px 12px; font-size: 14.5px; }
  .region-row { margin-top: 10px; }
  .region-select { min-height: 44px; }
  /* previsão: mapa largo e alto; opções do mapa recolhidas num botão */
  .layout { gap: 12px; margin-top: 12px; }
  .map-panel { padding: 8px; margin: 0 -6px; }
  .toolbar { gap: 8px; margin-bottom: 8px; }
  .toolbar #layers { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; }
  .toolbar #layers button { padding: 6px 4px; font-size: 13.5px; }
  .tb-more { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: inherit; font-size: 13.5px; font-weight: 600; border-radius: 999px; padding: 6px 14px; min-height: 40px; cursor: pointer; }
  .tb-more::after { content: "▾"; font-size: 12px; transition: transform .2s; }
  .toolbar.open .tb-more::after { transform: rotate(180deg); }
  .toolbar:has(.tb-more) > :not(.tb-keep):not(.tb-more) { display: none !important; }
  .toolbar.open > :not(.tb-keep):not(.tb-more):not([hidden]) { display: inline-flex !important; }
  .toolbar .mini.tb-keep { display: flex; width: 100%; }
  .toolbar .mini.tb-keep > span { flex: 0 0 72px; }
  .toolbar .mini.tb-keep select { flex: 1 1 auto; width: 100%; }
  .map-wrap { height: 64vh; min-height: 300px; max-height: 560px; }
  .legend { left: 8px; bottom: 8px; padding: 6px 9px 4px; font-size: 11.5px; max-width: calc(100% - 70px); }
  .legend-bar canvas { min-width: 140px; }
  .readout { font-size: 12px; max-width: calc(100% - 70px); }
  .attrib { left: 8px; right: auto; top: 8px; bottom: auto; font-size: 10px; max-width: calc(100% - 70px); }
  .timebar { gap: 10px; }
  .coords { grid-template-columns: 1fr 1fr; }
  .coords .btn-small { grid-column: 1 / -1; min-height: 44px; }
  .series-head { flex-wrap: wrap; }
  .charts { grid-template-columns: minmax(0, 1fr); }
  /* gráficos: letras maiores no SVG (que encolhe para caber na largura do celular) */
  .chart .axis { font-size: 14px; }
  .chart .limit-label { font-size: 13px; }
  .chart h4 { font-size: 14px; }
  /* janelas e tábua de maré: tabelas viram cartões (rótulo à esquerda, valor à direita) */
  table.cards tr:first-child { display: none; }
  table.cards tr { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; margin: 0 0 10px; }
  table.cards td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 0; white-space: normal; text-align: right; }
  table.cards td + td { border-top: 1px solid var(--line); }
  table.cards td::before { content: attr(data-label); color: var(--muted); font-weight: 600; font-size: 12.5px; text-align: left; }
  table.cards td.empty::before { content: none; }
  table.cards tr.current { border-color: #7cc9a6; background: var(--ok-bg); }
  table.cards tr.current td { background: none; }
  /* tabelas largas (desempenho dos modelos): rolagem só dentro da tabela, com a 1ª coluna fixa */
  .table-wrap { margin: 0 -12px; padding: 0 12px; }
  .table-wrap table:not(.cards) td:first-child, .table-wrap table:not(.cards) th:first-child { position: sticky; left: 0; background: #fff; z-index: 1; box-shadow: 1px 0 0 var(--line); }
  .windows { padding: 18px 12px; }
  .windows-head { gap: 14px; }
  .limits, .ukc-form { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  .ukc-charts { grid-template-columns: minmax(0, 1fr); }
  .ukc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tooltip { max-width: calc(100vw - 16px); }
  #g-map-wrap, #tab-mon .mon-map, #tab-mon .mon-field { height: 60vh; min-height: 300px; }
  .gcards { grid-template-columns: minmax(0, 1fr); }
  .mini { max-width: 100%; min-width: 0; }
  .mini select { min-width: 0; max-width: 100%; flex: 1 1 auto; }
  #skill-table { display: block; overflow-x: auto; }
  .timebar { flex-wrap: wrap; }
  .timebar output { min-width: 0 !important; width: 100%; order: 3; text-align: left !important; }
  .timebar .timeline { flex: 1 1 160px; }
  .gcard { padding: 10px 10px 6px; }
  .gcard .table-wrap { overflow-x: auto; margin: 0; padding: 0; }
  .gmap-hint { max-width: calc(100% - 24px); font-size: 11.5px; }
  .foot-note { margin: 16px 0 24px; }
}

/* aviso de contingência da rodada (forçante trocada, ciclo anterior, partida a frio) */
.cont-notice { text-align: left; }
.cont-notice ul { margin: 6px 0 0; padding-left: 18px; }
.cont-notice li { margin: 2px 0; font-size: 13.5px; }

/* legenda das formas dos pontos fixos da Previsão Brasil */
.gpt-key { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.gpt-key i { font-style: normal; margin-right: 3px; }
.gpt-key .k-port { color: #071d33; } .gpt-key .k-og { color: #8a3b12; } .gpt-key .k-wind { color: #0f6b4f; } .gpt-key .k-river { color: #5b3a8c; }

/* ---------- certificado de calibração (calib.js) ---------- */
.calib-chip button { font: inherit; border: 0; background: none; padding: 0; cursor: pointer; color: inherit; text-decoration: underline dotted; }
.calib-chip.calibrated button { color: #0d6b3a; } .calib-chip.partial button { color: #8a5a00; } .calib-chip.uncalibrated button { color: #9b2c00; }
.calib-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.calib-tag { font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 12px; }
.calib-tag.calibrated { background: #e3f6ea; color: #0d6b3a; } .calib-tag.partial { background: #fff3d6; color: #8a5a00; } .calib-tag.uncalibrated { background: #ffe9df; color: #9b2c00; }
.calib-uncal { background: #fff6e0; border: 1px solid #f0d58a; border-radius: 12px; padding: 12px 16px; color: #5c4400; }
.calib-sum { font-size: 15px; }
.calib-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 10px 0; }
.calib-list h3, .calib-h3 { font-size: 15px; margin: 14px 0 6px; color: var(--navy); }
.calib-list ul { margin: 0; padding-left: 18px; } .calib-list li { margin: 3px 0; font-size: 14px; }
.calib-list.good h3 { color: #0d6b3a; } .calib-list.lim h3 { color: #9b2c00; }
.calib-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.calib-table th, .calib-table td { padding: 5px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.grade { border-radius: 999px; padding: 1px 9px; font-weight: 700; font-size: 12px; }
.grade.good { background: #e3f6ea; color: #0d6b3a; } .grade.fair { background: #fff3d6; color: #8a5a00; } .grade.limited { background: #ffe9df; color: #9b2c00; }
.calib-panel { margin: 14px 0 22px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.calib-panel figcaption { font-weight: 700; font-size: 15px; text-align: center; color: #111; margin-bottom: 4px; }
.calib-cols { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.calib-roses { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.calib-svg { width: 100%; height: auto; display: block; font-family: Arial, Helvetica, sans-serif; }
.calib-svg .g { stroke: #e3e3e3; stroke-width: 1; } .calib-svg .frame { fill: none; stroke: #888; stroke-width: .8; }
.calib-svg .ax { font-size: 10px; fill: #333; } .calib-svg .lb { font-size: 11px; } .calib-svg .ttl { font-size: 11.5px; font-weight: 700; fill: #111; }
.calib-svg .ln-m { fill: none; stroke: #e00000; stroke-width: 1.4; } .calib-svg .ln-w { fill: none; stroke: #0a2bd6; stroke-width: 1.1; }
.calib-svg .pt-o { fill: #000; } .calib-svg .leg { fill: #fff; stroke: #333; stroke-width: .6; }
.calib-svg .rg { fill: none; stroke: #555; stroke-width: .6; stroke-dasharray: 3 2; } .calib-svg .rs { stroke: rgba(255,255,255,.5); stroke-width: .4; }
.calib-svg .rl { font-size: 7.5px; fill: #333; } .calib-svg .one { stroke: #1060d0; stroke-width: 1.6; } .calib-svg .qpt { fill: #e00000; }
@media (max-width: 900px) { .calib-cols { grid-template-columns: 1fr; } }

/* ---------- compartilhe seus dados (share.js) ---------- */
.share-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 18px 0 4px; padding: 14px 18px;
  border-radius: 14px; background: linear-gradient(90deg, #e8f6fd, #f3fbff); border: 1px solid #b9e2f6; }
.share-cta b { color: var(--navy); font-size: 15.5px; } .share-cta p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.btn-share { display: inline-block; border: 0; border-radius: 999px; background: var(--blue-dark); color: #fff; font-weight: 700; font-size: 14px; padding: 9px 18px; cursor: pointer; text-decoration: none; }
.btn-share:hover { background: var(--navy-2); } .btn-share:disabled { opacity: .6; cursor: wait; }
.sh-dlg { width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 32px); border: 0; border-radius: 16px; padding: 22px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.sh-dlg::backdrop { background: rgba(7, 29, 51, .55); }
.sh-dlg h2 { margin: 0 30px 6px 0; color: var(--navy); } .sh-intro { font-size: 14px; color: var(--muted); }
.sh-x { position: absolute; right: 14px; top: 10px; border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--muted); }
.sh-tabs { display: flex; gap: 6px; margin: 12px 0; } .sh-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; font-weight: 600; }
.sh-tabs button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.sh-form, .sh-api { display: grid; gap: 10px; }
.sh-f { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sh-f input, .sh-f select, .sh-f textarea { font: inherit; font-weight: 400; color: #111; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; }
.sh-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } @media (max-width: 560px) { .sh-row { grid-template-columns: 1fr; } }
.sh-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; } .sh-consent input { margin-top: 3px; }
.sh-status { font-size: 13.5px; margin: 0; } .sh-status.ok { color: #0d6b3a; font-weight: 700; } .sh-status.bad { color: #9b2c00; }
.sh-pre { background: #0b1f33; color: #d6ecff; border-radius: 10px; padding: 10px 12px; font-size: 12px; overflow-x: auto; white-space: pre; }
.sh-code { display: block; background: #fff6e0; border: 1px solid #f0d58a; padding: 8px 10px; border-radius: 8px; word-break: break-all; font-size: 13px; user-select: all; }
.sh-mine ul { padding-left: 18px; font-size: 13px; } .sh-mini { margin-left: 6px; font-size: 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; }
