/* Layout: painel do cenário. Computador: carteira e indicadores | decisão com alavancas | caderno fixo. Celular: abas embaixo (Carteira, Decisão, Caderno) e botão de confirmar. */
:root {
  --bg: #eef2f5;
  --surface: #ffffff;
  --ink: #13212b;
  --muted: #5a6875;
  --line: #d5dde4;
  --brand: #1a425e;
  --brand-ink: #ffffff;
  --accent: #c46f00;
  --accent-soft: #fbefdc;
  --good: #2e7d4f;
  --warn: #b26a00;
  --bad: #b3362b;
  --chip: #e4eaf0;
  --soil: #b89470; --soil-dot: #f2efe6; --crop: #6fae5a; --crop-row: #4f8f3f; --crop-pale: #b9c96a;
  --dry: #d6b24a; --harvest: #d9b44a; --bug: #b3362b; --road: #e6e0d0; --shield: #2c6fd1;
  --chat-bg: #e9e5dd; --chat-head: #1a425e;
  --acid: #c4472f; --fert: #2f6fb8; --potash: #7a4fc0; --mist: #8fc3ef; --rust: #e0801f; --scorch: #7a1f12; --lock: #6b4f12;
  --f-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --f-num: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1720; --surface: #15212b; --ink: #e3ebf2; --muted: #9aabb9; --line: #2a3a47;
    --brand: #8db4dc; --brand-ink: #0b1620; --accent: #e3a73f; --accent-soft: #33291a;
    --good: #6cc48f; --warn: #e3a73f; --bad: #ef7a6c; --chip: #22303b;
    --soil: #6e5640; --soil-dot: #cfc6b0; --crop: #3f7d38; --crop-row: #57964c; --crop-pale: #7d8a3a;
    --dry: #9a7f2c; --harvest: #a8892f; --bug: #ef7a6c; --road: #2a2f27; --shield: #7fb0ff;
    --chat-bg: #111a21; --chat-head: #1f3a50;
    --acid: #b8462f; --fert: #7fb0ff; --potash: #b495f0; --mist: #9cc9f0; --rust: #f0943a; --scorch: #ff9a85; --lock: #e3c06a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1720; --surface: #15212b; --ink: #e3ebf2; --muted: #9aabb9; --line: #2a3a47;
  --brand: #8db4dc; --brand-ink: #0b1620; --accent: #e3a73f; --accent-soft: #33291a;
  --good: #6cc48f; --warn: #e3a73f; --bad: #ef7a6c; --chip: #22303b;
  --soil: #6e5640; --soil-dot: #cfc6b0; --crop: #3f7d38; --crop-row: #57964c; --crop-pale: #7d8a3a;
  --dry: #9a7f2c; --harvest: #a8892f; --bug: #ef7a6c; --road: #2a2f27; --shield: #7fb0ff;
    --chat-bg: #111a21; --chat-head: #1f3a50;
    --acid: #b8462f; --fert: #7fb0ff; --potash: #b495f0; --mist: #9cc9f0; --rust: #f0943a; --scorch: #ff9a85; --lock: #e3c06a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--f-body);
  padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) calc(104px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.wrap { max-width: 640px; margin: 0 auto; display: grid; gap: 14px; padding-top: 14px; }
body.in-game .wrap { max-width: 1320px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 24px; letter-spacing: .02em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand small { font-family: var(--f-body); font-weight: 500; font-size: 13px; color: var(--muted); letter-spacing: 0; }
.tag { font: 500 12px var(--f-num); color: var(--muted); background: var(--chip); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.phases { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.phases div { display: grid; gap: 5px; font-size: 11.5px; color: var(--muted); }
.phases i { display: block; height: 5px; border-radius: 3px; background: var(--line); }
.phases .done i { background: var(--brand); }
.phases .now i { background: var(--accent); }
.phases .now span { color: var(--ink); font-weight: 600; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 14px; min-width: 0; align-content: start; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: .01em; }
h1 { font-size: 40px; } h2 { font-size: 30px; } h3 { font-size: 20px; }
p { margin: 0; }
.muted { color: var(--muted); }
.kicker { font: 500 12.5px var(--f-num); color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.mono { font-family: var(--f-num); }

/* Jogo */
.game { display: grid; gap: 14px; align-items: start; grid-template-columns: 330px minmax(0, 1fr) 300px; grid-template-areas: "lav dec cad"; }
.pane-lav { grid-area: lav; } .pane-dec { grid-area: dec; } .pane-cad { grid-area: cad; }
.pane-lav, .pane-cad { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
@media (max-width: 1150px) {
  .game { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "dec lav" "dec cad"; }
  .pane-lav, .pane-cad { position: static; max-height: none; }
}
@media (max-width: 760px) {
  .game { grid-template-columns: minmax(0, 1fr); grid-template-areas: "lav" "dec" "cad"; }
  .game > section { display: none; }
  .game > section.on { display: grid; }
}
.farm svg { width: 100%; height: auto; display: block; }
.farm-cap { display: flex; justify-content: space-between; gap: 8px; font: 500 12px var(--f-num); color: var(--muted); }
.inds { display: grid; gap: 10px; }
.ind { display: grid; gap: 4px; }
.ind-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; align-items: baseline; }
.ind-top b { font: 500 14px var(--f-num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.track { height: 8px; border-radius: 4px; background: var(--chip); overflow: hidden; position: relative; }
.track span { position: absolute; inset: 0 auto 0 0; border-radius: 4px; transition: width .4s ease; }
.track .mk { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--ink); opacity: .35; }
.dlt { font: 500 11.5px var(--f-num); margin-left: 6px; }
.up { color: var(--good); } .down { color: var(--bad); } .flat { color: var(--muted); }
.unk { color: var(--muted); font-style: normal; }

.dayline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.day { font: 500 13px var(--f-num); background: var(--ink); color: var(--bg); padding: 3px 10px; border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-weight: 600; color: var(--muted); font-size: 12.5px; background: var(--chip); }
td.n { font-family: var(--f-num); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
td.hot { color: var(--bad); font-weight: 600; }
details.formula { border: 1px dashed var(--line); border-radius: 10px; padding: 7px 12px; font-size: 13.5px; }
details.formula summary { cursor: pointer; font-weight: 600; color: var(--brand); }
details.formula p { margin-top: 8px; }

/* Compacto no jogo */
.pane-dec { padding: 14px 16px; gap: 9px; }
.pane-dec h2 { font-size: 25px; }
.pane-dec > p, .pane-dec p { font-size: 15px; line-height: 1.45; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.stat { background: var(--chip); border-radius: 8px; padding: 5px 8px; display: grid; min-width: 0; }
.stat small { font-size: 11px; color: var(--muted); line-height: 1.25; }
.stat b { font: 500 13.5px/1.3 var(--f-num); font-variant-numeric: tabular-nums; }
.stat.hot b { color: var(--bad); }
.ref { border: 1.5px solid var(--accent); border-radius: 10px; padding: 8px 12px; font-size: 13.5px; background: var(--accent-soft); }
.ref ul, details.formula ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 2px; font-size: 13.5px; }
@media (max-width: 760px) {
  body.in-game .phases { display: none; }
  body.in-game .wrap { padding-top: 8px; gap: 8px; }
  body.in-game header.top .tag { display: none; }
  .stats { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .pane-dec > p, .pane-dec p { font-size: 14.5px; }
  .pane-dec h2 { font-size: 23px; }
}
.conseq { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 761px) { .conseq { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } .sheet .farm svg { height: auto; width: 100%; } }
.chain { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 0; counter-reset: c; }
.chain li { position: relative; padding: 0 0 9px 28px; font-size: 14px; line-height: 1.4; counter-increment: c; }
.chain li::before { content: counter(c); position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 600 11px/20px var(--f-num); text-align: center; }
.chain li:not(:last-child)::after { content: ""; position: absolute; left: 9.5px; top: 21px; bottom: 1px; width: 1.5px; background: var(--line); }
.chain li:last-child { font-weight: 600; padding-bottom: 0; }
.chat { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--chat-bg); display: grid; align-content: start; }
.chat-head { background: var(--chat-head); color: #fff; padding: 7px 12px; display: grid; line-height: 1.25; }
.chat-head b { font-size: 14px; } .chat-head small { font-size: 11.5px; opacity: .85; }
.chat-body { padding: 10px; display: grid; gap: 8px; min-height: 120px; align-content: start; }
.msg, .typing { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 7px; align-items: start; }
.av { width: 28px; height: 28px; border-radius: 50%; color: #fff; font: 600 10.5px/28px var(--f-num); text-align: center; }
.bub { background: var(--surface); border-radius: 4px 12px 12px 12px; padding: 6px 10px 4px; display: grid; gap: 3px; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.bub b { font-size: 12.5px; } .bub b small { font-weight: 400; color: var(--muted); }
.bub p { font-size: 14px !important; line-height: 1.42 !important; margin: 0; }
.bub .tr span { display: block; font-size: 11px; color: var(--muted); font-style: italic; }
.bub .hora { justify-self: end; font: 500 10.5px var(--f-num); color: var(--muted); }
.audio { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; color: var(--brand); }
.audio svg { width: 22px; height: 22px; }
.wave { display: flex; align-items: center; gap: 2px; height: 18px; }
.wave i { width: 3px; border-radius: 2px; background: var(--muted); opacity: .6; }
.dur { font: 500 11px var(--f-num); color: var(--muted); }
.typing { align-items: center; color: var(--muted); font-size: 12px; }
.typing .dots { display: none; }
.typing small { font-style: italic; }
@media (prefers-reduced-motion: no-preference) { .msg { animation: pop .2s ease both; } @keyframes pop { from { transform: translateY(4px); } to { transform: none; } } }
@media (max-width: 760px) {
  .sheet { padding: 8px; }
  .sheet .panel { padding: 12px 14px; gap: 7px; }
  .sheet h2 { font-size: 21px; }
  .sheet .farm svg { height: 96px; }
  .sheet .leg { display: none; }
  .chat-body { padding: 8px; gap: 6px; min-height: 0; }
  .bub p { font-size: 13.5px !important; line-height: 1.38 !important; }
  .bub { padding: 5px 9px 3px; }
  .bub .hora { display: none; }
  .msg, .typing { grid-template-columns: 24px minmax(0, 1fr); gap: 6px; }
  .av { width: 24px; height: 24px; font-size: 9.5px; line-height: 24px; }
  .chat-head { padding: 5px 10px; }
}
.zoomable { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.zoom-hint { position: absolute; right: 8px; bottom: 8px; font: 600 12px var(--f-body); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; }
.zoom .panel { max-width: 900px; border-top-color: var(--brand); }
.sheet .farm.big svg, .farm.big svg { width: 100%; height: auto; max-height: 68vh; margin: 0 auto; }
.leg-big { font-size: 16px; line-height: 1.5; }
.leg { font-size: 12px; color: var(--muted); line-height: 1.4; }
/* Alavancas */
.levers { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.lever.wide { grid-column: 1 / -1; }
.lever { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; display: grid; gap: 4px; background: color-mix(in srgb, var(--chip) 45%, var(--surface)); }
.lv-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lv-head label, .lv-head span.lbl { font-weight: 600; font-size: 14.5px; }
.lv-val { font: 500 19px var(--f-num); font-variant-numeric: tabular-nums; color: var(--brand); white-space: nowrap; }
.lv-val small { font-size: 13px; color: var(--muted); }
.lv-row { display: grid; grid-template-columns: 36px 1fr 36px; gap: 8px; align-items: center; }
.step { font: 600 18px var(--f-body); width: 36px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
input[type="range"] { width: 100%; height: 28px; accent-color: var(--brand); margin: 0; }
.lv-scale { display: flex; justify-content: space-between; font: 500 11.5px var(--f-num); color: var(--muted); padding: 0 50px; }
.lv-hint { font-size: 13px; color: var(--muted); }
.lv-desc { font-size: 13.5px !important; color: var(--muted); }
.lv-desc b { color: var(--ink); font-weight: 600; }
.lv-mark { position: relative; height: 16px; margin: -2px 44px 0; }
.lv-mark span { position: absolute; transform: translateX(-50%); font: 500 11px var(--f-num); color: var(--accent); white-space: nowrap; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 6px; }
.seg button, .tal button {
  font: 500 13.5px/1.3 var(--f-body); text-align: left; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 6px 10px; cursor: pointer; display: grid; gap: 2px;
}
.seg button small, .tal button small { font: 500 11px var(--f-num); color: var(--muted); }
.seg button[aria-pressed="true"], .tal button[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.tal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.tal button { text-align: center; padding: 8px 4px; }
.tal button b { font-family: var(--f-display); font-size: 18px; }
.tal button .st { font-size: 11.5px; color: var(--muted); }
.tal button[aria-pressed="true"] .st { color: var(--brand); font-weight: 600; }
@media (max-width: 400px) { .tal button small { font-size: 11px; } }
.preview { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 7px; }
.preview b { font-family: var(--f-num); color: var(--ink); font-weight: 500; }

/* Caderno */
.cad-list { display: grid; gap: 10px; }
.entry { border-left: 4px solid var(--line); padding: 2px 0 2px 12px; display: grid; gap: 4px; }
.entry.good { border-color: var(--good); } .entry.mid { border-color: var(--warn); } .entry.bad { border-color: var(--bad); } .entry.info { border-color: var(--accent); }
.entry .d { font: 500 11.5px var(--f-num); color: var(--muted); }
.entry h4 { margin: 0; font-family: var(--f-display); font-size: 18px; line-height: 1.15; text-wrap: balance; }
.entry p { font-size: 14px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 500 11.5px var(--f-num); background: var(--chip); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.chip.up { background: color-mix(in srgb, var(--good) 16%, transparent); }
.chip.down { background: color-mix(in srgb, var(--bad) 14%, transparent); }

/* Barra fixa */
.bar-fixed { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px max(16px, env(safe-area-inset-left, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); z-index: 5; }
.bar-fixed .in { max-width: 640px; margin: 0 auto; display: flex; gap: 8px; }
body.in-game .bar-fixed .in { max-width: 1320px; justify-content: flex-end; }
.tabs { display: none; flex: 1 1 auto; min-width: 0; gap: 5px; }
.sm { display: none; }
@media (max-width: 760px) { .lg { display: none; } .sm { display: inline; } }
.tabs button { flex: 1; min-width: 0; font: 600 12.5px var(--f-body); background: var(--surface); color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 8px 4px; cursor: pointer; position: relative; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.tabs .badge { position: absolute; top: -6px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: #fff; font: 600 11px/18px var(--f-num); }
@media (max-width: 760px) { body.in-game .tabs { display: flex; } body.in-game .bar-fixed .btn.primary { flex: 0 0 auto; } }
.btn { font: 600 16px var(--f-body); border-radius: 12px; padding: 12px 18px; cursor: pointer; border: 1.5px solid transparent; }
.btn.primary { background: var(--brand); color: var(--brand-ink); flex: 1; }
body.in-game .btn.primary { flex: 0 0 auto; min-width: 200px; }
@media (max-width: 760px) { body.in-game .btn.primary { min-width: 0; padding: 12px 14px; } }
.btn.primary:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn:focus-visible, .step:focus-visible, .seg button:focus-visible, .tal button:focus-visible, .tabs button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Manchete (folha que sobe) */
.sheet { position: fixed; inset: 0; background: rgba(8, 14, 10, .55); display: grid; align-items: end; justify-items: center; z-index: 10; padding: 16px; }
.sheet[hidden] { display: none; }
.sheet .panel { background: var(--surface); border-radius: 18px; max-width: 620px; width: 100%; padding: 16px 18px; display: grid; gap: 8px; max-height: 94vh; overflow: auto; border-top: 6px solid var(--accent); }
.sheet .panel.good { border-top-color: var(--good); } .sheet .panel.bad { border-top-color: var(--bad); } .sheet .panel.mid { border-top-color: var(--warn); }
.sheet h2 { font-size: 24px; }
.sheet p { font-size: 14.5px; line-height: 1.45; }
.sheet .farm svg { height: min(150px, 22vh); width: auto; max-width: 100%; margin: 0 auto; }
.sheet .btn { padding: 11px 16px; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill.big { font: 600 12.5px var(--f-body); padding: 4px 11px; }
.sheet ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
@media (min-width: 761px) { .sheet { align-items: center; } }
@media (prefers-reduced-motion: no-preference) { .sheet .panel { animation: rise .28s ease both; } @keyframes rise { from { transform: translateY(24px); } to { transform: none; } } }

/* Formulários e laudo */
form { display: grid; gap: 12px; }
.field { display: grid; gap: 5px; }
label { font-weight: 600; font-size: 14px; }
input[type="text"], input[type="email"], select { font: 400 16px var(--f-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; font-weight: 400; font-size: 13.5px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }
.combo { position: relative; }
.combo ul { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; max-height: 220px; overflow: auto; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.combo li { padding: 7px 10px; border-radius: 7px; cursor: pointer; font-size: 15px; }
.combo li:hover, .combo li.on { background: var(--chip); }
.combo li.vazio { color: var(--muted); cursor: default; }
.err { color: var(--bad); font-size: 13.5px; min-height: 1em; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.steps { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-size: 15px; }
.steps li span { font: 600 13px var(--f-num); color: var(--accent); padding-top: 2px; }
.score { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.dial { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--brand) calc(var(--v) * 1%), var(--chip) 0); }
.dial > div { width: 86px; height: 86px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; text-align: center; }
.dial b { font: 500 30px var(--f-num); line-height: 1; }
.dial small { font-size: 11px; color: var(--muted); }
.level { display: inline-block; font-weight: 600; font-size: 14px; padding: 4px 12px; border-radius: 999px; justify-self: start; }
.lv-ref { background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
.lv-ok { background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); }
.lv-low { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpis div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; }
.kpis small { color: var(--muted); font-size: 12.5px; }
.kpis b { font: 500 19px var(--f-num); font-variant-numeric: tabular-nums; }
.seal { border: 2px solid var(--brand); border-radius: 14px; padding: 14px; display: grid; gap: 4px; text-align: center; }
.seal.off { border-style: dashed; border-color: var(--line); }
.seal b { font-family: var(--f-display); font-size: 24px; }
.debrief { display: grid; gap: 10px; }
.db { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; font-size: 14.5px; }
.db-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.db-head b { font-family: var(--f-display); font-size: 18px; }
.pill { font: 500 12px var(--f-num); padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.p-good { background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
.p-mid { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.p-bad { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }
.next { border: 1.5px solid var(--accent); }
.share img { width: 100%; max-width: 360px; border-radius: 12px; border: 1px solid var(--line); justify-self: center; }
.note { font-size: 12.5px; color: var(--muted); }
details.exp > summary { cursor: pointer; list-style: none; display: grid; gap: 2px; }
details.exp > summary::-webkit-details-marker, details.sit > summary::-webkit-details-marker { display: none; }
details.exp > summary h3::after { content: " ▾"; color: var(--muted); font-size: 16px; }
details.exp[open] > summary h3::after { content: " ▴"; }
details.exp > summary span { font-size: 13.5px; }
.sits { display: grid; gap: 8px; margin-top: 12px; }
details.sit { border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; }
details.sit > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
details.sit > summary b { font-family: var(--f-display); font-size: 18px; flex: 1; }
details.sit > summary .mono { font-size: 12px; }
.sit-body { display: grid; gap: 8px; margin-top: 10px; font-size: 14.5px; }
.next-mini { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--line); padding-top: 12px; font-size: 14.5px; }
.laudo { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); align-items: start; }
body.in-report .wrap { max-width: 1240px; }
@media (min-width: 900px) { .laudo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .laudo > .full { grid-column: 1 / -1; } }
footer { font-size: 12px; color: var(--muted); text-align: center; padding: 8px 0 0; }
[hidden] { display: none !important; }
@media (max-width: 520px) { .brand small { display: none; } .two { grid-template-columns: 1fr; } h1 { font-size: 34px; } h2 { font-size: 27px; } }
.bar-fixed { padding: 6px max(12px, env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) !important; display: flex; align-items: center; gap: 12px; }
.bar-fixed .in { flex: 1; }
.fine { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); max-width: 360px; font-size: 10px; line-height: 1.3; color: var(--muted); margin: 0; }
@media (max-width: 1100px) { .fine { display: none; } }
body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)) !important; }

/* ---------- Marca FieldSkill (logo nova) ---------- */
:root { --fs-laranja: #e99a3d; }
.brand { min-height: 37.1875px; }  /* mesma altura do cabeçalho antigo: nada se desloca na tela */
.brand svg.fs-icone { width: auto; height: 32px; }
.fs-nome { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.brand svg.fs-palavra { width: auto; height: 19px; }
.fs-field { fill: var(--brand); }
.fs-skill { fill: var(--fs-laranja); }
.brand .fs-nome small { display: block; font-family: "Poppins", var(--f-body); font-weight: 300; font-size: 11.5px; color: var(--brand); letter-spacing: .01em; margin-top: 3px; white-space: nowrap; }
@media (max-width: 760px) { .brand svg.fs-icone { height: 30px; } .brand svg.fs-palavra { height: 17px; } .brand .fs-nome small { font-size: 10.5px; } }
/* Celular: na tela inicial e no relatório o nome do cenário ocupa o espaço ao lado da logo, então a frase sai (como o subtítulo antigo); durante as rodadas ela aparece. */
@media (max-width: 520px) { .brand .fs-nome small { display: none; } body.in-game .brand .fs-nome small { display: block; } }

/* ---------- Plataforma: menu, gaveta, cronômetro ---------- */
.fs-logo { display: flex; align-items: center; gap: 10px; }
.fs-menu { width: 34px; height: 34px; flex: none; border: 1px solid var(--line); border-radius: 9px; background: var(--card, #fff); color: var(--brand); font-size: 17px; line-height: 1; cursor: pointer; padding: 0; }
.fs-menu:hover { border-color: var(--brand); }
.fs-topo-dir { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fs-tempo { font: 500 13px var(--f-num); color: #7a4a06; background: #fbefdc; border: 1px solid #efd3a6; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.fs-tempo.alerta { color: #8c2318; background: #fbe3df; border-color: #eeb6ad; }
.fs-aviso-tempo { background: #fbefdc; color: #6b4307; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.fs-fundo { position: fixed; inset: 0; background: rgba(10, 25, 36, .35); z-index: 40; }
.fs-gaveta { position: fixed; top: 0; bottom: 0; left: 0; width: 260px; max-width: 82vw; background: #1a425e; color: #fff; z-index: 41; padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; transform: translateX(-105%); transition: transform .2s ease; visibility: hidden; }
.fs-gaveta.aberta { transform: none; visibility: visible; }
.fs-gaveta-topo { padding: 4px 8px 14px; font: 500 20px "Poppins", var(--f-body); }
.fs-gaveta-topo b { color: var(--fs-laranja); font-weight: 500; }
.fs-gaveta a, .fs-gaveta-sair { display: block; color: #fff; text-decoration: none; padding: 10px 10px; border-radius: 8px; font-size: 15px; background: none; border: 0; text-align: left; cursor: pointer; font-family: inherit; }
.fs-gaveta a:hover, .fs-gaveta-sair:hover { background: rgba(255, 255, 255, .12); }
.fs-gaveta-sair { margin-top: auto; opacity: .9; }
.fs-gaveta-aviso { font-size: 13px; background: rgba(255, 255, 255, .1); border-radius: 8px; padding: 10px; margin: 6px 0; line-height: 1.4; }
@media (max-width: 520px) { .fs-menu { width: 30px; height: 30px; font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .fs-gaveta { transition: none; } }

/* ---------- Plataforma: páginas (entrar, solicitar, minha área, administrador) ---------- */
body.fs-pagina .wrap { max-width: 720px; }
.fs-form .field { margin-bottom: 12px; }
.fs-opcoes { display: flex; flex-wrap: wrap; gap: 8px; }
.fs-opcoes button { border: 1px solid var(--line); background: var(--card, #fff); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.fs-opcoes button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.fs-opcoes button:disabled { opacity: .45; cursor: not-allowed; }
.fs-lista { display: grid; gap: 10px; }
.fs-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--card, #fff); flex-wrap: wrap; }
.fs-item small { color: var(--muted); }
.fs-vazio { color: var(--muted); font-size: 14px; }
.fs-codigo { font: 500 26px var(--f-num); letter-spacing: .3em; text-align: center; }
.fs-msg { min-height: 1.4em; font-size: 14px; }
.fs-msg.ok { color: var(--good); } .fs-msg.erro { color: var(--bad); }
.fs-link { background: none; border: 0; color: var(--brand); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
a.fs-logo, a.fs-logo:hover { text-decoration: none; color: inherit; }
a.btn, a.btn:hover { text-decoration: none; }
.acoes a.btn, .fs-item a.btn, .caixa-lib a.btn { display: inline-flex; align-items: center; justify-content: center; width: auto; flex: none; }
