.themeSetting{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:14px;margin-bottom:16px;border:1px solid #66532f;border-radius:9px;background:#171a20;color:#f2eadb}.themeSetting>div{flex:1;min-width:170px}.themeSetting label{font-weight:800;font-size:15px}.themeSetting p{margin:5px 0 0;color:#c1b9ab;font-size:12px}.themeSetting select{max-width:100%;padding:10px;border:1px solid #80643a;border-radius:6px;background:#101319;color:#fff0d0;font:inherit}.themeSetting #themeError{flex-basis:100%;color:#ffb7a4}.themeSetting #themeError:empty{display:none}
/* Gilded is a colour skin. Classic owns all panel geometry and responsive layout. */
html[data-theme="gilded"]{color-scheme:dark;--gold:#e4b56a;--ember:#d88c32;--line:#51412c;--muted:#b4ad9e;--bg:#090d0f;--panel:#101719;--text:#eee8db}
html[data-theme="gilded"] body{background:radial-gradient(ellipse at 50% 0,#222322 0,transparent 60%),#080c0e;color:#eee8db}
html[data-theme="gilded"] .topbar{background:linear-gradient(110deg,#141a1b,#080c0e);border-color:#66502b}
html[data-theme="gilded"] .brand,html[data-theme="gilded"] .brand span{color:#efb254}
html[data-theme="gilded"] .panel{background:linear-gradient(120deg,#11191b,#0b1012 75%);border-color:#604b2b;box-shadow:inset 0 0 0 1px #070a0b}
html[data-theme="gilded"] .panel h2{color:#efb254;border-color:#433925;background:#090f11}
html[data-theme="gilded"] .stat,html[data-theme="gilded"] .chip{background:linear-gradient(110deg,#182022,#0c1113);border-color:#51412c}
html[data-theme="gilded"] .stat label{color:#d7c6a6}
html[data-theme="gilded"] .stat b{color:#f1e9d9}
html[data-theme="gilded"] .bar{background:#080b0c;border-color:#484032}
html[data-theme="gilded"] .fill{background:linear-gradient(90deg,#9b590f,#dfa32f)}
html[data-theme="gilded"] .fill.hp{background:linear-gradient(90deg,#417a28,#83be45)}
html[data-theme="gilded"] :is(.btn,.smallbtn,.gildedProfile,.gildedInventory,.activeBonusToggle){background:linear-gradient(135deg,#262720,#101719);color:#eee2cd;border-color:#836135}
html[data-theme="gilded"] :is(.btn.primary,.resetAuto,.chatComposer .smallbtn){background:linear-gradient(135deg,#aa4911,#743007);border-color:#bd6828;color:#fff0d6}
html[data-theme="gilded"] :is(button,input,select,textarea):focus-visible{outline:2px solid #efb254;outline-offset:2px}
html[data-theme="gilded"] .right>.tabs{background:#0c1214;border-color:#51412c}
html[data-theme="gilded"] .right>.tabs .tab{background:linear-gradient(135deg,#192023,#0e1416)!important;border-color:#50412b!important;color:#c9c1af!important}
html[data-theme="gilded"] .right>.tabs .tab.active{color:#ffdb8c!important;background:linear-gradient(135deg,#3a3020,#191b16)!important;border-color:#b28340!important}
html[data-theme="gilded"] :is(.upgrade,.upgradeCard,.manageCard,.battleReport,.notificationCard,.profileSettingsHero,.setSummary,.leftEquipped,.leftInventoryItem){background:linear-gradient(115deg,#172022,#0b1113);border-color:#665133;color:#eee3d0}
html[data-theme="gilded"] .standaloneChatTile{background:#0c1214!important;border-color:#604b2b!important}
html[data-theme="gilded"] :is(.channelTab,.feedTabs button){background:#101719;border-color:#51412c;color:#c4bba9}
html[data-theme="gilded"] :is(.channelTab.active,.feedTabs button.active){background:#2c281d;color:#f2c16b;border-color:#9a7237}
html[data-theme="gilded"] :is(input,select,textarea){background-color:#0c1113;color:#efe7d7;border-color:#655034}
html[data-theme="gilded"] :is(.accountSettingsDialog,.leftInventoryDialog,.dialog,.modalContent){background:linear-gradient(130deg,#182022,#090e10);color:#eee8db;border-color:#8b6938}
html[data-theme="gilded"] #enemyArt{display:none!important;background:none!important}
html[data-theme="gilded"] .gildedProfile{display:block;margin:6px auto;padding:6px 12px;border:1px solid #836135;border-radius:5px;cursor:pointer}
html[data-theme="gilded"] .gildedInventory{display:block;width:100%;margin:8px 0;padding:8px;border:1px solid #836135;border-radius:5px;cursor:pointer}
html[data-theme="gilded"] .gildedAccountNav{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto;max-width:100%;flex-wrap:wrap}
html[data-theme="gilded"] .gildedAccountNav #accountBar{display:flex;flex-direction:row;gap:8px;margin:0;padding:0;border:0;width:auto}
html[data-theme="gilded"] .topbar :is(button,a){box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 10px!important;border:1px solid #836135!important;border-radius:3px!important;background:linear-gradient(135deg,#262720,#101719)!important;color:#eee2cd!important;font:600 12px Georgia,serif!important;text-decoration:none;box-shadow:inset 0 1px #ffffff08!important}
html[data-theme="gilded"] .gildedOnline{white-space:nowrap;color:#acd594;font-size:12px;border:0;background:none;padding:0}
/* Adventurer contents only: the Classic column widths and chat stay untouched. */
html[data-theme="gilded"] .gildedIdentity{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:6px 9px;align-items:center;margin-bottom:12px}
html[data-theme="gilded"] .gildedIdentity #playerPortrait{grid-column:1;grid-row:1 / 3;width:56px;height:56px;min-height:0;margin:0;display:grid;place-items:center;border:1px solid #aa8246;border-radius:50%;background:radial-gradient(circle at 40% 30%,#50402b,#101719 75%);box-shadow:0 0 0 3px #0c1113,0 0 0 4px #51412c}
html[data-theme="gilded"] .gildedIdentity #playerPortrait:after{display:none}
html[data-theme="gilded"] .gildedIdentity #portraitAvatar{font-size:35px;line-height:1}
html[data-theme="gilded"] .gildedIdentity #characterName{grid-column:2;grid-row:1;margin:0;text-align:left;font:21px Georgia,serif;min-width:0;overflow-wrap:anywhere}
html[data-theme="gilded"] .gildedIdentity .levelrow{grid-column:2 / 4;grid-row:2;gap:6px;flex-wrap:wrap;margin:0}
html[data-theme="gilded"] .gildedIdentity .level{font:17px Georgia,serif}
html[data-theme="gilded"] .gildedIdentity .gildedProfile{grid-column:3;grid-row:1;margin:0;padding:7px 9px;font-size:12px;border-color:#97713b;background:linear-gradient(135deg,#40331d,#1c201c);color:#ffe0a3;white-space:nowrap}
html[data-theme="gilded"] .gildedAdventurer .resources{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}
html[data-theme="gilded"] .gildedAdventurer .chip{min-width:0;padding:9px;border-radius:4px;color:#e4b56a;font-size:11px;text-transform:uppercase;border-color:#70542d}
html[data-theme="gilded"] .gildedAdventurer .chip b{display:block;margin:4px 0 0;color:#f3e8d4;font:14px Georgia,serif;white-space:nowrap;overflow-x:auto;font-variant-numeric:tabular-nums}
html[data-theme="gilded"] .gildedAdventurer .stats{display:flex;flex-direction:column;gap:0}
html[data-theme="gilded"] .gildedAdventurer .stat{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:34px;padding:7px 10px;border-radius:3px;border-color:#4d412e;background:linear-gradient(110deg,#182022,#0c1113)}
html[data-theme="gilded"] .gildedAdventurer .stats .stat+.stat{border-top:0}
html[data-theme="gilded"] .gildedAdventurer .stat label{font:14px Georgia,serif!important;text-transform:capitalize}
html[data-theme="gilded"] .gildedAdventurer .stat b{font:16px Georgia,serif!important;font-variant-numeric:tabular-nums}
html[data-theme="gilded"] .gildedAdventurer .stat:has(#power){border-color:#806035;background:linear-gradient(110deg,#302819,#101719)}
html[data-theme="gilded"] .gildedAdventurer #power{color:#efbd69;font-size:18px!important}
/* Keep level before the rank title; only exact XP numbers are hover-only. */
html[data-theme="gilded"] .gildedIdentity #xpText{display:none}
html[data-theme="gilded"] .gildedIdentity .levelrow{justify-content:flex-start}
html[data-theme="gilded"] .gildedIdentity #rank:before{content:'·';margin-right:6px;color:var(--muted)}
html[data-theme="gilded"] .gildedXpTrack{position:relative;height:22px;min-height:22px;border:1px solid #806035;margin:7px 0 14px;cursor:help}
html[data-theme="gilded"] .gildedXpPercent{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;color:#fff8e7;font-size:12px;font-weight:800;line-height:20px;text-shadow:0 1px 3px #000,0 0 3px #000;font-variant-numeric:tabular-nums}
html[data-theme="gilded"] .gildedXpTrack:focus-visible{outline:2px solid #efb254;outline-offset:2px}
html[data-theme="gilded"] .topbar #gildedDiscord{padding:5px 8px!important;min-width:34px}
html[data-theme="gilded"] #gildedDiscord svg{display:block;flex:none}
