/* Padrão L2 (azul-acinzentado, barra de título cinza, dourado nos títulos) aplicado às janelas que ainda estavam no verde antigo:
   Habilidades, Evolução de classe, Hebrom Online e Mapa-múndi. Mesma paleta da Mochila (inventory-l2.css). */
html body :is(#skills-panel,#class-panel,#online-panel,#world-atlas){--l2-bg:#171e2b;--l2-bg2:#1f2837;--l2-line:#6d7a8e;--l2-line2:#353f52;--l2-txt:#d7dbe3;--l2-dim:#8e97a8;--l2-gold:#e6c870;--l2-link:#6ea8ff;
 padding:0 0 12px;background:linear-gradient(#1b2331,#141a26);color:var(--l2-txt);border:1px solid var(--l2-line);border-radius:3px;box-shadow:0 0 0 1px #0a0d14,0 10px 30px #000c,inset 0 0 0 1px #0a0d14;font:12px/1.5 Verdana,Tahoma,system-ui,sans-serif}
html body :is(#skills-panel,#class-panel,#online-panel,#world-atlas)::backdrop{background:rgba(4,6,10,.45)}
/* barra de título */
html body :is(.skills-heading,.online-heading,.atlas-heading,#class-panel header){display:flex;justify-content:space-between;align-items:center;gap:8px;height:24px;margin:0 0 10px!important;padding:0 6px 0 10px;background:linear-gradient(#3b475c,#232c3b);border-bottom:1px solid #0a0d14;box-shadow:inset 0 1px 0 #5d6b82;cursor:move;user-select:none;touch-action:none}
html body :is(.skills-heading,.online-heading,.atlas-heading) small{display:none}
html body :is(.skills-heading,.online-heading,.atlas-heading) h2,html body #class-panel header h2{margin:0;font:700 12px Verdana,Tahoma,system-ui,sans-serif;color:#e8ecf4;letter-spacing:0}
html body :is(#skills-close,#online-close,.atlas-heading button,#class-panel header button){all:unset;box-sizing:border-box;width:18px;height:18px;min-width:0;min-height:0;line-height:16px;text-align:center;cursor:pointer;color:#c3cad8;border:1px solid #54617a;border-radius:2px;background:#1a2230;font:11px/16px system-ui,sans-serif}
html body :is(#skills-close,#online-close,.atlas-heading button,#class-panel header button):hover{color:#fff;border-color:var(--l2-gold)}
/* o atlas tem o botão "Continuar aventura": vira um botão L2 comum em vez de ✕ */
html body #world-atlas .atlas-heading button{width:auto;height:18px;padding:0 10px;white-space:nowrap;line-height:16px;font:11px/16px Verdana,sans-serif}
/* corpo: respiro lateral */
html body :is(#skills-panel,#online-panel)>:not(.skills-heading):not(.online-heading),html body #class-panel>:not(form),html body #world-atlas>:not(.atlas-heading){margin-left:12px;margin-right:12px}
html body #class-panel>form{margin:0}
/* textos */
html body :is(#skills-panel,#online-panel,#class-panel) :is(p,li,span,label,div){font-family:Verdana,Tahoma,system-ui,sans-serif}
html body :is(#skills-summary,#skills-tree,.skills-note,#online-panel p,#online-panel li,#online-panel label){font:12px/1.55 Verdana,Tahoma,system-ui,sans-serif;color:var(--l2-txt)}
html body :is(.skills-note,#online-panel p){color:var(--l2-dim)}
html body :is(#skills-panel,#online-panel,#class-panel,#world-atlas) :is(h3,h4){margin:10px 0 4px;font:700 11px Verdana,Tahoma,system-ui,sans-serif;letter-spacing:0;color:var(--l2-gold)}
html body :is(#skills-panel,#online-panel,#class-panel,#world-atlas) a{color:var(--l2-link)}
html body #skills-message{font:11px Verdana,sans-serif;color:var(--l2-gold);min-height:18px}
html body #skills-tree{padding:8px 10px;border-left:2px solid var(--l2-gold);background:#10161f}
/* botões */
html body :is(#skills-panel,#online-panel,#class-panel,#world-atlas .atlas-legend) button:not(#skills-close):not(#online-close):not(.atlas-heading button):not([value=close]){cursor:pointer;padding:4px 12px;color:var(--l2-link);border:1px solid var(--l2-line2);border-radius:2px;background:linear-gradient(#2a3447,#1c2432);font:11px Verdana,Tahoma,system-ui,sans-serif;min-height:0;box-shadow:none}
html body :is(#skills-panel,#online-panel,#class-panel,#world-atlas .atlas-legend) button:not(#skills-close):not(#online-close):not([value=close]):hover:not(:disabled){color:#fff;border-color:var(--l2-gold)}
html body :is(#skills-panel,#online-panel,#class-panel,#world-atlas .atlas-legend) button:disabled{opacity:.4;cursor:default}
html body .skills-tabs{display:flex;gap:2px;border-bottom:1px solid var(--l2-line2)}
html body .skills-tabs button{border-radius:3px 3px 0 0!important;border-bottom:0!important;background:#1a2230!important;color:var(--l2-dim)!important}
html body .skills-tabs button.on,html body .skills-tabs button[aria-selected=true],html body .skills-tabs button.active{background:#273246!important;color:var(--l2-gold)!important;border-color:var(--l2-line)!important}
/* campos */
html body :is(#skills-panel,#online-panel,#class-panel) :is(input,select,textarea){padding:4px 6px;color:var(--l2-txt);background:#0b1019;border:1px solid var(--l2-line2);border-radius:2px;font:12px Verdana,sans-serif}
html body :is(#skills-panel,#online-panel,#class-panel) :is(input,select,textarea):focus{outline:0;border-color:var(--l2-gold)}
/* cartões */
html body #skills-grid{gap:6px}
html body .skill-card{background:linear-gradient(#1a2230,#10161f);border:1px solid var(--l2-line2);border-radius:2px;color:var(--l2-txt);box-shadow:inset 0 0 0 1px #0a0d14}
html body .skill-card:hover{border-color:var(--l2-gold)}
html body .skill-card .track{background:#0b1019}
html body :is(.class-tree,.class-option){background:#10161f;border:1px solid var(--l2-line2);border-radius:2px}
html body .class-option.ready{border-color:var(--l2-gold)}
html body .class-node{color:var(--l2-txt)}html body .class-node.current{color:var(--l2-gold)}html body .class-node.walked{color:#7fb069}
html body .atlas-legend{background:#10161f;border:1px solid var(--l2-line2);border-radius:2px;color:var(--l2-txt)}
html body .realm-destination{background:linear-gradient(#2a3447,#1c2432);border:1px solid var(--l2-line2);border-radius:2px;color:var(--l2-txt)}
html body .realm-destination:hover{border-color:var(--l2-gold)}
html body .realm-destination strong{color:var(--l2-gold);font:700 12px Verdana,sans-serif}
html body .atlas-scroll{background:#0b1019;border:1px solid var(--l2-line2)}
html body .atlas-info h3{color:var(--l2-gold)}

/* Ficha do personagem */
html body #char-panel{width:min(400px,calc(100vw - 16px));max-height:calc(100dvh - 24px);padding:0;overflow:hidden;display:none;background:linear-gradient(#1b2331,#141a26);color:#d7dbe3;border:1px solid #6d7a8e;border-radius:3px;box-shadow:0 0 0 1px #0a0d14,0 10px 30px #000c,inset 0 0 0 1px #0a0d14;font:12px/1.5 Verdana,Tahoma,system-ui,sans-serif}
html body #char-panel[open]{display:flex;flex-direction:column}
html body #char-panel::backdrop{background:transparent}
html body #char-panel .cs-bar{display:flex;justify-content:space-between;align-items:center;height:24px;flex:none;padding:0 6px 0 10px;background:linear-gradient(#3b475c,#232c3b);border-bottom:1px solid #0a0d14;box-shadow:inset 0 1px 0 #5d6b82;font:700 12px Verdana,sans-serif;color:#e8ecf4;cursor:move;user-select:none;touch-action:none}
html body #char-panel #cs-x{all:unset;width:18px;height:18px;line-height:16px;text-align:center;cursor:pointer;color:#c3cad8;border:1px solid #54617a;border-radius:2px;background:#1a2230;font:11px/16px system-ui}
html body #char-panel #cs-x:hover{color:#fff;border-color:#e6c870}
html body #char-panel #cs-body{padding:10px 12px;overflow:auto;flex:1;min-height:0}
html body #char-panel .cs-head{display:flex;flex-direction:column;gap:1px;margin-bottom:8px}
html body #char-panel .cs-name{font:700 15px Verdana,sans-serif;color:#e6c870}
html body #char-panel .cs-sub{color:#8e97a8;font-size:11px}
html body #char-panel .cs-title{font-style:normal;color:#e6c870;font-size:11px;margin-top:2px}
html body #char-panel .cs-bar-row{display:grid;grid-template-columns:58px 1fr;gap:6px;align-items:center;margin:3px 0;font-size:11px;color:#8e97a8}
html body #char-panel .cs-track{position:relative;height:14px;background:#0b1019;border:1px solid #353f52;border-radius:2px;overflow:hidden}
html body #char-panel .cs-track i{display:block;height:100%}
html body #char-panel .cs-track.hp i{background:linear-gradient(#c04a4a,#7a2626)}html body #char-panel .cs-track.mp i{background:linear-gradient(#4f86d6,#27487f)}html body #char-panel .cs-track.st i{background:linear-gradient(#d6a64f,#7f5f27)}html body #char-panel .cs-track.xp i{background:linear-gradient(#8fd06a,#4a7f2a)}
html body #char-panel .cs-track u{position:absolute;inset:0;text-decoration:none;text-align:center;line-height:13px;font-size:10px;color:#fff;text-shadow:0 1px 1px #000}
html body #char-panel h3{margin:12px 0 4px;font:700 11px Verdana,sans-serif;color:#e6c870;border-bottom:1px solid #353f52;padding-bottom:2px}
html body #char-panel .cs-grid{display:grid;grid-template-columns:auto 1fr;gap:1px 12px;font-size:11px}
html body #char-panel .cs-grid .k{color:#8e97a8}html body #char-panel .cs-grid .v{color:#d7dbe3;text-align:right}
html body #char-panel .cs-set{margin:2px 0;font-size:11px;color:#d7dbe3}
html body #char-panel #cs-actions{display:flex;flex-wrap:wrap;gap:4px;padding:8px 12px;border-top:1px solid #353f52;flex:none}
html body #char-panel #cs-actions button{cursor:pointer;padding:3px 10px;color:#6ea8ff;border:1px solid #353f52;border-radius:2px;background:linear-gradient(#2a3447,#1c2432);font:11px Verdana,sans-serif}
html body #char-panel #cs-actions button:hover{color:#fff;border-color:#e6c870}

html body #char-panel .cs-cols{display:grid;grid-template-columns:1fr 1fr;gap:8px}
html body #char-panel .cs-col{padding:6px 8px;background:#10161f;border:1px solid #353f52;border-radius:2px}
html body #char-panel .cs-col.on{border-color:#6d7a8e;box-shadow:inset 0 0 0 1px #0a0d14}
html body #char-panel .cs-col h4{margin:0;font:700 12px Verdana,sans-serif;color:#e6c870}
html body #char-panel .cs-col small{display:block;margin-bottom:4px;color:#8e97a8;font-size:10px}
html body #char-panel .cs-col.off .v{color:#8e97a8}html body #char-panel .cs-col.off h4{color:#a8a074}
html body #char-panel .cs-grid .v .bn{font-style:normal;color:#7fb069;margin-left:2px}html body #char-panel .cs-grid .v .bn.neg{color:#e08a76}html body #char-panel .cs-col.off .v .bn{color:#9bbd86}
html body #char-panel .cs-attrs{display:grid;grid-template-columns:repeat(6,1fr);gap:4px}
html body #char-panel .cs-attr{position:relative;text-align:center;padding:4px 0 3px;background:#10161f;border:1px solid #353f52;border-radius:2px}
html body #char-panel .cs-attr small{display:block;color:#8e97a8;font-size:10px;letter-spacing:.5px}
html body #char-panel .cs-attr b{font:700 15px Verdana,sans-serif;color:#e6c870}
html body #char-panel .cs-attr em{position:absolute;right:3px;top:1px;font-style:normal;font-size:9px;color:#7fb069}
