:root{--surface-deep:#102337;--surface-card:#19334b;--surface-edge:#52778e;--text-main:#c9e2ef;--text-soft:#9fbfd1}#rich-tooltip{position:fixed;z-index:100000;width:min(340px,calc(100vw - 20px));max-height:70vh;overflow:auto;pointer-events:none;padding:13px 15px;border:1px solid var(--tip-color,#7faac2);border-radius:11px;background:linear-gradient(130deg,#1b354e,#0c2035);color:#c9e2ef;box-shadow:0 10px 35px #020914b3;font-size:12px;line-height:1.45}#rich-tooltip strong{display:block;color:var(--tip-color,#c4e9fa);font-size:14px}#rich-tooltip small{display:block;color:#91b7ce;margin:5px 0}#rich-tooltip p{margin:5px 0;white-space:pre-line}#item-tooltip{background:linear-gradient(#1b354e,#0c2035)!important;color:#c9e2ef!important;border-color:#668fa7!important}.workshop-window :is(.material-chip,.material-vault,.workshop-preview,.workshop-stats>div,.workshop-recipes>.panel),.journey-layout .material-chip,.material-admin-grid>div{background:linear-gradient(130deg,#203c54,#102a40)!important;border-color:#52778e!important;color:#cae4f2!important;box-shadow:inset 0 1px #a3c9de16!important}.workshop-window .material-chip :is(span,b,small),.material-admin-grid>div :is(b,code){color:#c6e0ed!important}.workshop-window .missing .material-chip{background:linear-gradient(#432b40,#2b2439)!important;border-color:#986478!important}.workshop-window .missing small{color:#efb2bc!important}.craft-type-menu,.admin-recipe-types{display:flex;gap:8px;flex-wrap:wrap}.craft-type-menu>button,.admin-recipe-types>button{display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;align-items:center!important;justify-content:center!important;gap:9px!important;min-width:110px;min-height:58px;padding:10px!important;flex:1 1 110px;line-height:1.25;text-align:left!important}.craft-type-menu>button img,.admin-recipe-types>button img{position:static!important;transform:none!important;float:none!important;display:block!important;width:32px!important;height:32px!important;margin:0!important;object-fit:contain}.craft-type-menu>button>span{margin:0!important;min-width:0;overflow-wrap:normal;word-break:normal}.craft-levels{width:100%}.craft-levels>div{display:flex;flex-wrap:wrap;gap:6px;max-height:110px;overflow:auto;padding:8px 0}.craft-levels button{min-width:58px;padding:8px}.craft-levels .active,.setting-options .active,.skill-choice-icons .active,.gacha-window .inventory-tabs .active{background:#345c78!important;color:#d9f3ff!important;border-color:#9acfe3!important;box-shadow:inset 0 0 0 1px #92cbdf55}.setting-options{display:flex;gap:7px;flex-wrap:wrap;padding:8px 0}.setting-options button{min-width:58px}.skill-choice-icons{display:flex;flex-wrap:wrap;gap:8px;padding:10px 0}.skill-choice-icons button{width:55px;height:55px;display:grid;place-items:center;padding:5px}.skill-choice-icons img{width:42px;height:42px;object-fit:contain}.journey-layout .character-inventory{grid-template-columns:minmax(345px,420px) minmax(0,1fr)}.paper-layout{display:grid;grid-template-columns:minmax(70px,1fr) minmax(74px,1fr) minmax(128px,1.8fr);gap:8px;align-items:start}.paper-layout h4{font-size:10px;margin:0 0 7px;color:#a7cbdf;text-align:center}.paper-left,.paper-center{display:flex;flex-direction:column;gap:7px}.paper-center{justify-content:flex-start;gap:20px}.paper-right>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.paper-layout .paper-slot{width:100%;min-width:0;min-height:73px;padding:5px 2px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;grid-column:auto;grid-row:auto}.paper-layout .paper-slot img{width:42px;height:42px;object-fit:contain}.paper-layout .paper-slot>span{position:static;font-size:9px;line-height:1.15;max-width:100%;white-space:normal}.paper-center .paper-pet b{display:block}.paper-center .paper-pet small{font-size:10px}.inventory-bulk-tools{padding:10px;border:1px solid #496e88;border-radius:10px;background:#102a40;margin-bottom:12px;display:grid;gap:8px}.inventory-bulk-tools>div{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.inventory-bulk-tools button{font-size:11px;padding:7px 10px}.rarity-selection button{border-bottom:2px solid var(--rarity)!important}.owned-item-cell{position:relative;min-width:0}.owned-item-cell>.owned-item{width:100%;height:100%}.inventory-check{position:absolute;right:3px;top:3px;z-index:3;display:grid;place-items:center;padding:3px;border-radius:5px;background:#10273bd9}.inventory-check input{width:16px;height:16px;margin:0;accent-color:#89bfd7}.owned-item-cell:has(input:checked)>.owned-item{box-shadow:inset 0 0 0 2px #a3d9e8}.gacha-prize.reward-owned{position:relative;background:linear-gradient(130deg,#193f38,#122d30)!important;border-color:#4d9d78;border-left-color:#6bc698;padding-top:27px}.owned-ribbon{position:absolute;inset:0 0 auto auto;padding:3px 9px;background:#235c42;color:#baf4cc!important;border-radius:0 8px 0 8px;font-size:9px!important;font-weight:900;letter-spacing:.6px}.reward-owned>img{box-shadow:inset 0 0 0 1px #75c79799;background:#163a32}.gacha-odds{overflow:auto}.gacha-odds td:first-child{display:flex;gap:10px;align-items:center}.gacha-odds img{width:32px;height:32px;object-fit:contain}.gacha-odds th,.gacha-odds td{padding:10px;border-bottom:1px solid #45667e}.expedition-card-caption{background:linear-gradient(0deg,#071529d9 0%,#102b4052 55%,#0b223012 100%)!important}.expedition-card-art:after{opacity:.35!important}.expedition-preview{opacity:1!important;filter:brightness(1.05)!important}#coupon-wallet{display:flex;gap:6px;align-items:center;padding:5px 9px;background:#17364e;border:1px solid #53758a;border-radius:9px;color:#c5dfed}#coupon-wallet img{width:27px;height:27px;object-fit:contain}#coupon-wallet small{font-size:10px}.server-ticker{min-width:0;flex:1 1 320px;border:1px solid #456b85;background:linear-gradient(110deg,#19344c,#11273f);border-radius:11px;padding:9px 14px;display:flex;justify-content:center;flex-direction:column;gap:4px;min-height:61px}.server-ticker small{font-size:9px;letter-spacing:1px;color:#8cb0c5}.server-ticker strong{font-size:12px;line-height:1.4;color:#c6e3ef;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.server-ticker.has-drop{border-color:var(--notice-color)}.server-ticker.has-drop strong{color:var(--notice-color)}.battle-brand{position:absolute!important;left:50%!important;top:8px!important;transform:translateX(-50%);width:190px!important;height:80px!important;max-width:23%!important;object-fit:contain;z-index:15;pointer-events:none;filter:drop-shadow(0 3px 7px #020a15)}.battle-brand img{width:100%;height:100%;object-fit:contain}.map-hud[data-open-expedition]{pointer-events:auto;cursor:pointer}.map-hud[data-open-expedition]:hover{outline:1px solid #81b9d4}.game-chat{position:absolute;left:10px;bottom:10px;width:min(350px,calc(100% - 20px));z-index:45;border:1px solid #526f88;border-radius:11px;background:#10273de8;color:#bfd9e8;box-shadow:0 5px 18px #06101c55;font-size:11px;overflow:hidden}.game-chat>header{display:flex;justify-content:space-between;align-items:center;padding:5px 10px;background:#1b3c55}.game-chat header button{padding:1px 9px;font-size:17px}.game-chat.collapsed .chat-content{display:none}.game-chat nav{display:flex;gap:3px;padding:5px}.game-chat nav button{flex:1;padding:5px 3px;font-size:10px}.game-chat nav .active{background:#325c76;border-color:#86b8ce}.chat-messages{height:105px;overflow:auto;padding:4px 9px;overscroll-behavior:contain;scrollbar-width:thin}.chat-messages p{margin:3px 0;overflow-wrap:anywhere;line-height:1.4}.chat-messages b{color:#94c5e3}.chat-messages .system-message{color:#d4be83}.game-chat form{display:flex;gap:4px;padding:5px}.game-chat input{min-width:0;flex:1;padding:6px;font-size:11px;background:#0b1f32;border:1px solid #43657d;color:#cbe8f4}.game-chat form button{padding:5px 8px;font-size:11px}.chat-recipient{padding:3px 7px;display:flex;align-items:center;gap:6px}.chat-recipient[hidden],.game-chat form[hidden]{display:none}.chat-status{display:block;min-height:12px;padding:3px 8px;font-size:9px;color:#9bbdd0}.arena-camera-controls{left:auto!important;right:8px!important;bottom:8px!important}.arena-camera-controls [data-camera=overview]{display:none}.farm-rates{width:100%;font-size:11px;border-collapse:collapse}.farm-rates th{font-size:9px;color:#91b7cc;text-align:right}.farm-rates th:first-child,.farm-rates td:first-child{text-align:left}.farm-rates td{text-align:right;padding:7px 3px;border-bottom:1px solid #42657d44;font-variant-numeric:tabular-nums}.farm-session-time{font-size:10px;color:#91b4cb;margin:6px 0}.bulk-toolbar,.bulk-actions,.bulk-tabs{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin:10px 0}.bulk-tabs button.active,.bulk-item.selected{border-color:#91c5d9;background:#28516b}.bulk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}.bulk-item{display:flex;align-items:flex-start;gap:9px;border:1px solid #496b83;border-radius:9px;padding:10px;background:#142d43;min-width:0}.bulk-item img{width:43px;height:43px;object-fit:contain}.bulk-item b{font-size:12px;display:block;overflow-wrap:anywhere}.bulk-item small{display:block;color:#9bbace;font-size:10px}.bulk-item input[type=checkbox]{width:16px;height:16px;flex:0 0 16px;accent-color:#8bc1d5}.admin-social-feed{max-height:350px;overflow:auto}.admin-social-feed p{padding:7px;border-bottom:1px solid #496b8344;font-size:12px}.admin-notice-card{padding:12px;border:1px solid #456e88;border-radius:9px;background:#142f47;margin:8px 0}.admin-notice-card h3{margin:0 0 4px}.admin-social input,.admin-social textarea,.bulk-console input,.bulk-console select{background:#10283e!important;color:#cae5f3!important;border-color:#537b94!important}.admin-social textarea{min-height:90px;width:100%}.admin-social .notice-duration{display:flex;gap:8px;flex-wrap:wrap}.admin-social .notice-duration label{padding:8px;background:#1c3c54;border:1px solid #547b92;border-radius:7px}@media(max-width:1050px){.journey-layout .character-inventory{grid-template-columns:1fr}.paperdoll{max-width:560px;width:100%;margin:auto}.game-chat{width:300px}.battle-brand{width:140px!important;height:65px!important}}@media(max-width:620px){.paper-layout{grid-template-columns:minmax(65px,1fr) minmax(65px,1fr) minmax(116px,1.7fr);gap:6px}.paper-layout .paper-slot{min-height:65px}.paper-layout .paper-slot img{width:36px;height:36px}.server-ticker{min-height:46px;flex-basis:100%;max-width:100%}.server-ticker strong{font-size:11px}.battle-brand{top:70px!important;max-width:32%!important;height:48px!important}.game-chat{width:260px}.chat-messages{height:82px}}

.bulk-console button.active{background:#28637c;border-color:#72d5e8;color:#e7f9ff}

.material-chip{background:linear-gradient(130deg,#203c54,#102a40)!important;border-color:#52778e!important;color:#cae4f2!important}.material-chip :is(span,b,small){color:#c6e0ed!important}

.battle-brand img{width:100%!important;height:100%!important;max-height:none!important;object-fit:contain}.battle-brand small{display:none!important}

/* Keep transient tooltips independent of the legacy sidebar and native hidden state. */
#rich-tooltip{inset:auto;margin:0;display:block;flex-direction:initial;border:1px solid var(--tip-color,#7faac2);height:auto;min-height:0;padding:13px 15px;max-width:calc(100vw - 16px)}
#rich-tooltip[hidden],#item-tooltip[hidden]{display:none!important}
/* Combat numbers belong behind all interactive HUD panels. */
#battlefield .battle-hud{z-index:24!important}
#battlefield .battle-skills{z-index:25!important}
#battlefield .maple-damage-layer{z-index:9}
#battlefield .game-chat{z-index:26;width:310px;max-width:calc(100% - 20px);background:#10273de8}
#battlefield .game-chat>header{position:static;inset:auto;width:auto;min-height:30px;height:auto;margin:0;padding:5px 9px;display:flex;gap:8px;line-height:1.2;border:0;border-bottom:1px solid #42657d;border-radius:0;font-size:11px}
#battlefield .game-chat>header button{height:23px;min-height:0;width:25px;min-width:0;margin:0;padding:0;line-height:1;border-radius:5px}
#battlefield .game-chat nav{position:static;display:flex;margin:0;padding:4px;gap:3px;overflow:hidden;min-height:0}
#battlefield .game-chat nav button{min-width:0;min-height:0;height:26px;margin:0;padding:3px 2px;flex:1;font-size:10px;text-align:center;line-height:1.1}
#battlefield .game-chat .chat-messages{height:86px;min-height:0;margin:0;line-height:1.35}
#battlefield .game-chat form{margin:0;padding:5px;min-height:0;align-items:center}
#battlefield .game-chat form input{height:30px;margin:0;border-radius:6px}
#battlefield .game-chat form button{height:30px;min-height:0;margin:0;padding:4px 8px;font-size:10px}
#battlefield .game-chat .chat-status{margin:0;padding:2px 7px;min-height:0;font-size:9px}
#battlefield .game-chat .chat-status:empty{display:none}
#battlefield .game-chat.collapsed{width:160px}
body.journey-no-header .journey-command{grid-template-columns:minmax(175px,220px) minmax(150px,1fr) auto;gap:12px;align-items:center}
body.journey-no-header .journey-command>*{min-width:0}
body.journey-no-header .journey-command>.wallet{max-width:none;display:flex;flex-wrap:nowrap;gap:6px;justify-content:flex-end;grid-column:3;grid-row:1;white-space:nowrap}
body.journey-no-header .journey-command .wallet>span,body.journey-no-header .journey-command #other-resources>span{min-width:0;padding:6px 8px;gap:6px}
body.journey-no-header .journey-command .wallet b{font-size:12px}
body.journey-no-header .journey-command .wallet small{font-size:8px;margin-left:2px}
body.journey-no-header .journey-command #coupon-wallet{margin:0;min-height:39px;padding:6px 8px;gap:6px;flex-shrink:0}
body.journey-no-header .server-ticker{grid-column:2;grid-row:1;min-width:0;max-width:none;min-height:54px;padding:8px 12px}
.battle-brand{width:210px!important;height:76px!important;max-width:24%!important}
@media(max-width:1100px){body.journey-no-header .journey-command{grid-template-columns:minmax(150px,1fr) auto}body.journey-no-header .journey-command>.wallet{grid-column:2;grid-row:1}body.journey-no-header .server-ticker{grid-column:1/-1;grid-row:2;min-height:38px;padding:5px 10px}body.journey-no-header .server-ticker small{font-size:8px}body.journey-no-header .server-ticker strong{font-size:11px}#battlefield .game-chat{width:270px}}
@media(max-width:650px){body.journey-no-header .journey-command{grid-template-columns:minmax(0,1fr)}body.journey-no-header .journey-command>.wallet{grid-column:1;grid-row:2;max-width:100%;overflow:auto;justify-content:flex-start;padding-bottom:3px}body.journey-no-header .server-ticker{grid-row:3}#battlefield .game-chat{width:240px}#battlefield .game-chat .chat-messages{height:60px}.battle-brand{top:8px!important;width:140px!important;height:50px!important;max-width:23%!important}}

#battlefield #combat-sound{top:auto!important;right:8px!important;bottom:46px!important;max-width:155px;min-height:27px;padding:5px 8px;font-size:9px;z-index:25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:820px){body.journey-no-header .journey-command{grid-template-columns:minmax(0,1fr)}body.journey-no-header .journey-command>.wallet{grid-column:1;grid-row:2;max-width:100%;overflow:auto;justify-content:flex-start;padding-bottom:3px}body.journey-no-header .server-ticker{grid-column:1;grid-row:3}}
