:root{--bg:#0b1220;--panel:#121e31;--panel-2:#172a42;--line:#3c597c;--text:#f1f5ff;--muted:#adc5e1;--orange:#f98ac6;--orange-soft:#422543;--green:#86eac5;--radius:16px;--pink:#f477c4;--blue:#8bdcff}
[hidden]{display:none!important}
body{background:radial-gradient(ellipse at 20% -10%,#47375f 0,transparent 45%),radial-gradient(ellipse at 100% 45%,#183b56 0,transparent 50%),#0b1220;font-family:"Malgun Gothic","Apple SD Gothic Neo",system-ui,sans-serif;line-height:1.5;overflow-x:hidden}
button,input,select{font:inherit}button{touch-action:manipulation}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #9ddeff;outline-offset:4px}input:focus,select:focus{outline:2px solid #e594cb;outline-offset:2px}button{min-height:38px}button:disabled{opacity:.55;cursor:not-allowed}
.shell{width:min(1280px,calc(100% - 36px));padding:28px 0 48px}.topbar{margin-bottom:14px;gap:16px}.brand-mark{background:linear-gradient(145deg,#ffb8e0,#fe69bb);color:#291932}.brand h1{font-size:32px;letter-spacing:-.04em;text-shadow:0 3px 0 #070d18}.brand-credit{font-size:12px}.brand p{font-size:12px;color:#c3d8ef}.top-actions{gap:8px}.save-status{font-size:11px}.top-actions .button{font-size:12px;padding:8px 11px}.button{background:#1b2b43;border-color:#4b6383;transition:background .15s}.button:hover{background:#273c57;transform:none}.button.primary{background:linear-gradient(120deg,#fc8ccd,#ed63b8);color:#24152a;border:1px solid #ffc2e5;box-shadow:0 4px 20px #ff6bbe25}.button.primary:hover{background:#ffade0}.button.small{font-size:12px}
.portal-nav{display:flex;justify-content:center;gap:8px;width:min(530px,100%);margin:0 auto 26px;padding:7px;background:#0c1728;border:1px solid #344965;border-radius:28px}.portal-nav button{background:transparent;border:0;border-radius:22px;color:#d9e8fb;flex:1;padding:10px;font-weight:700;font-size:14px}.portal-nav button span{margin-right:8px}.portal-nav button[aria-current=page]{background:linear-gradient(135deg,#ffb6d9,#f57dc2);box-shadow:0 0 20px #f381ca26;color:#28162b}.mobile-nav{display:none}.portal-page{animation:appear .2s ease}@keyframes appear{from{opacity:.6;transform:translateY(3px)}to{opacity:1;transform:none}}
.kicker{color:#99d8ff;font-size:11px;letter-spacing:.14em;font-weight:700}.dashboard-intro{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 2px 22px}.dashboard-intro h1{font-size:26px;margin:4px 0;line-height:1.4}.dashboard-intro h1 span{display:block;font-size:13px;font-weight:400;color:var(--muted);margin-top:5px}.game-panel{padding:22px;background:linear-gradient(135deg,#1b304b,#101d2e 70%);border:1px solid #6284ad;border-radius:var(--radius);box-shadow:inset 0 1px 0 #b3d9ff22,0 8px 20px #0002;margin-bottom:17px;min-width:0}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:17px}.panel-heading h2{font-size:21px;margin:0;letter-spacing:-.03em;white-space:nowrap}.panel-heading>span{font-size:12px;color:#b9d7f5}.week-panel{background:radial-gradient(ellipse at 95% 0,#665f98 0,transparent 55%),linear-gradient(115deg,#513866,#1b3a5c 50%,#122436);border-color:#93b2d9}.week-panel .panel-heading{justify-content:flex-start}.week-panel h2{color:#ffb5de}.week-step{display:flex;gap:5px;margin-left:auto}.week-step button,.dashboard-month-nav button{width:34px;padding:0;border:1px solid #6581a3;border-radius:8px;background:#20334d;color:white;font-size:23px}.week-report{display:grid;grid-template-columns:1.05fr 1fr;gap:24px;align-items:center}.week-money{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:24px;background:linear-gradient(130deg,#fffaff,#e8f2ff);border:2px solid #131b35;border-radius:17px;color:#1a2642;box-shadow:0 3px 0 #0004}.week-money>div+div{border-left:1px solid #859bc1;padding-left:18px}.week-money span{font-size:15px;font-weight:700}.week-money strong{display:block;font-size:clamp(27px,3.5vw,43px);letter-spacing:-.03em;color:#ed469f;overflow-wrap:anywhere;line-height:1.2;margin:10px 0}.week-money>div+div strong{color:#3979dd}.week-money strong small{font-size:22px}.week-money>div>small{font-size:14px;font-weight:700;color:#617496}.week-progress>span{font-size:13px;color:#c7e7ff}.week-progress>strong{display:block;font-size:27px;margin:5px 0 10px}.week-progress>strong em{font-style:normal;color:#ff93d5}.week-progress>strong small{font-size:14px;font-weight:400;color:#b8d7ee}.game-progress{height:15px;border:1px solid #6083ad;background:#0b1c30;border-radius:20px;overflow:hidden}.game-progress>span{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,#ef4cb2,#bf86f5);box-shadow:inset 0 2px 4px #fff5;transition:width .2s}.week-progress-caption{display:flex;justify-content:space-between;margin:6px 0 14px;color:#bbd5ee;font-size:12px}.week-progress-caption b{color:#ffb7dd}.week-mini-stats{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}.week-mini-stats div+div{border-left:1px solid #4a6484;padding-left:10px}.week-mini-stats span{display:block;font-size:12px;color:#bdd5ed}.week-mini-stats b{display:block;font-size:17px;margin-top:4px}.forecast-note{font-size:11px;margin:14px 0 0;color:#c4d0e9}
.character-filters{display:flex;flex-wrap:wrap;gap:5px}.character-filters button{border:1px solid #4b678a;background:#14263b;border-radius:9px;color:#c5d8f1;padding:6px 10px;font-size:12px}.character-filters button[aria-pressed=true]{background:#fde6f5;color:#6c234e;border-color:#ffb4df}.character-filters b{color:#ee79b8;margin-left:3px}.game-characters{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:13px}.game-character{position:relative;isolation:isolate;text-align:left;border:1px solid var(--job-accent);border-radius:13px;background:#0b1726;color:white;padding:0;overflow:hidden;cursor:pointer;min-height:375px;box-shadow:0 3px 12px #0003;transition:border-color .15s,box-shadow .15s;min-width:0}.game-character:hover{box-shadow:0 0 0 2px var(--job-accent),0 8px 24px #0004}.character-art{position:absolute;inset:0;background-image:linear-gradient(to top,#091625 20%,#0b182bee 40%,#0b182b16 85%),var(--job-image);background-size:cover;background-position:60% top;z-index:-1}.character-identity{padding:18px 16px 14px;min-height:167px;background:linear-gradient(90deg,#0a152a8c,transparent)}.character-level{display:block;color:var(--job-accent);font-size:14px;font-weight:700}.character-identity>strong{display:block;font-size:23px;line-height:1.3;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:5px 0;max-width:100%}.character-identity>span:not(.character-level){display:block;font-size:13px;color:#dce8ff}.state-badge{display:inline-block;background:#2c3452;color:#e7e6fc;border:1px solid #a59dcc66;border-radius:7px;font-size:12px;padding:4px 11px;margin-top:10px}.done .state-badge{color:#14392e;background:#9af5d0}.active .state-badge{background:#ffdc98;color:#382c13}.character-card-bottom{padding:10px 16px 16px}.card-progress-label{display:flex;justify-content:space-between;align-items:center;color:#aacbeb;font-size:12px;margin-bottom:7px}.card-progress-label b{color:#f1f6ff;font-size:20px}.card-progress-label small{font-size:13px;color:#b1c5e2}.game-character .game-progress{height:10px}.game-character .game-progress>span{background:linear-gradient(90deg,#7da2ee,#abddff)}.done .game-progress>span{background:linear-gradient(90deg,#aa87ee,#d0c5ff)}.progress-percent{font-size:11px;color:#cfdef5;text-align:right;margin-top:4px}.card-income{margin-top:7px}.card-income>span{display:block;color:#cdddf3;font-size:12px}.card-income strong{display:block;font-size:27px;line-height:1.25;margin-top:3px;overflow-wrap:anywhere}.card-income strong small{font-size:16px}.card-income>small{font-size:12px;color:#a5cde9}.remaining-income{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:#a4b8d4;margin-top:9px}.remaining-income b{color:#d1e8ff}.character-card-action{display:block;font-size:12px;color:#ffc1e3;margin-top:12px}
.dashboard-month-nav{display:flex;gap:7px;align-items:center;font-size:13px}.monthly-report{display:grid;grid-template-columns:.7fr 1.3fr 1.1fr;gap:22px;align-items:center}.month-total>span{font-weight:700;font-size:16px}.month-total>strong{display:block;font-size:clamp(28px,3.5vw,41px);line-height:1.2;margin:11px 0;overflow-wrap:anywhere}.month-total>strong small{font-size:21px}.month-total>small{display:block;color:#96d4ff;font-size:14px}.income-chart{width:100%;height:auto;display:block}.income-chart text{fill:#dbeaff;font-size:10px;font-family:inherit}.chart-data{font-size:11px;color:#a8c7e4}.chart-data table{width:100%;border-collapse:collapse}.chart-data th,.chart-data td{text-align:left;padding:5px;border-bottom:1px solid #445671}.composition{padding-left:20px;border-left:1px solid #527192;display:flex;gap:15px;align-items:center;flex-direction:column}.income-donut{border-radius:50%;width:126px;height:126px;display:grid;place-items:center;flex:none}.income-donut>span{width:91px;height:91px;display:flex;align-items:center;justify-content:center;flex-direction:column;border-radius:50%;background:#14263e;text-align:center;font-size:11px}.income-donut b{font-size:16px}.composition ul{padding:0;margin:0;list-style:none;width:100%}.composition li{display:flex;align-items:center;gap:7px;font-size:12px;margin:7px 0;white-space:nowrap}.composition li i{width:10px;height:10px;border-radius:4px;flex:none}.composition li b{margin-left:auto}.composition li small{color:#a5c3e0;min-width:28px;text-align:right}
.loot-report{display:grid;grid-template-columns:1.7fr 1fr;gap:20px}.recent-loot-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;min-width:0}.recent-loot-card{text-align:center;background:linear-gradient(#e1d5f0,#f3edfc);border:1px solid #b9cceb;border-radius:11px;color:#18213c;padding:10px 6px;min-width:0}.recent-loot-card>div{height:48px;display:grid;place-items:center;background:#5440681a;border-radius:7px;margin-bottom:8px}.recent-loot-card .item-icon{transform:scale(1.25);image-rendering:pixelated}.recent-loot-card strong{display:block;font-size:12px;min-height:35px;line-height:1.4;overflow-wrap:anywhere}.recent-loot-card>b{display:block;font-size:15px;margin:5px 0}.recent-loot-card small,.recent-loot-card time{display:block;font-size:10px;color:#525f85;overflow-wrap:anywhere}.loot-stats{margin:0;display:flex;flex-direction:column;justify-content:center}.loot-stats>div{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #405570;padding:9px 0;font-size:13px}.loot-stats dt{color:#a9d4f4}.loot-stats dd{margin:0;text-align:right;font-weight:700}.loot-stats dd small{display:block;color:#aabedb;font-weight:400;font-size:10px}.dashboard-bottom{display:grid;grid-template-columns:1fr 1fr;gap:17px}.efficiency-list>button,.boss-overview>button{display:flex;width:100%;gap:10px;align-items:center;background:none;border:0;color:var(--text);padding:10px 0;text-align:left}.efficiency-list>button+button,.boss-overview>button+button{border-top:1px solid #314762}.efficiency-list>button strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.efficiency-list>button>b{font-size:14px;white-space:nowrap}.efficiency-list>button>small{font-size:11px;color:#b3c7df;min-width:28px;text-align:right}.rank-number{border-radius:50%;display:grid;place-items:center;flex:none;width:24px;height:24px;background:#6581a1;color:#0b1626;font-weight:700;font-size:13px}.efficiency-list>button:first-child .rank-number{background:#ffe081}.rank-track{width:85px;height:11px;background:#0d1b2c;border:1px solid #465975;border-radius:20px;overflow:hidden}.rank-track i{display:block;height:100%;background:linear-gradient(90deg,#ef5cad,#ffa7d6);border-radius:20px}.boss-overview>button strong{flex:1;font-size:13px}.boss-overview>button span{color:#b5c8df;font-size:12px}.boss-overview>button b{font-size:14px}.dashboard-empty{padding:28px 15px;text-align:center;color:#bdd1e7;font-size:13px;grid-column:1/-1}.dashboard-empty .button{display:block;margin:14px auto 0}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 20px}.page-heading h2{font-size:25px;margin:5px 0}.settlement-banner{position:relative;padding:25px;border:1px solid #6d89b1;border-radius:16px;background:linear-gradient(120deg,#2f3155,#132c42);margin-bottom:14px;overflow:hidden;min-height:150px}.settlement-banner.illustrated{background-image:linear-gradient(90deg,#15213bf5 35%,#15213b55),var(--job-image);background-size:cover;background-position:center 25%}.settlement-banner h2{margin:7px 0;font-size:29px;overflow-wrap:anywhere}.settlement-banner p{color:#c9ddf4;font-size:13px;margin:0}.detail-progress{display:flex;align-items:center;gap:15px;max-width:420px;margin-top:15px}.detail-progress .game-progress{flex:1}.detail-progress>strong{font-size:13px;white-space:nowrap}.settlement-selector{display:flex;align-items:center;gap:10px;margin-bottom:15px;color:var(--muted);font-size:13px}.settlement-selector select{background:#152a41;color:#f3f6ff;border:1px solid #6887aa;border-radius:8px;padding:9px;max-width:100%}
.loot-ledger{background:linear-gradient(135deg,#172b43,#111e30);border-color:#6284ab}.loot-character-group{border:1px solid #3e597d;background:#15263a;margin-bottom:12px}.loot-character-group>summary{font-size:16px}.loot-ledger-row{background:#20344b}.loot-ledger-boss{gap:16px;align-items:center}.loot-ledger-boss .boss-name-with-icon{font-size:14px}.loot-ledger-boss b{font-size:14px}.boss-loot{grid-template-columns:repeat(3,minmax(0,1fr))}.boss-loot-entry{background:#12263b;border-color:#40516b}.boss-loot label{color:#d0e5fa;font-size:13px}.ledger-boss-completed{display:flex;align-items:center;gap:6px;font-size:12px;color:#a1e6c9;white-space:nowrap}.ledger-boss-completed input{accent-color:#8cf0c0;width:17px;height:17px}.ledger-monthly-heading{color:#ffd1e9}.ledger-monthly-section{border-color:#6d5083}.character-loot-preview{max-width:100%}.item-summary-token{background:#412b3d;border-color:#80627d}.item-summary-token.fixed-reward{background:#1d3d40}.ledger-completion-controls{color:#cee7ff}.loot-price-toggle{color:#c2e5ff}.hunt-editor{grid-column:auto;background:#14273c;border:1px solid #6284ab;border-radius:16px;padding:20px;margin-top:17px}.hunt-character-section{padding:14px;background:#1a3048;border-color:#385c7d}.hunt-character-section>strong{font-size:15px}.income-head{align-items:flex-start}.income-sums{flex-wrap:wrap}.entry-input{height:42px;background:#0c1e30;font-size:15px;border-color:#4b6888}.entry-row.hunt-row,.hunt-input-caption{grid-template-columns:1fr 1fr;gap:12px}.hunt-input-caption{font-size:12px}
.settings-panel,.loot-price-panel{border-color:#5c799c;background:#14273c}.settings-tabs{margin:0 0 12px}.settings-fields{flex-wrap:wrap}.settings-copy{min-width:0}.loot-price-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.loot-price-field{font-size:12px;grid-template-columns:minmax(0,1fr) 105px}.loot-price-field input{width:85px;background:#0c1e30}.character-grid{align-items:start;gap:15px}.character-card{border-color:#57799f;background:#152b41}.character-head{align-items:center}.character-title{font-size:20px}.character-subtitle{font-size:12px}.character-profile-fields{display:grid;grid-template-columns:1fr 90px;gap:12px;margin:14px 0}.character-profile-fields label{color:#c1d8ef;font-size:12px}.character-profile-fields select,.character-profile-fields input{display:block;width:100%;padding:9px;border:1px solid #57759a;border-radius:8px;background:#0e2034;color:white;margin-top:4px;min-height:42px}.boss-tracker{border-color:#456689;background:#142b43}.boss-tracker summary{font-size:14px}.boss-item{background:#1b3550;border-color:#3c597a}.boss-item-head{flex-wrap:wrap}.boss-mode{background:#11263b;border-color:#4a6383}.boss-mode span{font-size:12px}.boss-mode small{font-size:11px}.boss-mode:has(input:checked){background:#4b315b;border-color:#d895bd}.boss-mode input{accent-color:#f187c9}.boss-settings-period-heading{font-size:14px;color:#ffc9e8}.boss-tracker-content{max-height:600px}.boss-clear-info{flex-wrap:wrap}.boss-clear-amount{font-size:12px}.boss-loot-title{font-size:12px}.modal{background:#172840;border-color:#7190b9;width:min(700px,100%);max-height:88dvh}.modal input{background:#0e2033}.modal-actions{background:#172840}.new-boss-row{grid-template-columns:minmax(0,1fr) 125px 80px;gap:8px}.new-boss-row select{height:40px;background:#0d2034}.new-boss-row .boss-name-with-icon{font-size:13px}.modal-profile{display:grid;grid-template-columns:1fr 100px;gap:12px;margin:15px 0}.modal-profile label{font-size:12px;color:#c7d9ee}.modal-profile select,.modal-profile input{width:100%;height:42px;margin-top:5px;padding:8px;border:1px solid #5c789b;border-radius:8px;color:white;background:#0e2033}.modal-job-preview{height:90px;border-radius:10px;margin-top:12px;background-image:linear-gradient(90deg,#15263df2,#15263d22),var(--job-image);background-size:cover;background-position:50% 25%;display:flex;align-items:center;padding:18px;color:#ddedff}.footer{font-size:11px;color:#97afcb;line-height:1.8}.summary-grid{grid-template-columns:1fr 1fr;align-items:start;gap:16px}.summary-card{background:linear-gradient(135deg,#213551,#12263c);border-color:#5578a1;min-height:0}.summary-card.main{background:linear-gradient(135deg,#3d2c53,#1f2c43);border-color:#bf82b1}.summary-workspace{grid-column:1/-1;grid-template-columns:1fr 1fr 110px}.summary-value{font-size:30px;letter-spacing:normal;overflow-wrap:anywhere}.monthly-income-breakdown{display:block;margin:10px 0 0;font-size:12px;line-height:1.8;color:#d2ddef}.month-note{font-size:12px;color:#b5c8dd}.summary-loot{padding-top:14px}.period-controls{gap:12px}.period-box{background:#182e47;border-color:#58789d}.period-field input{background:#0c1e30;min-width:0}.period-field{gap:6px}.period-box .period-field .button{min-width:0;padding:7px 9px}.period-label{font-size:13px}.settings-copy span,.setting-control{font-size:12px}.summary-converted{color:#b9ddff}
.character-art{z-index:0}.character-identity,.character-card-bottom{position:relative;z-index:1}
@media(min-width:1050px){.game-characters{grid-template-columns:repeat(auto-fill,minmax(185px,1fr))}}
@media(max-width:1000px){.monthly-report{grid-template-columns:.8fr 1.2fr}.composition{grid-column:1/-1;flex-direction:row;justify-content:center;border-left:0;border-top:1px solid #4b6887;padding:16px 0 0}.composition ul{max-width:300px}.loot-report{grid-template-columns:1fr}.loot-stats{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.game-characters{grid-template-columns:repeat(3,minmax(0,1fr))}.loot-price-grid{grid-template-columns:1fr 1fr}.top-actions .save-status{display:none}}
@media(max-width:760px){.shell{width:calc(100% - 24px);padding:18px 0 100px}.topbar{margin-bottom:20px}.top-actions{display:none}.brand h1{font-size:30px}.portal-nav:not(.mobile-nav){display:none}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;width:100%;margin:0;border-radius:20px 20px 0 0;z-index:12;background:#0e1b2bef;backdrop-filter:blur(12px);padding:8px 10px max(8px,env(safe-area-inset-bottom));border-color:#6a87a6}.mobile-nav button{display:flex;flex-direction:column;gap:3px;padding:5px;font-size:11px;border-radius:12px}.mobile-nav button span{font-size:23px;margin:0}.dashboard-intro h1{font-size:21px}.dashboard-intro .button{font-size:12px;white-space:nowrap;padding:9px}.dashboard-intro .kicker{font-size:9px}.game-panel{padding:16px;border-radius:14px}.panel-heading{flex-wrap:wrap;gap:8px;margin-bottom:14px}.panel-heading h2{font-size:19px}.panel-heading>span{font-size:11px}.week-report{grid-template-columns:1fr;gap:18px}.week-money{padding:19px;gap:14px}.week-money strong{font-size:37px}.week-money>div+div{padding-left:14px}.week-mini-stats b{font-size:17px}.week-progress>strong{font-size:25px}.week-panel .panel-heading>span{order:3;flex-basis:100%}.week-step{margin-left:auto}.game-characters{display:flex;overflow-x:auto;gap:12px;scroll-snap-type:x mandatory;padding:2px 2px 10px;scrollbar-width:thin}.game-character{flex:0 0 200px;scroll-snap-align:start}.character-panel{padding-right:12px}.character-filters{width:100%}.character-filters button{flex:1;padding:5px;font-size:11px}.monthly-report{grid-template-columns:1fr}.month-total{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}.month-total>strong{font-size:32px;margin:0}.month-total>small{width:100%;font-size:13px}.composition{grid-column:auto}.income-donut{width:110px;height:110px}.income-donut>span{width:78px;height:78px}.income-donut b{font-size:13px}.recent-loot-grid{display:flex;overflow-x:auto;padding-bottom:6px}.recent-loot-card{flex:0 0 115px}.loot-stats{grid-template-columns:1fr}.dashboard-bottom{grid-template-columns:1fr;gap:0}.rank-track{width:65px}.efficiency-list>button{gap:8px}.period-controls{grid-template-columns:1fr}.period-box{padding:12px;grid-template-columns:32px 1fr}.period-field{grid-column:1/-1;width:100%;display:flex;margin-top:8px}.period-field input{flex:1;width:110px}.period-range{padding-left:0}.period-icon{grid-row:span 2}.period-label,.period-hint{grid-column:2}.period-hint{white-space:normal}.loot-ledger{padding:14px 10px}.loot-ledger-head{align-items:flex-start;flex-direction:column}.loot-ledger-head h3{font-size:16px}.loot-character-group>summary{flex-direction:column;align-items:stretch;gap:9px}.loot-ledger-row{grid-template-columns:1fr;gap:10px;padding:12px}.loot-ledger-boss{flex-wrap:wrap;justify-content:space-between;gap:12px}.boss-loot{grid-template-columns:1fr 1fr}.boss-loot label{font-size:12px}.loot-ledger-boss .boss-name-with-icon{font-size:14px}.ledger-completion-controls{flex-wrap:wrap}.character-grid{grid-template-columns:1fr}.character-card{padding:15px}.loot-price-grid{grid-template-columns:1fr}.loot-price-field{grid-template-columns:minmax(0,1fr) 125px}.loot-price-field input{width:105px}.settings-panel{align-items:stretch;flex-direction:column}.settings-fields{align-items:stretch;flex-direction:column;gap:12px}.setting-control{grid-template-columns:1fr 110px}.summary-grid{grid-template-columns:1fr}.summary-workspace{grid-column:auto;grid-template-columns:1fr 1fr}.summary-workspace>.summary-card:not(.hunt-summary){grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;min-height:0}.summary-workspace .hunt-summary{padding:13px}.summary-workspace .hunt-summary .summary-value{font-size:20px}.hunt-editor{padding:15px}.income-head{flex-direction:column;gap:7px}.income-sums{justify-content:flex-start}.new-boss-row{grid-template-columns:minmax(0,1fr) 94px 65px}.new-boss-row .boss-icon{display:none}.modal{padding:18px}.modal-actions{bottom:-18px;margin:14px -18px -18px;padding:12px 18px}.modal-backdrop{padding:10px}.portal-settings-backup{display:flex;gap:10px;margin:20px 0;flex-wrap:wrap}.settlement-banner{padding:20px}.dashboard-month-nav{font-size:12px}.page-heading .button{font-size:12px}.page-heading h2{font-size:23px}}
@media(max-width:380px){.shell{width:calc(100% - 16px)}.game-panel{padding:12px}.dashboard-intro{gap:8px;flex-wrap:wrap}.week-money{padding:13px;gap:10px}.week-money>div+div{padding-left:10px}.week-money strong{font-size:30px}.week-money span{font-size:12px}.week-money>div>small{font-size:12px}.week-mini-stats b{font-size:15px}.panel-heading h2{font-size:17px}.composition{gap:12px}.composition li{font-size:11px}.boss-loot{grid-template-columns:1fr}.loot-ledger-boss .boss-name-with-icon{flex:1;min-width:0}.boss-mode{padding:7px 5px;gap:4px}.boss-mode small{font-size:10px}.boss-modes{grid-template-columns:1fr 1fr}.new-boss-row{grid-template-columns:minmax(0,1fr) 87px 57px;gap:4px}.new-boss-row select{font-size:11px;padding:3px}.new-boss-row .boss-name-with-icon{font-size:11px}.boss-list-filter{align-items:stretch;flex-direction:column}.rank-track{width:45px}.efficiency-list>button>b{font-size:12px}.efficiency-list>button strong{font-size:12px}.hunt-editor-heading{flex-wrap:wrap}.summary-workspace .hunt-summary .summary-value{font-size:18px}.brand-credit{font-size:11px}}
.boss-completion-panel{padding:15px 0 17px;margin-bottom:12px;border-bottom:1px solid #476283}
.boss-completion-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;font-size:14px}.boss-completion-heading>span{color:#abdff6;font-size:12px}
.boss-completion-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.boss-completion-option{display:flex;align-items:center;gap:10px;min-height:62px;padding:10px;border:1px solid #557294;border-radius:10px;background:#102339;cursor:pointer}.boss-completion-option.completed{border-color:#64aa93;background:#1b3c3b}.boss-completion-option input{width:20px;height:20px;flex:none;accent-color:#8de2bd}.boss-completion-option>span:not(.boss-icon){min-width:0}.boss-completion-option strong{display:block;font-size:14px;overflow-wrap:anywhere}.boss-completion-option small{display:block;margin-top:2px;font-size:12px;color:#bdd1e7}.boss-completion-option.completed small{color:#a5f1cc}.boss-completion-panel>p{font-size:12px;color:#bbd0e7;margin:10px 0}.boss-bulk-completion{font-size:12px;color:#adc1dc}.boss-bulk-completion summary{cursor:pointer;padding:5px 0}.boss-bulk-completion label{display:flex;align-items:center;gap:7px;padding:8px}
@media(max-width:760px){.boss-completion-grid{grid-template-columns:1fr 1fr}.boss-completion-option{gap:7px;padding:9px}.boss-completion-option strong{font-size:13px}}
@media(max-width:380px){.boss-completion-grid{grid-template-columns:1fr}}
.ledger-display-controls{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0;color:#adc7e2;font-size:12px}.ledger-display-controls>div{display:flex;gap:7px}
.loot-character-group{align-self:start}.loot-character-group[open]>summary{flex-direction:row;align-items:center;padding-bottom:12px;border-bottom:1px solid #47617f}.loot-character-group[open]>summary .character-loot-preview{display:none}
.ledger-scroll{max-height:min(62vh,580px);max-height:min(62dvh,580px);overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#7792b5 #14263a;scrollbar-gutter:stable;padding-right:6px;overflow-anchor:none}
.ledger-close-bar{padding:10px 0 0;border-top:1px solid #47617f;background:#15263a}.ledger-close-bar button{width:100%;padding:9px;border:1px solid #6982a4;border-radius:8px;background:#243b57;color:#e0edff;font:inherit;font-size:13px;cursor:pointer}.ledger-close-bar button:hover{background:#304d6e}
@media(max-width:760px){.ledger-scroll{max-height:55vh;max-height:55dvh;padding-right:4px}.ledger-display-controls{font-size:11px}.ledger-display-controls>div{width:100%}.ledger-display-controls button{flex:1}.loot-character-group[open]>summary{font-size:15px}}
.character-management-actions{display:flex;gap:9px;margin:0 0 14px}.character-management-actions>.button{flex:1}.button.danger{color:#ffb5c2;border-color:#85526a;background:#392a3c}.button.danger:hover{background:#503045}
.game-character-wrapper{min-width:0;display:flex;flex-direction:column;gap:8px}.game-character-wrapper>.game-character{width:100%;flex:1}.home-character-actions{display:flex;gap:6px}.home-character-actions button{background:#1e344e;border:1px solid #6881a3;border-radius:8px;color:#dceaff;padding:7px 9px;font-size:12px;cursor:pointer}.home-character-actions button:first-child{flex:1}.home-character-actions button:last-child{color:#ffb5c2;border-color:#85526a;background:#392a3c}
@media(max-width:760px){.game-character-wrapper{flex:0 0 200px;scroll-snap-align:start}.game-character-wrapper>.game-character{flex:1 0 auto;scroll-snap-align:none}}
.boss-completion-option{display:block;cursor:default}.boss-completion-option.unconfigured{background:#112033;border-color:#3c5572}.boss-quick-status{display:flex;align-items:center;gap:9px;cursor:pointer}.boss-quick-status>span:not(.boss-icon){min-width:0}.boss-quick-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}.boss-quick-fields label{font-size:11px;color:#abc5df}.boss-quick-fields select{display:block;width:100%;min-height:36px;margin-top:3px;padding:5px 7px;background:#0d2035;color:#e4f0ff;border:1px solid #5b7697;border-radius:7px;font-size:13px}.boss-quick-fields select:disabled{color:#7790ac;border-color:#344b66}.boss-quick-status input:disabled{opacity:.4;cursor:not-allowed}.ledger-party-control{display:flex;align-items:center;gap:5px;font-size:12px;color:#abc5df;white-space:nowrap}.ledger-party-control select{min-height:35px;padding:5px;background:#12283e;color:#e6f1ff;border:1px solid #6583a5;border-radius:7px;font-size:13px}
/* Compact cards and settlement controls. Reward tiles keep their natural height. */
.game-panel{padding:16px;margin-bottom:13px}.panel-heading{margin-bottom:12px}.dashboard-intro{margin-bottom:16px}.week-money{padding:18px;grid-template-columns:1fr}.week-report{gap:18px}
.game-character-wrapper{position:relative;gap:0}.game-character-wrapper>.game-character{min-height:310px}.character-identity{min-height:130px;padding:14px 40px 10px 13px}.character-card-bottom{padding:8px 13px 12px}.state-badge{margin-top:7px}.character-card-action{margin-top:8px}
.home-character-remove{position:absolute;top:7px;right:7px;z-index:3;display:grid;place-items:center;width:30px;height:30px;min-height:30px;padding:0;border:1px solid #b2c4df66;border-radius:8px;background:#0b1726d9;color:#c5d5e9;font-size:22px;line-height:1;cursor:pointer}.home-character-remove:hover{background:#593048;color:#ffd1de;border-color:#ee92b3}.home-character-remove:focus-visible{outline-offset:2px}
.boss-completion-panel{padding:10px 0;margin-bottom:8px}.boss-completion-heading{margin-bottom:8px}.boss-completion-grid{gap:6px}.boss-completion-option{display:grid;grid-template-columns:minmax(0,1fr) 148px;align-items:center;gap:7px;min-height:52px;padding:7px 8px;border-radius:8px}.boss-quick-status{gap:6px;min-width:0}.boss-quick-status input{width:18px;height:18px;margin:0}.boss-completion-option strong{font-size:13px;line-height:1.35}.boss-completion-option small{font-size:11px;line-height:1.3;margin-top:1px}.boss-quick-fields{grid-template-columns:minmax(0,1fr) 56px;gap:5px;margin:0;min-width:0}.boss-quick-fields label{font-size:0;min-width:0}.boss-quick-fields select{margin:0;min-height:32px;height:32px;padding:3px;font-size:12px;border-radius:6px}.boss-completion-panel>p{margin:7px 0;font-size:11px}
.loot-character-group{margin-bottom:8px;padding:10px}.loot-character-group[open]>summary{padding-bottom:8px}.loot-character-group .loot-ledger-row{column-gap:18px;row-gap:7px;padding:8px;margin-top:6px}.ledger-boss-rewards .boss-loot{display:flex;flex-wrap:wrap;align-items:flex-start;gap:5px;margin-top:6px}.boss-loot-entry{flex:0 1 auto;align-self:flex-start;width:auto;max-width:100%;height:auto;min-height:0;padding:6px 8px}.ledger-boss-rewards .boss-loot label{font-size:13px;min-height:0}.boss-loot-entry>label{align-items:center}.boss-loot-entry>label>span{min-width:0;overflow-wrap:anywhere}.boss-loot-entry:has([data-boss-loot]:not(:checked)) .loot-quantity-field{display:none}.boss-loot-meta{margin:3px 0;font-size:11px}.ledger-boss-rewards .boss-loot .loot-quantity-field{margin-top:4px;align-items:center;font-size:12px}.boss-loot-title{margin:6px 2px 4px}.ledger-close-bar{padding-top:7px}.ledger-close-bar button{padding:6px;min-height:34px}.ledger-fixed-item{gap:4px}.ledger-party-control select{min-height:32px;padding:3px}
@media(max-width:1050px){.boss-completion-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.game-panel{padding:13px}.game-character-wrapper>.game-character{min-height:300px}.boss-completion-option{grid-template-columns:minmax(0,1fr) 142px}.boss-quick-fields{grid-template-columns:minmax(0,1fr) 53px}.loot-character-group .loot-ledger-row{grid-template-columns:1fr}.loot-ledger-boss{gap:9px}.ledger-boss-rewards .boss-loot{gap:5px}.character-identity{min-height:122px}}
@media(max-width:640px){.boss-completion-grid{grid-template-columns:1fr}.boss-completion-option{min-height:48px}.home-character-remove{width:32px;height:32px;min-height:32px}.loot-character-group{padding:8px}.loot-character-group .loot-ledger-row{padding:7px}.loot-ledger{padding:12px 8px}}
.black-mage-status-panel{border-color:#806ba6}.black-mage-status-panel .panel-heading{flex-wrap:wrap;gap:8px}.black-mage-status-panel h2{font-size:18px}.black-mage-status-groups{display:flex;gap:10px;flex-wrap:wrap}.black-mage-status-group{flex:1 1 220px;min-width:0;padding:9px 10px;border:1px solid #486582;border-radius:9px;background:#10243a}.black-mage-status-group h3{margin:0 0 7px;font-size:13px}.black-mage-status-group h3 span{font-size:11px;font-weight:400;margin-left:5px}.black-mage-status-group>div{display:flex;gap:5px;flex-wrap:wrap}.black-mage-status-group button{display:inline-flex;align-items:center;gap:7px;min-height:32px;max-width:100%;padding:5px 8px;border:1px solid #526c8b;border-radius:7px;background:#21344d;color:#deebff;cursor:pointer}.black-mage-status-group button strong{font-size:12px;overflow-wrap:anywhere}.black-mage-status-group button small{font-size:11px;white-space:nowrap;color:#bfcee2}.black-mage-status-group.done{border-color:#568f7d}.black-mage-status-group.done h3{color:#9eefd0}.black-mage-status-group.pending h3{color:#ffd594}.black-mage-status-group.unset h3,.black-mage-status-empty{color:#adc2dc}.black-mage-status-empty{font-size:12px}.black-mage-status-group button:hover{background:#314766}
@media(max-width:640px){.black-mage-status-group{flex-basis:100%}.black-mage-status-panel h2{font-size:16px}.black-mage-status-panel .dashboard-month-nav{margin-left:auto}}
.black-mage-income-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}.black-mage-income-summary>div{padding:10px 12px;border:1px solid #5d577b;border-radius:9px;background:#19283e;min-width:0}.black-mage-income-summary span{display:block;font-size:12px;color:#c9d9ef}.black-mage-income-summary strong{display:block;font-size:23px;color:#abeed8;overflow-wrap:anywhere;line-height:1.4}.black-mage-income-summary>div+div strong{color:#ffdb9b}.black-mage-income-summary strong small{font-size:14px;margin-left:3px}.black-mage-income-summary>div>small{display:block;font-size:11px;color:#b2c6df}.remaining-income{flex-wrap:wrap}
@media(max-width:380px){.black-mage-income-summary{gap:6px}.black-mage-income-summary>div{padding:8px}.black-mage-income-summary strong{font-size:19px}.black-mage-income-summary>div>small{font-size:10px}}
.home-hunt-editor{padding:12px;margin:0 0 13px;border-radius:13px}.home-hunt-editor .hunt-editor-heading{margin-bottom:8px;flex-wrap:wrap;gap:8px}.home-hunt-editor .hunt-editor-heading h3{font-size:16px}.home-hunt-editor #hunt-editor-date{display:none}.home-hunt-date{display:block;padding:0;border:0;background:none;border-radius:0;margin:0}.home-hunt-date>:not(.period-field){display:none}.home-hunt-date .period-field{display:flex;align-items:center;gap:5px;margin:0}.home-hunt-date .period-field input{width:132px;min-width:0;height:32px;padding:3px 6px;font-size:12px}.home-hunt-date .period-field button{height:32px;min-height:32px;padding:3px 8px;font-size:12px}.home-hunt-editor #hunt-character-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:7px;max-height:260px;overflow-y:auto;scrollbar-gutter:stable}.home-hunt-editor .hunt-character-section{padding:8px;border-radius:8px;min-width:0}.home-hunt-editor .hunt-character-section>strong{font-size:13px}.home-hunt-editor .income-section{margin-top:4px}.home-hunt-editor .income-head{gap:4px;margin-bottom:5px}.home-hunt-editor .income-name{display:none}.home-hunt-editor .income-sums{gap:4px 8px;font-size:11px}.home-hunt-editor .income-sums>span{font-size:11px}.home-hunt-editor .hunt-input-caption{font-size:11px;margin-bottom:3px}.home-hunt-editor .entry-row.hunt-row{gap:8px}.home-hunt-editor .entry-input{height:32px;padding:4px 7px;font-size:13px}.portal-page .period-controls{grid-template-columns:1fr}
@media(max-width:640px){.home-hunt-editor #hunt-character-grid{grid-template-columns:1fr;max-height:230px}.home-hunt-date{margin-left:auto}.home-hunt-editor .hunt-editor-heading h3{font-size:14px}.home-hunt-editor{padding:10px}}
.game-characters{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:12px;padding:3px 3px 10px;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#7897b9 #11243a;align-items:stretch}.game-character-wrapper{flex:0 0 calc((100% - 36px)/4);min-width:190px;scroll-snap-align:start}.game-character-wrapper>.game-character{flex:1 0 auto}.character-scroll-controls{display:flex;justify-content:flex-end;gap:5px;margin:-4px 0 6px}.character-scroll-controls button{width:30px;min-height:30px;padding:0;border:1px solid #6581a3;border-radius:7px;background:#20334d;color:#e3efff;font-size:21px;cursor:pointer}.game-characters:focus-visible{outline:2px solid #9ddeff;outline-offset:3px;border-radius:10px}.week-revenue-panel{background:linear-gradient(135deg,#1b304b,#101d2e 70%);border-color:#6284ad}.week-revenue-panel h2{color:#f1f5ff}.week-completion-strip{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;border-top:1px solid #476181;padding-top:12px;margin-top:14px;font-size:12px;color:#bcd2eb}.week-completion-strip>span b{color:#edf5ff;margin-left:5px}.week-completion-strip>.game-progress{flex:1;min-width:100px;max-width:250px;height:10px}.week-completion-strip>b{color:#ffb5de}
@media(max-width:1000px){.game-character-wrapper{flex-basis:calc((100% - 24px)/3)}}
@media(max-width:760px){.game-character-wrapper{flex:0 0 200px}.week-completion-strip{gap:8px 12px;font-size:11px}.week-completion-strip>.game-progress{max-width:none}.week-completion-strip>span:nth-last-child(2){flex-basis:65%}}
.home-hunt-editor #hunt-character-grid{display:flex;flex-wrap:nowrap;gap:7px;max-height:none;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scrollbar-gutter:auto;scrollbar-width:thin;scrollbar-color:#7897b9 #11243a;padding-bottom:8px;align-items:stretch}.home-hunt-editor .hunt-character-section{flex:0 0 calc((100% - 21px)/4);min-width:260px;scroll-snap-align:start}.home-hunt-editor #hunt-character-grid>.empty-entries{flex:1;min-width:100%}.home-hunt-editor #hunt-character-grid:focus-visible{outline:2px solid #9ddeff;outline-offset:2px;border-radius:8px}
@media(max-width:1000px){.home-hunt-editor .hunt-character-section{flex-basis:calc((100% - 14px)/3)}}
@media(max-width:640px){.home-hunt-editor .hunt-character-section{flex:0 0 260px}}
.character-art{background-image:linear-gradient(to top,#091625 28%,#0b182bc9 54%,#0b182b55 100%),linear-gradient(90deg,#091625b3,transparent 85%),var(--job-image);background-position:center top}.character-identity{background:linear-gradient(90deg,#0a152a70,transparent)}.settlement-banner.illustrated{background-image:linear-gradient(90deg,#15213bf5 35%,#15213b77),var(--job-image)}.footer a{color:#b6cce8}
/* Home polish: keep the existing palette, artwork files and single-row cards. */
.shell{width:min(1280px,calc(100% - 48px));margin-inline:auto}.character-panel .panel-heading{flex-wrap:wrap;gap:12px}.character-panel .character-filters{margin-left:auto}.character-scroll-controls{margin:0;align-items:center}.game-characters{gap:12px;padding:3px 3px 10px}.game-characters[data-card-count="1"],.game-characters[data-card-count="2"],.game-characters[data-card-count="3"]{justify-content:center}.game-characters[data-card-count="1"]>.game-character-wrapper{flex:0 0 100%;max-width:520px}.game-characters[data-card-count="2"]>.game-character-wrapper{flex:0 0 calc((100% - 12px)/2);max-width:480px}.game-characters[data-card-count="3"]>.game-character-wrapper{flex:0 0 calc((100% - 24px)/3);max-width:none}.game-character-wrapper>.game-character{min-height:335px}.character-art{background-image:linear-gradient(to top,#091625 4%,#091625f5 25%,#091625ad 45%,#09162518 70%,#09162508 100%),var(--job-image);background-size:cover;background-position:center 15%}.character-identity{min-height:145px;background:linear-gradient(90deg,#081528b8 0%,#08152870 45%,transparent 85%);text-shadow:0 2px 5px #000c}.character-identity>strong{font-size:24px;line-height:1.35}.character-level{color:var(--job-accent)}.character-identity>span:not(.character-level){color:#f0f5ff}.character-card-bottom{background:linear-gradient(to bottom,#09162544,#091625dd 65%);text-shadow:0 1px 3px #0009}.game-character:hover{box-shadow:0 0 0 2px var(--job-accent),0 6px 18px #0004}
.modal-backdrop{z-index:30}
.modal-job-field{min-width:0}.modal-job-field>label{color:#c7d9ee;font-size:12px}.job-picker{position:relative;margin-top:5px}.job-search-field{display:flex;align-items:center;gap:7px;border:1px solid #5c789b;border-radius:8px;background:#0e2033;padding:0 9px}.job-search-field:focus-within{border-color:#f397d0;outline:2px solid #e594cb;outline-offset:1px}.job-search-field>span{font-size:23px;color:#b6cce8}.modal-profile .job-search-field input{height:40px;min-height:40px;margin:0;padding:7px 0;flex:1;min-width:0;border:0;background:transparent;outline:0;box-shadow:none;font-size:13px}.job-picker-selection{margin-top:5px;color:#aee7ff;font-size:11px;min-height:17px}.job-picker-results{position:absolute;top:44px;left:0;right:0;z-index:5;max-height:min(220px,32dvh);overflow-y:auto;overscroll-behavior:contain;padding:5px;border:1px solid #7f9cbd;border-radius:8px;background:#10263d;box-shadow:0 9px 24px #0007;scrollbar-width:thin;scrollbar-color:#8497b6 #15283f}.job-picker-group{padding:5px 8px;font-size:11px;color:#b5c8e1;font-weight:700}.job-picker-results [role=option]{display:block;width:100%;min-height:32px;padding:6px 10px;border:0;border-radius:5px;text-align:left;background:transparent;color:#e6efff;font-size:13px;cursor:pointer}.job-picker-results [role=option]:hover,.job-picker-results [role=option].active{background:#355270;color:#fff}.job-picker-results [role=option][aria-selected=true]{color:#ffb5dc;box-shadow:inset 3px 0 #f58cc8}.job-picker-empty{padding:13px 8px;color:#bfd1e6;font-size:12px}.modal{scrollbar-width:thin;scrollbar-color:#8195b4 #14263c;overscroll-behavior:contain}.modal-job-preview{margin-top:8px}
@media(min-width:761px){.character-panel:has(.game-characters[data-card-count="1"]) .character-scroll-controls,.character-panel:has(.game-characters[data-card-count="2"]) .character-scroll-controls,.character-panel:has(.game-characters[data-card-count="3"]) .character-scroll-controls{display:none}}
@media(max-width:760px){.shell{width:calc(100% - 24px)}.character-panel .character-filters{margin-left:0;width:auto;flex:1;min-width:210px}.character-scroll-controls{margin-left:auto}.game-characters[data-card-count="1"],.game-characters[data-card-count="2"],.game-characters[data-card-count="3"]{justify-content:flex-start}.game-characters[data-card-count]>.game-character-wrapper{flex:0 0 210px;min-width:210px;max-width:210px}.game-character-wrapper>.game-character{min-height:310px}.character-identity{min-height:130px}.character-identity>strong{font-size:22px}.modal-profile{grid-template-columns:minmax(0,1fr) 85px;gap:9px}.modal-job-preview{height:76px}.job-picker-results{max-height:min(190px,30dvh)}}
@media(max-width:380px){.shell{width:calc(100% - 16px)}.character-panel .character-filters{min-width:0;width:100%;flex-basis:100%}.modal-profile{grid-template-columns:minmax(0,1fr) 68px}.modal-profile .job-search-field input{font-size:12px}.job-search-field{gap:4px;padding-inline:6px}}
.home-card-loot{margin-top:9px;padding-top:7px;border-top:1px solid #61728b66}.home-loot-caption{display:block;font-size:11px;color:#bdd4ef;margin-bottom:5px}.home-card-loot .item-summary{max-height:88px;overflow-y:auto;scrollbar-width:thin;padding-right:2px}.home-card-loot .item-summary-token{padding:3px 5px;gap:4px;font-size:11px}.home-card-loot .item-icon{width:25px;height:25px;flex-basis:25px}.home-card-loot .item-summary-price{font-size:10px}.home-card-loot .item-summary-empty{font-size:11px}.home-period-loot{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0 12px}.home-period-loot .home-loot-caption{margin:0;flex:none}.home-period-loot .item-summary{flex:1;min-width:0;max-height:88px;overflow-y:auto;scrollbar-width:thin}.home-period-loot .item-summary-empty{font-size:12px}.home-period-loot .item-summary-token{padding:3px 6px}
.week-revenue-panel>.home-period-loot>.loot-price-toggle{margin:0 0 0 auto;font-size:12px;max-width:100%;color:#cce5ff}.week-revenue-panel>.home-period-loot>.item-summary,.week-revenue-panel>.home-period-loot>.item-summary-empty{flex-basis:100%}.week-revenue-panel .loot-price-toggle input{accent-color:#f58acb}
@media(max-width:640px){.week-revenue-panel>.home-period-loot>.loot-price-toggle{margin-left:0;font-size:11px}}
.character-drawer{position:fixed;inset:16px 16px 16px auto;margin:0;width:min(760px,56vw);height:calc(100dvh - 32px);max-width:calc(100vw - 32px);max-height:none;padding:0;border:1px solid #7996bd;border-radius:16px;background:#102239;color:#eef5ff;box-shadow:0 18px 70px #0008;overflow:hidden}.character-drawer[open]{display:flex;flex-direction:column}.character-drawer::backdrop{background:#050c1966;backdrop-filter:blur(1px)}.character-drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 18px 10px;border-bottom:1px solid #405b7a}.character-drawer-head h2{font-size:23px;line-height:1.4;margin:4px 0;overflow-wrap:anywhere}.character-drawer-head p{font-size:12px;color:#bcd4ed;margin:0}.drawer-close{flex:none;width:36px;height:36px;min-height:36px;padding:0;border:1px solid #647f9f;border-radius:9px;background:#243d58;color:#ecf5ff;font-size:24px;cursor:pointer}.drawer-period-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 16px;font-size:11px;color:#c5d9ef}.drawer-period-controls button{min-height:30px;padding:4px 8px;border:1px solid #567496;border-radius:7px;background:#20364f;color:#ddecff;font-size:12px;cursor:pointer}.character-drawer-body{flex:1;min-height:0;overflow:auto;padding:10px 14px 14px;scrollbar-width:thin;scrollbar-color:#7997b9 #12243a;overflow-anchor:none;overscroll-behavior:contain}.character-drawer .loot-ledger{margin:0;padding:0;background:none;border:0}.character-drawer .loot-ledger-head,.character-drawer .ledger-display-controls,.character-drawer .loot-character-group>summary{display:none}.character-drawer .loot-character-group{margin:0;border:0;padding:0;background:none}.character-drawer .ledger-scroll{max-height:none;overflow:visible;padding-right:0;scrollbar-gutter:auto}.character-drawer .boss-completion-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.character-drawer .loot-character-group .loot-ledger-row{grid-template-columns:1fr}.character-drawer .ledger-close-bar{position:sticky;bottom:-14px;z-index:2;padding:8px 0 14px;background:#102239}.character-drawer .boss-completion-panel{padding-top:0}
@media(max-width:1000px){.character-drawer{width:min(720px,80vw)}}
@media(max-width:640px){.character-drawer{inset:8px;width:calc(100vw - 16px);height:calc(100dvh - 16px);max-width:none;border-radius:12px}.character-drawer-head{padding:12px}.character-drawer-head h2{font-size:20px}.character-drawer-body{padding:8px 10px 10px}.character-drawer .boss-completion-grid{grid-template-columns:1fr}.drawer-period-controls{padding:8px 10px;flex-wrap:wrap}.drawer-period-controls>span{order:3;flex-basis:100%;text-align:center}.character-drawer .ledger-close-bar{bottom:-10px;padding-bottom:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Collapse the quick boss list while leaving acquisition controls visible below. */
details.boss-completion-panel>summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;min-height:36px;margin:0;user-select:none}
details.boss-completion-panel>summary::-webkit-details-marker{display:none}
details.boss-completion-panel>summary strong{flex:1}
details.boss-completion-panel>summary>span{flex:none}
details.boss-completion-panel>summary .boss-list-toggle{color:#ffb6dd;font-size:12px}
.boss-list-toggle::after{content:"펼치기 ▾"}
details.boss-completion-panel[open] .boss-list-toggle::after{content:"접기 ▴"}
details.boss-completion-panel[open]>summary{margin-bottom:8px}
details.boss-completion-panel>summary:focus-visible{outline:2px solid #ff94ce;outline-offset:3px;border-radius:6px}
@media(max-width:380px){details.boss-completion-panel>summary{flex-wrap:wrap;gap:6px}details.boss-completion-panel>summary strong{flex-basis:100%}}

details.boss-completion-panel>summary .boss-list-toggle{display:inline-flex;align-items:center;justify-content:center;min-width:86px;min-height:36px;padding:7px 12px;border:1px solid #ff91cf;border-radius:9px;background:linear-gradient(135deg,#ffb8dc,#f680c4);color:#30142a;font-size:13px;font-weight:800;box-shadow:0 2px 8px #0003}
details.boss-completion-panel>summary:hover .boss-list-toggle{filter:brightness(1.1)}
.loot-report .recent-loot-grid{max-height:360px;overflow:auto;align-content:start;scrollbar-width:thin}

.home-workspace{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:14px;align-items:start;margin-bottom:14px}
#home-character-slot,#home-hunting-slot{min-width:0}
.home-workspace .character-panel{margin-bottom:0}
.home-workspace .game-characters[data-card-count]>.game-character-wrapper{flex:0 0 calc((100% - 24px)/3);min-width:210px;max-width:none}
.home-workspace .character-scroll-controls{display:flex!important}
.home-workspace .character-panel .panel-heading{gap:9px}
#home-hunting-slot .home-hunt-editor{margin:0;padding:12px;border-radius:14px}
#home-hunting-slot .hunt-editor-heading{flex-wrap:wrap;gap:7px;margin-bottom:9px}
#home-hunting-slot .hunt-editor-heading h3{font-size:15px}
#home-hunting-slot #hunt-editor-date{display:none}
#home-hunting-slot .home-hunt-date{width:100%;padding:0;background:none;border:0;min-height:0;gap:5px}
#home-hunting-slot .home-hunt-date>.period-icon,#home-hunting-slot .home-hunt-date>.period-copy{display:none}
#home-hunting-slot .home-hunt-date input{min-width:0;width:120px;font-size:12px}
#home-hunting-slot .home-hunt-date button{min-height:30px;padding:4px 7px}
#home-hunting-slot #hunt-character-grid{display:flex;flex-direction:column;max-height:430px;overflow-y:auto;overflow-x:hidden;gap:7px;padding:0 3px 0 0;scroll-snap-type:none}
#home-hunting-slot .hunt-character-section{flex:none;min-width:0;width:100%;padding:9px}
#home-hunting-slot .hunt-character-section input{min-height:32px;height:32px}
.card-black-mage{display:flex;justify-content:space-between;align-items:center;gap:6px;margin:0 0 12px;padding:7px 8px;border:1px solid #738cac;border-radius:8px;background:#14283bd9;font-size:11px;color:#d5e6f8}
.card-black-mage.done{border-color:#69bb9b;color:#a7f4d2;background:#17382edd}
.card-black-mage.pending b{color:#ffc9df}
.card-black-mage.unset{color:#b1c1d6}
.card-month-selector{display:flex;align-items:center;gap:6px;color:#c6ddf3;font-size:11px}
.card-month-selector button{padding:2px 7px;min-height:26px;border:1px solid #6685a9;background:#20364f;color:#fff;border-radius:6px;cursor:pointer}
@media(max-width:1000px){.home-workspace{grid-template-columns:minmax(0,1fr) 280px}.home-workspace .game-characters[data-card-count]>.game-character-wrapper{flex-basis:calc((100% - 12px)/2)}}
@media(max-width:760px){.home-workspace{grid-template-columns:1fr;gap:12px}.home-workspace .game-characters[data-card-count]>.game-character-wrapper{flex:0 0 210px;max-width:210px}#home-hunting-slot #hunt-character-grid{max-height:260px}#home-hunting-slot .home-hunt-date{width:auto}.card-month-selector{margin-left:auto}}

#page-stats .summary-workspace{grid-template-columns:minmax(0,1fr) 90px}
#page-settings #loot-settings{margin-top:16px}
.composition li>span{overflow-wrap:anywhere}

.monthly-week-stats{margin-top:20px;padding-top:16px;border-top:1px solid #4c6687}.monthly-week-stats h3{margin:0 0 8px;font-size:17px}.monthly-week-stats p{font-size:12px;line-height:1.6;color:#bfd3eb;margin:0 0 12px}.monthly-week-scroll{overflow-x:auto;scrollbar-width:thin}.monthly-week-stats table{width:100%;min-width:680px;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}.monthly-week-stats th,.monthly-week-stats td{padding:12px 10px;border-bottom:1px solid #3e5573;text-align:right;white-space:nowrap}.monthly-week-stats th:first-child{text-align:left}.monthly-week-stats thead{background:#203752;color:#bddff6}.monthly-week-stats tbody th{font-weight:600;color:#e0edfb}.monthly-week-stats small{display:block;color:#b6cce6;font-size:11px;margin-top:4px}.monthly-week-stats tfoot{background:#37263f;color:#ffd1e9;font-weight:700}.monthly-black-row{background:#1d2d43}

.hunt-breakdown{display:inline-block;margin-left:6px;font-size:11px;font-weight:400;color:#bfdef2;line-height:1.6;white-space:normal}
.composition li:has(.hunt-breakdown){grid-template-columns:10px minmax(0,1fr) auto}
.composition li:has(.hunt-breakdown)>b{grid-column:2;grid-row:2;text-align:left}
.composition li:has(.hunt-breakdown)>small{grid-column:3;grid-row:1 / span 2}
.monthly-week-stats .hunt-breakdown{white-space:nowrap}

.loot-price-category{grid-column:1/-1;display:flex;align-items:center;gap:10px;margin:16px 0 3px;padding:10px 12px;border-left:3px solid #f28ac9;border-radius:6px;background:#243650;color:#f5d5eb;font-size:16px;line-height:1.4}
.auto-calculated-materials{grid-column:1/-1;min-width:0;margin:8px 0;border:1px solid #4d6584;border-radius:10px;background:#102339;overflow:hidden}
.auto-calculated-materials>summary{display:flex;list-style:none;cursor:pointer;user-select:none;margin:0;border:0;border-left:3px solid #8e9cb1;border-radius:0;background:#1a2b42;color:#d7e2f1}
.auto-calculated-materials>summary::-webkit-details-marker{display:none}
.auto-calculated-materials>summary:after{content:'＋';margin-left:auto;font-size:15px;color:currentColor}
.auto-calculated-materials[open]>summary:after{content:'−'}
.auto-calculated-materials .loot-price-category-items{padding:10px 12px 12px}
.loot-price-category small{color:#b9cee5;font-size:11px;font-weight:400}
.loot-price-label{display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0}
.loot-price-title-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:32px;color:#e5eef9;font-weight:700;line-height:1.4}
.loot-price-title-row>span:first-child{min-width:0;overflow-wrap:anywhere}
.loot-price-title-row>.item-icon,.loot-price-kind-icon{flex:0 0 32px;width:32px;height:32px;box-sizing:border-box;border:1px solid #526c8b;border-radius:7px;background-color:#20354e;background-position:center;background-repeat:no-repeat;background-size:contain}
.loot-price-kind-icon{padding:2px}
.loot-price-no-listing{display:block;margin-top:2px;color:#bfd0e3;font-size:11px}

.linked-price-note{display:block;margin-top:4px;color:#a9d9f1;font-size:11px;line-height:1.5}

.price-settings-guide{grid-column:1/-1;padding:9px 12px;border:1px solid #4d6584;border-radius:8px;background:#102339;color:#c1d7ef;font-size:12px;line-height:1.6}
.price-settings-guide summary{cursor:pointer;color:#d9eaff;font-weight:600}.price-settings-guide p{margin:10px 0 0}
@media(max-width:380px){.character-drawer .boss-completion-option{grid-template-columns:1fr;gap:6px}.character-drawer .boss-quick-status{display:flex;align-items:center}.character-drawer .boss-quick-status>span:last-child{flex:1;min-width:0}.character-drawer .boss-quick-fields{display:grid;grid-template-columns:minmax(0,1fr) 72px}.character-drawer .boss-completion-option strong{font-size:13px}}


.black-mage-quick-fields{display:grid;grid-template-columns:minmax(0,1fr) 90px;gap:10px;margin:10px 0;font-size:12px;color:#c5d9ee}.black-mage-quick-fields label{display:grid;gap:5px}.black-mage-quick-fields select{width:100%;min-width:0;height:34px;padding:5px;border:1px solid #6787a6;border-radius:7px;background:#14283e;color:#edf5ff}

.boss-all-completion{display:flex;align-items:center;gap:10px;margin:0 0 12px;padding:10px 12px;border:1px solid #5d7898;border-radius:8px;background:#19314a;color:#e2efff;font-size:13px;font-weight:600;cursor:pointer}
.boss-all-completion input{width:19px;height:19px;flex:none;margin:0;accent-color:#8de2bd}.boss-all-completion small{display:block;margin-top:3px;color:#bbd0e8;font-size:11px;font-weight:400}
.boss-all-completion:has(input:checked){border-color:#6bb99c;background:#1b3b36}.boss-all-completion:has(input:disabled){opacity:.65;cursor:default}

.weekly-compact-total{display:flex;align-items:baseline;flex-wrap:wrap;gap:10px;margin:10px 0 12px}.weekly-compact-total>span{color:#c8daee;font-size:13px}.weekly-compact-total>strong{font-size:32px}.weekly-compact-total>strong small{font-size:16px}.weekly-compact-total>small{color:#b4daef}
.weekly-graphs>summary{cursor:pointer;color:#b8d6ef;font-size:12px;padding:8px 0}.weekly-graphs .monthly-report{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);padding-top:8px}.chart-empty{padding:30px 12px;text-align:center;color:#b7cfe8;font-size:13px;line-height:1.8}.table-empty{text-align:center!important;color:#bdd3eb}
.boss-list-mode{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px;font-size:12px;color:#bbd2e9}.boss-list-mode button{font-size:12px}
.drawer-period-controls{border-bottom:1px solid #354e6d;margin-bottom:8px}
.storage-guide{margin:0 0 16px;padding:14px;border:1px solid #536c8e;border-radius:12px;background:#172b43;font-size:13px;line-height:1.7;color:#c8ddf2}.storage-guide>strong{color:#e7f3ff}.storage-guide p{margin:7px 0}.storage-guide ol{padding-left:21px;margin:9px 0}.storage-guide small{color:#b7cbe3;font-size:11px}.item-summary-price{max-width:200px;white-space:normal}
@media(max-width:760px){#page-home{display:flex;flex-direction:column}#page-home[hidden]{display:none}#home-before-hunting{display:contents}.dashboard-intro{order:0}.home-workspace{order:1}.week-revenue-panel{order:2}#home-after-hunting{order:3}.weekly-graphs .monthly-report{grid-template-columns:1fr}.weekly-compact-total>strong{font-size:27px}.drawer-period-controls{font-size:10px}.storage-guide{font-size:12px}.item-summary-token{max-width:100%}}

/* Keep the same rows aligned across cards regardless of reward count. */
.game-character-wrapper>.game-character{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;height:100%}
.game-character .character-identity{height:155px;min-height:155px;flex:none}
.character-identity>strong{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.game-character .character-card-bottom{display:flex;flex-direction:column;flex:1;min-height:0}
.game-character .card-income{height:82px;flex:none}
.game-character .remaining-income{height:24px;min-height:24px;line-height:1.5;margin:0;font-size:11px}
.empty-remaining{visibility:hidden}
.game-character .home-card-loot{flex:none;margin-top:6px;min-height:78px}
.home-card-loot .item-summary{display:flex;flex-wrap:nowrap;align-items:center;width:100%;max-height:none;min-height:48px;overflow-x:auto;overflow-y:hidden;padding:0 0 5px;gap:5px;scrollbar-width:thin;overscroll-behavior-x:contain}
.home-card-loot .item-summary-token{flex:none;white-space:nowrap;border-color:#614a64;background:#372638;padding:4px 6px}
.home-card-loot .item-summary-price{white-space:nowrap;font-size:10px;max-width:none}
.game-character .character-card-action{margin-top:auto;padding-top:8px}
.drawer-section-nav{display:flex;gap:7px;padding:0 14px 9px;flex:none}
.drawer-section-nav button{flex:1;min-height:32px;border:1px solid #6986a7;border-radius:8px;background:#1c354f;color:#d9eaff;font-size:12px;font-weight:600;cursor:pointer}
.drawer-section-nav button[aria-pressed=true]{background:#41304d;border-color:#ed91c7;color:#ffd1ec}
.drawer-section-nav button:hover{filter:brightness(1.12)}
@media(max-width:760px){.game-character .character-identity{height:140px;min-height:140px}.drawer-section-nav{padding:0 10px 7px;gap:6px}.drawer-section-nav button{min-height:32px;font-size:12px}.home-card-loot .item-summary-token{padding:3px 5px}}

/* Group home cards and daily hunt entry by the linked NEXON account. */
.account-character-group{margin:0 0 15px;padding:12px;border:1px solid #405d7c;border-radius:12px;background:#101f32}
.account-group-heading,.hunt-account-heading{display:flex;align-items:center;gap:9px;margin-bottom:9px;color:#dcecff}
.account-group-heading>span,.hunt-account-heading>span{color:#9fb9d5;font-size:12px}
.account-group-heading>div{display:flex;gap:5px;margin-left:auto}
.account-group-heading button{width:30px;height:30px;border:1px solid #526e8e;border-radius:7px;background:#1b3048;color:#edf6ff;font-size:20px;cursor:pointer}
.account-character-group .game-characters{display:flex;grid-template-columns:none;gap:12px;overflow-x:auto;overflow-y:hidden;padding:0 0 7px;scrollbar-width:thin;overscroll-behavior-x:contain;scroll-snap-type:x proximity}
.account-character-group .game-character-wrapper{flex:0 0 min(230px,78vw);scroll-snap-align:start}
.account-character-group .game-character{width:100%}
.hunt-account-group{min-width:0;padding:9px;border:1px solid #354e6c;border-radius:10px;background:#14263a}
.hunt-account-heading{margin:0 0 7px}.hunt-account-characters{display:flex;gap:9px;overflow-x:auto;padding:0 0 6px;scrollbar-width:thin;overscroll-behavior-x:contain}
.hunt-account-characters>.hunt-character-section{flex:0 0 min(285px,78vw);min-width:0}
.nexon-manager-dialog{width:min(1000px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:0;overflow:hidden;border:1px solid #6987a8;border-radius:16px;background:#122238;color:#edf5ff;box-shadow:0 20px 70px #0009}
.nexon-manager-dialog::backdrop{background:#050a12b8;backdrop-filter:blur(3px)}
.nexon-manager-shell{display:flex;flex-direction:column;max-height:calc(100dvh - 24px)}
.nexon-manager-shell>header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 20px;border-bottom:1px solid #3b5573;background:#172b43}
.nexon-manager-shell>header h2{margin:3px 0;font-size:20px}.nexon-manager-shell>header p{margin:3px 0 0;color:#b9cde5;font-size:12px}
.nexon-manager-content{min-height:0;overflow:auto;padding:15px;overscroll-behavior:contain}
.nexon-manager-content .nexon-account-settings{margin:0;padding:0;border:0;background:none}
.nexon-manager-content .nexon-roster-grid{max-height:min(42vh,420px);scrollbar-gutter:stable}
@media(max-width:650px){.nexon-manager-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);border-radius:12px}.nexon-manager-shell{max-height:calc(100dvh - 12px)}.nexon-manager-shell>header{padding:12px}.nexon-manager-content{padding:9px}.nexon-account-entry{width:100%}.nexon-roster-toolbar{position:sticky;top:0;z-index:2;padding:7px 0;background:#101b2a}.account-character-group{padding:9px}.account-character-group .game-character-wrapper{flex-basis:min(220px,82vw)}}
/* Nexon integration uses the existing card art and ledger. */
.actual-character{position:absolute;right:0;top:55px;width:145px;height:145px;object-fit:contain;z-index:1;pointer-events:none;filter:drop-shadow(0 2px 6px #071424)}
.character-identity{position:relative;z-index:2}.character-identity>strong{max-width:65%;text-shadow:0 2px 5px #071424}.card-expected{font-size:11px;color:#b5d9ec;margin-top:4px}.week-completion-strip{flex-wrap:wrap}
.nexon-character-panel{margin:8px 0 12px;border:1px solid #42617e;border-radius:9px;background:#102439;padding:10px;font-size:13px}.nexon-character-panel>summary{cursor:pointer;font-weight:700;color:#f3b1d9;display:list-item}.nexon-character-panel>summary span{float:right;color:#bbe5ef}
.nexon-profile{display:flex;gap:10px;align-items:center;margin-top:12px}.nexon-avatar{width:80px;height:80px;object-fit:contain}.nexon-profile p{margin:5px 0}.nexon-profile small,.nexon-times,.nexon-credit{color:#adcce0}.nexon-actions,.nexon-detail-buttons{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.nexon-actions a{text-decoration:none}.nexon-status{color:#c8dcec;line-height:1.6;overflow-wrap:anywhere}.nexon-income{display:flex;gap:12px;flex-wrap:wrap;border-block:1px solid #3e5670;padding:10px 0;margin:10px 0}.nexon-income span{display:flex;flex-direction:column;gap:4px}.nexon-income b{color:#f8b9d9}.remaining-bosses{margin:10px 0}.remaining-bosses ul,.nexon-data-list{list-style:none;margin:6px 0;padding:0}.remaining-bosses li,.nexon-data-list li{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid #31495d}.nexon-data-list b{font-weight:500;text-align:right;overflow-wrap:anywhere}.nexon-extras{max-height:350px;overflow:auto;overscroll-behavior:contain}.nexon-extras details{margin:7px 0;padding:8px;background:#152c42;border-radius:6px}.nexon-credit{display:block;margin-top:10px}.nexon-detail-buttons button{padding:7px 10px}#nexon-lookup{margin-top:8px}#nexon-lookup-status{font-size:12px;color:#bcdcef;line-height:1.5}
@media(max-width:480px){.actual-character{width:120px;height:130px;right:0}.nexon-actions .button{padding:8px;font-size:12px}.nexon-income{gap:10px}.remaining-bosses li{font-size:12px}.nexon-detail-buttons button{flex:1 1 40%}.nexon-profile{align-items:flex-start}.nexon-profile p{font-size:12px}.character-identity>strong{max-width:68%}}

/* Account tabs keep each dashboard view focused while remaining swipeable. */
.dashboard-intro>div{min-width:0;flex:1}
.account-switcher{display:flex;gap:6px;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:5px 2px 8px;margin-top:8px}
.account-switcher button{flex:0 0 auto;display:flex;align-items:center;gap:8px;min-height:38px;padding:7px 13px;border:1px solid #4a6381;border-radius:9px;background:#15283e;color:#c5d9ee;white-space:nowrap;cursor:pointer}
.account-switcher button[aria-selected="true"]{border-color:#f38acb;background:#f5a2d1;color:#32172b;font-weight:800;box-shadow:0 3px 12px #ec5eaa33}
.account-switcher button small{font-size:11px;opacity:.75}
#stats-dashboard>.account-switcher{margin:0 0 12px;padding:5px 0 8px}
.boss-completion-panel{border:1px solid #7a658d!important;border-radius:12px;background:linear-gradient(115deg,#28294b,#1a3045 72%)!important;padding:10px 12px!important;box-shadow:inset 3px 0 #f28bc9,0 4px 14px #0002}
.boss-completion-panel>summary strong{color:#ffe0f1}
.boss-completion-panel .boss-list-mode{color:#c7d9ed}
.boss-completion-panel .boss-completion-grid{margin-top:8px}
.character-drawer .ledger-scroll{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:8px}
.character-drawer .boss-completion-panel,.character-drawer .ledger-monthly-section,.character-drawer .ledger-close-bar{grid-column:1/-1}
.character-drawer .loot-character-group .loot-ledger-row{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:8px;padding:8px;margin:0;align-content:start}
.character-drawer .loot-ledger-boss{gap:7px;flex-wrap:wrap;justify-content:space-between;align-content:start}
.character-drawer .loot-ledger-boss .boss-name-with-icon{font-size:12px}
.character-drawer .ledger-boss-rewards .boss-loot{gap:4px;margin-top:4px}
.character-drawer .boss-loot-entry{padding:4px 6px;font-size:11px}
.character-drawer .ledger-reward-group{gap:4px}
@media(max-width:640px){.character-drawer .ledger-scroll{grid-template-columns:1fr}.character-drawer .loot-character-group .loot-ledger-row{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}.dashboard-intro .account-switcher{margin-top:7px}.dashboard-intro{align-items:flex-start}}
@media(max-width:420px){.character-drawer .loot-character-group .loot-ledger-row{grid-template-columns:1fr}.character-drawer .loot-ledger-boss{align-items:center}}

/* Account tabs include explicit ordering controls; no aggregate tab is shown. */
.account-switcher{align-items:center}
.account-tab-item{display:flex;flex:0 0 auto;align-items:center;gap:3px;padding:3px;border:1px solid #435c79;border-radius:10px;background:#111f32}
.account-tab-item>[data-dashboard-account]{display:flex;align-items:center;gap:8px;min-height:34px;padding:6px 10px;border:0;border-radius:7px;background:transparent;color:#c8d9ec;white-space:nowrap;cursor:pointer}
.account-tab-item>[data-dashboard-account][aria-current="true"]{background:#f5a2d1;color:#32172b;font-weight:800}
.account-tab-item>[data-dashboard-account] small{opacity:.75;font-size:11px}
.account-order-controls{display:flex;gap:4px;padding-left:5px;border-left:1px solid #526b88}
.account-order-controls button{min-height:34px;width:34px;padding:0;border:1px solid #7188a4;border-radius:7px;background:#263c56;color:#edf5ff;font-size:17px;font-weight:800;line-height:1;cursor:pointer;transition:background .15s,border-color .15s}
.account-order-controls button:hover:not(:disabled){border-color:#d197bd;background:#3b3550}
.account-order-controls button:disabled{opacity:.38}
.dashboard-intro-actions{display:flex;align-items:center;gap:8px;flex:none}
.api-portal-link{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 12px;border:1px solid #6685a9;border-radius:9px;background:#192f47;color:#cfe4f9;text-decoration:none;font-size:12px;white-space:nowrap}
.api-portal-link:hover{background:#24415f}
.home-workspace{align-items:stretch;grid-template-rows:auto}
#home-character-slot{grid-column:1;grid-row:1;min-width:0}
#home-right-stack{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:14px;min-width:0;min-height:0;align-self:stretch}
#home-hunting-slot{min-width:0;flex:none}
#home-memo-slot{width:100%;min-width:0;min-height:0;flex:1;margin:0;padding:14px 16px}
.home-memo{display:flex;flex-direction:column;gap:8px;background:linear-gradient(135deg,#1b304b,#101d2e 75%)}
.home-memo label{font-size:17px;font-weight:800;color:#e9f4ff}
.home-memo textarea{display:block;width:100%;height:100%;min-height:0;max-height:none;flex:1;resize:none;overflow-y:auto;box-sizing:border-box;padding:12px 14px;border:1px solid #6987a8;border-radius:9px;background:#0d1c2e;color:#f4f8ff;font-family:inherit;font-size:16px;line-height:1.75;outline-color:#f39bd0}
.home-memo textarea::placeholder{color:#9eb5cf;opacity:1}
.home-memo small{font-size:11px;color:#b9d4ed}
#home-hunting-slot #hunt-character-grid{scrollbar-color:#718eae #0d1c2e}
#home-hunting-slot .hunt-account-characters{display:flex;flex-direction:column;gap:8px;overflow:visible;overflow-x:hidden;padding:0;scrollbar-width:auto}
#home-hunting-slot .hunt-account-characters>.hunt-character-section{flex:none;width:100%;min-width:0}
#home-hunting-slot [data-category="hunt"] .income-won,#home-hunting-slot .shard-meso-value{display:none}
.drawer-period-controls{font-size:14px;color:#e0efff;font-weight:700}
.drawer-period-controls #character-drawer-week{font-size:15px;color:#f0f7ff;letter-spacing:.01em}
:root[data-theme] .recent-loot-card strong{font-size:14px;color:var(--ui-copy)!important}
:root[data-theme] .recent-loot-card>b{font-size:17px;color:var(--ui-copy)!important}
.loot-record-sources{display:flex;flex-direction:column;gap:6px;margin-top:5px;text-align:left}
:root[data-theme] .loot-record-sources>span{display:block;padding-top:5px;border-top:1px solid var(--ui-border);color:var(--ui-secondary)!important;font-size:12px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.monthly-bars{min-height:180px}
.monthly-bar-fill{fill:#f17cbe;stroke:#ffd0e8;stroke-width:1}
@media(max-width:760px){.dashboard-intro-actions{width:100%;justify-content:flex-end}.home-workspace{grid-template-rows:auto auto;align-items:stretch}.home-workspace #home-character-slot{grid-column:1;grid-row:1}.home-workspace #home-right-stack{grid-column:1;grid-row:2;height:auto}.home-workspace #home-hunting-slot,.home-workspace #home-memo-slot{grid-column:auto;grid-row:auto}.home-memo textarea{height:220px;min-height:160px;max-height:40vh;flex:none;resize:none;overflow-y:auto}.drawer-period-controls{font-size:14px}.drawer-period-controls #character-drawer-week{font-size:15px}}

/* Gently lift secondary copy from the dark panels without changing the palette. */
:root{--muted:#bfd0e3}
.dashboard-intro h1 span,.panel-heading>span,.week-completion-strip,.character-filters button,.card-progress-label,.remaining-income,.home-memo small,.chart-data,.composition li small,.loot-stats dt,.loot-stats dd small,.dashboard-empty,.account-group-heading>span{color:#c0d2e6}
.week-mini-stats span,.week-progress-caption,.week-panel .panel-heading>span,.boss-overview>button span,.efficiency-list>button>small{color:#c5d7ea}
.account-order-controls button:focus-visible{outline-color:#b4d6f2}

/* Theme selector and two boss-inspired palettes. */
.theme-settings-panel{display:grid;grid-template-columns:minmax(180px,.72fr) minmax(0,1.6fr);align-items:center;gap:20px;margin:0 0 18px;padding:18px;border:1px solid #705d7d;border-radius:16px;background:radial-gradient(ellipse at 0 0,#67416a55,transparent 60%),linear-gradient(135deg,#1b2033,#151b2c);box-shadow:0 12px 30px #08081230}
.theme-settings-copy h3{margin:4px 0;font-size:19px;color:#f6edf8}.theme-settings-copy p{margin:4px 0 0;color:#c8c0d2;font-size:12px;line-height:1.6}
.theme-choice-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.theme-choice{display:grid;grid-template-columns:44px minmax(0,1fr) 22px;align-items:center;gap:10px;min-width:0;min-height:76px;padding:10px 12px;border:1px solid #4c5067;border-radius:12px;background:linear-gradient(135deg,#1b1d2b,#20263b);color:#eeeafa;text-align:left;cursor:pointer;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.theme-choice:hover{transform:translateY(-2px);border-color:#b477aa}
.theme-choice[aria-pressed=true]{border-color:#e5a1d0;box-shadow:0 0 0 2px #e5a1d033,0 8px 22px #05071155}
.theme-choice-art{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:radial-gradient(circle at 38% 30%,#97649b,#321e40 72%);color:#f5d3fa;font-size:27px;box-shadow:inset 0 1px 3px #fff3}
.theme-choice-light .theme-choice-art{background:radial-gradient(circle at 35% 30%,#fff3bd,#d69a38 74%);color:#704414}
.theme-choice-copy{display:grid;gap:3px;min-width:0}.theme-choice-copy strong{font-size:14px}.theme-choice-copy small{color:#c4bfd0;font-size:11px;line-height:1.4}.theme-choice-check{display:grid;place-items:center;width:20px;height:20px;border:1px solid #77748a;border-radius:50%;color:transparent;font-size:12px}.theme-choice[aria-pressed=true] .theme-choice-check{border-color:#f2b3da;background:#e99bc9;color:#30172b}

:root[data-theme="dark"]{color-scheme:dark;--bg:#100d18;--panel:#1c1825;--panel-2:#282131;--line:#46384f;--text:#f5f0f7;--muted:#c2b5ca;--orange:#e8a4d0;--orange-soft:#39233b;--green:#8dd7b7;--red:#ff9caa}
:root[data-theme="dark"] body{background:radial-gradient(ellipse at 8% -8%,#512b5b 0,transparent 34%),radial-gradient(ellipse at 96% 45%,#321d3b 0,transparent 35%),#100d18}
:root[data-theme="dark"] .portal-nav{background:#15111f;border-color:#493750}
:root[data-theme="dark"] .portal-nav button{color:#e4d8e9}
:root[data-theme="dark"] .portal-nav button[aria-current=page]{background:linear-gradient(135deg,#d98abf,#a963a0);color:#28182b;box-shadow:0 0 22px #d68ac544}
:root[data-theme="dark"] .game-panel,:root[data-theme="dark"] .week-revenue-panel,:root[data-theme="dark"] .home-memo{background:linear-gradient(135deg,#241c30,#151321 75%);border-color:#674d70}
:root[data-theme="dark"] .week-panel{background:radial-gradient(ellipse at 95% 0,#69446f 0,transparent 55%),linear-gradient(115deg,#482b4f,#28233d 55%,#171725);border-color:#9c77a4}
:root[data-theme="dark"] .week-panel h2,:root[data-theme="dark"] .week-completion-strip>b{color:#f2b2d9}
:root[data-theme="dark"] .loot-ledger,:root[data-theme="dark"] .hunt-editor,:root[data-theme="dark"] .nexon-account-settings{background:linear-gradient(140deg,#211a2d,#171522);border-color:#554363}
:root[data-theme="dark"] .account-character-group,:root[data-theme="dark"] .hunt-account-group,:root[data-theme="dark"] .hunt-character-section,:root[data-theme="dark"] .loot-character-group{background:#211a2b;border-color:#493a54}
:root[data-theme="dark"] .theme-settings-panel{border-color:#705d7d}
:root[data-theme="dark"] .button:not(.primary),:root[data-theme="dark"] .theme-choice{background-color:#241d30;border-color:#574363;color:#f3eafa}
:root[data-theme="dark"] input:not([type=checkbox]):not([type=radio]),:root[data-theme="dark"] select,:root[data-theme="dark"] textarea{color-scheme:dark}
:root[data-theme="dark"] .character-drawer,:root[data-theme="dark"] .nexon-manager-dialog{background:#171321;border-color:#70567a;color:#f5eef8}
:root[data-theme="dark"] .character-drawer .ledger-close-bar{background:#171321}
:root[data-theme="dark"] .theme-choice-dark[aria-pressed=true]{border-color:#edadd7;box-shadow:0 0 0 2px #edadd733,0 8px 22px #05071155}

:root[data-theme="light"]{color-scheme:light;--bg:#f5f0e3;--panel:#fffaf0;--panel-2:#f1e8d5;--line:#d7c398;--text:#45371f;--muted:#786a50;--orange:#c68624;--orange-soft:#f8e8c5;--green:#347759;--red:#ba4b50}
:root[data-theme="light"] body{background:radial-gradient(ellipse at 8% -8%,#fff0bd 0,transparent 38%),radial-gradient(ellipse at 95% 42%,#f3d68f 0,transparent 35%),#f5f0e3;color:#45371f}
:root[data-theme="light"] .brand-mark{background:linear-gradient(145deg,#ffe9a4,#e8b84c);color:#634317;box-shadow:0 8px 30px #c58b2730}
:root[data-theme="light"] .portal-nav{background:#fffaf0dd;border-color:#d5bd8d;box-shadow:0 7px 22px #8d662016}
:root[data-theme="light"] .portal-nav button{color:#665331}
:root[data-theme="light"] .portal-nav button[aria-current=page]{background:linear-gradient(135deg,#ffdf83,#e9b542);color:#49300c;box-shadow:0 0 20px #e9b54240}
:root[data-theme="light"] .button:not(.primary){background:#fffaf0;border-color:#d3bc8e;color:#574522}
:root[data-theme="light"] .button:not(.primary):hover{background:#f7edda;border-color:#bd9a5d}
:root[data-theme="light"] .button.primary{background:linear-gradient(135deg,#f5ce6b,#d79b30);color:#49300c;box-shadow:0 5px 18px #c98c2a36}
:root[data-theme="light"] .game-panel,:root[data-theme="light"] .week-revenue-panel,:root[data-theme="light"] .home-memo{background:linear-gradient(135deg,#fffdf6,#f6ecd7 82%);border-color:#d3bd91;box-shadow:inset 0 1px 0 #fff,0 8px 20px #84652a14}
:root[data-theme="light"] .week-panel{background:radial-gradient(ellipse at 95% 0,#f6d77f 0,transparent 55%),linear-gradient(115deg,#fff3ce,#f6e5bb 52%,#f3e9d8);border-color:#d6aa4a}
:root[data-theme="light"] .week-panel h2,:root[data-theme="light"] .week-completion-strip>b{color:#895c12}
:root[data-theme="light"] .week-completion-strip,:root[data-theme="light"] .week-completion-strip>span b,:root[data-theme="light"] .week-progress-caption,:root[data-theme="light"] .week-mini-stats span{color:#66512d}
:root[data-theme="light"] .loot-ledger,:root[data-theme="light"] .hunt-editor,:root[data-theme="light"] .nexon-account-settings{background:linear-gradient(140deg,#fffaf0,#f2e7d0);border-color:#d3bd91}
:root[data-theme="light"] .account-character-group,:root[data-theme="light"] .hunt-account-group,:root[data-theme="light"] .hunt-character-section,:root[data-theme="light"] .loot-character-group,:root[data-theme="light"] .loot-ledger-row{background:#f5ecd9;border-color:#d9c59d}
:root[data-theme="light"] .summary-card{background:linear-gradient(140deg,#fffdf7,#f1e5ce);border-color:#d9c69f;color:#4b3c22}
:root[data-theme="light"] .summary-label,:root[data-theme="light"] .month-note,:root[data-theme="light"] .summary-converted{color:#796743}
:root[data-theme="light"] .summary-value,:root[data-theme="light"] .summary-value small{color:#493719}
:root[data-theme="light"] .settings-panel,:root[data-theme="light"] .loot-price-panel,:root[data-theme="light"] .theme-settings-panel{background:linear-gradient(135deg,#fffdf7,#f4ead5);border-color:#d8c398;color:#4d3e25;box-shadow:0 9px 24px #84652a13}
:root[data-theme="light"] .settings-copy strong,:root[data-theme="light"] .theme-settings-copy h3{color:#473719}
:root[data-theme="light"] .settings-copy span,:root[data-theme="light"] .theme-settings-copy p,:root[data-theme="light"] .loot-price-panel p{color:#756342}
:root[data-theme="light"] .theme-settings-panel .kicker{color:#9a6a18}
:root[data-theme="light"] .theme-choice{background:linear-gradient(135deg,#fffdf8,#f7efdd);border-color:#dcc99f;color:#493b25}
:root[data-theme="light"] .theme-choice-copy small{color:#786746}
:root[data-theme="light"] .theme-choice[aria-pressed=true]{border-color:#d9a936;box-shadow:0 0 0 2px #dbaf4a35,0 8px 22px #84652a1c}
:root[data-theme="light"] .theme-choice-check{border-color:#beaa7e}
:root[data-theme="light"] .theme-choice[aria-pressed=true] .theme-choice-check{border-color:#d5a42e;background:#e9bd54;color:#49300c}
:root[data-theme="light"] .theme-choice-dark .theme-choice-art{color:#fff0fa}
:root[data-theme="light"] .theme-choice-light[aria-pressed=true]{border-color:#d9a936}
:root[data-theme="light"] .entry-input,:root[data-theme="light"] .entry-input:focus,:root[data-theme="light"] .hunt-character-section input,:root[data-theme="light"] .home-memo textarea{background:#fffdf8;border-color:#cfba91;color:#45371f}
:root[data-theme="light"] .entry-input::placeholder,:root[data-theme="light"] .home-memo textarea::placeholder{color:#998664}
:root[data-theme="light"] .home-memo label{color:#614916}
:root[data-theme="light"] .home-memo small,:root[data-theme="light"] .dashboard-intro h1 span,:root[data-theme="light"] .panel-heading>span,:root[data-theme="light"] .account-group-heading>span,:root[data-theme="light"] .hunt-account-heading>span{color:#796743}
:root[data-theme="light"] .character-drawer,:root[data-theme="light"] .nexon-manager-dialog{background:#fffaf0;border-color:#c5a75c;color:#493a20;box-shadow:0 18px 70px #5c441b35}
:root[data-theme="light"] .character-drawer-head,:root[data-theme="light"] .nexon-manager-shell>header{background:#f6ebd3;border-color:#dfc992}
:root[data-theme="light"] .character-drawer-head p,:root[data-theme="light"] .nexon-manager-shell>header p,:root[data-theme="light"] .nexon-manager-content .nexon-account-status{color:#756342}
:root[data-theme="light"] .drawer-close,:root[data-theme="light"] .drawer-period-controls button,:root[data-theme="light"] .character-scroll-controls button{background:#f4e8d0;border-color:#cfb77f;color:#5c461b}
:root[data-theme="light"] .nexon-account-entry,:root[data-theme="light"] .nexon-roster,:root[data-theme="light"] .nexon-roster-choice,:root[data-theme="light"] .nexon-manual-fallback{background:#f6eddc;border-color:#d9c59d;color:#493c27}
:root[data-theme="light"] .nexon-account-connect label{color:#665331}
:root[data-theme="light"] .nexon-account-connect input,:root[data-theme="light"] .nexon-roster-choice small{background:#fffdf8;color:#665331}
:root[data-theme="light"] .loot-price-title-row{color:#493a20}
:root[data-theme="light"] .loot-price-field{color:#584828}
:root[data-theme="light"] .loot-price-field input,:root[data-theme="light"] .setting-control input,:root[data-theme="light"] .period-field input{background:#fffdf8;border-color:#cfba91;color:#49371f;color-scheme:light}
:root[data-theme="light"] .loot-price-category{background:#f2e5c7;border-left-color:#c99e3d;color:#75551a}
:root[data-theme="light"] .linked-price-note,:root[data-theme="light"] .loot-price-no-listing{color:#756342}
:root[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]),:root[data-theme="light"] select,:root[data-theme="light"] textarea{background-color:#fffdf8;border-color:#cfba91;color:#49371f;color-scheme:light}
:root[data-theme="light"] .item-summary-token{background:#f7e8d3;border-color:#d1b788;color:#5a4226}
:root[data-theme="light"] .footer{color:#796b51;border-color:#dfd1b2}
:root[data-theme="light"] .empty-state{background:#fffaf0;border-color:#d4c39e}
:root[data-theme="light"] .modal{background:#fffaf0;border-color:#d7c398;color:#49371f}
:root[data-theme="light"] .modal input,:root[data-theme="light"] .new-boss-row select,:root[data-theme="light"] .party-size-field select,:root[data-theme="light"] .settlement-selector select{background:#fffdf8;border-color:#cfba91;color:#49371f}
:root[data-theme="light"] .toast{background:#fffaf0;border-color:#d7c398;color:#49371f;box-shadow:0 8px 30px #72572722}
:root[data-theme="light"] .loot-price-category{background:#f3e5c9;border-color:#c59a3c;color:#75521a}
:root[data-theme="light"] .loot-price-category small,:root[data-theme="light"] .storage-guide small{color:#786746}
:root[data-theme="light"] .storage-guide{background:#fffaf0;border-color:#d3bd91;color:#655332}
:root[data-theme="light"] .recent-loot-card{background:#fffaf0;border-color:#d9c69f}
:root[data-theme="light"] .monthly-bars text{fill:#695636}
:root[data-theme="light"] .theme-choice-light .theme-choice-art{box-shadow:0 2px 12px #d9a9364a,inset 0 1px 3px #fff8}
:root[data-theme="light"] .kicker,:root[data-theme="light"] .eyebrow{color:#987018}
:root[data-theme="light"] .boss-completion-panel{background:linear-gradient(115deg,#f7edda,#fffaf0 72%)!important;border-color:#cfb77f!important;box-shadow:inset 3px 0 #d7a93c,0 4px 14px #84652a16}
:root[data-theme="light"] .boss-completion-panel>summary strong,:root[data-theme="light"] .boss-completion-panel .boss-list-mode{color:#5d4928}
:root[data-theme="light"] .boss-completion-option{background:#fffaf0;border-color:#d8c69e;color:#4b3b21}
:root[data-theme="light"] .boss-quick-status strong,:root[data-theme="light"] .boss-quick-status small,:root[data-theme="light"] .boss-quick-fields label{color:#665331}
:root[data-theme="light"] .nexon-character-panel{background:#f4ead6;border-color:#d4c092;color:#514125}
:root[data-theme="light"] .nexon-profile small,:root[data-theme="light"] .nexon-times,:root[data-theme="light"] .nexon-credit,:root[data-theme="light"] .nexon-status,:root[data-theme="light"] .nexon-lookup-status{color:#756342}
:root[data-theme="light"] .nexon-income{border-color:#d8c69e}
:root[data-theme="light"] .nexon-income b{color:#8b5b18}
:root[data-theme="light"] .nexon-data-list li,:root[data-theme="light"] .remaining-bosses li{border-color:#dfd0af;color:#57472a}
:root[data-theme="light"] .nexon-extras details{background:#fffaf0;color:#514125}
:root[data-theme="light"] .nexon-detail-buttons button,:root[data-theme="light"] .nexon-account-entry button,:root[data-theme="light"] .nexon-roster-toolbar button{background:#f3e6ca;border-color:#cfb77f;color:#5c461b}
:root[data-theme="light"] .week-step button,:root[data-theme="light"] .dashboard-month-nav button,:root[data-theme="light"] .drawer-period-controls button{background:#fffaf0;border-color:#cdb57f;color:#624a1d}
:root[data-theme="light"] .game-progress{background:#eadfca;border-color:#cbb98f}
:root[data-theme="light"] .week-mini-stats div+div,:root[data-theme="light"] .week-money>div+div{border-color:#dfd0af}
:root[data-theme="light"] .storage-guide>strong,:root[data-theme="light"] .nexon-account-heading strong{color:#493719}
:root[data-theme="light"] .home-hunt-editor .hunt-account-heading,:root[data-theme="light"] .account-group-heading{color:#564322}
:root[data-theme="light"] .account-group-heading button{background:#f3e6ca;border-color:#cfb77f;color:#624a1d}
:root[data-theme="light"] .period-box{background:#fffaf0;border-color:#d7c398}
:root[data-theme="light"] .period-label,:root[data-theme="light"] .period-range{color:#554321}
:root[data-theme="light"] .period-hint{color:#847252}
:root[data-theme="light"] .portal-settings-backup{color:#574522}
:root[data-theme="light"] .auto-calculated-materials{background:#fffaf0;border-color:#d8c398}
:root[data-theme="light"] .auto-calculated-materials>summary{background:#f2e8d5;border-left-color:#c8ad6f;color:#62502f}
:root[data-theme="dark"] .auto-calculated-materials{background:#191522;border-color:#564361}
:root[data-theme="dark"] .auto-calculated-materials>summary{background:#282037;border-left-color:#9d739d;color:#eadfeb}
@media(max-width:760px){.theme-settings-panel{grid-template-columns:1fr;gap:12px;padding:14px}.theme-choice-list{grid-template-columns:1fr}}

/* Persistent, image-led theme picker and low-glare boss artwork. */
.shell{position:relative;z-index:1}
.topbar{position:relative;z-index:2}
.global-theme-switcher{display:flex;align-items:center;gap:4px;padding:4px;border:1px solid #574363;border-radius:14px;background:#191522;box-shadow:0 5px 18px #08071155}
.global-theme-choice{display:flex;align-items:center;gap:7px;min-height:38px;padding:4px 10px 4px 5px;border:1px solid transparent;border-radius:10px;background:transparent;color:#d8cddd;font-size:12px;font-weight:700;cursor:pointer;transition:background .16s,border-color .16s,color .16s}
.global-theme-choice img{width:28px;height:28px;border-radius:8px;object-fit:cover;object-position:50% 20%;box-shadow:0 1px 6px #0005}
.global-theme-choice:hover{background:#2b2133;color:#fff}
.global-theme-choice[aria-pressed="true"]{border-color:#ad7eaa;background:linear-gradient(130deg,#49324e,#30253a);color:#fff;box-shadow:inset 0 0 0 1px #ffffff0d}
.theme-ambient-art{position:fixed;z-index:0;right:0;top:18vh;width:min(25vw,330px);height:min(62vh,620px);pointer-events:none;opacity:.17;filter:drop-shadow(0 12px 30px #c577ae33);mask-image:linear-gradient(180deg,transparent 0%,#000 17%,#000 76%,transparent 100%);-webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 17%,#000 76%,transparent 100%)}
.theme-ambient-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:right center}
.theme-ambient-star{display:none}
:root[data-theme="light"] .theme-ambient-art{opacity:.14;filter:drop-shadow(0 10px 24px #92723820)}
:root[data-theme="light"] .theme-ambient-star{display:block}
:root[data-theme="light"] .theme-ambient-bellona{display:none}
:root[data-theme="light"] .global-theme-switcher{background:#e4e1d9;border-color:#c4bcaa;box-shadow:0 5px 18px #4f49351a}
:root[data-theme="light"] .global-theme-choice{color:#5d594f}
:root[data-theme="light"] .global-theme-choice:hover{background:#edeae2;color:#39362e}
:root[data-theme="light"] .global-theme-choice[aria-pressed="true"]{border-color:#aa9358;background:linear-gradient(130deg,#e4d9bb,#d8c89f);color:#41371f;box-shadow:inset 0 0 0 1px #ffffff55}
:root[data-theme="dark"] .theme-ambient-bellona{display:block}
:root[data-theme="dark"] .global-theme-choice[data-theme-choice="dark"][aria-pressed="true"]{border-color:#d89abb;background:linear-gradient(130deg,#56334f,#34253d)}
:root[data-theme="dark"] .global-theme-choice[data-theme-choice="light"][aria-pressed="true"]{border-color:#d8c27c;background:linear-gradient(130deg,#54472d,#373043)}

/* Softer, parchment-gray light palette: warm but never white or saturated gold. */
:root[data-theme="light"]{--bg:#e8e6df;--panel:#f0eee8;--panel-2:#e5e2d9;--line:#c9c4b7;--text:#383a36;--muted:#66685f;--orange:#9a7838;--orange-soft:#e8e0cc;--green:#3d725c;--red:#a94f53}
:root[data-theme="light"] body{background:radial-gradient(ellipse at 8% -8%,#dcd8cb 0,transparent 38%),radial-gradient(ellipse at 95% 42%,#ded9c9 0,transparent 35%),#e8e6df;color:#383a36}
:root[data-theme="light"] .brand-mark{background:linear-gradient(145deg,#e2d5ad,#c4ac70);color:#463d29;box-shadow:0 8px 30px #77643b22}
:root[data-theme="light"] .portal-nav{background:#efeee8ed;border-color:#c6c1b4;box-shadow:0 7px 22px #45423912}
:root[data-theme="light"] .portal-nav button{color:#55574f}
:root[data-theme="light"] .portal-nav button[aria-current=page]{background:linear-gradient(135deg,#d8cda9,#c8b881);color:#3d3828;box-shadow:0 0 16px #8b794622}
:root[data-theme="light"] .button:not(.primary){background:#eeece5;border-color:#c5c0b3;color:#474941}
:root[data-theme="light"] .button:not(.primary):hover{background:#e6e3da;border-color:#aaa38f}
:root[data-theme="light"] .button.primary{background:linear-gradient(135deg,#ddc98c,#c5ae68);color:#3f3826;box-shadow:0 5px 18px #82704424}
:root[data-theme="light"] .game-panel,:root[data-theme="light"] .week-revenue-panel,:root[data-theme="light"] .home-memo{background:linear-gradient(135deg,#f1efe9,#e8e6de 82%);border-color:#c5c1b5;box-shadow:inset 0 1px 0 #ffffff80,0 8px 20px #47443b12}
:root[data-theme="light"] .week-panel{background:radial-gradient(ellipse at 95% 0,#d8cfb5 0,transparent 55%),linear-gradient(115deg,#e8e4d8,#e1e3dd 52%,#e7e7e1);border-color:#b9ae8b}
:root[data-theme="light"] .week-panel h2,:root[data-theme="light"] .week-completion-strip>b{color:#655632}
:root[data-theme="light"] .week-completion-strip,:root[data-theme="light"] .week-completion-strip>span b,:root[data-theme="light"] .week-progress-caption,:root[data-theme="light"] .week-mini-stats span{color:#56594f}
:root[data-theme="light"] .loot-ledger,:root[data-theme="light"] .hunt-editor,:root[data-theme="light"] .nexon-account-settings{background:linear-gradient(140deg,#eeece6,#e7e5dd);border-color:#c5c1b5}
:root[data-theme="light"] .account-character-group,:root[data-theme="light"] .hunt-account-group,:root[data-theme="light"] .hunt-character-section,:root[data-theme="light"] .loot-character-group,:root[data-theme="light"] .loot-ledger-row{background:#e7e5dd;border-color:#cbc6b9}
:root[data-theme="light"] .summary-card{background:linear-gradient(140deg,#f0eee8,#e6e4dc);border-color:#c8c3b6;color:#3e403a}
:root[data-theme="light"] .summary-label,:root[data-theme="light"] .month-note,:root[data-theme="light"] .summary-converted{color:#64665d}
:root[data-theme="light"] .summary-value,:root[data-theme="light"] .summary-value small{color:#3c3e38}
:root[data-theme="light"] .settings-panel,:root[data-theme="light"] .loot-price-panel,:root[data-theme="light"] .theme-settings-panel{background:linear-gradient(135deg,#f0eee8,#e8e6de);border-color:#c6c1b5;color:#3e4039;box-shadow:0 9px 24px #514c3d12}
:root[data-theme="light"] .settings-copy strong,:root[data-theme="light"] .theme-settings-copy h3{color:#3c3d37}
:root[data-theme="light"] .settings-copy span,:root[data-theme="light"] .theme-settings-copy p,:root[data-theme="light"] .loot-price-panel p,:root[data-theme="light"] .theme-choice-copy small{color:#66675f}
:root[data-theme="light"] .theme-settings-panel .kicker,:root[data-theme="light"] .kicker,:root[data-theme="light"] .eyebrow{color:#75643d}
:root[data-theme="light"] .theme-choice{background:linear-gradient(135deg,#f0eee8,#e7e4db);border-color:#c9c3b6;color:#3d3e38}
:root[data-theme="light"] .theme-choice[aria-pressed=true]{border-color:#aa9358;box-shadow:0 0 0 2px #aa93582b,0 8px 22px #49433217}
:root[data-theme="light"] .theme-choice-check{border-color:#aaa38e}
:root[data-theme="light"] .theme-choice[aria-pressed=true] .theme-choice-check{border-color:#aa9358;background:#c9b77f;color:#3d3828}
:root[data-theme="light"] .entry-input,:root[data-theme="light"] .entry-input:focus,:root[data-theme="light"] .hunt-character-section input,:root[data-theme="light"] .home-memo textarea,:root[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]),:root[data-theme="light"] select,:root[data-theme="light"] textarea{background:#e6e4dc;border-color:#c4c0b5;color:#383a36;color-scheme:light}
:root[data-theme="light"] .entry-input::placeholder,:root[data-theme="light"] .home-memo textarea::placeholder{color:#77786e}
:root[data-theme="light"] .home-memo label{color:#4e5048}
:root[data-theme="light"] .home-memo small,:root[data-theme="light"] .dashboard-intro h1 span,:root[data-theme="light"] .panel-heading>span,:root[data-theme="light"] .account-group-heading>span,:root[data-theme="light"] .hunt-account-heading>span{color:#63655c}
:root[data-theme="light"] .character-drawer,:root[data-theme="light"] .nexon-manager-dialog,:root[data-theme="light"] .modal,:root[data-theme="light"] .toast{background:#eeece6;border-color:#c4bda9;color:#3c3e38;box-shadow:0 18px 50px #46423424}
:root[data-theme="light"] .character-drawer-head,:root[data-theme="light"] .nexon-manager-shell>header{background:#e5e2d8;border-color:#c9c3b5}
:root[data-theme="light"] .character-drawer-head p,:root[data-theme="light"] .nexon-manager-shell>header p,:root[data-theme="light"] .nexon-manager-content .nexon-account-status{color:#64665c}
:root[data-theme="light"] .drawer-close,:root[data-theme="light"] .drawer-period-controls button,:root[data-theme="light"] .character-scroll-controls button,:root[data-theme="light"] .nexon-detail-buttons button,:root[data-theme="light"] .nexon-account-entry button,:root[data-theme="light"] .nexon-roster-toolbar button{background:#e6e3da;border-color:#bfb9aa;color:#494a43}
:root[data-theme="light"] .nexon-account-entry,:root[data-theme="light"] .nexon-roster,:root[data-theme="light"] .nexon-roster-choice,:root[data-theme="light"] .nexon-manual-fallback{background:#e7e5dd;border-color:#cbc6b9;color:#3f403a}
:root[data-theme="light"] .nexon-account-connect label,:root[data-theme="light"] .loot-price-title-row,:root[data-theme="light"] .loot-price-field{color:#4b4d46}
:root[data-theme="light"] .loot-price-field input,:root[data-theme="light"] .setting-control input,:root[data-theme="light"] .period-field input,:root[data-theme="light"] .modal input,:root[data-theme="light"] .new-boss-row select,:root[data-theme="light"] .party-size-field select,:root[data-theme="light"] .settlement-selector select{background:#e6e4dc;border-color:#c4c0b5;color:#383a36}
:root[data-theme="light"] .loot-price-category{background:#e3dece;border-color:#bca875;color:#5b5138}
:root[data-theme="light"] .linked-price-note,:root[data-theme="light"] .loot-price-no-listing,:root[data-theme="light"] .footer,:root[data-theme="light"] .loot-price-category small,:root[data-theme="light"] .storage-guide small{color:#696a61}
:root[data-theme="light"] .item-summary-token,:root[data-theme="light"] .recent-loot-card{background:#e8e5dc;border-color:#c9c3b5;color:#484941}
:root[data-theme="light"] .empty-state,:root[data-theme="light"] .storage-guide,:root[data-theme="light"] .period-box,:root[data-theme="light"] .auto-calculated-materials,:root[data-theme="light"] .nexon-extras details{background:#eeece6;border-color:#c8c2b5;color:#454740}
:root[data-theme="light"] .boss-completion-panel{background:linear-gradient(115deg,#e8e5dc,#eeece6 72%)!important;border-color:#c3bba6!important;box-shadow:inset 3px 0 #ae985c,0 4px 14px #514a3912}
:root[data-theme="light"] .boss-completion-panel>summary strong,:root[data-theme="light"] .boss-completion-panel .boss-list-mode,:root[data-theme="light"] .boss-completion-option{color:#45463f}
:root[data-theme="light"] .boss-completion-option{background:#eeece6;border-color:#cac4b6}
:root[data-theme="light"] .boss-quick-status strong,:root[data-theme="light"] .boss-quick-status small,:root[data-theme="light"] .boss-quick-fields label,:root[data-theme="light"] .nexon-profile small,:root[data-theme="light"] .nexon-times,:root[data-theme="light"] .nexon-credit,:root[data-theme="light"] .nexon-status,:root[data-theme="light"] .nexon-lookup-status{color:#62645b}
:root[data-theme="light"] .nexon-character-panel{background:#e7e5dd;border-color:#c8c3b6;color:#41433c}
:root[data-theme="light"] .nexon-income{border-color:#c8c3b6}
:root[data-theme="light"] .nexon-income b{color:#75613a}
:root[data-theme="light"] .nexon-data-list li,:root[data-theme="light"] .remaining-bosses li,:root[data-theme="light"] .week-mini-stats div+div,:root[data-theme="light"] .week-money>div+div{border-color:#d0ccbf;color:#4f5149}
:root[data-theme="light"] .week-step button,:root[data-theme="light"] .dashboard-month-nav button{background:#e7e5dd;border-color:#bdb7a9;color:#494b44}
:root[data-theme="light"] .game-progress{background:#dcd9cf;border-color:#bcb8ad}
:root[data-theme="light"] .storage-guide>strong,:root[data-theme="light"] .nexon-account-heading strong,:root[data-theme="light"] .home-hunt-editor .hunt-account-heading,:root[data-theme="light"] .account-group-heading{color:#40423c}
:root[data-theme="light"] .account-group-heading button{background:#e6e3da;border-color:#bfb9aa;color:#494a43}
:root[data-theme="light"] .period-label,:root[data-theme="light"] .period-range{color:#494b44}
:root[data-theme="light"] .period-hint{color:#696b62}
:root[data-theme="light"] .auto-calculated-materials>summary{background:#e5e2d9;border-left-color:#ad985e;color:#4e4d43}
@media(max-width:760px){.topbar{align-items:center;flex-wrap:wrap}.top-actions{display:flex;width:100%;justify-content:flex-end;margin-top:-5px}.top-actions>*:not(.global-theme-switcher){display:none!important}.global-theme-switcher{max-width:100%}.global-theme-choice{min-height:36px;padding-right:8px;font-size:11px}.theme-ambient-art{top:24vh;width:145px;height:38vh;opacity:.09}:root[data-theme="light"] .theme-ambient-art{opacity:.07}}

/* Keep each item name, icon and its own price input visually grouped. */
.loot-price-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:9px 12px}
.loot-price-field{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:8px;width:100%;min-width:0;min-height:52px;padding:7px 9px;border:1px solid #405b79;border-radius:9px;background:#172b41;color:#e3edf8}
.loot-price-field .loot-price-label{flex:0 1 auto;min-width:0;max-width:100%}
.loot-price-title-row{justify-content:flex-start;gap:7px}
.loot-price-field>span:last-child{display:flex;align-items:center;gap:5px;flex:0 0 auto;margin-left:0;white-space:nowrap}
.loot-price-field input{width:82px;flex:0 0 82px}
:root[data-theme="light"] .loot-price-field{background:#e5e3dc;border-color:#c5c0b4;color:#42443e}
:root[data-theme="light"] .loot-price-title-row{color:#42443e}
:root[data-theme="light"] .loot-price-field input{background:#dcdbd4;border-color:#bcb8ad;color:#353732}
@media(max-width:760px){.loot-price-grid{grid-template-columns:1fr}.loot-price-field{justify-content:flex-start}.loot-price-field .loot-price-label{flex:1 1 160px}.loot-price-field>span:last-child{margin-left:0}}
.nexon-manager-shell>header>div:first-child{min-width:0}
.nexon-manager-header-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.nexon-manager-header-actions .api-portal-link{min-height:36px;padding:7px 11px}
:root[data-theme="light"] .nexon-manager-header-actions .api-portal-link{background:#e5e2d8;border-color:#b9b19d;color:#484538}
:root[data-theme="light"] .nexon-manager-header-actions .api-portal-link:hover{background:#dbd6c8}
@media(max-width:650px){.nexon-manager-shell>header{gap:8px}.nexon-manager-header-actions{gap:5px}.nexon-manager-header-actions .api-portal-link{min-height:34px;padding:6px 8px;font-size:11px}.nexon-manager-header-actions .drawer-close{flex:0 0 34px}}

/* Final theme pass: separate the crimson Bellona world from the soft starlight world. */
:root[data-theme="dark"]{--bg:#0a080a;--panel:#151013;--panel-2:#211519;--line:#49282d;--text:#f5eeee;--muted:#c7b9b8;--orange:#d96b5f;--orange-soft:#321819;--green:#8bcba4;--red:#ff777d}
:root[data-theme="dark"] body{background:radial-gradient(ellipse at 12% -12%,#3c1119 0,transparent 35%),radial-gradient(ellipse at 100% 55%,#290f15 0,transparent 34%),#0a080a;color:#f5eeee}
:root[data-theme="dark"] .brand-mark{background:linear-gradient(145deg,#e15d5a,#761c28);color:#fff2ee;box-shadow:0 7px 26px #ce343333}
:root[data-theme="dark"] .brand h1{text-shadow:0 2px 12px #c8323c55}
:root[data-theme="dark"] .brand p,:root[data-theme="dark"] .kicker{color:#e4a19c}
:root[data-theme="dark"] .portal-nav{background:#110d10;border-color:#48262b;box-shadow:0 8px 24px #0005}
:root[data-theme="dark"] .portal-nav button{color:#d4c6c5}
:root[data-theme="dark"] .portal-nav button[aria-current="page"],:root[data-theme="dark"] .portal-nav button.is-current{background:linear-gradient(135deg,#c94949,#8e2631);color:#fff7f4;box-shadow:0 3px 14px #a52b344d,inset 0 1px #ffc2b433}
:root[data-theme="dark"] .button:not(.primary){background:#21171a;border-color:#593136;color:#f1e6e4}
:root[data-theme="dark"] .button:not(.primary):hover{background:#302024;border-color:#93434a}
:root[data-theme="dark"] .button.primary{background:linear-gradient(135deg,#df6560,#aa303b);border:1px solid #f08b7e;color:#fff8f5;box-shadow:0 5px 18px #b6323e38}
:root[data-theme="dark"] .button.primary:hover{background:#ec7770}
:root[data-theme="dark"] .game-panel,:root[data-theme="dark"] .week-revenue-panel,:root[data-theme="dark"] .home-memo,:root[data-theme="dark"] .loot-ledger,:root[data-theme="dark"] .hunt-editor,:root[data-theme="dark"] .nexon-account-settings{background:linear-gradient(135deg,#1b1215,#110d10 82%);border-color:#572d33;box-shadow:0 8px 24px #0003}
:root[data-theme="dark"] .week-panel{background:radial-gradient(ellipse at 92% 4%,#76282e 0,transparent 48%),linear-gradient(115deg,#411b20,#241316 56%,#130e10);border-color:#9a4549}
:root[data-theme="dark"] .week-panel h2,:root[data-theme="dark"] .week-completion-strip>b,:root[data-theme="dark"] .home-memo label{color:#f2aaa0}
:root[data-theme="dark"] .panel-heading h2,:root[data-theme="dark"] .page-heading h2,:root[data-theme="dark"] .summary-card h3{color:#f0e5e3}
:root[data-theme="dark"] .week-step button,:root[data-theme="dark"] .dashboard-month-nav button,:root[data-theme="dark"] .drawer-period-controls button,:root[data-theme="dark"] .character-scroll-controls button,:root[data-theme="dark"] .account-order-controls button{display:inline-grid;place-items:center;width:36px;height:36px;min-height:36px;padding:0;border:1px solid #78434a;border-radius:10px;background:#211619;color:#ffe9e5;font-size:19px;line-height:1}
:root[data-theme="dark"] .week-step button:hover,:root[data-theme="dark"] .dashboard-month-nav button:hover,:root[data-theme="dark"] .drawer-period-controls button:hover,:root[data-theme="dark"] .character-scroll-controls button:hover,:root[data-theme="dark"] .account-order-controls button:hover:not(:disabled){background:#3a1d22;border-color:#bd6464}
:root[data-theme="dark"] .account-character-group,:root[data-theme="dark"] .hunt-account-group,:root[data-theme="dark"] .hunt-character-section,:root[data-theme="dark"] .loot-character-group,:root[data-theme="dark"] .loot-ledger-row,:root[data-theme="dark"] .nexon-character-panel,:root[data-theme="dark"] .nexon-account-entry,:root[data-theme="dark"] .nexon-roster,:root[data-theme="dark"] .nexon-roster-choice,:root[data-theme="dark"] .nexon-manual-fallback{background:#201518;border-color:#4e2c31;color:#f0e6e4}
:root[data-theme="dark"] .summary-card,:root[data-theme="dark"] .settings-panel,:root[data-theme="dark"] .loot-price-panel,:root[data-theme="dark"] .period-box,:root[data-theme="dark"] .storage-guide,:root[data-theme="dark"] .auto-calculated-materials{background:#1a1215;border-color:#4b292e;color:#f0e6e4}
:root[data-theme="dark"] .auto-calculated-materials>summary,:root[data-theme="dark"] .loot-price-category{background:#2a171b;border-color:#8d4147;color:#f3d5d2}
:root[data-theme="dark"] .character-filters button,:root[data-theme="dark"] .account-tab-item,:root[data-theme="dark"] .account-character-group .account-group-heading button{background:#191114;border-color:#512c32;color:#e9d9d8}
:root[data-theme="dark"] .character-filters button[aria-pressed="true"],:root[data-theme="dark"] .account-tab-item>[data-dashboard-account][aria-current="true"]{background:linear-gradient(135deg,#c94949,#8e2631);border-color:#e88076;color:#fff7f4}
:root[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),:root[data-theme="dark"] select,:root[data-theme="dark"] textarea,:root[data-theme="dark"] .home-memo textarea{background:#100c0e;border-color:#59353a;color:#f5eeee;color-scheme:dark}
:root[data-theme="dark"] input:focus,:root[data-theme="dark"] select:focus,:root[data-theme="dark"] button:focus-visible,:root[data-theme="dark"] a:focus-visible{outline-color:#f07870}
:root[data-theme="dark"] .game-character{color:#fff}
:root[data-theme="dark"] .theme-ambient-art{top:8vh;width:min(31vw,450px);height:88vh;opacity:.42;filter:drop-shadow(0 10px 36px #c31d2a45);mask-image:linear-gradient(180deg,transparent 0%,#000 12%,#000 84%,transparent 100%);-webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 12%,#000 84%,transparent 100%)}
:root[data-theme="dark"] .theme-ambient-art img{object-position:right center}

:root[data-theme="light"]{--bg:#e4e5df;--panel:#edeee8;--panel-2:#dfe2da;--line:#bfc5b8;--text:#333a35;--muted:#5c665f;--orange:#887445;--orange-soft:#e3dfd1;--green:#397353;--red:#9e4c48}
:root[data-theme="light"] body{background:radial-gradient(ellipse at 12% -12%,#d1d8cb 0,transparent 36%),radial-gradient(ellipse at 100% 55%,#d4d6c9 0,transparent 35%),#e4e5df;color:#333a35}
:root[data-theme="light"] .brand-mark{background:linear-gradient(145deg,#d4c8a4,#a99a70);color:#34382f;box-shadow:0 7px 24px #565a4430}
:root[data-theme="light"] .brand h1{text-shadow:none;color:#343a35}
:root[data-theme="light"] .brand p,:root[data-theme="light"] .kicker{color:#596d5e}
:root[data-theme="light"] .portal-nav{background:#eff0eb;border-color:#bfc5b8;box-shadow:0 7px 22px #52594a1a}
:root[data-theme="light"] .portal-nav button{color:#515c54}
:root[data-theme="light"] .portal-nav button[aria-current="page"],:root[data-theme="light"] .portal-nav button.is-current{background:linear-gradient(135deg,#7a896e,#65775f);color:#fffdf7;box-shadow:0 3px 13px #4d5f4938,inset 0 1px #ffffff66}
:root[data-theme="light"] .button:not(.primary){background:#e9ebe4;border-color:#b7bfb2;color:#424b43}
:root[data-theme="light"] .button:not(.primary):hover{background:#dde1d8;border-color:#929e90}
:root[data-theme="light"] .button.primary{background:linear-gradient(135deg,#c9b77c,#a8955f);border:1px solid #918051;color:#292f28;box-shadow:0 5px 16px #65604428}
:root[data-theme="light"] .button.primary:hover{background:#d4c48f}
:root[data-theme="light"] .portal-page :where(*){color:#343b35}
:root[data-theme="light"] .portal-page :where(.game-panel,.week-revenue-panel,.home-memo,.loot-ledger,.hunt-editor,.nexon-account-settings,.account-character-group,.hunt-account-group,.hunt-character-section,.loot-character-group,.loot-ledger-row,.summary-card,.settings-panel,.loot-price-panel,.period-box,.storage-guide,.auto-calculated-materials,.nexon-character-panel,.nexon-account-entry,.nexon-roster,.nexon-roster-choice,.nexon-manual-fallback,.empty-state){background:#e9ebe5!important;border-color:#bcc4b8!important;box-shadow:0 5px 17px #555c4b12}
:root[data-theme="light"] .portal-page .week-panel{background:linear-gradient(125deg,#d5d8c9,#cbd5c9 58%,#d9ddcf)!important;border-color:#aebaa8!important}
:root[data-theme="light"] .portal-page .week-panel :where(*){color:#354238}
:root[data-theme="light"] .portal-page .week-panel h2,:root[data-theme="light"] .portal-page .week-panel .week-progress em{color:#586d51}
:root[data-theme="light"] .portal-page .game-panel :where(h1,h2,h3,h4,p,span,strong,b,small,label,li,dt,dd,summary),:root[data-theme="light"] .portal-page .summary-card :where(*){color:#39423b}
:root[data-theme="light"] .portal-page .game-panel .kicker,:root[data-theme="light"] .portal-page .game-panel .eyebrow,:root[data-theme="light"] .portal-page .summary-label,:root[data-theme="light"] .portal-page .month-note,:root[data-theme="light"] .portal-page .summary-converted{color:#61705f}
:root[data-theme="light"] .portal-page .character-filters button,:root[data-theme="light"] .portal-page .account-tab-item,:root[data-theme="light"] .portal-page .account-group-heading button,:root[data-theme="light"] .portal-page .week-step button,:root[data-theme="light"] .portal-page .dashboard-month-nav button,:root[data-theme="light"] .portal-page .character-scroll-controls button,:root[data-theme="light"] .portal-page .account-order-controls button,:root[data-theme="light"] .portal-page .drawer-period-controls button{background:#e3e7df;border-color:#aeb9ac;color:#414a42}
:root[data-theme="light"] .portal-page .character-filters button[aria-pressed="true"],:root[data-theme="light"] .portal-page .account-tab-item>[data-dashboard-account][aria-current="true"]{background:linear-gradient(135deg,#7a896e,#65775f);border-color:#5e735d;color:#fffdf7}
:root[data-theme="light"] .portal-page .character-filters b{color:#805f38}
:root[data-theme="light"] .portal-page .home-memo textarea,:root[data-theme="light"] .portal-page input:not([type="checkbox"]):not([type="radio"]),:root[data-theme="light"] .portal-page select,:root[data-theme="light"] .portal-page textarea{background:#dfe3dc!important;border-color:#b2bcb0!important;color:#303a33!important;color-scheme:light}
:root[data-theme="light"] .portal-page input::placeholder,:root[data-theme="light"] .portal-page textarea::placeholder{color:#707b70}
:root[data-theme="light"] .portal-page button:focus-visible,:root[data-theme="light"] .portal-page a:focus-visible,:root[data-theme="light"] .portal-page input:focus,:root[data-theme="light"] .portal-page select:focus,:root[data-theme="light"] .portal-page textarea:focus{outline-color:#728b6d}
:root[data-theme="light"] .portal-page .loot-price-field{background:#e4e7e0!important}
:root[data-theme="light"] .portal-page .game-progress{background:#d0d8cf;border-color:#aeb9ac}
:root[data-theme="light"] .portal-page .boss-completion-panel{background:linear-gradient(115deg,#e2e6dc,#ebede7 72%)!important;border-color:#bac4b6!important;box-shadow:inset 3px 0 #89956f,0 4px 14px #535c4c12}
:root[data-theme="light"] .portal-page .boss-completion-option{background:#e9ebe5;border-color:#bdc6b8;color:#3d463e}
:root[data-theme="light"] .portal-page .auto-calculated-materials>summary,:root[data-theme="light"] .portal-page .loot-price-category{background:#dfe4da!important;border-color:#aab69e!important;color:#45523f}
:root[data-theme="light"] .theme-ambient-art{top:8vh;width:min(31vw,450px);height:88vh;opacity:.43;filter:saturate(.82) drop-shadow(0 10px 32px #746e5140);mask-image:linear-gradient(180deg,transparent 0%,#000 12%,#000 84%,transparent 100%);-webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 12%,#000 84%,transparent 100%)}
:root[data-theme="light"] .theme-ambient-art img{object-position:right center}
:root[data-theme="light"] .global-theme-switcher{background:#e9ebe5;border-color:#b9c1b4}
:root[data-theme="light"] .global-theme-choice{color:#414a42}
:root[data-theme="light"] .global-theme-choice[aria-pressed="true"]{background:#dce3d7;border-color:#75876c;color:#354237}
:root[data-theme="light"] .portal-nav button.is-current,:root[data-theme="light"] .portal-nav button[aria-current="page"]{background:linear-gradient(135deg,#7a896e,#65775f)!important;color:#fffdf7!important;box-shadow:0 3px 13px #4d5f4938,inset 0 1px #ffffff66!important}
:root[data-theme="dark"] .portal-nav button.is-current,:root[data-theme="dark"] .portal-nav button[aria-current="page"]{background:linear-gradient(135deg,#c94949,#8e2631)!important;color:#fff7f4!important;box-shadow:0 3px 14px #a52b344d,inset 0 1px #ffc2b433!important}
.portal-nav button.is-current{isolation:isolate}
@media(max-width:760px){:root[data-theme="dark"] .theme-ambient-art,:root[data-theme="light"] .theme-ambient-art{top:24vh;width:175px;height:48vh;opacity:.2}.portal-nav button[aria-current="page"],.portal-nav button.is-current{min-height:42px}.account-order-controls button{width:30px;height:30px;min-height:30px;border-radius:9px}}

/* Blend the boss portrait into the page-wide atmosphere and harmonize every chart. */
:root[data-theme="dark"]{--chart-boss:#df5c57;--chart-hunt:#73b9c6;--chart-loot:#d5a153;--chart-line:#ed8178;--chart-point:#ffe0d3;--chart-grid:#855d61;--chart-center:#1a1114;--chart-center-text:#f6ece8;--chart-empty:#cbbaba;--chart-empty-ring:#362126}
:root[data-theme="light"]{--chart-boss:#976c4b;--chart-hunt:#62867a;--chart-loot:#b28b50;--chart-line:#74896e;--chart-point:#526e5c;--chart-grid:#98a69a;--chart-center:#d7ded5;--chart-center-text:#354238;--chart-empty:#626e63;--chart-empty-ring:#c7d0c5}
.theme-ambient-art{top:1vh!important;right:-2vw;width:min(39vw,560px)!important;height:98vh!important;opacity:.5!important;mask-image:radial-gradient(ellipse 73% 74% at 68% 50%,#000 28%,#000d 52%,transparent 100%)!important;-webkit-mask-image:radial-gradient(ellipse 73% 74% at 68% 50%,#000 28%,#000d 52%,transparent 100%)!important}
.theme-ambient-art img{object-fit:cover!important;object-position:70% center!important}
:root[data-theme="dark"] .theme-ambient-art{mix-blend-mode:screen;opacity:.34!important;filter:saturate(.86) contrast(1.04) drop-shadow(0 10px 28px #b51e2840)!important}
:root[data-theme="light"] .theme-ambient-art{mix-blend-mode:multiply;opacity:.48!important;filter:saturate(.7) contrast(.9) brightness(.93)!important}
.income-chart text{fill:var(--text)!important;font-size:11px}
.monthly-bar-fill{fill:var(--chart-line)!important;stroke:var(--chart-point)!important}
.income-donut>span{background:var(--chart-center)!important;color:var(--chart-center-text)!important;border:1px solid color-mix(in srgb,var(--chart-point) 38%,transparent);box-shadow:0 2px 12px #0002}
.income-donut>span b{color:var(--chart-center-text)!important}
.composition{border-color:var(--line)!important}
.composition li,:root[data-theme="dark"] .composition li{color:var(--text)}
.composition li>span,:root[data-theme="dark"] .composition li>span{color:var(--text)}
.composition li>b,:root[data-theme="dark"] .composition li>b{color:var(--text)}
.composition li small{color:var(--muted)!important}
.chart-data,:root[data-theme="dark"] .chart-data{color:var(--muted)}
.chart-data th,.chart-data td{border-color:var(--line)!important;color:var(--text)}
.chart-empty{color:var(--chart-empty)!important}
.weekly-graphs>summary{color:var(--muted)!important}
:root[data-theme="light"] .weekly-graphs>summary{color:#45574b!important}
:root[data-theme="light"] .weekly-compact-total>span,:root[data-theme="light"] .weekly-compact-total>small{color:#4d5b51}
:root[data-theme="light"] .weekly-compact-total>strong{color:#394a3d}
:root[data-theme="light"] .week-completion-strip,:root[data-theme="light"] .week-completion-strip span,:root[data-theme="light"] .week-completion-strip b{color:#3f5044}
:root[data-theme="light"] .week-completion-strip .game-progress{background:#cfd8cd;border-color:#9daa9b}
:root[data-theme="light"] .week-completion-strip .game-progress>span{background:linear-gradient(90deg,#788e6f,#9da77a);box-shadow:none}
:root[data-theme="dark"] .week-completion-strip .game-progress>span{background:linear-gradient(90deg,#c64048,#ed7970);box-shadow:inset 0 1px 3px #fff4}
:root[data-theme="dark"] .week-completion-strip,:root[data-theme="dark"] .week-completion-strip span,:root[data-theme="dark"] .week-completion-strip b{color:#e8d9d7}
:root[data-theme="light"] .week-completion-strip>strong,:root[data-theme="light"] .week-completion-strip>em{color:#785c34}
:root[data-theme="dark"] .week-panel .panel-heading>span,:root[data-theme="dark"] .week-panel .weekly-compact-total>small{color:#dac5c3}
.account-order-controls{gap:5px;padding-left:6px;border-left-color:var(--line)}
.account-order-controls button{width:32px;height:32px;min-height:32px;border-radius:50%;font-size:21px;font-weight:700;line-height:1}
:root[data-theme="dark"] .account-order-controls button{background:#3a1a1e;border-color:#a34d50;color:#fff0ec}
:root[data-theme="dark"] .account-order-controls button:disabled{background:#201416;border-color:#573237;color:#987b7b;opacity:.55}
:root[data-theme="light"] .account-order-controls button{background:#e0e6dc;border-color:#8f9f8d;color:#3e5945}
:root[data-theme="light"] .account-order-controls button:disabled{background:#e6e8e1;border-color:#c1c8be;color:#7b857a;opacity:.58}
:root[data-theme="light"] .account-tab-item{background:#eef0ea;border-color:#bdc6b9}
:root[data-theme="light"] .account-tab-item>[data-dashboard-account]{color:#46544a}
:root[data-theme="light"] .account-tab-item>[data-dashboard-account][aria-current="true"]{background:#71846d;border-color:#62775f;color:#fffdf7}
:root[data-theme="dark"] .account-tab-item{background:#170f12;border-color:#542a30}
:root[data-theme="dark"] .account-tab-item>[data-dashboard-account]{color:#eadbd9}
:root[data-theme="dark"] .account-tab-item>[data-dashboard-account][aria-current="true"]{background:linear-gradient(135deg,#bd4244,#84252c);border-color:#dd716d;color:#fff8f5}
@media(max-width:760px){.theme-ambient-art{width:200px!important;height:58vh!important;top:20vh!important;right:-7vw!important;opacity:.22!important}.composition{border-left:0!important;border-top:1px solid var(--line)!important}.income-donut{width:110px;height:110px}.income-donut>span{width:80px;height:80px}}

/* Cross-screen polish: keep charts, navigation arrows, and focus states coherent. */
.composition{display:grid!important;grid-template-columns:126px minmax(0,1fr);align-items:center;justify-content:stretch;gap:14px;padding-left:16px}
.composition ul{width:auto;min-width:0}
.composition li{display:grid;grid-template-columns:10px minmax(0,1fr) auto auto;align-items:center;gap:6px;white-space:normal;line-height:1.4}
.composition li>span{min-width:0;overflow-wrap:anywhere}
.composition li>b{min-width:0;text-align:right;overflow-wrap:anywhere}
.revenue-shard-count{display:block;font-size:13px;font-weight:700;line-height:1.5;color:var(--chart-hunt)!important}
.week-step button,.dashboard-month-nav button,.character-scroll-controls button,.account-order-controls button{display:inline-grid;place-items:center;width:36px;height:36px;min-height:36px;padding:0;border:1px solid var(--line);border-radius:9px;background:var(--panel-2);color:var(--text);font-size:20px;font-weight:700;line-height:1;cursor:pointer;transition:background-color .15s,border-color .15s,transform .15s}
.week-step button:hover,.dashboard-month-nav button:hover,.character-scroll-controls button:hover,.account-order-controls button:hover:not(:disabled){background:color-mix(in srgb,var(--panel-2),var(--text) 9%);border-color:var(--muted)}
.week-step button:active,.dashboard-month-nav button:active,.character-scroll-controls button:active,.account-order-controls button:active:not(:disabled){transform:translateY(1px)}
.week-step button:disabled,.dashboard-month-nav button:disabled,.character-scroll-controls button:disabled,.account-order-controls button:disabled{opacity:.52;cursor:not-allowed}
:root[data-theme="dark"] .week-step button,:root[data-theme="dark"] .dashboard-month-nav button,:root[data-theme="dark"] .character-scroll-controls button,:root[data-theme="dark"] .account-order-controls button{background:#24171a;border-color:#754148;color:#ffebe7}
:root[data-theme="light"] .week-step button,:root[data-theme="light"] .dashboard-month-nav button,:root[data-theme="light"] .character-scroll-controls button,:root[data-theme="light"] .account-order-controls button{background:#e1e6df;border-color:#9eaa9c;color:#3e4c40}
:root[data-theme="dark"] :where(button,a,input,select,textarea,summary):focus-visible{outline:2px solid #f08b7e;outline-offset:2px}
:root[data-theme="light"] :where(button,a,input,select,textarea,summary):focus-visible{outline:2px solid #71886e;outline-offset:2px}
:root[data-theme="light"] .loot-chip,:root[data-theme="light"] .item-summary-token{background:#e2e6df;border-color:#aeb9ab;color:#39463b}
:root[data-theme="light"] .loot-chip small,:root[data-theme="light"] .item-summary-token small{color:#59685a}
@media(max-width:760px){.composition{grid-template-columns:110px minmax(0,1fr);gap:10px;padding:14px 0 0}.composition li{grid-template-columns:9px minmax(0,1fr) auto;gap:5px;font-size:11px}.composition li small{grid-column:2/-1;justify-self:end}.week-step button,.dashboard-month-nav button,.character-scroll-controls button,.account-order-controls button{width:32px;height:32px;min-height:32px;border-radius:8px}}
@media(max-width:380px){.composition{grid-template-columns:92px minmax(0,1fr);gap:8px}.income-donut{width:92px;height:92px}.income-donut>span{width:68px;height:68px}.income-donut>span b{font-size:12px}}

/* Light theme: cover settings accordions and date controls that sit outside dashboard panels. */
:root[data-theme="light"] .loot-price-panel>p{color:#48534b!important}
:root[data-theme="light"] .price-settings-guide{background:#e9ece6!important;border-color:#b9c2b5!important;color:#455047!important}
:root[data-theme="light"] .price-settings-guide>summary{background:#e1e6df!important;color:#3d4b40!important;border-color:#aeb9aa!important}
:root[data-theme="light"] .price-settings-guide>p{color:#48534b!important}
:root[data-theme="light"] .auto-calculated-materials>summary.loot-price-category{background:#e1e6df!important;border-color:#aeb9aa!important;color:#3d4b40!important}
:root[data-theme="light"] .auto-calculated-materials>summary.loot-price-category>span{color:#3d4b40!important}
:root[data-theme="light"] .auto-calculated-materials>summary.loot-price-category>small,:root[data-theme="light"] .loot-price-category small{color:#59675b!important}
:root[data-theme="light"] .period-arrow,:root[data-theme="light"] .card-month-selector button,:root[data-theme="light"] .home-hunt-date .period-field button{background:#e1e6df!important;border-color:#aab6a8!important;color:#3d4b40!important;box-shadow:none!important}
:root[data-theme="light"] .period-arrow:hover,:root[data-theme="light"] .card-month-selector button:hover,:root[data-theme="light"] .home-hunt-date .period-field button:hover{background:#d7dfd5!important;border-color:#849783!important}
:root[data-theme="light"] .period-arrow:focus-visible,:root[data-theme="light"] .card-month-selector button:focus-visible,:root[data-theme="light"] .home-hunt-date .period-field button:focus-visible{outline:2px solid #71886e!important;outline-offset:2px}
:root[data-theme="dark"] .price-settings-guide{background:#1a1215;border-color:#4b292e;color:#eadbd9}
:root[data-theme="dark"] .price-settings-guide>summary{background:#2a171b;color:#f1d9d6}
:root[data-theme="dark"] .price-settings-guide>p,:root[data-theme="dark"] .loot-price-panel>p{color:#d1c4c2}
:root[data-theme="dark"] .period-arrow,:root[data-theme="dark"] .card-month-selector button,:root[data-theme="dark"] .home-hunt-date .period-field button{background:#24171a;border-color:#754148;color:#ffebe7}

/* Theme every small control too: remove buttons, native checks, and item icon tiles. */
:root[data-theme="light"] .home-character-remove{background:#e5e9e1ed!important;border-color:#879487!important;color:#38453b!important;box-shadow:0 2px 8px #28332945}
:root[data-theme="light"] .home-character-remove:hover{background:#d4ddcf!important;border-color:#667d67!important;color:#29382e!important}
:root[data-theme="light"] input[type="checkbox"],:root[data-theme="light"] input[type="radio"]{accent-color:#71866c!important}
:root[data-theme="dark"] input[type="checkbox"],:root[data-theme="dark"] input[type="radio"]{accent-color:#d76b65!important}
:root[data-theme="light"] .loot-price-title-row>.item-icon,:root[data-theme="light"] .loot-price-kind-icon{background-color:#e4e9e2!important;border-color:#aab7a9!important}
:root[data-theme="light"] .loot-price-title-row>.item-icon.generic{color:#53604f!important}
:root[data-theme="dark"] .loot-price-title-row>.item-icon,:root[data-theme="dark"] .loot-price-kind-icon{background-color:#24171a;border-color:#754148}
:root[data-theme="light"] .home-character-remove:focus-visible{outline:2px solid #71866c;outline-offset:2px}
:root .home-character-order{position:absolute;top:42px;right:7px;z-index:3;display:grid;gap:3px}
:root .home-character-order button{display:grid;place-items:center;width:24px;height:22px;min-height:22px;padding:0;border:1px solid #754148;border-radius:6px;background:#24171a;color:#ffebe7;font-size:12px;font-weight:700;line-height:1;cursor:pointer;box-shadow:0 2px 7px #0005}
:root .home-character-order button:hover:not(:disabled){background:#3a1d22;border-color:#bd6464}
:root .home-character-order button:disabled{opacity:.4;cursor:not-allowed;box-shadow:none}
:root .home-character-order button:focus-visible{outline:2px solid #d76b65;outline-offset:2px}
:root[data-theme="light"] .home-character-order button{background:#e5e9e1ed!important;border-color:#879487!important;color:#38453b!important;box-shadow:0 2px 8px #28332945}
:root[data-theme="light"] .home-character-order button:hover:not(:disabled){background:#d4ddcf!important;border-color:#667d67!important;color:#29382e!important}
:root[data-theme="light"] .home-character-order button:focus-visible{outline:2px solid #71866c;outline-offset:2px}
:root .character-drawer .drawer-period-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
:root .character-drawer .drawer-period-controls>button{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto;width:auto!important;min-width:max-content;padding:5px 10px!important;white-space:nowrap;word-break:keep-all}
:root .character-drawer .drawer-period-controls>#character-drawer-week{flex:1 1 auto;min-width:0;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:root[data-theme="light"] .home-character-actions button{background:#e1e6df!important;border-color:#aab7a9!important;color:#3d4b40!important}
:root[data-theme="light"] .home-character-actions button:last-child,:root[data-theme="light"] .button.danger{background:#f1e1df!important;border-color:#c38b86!important;color:#713e3d!important}
:root[data-theme="light"] .home-character-actions button:last-child:hover,:root[data-theme="light"] .button.danger:hover{background:#ead1ce!important;border-color:#a96d69!important;color:#5e302f!important}
:root[data-theme="light"] .boss-mode{background:#e8ebe5!important;border-color:#b5c0b1!important;color:#465248!important}
:root[data-theme="light"] .boss-mode:has(input:checked){background:#d8e3d5!important;border-color:#7d9279!important;color:#354737!important}
:root[data-theme="light"] .boss-mode:has(input:checked) span,:root[data-theme="light"] .boss-mode:has(input:checked) small{color:#354737!important}
:root[data-theme="light"] .monthly-week-stats{border-color:#bdc8ba}
:root[data-theme="light"] .monthly-week-stats p,:root[data-theme="light"] .monthly-week-stats small{color:#59665a!important}
:root[data-theme="light"] .monthly-week-stats th,:root[data-theme="light"] .monthly-week-stats td{border-color:#cbd3c6;color:#3f4a41}
:root[data-theme="light"] .monthly-week-stats thead{background:#dfe5dc!important;color:#3c4a3e}
:root[data-theme="light"] .monthly-week-stats tbody th{color:#3d493f}
:root[data-theme="light"] .monthly-week-stats tfoot{background:#e7e6da!important;color:#514a37}
:root[data-theme="light"] .monthly-black-row{background:#e5e9e1}
:root[data-theme="light"] .hunt-breakdown{color:#536752!important}
:root[data-theme="light"] .black-mage-status-group{background:#e8ebe5;border-color:#b7c2b4}
:root[data-theme="light"] .black-mage-status-group h3,:root[data-theme="light"] .black-mage-status-group.unset h3,:root[data-theme="light"] .black-mage-status-empty{color:#515f52}
:root[data-theme="light"] .black-mage-status-group.done h3{color:#3f7358}
:root[data-theme="light"] .black-mage-status-group.pending h3{color:#876d38}
:root[data-theme="light"] .black-mage-status-group button{background:#e1e6df;border-color:#b5c0b2;color:#3e4b40}
:root[data-theme="light"] .black-mage-status-group button small{color:#5f6c60}
:root[data-theme="light"] .black-mage-income-summary>div{background:#e9ece6;border-color:#bdc7b9}
:root[data-theme="light"] .black-mage-income-summary span,:root[data-theme="light"] .black-mage-income-summary>div>small{color:#5e6a5e}
:root[data-theme="light"] .black-mage-income-summary strong,:root[data-theme="light"] .black-mage-income-summary>div+div strong{color:#4a6950}
:root[data-theme="light"] .black-mage-quick-fields,:root[data-theme="light"] .ledger-party-control{color:#4a574c}
:root[data-theme="light"] .black-mage-quick-fields select,:root[data-theme="light"] .ledger-party-control select{background:#f0f1ec;border-color:#b6c0b3;color:#3d493f}
:root[data-theme="light"] .boss-settings-period-heading{color:#756044}
:root[data-theme="light"] .mobile-nav{background:#f1f2edf2;border-color:#b7c1b4;box-shadow:0 -4px 18px #4b57461c}
:root[data-theme="light"] .mobile-nav button{color:#465349}
:root[data-theme="light"] .mobile-nav button[aria-current="page"],:root[data-theme="light"] .mobile-nav button.is-current{background:#71866c;color:#fffdf7}
:root[data-theme="dark"] .mobile-nav{background:#100b0ef2;border-color:#572b31}
:root .brand-mark{overflow:visible;background:transparent!important;box-shadow:none!important;border-radius:0!important}
:root .brand-mark img{display:block;width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
.account-switcher .account-multi-toggle{display:flex;flex:0 0 auto;align-items:center;gap:6px;min-height:42px;padding:7px 12px;border:1px solid #536b87;border-radius:10px;background:#15283e;color:#d4e2f1;font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer}
.account-switcher .account-multi-toggle[aria-pressed="true"]{background:#30445b;border-color:#a1bfd4;color:#fff;box-shadow:inset 0 0 0 1px #c3dded38}
.account-switcher .account-multi-toggle small{font-size:10px;opacity:.82}
:root[data-theme="dark"] .account-switcher .account-multi-toggle{background:#211518;border-color:#67363b;color:#f0dddb}
:root[data-theme="dark"] .account-switcher .account-multi-toggle[aria-pressed="true"]{background:#54262b;border-color:#d3766e;color:#fff5f1}
:root[data-theme="light"] .account-switcher .account-multi-toggle{background:#e3e7df;border-color:#aab7a9;color:#3d4b40}
:root[data-theme="light"] .account-switcher .account-multi-toggle[aria-pressed="true"]{background:#71866c;border-color:#637a5f;color:#fffdf7}

/* Give the transparent pixel character enough room in the brand header. */
.brand-mark{width:52px!important;height:52px!important;flex:0 0 52px!important}
@media(max-width:760px){.brand-mark{width:46px!important;height:46px!important;flex-basis:46px!important}}
:root[data-theme="light"] .portal-page .game-panel .kicker,:root[data-theme="light"] .portal-page .game-panel .eyebrow,:root[data-theme="light"] .portal-page .summary-label,:root[data-theme="light"] .portal-page .month-note,:root[data-theme="light"] .portal-page .summary-converted{color:#505f4c!important}
:root[data-theme="light"] .account-tab-item>[data-dashboard-account][aria-current="true"]{background:#65775f!important}
:root[data-theme="light"] .black-mage-status-group.pending h3{color:#6c552b!important}

/* Finish the theme split for cards and nested controls that used to keep the old navy/lavender palette. */
:root[data-theme="dark"] .game-character{background:#151013;color:#f5eeee;border-color:color-mix(in srgb,var(--job-accent),#9a4549 45%)}
:root[data-theme="dark"] .game-character .character-art{background-image:linear-gradient(to top,#110d10 4%,#110d10f5 27%,#110d10ad 48%,#110d1018 73%,#110d1008 100%),linear-gradient(90deg,#110d10b8,transparent 85%),var(--job-image)}
:root[data-theme="dark"] .game-character .character-identity{background:linear-gradient(90deg,#110d10dc 0%,#110d1090 55%,transparent 90%);text-shadow:0 2px 5px #000c}
:root[data-theme="dark"] .game-character .character-identity>strong,:root[data-theme="dark"] .game-character .character-identity>span:not(.character-level){color:#f5eeee}
:root[data-theme="dark"] .game-character .character-card-bottom{background:linear-gradient(to bottom,#110d1044,#110d10e8 65%);text-shadow:0 1px 3px #0009}
:root[data-theme="dark"] .game-character .card-progress-label,:root[data-theme="dark"] .game-character .card-income>span,:root[data-theme="dark"] .game-character .remaining-income{color:#d7c8c6}
:root[data-theme="dark"] .game-character .card-progress-label b,:root[data-theme="dark"] .game-character .card-income strong,:root[data-theme="dark"] .game-character .remaining-income b,:root[data-theme="dark"] .game-character .card-expected{color:#f5eeee}
:root[data-theme="dark"] .game-character .card-progress-label small,:root[data-theme="dark"] .game-character .progress-percent,:root[data-theme="dark"] .game-character .card-income>small{color:#c7b9b8}
:root[data-theme="dark"] .game-character .game-progress{background:#211519;border-color:#593136}
:root[data-theme="dark"] .game-character .game-progress>span{background:linear-gradient(90deg,#c64048,#ed7970)}
:root[data-theme="dark"] .game-character .card-black-mage{background:#211417dd;border-color:#78434a;color:#eadbda}
:root[data-theme="dark"] .game-character .card-black-mage.unset{color:#c7b9b8}
:root[data-theme="dark"] .game-character .home-loot-caption{color:#dbc4c0}
:root[data-theme="dark"] .game-character .character-card-action{color:#f2aaa0}
:root[data-theme="dark"] .recent-loot-card{background:linear-gradient(145deg,#211518,#151013);border-color:#593136;color:#f0e6e4}
:root[data-theme="dark"] .recent-loot-card>div:first-child{background:#352126;border:1px solid #593136}
:root[data-theme="dark"] .recent-loot-card>.loot-record-sources{height:auto;display:flex;place-items:initial;align-items:stretch;margin-top:5px;background:transparent;border:0}
:root[data-theme="dark"] .recent-loot-card small,:root[data-theme="dark"] .recent-loot-card time,:root[data-theme="dark"] .recent-loot-card .loot-record-sources{color:#c7b9b8}
:root[data-theme="dark"] .character-drawer .ledger-close-bar{background:#110d10}
:root[data-theme="dark"] .character-drawer .ledger-close-bar button{background:#21171a;border-color:#593136;color:#f1e6e4}
:root[data-theme="dark"] .game-characters,:root[data-theme="dark"] .home-hunt-editor #hunt-character-grid,:root[data-theme="dark"] .character-drawer-body,:root[data-theme="dark"] .ledger-scroll{scrollbar-color:#78434a #171013}
:root[data-theme="dark"] .job-search-field{background:#100c0e;border-color:#59353a}
:root[data-theme="dark"] .job-search-field>span{color:#d4aaa7}
:root[data-theme="dark"] .job-picker-results{background:#171013;border-color:#754148;scrollbar-color:#78434a #171013}
:root[data-theme="dark"] .job-picker-group,:root[data-theme="dark"] .job-picker-empty{color:#c7b9b8}
:root[data-theme="dark"] .job-picker-results [role="option"]{color:#f0e6e4}
:root[data-theme="dark"] .job-picker-results [role="option"]:hover,:root[data-theme="dark"] .job-picker-results [role="option"].active{background:#3a1d22;color:#fff8f5}
:root[data-theme="dark"] .job-picker-results [role="option"][aria-selected="true"]{color:#f2aaa0;box-shadow:inset 3px 0 #d96b5f}
:root[data-theme="dark"] .modal-job-preview{background-image:linear-gradient(90deg,#171013e8,#17101324),var(--job-image);color:#f0e6e4}

:root[data-theme="light"] .game-character{background:#e9ebe5;color:#343b35;border-color:color-mix(in srgb,var(--job-accent),#899581 50%);box-shadow:0 3px 12px #555c4b20}
:root[data-theme="light"] .game-character .character-art{background-image:linear-gradient(to top,#e9ebe5 4%,#e9ebe5f5 27%,#e9ebe5ad 48%,#e9ebe51b 73%,#e9ebe508 100%),linear-gradient(90deg,#e9ebe5dc,transparent 88%),var(--job-image)}
:root[data-theme="light"] .game-character .character-identity{background:linear-gradient(90deg,#e9ebe5e8 0%,#e9ebe5a8 55%,transparent 90%);text-shadow:none}
:root[data-theme="light"] .game-character .character-identity>strong{color:#303a33!important}
:root[data-theme="light"] .game-character .character-identity>span:not(.character-level){color:#536055!important}
:root[data-theme="light"] .game-character .character-card-bottom{background:linear-gradient(to bottom,#e9ebe544,#e9ebe5ed 65%);text-shadow:none}
:root[data-theme="light"] .game-character .card-progress-label,:root[data-theme="light"] .game-character .card-income>span,:root[data-theme="light"] .game-character .remaining-income{color:#566257!important}
:root[data-theme="light"] .game-character .card-progress-label b,:root[data-theme="light"] .game-character .card-income strong,:root[data-theme="light"] .game-character .remaining-income b,:root[data-theme="light"] .game-character .card-expected{color:#303a33!important}
:root[data-theme="light"] .game-character .card-progress-label small,:root[data-theme="light"] .game-character .progress-percent,:root[data-theme="light"] .game-character .card-income>small{color:#687469!important}
:root[data-theme="light"] .game-character .game-progress{background:#d0d8cf;border-color:#aeb9ac}
:root[data-theme="light"] .game-character .game-progress>span{background:linear-gradient(90deg,#788e6f,#9da77a);box-shadow:none}
:root[data-theme="light"] .game-character.done .game-progress>span{background:linear-gradient(90deg,#6f967d,#9ab59b)}
:root[data-theme="light"] .game-character .card-black-mage{background:#e0e5dc;border-color:#aeb9ac;color:#424f43}
:root[data-theme="light"] .game-character .card-black-mage.done{background:#d9e8dc;border-color:#8bad91;color:#3f7358}
:root[data-theme="light"] .game-character .card-black-mage.pending{background:#eee7d6;border-color:#c8b887;color:#705b2e}
:root[data-theme="light"] .game-character .card-black-mage.unset{background:#e4e6df;border-color:#c0c6ba;color:#687268}
:root[data-theme="light"] .game-character .home-loot-caption{color:#566257!important}
:root[data-theme="light"] .game-character .character-card-action{color:#617653!important}
:root[data-theme="light"] .game-character .state-badge{background:#e0e4dc;border-color:#aeb8aa;color:#435044}
:root[data-theme="light"] .game-character.done .state-badge{background:#9af5d0;border-color:#65b99c;color:#14392e}
:root[data-theme="light"] .game-character.active .state-badge{background:#ffdc98;border-color:#d5b66e;color:#382c13}
:root[data-theme="light"] .recent-loot-card{background:linear-gradient(145deg,#f0eee8,#e6e7df);border-color:#c3c8bb;color:#3e453e}
:root[data-theme="light"] .recent-loot-card>div:first-child{background:#dfe4da;border-color:#c3c8bb}
:root[data-theme="light"] .recent-loot-card>.loot-record-sources{height:auto;display:flex;place-items:initial;align-items:stretch;margin-top:5px;background:transparent;border:0}
:root[data-theme="light"] .recent-loot-card small,:root[data-theme="light"] .recent-loot-card time,:root[data-theme="light"] .recent-loot-card .loot-record-sources{color:#616b61}
:root[data-theme="light"] .character-drawer .ledger-close-bar{background:#e9ebe5}
:root[data-theme="light"] .character-drawer .ledger-close-bar button{background:#e1e6df;border-color:#aeb9ac;color:#414a42}
:root[data-theme="light"] .game-characters,:root[data-theme="light"] .home-hunt-editor #hunt-character-grid,:root[data-theme="light"] .character-drawer-body,:root[data-theme="light"] .ledger-scroll{scrollbar-color:#9da99a #e2e6df}
:root[data-theme="light"] .job-search-field{background:#dfe3dc;border-color:#b2bcb0}
:root[data-theme="light"] .job-search-field>span{color:#657568}
:root[data-theme="light"] .job-picker-results{background:#eeece6;border-color:#b9c1b4;box-shadow:0 9px 24px #46423424;scrollbar-color:#9da99a #e2e6df}
:root[data-theme="light"] .job-picker-group,:root[data-theme="light"] .job-picker-empty{color:#626b61}
:root[data-theme="light"] .job-picker-results [role="option"]{color:#39423b}
:root[data-theme="light"] .job-picker-results [role="option"]:hover,:root[data-theme="light"] .job-picker-results [role="option"].active{background:#dce3d7;color:#354237}
:root[data-theme="light"] .job-picker-results [role="option"][aria-selected="true"]{color:#526c51;box-shadow:inset 3px 0 #71866c}
:root[data-theme="light"] .modal-job-preview{background-image:linear-gradient(90deg,#e9ebe5ed,#e9ebe524),var(--job-image);color:#39423b}

/* The quick-settlement drawer lives outside .portal-page, so it needs its own complete theme layer. */
:root[data-theme="light"] .character-drawer{background:#eeece6!important;border-color:#c4bda9!important;color:#3c463d!important;box-shadow:0 18px 50px #46423424!important}
:root[data-theme="light"] .character-drawer-head,:root[data-theme="light"] .character-drawer .drawer-period-controls{background:#e5e2d8!important;border-color:#c9c3b5!important;color:#3f4a41!important}
:root[data-theme="light"] .character-drawer-head h2,:root[data-theme="light"] .character-drawer-head p,:root[data-theme="light"] .character-drawer .drawer-period-controls>*{color:#3f4a41!important}
:root[data-theme="light"] .character-drawer .drawer-period-controls button,:root[data-theme="light"] .character-drawer .drawer-close{background:#e1e6df!important;border-color:#aeb9ac!important;color:#3d4b40!important;box-shadow:none!important}
:root[data-theme="light"] .character-drawer .ledger-scroll,:root[data-theme="light"] .character-drawer .ledger-monthly-section{background:#eeece6!important;color:#3d473f!important}
:root[data-theme="light"] .character-drawer .boss-completion-panel{background:linear-gradient(115deg,#e2e6dc,#ebede7 72%)!important;border-color:#bac4b6!important;box-shadow:inset 3px 0 #89956f,0 4px 14px #535c4c12!important}
:root[data-theme="light"] .character-drawer .boss-completion-option,:root[data-theme="light"] .character-drawer .loot-ledger-row{background:#e9ebe5!important;border-color:#bdc6b8!important;color:#3d473f!important}
:root[data-theme="light"] .character-drawer .loot-ledger-boss,:root[data-theme="light"] .character-drawer .boss-name-with-icon,:root[data-theme="light"] .character-drawer .ledger-reward-label,:root[data-theme="light"] .character-drawer .boss-loot-title,:root[data-theme="light"] .character-drawer .boss-quick-status strong,:root[data-theme="light"] .character-drawer .boss-quick-status small,:root[data-theme="light"] .character-drawer .boss-quick-fields label,:root[data-theme="light"] .character-drawer .ledger-completion-controls{color:#435047!important}
:root[data-theme="light"] .character-drawer .boss-loot-entry,:root[data-theme="light"] .character-drawer .black-box-choice{background:#e1e6df!important;border-color:#aeb9ac!important;color:#3d493f!important}
:root[data-theme="light"] .character-drawer .boss-loot-entry label,:root[data-theme="light"] .character-drawer .boss-loot-entry span,:root[data-theme="light"] .character-drawer .boss-loot-meta,:root[data-theme="light"] .character-drawer .black-box-choice-title,:root[data-theme="light"] .character-drawer .black-box-options label{color:#3d493f!important}
:root[data-theme="light"] .character-drawer .boss-loot-entry:has(input:checked){background:#d8e3d5!important;border-color:#7d9279!important}
:root[data-theme="light"] .character-drawer .boss-quick-fields select,:root[data-theme="light"] .character-drawer .ledger-party-control select,:root[data-theme="light"] .character-drawer .loot-quantity-field input{background:#f0f1ec!important;border-color:#b6c0b3!important;color:#3d493f!important}
:root[data-theme="light"] .character-drawer .loot-chip,:root[data-theme="light"] .character-drawer .item-summary-token{background:#e2e6df!important;border-color:#aeb9ab!important;color:#39463b!important}
:root[data-theme="light"] .character-drawer .ledger-close-bar{background:#eeece6!important}
:root[data-theme="light"] .character-drawer .ledger-close-bar button{background:#e1e6df!important;border-color:#aeb9ac!important;color:#414a42!important}
:root[data-theme="dark"] .character-drawer{background:#171013!important;border-color:#593136!important;color:#f0e6e4!important}
:root[data-theme="dark"] .character-drawer-head,:root[data-theme="dark"] .character-drawer .drawer-period-controls{background:#211518!important;border-color:#593136!important;color:#f0e6e4!important}
:root[data-theme="dark"] .character-drawer-head h2,:root[data-theme="dark"] .character-drawer-head p,:root[data-theme="dark"] .character-drawer .drawer-period-controls>*{color:#f0e6e4!important}
:root[data-theme="dark"] .character-drawer .drawer-period-controls button,:root[data-theme="dark"] .character-drawer .drawer-close{background:#24171a!important;border-color:#754148!important;color:#ffebe7!important}
:root[data-theme="dark"] .character-drawer .ledger-scroll,:root[data-theme="dark"] .character-drawer .ledger-monthly-section{background:#171013!important;color:#eadbda!important}
:root[data-theme="dark"] .character-drawer .boss-completion-panel{background:linear-gradient(115deg,#211518,#171013 72%)!important;border-color:#593136!important;box-shadow:inset 3px 0 #9a4549,0 4px 14px #0003!important}
:root[data-theme="dark"] .character-drawer .boss-completion-option,:root[data-theme="dark"] .character-drawer .loot-ledger-row{background:#201518!important;border-color:#4e2c31!important;color:#f0e6e4!important}
:root[data-theme="dark"] .character-drawer .loot-ledger-boss,:root[data-theme="dark"] .character-drawer .boss-name-with-icon,:root[data-theme="dark"] .character-drawer .ledger-reward-label,:root[data-theme="dark"] .character-drawer .boss-loot-title,:root[data-theme="dark"] .character-drawer .boss-quick-status strong,:root[data-theme="dark"] .character-drawer .boss-quick-status small,:root[data-theme="dark"] .character-drawer .boss-quick-fields label,:root[data-theme="dark"] .character-drawer .ledger-completion-controls{color:#e8d9d7!important}
:root[data-theme="dark"] .character-drawer .boss-loot-entry,:root[data-theme="dark"] .character-drawer .black-box-choice{background:#24171a!important;border-color:#593136!important;color:#f0e6e4!important}
:root[data-theme="dark"] .character-drawer .boss-loot-entry label,:root[data-theme="dark"] .character-drawer .boss-loot-entry span,:root[data-theme="dark"] .character-drawer .boss-loot-meta,:root[data-theme="dark"] .character-drawer .black-box-choice-title,:root[data-theme="dark"] .character-drawer .black-box-options label{color:#f0e6e4!important}
:root[data-theme="dark"] .character-drawer .boss-loot-entry:has(input:checked){background:#3a1d22!important;border-color:#a85a58!important}
:root[data-theme="dark"] .character-drawer .boss-quick-fields select,:root[data-theme="dark"] .character-drawer .ledger-party-control select,:root[data-theme="dark"] .character-drawer .loot-quantity-field input{background:#171013!important;border-color:#593136!important;color:#f0e6e4!important}
:root[data-theme="dark"] .character-drawer .loot-chip,:root[data-theme="dark"] .character-drawer .item-summary-token{background:#2b1a1e!important;border-color:#754148!important;color:#f1ddd9!important}
:root[data-theme="dark"] .character-drawer .ledger-close-bar{background:#171013!important}
:root[data-theme="dark"] .character-drawer .ledger-close-bar button{background:#21171a!important;border-color:#593136!important;color:#f1e6e4!important}

/* The source mascot is high resolution pixel art: let Chromium downsample it smoothly after cropping. */
:root .brand-mark{overflow:hidden!important;border-radius:12px!important}
:root .brand-mark img{width:100%!important;height:100%!important;object-fit:contain!important;image-rendering:auto!important;transform:none}

/* Contrast pass for secondary copy over light cards and in the settlement drawer. */
:root[data-theme="light"] .character-drawer .loot-quantity-field,:root[data-theme="light"] .character-drawer .loot-quantity-field input:disabled,:root[data-theme="light"] .character-drawer .boss-loot-entry small,:root[data-theme="light"] .character-drawer .black-box-options small{color:#465348!important;opacity:1!important}
:root[data-theme="light"] .character-drawer .loot-quantity-field input:disabled{background:#e7e9e3!important;border-color:#c0c8bd!important}
:root[data-theme="light"] .game-character .character-identity{background:linear-gradient(90deg,#e9ebe5f5 0%,#e9ebe5d6 58%,#e9ebe540 91%,transparent 100%)!important}
:root[data-theme="light"] .game-character .character-identity>strong{color:#2e3b31!important;text-shadow:0 1px 0 #ffffffd9!important}
:root[data-theme="light"] .game-character .character-identity>span:not(.character-level){color:#435348!important;text-shadow:0 1px 0 #ffffffc7!important}
:root[data-theme="light"] .game-character .character-level{color:#526d50!important;text-shadow:0 1px 0 #ffffffc7!important}
:root[data-theme="dark"] .character-drawer .loot-quantity-field,:root[data-theme="dark"] .character-drawer .loot-quantity-field input:disabled,:root[data-theme="dark"] .character-drawer .boss-loot-entry small,:root[data-theme="dark"] .character-drawer .black-box-options small{color:#d8c9c6!important;opacity:1!important}
:root[data-theme="dark"] .character-drawer .loot-quantity-field input:disabled{background:#21181a!important;border-color:#57393d!important}
:root[data-theme="dark"] .game-character .character-identity>strong{color:#fff5f1!important;text-shadow:0 2px 5px #000d!important}
:root[data-theme="dark"] .game-character .character-identity>span:not(.character-level){color:#e1cfcc!important;text-shadow:0 2px 5px #000c!important}

/* Downsampling must preserve fine details instead of dropping source pixels. */
:root .item-icon{image-rendering:auto!important;transform:none!important}
:root .loot-price-title-row>.item-icon{width:32px!important;height:32px!important;flex:0 0 32px!important;background-color:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
:root .recent-loot-card .item-icon{width:36px;height:36px;flex-basis:36px}
:root[data-theme="light"] .drawer-section-nav button{background:#e1e6df;border-color:#aeb9ac;color:#3d4b40}
:root[data-theme="light"] .drawer-section-nav button[aria-pressed="true"]{background:#d5dfd0;border-color:#788e70;color:#334a36}
:root[data-theme="dark"] .drawer-section-nav button{background:#24171a;border-color:#754148;color:#eadbda}
:root[data-theme="dark"] .drawer-section-nav button[aria-pressed="true"]{background:#482328;border-color:#bd6464;color:#fff0ea}
:root[data-theme="light"] .character-drawer .nexon-character-panel>summary,:root[data-theme="light"] .character-drawer .boss-completion-panel>summary strong,:root[data-theme="light"] .character-drawer .boss-completion-panel .boss-list-mode{color:#435047!important}
:root[data-theme="light"] .character-drawer .nexon-character-panel>summary span{color:#566b58!important}
:root[data-theme="dark"] .character-drawer .nexon-character-panel>summary,:root[data-theme="dark"] .character-drawer .boss-completion-panel>summary strong,:root[data-theme="dark"] .character-drawer .boss-completion-panel .boss-list-mode{color:#e8d9d7!important}
:root[data-theme="dark"] .character-drawer .nexon-character-panel>summary span{color:#d1b9b5!important}

/* Final component palette shared by pages and dialogs. */
:root[data-theme="light"]{--ui-surface:#e9ebe5;--ui-raised:#e1e6df;--ui-border:#aeb9ac;--ui-copy:#39463d;--ui-secondary:#526254;--ui-selected:#d5dfd0;--ui-success:#356347}
:root[data-theme="dark"]{--ui-surface:#201518;--ui-raised:#2b1a1e;--ui-border:#754148;--ui-copy:#f0e6e4;--ui-secondary:#d1b9b5;--ui-selected:#482328;--ui-success:#b1d7bf}
:root[data-theme] .loot-price-field,:root[data-theme] .boss-all-completion{background:var(--ui-surface)!important;border-color:var(--ui-border)!important;color:var(--ui-copy)!important}
:root[data-theme] .boss-all-completion span,:root[data-theme] .boss-all-completion small,:root[data-theme] .boss-completion-heading>span:not(.boss-list-toggle){color:var(--ui-secondary)!important}
:root[data-theme] details.boss-completion-panel>summary .boss-list-toggle{background:var(--ui-selected)!important;border-color:var(--ui-border)!important;color:var(--ui-copy)!important;box-shadow:none!important}
:root[data-theme] .ledger-boss-completed{color:var(--ui-success)!important}
:root[data-theme] .nexon-account-heading p,:root[data-theme] .boss-completion-panel>p,:root[data-theme] .boss-tracker-note,:root[data-theme] .boss-source-note,:root[data-theme] .nexon-account-status,:root[data-theme] .nexon-profile small,:root[data-theme] .nexon-times,:root[data-theme] .nexon-credit{color:var(--ui-secondary)!important}
:root[data-theme] .footer,:root[data-theme] .footer a{color:var(--ui-secondary)!important;border-color:var(--ui-border)!important}
:root[data-theme="light"] .character-identity :is(strong,span),:root[data-theme="light"] .brand h1{ text-shadow:none!important }
:root[data-theme] .nexon-manager-dialog .nexon-account-settings{background:var(--ui-surface)!important;border-color:var(--ui-border)!important}
:root[data-theme] .revenue-shard-count,:root[data-theme] .ledger-monthly-heading,:root[data-theme] .character-drawer .kicker,:root[data-theme] .nexon-manager-dialog .kicker{color:var(--ui-secondary)!important}
:root[data-theme] .recent-loot-card>.loot-total-quantity{font-size:13px;font-weight:700;line-height:1.5;color:var(--ui-copy)!important}
:root[data-theme] .recent-loot-card>.loot-record-sources{max-height:144px;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:var(--ui-border) transparent;display:block!important;text-align:left;padding-right:4px}
:root[data-theme] .loot-record-sources>span{display:block;padding:7px 0;border-top:1px solid var(--ui-border);overflow-wrap:anywhere}
:root[data-theme] .loot-record-sources:focus-visible{outline:2px solid var(--ui-secondary);outline-offset:2px}
:root[data-theme] .nexon-manual-fallback p,:root[data-theme] .modal p,:root[data-theme] .modal-profile label,:root[data-theme] .job-picker-selection{color:var(--ui-secondary)!important}
:root[data-theme="dark"] .global-theme-switcher{background:var(--ui-surface);border-color:var(--ui-border)}
:root[data-theme="dark"] .global-theme-choice{color:var(--ui-secondary)}
:root[data-theme="dark"] .global-theme-choice:hover{background:var(--ui-raised);color:var(--ui-copy)}
:root[data-theme="dark"] .global-theme-choice[aria-pressed="true"]{background:var(--ui-selected)!important;border-color:#bc6268!important;color:var(--ui-copy)}
:root[data-theme] .modal-actions{background:var(--ui-surface)!important;border-top:1px solid var(--ui-border)}
:root[data-theme] .job-search-field:focus-within{border-color:var(--ui-secondary)!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--ui-secondary),transparent 80%)!important}
:root[data-theme] .modal input:focus-visible{outline:2px solid var(--ui-secondary)!important;outline-offset:2px}
#home-hunting-slot #hunt-character-grid{max-height:var(--hunt-visible-height,300px);scrollbar-color:var(--ui-border) var(--ui-surface)}
#home-memo-slot{min-height:190px}
.card-scheduler{margin-top:8px;border:1px solid var(--ui-border);border-radius:9px;background:var(--ui-surface);color:var(--ui-copy);text-shadow:none}
.card-scheduler>summary{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;padding:10px 8px;cursor:pointer;font-size:11px;list-style:none}
.card-scheduler>summary>span::before{content:'▸ ';color:var(--ui-secondary)}
.card-scheduler[open]>summary>span::before{content:'▾ '}
.card-scheduler>summary>b{font-size:11px;color:var(--ui-copy)}
.card-scheduler-body{max-height:260px;overflow-y:auto;overscroll-behavior:contain;padding:0 9px 9px;scrollbar-width:thin;scrollbar-color:var(--ui-border) var(--ui-surface)}
.scheduler-date,.card-scheduler-body p{color:var(--ui-secondary);font-size:11px;line-height:1.6}
.scheduler-content-group h4{font-size:12px;margin:12px 0 6px;color:var(--ui-copy)}
.scheduler-content-group ul{margin:0;padding:0;list-style:none}
.scheduler-content-group li{padding:6px 0;border-bottom:1px solid var(--ui-border);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.scheduler-content-group li small{display:block;color:var(--ui-secondary);font-size:11px}
.scheduler-content-group li.is-complete small{color:var(--ui-success)}
.card-scheduler-body button{display:block;width:100%;margin-top:10px;padding:7px;border:1px solid var(--ui-border);border-radius:7px;background:var(--ui-raised);color:var(--ui-copy);cursor:pointer;font:inherit;font-size:11px}
.game-character-wrapper{display:flex;flex-direction:column;align-self:flex-start;overflow:visible}
.game-character-wrapper>.game-character{height:auto;flex:none;width:100%}
.game-character-wrapper>.card-scheduler{flex:none;width:100%}

/* Keep character art vivid while preserving a readable text zone in both themes. */
:root[data-theme="dark"] .game-character .character-art{
  background-image:linear-gradient(to top,#110d10 2%,#110d10d9 14%,#110d1063 30%,#110d1018 48%,transparent 66%),linear-gradient(90deg,#110d10a8 0%,#110d1050 35%,transparent 70%),var(--job-image);
  background-position:center 12%;
  filter:saturate(1.08) contrast(1.04);
}
:root[data-theme="dark"] .game-character .character-identity{
  background:linear-gradient(90deg,#110d10e8 0%,#110d10b6 40%,#110d1063 64%,transparent 96%)!important;
}
:root[data-theme="light"] .game-character .character-art{
  background-image:linear-gradient(to top,#e9ebe5 2%,#e9ebe5de 13%,#e9ebe56a 29%,#e9ebe51b 47%,transparent 66%),linear-gradient(90deg,#e9ebe5b8 0%,#e9ebe55c 38%,transparent 72%),var(--job-image);
  background-position:center 12%;
  filter:saturate(1.08) contrast(1.04);
}
:root[data-theme="light"] .game-character .character-identity{
  background:linear-gradient(90deg,#e9ebe5f2 0%,#e9ebe5d0 40%,#e9ebe568 64%,transparent 96%)!important;
}
:root .actual-character{
  width:165px;
  height:165px;
  right:-4px;
  top:34px;
  image-rendering:pixelated;
}
:root .item-icon-belief-grindstone{
  background-size:contain!important;
  image-rendering:auto!important;
  filter:brightness(1.05) saturate(1.05);
}
:root[data-theme="dark"] .item-icon-belief-grindstone{
  filter:brightness(1.2) saturate(1.1) drop-shadow(0 0 1px #d9c9e8);
}
@media(max-width:480px){
  :root .actual-character{width:138px;height:138px;right:-2px;top:42px}
}
/* Improve the high-key job art in the sage theme without washing out text. */
:root[data-theme="dark"] .game-character .character-art{filter:saturate(1.12) contrast(1.1)}
:root[data-theme="light"] .game-character .character-art{
  background-color:#e9ebe5;
  background-blend-mode:normal,normal,multiply;
  filter:saturate(1.14) contrast(1.2);
}
:root[data-theme="light"] .game-character .character-card-bottom{
  background:linear-gradient(to bottom,#e9ebe566,#e9ebe5d9 65%)!important;
}
:root .actual-character{width:200px;height:200px;right:-12px;top:17px}
:root[data-theme="dark"] .actual-character{filter:drop-shadow(0 2px 5px #0009)}
:root[data-theme="light"] .actual-character{filter:drop-shadow(0 2px 4px #44544355)}
@media(max-width:760px){:root .actual-character{width:165px;height:165px;right:-8px;top:27px}}
@media(max-width:480px){:root .actual-character{width:145px;height:145px;right:-4px;top:37px}}

/* Enlarge and sharpen the Nexon pixel avatar in both themes. */
:root .game-character .actual-character{
  transform:scale(1.5);
  transform-origin:right 52%;
  image-rendering:pixelated;
}
:root[data-theme="dark"] .game-character .actual-character{
  filter:saturate(1.55) contrast(1.25) brightness(1.08) drop-shadow(0 2px 5px #000a);
}
:root[data-theme="light"] .game-character .actual-character{
  filter:saturate(1.55) contrast(1.22) brightness(1.06) drop-shadow(0 2px 5px #43544377);
}
:root .nexon-profile{gap:14px;}
:root .nexon-profile>div{min-width:0;}
:root .nexon-avatar{
  flex:0 0 180px;
  width:180px;
  height:180px;
  object-fit:contain;
  transform:scale(2);
  transform-origin:center;
  image-rendering:pixelated;
  filter:saturate(1.38) contrast(1.2) brightness(1.02) drop-shadow(0 2px 5px #000a);
}
:root[data-theme="light"] .nexon-avatar{
  filter:saturate(1.38) contrast(1.18) brightness(1) drop-shadow(0 2px 5px #43544377);
}
@media(max-width:760px){
  :root .game-character .actual-character{transform:scale(1.45);}
  :root .nexon-avatar{transform:scale(1.95);}
}
@media(max-width:480px){
  :root .game-character .actual-character{transform:scale(1.4);}
  :root .nexon-avatar{flex-basis:140px;width:140px;height:140px;transform:scale(1.8);}
}
