/* Arkon Labs 6.0 — visual "Arena" do painel.
   Carrega por último (depois do style.css e do nova.css) e muda só a aparência:
   fontes Barlow e Chakra Petch, cantos cortados, faixa vermelha nos cartões, letra maior,
   menos maiúsculas e o modo claro (html[data-modo="claro"], trocado pelo js/modo.js).
   Sem estilo inline (a CSP bloqueia): tudo aqui. */

:root {
  color-scheme: dark;
  --bg: #070608;
  --bg-elev: #0c0a0d;
  --surface: #121014;
  --surface-2: #1b181e;
  --surface-3: #242027;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --text: #f2eff1;
  --text-2: #d0cbd2;
  --muted: #a39ea8;
  --muted-2: #7d7883;
  --accent: #f05252;
  --accent-hi: #ff6f69;
  --accent-soft: rgba(240, 82, 82, .14);
  --accent-line: rgba(240, 82, 82, .42);
  --ink-on-accent: #fff;
  --grid: rgba(255, 255, 255, .025);
  --chamfer-bg: var(--bg);
  --top-bg: rgba(7, 6, 8, .9);
  --rail-bg: rgba(10, 8, 11, .94);
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Chakra Petch', 'Barlow', system-ui, sans-serif;
  --radius-lg: 4px;
  --radius: 4px;
  --radius-sm: 3px;
  --radius-xs: 2px;
  --shadow: 0 18px 44px -30px rgba(0, 0, 0, .9);
  --cut: 14px;
}
html[data-modo="claro"] {
  color-scheme: light;
  --bg: #e9e7eb;
  --bg-elev: #f4f3f5;
  --surface: #ffffff;
  --surface-2: #f3f1f4;
  --surface-3: #e7e4e9;
  --line: rgba(30, 12, 18, .13);
  --line-2: rgba(30, 12, 18, .24);
  --text: #17141a;
  --text-2: #3b3640;
  --muted: #5d5864;
  --muted-2: #77727d;
  --accent: #d42b33;
  --accent-hi: #b8222a;
  --accent-soft: rgba(212, 43, 51, .1);
  --accent-line: rgba(212, 43, 51, .4);
  --green: #12805a;
  --green-soft: rgba(18, 128, 90, .12);
  --amber: #93600b;
  --amber-soft: rgba(201, 138, 20, .14);
  --blue: #2f5bd3;
  --blue-soft: rgba(47, 91, 211, .1);
  --purple: #6b3fd1;
  --purple-soft: rgba(107, 63, 209, .1);
  --grid: rgba(30, 12, 18, .045);
  --top-bg: rgba(244, 243, 245, .92);
  --rail-bg: rgba(244, 243, 245, .96);
  --shadow: 0 16px 36px -28px rgba(40, 10, 20, .35);
  --shadow-lg: 0 30px 70px -30px rgba(40, 10, 20, .4);
}

/* ---------- Base: letra maior e fundo de grade ---------- */
html, body { font-family: var(--font); }
body { font-size: 16px; line-height: 1.5; background-color: var(--bg); color: var(--text);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 44px 44px; }
body::after { opacity: .03; }
html[data-modo="claro"] body::after { display: none; }
.app-bg { background: radial-gradient(900px 460px at 92% -10%, rgba(240, 82, 82, .14), transparent 62%); }
html[data-modo="claro"] .app-bg { background: radial-gradient(900px 460px at 92% -10%, rgba(212, 43, 51, .08), transparent 62%); }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: 0; }
h1 { font-style: italic; font-weight: 700; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; }
h2 { font-weight: 700; }
small, .small, .muted.small { font-size: 14px; }
.muted { color: var(--muted); }
/* Menos maiúsculas: rótulos pequenos em letra normal, mais fáceis de ler. */
.eyebrow, .nav-label, .area-tabs-label, .you-label, .pill, .tag, .hs-count, .plan-badge, th { text-transform: none !important; letter-spacing: .02em !important; }
.eyebrow { font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--accent-hi); }
.eyebrow::before { content: ''; display: inline-block; width: 8px; height: 13px; margin-right: 8px; background: var(--accent); transform: skewX(-18deg); vertical-align: -1px; }
::selection { background: rgba(240, 82, 82, .35); }

/* ---------- Cartões com canto cortado e a faixa vermelha ---------- */
.card { position: relative; border-radius: 0; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.card::after { content: ''; position: absolute; inset: -1px; pointer-events: none; z-index: 2;
  background:
    linear-gradient(135deg, var(--chamfer-bg) 0 calc(50% - .6px), var(--line-2) calc(50% - .6px) calc(50% + .6px), transparent calc(50% + .6px)) top left / var(--cut) var(--cut) no-repeat,
    linear-gradient(315deg, var(--chamfer-bg) 0 calc(50% - .6px), var(--line-2) calc(50% - .6px) calc(50% + .6px), transparent calc(50% + .6px)) bottom right / var(--cut) var(--cut) no-repeat,
    linear-gradient(var(--accent), var(--accent)) var(--cut) 0 / 34px 2px no-repeat; }
.card .card, dialog .card, .modal-inner .card { --chamfer-bg: var(--surface); }
.card .card .card { --chamfer-bg: var(--surface-2); }
.plan.featured, .card.featured { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line), var(--shadow); }
.stat { border-radius: 0; background: var(--surface); }
.notice { border-radius: 0; border-left-width: 3px; }
.empty-state { border-radius: 0; }
.table-wrap { border-radius: 0; }

/* ---------- Botões: canto cortado, letra normal ---------- */
.btn { border-radius: 0; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .01em; min-height: 44px;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); background: var(--surface-2); border-color: var(--line-2); }
.btn.sm { border-radius: 0; font-size: 14px; min-height: 36px; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.btn.lg { border-radius: 0; font-size: 17px; min-height: 52px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: none; }
.btn.primary:hover { filter: brightness(1.08); }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--text); }
.btn.primary:focus-visible { box-shadow: inset 0 0 0 2px #fff; }
.btn.ghost { background: transparent; }
.icon-button { border-radius: 0; }
.icon-button:hover { background: var(--surface-2); }
.link-button { font-weight: 600; }

/* ---------- Abas, segmentos, etiquetas e campos ---------- */
.tabs, .segmented { border-radius: 0; background: var(--surface); }
.tab, .seg { border-radius: 0; font-family: var(--display); font-weight: 600; }
.tab.active, .area-tab.active, .area-link.active, .chip.active, .group-chip.active, .gh-link.active, .nav-item.active { color: var(--text); }
.seg.active { background: var(--accent); color: #fff; }
.pill, .chip, .tag, .badge { border-radius: 2px; }
.area-tab, .area-link { border-radius: 0; font-family: var(--display); font-size: 14.5px; }
.area-tabs-label { font-family: var(--display); font-size: 13px; }
input, textarea, select { border-radius: 2px; background: var(--bg-elev); color: var(--text); font-size: 16px; }
input:focus, textarea:focus, select:focus { background: var(--surface); }
select option, select optgroup { background: var(--surface); color: var(--text); }
.tile-icon, .stat-icon, .you-icon, .next-icon, .app-banner-icon { border-radius: 0; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.tile-icon.lg { width: 50px; height: 56px; }
.progress, .hs-bar { border-radius: 0; }
.progress span, .hs-bar span { border-radius: 0; }

/* ---------- Topo, coluna de grupos e barra do celular ---------- */
.topbar { background: var(--top-bg); border-bottom-color: var(--line); }
.areas { border-radius: 0; background: var(--surface); clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.area-link .ico { width: 18px; height: 18px; }
.ask-bar { border-radius: 0; background: var(--surface); clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); box-shadow: none; }
.search-label { font-size: 15px; }
.sidebar { background: var(--rail-bg); border-right-color: var(--line); }
.rail-ga, .group-avatar { border-radius: 0; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.rail-add { border-radius: 0; }
.bottom-nav { background: var(--top-bg); border-top-color: var(--line); }
.bottom-nav a, .bottom-nav button { font-family: var(--display); }
.bottom-nav .active, .bottom-nav a.active { color: var(--text); }
.modo-btn .m-cla { display: none; }
html[data-modo="claro"] .modo-btn .m-cla { display: block; }
html[data-modo="claro"] .modo-btn .m-esc { display: none; }
.modo-btn svg { width: 20px; height: 20px; }
.site-footer { font-size: 14px; }

/* ---------- Janelas, gaveta, busca e avisos ---------- */
dialog#modal { border-radius: 0; background: var(--surface); color: var(--text); }
@media (min-width: 768px) { dialog#modal.drawer { border-radius: 0; background: var(--surface); box-shadow: -30px 0 70px -40px rgba(0, 0, 0, .7); } }
.palette { border-radius: 0; background: var(--surface); }
.toast { border-radius: 0; }

/* ---------- Página de cada etapa do aluguel ---------- */
.wizard li { font-family: var(--display); }
.wizard li.current .wizard-dot, .stepper li.current .step-dot { background: var(--accent); }

.wizard li { border-radius: 0; }
.wizard-dot { border-radius: 0; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
/* 6.0: aluguel em etapas, uma por vez */
.rent-stepper { margin: 4px 0 20px; scroll-margin-top: calc(var(--topbar-h) + 16px); }
.rent-step-count { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--accent-hi); }
.rent-stepper h2 { font-size: 28px; font-style: italic; margin: 2px 0 4px; }
.rent-steps { list-style: none; padding: 0; margin: 16px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.rent-steps li { flex: 1 1 140px; display: flex; }
.rent-steps li > span:not(.rent-step-dot), .rent-steps li > button span { font-family: var(--display); font-weight: 600; font-size: 15px; }
.rent-steps li, .rent-steps li > button { align-items: center; gap: 10px; }
.rent-steps li { padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--line-2); color: var(--muted); }
.rent-steps li.current { color: var(--text); border-top-color: var(--accent); background: var(--accent-soft); }
.rent-steps li.done { border-top-color: var(--green); color: var(--text-2); padding: 0; }
.rent-steps li > button { display: flex; width: 100%; padding: 10px 12px; color: inherit; text-align: left; }
.rent-steps li > button .ico { width: 18px; height: 18px; color: var(--green); }
.rent-steps li > button:hover span { text-decoration: underline; }
.rent-step-dot { display: grid; place-items: center; width: 28px; height: 31px; flex: none; font: 700 14px var(--display); background: var(--surface-3); color: var(--text-2); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.rent-steps li.current .rent-step-dot { background: var(--accent); color: #fff; }
.rent-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.rent-nav .btn.primary { margin-left: auto; }
.rent-nav .btn[disabled] { opacity: .55; cursor: not-allowed; }
@media (max-width: 760px) {
  .rent-steps li { flex: 1 1 calc(50% - 6px); }
  .rent-nav .btn { flex: 1 1 100%; }
  .rent-nav .btn.primary { order: -1; }
}

/* ---------- Modo claro: o que tinha cor escura fixa ---------- */
html[data-modo="claro"] .card { background: var(--surface); }
html[data-modo="claro"] .home-hero,
html[data-modo="claro"] .hero-card,
html[data-modo="claro"] .balance-card { background: linear-gradient(120deg, #fff 30%, #fbe9ea); border-color: var(--line); }
html[data-modo="claro"] .nav-item.active { background: linear-gradient(90deg, rgba(212, 43, 51, .12), rgba(212, 43, 51, .02)); }
html[data-modo="claro"] .icon-button:hover,
html[data-modo="claro"] .area-link:hover,
html[data-modo="claro"] .area-tab:hover { background: var(--surface-2); }
html[data-modo="claro"] .tab.active { box-shadow: inset 0 0 0 1px var(--accent-line); }
html[data-modo="claro"] .you-item:hover .you-text strong,
html[data-modo="claro"] .rail-add:hover,
html[data-modo="claro"] .cmd-help-btn:hover,
html[data-modo="claro"] .cfg-help-btn:hover { color: var(--text); }
html[data-modo="claro"] .empty-state { background: var(--surface); }
html[data-modo="claro"] .you-head { background: linear-gradient(135deg, rgba(212, 43, 51, .08), transparent); }
html[data-modo="claro"] .tour-pop .btn.primary { background: var(--text); color: var(--bg); }
html[data-modo="claro"] .notice.danger a { color: var(--accent-hi); }
html[data-modo="claro"] ::selection { background: rgba(212, 43, 51, .2); }
html[data-modo="claro"] .save-bar { background: rgba(255, 255, 255, .95); }
html[data-modo="claro"] .comment-area,
html[data-modo="claro"] .chat-form,
html[data-modo="claro"] .gh-ev-more { background: var(--surface-2); }
html[data-modo="claro"] .balance-split > div { background: var(--surface-2); }
html[data-modo="claro"] .palette,
html[data-modo="claro"] .toast { background: var(--surface); color: var(--text); }
@media (max-width: 1024px) { html[data-modo="claro"] .sidebar { background: var(--surface); } }
.save-bar { border-radius: 0; }
/* A conversa de exemplo do WhatsApp continua com as cores do WhatsApp nos dois modos. */
.wa-chat, .lv-chat { color-scheme: dark; }

/* ---------- Celular ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; background-size: 36px 36px; }
  h1 { font-size: 28px; }
  .card { --cut: 12px; }
}
/* Página "Meu RPG" (rpgmeu.html) */
html[data-modo="claro"] .rpgm-nav, html[data-modo="claro"] .rpgm-tabs { background: var(--top-bg); }
.rent-stepper h2:focus { outline: none; }
/* 6.0: palavras dos planos explicadas */
.rent-words { margin-top: 18px; padding: 0 22px; }
.rent-words summary { cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 18px 0; font-family: var(--display); font-weight: 600; font-size: 16.5px; color: var(--accent-hi); list-style: none; }
.rent-words summary::-webkit-details-marker { display: none; }
.rent-words summary .ico { width: 20px; height: 20px; flex: none; }
.rent-words dl { margin: 0 0 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 26px; }
.rent-words dt { font-family: var(--display); font-weight: 700; }
.rent-words dd { margin: 2px 0 0; color: var(--text-2); }
@media (max-width: 760px) { .rent-words dl { grid-template-columns: minmax(0, 1fr); } .rent-words { padding: 0 16px; } }

/* 6.0: modo claro. Textos que no 5.x tinham cor clara fixa (feita para fundo escuro) ganham cor legível no fundo claro. */
html[data-modo="claro"] .notice { color: #1f3f99; border-color: rgba(47, 91, 211, .3); }
html[data-modo="claro"] .notice.warn { color: #6b4500; border-color: rgba(201, 138, 20, .35); }
html[data-modo="claro"] .notice.success { color: #0b5c40; border-color: rgba(18, 128, 90, .3); }
html[data-modo="claro"] .notice.danger,
html[data-modo="claro"] .site-banner,
html[data-modo="claro"] .form-error { color: #8f1a20; }
html[data-modo="claro"] .legal-banner a { color: var(--accent-hi); }
html[data-modo="claro"] .btn.danger,
html[data-modo="claro"] .btn.danger-soft,
html[data-modo="claro"] .pill.red,
html[data-modo="claro"] .pill.accent,
html[data-modo="claro"] .chip.active b,
html[data-modo="claro"] .chip-pick input:checked + span,
html[data-modo="claro"] .cmd-limits[open] summary,
html[data-modo="claro"] .plan-tag.total,
html[data-modo="claro"] .hg-pill.red,
html[data-modo="claro"] .gh-status.red,
html[data-modo="claro"] .gh-tile .down,
html[data-modo="claro"] .gh-filters .chip.need:not(.active),
html[data-modo="claro"] .gh-need-tag,
html[data-modo="claro"] .gh-fail,
html[data-modo="claro"] .rail-score.red,
html[data-modo="claro"] .coupon-msg.bad,
html[data-modo="claro"] form.dirty .save-text,
html[data-modo="claro"] .period-option.active span,
html[data-modo="claro"] .command-top code,
html[data-modo="claro"] .cmd-name code { color: var(--accent-hi) !important; }
html[data-modo="claro"] .pill.amber,
html[data-modo="claro"] .plan-tag.completo,
html[data-modo="claro"] .gh-level.gold { color: var(--amber); }
html[data-modo="claro"] .pill.purple { color: #5b34c7; }
html[data-modo="claro"] .gh-level.legend { color: #8a1a5c; }
html[data-modo="claro"] .gh-level.silver { color: #4a5160; border-color: rgba(74, 81, 96, .35); }
html[data-modo="claro"] .gh-level.bronze { color: #8a4a1c; }
html[data-modo="claro"] .post-text { color: var(--text); }
html[data-modo="claro"] .ask-open em { color: var(--muted); }
html[data-modo="claro"] .you-item:hover .you-text strong,
html[data-modo="claro"] .rail-add:hover,
html[data-modo="claro"] .cmd-help-btn:hover,
html[data-modo="claro"] .cfg-help-btn:hover,
html[data-modo="claro"] .assistant-cancel,
html[data-modo="claro"] .assistant-send,
html[data-modo="claro"] .assistant-rec.will-lock .assistant-lock-hint { color: var(--text); }
html[data-modo="claro"] .pill.green { color: var(--green); border-color: rgba(18, 128, 90, .3); }
html[data-modo="claro"] .pill.blue { color: var(--blue); border-color: rgba(47, 91, 211, .3); }
html[data-modo="claro"] .nav-item.active .nav-hint { color: var(--muted); }
html[data-modo="claro"] .mod-shield.on { color: var(--green); }
html[data-modo="claro"] .gh-level.diamond { color: #0b6c8c; }

/* ---------- 6.1: painel do RPG (Meu personagem) ---------- */
.rpg-sheet { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px 28px; align-items: start; background: var(--surface); }
.rpg-sheet .grow { flex: initial; min-width: 0; }
.rpg-sheet-id { display: flex; gap: 18px; align-items: center; min-width: 0; }
.rpg-sheet-id h2 { font-size: 26px; margin: 0 0 2px; overflow-wrap: anywhere; }
.rpg-sheet-id p { margin: 0 0 10px; }
.rpg-lv { width: 84px; height: 96px; flex-shrink: 0; display: grid; place-content: center; text-align: center; background: var(--accent); color: #fff; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.rpg-lv small { font: 600 13px/1 var(--display); opacity: .9; }
.rpg-lv strong { font: 700 34px/1.05 var(--display); }
.rpg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rpg-chips span { padding: 4px 10px; font-size: 14px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.rpg-sheet-bars { display: grid; gap: 12px; grid-row: span 2; }
.rpg-bar-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; font-size: 15px; }
.rpg-bar-head strong { font-family: var(--display); }
.rpg-bar .progress { height: 10px; }
.rpg-bar small { display: block; margin-top: 4px; font-size: 14px; }
.rpg-bar.is-hp .progress span { background: var(--accent); }
.rpg-bar.is-energy .progress span { background: var(--amber); }
.rpg-bar.is-xp .progress span { background: var(--blue); }
.rpg-wallet { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.rpg-wallet > div { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); }
.rpg-wallet span { grid-row: span 2; font-size: 22px; }
.rpg-wallet strong { font: 700 22px/1.1 var(--display); }
.rpg-wallet small { color: var(--muted); font-size: 14px; }
.rpg-sheet > .notice { grid-column: 1 / -1; margin: 0; }

.rpg-sections { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 18px 0 10px; }
.rpg-section { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 10px 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); font: 600 16px/1.2 var(--display); cursor: pointer; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.rpg-section .ico { width: 20px; height: 20px; flex-shrink: 0; }
.rpg-section:hover { color: var(--text); border-color: var(--accent-line); }
.rpg-section.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.rpg-section .tab-badge { background: #fff; color: var(--accent); }
.rpg-subtabs { margin-bottom: 12px; }
.rpg-tab-help { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; margin-bottom: 16px; border-left: 3px solid var(--accent); background: var(--surface); }
.rpg-tab-help > .ico { width: 20px; height: 20px; margin-top: 2px; color: var(--accent); flex-shrink: 0; }
.rpg-tab-help p { margin: 0 0 6px; font-size: 16px; }
.rpg-cmds { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 15px; }
.rpg-cmd { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; }
.rpg-cmds .rpg-cmd { margin-top: 0; }
.rpg-cmd code { padding: 3px 8px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font-size: 15px; }
.rpg-cmd .link-button { font-size: 14px; }

.rpg-todo { margin-bottom: 18px; }
.rpg-todo-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.rpg-todo-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); }
.rpg-todo-list strong { display: block; font-size: 16px; }
.rpg-todo-list small { display: block; font-size: 14.5px; margin-top: 2px; }
.rpg-todo-ico { font-size: 24px; line-height: 1; }
.rpg-stack { display: grid; gap: 18px; align-content: start; }
.rpg-stack > .card { margin: 0; }
.attr > small { display: block; margin-top: 4px; font-size: 14px; }
.attr.is-main .progress span { background: var(--accent); }
.rpg-words { margin-top: 18px; }
.rpg-words summary { display: flex; gap: 8px; align-items: center; cursor: pointer; font: 600 16px/1.3 var(--display); color: var(--accent-hi); list-style: none; }
.rpg-words summary::-webkit-details-marker { display: none; }
.rpg-words summary .ico { width: 18px; height: 18px; flex-shrink: 0; }
.rpg-words dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 20px; margin: 16px 0 0; }
.rpg-words dt { font-weight: 700; }
.rpg-words dd { margin: 2px 0 0; color: var(--text-2); font-size: 15px; }
.rpg-start-steps { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 14px; }
.rpg-start-steps li { display: flex; gap: 14px; align-items: flex-start; }
.rpg-start-steps p { margin: 2px 0 0; }
.rpg-start-num { width: 40px; height: 46px; flex-shrink: 0; display: grid; place-items: center; background: var(--accent); color: #fff; font: 700 20px/1 var(--display); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.rpg-about p { margin: 0 0 8px; }
html[data-modo="claro"] .rpgm-tabs a.active { color: var(--accent-hi); }
@media (max-width: 900px) {
  .rpg-sheet { grid-template-columns: minmax(0, 1fr); }
  .rpg-sheet-bars { grid-row: auto; }
  .rpg-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .rpg-sheet-id { gap: 14px; }
  .rpg-lv { width: 66px; height: 76px; }
  .rpg-lv strong { font-size: 28px; }
  .rpg-sheet-id h2 { font-size: 22px; }
  .rpg-section { font-size: 15px; min-height: 48px; padding: 8px; }
}
.grid-2:has(.rpg-start) + .card, .grid-2:has(.rpg-start) + .rpg-words { margin-top: 18px; }

/* ---------- 6.2: configurar o bot mais fácil ---------- */
.cfg-presets { display: block; }
.cfg-presets-title { margin: 0 0 8px; font-size: 15.5px; color: var(--text-2); }
.cfg-preset-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.cfg-preset { display: grid; gap: 3px; text-align: left; padding: 10px 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); cursor: pointer; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
.cfg-preset strong { font: 600 16px/1.2 var(--display); }
.cfg-preset small { color: var(--muted); font-size: 14px; line-height: 1.4; }
.cfg-preset:hover, .cfg-preset:focus-visible { border-color: var(--accent-line); }
.cfg-preset:nth-child(2) { border-color: var(--accent-line); }
.cfg-presets-note { display: block; }
.cfg-tab-help { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 14px; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--surface); font-size: 15.5px; color: var(--text-2); }
.cfg-tab-help .ico { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); flex-shrink: 0; }
.plan-tag { text-transform: none; letter-spacing: 0; font-size: 13px; }
.page-heading-text p strong { color: var(--text); }
@media (max-width: 760px) { .cfg-preset-list { grid-template-columns: minmax(0, 1fr); } }
.gh-ring { margin-bottom: 18px; }
.gh-ring-label { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12.5px; color: var(--muted); }

/* ---------- 6.3: abas do grupo ---------- */
.mod-shields-label { font-size: 14.5px; color: var(--muted); margin-right: 2px; }
.member-badges { flex-wrap: wrap; }
/* As conversas no estilo WhatsApp (Moderação e Ao vivo) ficam escuras nos dois modos: o texto delas também. */
html[data-modo="claro"] .wa,
html[data-modo="claro"] .lv-feed {
  color-scheme: dark;
  --text: #e9edef; --text-2: #d1d7db; --muted: #8696a0; --muted-2: #7d7883;
  --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .18);
  --surface: #121014; --surface-2: #1b181e; --surface-3: #242027;
  --accent-hi: #ff6f69; --amber: #f3c065; --green: #4fd1a0; --blue: #86a8ff;
  color: var(--text);
}
html[data-modo="claro"] .member-badges .wa-chip.amber { color: var(--amber); }
html[data-modo="claro"] .member-badges .wa-chip.red { color: var(--accent-hi); }
html[data-modo="claro"] .member-badges .wa-chip.blue { color: var(--blue); }
