
/* Padrão definitivo das superfícies do UNK MAGNAT. */
body.citadel-interface{--magnat-stone:#101212;--magnat-text:#e7e2d6;--magnat-gold:#c5a46b;--magnat-frame:url('obsidian-art/stone-panel-v2.png');--magnat-plaque:url('obsidian-art/checklist-header-v4.png')}
body.citadel-interface :is(dialog,.capture-panel,.capture-gallery,.capture-send-confirm,.capture-opacity,.student-public-dialog,.students-online-dialog,.profile-hero,.report-metric,.ranking-me,.portal-empty,.settings-group,.evo-progress-card,.evo-rewards,.evo-last,.arsenal-slot){border:10px solid transparent!important;border-image:var(--magnat-frame) 105 fill stretch!important;border-radius:0!important;box-shadow:0 6px 20px #0006!important;color:var(--magnat-text);box-sizing:border-box}
body.citadel-interface :is(.profile-hero,.report-metric,.ranking-me,.settings-group,.evo-progress-card,.evo-rewards,.evo-last){padding:18px!important}
body.citadel-interface :is(.capture-panel,.capture-gallery){border-width:8px!important}
body.citadel-interface :is(.capture-heading,.settings-heading,.student-popup-heading,.arcade-game>.game-top,.practice-lab>header,.lab-result-dialog>header,.evo-header){background:var(--magnat-plaque) center/100% 220% no-repeat!important;border:0!important;min-height:75px;padding:15px 20px 15px 35px!important;box-sizing:border-box;align-items:center;gap:10px}
body.citadel-interface :is(.capture-heading,.settings-heading,.student-popup-heading){min-height:62px;padding:10px 14px 10px 27px!important}
body.citadel-interface :is(.arcade-settings>.game-top,.sword-arsenal>.game-top){background:var(--magnat-plaque) center/100% 220% no-repeat!important;min-height:65px;padding:12px 20px 12px 35px!important;box-sizing:border-box;align-items:center}
body.citadel-interface .portal-view>.portal-title{background:var(--magnat-plaque) center/100% 200% no-repeat!important;padding:25px 25% 25px 48px;min-height:95px;box-sizing:border-box;font:600 26px/1.2 Arial,sans-serif;color:var(--magnat-text)}
body.citadel-interface :is(.investitore-account>h2,.lab-help-dialog .game-top,.lab-bank-confirm .game-top){background:var(--magnat-plaque) center/100% 210% no-repeat;padding:17px 18% 17px 30px;min-height:64px;box-sizing:border-box;font:600 20px/1.25 Arial,sans-serif}
body.citadel-interface :is(.ranking-row,.student-online-row,.lab-review-rule){border-bottom:1px solid #544b3d!important;background:linear-gradient(90deg,#13151588,transparent)}
body.citadel-interface :is(input:not([type=color]):not([type=range]):not([type=checkbox]),select,textarea){background:#0a0c0c;color:var(--magnat-text);border:1px solid #706149;border-radius:2px;min-height:35px;padding:7px 10px;box-sizing:border-box}
body.citadel-interface :is(input[type=range],input[type=checkbox]){accent-color:var(--magnat-gold)}
body.citadel-interface :is(.profile-controls,.ranking-controls,.capture-confirm-actions,.lab-bank-confirm-actions){display:flex;align-items:center;gap:10px;flex-wrap:wrap}
body.citadel-interface :is(.profile-xp-track,.report-bar,.knight-xp-track){background:#090b0b;border:1px solid #7a6a51;box-shadow:inset 0 1px 3px #000;border-radius:6px;overflow:hidden}
body.citadel-interface :is(.profile-xp-track i,.report-bar i,.knight-xp-fill){background:linear-gradient(#e8dfc9,#8d7f68 65%,#c3b49a);box-shadow:none}
body.citadel-interface .capture-category-tabs{gap:6px}
body.citadel-interface .capture-category-tab[aria-selected=true]{color:#f1cf8f!important;filter:brightness(1.15)}
body.citadel-interface .capture-panel button.capture-focus{border:0!important;border-image:none!important;background:none!important;clip-path:none!important;box-shadow:none!important}
body.citadel-interface .capture-tools button{padding:3px 7px!important;min-width:31px;min-height:31px;height:31px;border-width:5px!important;border-image-width:5px!important}
body.citadel-interface .practice-lab[data-mode=management]>header{min-height:85px;background-size:100% 220%!important}
body.citadel-interface .practice-lab[data-mode=management]>.lab-chart{background:var(--bg,#070808)!important;border:1px solid #595346;outline-color:#413c33}
body.citadel-interface .lab-chart .lab-actions .lab-advance-candle{background:var(--upFill,#b92842)!important;color:#fff!important;border-image:none!important;border:2px solid var(--up,#ff526d)!important;border-radius:50%!important}
body.citadel-interface :is(.game-color-theme,.theme-dot,.colors-theme){border-image:none!important}
body.citadel-interface .student-public-sprite{width:110px;height:86px}
body.citadel-interface .profile-sword{height:124px;width:160px}
body.citadel-interface [hidden]{display:none!important}
@media(max-width:600px){body.citadel-interface :is(dialog,.capture-panel,.capture-gallery,.profile-hero,.report-metric,.ranking-me,.settings-group){border-width:7px!important}body.citadel-interface :is(.capture-heading,.settings-heading,.student-popup-heading,.arcade-game>.game-top,.practice-lab>header){padding:12px 14px 12px 25px!important;flex-wrap:wrap;min-height:70px}body.citadel-interface .portal-view>.portal-title{font-size:23px;padding:22px 20% 22px 30px;min-height:90px}body.citadel-interface .capture-tools{flex-wrap:nowrap;gap:3px}body.citadel-interface .capture-tools button{min-width:28px;min-height:28px;height:28px}body.citadel-interface .profile-controls>button{flex:1}body.citadel-interface .practice-lab[data-mode=management]>header{min-height:0}}

body.citadel-interface .profile-sword{width:160px!important;min-width:160px!important;flex:0 0 160px!important;height:124px!important;overflow:visible!important;border:0!important;border-radius:0!important;background:transparent!important;padding:0!important;display:grid!important;place-items:center!important}body.citadel-interface .profile-weapon{flex-wrap:wrap;justify-content:center}body.citadel-interface .portal-view>.portal-title{width:100%;max-width:none;padding-left:clamp(48px,5.8vw,84px)}body.citadel-interface .evo-portrait{min-width:120px;flex-basis:120px;overflow:visible!important;border:0!important;background:none!important}body.citadel-interface .student-public-sprite{overflow:visible!important;min-width:110px}@media(max-width:600px){body.citadel-interface .profile-sword{width:125px!important;min-width:125px!important;flex-basis:125px!important;height:100px!important}.citadel-interface .profile-sword .citadel-crest{width:125px!important;height:100px!important;min-height:100px!important}.citadel-interface .profile-sword .citadel-crest strong{font-size:36px!important}.citadel-interface .profile-sword .citadel-crest small{font-size:12px!important}body.citadel-interface .portal-view>.portal-title{padding-left:36px;font-size:21px}}

body.citadel-interface .capture-heading{min-height:45px!important;padding:6px 7px!important;gap:5px;background-size:100% 240%!important;display:flex!important;flex-wrap:nowrap!important;align-items:center;justify-content:space-between}body.citadel-interface .capture-title{font-size:9px!important;letter-spacing:.7px;white-space:nowrap;flex:1;min-width:0}body.citadel-interface .capture-tools{display:flex;gap:3px!important;flex:none!important;flex-wrap:nowrap!important}body.citadel-interface .capture-tools button{width:26px!important;min-width:26px!important;height:27px!important;min-height:27px!important;flex:0 0 26px!important;padding:1px!important;border-width:4px!important;border-image-width:4px!important;font-size:12px!important;line-height:1!important}body.citadel-interface .capture-tools button svg{width:12px!important;height:12px!important}

/* Integração das superfícies e cabeçalhos sem sobreposição. */
body.citadel-interface button:not(.theme-dot):not(.colors-theme):not(.lab-advance-candle):not(.capture-focus){background-color:transparent!important;background-image:url('obsidian-art/stone.svg')!important;background-size:240px!important;background-clip:padding-box!important;box-shadow:none!important}
body.citadel-interface :is(.arcade-game>.game-top,.practice-lab>header){background:none!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:12px 16px!important;min-height:72px!important;height:auto!important;overflow:visible!important;border-bottom:1px solid #625744!important}
body.citadel-interface .arcade-game>.game-top>div:first-child{position:static!important;flex:1 1 210px;min-width:0;display:flex;flex-direction:column;gap:6px;padding:0!important}
body.citadel-interface .arcade-game>.game-top small{position:static!important;display:block!important;margin:0!important;line-height:1.5!important;letter-spacing:1px!important}
body.citadel-interface :is(.arcade-game>.game-top h2,.practice-lab>header h2){position:static!important;margin:0!important;padding:0!important;line-height:1.25!important;text-shadow:none!important;transform:none!important}
body.citadel-interface .arcade-game>.game-top p:empty{display:none!important}
body.citadel-interface .arcade-game>.game-top .game-top-actions{position:static!important;display:flex!important;flex:0 1 auto!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;margin:0!important;transform:none!important}
body.citadel-interface .arcade-game>.game-top .game-top-actions button{display:inline-flex!important;align-items:center!important;justify-content:center!important;margin:0!important;min-height:36px!important}

body.citadel-interface .citadel-crest{position:relative;display:grid!important;place-items:center!important;padding:0!important}body.citadel-interface .citadel-crest .crest-mineral{position:absolute;left:31%;top:22%;width:38%;height:49%;display:grid;place-items:center;overflow:visible;background:none!important;border:0!important}body.citadel-interface .crest-mineral .material-sprite{display:block!important;width:100%!important;height:100%!important;min-height:0!important;max-width:100%!important;object-fit:contain;filter:none!important}

/* Brasões aprovados e navegação exclusiva na lateral. */
body.citadel-interface .portal-navigation{display:none!important}
body.citadel-interface .citadel-crest{background:none!important;padding:0!important;overflow:visible!important}
body.citadel-interface .citadel-crest .crest-full-image{display:block;width:100%!important;height:100%!important;object-fit:contain;max-width:100%;border:0!important;background:none!important;filter:none!important}
body.citadel-interface .citadel-profile{grid-row:2 / span 2!important}
body.citadel-interface .portal-study,body.citadel-interface .portal-view:not(#view-games),body.citadel-interface #view-games{grid-row:2!important}
@media(min-width:601px) and (max-width:900px){body.citadel-interface #view-games{grid-row:3!important}}
@media(max-width:600px){body.citadel-interface .citadel-profile>button{display:inline-flex!important;grid-column:auto;min-width:0;font-size:10px!important;padding:4px!important}body.citadel-interface .citadel-profile{grid-template-columns:repeat(3,minmax(0,1fr))!important}body.citadel-interface .citadel-profile .student-avatar{grid-column:1;grid-row:1/3}body.citadel-interface .citadel-profile h2{grid-column:2}body.citadel-interface .citadel-profile .citadel-xp{grid-column:2}body.citadel-interface .citadel-profile .citadel-progress{grid-column:1/-1}}

body.citadel-interface .portal-shell>header .header-tools{display:none!important}body.citadel-interface .knight-evolution .evo-header{display:flex!important;align-items:center!important;justify-content:flex-start!important;min-height:85px!important;padding:20px 27% 20px 42px!important;gap:0!important;background-size:100% 220%!important}body.citadel-interface .knight-evolution .evo-header h2{margin:0!important;font:600 clamp(20px,2.5vw,28px)/1.2 Georgia,serif!important;letter-spacing:0!important;color:#eee6d6!important;text-shadow:none!important;position:static!important}body.citadel-interface .mission-card .lab-card-cover,body.citadel-interface .mission-real-cover img{width:100%!important;height:100%!important;object-fit:contain!important}body.citadel-interface .mission-card .lab-card-cover{height:130px!important}body.citadel-interface .mission-real-cover{height:130px!important}

/* Controles de captura separados do conteúdo e sem deslocamento pelo tema. */
body.citadel-interface .knight-evolution .evo-return{display:flex!important;width:max-content!important;min-width:110px!important;min-height:34px!important;margin:14px auto 0!important;padding:5px 14px!important;font-size:11px!important}
body.citadel-interface .capture-dock{position:fixed!important;inset:auto 64px 16px auto!important;left:auto!important;top:auto!important;bottom:16px!important;right:64px!important;min-width:64px!important;height:42px!important;min-height:42px!important;padding:4px 9px!important;z-index:80}
body.citadel-interface .capture-dock-wrap{position:fixed!important;inset:auto 16px 16px auto!important;left:auto!important;top:auto!important;bottom:16px!important;right:16px!important;z-index:80}
body.citadel-interface .capture-dock-opacity{position:relative!important;width:40px!important;height:42px!important;min-height:42px!important;padding:3px!important}
body.citadel-interface .capture-opacity{position:fixed!important;z-index:150!important;background:#131619!important}
body.citadel-interface .capture-heading{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;min-height:52px!important;height:auto!important;padding:8px 10px!important;gap:8px!important;background:none!important;border-bottom:1px solid #5b5140!important;flex-shrink:0!important}
body.citadel-interface .capture-title{position:static!important;font:600 12px/1.3 Arial,sans-serif!important;letter-spacing:.7px!important;white-space:normal!important;min-width:0!important;padding:0!important;margin:0!important}
body.citadel-interface .capture-tools{position:static!important;display:flex!important;flex-direction:row!important;align-items:center!important;gap:4px!important;margin:0!important;transform:none!important}
body.citadel-interface .capture-tools button{position:relative!important;width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;border:1px solid #74664d!important;border-image:none!important;clip-path:none!important;background:#1b1e21!important;padding:2px!important;line-height:1!important;font-size:16px!important;box-shadow:none!important}

/* Faixa exclusiva de controles acima do cabeçalho. */
body.citadel-interface :is(.capture-panel,.capture-gallery)>.capture-tools{display:flex!important;align-items:center!important;justify-content:flex-end!important;flex:0 0 32px!important;width:100%!important;min-height:32px!important;gap:5px!important;padding:0 0 5px!important;margin:0!important;box-sizing:border-box;border-bottom:1px solid #433e34;background:none!important}
body.citadel-interface :is(.capture-panel,.capture-gallery)>.capture-heading{display:block!important;min-height:44px!important;flex:0 0 auto!important;padding:12px 16px!important;margin:0!important;background:var(--magnat-plaque) center/100% 220% no-repeat!important;border:0!important}
body.citadel-interface :is(.capture-panel,.capture-gallery)>.capture-heading .capture-title{display:block!important;width:100%!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;font:600 13px/1.35 Arial,sans-serif!important;padding:0!important}

body.citadel-interface :is(.capture-panel,.capture-gallery)>.capture-tools{justify-content:flex-end!important;align-self:flex-end!important;width:auto!important;flex:0 0 22px!important;min-height:22px!important;gap:3px!important;padding:0!important;border:0!important;background:none!important}
body.citadel-interface :is(.capture-panel,.capture-gallery)>.capture-tools button{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:22px!important;min-width:22px!important;height:22px!important;min-height:22px!important;flex:0 0 22px!important;padding:0!important;border:0!important;border-image:none!important;background:transparent!important;background-image:none!important;clip-path:none!important;box-shadow:none!important;font:15px/1 Arial,sans-serif!important;color:#bcb9b1!important;opacity:.8}
body.citadel-interface :is(.capture-panel,.capture-gallery)>.capture-tools button:hover{background:#ffffff12!important;color:#fff!important;opacity:1}

/* Controles de janela: prioridade acima do tema de botões ornamentados. */
html body.citadel-interface.citadel-interface :is(.capture-panel,.capture-gallery){position:fixed!important;padding-top:30px!important}
html body.citadel-interface.citadel-interface :is(.capture-panel,.capture-gallery)>.capture-tools{position:absolute!important;top:3px!important;right:5px!important;left:auto!important;bottom:auto!important;width:auto!important;height:22px!important;min-height:22px!important;display:flex!important;flex-direction:row!important;justify-content:flex-end!important;gap:3px!important;padding:0!important;margin:0!important;border:0!important;transform:none!important;z-index:5}
html body.citadel-interface.citadel-interface :is(.capture-tools button,.settings-close){display:inline-flex!important;align-items:center!important;justify-content:center!important;width:22px!important;min-width:22px!important;max-width:22px!important;height:22px!important;min-height:22px!important;max-height:22px!important;flex:0 0 22px!important;padding:0!important;margin:0!important;border:0!important;border-image:none!important;border-radius:3px!important;background:none!important;background-image:none!important;clip-path:none!important;box-shadow:none!important;filter:none!important;font:16px/1 Arial,sans-serif!important;color:#c5c2ba!important;text-shadow:none!important;opacity:.85}
html body.citadel-interface.citadel-interface :is(.capture-tools button,.settings-close):hover{background:#ffffff15!important;color:white!important;opacity:1}
html body.citadel-interface.citadel-interface #config{position:relative;padding-top:30px!important}
html body.citadel-interface.citadel-interface #config .settings-close{position:absolute!important;top:4px!important;right:6px!important;left:auto!important;bottom:auto!important;z-index:5}
html body.citadel-interface.citadel-interface #config .settings-heading{position:static!important;padding-right:25%!important}

html body.citadel-interface.citadel-interface :is(.capture-panel,.capture-gallery){padding-top:8px!important}html body.citadel-interface.citadel-interface :is(.capture-panel,.capture-gallery)>.capture-tools{position:static!important;width:100%!important;flex:0 0 24px!important;align-self:stretch!important;justify-content:flex-end!important;overflow:visible!important}

html body.citadel-interface .capture-panel-content .capture-lower-content{display:flex;flex-direction:column;justify-content:space-between;gap:10px;flex:1 0 auto!important;min-height:165px;padding-top:8px;box-sizing:border-box}html body.citadel-interface .capture-lower-content .capture-paste-hint{text-align:center;display:block;margin:0!important}html body.citadel-interface .capture-lower-content .capture-tally{margin:0;flex:1 0 45px;align-items:center}html body.citadel-interface .capture-lower-content .capture-actions{gap:8px}html body.citadel-interface .capture-lower-content .capture-actions button{min-height:clamp(34px,7cqh,58px)!important}html body.citadel-interface .capture-lower-content .capture-count{font-size:clamp(28px,6cqh,46px)!important}html body.citadel-interface .capture-lower-content .capture-status:empty{display:none!important}

html body.citadel-interface .capture-panel{min-width:min(320px,calc(100vw - 16px))!important}html body.citadel-interface .capture-panel-content .capture-count-label{white-space:normal;word-break:normal;overflow-wrap:normal}html body.citadel-interface .capture-panel-content .capture-tally>div{flex-wrap:wrap;gap:5px}

html body.citadel-interface.citadel-interface .capture-dock-wrap,html body.citadel-interface.citadel-interface .capture-dock-opacity{display:none!important}html body.citadel-interface.citadel-interface .capture-dock{right:16px!important}

/* Respostas do checklist: contorno fino e tipografia discreta. */
html body.citadel-interface.citadel-interface .portal-study #card button.answer,html body.citadel-interface.citadel-interface .portal-study #card button{border:1px solid #55534d!important;border-image:none!important;border-radius:3px!important;background:#151718!important;background-image:none!important;clip-path:none!important;box-shadow:none!important;min-height:42px!important;height:auto!important;padding:10px 14px!important;font:500 14px/1.4 Arial,sans-serif!important;letter-spacing:0!important;text-shadow:none!important;color:#e2dfd7!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important}
html body.citadel-interface.citadel-interface .portal-study #card button:hover{background:#25231e!important;border-color:#b39a68!important;color:#f0dfb8!important;filter:none!important}
html body.citadel-interface.citadel-interface .portal-study #card button:focus-visible{outline:2px solid #b39a68!important;outline-offset:3px!important}
html body.citadel-interface.citadel-interface .portal-study #card button::before,html body.citadel-interface.citadel-interface .portal-study #card button::after{content:none!important;display:none!important}
html body.citadel-interface.citadel-interface .portal-study #card button span{font-size:inherit!important;line-height:inherit!important;text-shadow:none!important}

body.citadel-interface .citadel-crest[role=button]{cursor:pointer}body.citadel-interface .level-test-dialog{width:min(520px,94vw);padding:22px;max-height:90dvh;overflow:auto}body.citadel-interface .level-test-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:15px 0}body.citadel-interface .level-test-dialog h2{font:24px Georgia;margin:0 0 10px}body.citadel-interface .level-test-dialog p{font:13px/1.5 Arial}body.citadel-interface .level-test-dialog>button{margin:5px}
