@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/instrument-serif.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/instrument-serif-italic.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap; src: url(fonts/ibm-plex-sans.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(fonts/jetbrains-mono.woff2) format("woff2"); }
:root {
  --void: #08090B; --panel: #0E1014; --raised: #13151A; --line: #22262E; --muted: #8C929D; --text: #EDEEF0;
  --jump: #FE6D01; --jump-hi: #FF8A33; --await: #FFC247; --ok: #3DDC97; --info: #4CC9F0; --err: #FF4D5E;
  --mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--void); color: var(--text); font: 15px/1.5 var(--sans); }
a { color: var(--jump-hi); }
h1, h2, h3 { margin: 0 0 .5rem; font-weight: 600; }
h1 { font: 400 1.9rem/1.2 var(--serif); }
h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: var(--mono); font-weight: 500; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px 64px; }

/* topo */
.top { position: sticky; top: 0; z-index: 5; background: rgba(8, 9, 11, .92); backdrop-filter: blur(6px); border-bottom: 1px solid #1B1E24; }
.topin { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; padding: 10px 24px; max-width: 1500px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { height: 30px; width: auto; display: block; }
.bn { font: 700 .88rem var(--mono); }
.bn b { color: var(--jump); font-weight: 700; }
.bpath { font: .75rem var(--mono); color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 4px; font: .75rem var(--mono); }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 6px; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); background: #14171C; }
.pills { display: flex; align-items: center; gap: 8px; font: .75rem var(--mono); flex-wrap: wrap; }
.pillx { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.ok { background: var(--ok); }
.dot.info { background: var(--info); }
.chip { font: .78rem var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; background: var(--panel); }

/* blocos */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 16px 0; }
.card.warn { border-color: var(--await); }
.card.bad { border-color: var(--err); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .86rem; }
.small { font-size: .84rem; }
.gap { margin-top: 12px; }
.err { color: var(--err); }
p.await { color: var(--await); }
.ok { color: var(--ok); }
pre { margin: 0; white-space: pre-wrap; word-break: break-word; font: .84rem/1.5 var(--mono); }

/* botões e campos */
.btn { background: var(--raised); border: 1px solid var(--line); border-radius: 8px; padding: 7px 14px; cursor: pointer; }
a.btn { text-decoration: none; color: inherit; display: inline-block; }
.btn:hover:not(:disabled) { border-color: var(--muted); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--jump); border-color: var(--jump); color: #1a0d00; font-weight: 600; }
.btn.primary:hover:not(:disabled) { background: var(--jump-hi); border-color: var(--jump-hi); }
.btn.danger { color: var(--err); }
.btn.small { padding: 3px 10px; font-size: .84rem; }
input[type=text], input[type=password], select, textarea { width: 100%; background: var(--void); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--jump); outline-offset: 1px; }
textarea { min-height: 120px; resize: vertical; font-family: var(--sans); }
label { display: block; margin: 12px 0 4px; color: var(--muted); font-size: .86rem; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.checks label { display: flex; margin: 0; gap: 6px; align-items: center; color: var(--text); }

/* status */
.badge { display: inline-block; font: .74rem var(--mono); padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); text-transform: lowercase; white-space: nowrap; }
.badge.queued { color: var(--muted); }
.badge.preparing, .badge.running { color: var(--info); border-color: var(--info); }
.badge.awaiting_approval { color: var(--await); border-color: var(--await); }
.badge.done { color: var(--ok); border-color: var(--ok); }
.badge.failed { color: var(--err); border-color: var(--err); }
.badge.stopped { color: var(--muted); }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

/* lista de tarefas */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 4px; }
.tabs button { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 4px 14px; cursor: pointer; }
.tabs button.on { color: var(--text); border-color: var(--jump); }
.task { display: grid; grid-template-columns: 56px 1fr auto; gap: 4px 14px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.task:hover { background: var(--panel); }
.taskrow { display: flex; align-items: center; gap: 8px; }
.taskrow .task { flex: 1; min-width: 0; }
.kv { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.kv li { display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.task .id { font: .9rem var(--mono); color: var(--muted); }
.task .what { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task .meta { grid-column: 2 / 4; font-size: .8rem; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 16px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.stat b { display: block; font: 600 1.5rem var(--mono); }

/* log */
.log { background: var(--void); border: 1px solid var(--line); border-radius: 10px; max-height: 520px; overflow: auto; padding: 8px 12px; }
.ev { display: grid; grid-template-columns: 62px 1fr; gap: 10px; padding: 3px 0; font-size: .86rem; }
.ev time { color: var(--muted); font-family: var(--mono); font-size: .76rem; padding-top: 2px; }
.ev.text .body { color: var(--text); }
.ev.tool .body { color: var(--info); font-family: var(--mono); font-size: .8rem; }
.ev.status .body { color: var(--jump-hi); }
.ev.result .body { color: var(--ok); }
.ev.minor .body { color: var(--muted); font-family: var(--mono); font-size: .78rem; }
.ev .body { overflow-wrap: anywhere; white-space: pre-wrap; }

/* diff e documentos */
.files { font: .84rem var(--mono); }
.files div { padding: 2px 0; }
.st-A { color: var(--ok); } .st-M { color: var(--await); } .st-D { color: var(--err); }
.doc { border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; background: var(--void); max-height: 520px; overflow: auto; }
.doc h1, .doc h2, .doc h3 { font-family: var(--sans); text-transform: none; letter-spacing: 0; color: var(--text); font-size: 1.15rem; margin: 1rem 0 .4rem; }
.doc code { font-family: var(--mono); background: var(--raised); padding: 1px 5px; border-radius: 4px; }
.doc pre { background: var(--raised); padding: 10px; border-radius: 8px; overflow: auto; }
.doc ul, .doc ol { padding-left: 1.4rem; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.shot { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.shot img { width: 100%; height: 150px; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: 8px; background: var(--void); }
.doc blockquote { margin: .5rem 0; padding: 2px 12px; border-left: 3px solid var(--jump); color: var(--muted); }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: .8rem 0; }
.doc .tbl { overflow: auto; margin: .5rem 0; }
.doc table { border-collapse: collapse; font-size: .85rem; }
.doc th, .doc td { border: 1px solid var(--line); padding: 4px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--raised); }
.doc s { color: var(--muted); }
.doc.flat { border: 0; background: transparent; padding: 0; max-height: none; overflow: visible; }
.doc.flat > :first-child { margin-top: 0; }
.doc.flat > :last-child { margin-bottom: 0; }
.doc.flat p { margin: .3rem 0; }
.ev.md .body { white-space: normal; }
iframe.docframe { width: 100%; height: 480px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

/* avisos */
#toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 20; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--raised); border: 1px solid var(--line); border-left: 4px solid var(--info); border-radius: 8px; padding: 10px 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.toast.bad { border-left-color: var(--err); }
.toast.good { border-left-color: var(--ok); }
.noscript { padding: 16px; }

@media (max-width: 640px) {
  .task { grid-template-columns: 44px 1fr; }
  .task .badge { grid-column: 2; justify-self: start; }
  .task .meta { grid-column: 2; }
  .nav a { padding: 12px 8px; }
}

/* ---------- The Code Cavern (protótipo v3) ---------- */
.cavernwrap { max-width: 1500px; padding-left: 24px; padding-right: 24px; }
.eyebrow { font: .75rem var(--mono); letter-spacing: .12em; color: var(--jump); display: block; }
.eyebrow.await { color: var(--await); }
.k { font: .7rem var(--mono); letter-spacing: .1em; color: var(--muted); display: block; }
.serif { font: 400 2.5rem/1 var(--serif); margin: 6px 0 0; letter-spacing: 0; text-transform: none; color: var(--text); }
.serif.sm { font-size: 1.9rem; line-height: 1.05; margin: 4px 0 0; }
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 32px 0 28px; }
.hero .copy { flex: 1 1 420px; min-width: 0; max-width: 640px; display: flex; flex-direction: column; gap: 18px; }
.hero h1 { font: 400 clamp(2.6rem, 6vw, 3.5rem)/1.02 var(--serif); letter-spacing: -.5px; margin: 0; }
.hero h1 em { color: var(--jump); font-style: italic; }
.hero p { margin: 0; color: #A5ABB5; max-width: 520px; font-size: 1rem; line-height: 1.55; }
.suggest { display: flex; flex-direction: column; gap: 2px; }
.suggest .sg { align-self: flex-start; min-height: 36px; border: none; background: transparent; color: #A5ABB5; font: .9rem var(--sans); text-align: left; padding: 4px 0; display: flex; align-items: center; gap: 8px; cursor: pointer; max-width: 100%; }
.suggest .sg:hover { color: var(--text); }
.suggest .sg span { font-family: var(--mono); color: var(--jump); }
.launch-wrap { display: flex; flex-direction: column; gap: 8px; }
.hero .art { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.globe { width: 100%; max-width: 440px; height: auto; aspect-ratio: 1 / 1; display: block; }
.hud { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid #1B1E24; border-radius: 10px; overflow: hidden; margin: 18px 0 0; background: rgba(11, 12, 15, .9); }
.hud .tile { background: #0B0C0F; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid #1B1E24; border-bottom: 1px solid #1B1E24; margin: 0 -1px -1px 0; }
.hud .v { font: 400 2.25rem/1 var(--serif); }
.hud .v small { font: .8rem var(--mono); color: var(--muted); }
.hud .v.await { color: var(--await); }
.hud .sub { font: .7rem var(--mono); color: var(--muted); }
.bar { height: 3px; background: #1B1E24; }
.bar > i { display: block; height: 100%; background: var(--jump); }
.bar > i.info { background: var(--info); }
.bar > i.await { background: var(--await); }
.bar > i.jump { background: var(--jump); }
.bar > i.ok { background: var(--ok); }
.bar > i.err { background: var(--err); }
.cols2 { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.mainc { flex: 1 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.sidec { flex: 0 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.sec-head .hint { font: .75rem var(--mono); color: var(--muted); }
.agentes { display: flex; flex-direction: column; gap: 12px; }
.rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.room { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.room.sel { border-color: var(--jump); box-shadow: 0 0 0 1px #FE6D0133, 0 0 24px #FE6D011F; }
.room.wait { border-color: var(--await); box-shadow: 0 0 0 1px #FFC24733, 0 0 24px #FFC2471A; }
.room-top { padding: 14px 16px 10px; display: flex; flex-direction: column; gap: 6px; }
.row1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.namebox { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.namebox .num { font: .75rem var(--mono); color: var(--jump); }
.namebox h3 { margin: 0; font: 700 1.1rem var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { flex: none; display: flex; align-items: center; gap: 6px; font: 700 .68rem var(--mono); letter-spacing: .08em; padding: 4px 8px; border-radius: 4px; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: block; }
.pill.ok { color: var(--ok); background: #3DDC9714; }
.pill.await { color: var(--await); background: #FFC24714; }
.room .branch { font: .7rem var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room .task { font-size: .88rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scene { position: relative; height: 196px; margin: 0 12px; border: 1px solid #1B1E24; border-radius: 10px; overflow: hidden; background-color: #0A0B0E; background-image: radial-gradient(#FFFFFF14 1px, transparent 1px); background-size: 14px 14px; }
.stage { position: absolute; left: 50%; bottom: 0; width: 300px; height: 180px; transform: translateX(-50%); }
.scene-svg { position: absolute; left: 0; top: 0; }
.jumpcat { position: absolute; left: -6px; top: 35px; width: 190px; height: auto; filter: drop-shadow(0 0 8px #FE6D0140); animation: tap .55s ease-in-out infinite; transform-origin: 85% 70%; }
.scene .pending { position: absolute; left: calc(50% - 86px); top: 10px; font: 700 .8rem var(--mono); color: #08090B; background: var(--await); border-radius: 4px; padding: 3px 7px; }
.balloon { position: absolute; top: 10px; right: 10px; max-width: 54%; display: flex; flex-direction: column; gap: 2px; padding: 7px 10px; border-radius: 8px; font-family: var(--mono); background: #0E1014; border: 1px solid #30353F; color: var(--text); }
.balloon.wait { background: var(--await); border-color: var(--await); color: #08090B; }
.balloon .tl { font-size: .62rem; font-weight: 700; letter-spacing: .08em; }
.balloon .tt { font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene .who { position: absolute; left: 10px; bottom: 8px; display: flex; align-items: center; gap: 6px; font: .7rem var(--mono); color: #C9CCD2; background: #08090BE6; border: 1px solid var(--line); border-radius: 4px; padding: 3px 7px; }
.scene .who i { width: 6px; height: 6px; border-radius: 50%; background: var(--jump); display: block; }
.minilog { margin: 10px 12px 0; padding: 8px 10px; background: var(--void); border: 1px solid #1B1E24; border-radius: 8px; display: flex; flex-direction: column; gap: 4px; font: .72rem var(--mono); }
.minilog div { display: flex; gap: 8px; line-height: 1.4; }
.minilog div span:first-child { flex: none; width: 10px; }
.minilog div span:last-child { color: #A5ABB5; overflow-wrap: anywhere; }
.chips { padding: 10px 16px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip2 { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 4px; padding: 3px 7px; font: .68rem var(--mono); }
.chip2 i { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); display: block; }
.chip2 b { color: var(--muted); font-weight: 400; }
.chip2.ref { color: #A5ABB5; }
.room-foot { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.meta2 { display: flex; justify-content: space-between; gap: 8px; font: .7rem var(--mono); color: var(--muted); }
.meta2 b { color: var(--text); }
.segs { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }
.segs span { height: 6px; border-radius: 1px; background: #1B1E24; }
.segs span.on { background: var(--jump); }
.acts { display: flex; gap: 8px; align-items: center; }
.focusbtn { min-height: 40px; font: 700 .75rem var(--mono); border-radius: 6px; padding: 0 12px; background: transparent; }
.focusbtn.on { background: var(--jump); border-color: var(--jump); color: #08090B; }
.queue { border: 1px dashed #30353F; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.qi { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.qi div { display: flex; justify-content: space-between; gap: 8px; font: .8rem var(--mono); }
.qi .pos { color: var(--await); }
.qi > span { font-size: .8rem; line-height: 1.4; color: #C9CCD2; }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; align-items: start; }
.mate { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.mate.active { border-color: var(--jump); }
.mate.off { opacity: .7; }
.avatar { flex: none; width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 10px; background: #0A0B0E; display: flex; align-items: center; justify-content: center; }
.catmask { display: block; width: 42px; height: 26px; background-color: var(--c, #FE6D01); -webkit-mask: url(cat.png) center / contain no-repeat; mask: url(cat.png) center / contain no-repeat; }
.catmask.claude { --c: #FE6D01; }
.catmask.codex { --c: #3DDC97; }
.catmask.hermes { --c: #A78BFA; }
.mate > div:not(.lim) { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mate b { font-family: var(--mono); }
.mate .sub { font: .7rem var(--mono); color: var(--muted); }
.mate .sub.ok { color: var(--ok); }
.side { border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.appr { border: 1px solid var(--await); border-radius: 8px; background: #FFC2470D; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.appr .ar { display: flex; justify-content: space-between; gap: 8px; font: .75rem var(--mono); }
.appr .await { color: var(--await); }
.appr code { display: block; background: var(--void); border: 1px solid var(--line); border-radius: 6px; padding: 10px; font: .75rem var(--mono); white-space: pre-wrap; word-break: break-word; }
.appr .jump { color: var(--jump); }
.appr .why { font-size: .82rem; line-height: 1.45; color: #C9CCD2; }
.btn.approve { background: var(--ok); border-color: var(--ok); color: #08090B; font: 700 .8rem var(--mono); text-align: center; min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 6px; }
.fhead { display: flex; flex-direction: column; gap: 4px; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font: .78rem var(--mono); }
.checklist li { display: flex; gap: 8px; line-height: 1.4; }
.checklist li span:first-child { flex: none; }
.fbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.fbtns .btn { min-height: 40px; font: .75rem var(--mono); border-radius: 6px; }
.btn.kill { color: #FF8A94; border-color: #FF4D5E66; background: transparent; }
.fi { display: grid; grid-template-columns: 44px 1fr; gap: 8px; font: .75rem var(--mono); line-height: 1.45; }
.fi time { color: var(--muted); }
.fi .fm { overflow-wrap: anywhere; color: #C9CED6; }
.tone-ok { color: var(--ok); }
.tone-err { color: var(--err); }
.tone-warn { color: var(--await); }
.tone-info { color: var(--info); }
.tone-plain { color: #A5ABB5; }
.blink { animation: blink 1s step-end infinite; }
.type { animation: typing .3s ease-in-out infinite; }
.bob { animation: bob 1.1s ease-in-out infinite; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes tap { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(2px) rotate(.8deg); } }
@keyframes typing { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(1.5px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .blink, .type, .bob, .jumpcat { animation: none; } }

/* ---------- login (modelo "Login · JumpCat") ---------- */
.lg { min-height: 100vh; display: flex; flex-wrap: wrap; background: var(--void); color: var(--text); }
.lg-visual { flex: 1 1 560px; min-width: 0; min-height: 520px; position: relative; overflow: hidden; background: #050607; border-right: 1px solid #1B1E24; }
.lg-rain { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lg-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 46% 42% at 50% 47%, #050607F2 0%, #050607C4 48%, #05060700 100%); }
.lg-scan { position: absolute; left: 0; right: 0; top: 0; height: 140px; background: linear-gradient(180deg, #FE6D0100, #FE6D010D 70%, #FE6D0100); pointer-events: none; animation: scan 7s linear infinite; }
@keyframes scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(100vh); } }
.lg-globewrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 96px 24px 180px; }
.lg-globe { width: min(64vh, 82%); max-width: 560px; height: auto; aspect-ratio: 1 / 1; display: block; }
.corner { position: absolute; width: 22px; height: 22px; border: 0 solid var(--jump); }
.corner.tl { left: 20px; top: 20px; border-left-width: 1px; border-top-width: 1px; }
.corner.tr { right: 20px; top: 20px; border-right-width: 1px; border-top-width: 1px; }
.corner.bl { left: 20px; bottom: 20px; border-left-width: 1px; border-bottom-width: 1px; }
.corner.br { right: 20px; bottom: 20px; border-right-width: 1px; border-bottom-width: 1px; }
.lg-top { position: absolute; left: 44px; right: 44px; top: 34px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.brandx { display: flex; align-items: center; gap: 12px; }
.brandx img { height: 30px; width: auto; display: block; }
.sys { display: flex; align-items: center; gap: 8px; font: .6875rem var(--mono); letter-spacing: 1.2px; color: #A5ABB5; background: #08090BCC; border: 1px solid var(--line); border-radius: 4px; padding: 5px 9px; }
.lg-base { position: absolute; left: 44px; right: 44px; bottom: 40px; display: flex; flex-direction: column; gap: 16px; }
.lg-base h1 { margin: 0; font: 400 clamp(2.4rem, 5vw, 3.75rem)/.96 var(--serif); letter-spacing: -.6px; max-width: 620px; }
.lg-base h1 em { font-style: italic; color: var(--jump); }
.lg-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font: .75rem var(--mono); color: var(--muted); }
.lg-meta .jump { color: var(--jump); font-style: normal; }
.lg-formcol { flex: 0 1 560px; min-width: 0; display: flex; flex-direction: column; justify-content: center; background-color: #0B0C0F; background-image: linear-gradient(#FFFFFF06 1px, transparent 1px), linear-gradient(90deg, #FFFFFF06 1px, transparent 1px); background-size: 28px 28px; padding: 48px 32px; }
.lg-inner { width: 100%; max-width: 400px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.lg-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; font: .6875rem var(--mono); letter-spacing: .8px; }
.lg-steps li { display: flex; flex-direction: column; gap: 6px; color: #5C626D; }
.lg-steps .bar2 { height: 2px; background: var(--line); display: block; }
.lg-steps li.now { color: #C9CCD2; }
.lg-steps li.now .bar2 { background: var(--jump); }
.lg-steps li.done { color: #C9CCD2; }
.lg-steps li.done .bar2 { background: var(--ok); }
.lg-form { display: flex; flex-direction: column; gap: 22px; }
.lg-head { display: flex; flex-direction: column; gap: 8px; }
.lg-kicker { font: .75rem var(--mono); color: var(--muted); letter-spacing: 1.2px; }
.lg-title { margin: 0; font: 400 3.25rem/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--text); }
.lg-lead { margin: 0; color: #A5ABB5; line-height: 1.5; }
.lg-field { display: flex; flex-direction: column; gap: 8px; }
.lg-row { display: flex; justify-content: space-between; align-items: baseline; }
.lg-label { margin: 0; font: .6875rem var(--mono); color: #A5ABB5; letter-spacing: 1px; }
.lg-wrap { position: relative; }
.lg-wrap .pre { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-family: var(--mono); color: var(--jump); }
.lg input.jc-in { width: 100%; height: 50px; border: 1px solid #30353F; border-radius: 8px; background: var(--void); color: var(--text); padding: 0 14px 0 32px; font: .94rem var(--mono); transition: border-color .15s, box-shadow .15s; }
.lg input.jc-in.pw { padding: 0 52px 0 14px; }
.lg input.jc-in:focus { outline: none; border-color: var(--jump); box-shadow: 0 0 0 3px #FE6D0129; }
.lg input::placeholder { color: #5C626D; }
.lg .eye { position: absolute; right: 4px; top: 4px; width: 42px; height: 42px; border: none; background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center; border-radius: 6px; cursor: pointer; }
.lg .eye:hover { color: var(--text); }
.lg .forgot { font-size: .8125rem; }
.lg .caps { font: .75rem var(--mono); color: var(--await); }
.lg-trust { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .875rem; color: #C9CCD2; cursor: pointer; }
.lg-trust input { width: 18px; height: 18px; margin: 0; accent-color: var(--jump); }
.lg-err { display: flex; gap: 10px; border: 1px solid #FF4D5E66; background: #FF4D5E0F; border-radius: 8px; padding: 10px 12px; font-size: .875rem; color: #FF9AA3; }
.lg-note { border: 1px solid var(--line); background: #FFFFFF05; border-radius: 8px; padding: 10px 12px; font-size: .875rem; color: #C9CCD2; }
.lg-help { border: 1px dashed #30353F; border-radius: 8px; padding: 10px 12px; font-size: .8125rem; line-height: 1.5; color: #A5ABB5; }
.lg-help code { font-family: var(--mono); color: var(--text); background: var(--raised); border-radius: 4px; padding: 1px 5px; }
.lg-submit { height: 52px; border: none; border-radius: 8px; background: var(--jump); color: var(--void); font: 700 .875rem var(--mono); letter-spacing: 1px; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; }
.lg-submit:hover:not(:disabled) { background: var(--jump-hi); }
.lg-submit:disabled { opacity: .6; cursor: progress; }
.lg-foot { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid #1B1E24; padding-top: 18px; }
.lg-chips { display: flex; flex-wrap: wrap; gap: 8px 16px; font: .6875rem var(--mono); color: var(--muted); }
.lg-chips .c { display: flex; align-items: center; gap: 6px; }
.lg-tag { font-size: .75rem; color: #5C626D; }
.rise { animation: rise .35s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lg-scan, .rise { animation: none; } }
@media (max-width: 640px) {
  .lg-visual { min-height: 460px; }
  .lg-top, .lg-base { left: 24px; right: 24px; }
  .lg-formcol { padding: 32px 20px; }
}

/* ---------- fundo (chuva de 0/1 + grade do cabeçalho) e compositor de nova tarefa ---------- */
#bgrain { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .3; display: block; }
#app { position: relative; z-index: 1; }
.top { background-color: rgba(11, 12, 15, .94); background-image: linear-gradient(#FFFFFF06 1px, transparent 1px), linear-gradient(90deg, #FFFFFF06 1px, transparent 1px); background-size: 28px 28px; }
.hero .copy { max-width: 760px; }
.newbox { max-width: 860px; margin-top: 12px; }
.cmp { display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); background: rgba(14, 16, 20, .92); border-radius: 12px; padding: 14px; }
.cmp.drop { border-color: var(--jump); box-shadow: 0 0 0 3px #FE6D0129; }
.cmp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.cmp-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cmp-f .k { margin: 0; }
.cmp-sel { width: 100%; height: 42px; appearance: none; -webkit-appearance: none; background-color: var(--void); color: var(--text); border: 1px solid #30353F; border-radius: 10px; padding: 0 34px 0 12px; font: .84rem var(--mono); cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%238C929D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; transition: border-color .15s, box-shadow .15s; }
.cmp-sel:hover { border-color: #4A505C; }
.cmp-sel:focus { outline: none; border-color: var(--jump); box-shadow: 0 0 0 3px #FE6D0129; }
.cmp-sel option { background: #0E1014; color: var(--text); }
.cmp-sel option:disabled { color: #5C626D; }
input.cmp-sel { cursor: text; }                       /* Hermyn: provedor:modelo com busca (datalist) */
.cmp-model { min-width: 0; }
.sw { display: flex; align-items: center; gap: 10px; height: 42px; cursor: pointer; font: .8rem var(--mono); color: #C9CCD2; margin: 0; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw .knob { flex: none; width: 40px; height: 22px; border-radius: 999px; background: #22262E; border: 1px solid #30353F; position: relative; transition: background .15s, border-color .15s; }
.sw .knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #8C929D; transition: transform .15s, background .15s; }
.sw input:checked + .knob { background: #FE6D0133; border-color: var(--jump); }
.sw input:checked + .knob::after { transform: translateX(18px); background: var(--jump); }
.sw input:focus-visible + .knob { outline: 2px solid var(--jump); outline-offset: 2px; }
.sw.off { opacity: .5; cursor: not-allowed; }
.cmp-text { width: 100%; min-height: 110px; resize: vertical; background: var(--void); border: 1px solid #30353F; border-radius: 10px; padding: 12px 14px; font: .92rem/1.5 var(--sans); color: var(--text); }
.cmp-text:focus { outline: none; border-color: var(--jump); box-shadow: 0 0 0 3px #FE6D0129; }
.cmp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cmp-chips:empty { display: none; }
.cmp-chips .chip2 .x { border: none; background: transparent; color: var(--muted); cursor: pointer; padding: 0 0 0 4px; font-size: .7rem; }
.cmp-chips .chip2 .x:hover { color: var(--err); }
.cmp-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cmp-foot .hint { font: .7rem var(--mono); color: var(--muted); }
.cmp-foot .grow { flex: 1; }
.cmp-foot .btn { min-height: 40px; font: 700 .78rem var(--mono); border-radius: 8px; }

/* configuração */
.narrow { width: 84px !important; }
.diskbar { height: 8px; background: var(--void); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.diskbar i { display: block; height: 100%; background: var(--jump); }
.card details > summary { cursor: pointer; padding: 4px 0; }
.files > .row1 { padding: 3px 0; }
.chip2 .x { border: none; background: transparent; color: var(--muted); cursor: pointer; padding: 0 0 0 6px; font-size: .8rem; }
.chip2 .x:hover { color: var(--err); }
.actsel { width: auto; min-width: 190px; }
/* limites dos agentes (dentro do card em "A equipe") */
.mate { flex-wrap: wrap; }
.mate > .lim { flex-basis: 100%; display: block; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; }
.mate > .lim.stale { border-top-style: dashed; }
.lim .lim-win { margin: 4px 0 6px; }
.lim .lim-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: baseline; font: .72rem var(--mono); color: var(--muted); }
.lim .lim-row b { color: var(--text); }
.lim .lim-row .v.ok { color: var(--ok); } .lim .lim-row .v.await { color: var(--await); } .lim .lim-row .v.err { color: var(--err); }
.lim .lim-reset { font-size: .68rem; }
.lim .lim-note { display: block; font: .66rem var(--mono); color: var(--muted); margin-top: 2px; }

/* código do login por dispositivo (Kodexyn): grande, espaçado, fácil de digitar */
.logincode { font: 600 28px/1.3 var(--mono, ui-monospace, monospace); letter-spacing: .14em; margin: .2em 0; user-select: all; }
