/* Oblitae — ferramentas complementares do jogador (escopo isolado). */
#portalDialog .rpg-page-head{margin:0 0 24px}
#portalDialog .rpg-page-head h2{font-family:Cinzel,serif;line-height:1.2;margin:.4rem 0 1rem;letter-spacing:.01em}
#portalDialog .rpg-page-head h2 span{color:var(--gold);font-size:.79em}
#portalDialog .rpg-page-head .panel-lead{max-width:820px}
#portalDialog .rpg-nav-icon{width:24px;min-width:24px;display:inline-grid;place-items:center;color:var(--gold);font-size:19px}
#portalDialog .portal-rpg-nav span:last-child{display:grid;gap:4px;text-align:left}
#portalDialog .portal-rpg-nav strong{font-size:.91rem}
#portalDialog .portal-rpg-nav small{font-size:.73rem;font-weight:400;color:var(--muted)}
#portalDialog .rpg-quick-nav{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0 25px}
#portalDialog .rpg-quick-nav a{color:var(--gold-2);border:1px solid var(--line);border-radius:999px;background:rgba(200,169,107,.06);padding:9px 14px;text-decoration:none;font-size:.85rem}
#portalDialog .rpg-quick-nav a:hover,#portalDialog .rpg-quick-nav a:focus-visible{border-color:var(--gold)}
#portalDialog .rpg-rule-grid,#portalDialog .rpg-chapter,.rpg-admin-players{display:grid;gap:12px}
#portalDialog .rpg-rule-card,#portalDialog .rpg-chapter,#portalDialog .rpg-admin-player{background:linear-gradient(130deg,rgba(200,169,107,.045),rgba(255,255,255,.01)),var(--panel);border:1px solid var(--line);border-radius:15px;overflow:hidden}
#portalDialog .rpg-rule-card[open],#portalDialog .rpg-chapter[open],#portalDialog .rpg-admin-player[open]{border-color:rgba(200,169,107,.45)}
#portalDialog .rpg-rule-card summary,#portalDialog .rpg-chapter summary,#portalDialog .rpg-admin-player summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:15px;min-height:68px;padding:15px 20px;color:var(--ink)}
#portalDialog .rpg-rule-card summary::-webkit-details-marker,#portalDialog .rpg-chapter summary::-webkit-details-marker,#portalDialog .rpg-admin-player summary::-webkit-details-marker{display:none}
#portalDialog .rpg-rule-icon{display:inline-grid;place-items:center;flex:none;color:var(--gold);font-size:23px;width:34px;height:34px}
#portalDialog .rpg-rule-card summary span:nth-child(2),#portalDialog .rpg-admin-player summary span:first-child{display:grid;gap:3px;flex:1}
#portalDialog .rpg-rule-card summary small,#portalDialog .rpg-admin-player summary small{font-size:.72rem;color:var(--gold);letter-spacing:.08em;text-transform:uppercase}
#portalDialog .rpg-rule-card summary strong{font-family:Cinzel,serif;font-size:1.04rem}
#portalDialog .rpg-disclosure{margin-left:auto;flex:none;color:var(--gold);font-size:23px;transition:transform .2s}
#portalDialog details[open] > summary .rpg-disclosure{transform:rotate(180deg)}
#portalDialog .rpg-rule-card ul{margin:0;padding:2px 30px 22px 51px;display:grid;gap:12px;color:var(--ink);line-height:1.65}
#portalDialog .rpg-rule-card li::marker{color:var(--gold)}
#portalDialog .rpg-rule-card .rpg-key-line{color:var(--gold-2);font-weight:600}
#portalDialog .rpg-rule-card .btn{margin:0 20px 20px}
#portalDialog .rpg-closing-quote,#portalDialog .rpg-final-guidance{padding:23px 26px;margin-top:23px;border-left:3px solid var(--gold);border-radius:7px 14px 14px 7px;background:rgba(200,169,107,.075);color:var(--gold-2);line-height:1.7;font-family:Cinzel,serif}
#portalDialog .rpg-final-guidance p{color:var(--muted);font-family:Inter,sans-serif;font-size:.88rem;margin:10px 0 0}
#portalDialog .rpg-campaign-tabs{display:flex;overflow-x:auto;gap:10px;padding:0 0 14px;margin-bottom:16px;scrollbar-width:thin}
#portalDialog .rpg-campaign-tab{min-width:max-content;background:var(--panel);border:1px solid var(--line);border-radius:11px;color:var(--muted);padding:13px 16px;cursor:pointer;font-size:.89rem}
#portalDialog .rpg-campaign-tab.active{background:rgba(200,169,107,.13);border-color:var(--gold);color:var(--gold-2);font-weight:700}
#portalDialog .rpg-character-paper{background:radial-gradient(ellipse at top,rgba(200,169,107,.08),transparent 65%),var(--panel-3);border:1px solid var(--line);border-radius:17px;padding:22px}
#portalDialog .rpg-character-header{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:22px;flex-wrap:wrap}
#portalDialog .rpg-character-header h3{margin:6px 0 0;font-family:Cinzel,serif;color:var(--gold-2)}
#portalDialog .rpg-progress{display:grid;gap:6px;font-size:.8rem;color:var(--muted);min-width:200px}
#portalDialog .rpg-progress progress{height:7px;width:100%;accent-color:var(--gold)}
#portalDialog .rpg-character-main{display:grid;gap:18px;margin-bottom:29px}
#portalDialog .rpg-character-main label,#portalDialog .rpg-question,#portalDialog .rpg-admin-filter{display:grid;gap:9px;font-weight:600;color:var(--ink);font-size:.9rem}
#portalDialog .rpg-character-main textarea,#portalDialog .rpg-character-main input,#portalDialog .rpg-question textarea,#portalDialog .rpg-admin-filter select{background:#111318;border:1px solid #41424b;border-radius:10px;padding:12px 14px;color:var(--ink);font-family:Inter,sans-serif;font-size:16px;line-height:1.6;width:100%;max-width:100%;box-sizing:border-box}
#portalDialog .rpg-character-main textarea,#portalDialog .rpg-question textarea{resize:vertical;min-height:94px}
#portalDialog .rpg-character-main :is(input,textarea):focus-visible,#portalDialog .rpg-question textarea:focus-visible,#portalDialog .rpg-admin-filter select:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
#portalDialog .rpg-chapters-head{margin-bottom:19px}
#portalDialog .rpg-chapters-head h3{font-family:Cinzel,serif;color:var(--gold-2);margin-bottom:12px;line-height:1.45}
#portalDialog .rpg-chapters-head p{color:var(--muted);line-height:1.7}
#portalDialog .rpg-chapter{margin-bottom:12px}
#portalDialog .rpg-chapter summary{font-size:.97rem;gap:12px}
#portalDialog .rpg-chapter summary span:first-child{font-size:22px;color:var(--gold)}
#portalDialog .rpg-chapter summary small{color:var(--muted);margin-left:auto;white-space:nowrap;font-size:.75rem}
#portalDialog .rpg-chapter summary .rpg-disclosure{margin-left:5px}
#portalDialog .rpg-questions{padding:4px 17px 20px;display:grid;gap:19px}
#portalDialog .rpg-question{padding:15px;background:rgba(255,255,255,.018);border:1px solid rgba(255,255,255,.06);border-radius:12px}
#portalDialog .rpg-question-title{font-weight:700;line-height:1.5}
#portalDialog .rpg-question-title b{color:var(--gold);margin-right:5px}
#portalDialog .rpg-question small{color:var(--muted);font-weight:400;font-size:.85rem;line-height:1.6}
#portalDialog .rpg-question.rpg-highlight{border-color:rgba(200,169,107,.6);background:rgba(200,169,107,.07)}
#portalDialog .rpg-question em{display:inline-block;font-style:normal;color:var(--gold-2);border-radius:999px;border:1px solid var(--gold);font-size:.68rem;font-weight:600;padding:2px 7px;margin-left:5px}
#portalDialog .rpg-save-toolbar{position:sticky;bottom:0;z-index:4;background:rgba(14,16,20,.97);border-top:1px solid var(--line);margin:25px -22px -22px;padding:13px 22px;display:flex;align-items:center;justify-content:flex-end;gap:15px;flex-wrap:wrap;border-radius:0 0 17px 17px}
#portalDialog .rpg-save-status{margin-right:auto;font-size:.84rem;line-height:1.45;color:var(--muted)}
#portalDialog .rpg-save-status.success{color:#a1d9a8}
#portalDialog .rpg-save-status.error{color:#ffafa1}
#portalDialog .rpg-save-status.working{color:var(--gold-2)}
#portalDialog .rpg-loading{padding:34px;text-align:center;color:var(--muted)}
#portalDialog .rpg-admin-filter{max-width:520px;margin-bottom:18px}
#portalDialog .rpg-admin-total{color:var(--muted);font-size:.9rem}
#portalDialog .rpg-admin-player{margin-bottom:12px}
#portalDialog .rpg-admin-player summary>span:nth-child(2){color:var(--gold);font-size:.81rem}
#portalDialog .rpg-admin-player-body{padding:12px 24px 25px;display:grid;gap:12px}
#portalDialog .rpg-admin-player-body h4,#portalDialog .rpg-admin-player-body h5{color:var(--gold-2);margin:9px 0 0}
#portalDialog .rpg-admin-player-body h5{border-top:1px solid var(--line);padding-top:16px}
#portalDialog .rpg-admin-player-body p{margin:0;line-height:1.7}
#portalDialog .rpg-admin-answer{border-bottom:1px solid rgba(255,255,255,.07);padding-bottom:12px}
#portalDialog .rpg-admin-answer strong{font-size:.89rem}
#portalDialog .rpg-prewrap{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink)}
#portalDialog .rpg-unfilled{color:var(--muted);font-style:italic}
#portalDialog .portal-rpg-nav:focus-visible,#portalDialog .rpg-campaign-tab:focus-visible,#portalDialog .rpg-quick-nav a:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
@media(max-width:760px){
  #portalDialog .portal-rpg-nav{min-height:53px}
  #portalDialog .rpg-character-paper{padding:14px}
  #portalDialog .rpg-character-header{align-items:start}
  #portalDialog .rpg-progress{width:100%}
  #portalDialog .rpg-chapter summary{padding:13px 12px;gap:8px;min-height:60px}
  #portalDialog .rpg-chapter summary small{display:none}
  #portalDialog .rpg-questions{padding:5px 9px 14px}
  #portalDialog .rpg-question{padding:11px}
  #portalDialog .rpg-save-toolbar{margin:20px -14px -14px;padding:12px 14px;gap:9px}
  #portalDialog .rpg-save-status{flex:1 0 100%}
  #portalDialog .rpg-save-toolbar .btn{flex:1}
  #portalDialog .rpg-rule-card summary{padding:12px 14px}
  #portalDialog .rpg-rule-card ul{padding:0 21px 20px 34px}
  #portalDialog .rpg-quick-nav{flex-wrap:nowrap;overflow-x:auto;padding-bottom:10px}
  #portalDialog .rpg-quick-nav a{flex:none}
}
/* O estilo dos botões existentes não pode sobrepor o atributo semântico hidden. */
#portalDialog [data-reload-diary][hidden]{display:none!important}
