/* Same typography and tokens as the PLERC site: Inter + JetBrains Mono, blue #0b5cad, light panels, pill buttons. */
@font-face { font-family:Inter; font-weight:300; src:url(recursos/inter-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family:Inter; font-weight:400; src:url(recursos/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family:Inter; font-weight:500; src:url(recursos/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family:Inter; font-weight:600; src:url(recursos/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family:"JetBrains Mono"; font-weight:400; src:url(recursos/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }
:root {
  color-scheme: light;
  --navy:#0b5cad; --navy-dark:#084480; --panel:#eef3f9; --text:#141414; --muted:#5d5d5d; --line:#d9e2ee; --bg:#fff;
  --warn:#8a5a00; --warn-bg:#fdf1d6; --bad:#a3231d;
  --sans: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius:12px; --radius-lg:22px;
}
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html, body { height:100%; }
body { margin:0; background:var(--bg); color:var(--text); font:16px/1.6 var(--sans); -webkit-font-smoothing:antialiased; display:flex; flex-direction:column; height:100dvh; }
header { background:#fff; border-bottom:1px solid var(--line); flex-shrink:0; }
.top { display:flex; align-items:center; min-height:72px; padding:8px 32px; }
.brand { display:flex; align-items:center; }
.brand img { display:block; width:153px; height:40px; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.gate { flex:1; display:flex; align-items:flex-start; justify-content:center; padding:12vh 16px; }
.card { background:var(--panel); border-radius:var(--radius-lg); padding:26px 30px; }
.gate-card { width:min(380px, 100%); display:flex; flex-direction:column; gap:10px; }
.gate-card h1 { margin:0 0 6px; font-weight:300; font-size:1.8rem; }
.gate-card input { font:inherit; padding:11px 16px; border:1px solid var(--muted); border-radius:999px; }
.gate-card input:focus { outline:3px solid rgba(11,92,173,.2); border-color:var(--navy); }
.btn { font:inherit; font-weight:600; background:var(--navy); color:#fff; border:0; border-radius:999px; padding:12px; cursor:pointer; }
.btn:hover { background:var(--navy-dark); }
.error { color:var(--bad); margin:6px 0; }
.wrap { flex:1; display:flex; min-height:0; }
aside { width:272px; background:var(--panel); padding:18px 14px; display:flex; flex-direction:column; gap:2px; flex-shrink:0; overflow:auto; }
.nav { display:flex; align-items:center; justify-content:center; border:0; font:inherit; font-size:.95rem; width:100%; cursor:pointer; }
.nav.new { background:var(--navy); color:#fff; font-weight:600; border-radius:999px; margin-bottom:10px; padding:12px 26px; }
.nav.new:hover { background:var(--navy-dark); }
.sec { font-family:var(--mono); font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; color:var(--navy); padding:20px 14px 6px; }
.rec { display:block; width:100%; text-align:left; background:none; border:0; font:inherit; font-size:.92rem; padding:8px 14px; color:var(--muted); border-radius:var(--radius); cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; flex-shrink:0; }
.rec:hover { background:#fff; color:var(--text); }
.who { margin-top:auto; font-size:.8rem; color:var(--muted); padding:14px; }
main { flex:1; display:flex; flex-direction:column; min-width:0; }
.scroll { flex:1; overflow:auto; padding:0 32px; }
.col { max-width:780px; margin:0 auto; }
.hello { text-align:center; margin-top:9vh; padding-bottom:20px; }
.hello .kicker { font-family:var(--mono); font-size:.85rem; letter-spacing:.14em; color:var(--navy); text-transform:uppercase; }
.hello h1 { font-weight:300; font-size:clamp(2rem, 4.4vw, 3.2rem); line-height:1.1; letter-spacing:-.03em; margin:12px 0 14px; }
.hello p { color:var(--muted); margin:0 auto; max-width:52ch; font-weight:300; font-size:1.15rem; }
.chips { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:28px; }
.chip { font:inherit; font-size:.88rem; padding:8px 18px; color:var(--text); background:#fff; border:1px solid var(--muted); border-radius:999px; cursor:pointer; }
.chip:hover { border-color:var(--navy); color:var(--navy); }
.composer { padding:8px 32px 14px; flex-shrink:0; }
.box { max-width:780px; margin:0 auto; background:#fff; border:1px solid var(--muted); border-radius:var(--radius-lg); padding:14px 20px 10px; }
.box:focus-within { border-color:var(--navy); box-shadow:0 0 0 3px rgba(11,92,173,.15); }
.box textarea { display:block; width:100%; background:none; border:0; outline:0; resize:none; color:var(--text); font:inherit; }
.row { display:flex; justify-content:space-between; align-items:center; margin-top:6px; color:var(--muted); font-size:.8rem; }
.send { background:var(--navy); color:#fff; border:0; border-radius:999px; width:38px; height:38px; cursor:pointer; font-size:1.05rem; }
.send:hover { background:var(--navy-dark); }
.send:disabled { opacity:.4; cursor:wait; }
.foot { max-width:780px; margin:8px auto 0; text-align:center; color:var(--muted); font-size:.76rem; }
.msg-u { background:var(--panel); border-radius:var(--radius-lg); padding:12px 20px; margin:26px 0 12px auto; width:fit-content; max-width:85%; white-space:pre-wrap; overflow-wrap:anywhere; }
.msg-a { margin:12px 0 26px; white-space:pre-wrap; overflow-wrap:anywhere; }
.wait { color:var(--muted); font-size:.92rem; margin:10px 0 24px; animation:pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity:.35; } }
@media (prefers-reduced-motion: reduce) { .wait { animation:none; } }
.tools-title { color:var(--muted); font-size:.78rem; margin:6px 0 2px; }
.tool { font-family:var(--mono); font-size:.76rem; color:var(--muted); border:1px solid var(--line); border-radius:8px; padding:5px 12px; margin:5px 0; }
.tool summary { cursor:pointer; overflow-wrap:anywhere; }
.tool b { color:var(--navy); font-weight:400; }
.tool pre { white-space:pre-wrap; overflow-wrap:anywhere; max-height:320px; overflow:auto; font-family:var(--mono); color:var(--text); }
.badge { display:inline-block; padding:0 9px; margin-left:8px; border-radius:999px; font-weight:600; }
.badge.warn { color:var(--warn); background:var(--warn-bg); }
@media (max-width:820px) { aside { display:none; } .top { padding:8px 16px; min-height:60px; } .scroll, .composer { padding-inline:16px; } .hello { margin-top:4vh; } }
