/* Elementos marcados como ocultos (filtros, vistas) somem mesmo quando a classe define display. */
[hidden] { display: none !important; }

/* Visual da wiki (visão do mestre e dos jogadores). */
:root {
  color-scheme: dark;
  --bg: #111614;
  --panel: #19211d;
  --panel-raised: #202a25;
  --line: #35423b;
  --text: #edf1e9;
  --muted: #a4b0a7;
  --lime: #d5f36b;
  --cyan: #75d6c0;
  --coral: #fa8c73;
  --yellow: #f0c66b;
  --serif: Georgia, 'Times New Roman', serif;
  --mono: 'Cascadia Code', Consolas, monospace;
  --sans: 'Segoe UI', Tahoma, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans); }
button, input, textarea { font: inherit; }
button { color: inherit; }
a { color: var(--cyan); }
.shell { min-height: 100vh; display: grid; grid-template-columns: 256px minmax(0, 1fr); }
aside { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 24px 16px 20px; border-right: 1px solid var(--line); background: #151c18; }
.brand { padding: 3px 12px 22px; border-bottom: 1px solid var(--line); }
.brand-mark { color: var(--lime); font: 11px var(--mono); letter-spacing: 0; text-transform: uppercase; }
.brand h1 { margin: 7px 0 2px; font: 25px/1.05 var(--serif); }
.brand p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.workspace-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 16px 4px 9px; padding: 4px; border: 1px solid var(--line); background: #0b0d0f; }
.workspace-tab { padding: 9px 6px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font: 11px var(--mono); text-transform: uppercase; }
.workspace-tab[aria-selected="true"] { background: var(--lime); color: #090b0c; font-weight: 700; }
.workspace-tab:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.nav-group { margin-top: 19px; }
.nav-label { padding: 0 12px 7px; color: #79877e; font: 10px var(--mono); letter-spacing: 0; text-transform: uppercase; }
.campaign-picker { display: block; margin: 14px 8px 0; }
.campaign-picker .nav-label { display: block; padding: 0 0 6px; }
.campaign-picker select { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 0; background: var(--panel); color: var(--text); }
.nav-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 11px; border: 0; border-radius: 4px; background: transparent; color: #bcc7bf; text-align: left; cursor: pointer; font-size: 13px; }
.nav-item:hover, .nav-item.active { background: var(--panel-raised); color: var(--text); }
.nav-item.active { box-shadow: inset 2px 0 var(--lime); }
.nav-icon { width: 17px; color: var(--cyan); text-align: center; font: 11px var(--mono); }
.nav-item.session-item { margin-left: 10px; width: calc(100% - 10px); }
main { min-width: 0; }
.topbar { position: sticky; z-index: 4; top: 0; display: flex; align-items: center; gap: 15px; padding: 13px clamp(18px, 4vw, 48px); border-bottom: 1px solid var(--line); background: rgb(17 22 20 / 94%); backdrop-filter: blur(12px); }
.search-wrap { position: relative; flex: 1; max-width: 620px; }
.search-wrap input { width: 100%; padding: 10px 13px 10px 38px; border: 1px solid var(--line); border-radius: 4px; outline: 0; background: var(--panel); color: var(--text); }
.search-wrap input:focus { border-color: var(--cyan); }
.search-glyph { position: absolute; top: 8px; left: 13px; color: var(--cyan); font: 16px var(--mono); }
.top-meta { margin-left: auto; color: var(--muted); font: 11px var(--mono); white-space: nowrap; }
.content { max-width: 1180px; margin: 0 auto; padding: 36px clamp(18px, 4vw, 48px) 70px; }
.eyebrow { margin: 0 0 9px; color: var(--lime); font: 11px var(--mono); letter-spacing: 0; text-transform: uppercase; }
h2 { margin: 0; font: clamp(32px, 4vw, 48px)/1.04 var(--serif); font-weight: 400; }
.lede { max-width: 700px; margin: 13px 0 0; color: var(--muted); font-size: 16px; }
.rule { height: 1px; margin: 25px 0; border: 0; background: var(--line); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 13px; }
.tile { grid-column: span 4; min-height: 128px; padding: 17px; border: 1px solid var(--line); border-radius: 5px; background: linear-gradient(140deg, var(--panel-raised), var(--panel)); }
.tile.wide { grid-column: span 8; }
.tile h3, .section h3 { margin: 0 0 7px; font: 20px/1.2 var(--serif); font-weight: 400; }
.tile p { margin: 0; color: var(--muted); font-size: 13px; }
.tile .tag { display: block; margin-bottom: 13px; color: var(--cyan); font: 10px var(--mono); text-transform: uppercase; }
.tile button, .action { margin-top: 15px; padding: 7px 10px; border: 1px solid #62754a; border-radius: 3px; background: transparent; color: var(--lime); cursor: pointer; font: 11px var(--mono); }
.tile button:hover, .action:hover { background: #293323; }
.section { margin-top: 20px; padding: 19px; border-left: 2px solid var(--cyan); background: var(--panel); }
.section p { margin: 7px 0; color: #cad2cb; }
.section ul, .section ol { margin: 8px 0 0; padding-left: 21px; color: #cad2cb; }
.section li { padding: 3px 0; }
.callout { margin-top: 15px; padding: 12px 14px; border: 1px solid #665535; border-radius: 3px; background: #29251b; color: #ebd9a9; }
.formula { display: inline-block; padding: 8px 11px; border: 1px solid #486f65; border-radius: 3px; background: #172722; color: #aaf2df; font: 14px var(--mono); }
.table-wrap { overflow-x: auto; margin-top: 13px; border: 1px solid var(--line); border-radius: 4px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 9px 11px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--lime); font: 10px var(--mono); text-transform: uppercase; }
td { color: #cbd4cd; font-size: 13px; }
tr:last-child td { border-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.person { padding: 15px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }
.person h3 { margin: 0 0 2px; font: 20px var(--serif); }
.person .role { color: var(--coral); font: 10px var(--mono); text-transform: uppercase; }
.person p { margin: 9px 0 0; color: #c6d0c8; font-size: 13px; }
.person details { margin-top: 10px; color: var(--muted); font-size: 12px; }
summary { color: var(--cyan); cursor: pointer; }
.source-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.source-link { display: inline-flex; align-items: center; gap: 8px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 4px; color: var(--text); text-decoration: none; background: var(--panel); font-size: 13px; }
.source-link:hover { border-color: var(--cyan); }
.source-link b { color: var(--lime); font: 11px var(--mono); }
.search-results { display: grid; gap: 10px; margin-top: 20px; }
.result { display: block; width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: inherit; text-align: left; cursor: pointer; }
.result:hover { border-color: var(--cyan); }
.result small { display: block; margin-bottom: 4px; color: var(--lime); font: 10px var(--mono); text-transform: uppercase; }
.result strong { font: 18px var(--serif); }
.result p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.note-area { width: 100%; min-height: 155px; resize: vertical; padding: 12px; border: 1px solid var(--line); border-radius: 4px; background: #121916; color: var(--text); }
.note-status { color: var(--muted); font: 11px var(--mono); }
.empty { margin-top: 20px; padding: 18px; border: 1px dashed var(--line); color: var(--muted); }
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  aside { position: relative; height: auto; padding: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 4px 7px 10px; }
  .brand h1 { font-size: 21px; }
  .workspace-tabs { margin: 8px 0; }
  .nav-group { display: flex; gap: 4px; margin-top: 9px; overflow-x: auto; }
  .nav-label { display: none; }
  .nav-item { width: auto; flex: 0 0 auto; padding: 8px; white-space: nowrap; }
  .nav-icon { display: none; }
  .topbar { top: 0; padding: 10px 13px; }
  .top-meta { display: none; }
  .content { padding-top: 26px; }
  .tile { grid-column: span 6; }
  .tile.wide { grid-column: span 12; }
}
@media (max-width: 520px) {
  .tile { grid-column: span 12; min-height: auto; }
  .cards { grid-template-columns: 1fr; }
  h2 { font-size: 34px; }
  th, td { padding: 8px; }
}

:root {
  --bg: #0b0d0f;
  --panel: #15191b;
  --panel-raised: #202426;
  --line: #3b4242;
  --text: #f1f0df;
  --muted: #a9aeaa;
  --lime: #f8ef02;
  --cyan: #00ffd2;
  --coral: #ff3158;
  --yellow: #f8ef02;
  --serif: BlenderProBook, 'Segoe UI', sans-serif;
  --mono: Oxanium, Consolas, monospace;
  --sans: BlenderProBook, 'Segoe UI', sans-serif;
  --fg: var(--text);
  --bg: #0b0d0f;
  --ac: var(--yellow);
}
html { font-size: 15px; background: #0b0d0f; }
body {
  background: #0b0d0f;
  background-image: repeating-linear-gradient(0deg, rgb(255 255 255 / 1.2%) 0, rgb(255 255 255 / 1.2%) 1px, transparent 1px, transparent 4px);
  color: var(--text);
  font-family: BlenderProBook, 'Segoe UI', sans-serif;
}
.shell { grid-template-columns: 270px minmax(0, 1fr); }
aside { padding: 20px 14px; border-color: #353a3b; background: #101315; }
.brand { position: relative; padding: 8px 12px 19px; }
.brand::after { content: ''; position: absolute; bottom: -2px; left: 12px; width: 62px; height: 4px; background: var(--yellow); clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%); }
.brand-mark { color: var(--cyan); font-family: Oxanium, Consolas, monospace; }
.brand h1 { margin-top: 11px; color: var(--text); font: 23px/1.1 Oxanium, BlenderProBook, sans-serif; text-transform: uppercase; }
.brand p { font-size: 13px; }
.nav-label { color: var(--yellow); font-family: Oxanium, Consolas, monospace; }
.nav-item { border-radius: 0; clip-path: polygon(0 0, 100% 0, 100% 82%, calc(100% - 8px) 100%, 0 100%); font-size: 14px; }
.nav-item:hover, .nav-item.active { background: #252a29; }
.nav-item.active { box-shadow: inset 3px 0 var(--yellow); }
.nav-icon { color: var(--cyan); font-family: Oxanium, Consolas, monospace; }
.topbar { border-bottom: 2px solid var(--yellow); background: rgb(11 13 15 / 96%); }
.search-wrap input { border-radius: 0; background: #171b1b; clip-path: polygon(0 0, 100% 0, 100% 78%, calc(100% - 12px) 100%, 0 100%); }
.search-wrap input:focus { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan); }
.search-glyph { z-index: 1; top: 7px; color: var(--yellow); font-size: 18px; }
.eyebrow, .tile .tag, .nav-label, .top-meta { font-family: Oxanium, Consolas, monospace; }
.eyebrow { color: var(--cyan); }
h2 { color: var(--text); font: 38px/1.08 Oxanium, BlenderProBook, sans-serif; text-transform: uppercase; }
h2.cyber-h { width: 100%; margin: 0; font-size: 38px; }
h2.cyber-h::after { height: 5px; margin-top: 12px; background: linear-gradient(90deg, var(--yellow) 0 120px, #3b4242 120px 100%); }
.tile { border-color: #434948; border-radius: 0; background: linear-gradient(140deg, #202426, #141819); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.tile h3, .section h3 { color: var(--text); font-family: Oxanium, BlenderProBook, sans-serif; text-transform: uppercase; }
.tile .tag { color: var(--cyan); }
.tile button, .action { border: 0; border-radius: 0; background: var(--yellow); color: #090b0c; font-family: Oxanium, Consolas, monospace; font-weight: 700; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, 100% 78%, calc(100% - 10px) 100%, 0 100%); }
.tile button:hover, .action:hover { background: var(--cyan); color: #090b0c; }
.section { border: 1px solid #333a3a; border-left: 3px solid var(--yellow); border-radius: 0; background: rgb(21 25 27 / 94%); }
.section h3 { display: flex; align-items: center; gap: 9px; }
.section h3::before { content: ''; flex: 0 0 7px; height: 7px; background: var(--cyan); transform: rotate(45deg); }
.callout { border-color: var(--coral); border-left: 4px solid var(--coral); border-radius: 0; background: #211719; color: #ffd9d8; }
.formula { border-color: var(--cyan); border-radius: 0; background: #111d1c; color: var(--cyan); }
.table-wrap { border-radius: 0; }
th { background: #222728; color: var(--yellow); }
tbody tr:nth-child(even) { background: rgb(255 255 255 / 2%); }
.person { border-radius: 0; background: var(--panel); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.person h3 { color: var(--yellow); font-family: Oxanium, BlenderProBook, sans-serif; text-transform: uppercase; }
.person .role, .callout b { color: var(--coral); }
summary { color: var(--cyan); font-family: Oxanium, Consolas, monospace; text-transform: uppercase; }
.source-link { border-radius: 0; background: #131918; clip-path: polygon(0 0, 100% 0, 100% 78%, calc(100% - 10px) 100%, 0 100%); }
.source-link:hover { border-color: var(--yellow); color: var(--yellow); background: #202321; }
.source-link b, .result small { color: var(--yellow); font-family: Oxanium, Consolas, monospace; }
.result { border-radius: 0; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.result:hover { background: #202625; }
.result strong { color: var(--yellow); font: 18px Oxanium, BlenderProBook, sans-serif; text-transform: uppercase; }
.note-area { border-radius: 0; background: #111516; }
.note-area:focus { border-color: var(--cyan); outline: 1px solid var(--cyan); }
.map-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 16px 0 11px; }
.map-control { display: grid; gap: 5px; color: var(--cyan); font: 10px Oxanium, Consolas, monospace; text-transform: uppercase; }
.map-control select { min-width: 190px; padding: 9px 11px; border: 1px solid #48504e; border-radius: 0; background: #171b1b; color: var(--text); font: 13px BlenderProBook, sans-serif; }
.map-zoom-controls { display: flex; gap: 4px; margin-left: auto; }
.map-zoom-controls button { width: 40px; height: 38px; border: 1px solid var(--yellow); background: #171b1b; color: var(--yellow); cursor: pointer; font: 19px Oxanium, sans-serif; }
.map-zoom-controls button:hover { background: var(--yellow); color: #090b0c; }
.map-filter-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 13px; }
.map-filter { padding: 7px 10px; border: 1px solid #444d4b; background: #141819; color: var(--muted); cursor: pointer; font: 10px Oxanium, Consolas, monospace; text-transform: uppercase; }
.map-filter[aria-pressed="true"] { border-color: var(--cyan); color: var(--cyan); background: #10211e; }
.campaign-map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.campaign-map-main { min-width: 0; }
.campaign-map-canvas { width: 100%; height: min(72vh, 68vw); min-height: 380px; overflow: hidden; border: 1px solid #48504e; background: #090c0d; touch-action: none; }
#nightcity-map { display: block; width: 100%; height: 100%; cursor: grab; user-select: none; }
#nightcity-map.is-dragging { cursor: grabbing; }
#nightcity-map-image { pointer-events: none; }
.map-pin { cursor: pointer; outline: none; }
.map-pin .pin-core { stroke: #101315; stroke-width: 15; filter: drop-shadow(0 3px 7px #000); }
.map-pin .pin-code { fill: #101315; font: 700 42px Oxanium, sans-serif; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.map-pin .pin-label { fill: white; stroke: #090b0c; stroke-width: 13px; paint-order: stroke; font: 700 42px BlenderProBook, sans-serif; opacity: 0; pointer-events: none; }
.map-pin:hover .pin-label, .map-pin:focus .pin-label, .map-pin.selected .pin-label { opacity: 1; }
.map-pin.selected .pin-core { stroke: white; stroke-width: 22; }
.map-pin.filtered-out { display: none; }
.map-legend { display: flex; flex-wrap: wrap; gap: 10px 15px; padding: 11px 2px; color: var(--muted); font: 10px Oxanium, Consolas, monospace; text-transform: uppercase; }
.map-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.map-legend-swatch { width: 9px; height: 9px; transform: rotate(45deg); }
.map-caveat { color: var(--muted); font-size: 12px; }
.map-detail-panel { max-height: min(72vh, 760px); overflow: auto; border-top: 2px solid var(--yellow); background: #121719; }
.map-marker-detail { padding: 15px; border-bottom: 1px solid var(--line); }
.map-marker-detail h3 { margin: 0 0 4px; color: var(--yellow); font: 20px Oxanium, sans-serif; text-transform: uppercase; }
.map-marker-detail p { margin: 8px 0; color: #c6d0c8; font-size: 13px; }
.map-marker-detail .map-district { color: var(--cyan); font: 10px Oxanium, sans-serif; text-transform: uppercase; }
.map-marker-detail .map-act { display: inline-block; padding: 3px 7px; border: 1px solid #525b58; color: var(--muted); font: 10px Oxanium, sans-serif; text-transform: uppercase; }
.map-marker-list { display: grid; }
.map-marker-card { display: grid; grid-template-columns: 11px minmax(0,1fr); gap: 9px; width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid #2e3635; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.map-marker-card:hover, .map-marker-card.selected { background: #202627; }
.map-marker-dot { width: 8px; height: 8px; margin-top: 5px; transform: rotate(45deg); }
.map-marker-card strong { display: block; color: #edf1e9; font: 13px BlenderProBook, sans-serif; }
.map-marker-card small { display: block; margin-top: 2px; color: var(--muted); font: 10px Oxanium, sans-serif; text-transform: uppercase; }
.map-marker-card.hidden { display: none; }
@media (max-width: 820px) {
  .campaign-map-layout { grid-template-columns: 1fr; }
  .campaign-map-canvas { height: auto; min-height: 0; aspect-ratio: 5600 / 5320; }
  .map-detail-panel { max-height: none; }
  .map-marker-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .map-control { flex: 1 1 42%; min-width: 0; }
  .map-control select { min-width: 0; width: 100%; }
  .map-zoom-controls { margin-left: 0; }
  .campaign-map-canvas { height: auto; min-height: 0; aspect-ratio: 5600 / 5320; }
  .map-marker-list { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  h2, h2.cyber-h { font-size: 30px; }
}
.md-doc { margin-top: 22px; color: #cad2cb; }
.md-doc p { margin: 9px 0; }
.md-doc ul, .md-doc ol { margin: 8px 0; padding-left: 22px; }
.md-doc li { padding: 2px 0; }
.md-doc h3.md-h1, .md-doc h3.md-h2 { margin: 30px 0 10px; padding-bottom: 7px; border-bottom: 2px solid var(--yellow); color: var(--text); font: 22px/1.2 Oxanium, BlenderProBook, sans-serif; text-transform: uppercase; }
.md-doc h4 { margin: 22px 0 6px; color: var(--cyan); font: 17px Oxanium, BlenderProBook, sans-serif; text-transform: uppercase; }
.md-doc h5 { margin: 16px 0 4px; color: var(--yellow); font: 14px Oxanium, BlenderProBook, sans-serif; text-transform: uppercase; }
.md-doc blockquote { margin: 10px 0; padding: 10px 14px; border-left: 3px solid var(--cyan); background: #111d1c; color: #d9f5ee; font-style: italic; }
.md-doc .table-wrap { margin: 10px 0; }
.md-doc code, .callout code { padding: 1px 5px; background: #111d1c; color: var(--cyan); font: 13px var(--mono); }
.clock { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 6px; margin-top: 12px; }
.clock-segment { display: grid; gap: 4px; min-height: 64px; padding: 9px 10px; border: 1px solid #48504e; background: #141819; color: var(--muted); cursor: pointer; text-align: left; font: 13px BlenderProBook, sans-serif; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
.clock-segment span { color: var(--cyan); font: 700 11px Oxanium, sans-serif; }
.clock-segment:hover { border-color: var(--cyan); }
.clock-segment[aria-pressed="true"] { border-color: var(--coral); background: #2a1519; color: #ffd9d8; }
.clock-segment[aria-pressed="true"] span { color: var(--coral); }
/* Consulta rápida: índice da página, referências, destaque da busca */
.page-toc { position: sticky; z-index: 3; top: var(--topbar-h, 66px); display: flex; align-items: center; gap: 6px; margin: 18px calc(-1 * clamp(18px, 4vw, 48px)) 0; padding: 9px clamp(18px, 4vw, 48px); overflow-x: auto; border-bottom: 1px solid var(--line); background: rgb(11 13 15 / 95%); backdrop-filter: blur(10px); scrollbar-width: thin; }
.page-toc-label { flex: 0 0 auto; margin-right: 4px; color: var(--yellow); font: 10px Oxanium, Consolas, monospace; text-transform: uppercase; }
.page-toc button { flex: 0 0 auto; padding: 6px 10px; border: 1px solid #444d4b; background: #141819; color: var(--muted); cursor: pointer; white-space: nowrap; font: 12px BlenderProBook, sans-serif; }
.page-toc button:hover, .page-toc button.active { border-color: var(--cyan); color: var(--cyan); background: #10211e; }
.section, .person, #md-doc > h3 { scroll-margin-top: calc(var(--topbar-h, 66px) + 64px); }
.section h3 .ref { margin-left: auto; padding: 2px 7px; border: 1px solid #454d4b; color: var(--muted); font: 10px Oxanium, Consolas, monospace; text-transform: none; white-space: nowrap; }
.en { color: #7f8b85; font: 11px Oxanium, Consolas, monospace; }
mark { padding: 0 2px; background: var(--yellow); color: #090b0c; }
.flash { animation: flash-section 1.6s ease-out; }
@keyframes flash-section { 0%, 35% { box-shadow: 0 0 0 2px var(--cyan); } 100% { box-shadow: 0 0 0 2px transparent; } }
.table-wrap.dense { margin-top: 10px; }
.table-wrap.dense th, .table-wrap.dense td { padding: 6px 9px; font-size: 13px; line-height: 1.4; }
td.num, th.num { text-align: center; font-family: Oxanium, Consolas, monospace; white-space: nowrap; }
.range-table td:first-child { position: sticky; left: 0; background: #181c1d; white-space: nowrap; }
#dv-row th { white-space: nowrap; }
th.current, td.current { background: var(--yellow) !important; color: #090b0c !important; font-weight: 700; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 12px; margin-top: 18px; align-items: start; }
.quick-grid .section { margin-top: 0; padding: 14px 15px; }
.quick-grid .section h3 { font-size: 16px; }
.quick-grid .section p, .quick-grid .section li { font-size: 13.5px; }
.quick-card.wide { grid-column: span 2; }
.dv-finder { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.dv-finder input { width: 110px; padding: 9px 11px; border: 1px solid #48504e; background: #171b1b; color: var(--text); font: 13px BlenderProBook, sans-serif; }
.dv-result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-top: 12px; color: var(--muted); }
.dv-big { color: var(--yellow); font: 700 30px/1 Oxanium, sans-serif; }
.crit-result h4 { margin: 6px 0 4px; color: var(--coral); font: 17px Oxanium, sans-serif; text-transform: uppercase; }
.crit-roll { color: var(--cyan); font: 12px Oxanium, Consolas, monospace; }
.skill-tools { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px; }
.skill-tools .map-filter-list { margin: 0; }
.skill-search { display: grid; gap: 4px; }
.skill-search .nav-label { display: block; padding: 0; }
.skill-search input { width: min(280px, 100%); padding: 8px 10px; border: 1px solid #48504e; background: #171b1b; color: var(--text); }
.result p mark { font-weight: 700; }
/* Cartões de itens (Black ICE, programas, quickhacks...) */
.entry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 10px; margin-top: 12px; }
.entry { display: flex; flex-direction: column; gap: 6px; padding: 13px 14px; border: 1px solid #3b4443; background: #111617; scroll-margin-top: calc(var(--topbar-h, 66px) + 64px); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.entry header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; }
.entry h4 { margin: 0; color: var(--yellow); font: 17px/1.2 Oxanium, BlenderProBook, sans-serif; text-transform: uppercase; }
.entry-tag { color: var(--cyan); font: 10px Oxanium, Consolas, monospace; text-transform: uppercase; }
.entry-stats { display: flex; flex-wrap: wrap; gap: 4px; }
.entry-stats span { padding: 2px 7px; border: 1px solid #454d4b; background: #181e1f; color: var(--text); font: 12px Oxanium, Consolas, monospace; }
.entry-stats b { color: var(--muted); font-weight: 400; }
.entry p { margin: 0; color: #cad2cb; font-size: 13.5px; }
.entry .entry-excellent { padding-left: 8px; border-left: 2px solid var(--yellow); }
.entry .entry-icon { color: #9fb3ab; font-style: italic; }
.entry .entry-icon b, .entry .entry-tip b { font-style: normal; }
.entry .entry-tip { padding: 6px 8px; background: #10211e; color: #bfe9de; }
/* Fichas de NPC */
.npc-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)); }
.npc-stats { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 3px; }
.npc-stats span { display: grid; justify-items: center; padding: 3px 0 4px; border: 1px solid #454d4b; background: #181e1f; color: var(--text); font: 15px/1.2 Oxanium, Consolas, monospace; white-space: nowrap; }
.npc-stats b { color: var(--muted); font: 9px Oxanium, Consolas, monospace; font-weight: 400; }
.npc .table-wrap { margin-top: 2px; }
.npc td small { color: var(--muted); font-size: 11px; }
.npc-more summary { cursor: pointer; color: var(--cyan); font: 11px Oxanium, Consolas, monospace; text-transform: uppercase; }
.npc-more p { margin-top: 6px; }
@media (max-width: 520px) { .npc-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .quick-card.wide { grid-column: auto; }
}

/* Notas de campanha (só na visão do mestre): borda tracejada para lembrar que os jogadores não veem. */
.gm-note { outline: 1px dashed var(--coral); outline-offset: 2px; }

/* Painel "Visão dos jogadores" (mestre) */
.pv-list { display: grid; gap: 8px; margin: 10px 0 12px; }
.pv-row { padding: 10px 12px; border: 1px solid #3b4443; border-left: 3px solid #555d5b; background: #111617; }
.pv-row.on { border-left-color: var(--cyan); }
.pv-row-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 8px; }
.pv-toggle { display: inline-flex; align-items: center; gap: 6px; color: var(--cyan); font: 12px Oxanium, Consolas, monospace; text-transform: uppercase; cursor: pointer; }
.pv-row-head select { max-width: 260px; padding: 5px 8px; border: 1px solid #48504e; background: #171b1b; color: var(--text); font: 12px BlenderProBook, sans-serif; }
.pv-remove { margin-left: auto; padding: 5px 9px; border: 1px solid #5a3a3f; background: transparent; color: var(--coral); cursor: pointer; font: 11px Oxanium, Consolas, monospace; text-transform: uppercase; }
.pv-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.pv-field { display: grid; gap: 3px; }
.pv-field.wide { grid-column: 1 / -1; }
.pv-field span { color: var(--muted); font: 10px Oxanium, Consolas, monospace; text-transform: uppercase; }
.pv-field input, .pv-field textarea { width: 100%; padding: 7px 9px; border: 1px solid #3b4443; background: #0f1314; color: var(--text); font: 13px BlenderProBook, sans-serif; }
.pv-field textarea { resize: vertical; }
.pv-field.secret span { color: var(--coral); }
.pv-field.secret textarea { border-style: dashed; border-color: var(--coral); }
.pv-savebar { position: sticky; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 2px solid var(--line); background: rgb(11 13 15 / 96%); }
.pv-savebar.pending { border-top-color: var(--yellow); }
.pv-savebar.pending #pv-dirty { color: var(--yellow); }
a.action.pv-link { display: inline-block; text-decoration: none; }

/* Visão dos jogadores */
.pv-toast { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 10; padding: 10px 14px; border: 1px solid var(--cyan); background: #10211e; color: var(--cyan); font: 12px Oxanium, Consolas, monospace; text-transform: uppercase; }
.pv-news-date { color: var(--cyan); font: 11px Oxanium, Consolas, monospace; text-transform: uppercase; }

/* Alerta de arquivo da campanha revertido (wiki do mestre) */
.health-banner { position: relative; z-index: 6; padding: 12px clamp(18px, 4vw, 48px); border-bottom: 2px solid var(--coral); background: #2a0d14; color: #ffd9d8; font-size: 14px; }
.health-banner b { color: var(--coral); }
.health-banner ul { margin: 6px 0 0; padding-left: 18px; }
.health-banner code { padding: 1px 5px; background: #12090b; color: #fff; font: 12px var(--mono); }

/* Busca: resultado escolhido com as setas, filtros e "mostrar mais" */
.result.selected { border-color: var(--yellow); background: #1d221c; box-shadow: inset 3px 0 0 var(--yellow); }
.search-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.search-filter { padding: 6px 11px; border: 1px solid #444d4b; background: #141819; color: var(--muted); cursor: pointer; font: 12px Oxanium, Consolas, monospace; text-transform: uppercase; }
.search-filter span { margin-left: 4px; color: var(--cyan); }
.search-filter.active { border-color: var(--yellow); color: var(--yellow); background: #1d1f12; }
.search-more { margin-top: 14px; }

/* Glossário: termo com link e definição ao passar o mouse */
a.gloss { color: inherit; text-decoration: underline dotted var(--cyan); text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: help; }
a.gloss:hover { color: var(--cyan); }
.glossary-entry .action { margin-top: 2px; }

/* Cartões | Tabela (Armas e Cyberware de 2077) */
.view-switch { display: flex; align-items: center; gap: 6px; margin-top: 16px; }
.view-switch button, .compare-table th button { padding: 6px 11px; border: 1px solid #444d4b; background: #141819; color: var(--muted); cursor: pointer; font: 12px Oxanium, Consolas, monospace; text-transform: uppercase; }
.view-switch button.active { border-color: var(--yellow); color: var(--yellow); background: #1d1f12; }
.compare-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-top: 10px; }
.compare-filters label { display: grid; gap: 3px; color: var(--muted); font: 10px Oxanium, Consolas, monospace; text-transform: uppercase; }
.compare-filters select { padding: 6px 8px; border: 1px solid #3b4443; background: #0f1314; color: var(--text); font: 13px BlenderProBook, sans-serif; }
.compare-table th { padding: 0; }
.compare-table th button { width: 100%; border: 0; background: transparent; color: var(--lime); text-align: left; white-space: nowrap; }
.compare-table th button.active { color: var(--cyan); }
.compare-table th button::after { content: attr(data-dir); margin-left: 4px; }
.compare-table tbody tr { cursor: pointer; }
.compare-table tbody tr:hover td { background: #1b2121; color: var(--cyan); }
.compare-table td:first-child { color: var(--yellow); white-space: nowrap; }

/* Índice A–Z */
.index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 6px; margin-top: 10px; }
.index-item { display: grid; gap: 2px; padding: 8px 10px; border: 1px solid #3b4443; background: #111617; color: var(--text); text-align: left; cursor: pointer; }
.index-item strong { color: var(--yellow); font: 14px Oxanium, BlenderProBook, sans-serif; }
.index-item small { color: var(--muted); font-size: 12px; }
.index-item:hover { border-color: var(--cyan); }

/* Página inicial: Na mesa agora */
.home-desk { margin-bottom: 20px; }
.home-desk .desk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; margin-top: 10px; }
.home-desk .tag { display: block; margin-bottom: 8px; color: var(--cyan); font: 10px var(--mono); text-transform: uppercase; }
.home-desk .desk-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.home-desk .desk-buttons .action { margin-top: 0; }
.home-desk ul { margin: 0; padding-left: 16px; }
.home-desk li { margin-bottom: 6px; }
.home-desk small { color: var(--muted); }

/* Roladores de tabela */
.roll-result { margin-top: 10px; padding: 10px 12px; border: 1px solid #3b4443; border-left: 3px solid var(--yellow); background: #12171a; color: var(--text); }
.roll-result .roll-value { display: inline-block; margin-right: 8px; padding: 1px 7px; border: 1px solid var(--yellow); color: var(--yellow); font: 12px Oxanium, Consolas, monospace; }
.roll-result ul { margin: 6px 0 0; padding-left: 18px; }
.roll-result li { margin-bottom: 4px; }
.roll-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.roll-buttons .action { margin-top: 0; }
.roll-buttons + .roll-result, .callout .roll-buttons { margin-top: 10px; }
details.roll-table { margin: 10px 0; }
details.roll-table summary { cursor: pointer; color: var(--cyan); }
.playstyle-quiz { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.playstyle-quiz fieldset { margin: 0; padding: 8px 12px 10px; border: 1px solid #3b4443; }
.playstyle-quiz legend { padding: 0 6px; color: var(--yellow); font: 13px Oxanium, sans-serif; text-transform: uppercase; }
.playstyle-quiz label { display: flex; gap: 8px; align-items: flex-start; margin: 5px 0; cursor: pointer; }
.playstyle-quiz input { margin-top: 3px; accent-color: var(--yellow); }
@media (max-width: 640px) { .playstyle-quiz { grid-template-columns: 1fr; } }

/* Personagens: lista, ficha, criador e loja (criador.js) */
.cc-box h3 { margin-top: 0; }
.cc-box h4 { margin: 14px 0 6px; color: var(--yellow); font: 12px Oxanium, Consolas, monospace; text-transform: uppercase; }
.cc-card { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #2c3434; }
.cc-card-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-card-actions .action, .cc-toolbar .action, .cc-shop-item .action, .cc-items .action, .cc-level .action, .cc-step-buttons .action, .cc-lp .action, .cc-lp-list .action, .cc-extra .action { margin-top: 0; }
.cc-handle { color: var(--cyan); }
.cc-ok { color: var(--lime); }
.cc-bad { color: var(--coral); }
.cc-wait { color: var(--yellow); }
[data-cc-foundry] .cc-msg:empty { display: none; }
[data-cc-waiting] { border-color: var(--yellow); }
.action.cc-danger { background: #3a2224; color: #ffd9d8; }
.action.cc-danger:hover { background: var(--coral); color: #090b0c; }
.cc-login { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cc-login input, .cc-form input, .cc-form textarea, .cc-box textarea, .cc-box select, .cc-shop-row input, .cc-toolbar select { padding: 7px 9px; border: 1px solid #3b4443; background: #0f1314; color: var(--text); font: 13px BlenderProBook, sans-serif; max-width: 100%; }
.cc-box textarea { width: 100%; resize: vertical; }
.cc-msg { color: var(--coral); min-height: 1em; }
.cc-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cc-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-steps .map-filter.cc-done::after { content: ' ✓'; color: var(--lime); }
.cc-save { min-height: 1.3em; margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.cc-save.ok { color: var(--lime); }
.cc-save.bad { color: var(--coral); }
.cc-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cc-form label { display: grid; gap: 4px; color: var(--muted); font-size: 13px; }
.cc-form .cc-wide { grid-column: 1 / -1; }
.cc-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.cc-choice { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid #3b4443; background: #121718; text-align: left; cursor: pointer; }
.cc-choice b { color: var(--text); font: 14px Oxanium, Consolas, monospace; text-transform: uppercase; }
.cc-choice small { color: var(--cyan); }
.cc-choice span { color: var(--muted); font-size: 13px; }
.cc-choice:hover { border-color: var(--cyan); }
.cc-choice.active { border-color: var(--yellow); box-shadow: inset 3px 0 0 var(--yellow); }
.cc-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.cc-stat { display: grid; justify-items: center; gap: 3px; padding: 8px 4px; border: 1px solid #3b4443; background: #121718; }
.cc-stat span { color: var(--muted); font: 11px Oxanium, Consolas, monospace; }
.cc-stat b { color: var(--yellow); font: 22px Oxanium, Consolas, monospace; }
.cc-stat b small { color: var(--muted); font-size: 12px; }
.cc-stat .action { margin-top: 2px; padding: 3px 9px; }
.cc-step-buttons { display: flex; gap: 4px; }
.cc-derived { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.cc-derived b { color: var(--yellow); }
.cc-pick tbody tr { cursor: pointer; }
.cc-pick tbody tr:hover td { background: #1c2426; }
.cc-pick tr.cc-picked td { background: #2a2a1a; color: var(--yellow); }
.cc-level { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.cc-level .action { padding: 2px 8px; }
.cc-level b { min-width: 1.2em; text-align: center; }
.cc-extra, .cc-lp-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.cc-lp-grid { display: grid; gap: 8px; }
.cc-lp { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.cc-lp label { color: var(--muted); font-size: 13px; }
.cc-lp select, .cc-lp-list select { width: 100%; min-width: 0; }
.cc-lp-list select { flex: 1 1 220px; }
.cc-warn { margin: 6px 0; padding-left: 18px; color: #ffd9d8; }
.cc-link { padding: 0; border: 0; background: none; color: var(--cyan); text-decoration: underline; cursor: pointer; }
.cc-radio { display: inline-flex; gap: 6px; align-items: center; margin: 2px 8px 2px 0; cursor: pointer; }
.cc-items { margin: 4px 0; padding-left: 18px; }
.cc-items li { margin-bottom: 4px; }
.cc-items small { color: var(--muted); }
.cc-lifepath dt { margin-top: 6px; color: var(--yellow); font: 12px Oxanium, Consolas, monospace; text-transform: uppercase; }
.cc-lifepath dd { margin: 2px 0 0; white-space: pre-line; }
.cc-wallet { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 12px; border: 1px solid #3b4443; background: #121718; }
.cc-wallet b { color: var(--yellow); }
.cc-wallet b.cc-bad { color: var(--coral); }
.cc-shop-filters { margin-top: 12px; }
.cc-shop-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cc-shop-row input { flex: 1 1 200px; }
.cc-shop-list { margin-top: 10px; max-height: 70vh; overflow-y: auto; border-top: 1px solid #2c3434; }
.cc-shop-item { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 8px 4px; border-bottom: 1px solid #2c3434; }
.cc-shop-item small { color: var(--muted); }
.cc-shop-item .cc-desc { color: #c3ccc5; }
.cc-price { display: grid; justify-items: end; gap: 4px; color: var(--yellow); white-space: nowrap; font: 13px Oxanium, Consolas, monospace; }
@media (max-width: 640px) {
  .cc-form { grid-template-columns: 1fr; }
  .cc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-lp { grid-template-columns: 1fr; }
  .cc-shop-item { flex-direction: column; align-items: stretch; }
  .cc-price { justify-items: start; grid-auto-flow: column; justify-content: space-between; }
}
.cc-steps .map-filter.active, .cc-shop-filters .map-filter.active, .cc-rlp-pick .map-filter.active { border-color: var(--cyan); color: var(--cyan); background: #10211e; }
.cc-kit { margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--cyan); background: #10211e; }
.cc-kit p { margin: 0 0 8px; }
.cc-kit .action { margin-top: 0; }
.cc-hidden-item { opacity: 0.6; }
.cc-rules { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.cc-rules input[type=number] { width: 110px; padding: 6px 8px; border: 1px solid #3b4443; background: #0f1314; color: var(--text); }
/* Criador: resumo fixo ao lado (no celular, barra recolhível no topo), ajuda de cada passo e perícias sugeridas. */
.cc-layout { display: grid; gap: 14px; margin-top: 10px; }
.cc-main { min-width: 0; }
.cc-summary details { padding: 9px 12px; border: 1px solid var(--line); background: var(--panel); }
.cc-summary summary { cursor: pointer; }
.cc-summary summary small { display: block; color: var(--muted); }
.cc-summary-role { margin: 6px 0 0; color: var(--cyan); font-size: 13px; }
.cc-summary dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 8px 0 0; font-size: 13px; }
.cc-summary dt { color: var(--muted); }
.cc-summary dd { margin: 0; text-align: right; font-family: Oxanium, Consolas, monospace; }
.cc-summary p { margin: 8px 0 0; font-size: 13px; }
@media (min-width: 1000px) {
  .cc-layout { grid-template-columns: minmax(0, 1fr) 230px; align-items: start; }
  .cc-summary { position: sticky; top: calc(var(--topbar-h, 66px) + 12px); }
}
@media (max-width: 999px) {
  .cc-summary { position: sticky; z-index: 2; top: var(--topbar-h, 66px); order: -1; }
  .cc-summary details { background: rgb(25 33 29 / 96%); }
}
.cc-help { margin: 0 0 12px; padding: 9px 12px; border-left: 3px solid var(--cyan); background: #10211e; }
.cc-help summary { cursor: pointer; color: var(--cyan); font-weight: 700; }
.cc-help summary small { margin-left: 6px; color: var(--muted); font-weight: 400; }
.cc-help p, .cc-help ul { margin: 8px 0 0; }
.cc-help-stats { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 8px 0 0; font-size: 13px; }
.cc-help-stats dt { color: var(--yellow); font-family: Oxanium, Consolas, monospace; }
.cc-help-stats dd { margin: 0; }
.cc-box td .cc-desc, #skill-table .skill-desc { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.cc-suggested td:first-child { box-shadow: inset 3px 0 0 var(--lime); }
.cc-tag { padding: 0 5px; border: 1px solid var(--lime); color: var(--lime); font-size: 11px; text-transform: uppercase; }
/* Lifepath da Role: perguntas mais longas que as do Lifepath comum; as de escolha viram botões. */
.cc-rlp .cc-lp { grid-template-columns: 240px minmax(0, 1fr) auto; }
.cc-rlp-pick { display: flex; flex-wrap: wrap; gap: 6px; grid-column: 2 / -1; }
@media (max-width: 640px) { .cc-rlp .cc-lp { grid-template-columns: 1fr; } .cc-rlp-pick { grid-column: auto; } }
/* Kit de 2077 do Netrunner: um quickhack por linha. */
.cc-hacks { display: grid; gap: 4px; }
.cc-hacks small { color: var(--muted); }
.cc-hacks input:disabled + b { opacity: 0.55; }
/* Retrato: no passo 1, na ficha (ao lado do nome) e em miniatura nos cartões. */
.cc-portrait { display: block; width: 140px; height: 140px; object-fit: cover; border: 1px solid var(--line); background: #0f1314; }
.cc-portrait-empty { display: grid; place-items: center; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.cc-portrait-edit { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.cc-portrait-tools { flex: 1 1 260px; min-width: 0; }
.cc-portrait-tools p { margin: 0 0 8px; }
.cc-portrait-tools label:not(.cc-file) { display: grid; gap: 4px; color: var(--muted); font-size: 13px; }
.cc-portrait-tools input[data-campo] { width: 100%; padding: 7px 9px; border: 1px solid #3b4443; background: #0f1314; color: var(--text); }
.cc-file { position: relative; cursor: pointer; }
.cc-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cc-file:focus-within { outline: 2px solid var(--cyan); outline-offset: 2px; }
.cc-identity::after { content: ''; display: block; clear: both; }
.cc-identity > .cc-portrait { float: right; width: 120px; height: 120px; margin: 0 0 10px 14px; }
.cc-thumb { flex: 0 0 auto; width: 44px; height: 44px; object-fit: cover; border: 1px solid var(--line); }
.cc-card-text { flex: 1 1 200px; min-width: 0; }
@media (max-width: 520px) { .cc-identity > .cc-portrait { width: 88px; height: 88px; } }
/* Entrar como mestre (mestre.html). */
.login-page { display: grid; min-height: 100vh; place-items: center; padding: 16px; }
.login-box { width: min(420px, 100%); padding: 24px; border: 1px solid var(--line); background: var(--panel); }
.login-box h1 { margin: 6px 0 10px; font: 26px/1.1 var(--serif); }
.login-box p { color: var(--muted); }
.login-box form { display: grid; gap: 10px; }
.login-box label { display: grid; gap: 4px; color: var(--muted); font-size: 13px; }
.login-box input { width: 100%; padding: 9px 10px; border: 1px solid #3b4443; background: #0f1314; color: var(--text); }
.login-box .action { justify-self: start; margin-top: 0; }
.login-back { margin-bottom: 0; font-size: 13px; }
/* Barra lateral: mesa do Foundry, entrar/sair como mestre e versão no ar. */
.side-status { display: grid; gap: 8px; margin: 14px 4px 0; padding: 10px 12px; border: 1px solid var(--line); background: #0b0d0f; }
.table-status { display: flex; align-items: center; gap: 8px; font: 11px var(--mono); text-transform: uppercase; }
.table-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: #5d6862; }
.table-on .table-dot { background: var(--lime); box-shadow: 0 0 6px var(--lime); }
.table-idle .table-dot { background: var(--yellow); }
.table-off { color: var(--muted); }
.side-status .table-link { justify-self: start; margin-top: 0; text-decoration: none; }
.side-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; }
.side-link { padding: 0; border: 0; background: none; color: var(--cyan); cursor: pointer; font-size: 12px; }
.side-version { color: var(--muted); font: 10px var(--mono); }
