/* P1218 THEME DBZ, 19/11/2026. Final approved combination, client only. */

/* === P1214 HUD v4 === */
/* P1214 HUD visual preview only. Arena da Sequência V3.2 palette; NO production link.
   Does not alter positioning, dimensions or layout of existing controls. */
html.zt-on.zk-ui30{
 --zt-bg0:#0b0716;--zt-bg1:#160d26;--zt-bg2:#24143a;
 --zt-gold:#ffe066;--zt-orange:#ff8a00;--zt-cyan:#3fd8ff;--zt-text:#fff4e6;
 --zt-frame:linear-gradient(135deg,#ffe066,#ff7a00 40%,#c4161c 75%,#ffb000);
 --zt-panel:linear-gradient(180deg,#1e1030,#0b0716);
 --zt-btn:radial-gradient(120% 140% at 50% 0%,#fffbe0 0%,#ffe066 30%,#ff9a00 70%,#e2301c 100%);
 --z30-glass:linear-gradient(180deg,rgba(35,18,57,.96),rgba(12,7,24,.97));
 --z30-line:rgba(255,155,25,.60);
 --z30-shadow:0 0 0 1px #000,0 4px 16px #000a,inset 0 1px #ffb75c27;
 --z30-gold:#ffe066;--z30-gold2:#ff8a00;--z30-text:#fff4e6;--z30-muted:#c9b2e0;
}
html.zt-on:not(#zt0):not(#zt1) body .topbar.hunter-topbar{
 background:linear-gradient(180deg,rgba(25,12,42,.98),rgba(11,7,22,.72) 78%,transparent)!important;
}
html.zt-on:not(#zt0):not(#zt1) body .zk-v9-profile-cell::before,
html.zt-on:not(#zt0):not(#zt1) body .zk-v9-zeni-cell::before,
html.zt-on:not(#zt0):not(#zt1) body .zk-v9-premium-cell::before{
 background:linear-gradient(180deg,#24143ae8,#10091fe8) padding-box,var(--zt-frame) border-box!important;
 border:2px solid transparent!important;
 box-shadow:0 0 0 2px #000,0 0 12px #ff6a0038!important;
}
html.zt-on:not(#zt0):not(#zt1) body #profileAvatarTop{
 border:2px solid #ffb000!important;
 background:#160d26!important;
 box-shadow:0 0 0 2px #000,0 0 12px #ff8a0080!important;
}
html.zt-on:not(#zt0):not(#zt1) body #profileNameTop{
 color:#ffe066!important;font:900 italic 15px/1.1 system-ui!important;
 letter-spacing:.02em!important;text-shadow:1px 2px 0 #000,0 0 8px #ff8a0055!important;
}
html.zt-on:not(#zt0):not(#zt1) body #profileClassTop,
html.zt-on:not(#zt0):not(#zt1) body #playerLevelText{
 color:#ffce80!important;font-weight:800!important;text-shadow:0 1px #000!important;
}
html.zt-on:not(#zt0):not(#zt1) body nav.top-icons::before{
 background:linear-gradient(180deg,#251438ec,#0c0718ef) padding-box,var(--zt-frame) border-box!important;
 border:2px solid transparent!important;
 box-shadow:0 0 0 2px #000,0 0 15px #ff72003c!important;
}
html.zt-on:not(#zt0):not(#zt1) body nav.top-icons .top-btn,
html.zt-on:not(#zt0):not(#zt1) body nav.top-icons .top-gear{
 border-radius:9px!important;
 box-shadow:inset 0 0 0 1px #ff8a0090,0 0 0 1px #000!important;
}
html.zt-on:not(#zt0):not(#zt1) body nav.top-icons .z30-lbl{
 color:#d7c3e8!important;text-shadow:0 1px #000!important;
}
html.zt-on:not(#zt0):not(#zt1) body .hunter-status .status-window,
html.zt-on:not(#zt0):not(#zt1) body .hunter-centerbar::before,
html.zt-on:not(#zt0):not(#zt1) body .combat-settings,
html.zt-on:not(#zt0):not(#zt1) body #chatWindow.hunter-chat,
html.zt-on:not(#zt0):not(#zt1) body #huntAnalyzer{
 background:var(--zt-panel) padding-box,var(--zt-frame) border-box!important;
 background-image:var(--zt-panel),var(--zt-frame)!important;
 border:2px solid transparent!important;
 box-shadow:0 0 0 2px #000,0 0 17px #ff6a0047!important;
}
html.zt-on:not(#zt0):not(#zt1) body .status-window .meter{
 background:#080512!important;border:1px solid #ff8a004e!important;
 box-shadow:inset 0 0 0 1px #000!important;
}
html.zt-on:not(#zt0):not(#zt1) body .status-window .meter.hp::before{color:#ff806b!important}
html.zt-on:not(#zt0):not(#zt1) body .status-window .meter.ki::before{color:#3fd8ff!important}
html.zt-on:not(#zt0):not(#zt1) body .status-window .meter.xp-meter::before{color:#ffe066!important}
html.zt-on:not(#zt0):not(#zt1) body .status-window .meter.stamina::before{color:#9ff17a!important}
html.zt-on:not(#zt0):not(#zt1) body #hpBar{background:linear-gradient(90deg,#d4141c,#ff6a1a)!important}
html.zt-on:not(#zt0):not(#zt1) body #kiBar{background:linear-gradient(90deg,#1477ff,#3fd8ff)!important}
html.zt-on:not(#zt0):not(#zt1) body #staminaBar{background:linear-gradient(90deg,#2fbf4a,#b8f36a)!important}
html.zt-on:not(#zt0):not(#zt1) body #expHudBar{background:linear-gradient(90deg,#ff8a00,#ffe066)!important}
html.zt-on:not(#zt0):not(#zt1) body #hotbar .action-slot,
html.zt-on:not(#zt0):not(#zt1) body .zk-v34-consumable{
 background:linear-gradient(180deg,#24143a,#11091f)!important;
 background-image:linear-gradient(180deg,#24143a,#11091f)!important;
 border:1px solid #ff8a0075!important;
 border-radius:8px!important;
 box-shadow:inset 0 0 0 1px #000,0 0 4px #ff6a0025!important;
}
html.zt-on:not(#zt0):not(#zt1) body #hotbar .empty-plus{color:#ffa43a66!important}
html.zt-on:not(#zt0):not(#zt1) body .hunter-quick,
html.zt-on:not(#zt0):not(#zt1) body[data-ui-profile] .hunter-centerbar .hunter-quick.hunt-mode{
 background:linear-gradient(180deg,#231338,#120a22)!important;
 border:1px solid #ff8a0080!important;
 box-shadow:0 0 0 1px #000,0 0 8px #ff6a002b!important;
}
html.zt-on:not(#zt0):not(#zt1) body .hunter-quick>button{font:900 italic 12px system-ui!important;color:#ffe4aa!important}
html.zt-on:not(#zt0):not(#zt1) body .hunter-quick:not(.hunt-mode)>#quickSell,
html.zt-on:not(#zt0):not(#zt1) body #chatSend{
 background:var(--zt-btn)!important;background-image:var(--zt-btn)!important;
 border:2px solid #000!important;border-radius:999px!important;
 color:#1a0500!important;font:900 italic 12px system-ui!important;
 box-shadow:0 0 0 2px #ffb000,0 0 11px #ff8a0082!important;
}
html.zt-on:not(#zt0):not(#zt1) body #chatDragHandle b,
html.zt-on:not(#zt0):not(#zt1) body #huntAnalyzer .window-title>span{
 font:900 italic 13px system-ui!important;color:#ffe066!important;
 text-shadow:1px 2px 0 #000,0 0 8px #ff8a0075!important;
}
html.zt-on:not(#zt0):not(#zt1) body #chatlog,
html.zt-on:not(#zt0):not(#zt1) body #chatInput,
html.zt-on:not(#zt0):not(#zt1) body #loadoutToggle,
html.zt-on:not(#zt0):not(#zt1) body #targetSelect{
 background:#100a20!important;background-image:none!important;
 border:1px solid #ff8a004c!important;color:#fff4e6!important;
}
html.zt-on:not(#zt0):not(#zt1) body #chatTabs button.active{
 background:linear-gradient(180deg,#ffbc44,#ff7a00)!important;color:#1a0500!important;
 border-radius:999px!important;font-weight:900!important;
}
@media(prefers-reduced-motion:reduce){
 html.zt-on:not(#zt0):not(#zt1) body .topbar *,
 html.zt-on:not(#zt0):not(#zt1) body .hunter-centerbar *,
 html.zt-on:not(#zt0):not(#zt1) body #chatWindow *{animation:none!important;transition:none!important}
}


/* P1214 v2 — LEGIBILITY PASS, opt-in. Font sizes only in existing areas.
   Minimum values 10px in HUD meter readouts, 11px elsewhere where space permits.
   No element positions, sizes, gameplay or browser login changed. */
html.zt-on:not(#zt0):not(#zt1) body #hpText,
html.zt-on:not(#zt0):not(#zt1) body #kiText,
html.zt-on:not(#zt0):not(#zt1) body #expHudText,
html.zt-on:not(#zt0):not(#zt1) body #staminaText2 {
 font-family:'ZK Inter','Segoe UI',Arial,sans-serif!important;
 font-size:10.5px!important;line-height:13px!important;
 font-weight:800!important;letter-spacing:-.25px!important;
 color:#fff5e6!important;text-shadow:0 1px 2px #000!important;
 font-variant-numeric:tabular-nums!important;
}
html.zt-on:not(#zt0):not(#zt1) body .status-window .meter::before{
 font-family:'ZK Inter','Segoe UI',Arial,sans-serif!important;
 font-size:11.5px!important;font-weight:900!important;
 text-shadow:0 1px 2px #000!important;
}
html.zt-on:not(#zt0):not(#zt1) body #chatTabs button{
 font-size:10.5px!important;font-weight:800!important;letter-spacing:0!important;
 color:#e8d7fa!important;text-shadow:0 1px #000!important;
 padding:4px 3px!important;
}
html.zt-on:not(#zt0):not(#zt1) body #chatTabs button.active{
 color:#1a0500!important;text-shadow:none!important;
}
html.zt-on:not(#zt0):not(#zt1) body #chatInput{
 font-size:12px!important;font-weight:600!important;color:#fff4e6!important;
}
html.zt-on:not(#zt0):not(#zt1) body #chatInput::placeholder{
 color:#c3b4db!important;opacity:1!important;
}
html.zt-on:not(#zt0):not(#zt1) body #chatSend{
 font-size:12px!important;
}
html.zt-on:not(#zt0):not(#zt1) body .hunter-quick>button{
 font:900 italic 11.5px/1.15 system-ui!important;
 letter-spacing:0!important;text-shadow:0 1px 2px #000!important;
}
html.zt-on:not(#zt0):not(#zt1) body .hunter-quick:not(.hunt-mode)>#quickSell{
 text-shadow:none!important;
}
html.zt-on:not(#zt0):not(#zt1) body #loadoutName,
html.zt-on:not(#zt0):not(#zt1) body #combatRange2{
 font-size:12px!important;font-weight:800!important;
 color:#fff4e6!important;text-shadow:0 1px #000!important;
}
html.zt-on:not(#zt0):not(#zt1) body nav.top-icons .z30-lbl{
 font:800 10.5px/1.05 'ZK Inter','Segoe UI',Arial,sans-serif!important;
 letter-spacing:0!important;color:#eee1fb!important;
 text-shadow:0 1px 2px #000!important;
}
html.zt-on:not(#zt0):not(#zt1) body #profileClassTop,
html.zt-on:not(#zt0):not(#zt1) body #playerLevelText{
 font-size:11.5px!important;line-height:1.25!important;
}
html.zt-on:not(#zt0):not(#zt1) body .profile-copy em{
 font-size:10.5px!important;font-weight:850!important;
 color:#ffe066!important;text-shadow:0 1px #000!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntAnalyzer .analyzer-mini-grid span{
 color:#ead7fa!important;font-size:11px!important;font-weight:800!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntAnalyzer .analyzer-mini-grid b{
 color:#fff4e6!important;font-size:15px!important;
}


/* P1214 v3 — audited fixes for cropped HP and squeezed chat/topbar labels. */
html.zt-on:not(#zt0):not(#zt1) body #hpText,
html.zt-on:not(#zt0):not(#zt1) body #kiText,
html.zt-on:not(#zt0):not(#zt1) body #expHudText,
html.zt-on:not(#zt0):not(#zt1) body #staminaText2{
 width:94px!important;max-width:94px!important;
 right:7px!important;left:auto!important;
 overflow:visible!important;white-space:nowrap!important;
 text-align:left!important;font-size:10px!important;
 letter-spacing:-.28px!important;
}
html.zt-on:not(#zt0):not(#zt1) body nav.top-icons .z30-lbl{
 font:800 9.5px/1.1 'ZK Chakra','Segoe UI',Arial,sans-serif!important;
 letter-spacing:-.35px!important;
}
html.zt-on:not(#zt0):not(#zt1) body #chatTabs button{
 font-size:10px!important;letter-spacing:-.15px!important;
 padding:4px 2px!important;
}

/* The HP/KI readouts are absolutely positioned inside their meter;
   right:-96px places them back in the original numerical column,
   not on top of the health bar. */
html.zt-on:not(#zt0):not(#zt1) body #hpText,
html.zt-on:not(#zt0):not(#zt1) body #kiText{
 left:auto!important;right:-96px!important;
 width:94px!important;max-width:94px!important;
 text-align:left!important;
}

/* === P1215 modal === */

/* P1215 — generic window foundation, PREVIEW ONLY.
   Existing DOM structure, width/height and positioning preserved. */
html.zt-on:not(#zt0):not(#zt1) body .modal-backdrop.show{
 background:radial-gradient(ellipse at 50% 45%,rgba(30,11,47,.52),rgba(5,3,13,.75))!important;
}
html.zt-on:not(#zt0):not(#zt1) body .modal{
 background:linear-gradient(180deg,#1e1030,#0b0716) padding-box,
   linear-gradient(135deg,#ffe066,#ff7a00 40%,#c4161c 75%,#ffb000) border-box!important;
 border:1px solid transparent!important;border-radius:8px!important;
 box-shadow:0 0 0 2px #000,0 0 20px #ff6a004d,0 14px 38px #000e!important;
 color:#fff4e6!important;
}
html.zt-on:not(#zt0):not(#zt1) body .modal .modal-head{
 background:linear-gradient(90deg,#2a1236,#160d26 60%,#2a1236)!important;
 border-bottom:2px solid #e87819!important;
 color:#ffe066!important;
 font:900 italic 19px/1.1 system-ui!important;
 letter-spacing:.01em!important;
 text-shadow:1px 2px #000,0 0 8px #ff8a006a!important;
}
html.zt-on:not(#zt0):not(#zt1) body .modal .modal-head .x,
html.zt-on:not(#zt0):not(#zt1) body .modal button.x{
 border:2px solid #000!important;border-radius:50%!important;
 background:radial-gradient(circle at 35% 25%,#fff0bc,#ffa221 45%,#dc4a19 100%)!important;
 background-image:radial-gradient(circle at 35% 25%,#fff0bc,#ffa221 45%,#dc4a19 100%)!important;
 color:#1a0500!important;font:900 16px/1 system-ui!important;
 box-shadow:0 0 0 1px #ffb000,0 0 10px #ff8a0090!important;
}
html.zt-on:not(#zt0):not(#zt1) body .modal .modal-body{color:#fff4e6!important;}
html.zt-on:not(#zt0):not(#zt1) body .modal .modal-body small,
html.zt-on:not(#zt0):not(#zt1) body .modal .sub{color:#d4bfeb!important;}
html.zt-on:not(#zt0):not(#zt1) body .modal button.primary,
html.zt-on:not(#zt0):not(#zt1) body .modal .modal-actions button{
 border:2px solid #000!important;border-radius:999px!important;
 background:radial-gradient(ellipse at 50% 0%,#fffce2,#ffe066 35%,#ff9700 70%,#da3a18)!important;
 background-image:radial-gradient(ellipse at 50% 0%,#fffce2,#ffe066 35%,#ff9700 70%,#da3a18)!important;
 color:#1a0500!important;
 font:900 italic 12px/1.2 system-ui!important;
 text-shadow:none!important;
 box-shadow:0 0 0 2px #ffb000,0 0 10px #ff8a006a!important;
}
html.zt-on:not(#zt0):not(#zt1) body .modal input:not([type="checkbox"]),
html.zt-on:not(#zt0):not(#zt1) body .modal select,
html.zt-on:not(#zt0):not(#zt1) body .modal textarea{
 color:#fff4e6!important;background:#110a21!important;border:1px solid #b76b24!important;
 font-size:13px!important;
}
html.zt-on:not(#zt0):not(#zt1) body .modal input::placeholder{
 color:#c8b2db!important;opacity:1!important;
}
html.zt-on:not(#zt0):not(#zt1) body .modal .modal-body :focus-visible{
 outline:2px solid #ffe066!important;outline-offset:2px!important;
}

/* Mobile: preserve header's own height and the existing close button footprint. */
@media(max-width:650px){
 html.zt-on:not(#zt0):not(#zt1) body .modal .modal-head{
  font:900 italic 12px/1.1 system-ui!important;
  letter-spacing:-.2px!important;
  white-space:nowrap!important;
 }
}

/* P1215 readability — dense configuration modal, without changing form semantics. */
html.zt-on:not(#zt0):not(#zt1) body #actionModal .action-skill-note,
html.zt-on:not(#zt0):not(#zt1) body #actionModal .action-skill-note b{
 font-size:12px!important;line-height:1.4!important;
 color:#f0dff6!important;font-weight:700!important;
}
html.zt-on:not(#zt0):not(#zt1) body #actionModal .action-ignore-panel p,
html.zt-on:not(#zt0):not(#zt1) body #actionModal #conditionList~p,
html.zt-on:not(#zt0):not(#zt1) body #actionModal .action-conditions p{
 font-size:11.5px!important;line-height:1.35!important;
 color:#e4d2f2!important;
}
html.zt-on:not(#zt0):not(#zt1) body #actionModal #ignoredMonstersSummary{
 font-size:11.5px!important;line-height:1.35!important;
 color:#ecd9ef!important;
}
html.zt-on:not(#zt0):not(#zt1) body #actionModal button,
html.zt-on:not(#zt0):not(#zt1) body #actionModal .action-footer label{
 font-size:12px!important;
}

html.zt-on:not(#zt0):not(#zt1) body #actionModal .conditions-head p{
 font-size:11.5px!important;line-height:1.35!important;color:#e4d2f2!important;
}

/* === P1217 hunt V5 + mobile === */
/* P1216 — Caçadas shell/tabs styling candidate. NO production link.
 * Preserve existing modal dimensions/positions; replace authored image frame and tab surfaces.
 * CSS art only; visible labels are real button text, not baked image text.
 */
html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell {
 background:
   radial-gradient(ellipse at 50% -16%,rgba(255,132,31,.20),transparent 65%),
   linear-gradient(180deg,#25143a 0%,#120922 24%,#0b0716 100%)!important;
 background-image:
   radial-gradient(ellipse at 50% -16%,rgba(255,132,31,.20),transparent 65%),
   linear-gradient(180deg,#25143a 0%,#120922 24%,#0b0716 100%)!important;
 border:0!important;
 box-shadow:inset 0 0 0 3px #08040e,inset 0 0 0 5px #ffb000,inset 0 0 0 7px #ff6a00,inset 0 0 0 9px #300e25,0 0 24px #ff690047!important;
 border-radius:10px!important;
}
/* The header is an invisible full-shell overlay in the original image frame.
 * Keep its geometry; recover the hidden text inside it at the real top bar.
 */
html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell .modal-head{
 background:none!important;background-image:none!important;border:0!important;
 color:#fff4e6!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell .modal-head>span{
 display:block!important;
 position:absolute!important;
 left:16%!important;top:3.2%!important;right:13%!important;
 text-align:center!important;
 font:900 italic clamp(13px,1.6vw,23px)/1.15 system-ui!important;
 letter-spacing:.02em!important;text-transform:uppercase!important;
 color:#ffe066!important;
 text-shadow:2px 3px #000,0 0 12px #ff800088!important;
 pointer-events:none!important;
}
/* Original close target is fully transparent because X was drawn on frame art. */
html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell .modal-head>.x{
 opacity:1!important;
 font:900 20px/1 system-ui!important;color:#190703!important;
 background:radial-gradient(circle at 30% 20%,#fff2bf,#ffb000 48%,#cc4217)!important;
 background-image:radial-gradient(circle at 30% 20%,#fff2bf,#ffb000 48%,#cc4217)!important;
 border:3px solid #070509!important;
 border-radius:50%!important;
 box-shadow:inset 0 0 0 2px #ffe066,0 0 12px #ff6a0090!important;
}
/* Never create extra navigation nodes; restore source HTML labels on all six real tab buttons. */
html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell .hunt-mode-tabs button,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell .hunt-mode-tabs [data-hunt-mode="training"]{
 background:linear-gradient(180deg,#3b2050,#160b26)!important;
 background-image:linear-gradient(180deg,#3b2050,#160b26)!important;
 color:#eee0f8!important;-webkit-text-fill-color:#eee0f8!important;
 font:900 italic clamp(8px,1vw,13px)/1.2 system-ui!important;
 letter-spacing:.015em!important;
 text-shadow:1px 2px #000!important;
 border:2px solid #000!important;
 border-radius:6px!important;
 box-shadow:inset 0 0 0 1px #ff8a008c,0 1px 2px #000!important;
 filter:none!important;
 white-space:nowrap!important;
 overflow:hidden!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell .hunt-mode-tabs button.active,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell .hunt-mode-tabs button[aria-selected="true"]{
 background:linear-gradient(180deg,#ffe99b,#ff9a1a 56%,#c84a16)!important;
 background-image:linear-gradient(180deg,#ffe99b,#ff9a1a 56%,#c84a16)!important;
 color:#231008!important;-webkit-text-fill-color:#231008!important;
 text-shadow:0 1px #fff2b3!important;
 border-color:#000!important;
 box-shadow:inset 0 0 0 2px #ffda66,0 0 11px #ff7900b0!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell .hunt-mode-tabs button:focus-visible{
 outline:2px solid #ffe066!important;outline-offset:2px!important;
}
@media(max-width:650px){
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell .modal-head>span{
 font-size:8px!important;letter-spacing:0!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell .hunt-mode-tabs button,
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell .hunt-mode-tabs [data-hunt-mode="training"]{
 font-size:5px!important;letter-spacing:0!important;border-width:1px!important;border-radius:2px!important;
 }
}


/* P1216 V2 — real dynamically authored hunt interior, no new UI nodes. */
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior.zk63-interior{
 color:#f4e6fa!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-left,
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-center,
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-right{
 background:linear-gradient(180deg,#221336eb,#10091df2)!important;
 background-image:linear-gradient(180deg,#221336eb,#10091df2)!important;
 border:2px solid #e28b27!important;
 border-radius:6px!important;
 box-shadow:inset 0 0 0 2px #05030a,inset 0 0 0 3px #ffba3450!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-hunt-card{
 background:linear-gradient(180deg,#28153c,#170c28)!important;
 background-image:linear-gradient(180deg,#28153c,#170c28)!important;
 border:1px solid #9b5d2e!important;
 border-radius:5px!important;
 color:#f7eafa!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-hunt-card.active{
 background:linear-gradient(180deg,#44234b,#281331)!important;
 background-image:linear-gradient(180deg,#44234b,#281331)!important;
 border:2px solid #ffae25!important;
 box-shadow:inset 3px 0 #ffe066,0 0 9px #ff830050!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-hunt-card b,
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-summary b{
 color:#fff4e6!important;text-shadow:0 1px #000!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-hunt-card small,
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-hunt-card em,
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-count,
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-copy small{
 color:#d9c4ec!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-section-title,
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-loot-group-title{
 color:#ffe066!important;font-weight:900!important;text-shadow:1px 1px #000!important;
 background:linear-gradient(90deg,#3d1d46,#1e0f30)!important;
 background-image:linear-gradient(90deg,#3d1d46,#1e0f30)!important;
 border-bottom:1px solid #ff8a0090!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-search,
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-search input{
 background:#140b24!important;background-image:none!important;
 color:#fff4e6!important;border-color:#bd7a33!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-loot-row{
 background:linear-gradient(180deg,#27143a,#140c25)!important;
 background-image:linear-gradient(180deg,#27143a,#140c25)!important;
 border-color:#694164!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-loot-row.available{
 border-color:#b87535!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-footer,
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-notice{
 background:linear-gradient(180deg,#251337,#100a21)!important;
 background-image:linear-gradient(180deg,#251337,#100a21)!important;
 border-color:#c97f27!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-start{
 background:radial-gradient(ellipse at 50% 0%,#fff5b0,#ffe066 27%,#ff9400 70%,#d44518)!important;
 background-image:radial-gradient(ellipse at 50% 0%,#fff5b0,#ffe066 27%,#ff9400 70%,#d44518)!important;
 border:2px solid #000!important;color:#210d06!important;
 border-radius:999px!important;font:900 italic 11px system-ui!important;
 text-shadow:none!important;box-shadow:0 0 0 2px #ffb000,0 0 12px #ff76007a!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-close{
 background:linear-gradient(180deg,#3b2154,#170c26)!important;
 background-image:linear-gradient(180deg,#3b2154,#170c26)!important;
 color:#ffe066!important;border:2px solid #ff8a00!important;border-radius:999px!important;
}
/* Widen the EXISTING mobile image-scaled window to the available viewport.
 * Internal positions/columns retained. Do not use a zoom overlay or invent new navigation.
 */
@media(max-width:520px){
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell{
 transform:scale(1.31)!important;transform-origin:center center!important;
 }
}


/* P1216 V3 legibility corrections, same action controls. */
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-close{
 color:#ffe066!important;-webkit-text-fill-color:#ffe066!important;
 font:900 italic 11px/1 system-ui!important;text-shadow:0 1px #000!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-copy b{
 font-size:16px!important;color:#fff4e6!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-hunt-card b{
 font-size:11px!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-loot-row b{
 color:#fff4e6!important;
}
@media(max-width:520px){
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell .hunt-mode-tabs{
  display:flex!important;align-items:stretch!important;gap:3px!important;
  overflow-x:auto!important;overflow-y:hidden!important;
  scrollbar-width:thin!important;scrollbar-color:#ffb000 #170b23!important;
  padding-bottom:1px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell .hunt-mode-tabs button,
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell .hunt-mode-tabs [data-hunt-mode="training"]{
  flex:0 0 64px!important;min-width:64px!important;
  font:900 italic 8.5px/1.1 system-ui!important;
  white-space:nowrap!important;overflow:hidden!important;
 }
}

/* P1216 V4 — polished combat-panel look from approved Sequence V3.2.
   Overrides *only* the theme opt-in. No added buttons, overlays or gameplay. */
html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell{
  border:3px solid transparent!important;
  background:
    radial-gradient(ellipse 65% 45% at 49% -12%,rgba(255,152,34,.19),transparent 80%) padding-box,
    linear-gradient(180deg,#241333,#0d0718 58%,#0b0716) padding-box,
    linear-gradient(128deg,#ffe66f 0%,#ffab28 22%,#ff6c0b 47%,#cf2928 78%,#ffb327 100%) border-box!important;
  background-image:
    radial-gradient(ellipse 65% 45% at 49% -12%,rgba(255,152,34,.19),transparent 80%),
    linear-gradient(180deg,#241333,#0d0718 58%,#0b0716),
    linear-gradient(128deg,#ffe66f 0%,#ffab28 22%,#ff6c0b 47%,#cf2928 78%,#ffb327 100%)!important;
  box-shadow:inset 0 0 0 2px #05030a,inset 0 0 0 3px #e6601590,0 0 0 2px #000,0 0 19px #ff6c0047,0 24px 55px #0009!important;
  border-radius:9px!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell .modal-head>span{
  top:4.2%!important;left:16%!important;right:13%!important;
  color:#ffdf64!important;
  font:1000 italic clamp(15px,1.7vw,24px)/1.12 'ZK Chakra',system-ui,sans-serif!important;
  -webkit-text-stroke:.55px #11060b!important;
  text-shadow:2px 3px 0 #000,0 0 11px #ff83006a!important;
  letter-spacing:.035em!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell .modal-head>span::after{
  content:""!important;display:block!important;width:48%!important;max-width:290px!important;
  height:3px!important;margin:8px auto 0!important;border-radius:30px!important;
  background:linear-gradient(90deg,transparent,#ffb42b 24%,#ffe77b 55%,#f45b1d 78%,transparent)!important;
  box-shadow:0 0 10px #ff850080!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell .modal-head>.x{
  background:radial-gradient(circle at 31% 18%,#fff5d0,#ffd345 39%,#ff9415 73%,#bd3216)!important;
  background-image:radial-gradient(circle at 31% 18%,#fff5d0,#ffd345 39%,#ff9415 73%,#bd3216)!important;
  box-shadow:inset 0 0 0 2px #ffe77b,0 0 0 2px #040209,0 0 13px #ff7e00b5!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell .hunt-mode-tabs button{
  background:linear-gradient(180deg,#39214d,#1b0e2b 70%,#10091f)!important;
  background-image:linear-gradient(180deg,#39214d,#1b0e2b 70%,#10091f)!important;
  border:1px solid #b46931!important;
  box-shadow:inset 0 1px #e9a95665,inset 0 -2px #06030f,0 1px 0 #000!important;
  font-weight:950!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell .hunt-mode-tabs button.active,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell .hunt-mode-tabs button[aria-selected="true"]{
  background:linear-gradient(180deg,#fff2a2,#ffb72e 49%,#e76b19 82%,#ae3c15)!important;
  background-image:linear-gradient(180deg,#fff2a2,#ffb72e 49%,#e76b19 82%,#ae3c15)!important;
  border:2px solid #ffe066!important;
  color:#1d0910!important;-webkit-text-fill-color:#1d0910!important;
  box-shadow:inset 0 0 0 1px #180810,0 0 13px #ff7f0075!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-left,
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-center,
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-right{
  background:radial-gradient(ellipse at 0% 0%,#321a4080,transparent 67%),linear-gradient(180deg,#1d112e,#100a1f)!important;
  background-image:radial-gradient(ellipse at 0% 0%,#321a4080,transparent 67%),linear-gradient(180deg,#1d112e,#100a1f)!important;
  border:1px solid #d58b32!important;border-top:2px solid #ffc14e!important;
  border-radius:7px!important;
  box-shadow:0 0 0 1px #000,inset 0 1px #ffe48848,inset 0 -3px #1d0b20!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-hunt-card{
  background:linear-gradient(95deg,#241431,#170e26 75%,#21122f)!important;
  background-image:linear-gradient(95deg,#241431,#170e26 75%,#21122f)!important;
  border:1px solid #754c50!important;border-left:2px solid #bd7433!important;
  box-shadow:inset 0 1px #ffffff0d!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-hunt-card.active{
  background:linear-gradient(100deg,#5b2b37,#39203f 62%,#2a1737)!important;
  background-image:linear-gradient(100deg,#5b2b37,#39203f 62%,#2a1737)!important;
  border:1px solid #ffb538!important;border-left:4px solid #ffdb73!important;
  box-shadow:inset 0 1px #ffeab140,0 0 10px #fd7c0036!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-hunt-card b{
  font-size:11px!important;font-weight:800!important;letter-spacing:.1px!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-hunt-card em,
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-count{
  color:#d9cde6!important;font-size:10px!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-summary{
  background:linear-gradient(180deg,#2a1537d0,#180e28d0)!important;
  background-image:linear-gradient(180deg,#2a1537d0,#180e28d0)!important;
  border-radius:5px!important;
  box-shadow:inset 0 -1px #a45c3f55!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-summary h2,
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-copy h2{
  color:#ffe07a!important;font:900 italic 18px/1.13 system-ui!important;
  text-shadow:1px 2px #000,0 0 10px #fa7a003e!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-summary p,
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-copy p{
  color:#ebdff2!important;font-size:10.5px!important;line-height:1.35!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-stats{
  background:linear-gradient(180deg,#160c26,#10091e)!important;
  background-image:linear-gradient(180deg,#160c26,#10091e)!important;
  border:1px solid #8e583a!important;border-radius:5px!important;
  box-shadow:inset 0 1px #f5bc302b!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-section-title{
  background:linear-gradient(90deg,transparent,#492446 12%,#552549 50%,#492446 88%,transparent)!important;
  background-image:linear-gradient(90deg,transparent,#492446 12%,#552549 50%,#492446 88%,transparent)!important;
  border-top:1px solid #ffb044!important;border-bottom:1px solid #d55d22!important;
  color:#ffdd77!important;
  font:900 italic 12px/1.2 system-ui!important;letter-spacing:.08em!important;
  text-shadow:0 2px #08040e!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-loot-group-title{
  background:linear-gradient(90deg,#4e283c,#2c1739)!important;
  background-image:linear-gradient(90deg,#4e283c,#2c1739)!important;
  border-bottom:1px solid #d77c28!important;
  color:#ffdd77!important;font-size:10.5px!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-loot-row{
  background:linear-gradient(180deg,#2a1837,#170d26)!important;
  background-image:linear-gradient(180deg,#2a1837,#170d26)!important;
  border-color:#6e4960!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-loot-row b{
  font-size:10.5px!important;font-weight:750!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-loot-row small{
  color:#d5bedb!important;font-size:10px!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-footer{
  border-top:2px solid #e38a2d!important;background:linear-gradient(180deg,#2b1633,#120a21)!important;
  background-image:linear-gradient(180deg,#2b1633,#120a21)!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-notice{
  color:#efdbfa!important;font-size:10px!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-start{
  background:linear-gradient(180deg,#fff0a6,#ffbd31 49%,#ef8b19 76%,#b64413)!important;
  background-image:linear-gradient(180deg,#fff0a6,#ffbd31 49%,#ef8b19 76%,#b64413)!important;
  border-radius:999px!important;font:900 italic 12px system-ui!important;
  box-shadow:0 0 0 2px #ffca40,0 0 14px #ff8a0066!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-close{
  font-size:12px!important;border-radius:999px!important;
}
@media(max-width:520px){
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell .modal-head>span{
   top:3.1%!important;font-size:9px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell .modal-head>span::after{
   height:1px!important;margin:2px auto 0!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-summary h2{
   font-size:15px!important;
 }
}

/* P1216 V5 — prevent mobile title from becoming dark and illegible. */
@media(max-width:520px){
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell .modal-head>span {
  font:900 italic 11px/1.12 'Segoe UI',system-ui,sans-serif!important;
  color:#ffdf74!important;
  -webkit-text-fill-color:#ffdf74!important;
  -webkit-text-stroke:0!important;
  text-shadow:1px 1px 0 #07030d,0 0 4px #f38a34!important;
  letter-spacing:0!important;
  top:3.3%!important;
 }
}

/* P1217 — narrow-screen legibility: preserve same two-pane hierarchy while giving it vertical room. */
@media (max-width:520px){
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell{
  width:calc(100vw - 18px)!important;
  height:min(615px,calc(100dvh - 85px))!important;
  max-width:calc(100vw - 18px)!important;
  max-height:calc(100dvh - 75px)!important;
  min-height:420px!important;
  aspect-ratio:auto!important;
  transform:none!important;
  transform-origin:center center!important;
  top:0!important;
  margin:0!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell .modal-head>span{
  top:18px!important;left:14%!important;right:14%!important;
  font:900 italic 15px/1.15 'Segoe UI',system-ui,sans-serif!important;
  color:#ffdc75!important;-webkit-text-fill-color:#ffdc75!important;
  letter-spacing:0!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell .modal-head>.x{
  top:10px!important;right:8px!important;
  width:39px!important;height:39px!important;
  aspect-ratio:1!important;font-size:20px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell .hunt-mode-tabs{
  left:10px!important;right:10px!important;top:66px!important;
  height:39px!important;gap:5px!important;
  padding:2px 1px 3px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell .hunt-mode-tabs button,
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell .hunt-mode-tabs [data-hunt-mode="training"]{
  flex:0 0 82px!important;min-width:82px!important;
  width:82px!important;height:32px!important;max-height:32px!important;
  font-size:11px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell .hunt-mode-tabs button.active{
  height:34px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell.zk63-hunts-mode #zk63HuntInterior:not([hidden]),
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk63-interior{
  left:10px!important;right:10px!important;top:113px!important;bottom:11px!important;
  grid-template-columns:38% minmax(0,1fr)!important;
  grid-template-rows:minmax(0,1fr) 51px!important;
  gap:7px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk63-left{
  padding:6px 5px!important;grid-template-rows:40px 20px minmax(0,1fr)!important;
  min-width:0!important;min-height:0!important;overflow:hidden!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk63-search{
  height:37px!important;min-height:37px!important;grid-template-columns:23px minmax(0,1fr)!important;
  padding:0 5px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk63-search input{
  height:30px!important;font-size:12px!important;min-width:0!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk63-count{
  height:20px!important;font-size:10px!important;
  overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk63-hunt-card{
  height:57px!important;min-height:57px!important;
  grid-template-columns:30px minmax(0,1fr)!important;gap:5px!important;
  padding:5px 3px!important;margin-bottom:4px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk63-hunt-card>img{
  width:28px!important;height:28px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-hunt-card b{
  font-size:11px!important;line-height:1.18!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-hunt-card small{
  display:block!important;font-size:9.5px!important;line-height:1.1!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk85-view-switch{
  left:40%!important;right:4px!important;top:4px!important;
  height:33px!important;gap:3px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk85-view-switch button{
  min-width:0!important;flex:1 1 0!important;
  height:30px!important;padding:0 4px!important;
  border:1px solid #a5642b!important;
  background:linear-gradient(180deg,#321942,#170c27)!important;
  color:#f0def9!important;
  font-size:11px!important;letter-spacing:0!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk85-view-switch button.active{
  background:linear-gradient(180deg,#ffe68d,#ffa824 70%,#c74a17)!important;
  color:#210b13!important;
  border:1px solid #ffdb73!important;
  text-shadow:none!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk63-center{
  padding:44px 6px 8px!important;
  grid-template-rows:minmax(90px,1.6fr) 56px 23px minmax(80px,.9fr)!important;
  overflow:auto!important;scrollbar-width:thin!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk63-summary{
  grid-template-columns:40px minmax(0,1fr)!important;
  gap:5px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk63-portrait{
  width:38px!important;height:38px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk63-copy h2{
  font-size:16px!important;white-space:normal!important;
  overflow-wrap:anywhere!important;line-height:1.15!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-summary p,
 html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-copy p{
  font-size:11px!important;line-height:1.35!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk63-level{
  font-size:10px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk63-stats{
  height:56px!important;min-height:56px!important;overflow:auto!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk63-section-title{
  height:23px!important;font-size:11px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk63-pulls{
  min-height:80px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk63-right{
  padding:44px 5px 6px!important;overflow:auto!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk63-loot-row{
  height:49px!important;min-height:49px!important;
  grid-template-columns:25px minmax(0,1fr) 22px!important;
  gap:4px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-loot-row b{
  font-size:11px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior .zk63-loot-row small{
  font-size:10px!important;line-height:1.22!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk63-footer{
  padding:4px!important;min-height:47px!important;gap:4px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk63-notice{
  font-size:10px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk63-start{
  width:124px!important;height:37px!important;font-size:11px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk63-close{
  width:64px!important;height:37px!important;font-size:11px!important;
 }
}

/* Existing image-era mobile CSS applies zoom:.74. Cancel it only in this opt-in theme. */
@media(max-width:520px){
 html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-browser-modal.zk63-shell{
  zoom:1!important;
 }
}
/* Modal must sit above HUD Timed shortcut while it is open, not vice versa. */
html.zt-on:not(#zt0):not(#zt1) body #huntModal.modal-backdrop.show{
 z-index:120000!important;
}

/* P1219 + P1220 remaining systems, final */
/* P1219 — next-stage themed system views: original DOM, layouts and controls retained.
   Opt-in only; NO new widgets, artwork, buttons, character sprites or server logic.
   The shared frame P1218 remains the authoritative shell. */
html.zt-on:not(#zt0):not(#zt1) body #huntModal #huntArenaView.zk-arena{
 background:radial-gradient(ellipse at 50% -10%,#7d411d38,transparent 65%),linear-gradient(180deg,#211332,#10091f)!important;
 background-image:radial-gradient(ellipse at 50% -10%,#7d411d38,transparent 65%),linear-gradient(180deg,#211332,#10091f)!important;
 border:1px solid #d48a36!important;box-shadow:inset 0 0 0 1px #000,0 0 15px #ff740033!important;
 color:#fff0e2!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk-arena-hero,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk-arena-ladder-wrap{
 background:linear-gradient(180deg,#321938,#140d29)!important;
 border:1px solid #b97735!important;
 box-shadow:inset 0 0 0 1px #000,inset 0 1px #ffce5a20!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk-arena-hero h2{
 color:#ffe066!important;font-weight:900!important;font-style:italic!important;
 text-shadow:2px 2px #000,0 0 8px #ff8a0050!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk-arena-rules li,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk-arena-ladder li{
 background:linear-gradient(180deg,#271834,#140c23)!important;
 border-color:#98622f!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk-arena-rules span,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk-arena-foot span{color:#e0d2ec!important}
html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk-arena-close{
 background:linear-gradient(#fff2aa,#ffb934,#d65d14)!important;color:#201007!important;
 border:2px solid #000!important;box-shadow:0 0 0 1px #ffce55!important;
}
/* Sagas and the Tower share r236 panels but may carry different mode classes. */
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-saga-main,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-saga-box,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-saga-hero,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-saga-rewards,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-saga-requirements,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk77-boss-main,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk77-boss-loot-panel{
 background:linear-gradient(180deg,#241335,#10091f)!important;
 background-image:linear-gradient(180deg,#241335,#10091f)!important;
 border-color:#c27e35!important;color:#fff0e5!important;
 box-shadow:inset 0 1px #ffbc3e1d!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-saga-card,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-saga-req,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk77-boss-card,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk77-boss-loot{
 background:linear-gradient(100deg,#2b1a3b,#170e28)!important;
 background-image:linear-gradient(100deg,#2b1a3b,#170e28)!important;
 border:1px solid #89533e!important;color:#f4e5fb!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-saga-card.active,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk77-boss-card.active{
 border-color:#ffc143!important;box-shadow:inset 3px 0 #ffce50,0 0 9px #ff85004b!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-saga-hero h2,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-saga-main h2,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk77-boss-hero h2{
 color:#ffe277!important;font-weight:900!important;font-style:italic!important;
 text-shadow:1px 2px #000!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-saga-card small,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-saga-req small,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk77-boss-card small,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk77-boss-loot small{
 color:#d9c5e5!important;
}
/* Native infoModal modes: Guild/Rank/Party/Profile/Codex/Recruit/etc.
   Scope to content, preserving author-defined grids, columns, slots and navigation. */
html.zt-on:not(#zt0):not(#zt1) body #infoModal .r171-system-head,
html.zt-on:not(#zt0):not(#zt1) body #infoModal .r173-guild-hero,
html.zt-on:not(#zt0):not(#zt1) body #infoModal .r173-guild-empty-hero,
html.zt-on:not(#zt0):not(#zt1) body #infoModal .r171-recruit-banner{
 background:linear-gradient(95deg,#32183d,#1b0f2b)!important;
 background-image:linear-gradient(95deg,#32183d,#1b0f2b)!important;
 border:1px solid #a56a38!important;
 border-bottom:2px solid #ff992c!important;color:#f8eaff!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal .r171-system-head h2,
html.zt-on:not(#zt0):not(#zt1) body #infoModal .r173-guild-hero h2,
html.zt-on:not(#zt0):not(#zt1) body #infoModal .r173-guild-empty-hero h3,
html.zt-on:not(#zt0):not(#zt1) body #infoModal .r171-recruit-banner h3{
 color:#ffe078!important;font-weight:900!important;font-style:italic!important;
 text-shadow:1px 2px #000,0 0 9px #ff7b004b!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal .r171-system-head small,
html.zt-on:not(#zt0):not(#zt1) body #infoModal .r171-recruit-banner p{color:#d7c5e5!important}
html.zt-on:not(#zt0):not(#zt1) body #infoModal .r171-cyclo-tabs button,
html.zt-on:not(#zt0):not(#zt1) body #infoModal .r175-tabs button,
html.zt-on:not(#zt0):not(#zt1) body #infoModal .r175-subtabs button,
html.zt-on:not(#zt0):not(#zt1) body #shopModal .store-tabs button,
html.zt-on:not(#zt0):not(#zt1) body #shopModal .npc-trade-tabs button,
html.zt-on:not(#zt0):not(#zt1) body #shopModal .npc-shop-categories button{
 background:linear-gradient(180deg,#321d46,#170e29)!important;
 border:1px solid #945c38!important;color:#f1ddf4!important;
 border-radius:6px!important;font-weight:850!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal .r171-cyclo-tabs button.active,
html.zt-on:not(#zt0):not(#zt1) body #infoModal .r175-tabs button.active,
html.zt-on:not(#zt0):not(#zt1) body #infoModal .r175-subtabs button.active,
html.zt-on:not(#zt0):not(#zt1) body #shopModal .store-tabs button.active,
html.zt-on:not(#zt0):not(#zt1) body #shopModal .npc-trade-tabs button.active,
html.zt-on:not(#zt0):not(#zt1) body #shopModal .npc-shop-categories button.active{
 background:linear-gradient(180deg,#ffe79b,#ffac32 58%,#c65b1e)!important;
 border-color:#ffb63f!important;color:#20100d!important;
 box-shadow:inset 0 1px #fff8cb70,0 0 9px #ff770047!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal .r171-item-card,
html.zt-on:not(#zt0):not(#zt1) body #infoModal .r171-beast-card,
html.zt-on:not(#zt0):not(#zt1) body #infoModal .r173-character-card,
html.zt-on:not(#zt0):not(#zt1) body #infoModal .r173-boss-card,
html.zt-on:not(#zt0):not(#zt1) body #infoModal .r173-guild-stats>div,
html.zt-on:not(#zt0):not(#zt1) body #infoModal .r171-hunt-dashboard .r171-hero{
 background:linear-gradient(180deg,#281831,#130c24)!important;
 border:1px solid #9b633d!important;color:#f4e5f5!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal .r171-item-card.active,
html.zt-on:not(#zt0):not(#zt1) body #infoModal .r171-beast-card.active,
html.zt-on:not(#zt0):not(#zt1) body #infoModal .r173-character-card.active{
 border:1px solid #ffc34e!important;box-shadow:inset 3px 0 #ffcc54!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal .r171-portrait-slot,
html.zt-on:not(#zt0):not(#zt1) body #infoModal .r171-hero-portrait{
 background:#130c25!important;border-color:#b77d39!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal .r171-cyclo-toolbar input,
html.zt-on:not(#zt0):not(#zt1) body #shopModal .npc-shop-search-wrap input{
 background:#130d24!important;color:#fff4e6!important;border:1px solid #a9733a!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal table th,
html.zt-on:not(#zt0):not(#zt1) body #shopModal table th{
 background:#472541!important;color:#ffdc80!important;border-color:#a66a37!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal table td,
html.zt-on:not(#zt0):not(#zt1) body #shopModal table td{
 background:#1a102a!important;color:#f1e5f7!important;border-color:#5c3c4f!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal .modal-body,
html.zt-on:not(#zt0):not(#zt1) body #infoModal #infoContent{
 scrollbar-color:#bb783b #10091f!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal #forgeHelpBtn{
 background:linear-gradient(#f8c75d,#b86622)!important;
 color:#1c0b08!important;border:2px solid #000!important;border-radius:50%!important;
 box-shadow:0 0 0 1px #ffce64!important;
}
/* Inventory/Depot: keep exact equipment slots; recolor only underlying panel
   textures and the containers. Never hide item icons or item slots. */
html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .equip-pane,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .storage-pane,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.depot-mode .storage-pane,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.depot-mode .depot-tabs,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .tibia-inventory{
 background:linear-gradient(180deg,#261536,#120b22)!important;
 background-image:linear-gradient(180deg,#261536,#120b22)!important;
 border-color:#a86a38!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .equip-pane::before{
 background:none!important;background-image:none!important;
 opacity:1!important;
 border:2px solid #aa7336!important;border-radius:6px!important;
 box-shadow:inset 0 0 0 2px #000,0 0 12px #ff9e0024!important;
}
/* Store/Forja surfaces; original shop categories, item actions and grids remain. */
html.zt-on:not(#zt0):not(#zt1) body #shopModal .npc-shop-center,
html.zt-on:not(#zt0):not(#zt1) body #shopModal .npc-shop-details,
html.zt-on:not(#zt0):not(#zt1) body #shopModal .store-feature,
html.zt-on:not(#zt0):not(#zt1) body #shopModal .npc-shop-head,
html.zt-on:not(#zt0):not(#zt1) body #shopModal .npc-shop-grid{
 background:linear-gradient(180deg,#251532,#120b23)!important;
 background-image:linear-gradient(180deg,#251532,#120b23)!important;
 color:#f8e7f6!important;border-color:#ae7444!important;
}
html.zt-on:not(#zt0):not(#zt1) body #shopModal .npc-shop-head b{
 color:#ffe066!important;font-weight:900!important;font-style:italic!important;
}
@media(max-width:700px){
 html.zt-on:not(#zt0):not(#zt1) body #infoModal .r171-cyclo-tabs,
 html.zt-on:not(#zt0):not(#zt1) body #infoModal .r175-tabs,
 html.zt-on:not(#zt0):not(#zt1) body #infoModal .r175-subtabs{
  overflow-x:auto!important;max-width:100%!important;flex-wrap:nowrap!important;
  scrollbar-width:thin!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal .r171-cyclo-tabs button,
 html.zt-on:not(#zt0):not(#zt1) body #infoModal .r175-tabs button,
 html.zt-on:not(#zt0):not(#zt1) body #infoModal .r175-subtabs button{
  flex:0 0 auto!important;font-size:11px!important;
 }
}


/* P1219 mobile shop: remove legacy image-era zoom; use stacked NPC inventory/detail sections.
   Original NPC selection buttons and actions remain untouched. */
@media(max-width:520px){
 html.zt-on:not(#zt0):not(#zt1) body #shopModal .store-modal{
  zoom:1!important;width:calc(100vw - 18px)!important;max-width:calc(100vw - 18px)!important;
  height:min(680px,calc(100dvh - 90px))!important;
  max-height:calc(100dvh - 70px)!important;
  min-height:420px!important;overflow:hidden!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #shopModal .store-tabs{
  flex:none!important;min-height:39px!important;height:39px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #shopModal .store-tabs button{
  min-height:31px!important;font-size:11px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #shopModal .store-view{
  min-height:0!important;flex:1 1 auto!important;overflow:auto!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #shopModal .npc-shop-layout{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:minmax(260px,1fr) minmax(175px,.65fr)!important;
  height:100%!important;min-height:480px!important;gap:6px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #shopModal .npc-shop-center{
  min-height:260px!important;max-height:none!important;overflow:hidden!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #shopModal .npc-shop-details{
  min-height:175px!important;overflow:auto!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #shopModal .npc-shop-grid{
  grid-template-columns:repeat(auto-fit,minmax(36px,1fr))!important;
  overflow:auto!important;min-height:60px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #shopModal .npc-shop-search-wrap input{
  font-size:12px!important;
 }
}

/* Keep opened system windows above the Timed HUD launcher (z-index 96000).
   This is only active while the theme is enabled and window is open. */
html.zt-on:not(#zt0):not(#zt1) body #shopModal.modal-backdrop.show,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.modal-backdrop.show{
 z-index:120000!important;
}

/* P1219 inventory pass, real inventory DOM, no slot count/order altered. */
html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .modal.compact{
 background:linear-gradient(180deg,#231331,#0c0718) padding-box,
 linear-gradient(135deg,#ffe277,#ff8a19 45%,#ce2425 78%,#ffb62a) border-box!important;
 border:3px solid transparent!important;border-radius:8px!important;
 box-shadow:0 0 0 2px #000,0 0 18px #ff76006b!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .modal.compact::before{
 background:none!important;background-image:none!important;
 border:0!important;box-shadow:none!important;pointer-events:none!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .modal-head{
 background:linear-gradient(90deg,#3e1942,#1a0d2a)!important;
 border-bottom:2px solid #ff9a25!important;
 color:#ffdf7c!important;text-shadow:2px 2px #000!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .equip-pane,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .storage-pane{
 background:linear-gradient(180deg,#211331,#10091f)!important;
 background-image:linear-gradient(180deg,#211331,#10091f)!important;
 border:1px solid #a86e38!important;border-radius:6px!important;
 box-shadow:inset 0 0 0 1px #000,inset 0 1px #ffb94328!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .equip-slot,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .bag-slot{
 background:linear-gradient(180deg,#301a40,#190d28)!important;
 background-image:linear-gradient(180deg,#301a40,#190d28)!important;
 border:1px solid #d08a3a!important;border-radius:5px!important;
 box-shadow:inset 0 0 0 1px #06030c!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .storage-title{
 background:linear-gradient(90deg,#3c1d45,#211233)!important;
 color:#ffe5a0!important;border-bottom:1px solid #ff9a25!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .storage-title b{color:#ffe077!important}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .storage-title small{color:#ead3f0!important}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .inventory-footer{
 color:#f3e0ed!important;
}
@media(max-width:520px){
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .modal.compact{
  zoom:1!important;width:calc(100vw - 18px)!important;max-width:calc(100vw - 18px)!important;
  height:min(690px,calc(100dvh - 75px))!important;
  max-height:calc(100dvh - 65px)!important;min-height:450px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .modal-head{
  position:absolute!important;top:0!important;left:0!important;right:0!important;
  transform:none!important;width:calc(100% - 6px)!important;
  max-width:none!important;height:48px!important;
  padding:10px 54px 7px 12px!important;
  font-size:15px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .modal-head .x{
  top:4px!important;right:3px!important;width:38px!important;height:38px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .modal-body{
  top:50px!important;bottom:8px!important;left:7px!important;right:7px!important;
  overflow:hidden!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .tibia-inventory{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:227px minmax(160px,1fr) 48px!important;
  padding:3px!important;gap:6px!important;
  width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .equip-pane{
  grid-column:1!important;grid-row:1!important;
  min-width:0!important;min-height:0!important;overflow:hidden!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .equipment-paperdoll{
  position:absolute!important;top:50%!important;left:50%!important;
  width:174px!important;height:210px!important;
  transform:translate(-50%,-50%)!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .storage-pane{
  grid-column:1!important;grid-row:2!important;
  width:100%!important;min-width:0!important;min-height:0!important;overflow:hidden!important;
  padding:3px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .storage-section{
  height:100%!important;min-height:0!important;padding:4px!important;overflow:hidden!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .storage-title{
  height:30px!important;min-height:30px!important;padding:4px 6px!important;
  display:flex!important;align-items:center!important;gap:8px!important;
  white-space:nowrap!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .storage-title b{
  font-size:13px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .storage-title small{
  font-size:10px!important;overflow:hidden!important;text-overflow:ellipsis!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .backpack-scroll{
  flex:1 1 auto!important;min-height:0!important;width:100%!important;overflow-y:auto!important;
  padding:5px 6px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .backpack-scroll .bag-grid{
  display:grid!important;grid-template-columns:repeat(5,42px)!important;
  grid-auto-rows:42px!important;gap:6px!important;
  width:max-content!important;max-width:100%!important;
  margin:auto!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .inventory-footer{
  grid-column:1!important;grid-row:3!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) 96px!important;
  height:48px!important;min-height:48px!important;width:100%!important;
  gap:6px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .capacity-box{
  min-width:0!important;max-width:100%!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .inventory-money{
  width:96px!important;min-width:0!important;max-width:96px!important;
 }
}


/* P1219 Profile: original character sheet, bars and training remain intact. */
html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .character-sheet,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .character-summary,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .character-box,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .character-training-compact,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .p236-passive,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .character-side-stats{
 background:linear-gradient(180deg,#271633,#130c24)!important;
 background-image:linear-gradient(180deg,#271633,#130c24)!important;
 border-color:#a56c39!important;color:#f5eafa!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .character-summary,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .character-box{
 box-shadow:inset 0 0 0 1px #000,inset 0 1px #ffbd5126!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .character-tabs button{
 background:linear-gradient(180deg,#382047,#190e2b)!important;
 border:1px solid #9f6b3e!important;color:#eedbf2!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .character-tabs button.active{
 background:linear-gradient(180deg,#fff0ac,#ffaf2a,#ce541b)!important;
 color:#1d0807!important;border-color:#ffe071!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .character-summary b,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .character-box h3,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .training-footer b,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .p236-passive-head{
 color:#ffdc7b!important;
 text-shadow:0 1px #000!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .character-portrait{
 background:radial-gradient(#281c3b,#090515)!important;
 border:1px solid #daa044!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .training-stat-row{
 border-color:#79513f!important;color:#f0e3f5!important;
}
/* Real global ranking board, hero, tabs and table. */
html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-ranking-mode .zk-rank-board,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-ranking-mode .zk-rank-hero,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-ranking-mode .zk-rank-scroll,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-ranking-mode .zk-rank-table{
 background:linear-gradient(180deg,#251535,#10091f)!important;
 background-image:linear-gradient(180deg,#251535,#10091f)!important;
 border-color:#ab703e!important;color:#f4e3f2!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-ranking-mode .zk-rank-hero h2,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-ranking-mode .zk-rank-list-top{
 color:#ffe079!important;font-style:italic!important;font-weight:900!important;
 text-shadow:1px 2px #000!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-ranking-mode .zk-rank-tabs button,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-ranking-mode .zk-rank-categories button{
 background:linear-gradient(180deg,#392046,#190e2a)!important;
 border:1px solid #a16a3e!important;color:#edddf8!important;
 border-radius:5px!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-ranking-mode .zk-rank-tabs button.active,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-ranking-mode .zk-rank-categories button.active{
 background:linear-gradient(180deg,#ffeaa7,#ffa82c,#d26220)!important;
 border:1px solid #ffce65!important;color:#200a08!important;
 text-shadow:none!important;box-shadow:0 0 8px #ff7f0040!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-ranking-mode .zk-rank-columns{
 background:#3b203d!important;color:#ffe079!important;border-color:#ce8d3d!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-ranking-mode .zk-rank-empty{
 color:#dac7ec!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-ranking-mode .zk-rank-footer,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-ranking-mode .zk-rank-live{
 color:#d3c0e4!important;
}
/* Guild's native r164-system-head (different from r171 generic header). */
html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-mode .r164-system-head{
 border-bottom:2px solid #f59b32!important;color:#e4d4eb!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-mode .r164-system-head h2,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-mode .r164-guild h3{
 color:#ffdc79!important;font-style:italic!important;
 text-shadow:1px 2px #000!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-mode .r164-member,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-mode .r164-guild-form,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-mode .r164-guild section{
 background-color:#20132f!important;border-color:#9b613d!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-mode input{
 background:#130b25!important;border:1px solid #bd7937!important;
 color:#fff4e9!important;
}
@media(max-width:520px){
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .character-box,
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .character-summary,
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-ranking-mode .zk-rank-board{
  color:#f7e7f3!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-ranking-mode .zk-rank-tabs,
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-ranking-mode .zk-rank-categories{
  overflow-x:auto!important;scrollbar-width:thin!important;
 }
}


/* P1219 actual Arena Podium P1048 styles — read-only skin of existing panels. */
html.zt-on:not(#zt0):not(#zt1) body #huntModal #huntArenaView .p1048-tabs button,
html.zt-on:not(#zt0):not(#zt1) body #huntModal #huntArenaView .p1048-section-head button{
 background:linear-gradient(180deg,#351d45,#170d29)!important;
 border:1px solid #a36c3d!important;color:#f2e0ef!important;
 font-weight:900!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #huntArenaView .p1048-tabs button.on{
 background:linear-gradient(180deg,#fff1a7,#ffaf31,#c85c1e)!important;
 border:1px solid #ffd36d!important;color:#231009!important;
 box-shadow:0 0 8px #ff7a0045!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #huntArenaView .p1048-rank-card,
html.zt-on:not(#zt0):not(#zt1) body #huntModal #huntArenaView .p1048-stat,
html.zt-on:not(#zt0):not(#zt1) body #huntModal #huntArenaView .p1048-target,
html.zt-on:not(#zt0):not(#zt1) body #huntModal #huntArenaView .p1048-help,
html.zt-on:not(#zt0):not(#zt1) body #huntModal #huntArenaView .p1048-message{
 background:linear-gradient(180deg,#2c183d,#170d28)!important;
 background-image:linear-gradient(180deg,#2c183d,#170d28)!important;
 border:1px solid #ab7445!important;color:#f2e4f6!important;
 box-shadow:inset 0 1px #ffcd6424!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #huntArenaView .p1048-message.error{
 background:linear-gradient(180deg,#482231,#241021)!important;
 border-color:#de6f4f!important;color:#ffe1da!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #huntArenaView .p1048-rank-card strong,
html.zt-on:not(#zt0):not(#zt1) body #huntModal #huntArenaView .p1048-target-line strong{
 color:#ffe181!important;font-style:italic!important;
 text-shadow:1px 2px #000!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #huntArenaView .p1048-rank-card span,
html.zt-on:not(#zt0):not(#zt1) body #huntModal #huntArenaView .p1048-stat small,
html.zt-on:not(#zt0):not(#zt1) body #huntModal #huntArenaView .p1048-section-head small,
html.zt-on:not(#zt0):not(#zt1) body #huntModal #huntArenaView .p1048-help>div{
 color:#e1d0ed!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #huntArenaView .p1048-help summary{
 color:#ffe181!important;font-weight:900!important;
}
@media(max-width:520px){
 html.zt-on:not(#zt0):not(#zt1) body #huntModal #huntArenaView .p1048-tabs button{
  font-size:10px!important;letter-spacing:0!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal #huntArenaView .p1048-rank-card small{
  font-size:10px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #huntModal #huntArenaView .p1048-rank-card span{
  font-size:11px!important;
 }
}

/* P1220 — remaining systems, client-only theme extension built from inspected DOM classes. */

html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-main,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-side,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-saga-main,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-boss-main,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-saga-box,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-saga-hero,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-saga-rewards,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-saga-requirements,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-boss-panels,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-mechanics-panel,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-boss-loot,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-rewards-scroll,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .p385-view .p413-facts,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-footer,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r224-saga-main,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r224-boss-main,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r226-saga-main,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r226-boss-main{
 background:linear-gradient(180deg,#291735,#110b21)!important;
 background-image:linear-gradient(180deg,#291735,#110b21)!important;
 color:#f8eafa!important;
 border-color:#ad743e!important;
 box-shadow:inset 0 1px #ffd56f24!important
}

html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-saga-card,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-boss-card,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-saga-req,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-wave,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .p413-fact,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .p413-reward,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .p413-skill,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r224-wave-node,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r224-reward-row,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r226-reward-card,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r226-boss-drop,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r224-boss-card,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-boss-drop-grid{
 background:linear-gradient(160deg,#321d3f,#1b112a)!important;
 background-image:linear-gradient(160deg,#321d3f,#1b112a)!important;
 color:#f3e6f6!important;
 border-color:#996038!important
}

html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-box-head,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-rewards-head,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-saga-hero h2,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-boss-hero h2,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .p385-hero-txt h2,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .p413-header,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r224-section-heading{
 color:#ffe080!important;
 font-weight:900!important;
 font-style:italic!important;
 text-shadow:1px 2px #08040d!important
}

html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-saga-req small,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-saga-card small,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-boss-card small,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .p413-fact small,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .p413-reward-info small{
 color:#ddc9ea!important;
 text-shadow:0 1px #08040d!important
}

html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-saga-card.active,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-boss-card.active,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .r236-saga-card.available{
 border-color:#ffcf65!important;
 box-shadow:inset 3px 0 #ffd46e,0 0 9px #ff850050!important
}

html.zt-on:not(#zt0):not(#zt1) body #huntModal #p36TrainingSurface,
html.zt-on:not(#zt0):not(#zt1) body #huntModal #p36TrainingSurface header,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .p36-training-content{
 background:linear-gradient(180deg,#291735,#110b21)!important;
 background-image:linear-gradient(180deg,#291735,#110b21)!important;
 color:#f8eafa!important;
 border-color:#ad743e!important;
 box-shadow:inset 0 1px #ffd56f24!important
}

html.zt-on:not(#zt0):not(#zt1) body #huntModal #p36TrainingSurface h2{
 color:#ffe080!important;
 font-weight:900!important;
 font-style:italic!important;
 text-shadow:1px 2px #08040d!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-layout,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-library,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-detail,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-topline,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-hero,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-side,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-recipe-tree,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-craft-detail{
 background:linear-gradient(180deg,#291735,#110b21)!important;
 background-image:linear-gradient(180deg,#291735,#110b21)!important;
 color:#f8eafa!important;
 border-color:#ad743e!important;
 box-shadow:inset 0 1px #ffd56f24!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-note,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-empty-detail,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-rule,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-operation-grid,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-material-list,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-recipe-library{
 background:linear-gradient(160deg,#321d3f,#1b112a)!important;
 background-image:linear-gradient(160deg,#321d3f,#1b112a)!important;
 color:#f3e6f6!important;
 border-color:#996038!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode h2,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode h3,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-topline b,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-note b{
 color:#ffe080!important;
 font-weight:900!important;
 font-style:italic!important;
 text-shadow:1px 2px #08040d!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-note,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-empty,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-empty-detail p{
 color:#ddc9ea!important;
 text-shadow:0 1px #08040d!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-tabs button{
 background:linear-gradient(180deg,#3b2249,#170d2a)!important;
 background-image:linear-gradient(180deg,#3b2249,#170d2a)!important;
 color:#f3e3f5!important;
 border:1px solid #b17a42!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-tabs button.active{
 background:linear-gradient(180deg,#fff0a5,#ffb331,#d15b1c)!important;
 background-image:linear-gradient(180deg,#fff0a5,#ffb331,#d15b1c)!important;
 color:#1e0b0a!important;
 border:1px solid #ffe17b!important;
 text-shadow:none!important;
 box-shadow:0 0 10px #ff8a004b!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r299-recipe-search,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r299-recipe-search input{
 background:#140c25!important;
 background-image:none!important;
 border:1px solid #ae7845!important;
 color:#fff2e9!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .r171-cyclopedia,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .r171-cyclo-body,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .r171-beast-detail,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .p23-bestiary-detail,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .p23-unlock-panel,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .r171-system-head{
 background:linear-gradient(180deg,#291735,#110b21)!important;
 background-image:linear-gradient(180deg,#291735,#110b21)!important;
 color:#f8eafa!important;
 border-color:#ad743e!important;
 box-shadow:inset 0 1px #ffd56f24!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .r171-beast-card,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .p23-discovery-row,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .r306f4-cyclo-guide{
 background:linear-gradient(160deg,#321d3f,#1b112a)!important;
 background-image:linear-gradient(160deg,#321d3f,#1b112a)!important;
 color:#f3e6f6!important;
 border-color:#996038!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .r171-system-head h2,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .r171-beast-title,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .r171-beast-big,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .p23-discovery-index{
 color:#ffe080!important;
 font-weight:900!important;
 font-style:italic!important;
 text-shadow:1px 2px #08040d!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .r171-subnote,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .r171-cyclo-toolbar{
 color:#ddc9ea!important;
 text-shadow:0 1px #08040d!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .r171-cyclo-tabs button{
 background:linear-gradient(180deg,#3b2249,#170d2a)!important;
 background-image:linear-gradient(180deg,#3b2249,#170d2a)!important;
 color:#f3e3f5!important;
 border:1px solid #b17a42!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .r171-cyclo-tabs button.active{
 background:linear-gradient(180deg,#fff0a5,#ffb331,#d15b1c)!important;
 background-image:linear-gradient(180deg,#fff0a5,#ffb331,#d15b1c)!important;
 color:#1e0b0a!important;
 border:1px solid #ffe17b!important;
 text-shadow:none!important;
 box-shadow:0 0 10px #ff8a004b!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .r171-cyclo-toolbar input{
 background:#140c25!important;
 background-image:none!important;
 border:1px solid #ae7845!important;
 color:#fff2e9!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.recruit-mode .r118-recruit-layout,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.recruit-mode .r118-banner-sidebar,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.recruit-mode .r183-recruit-shell,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.recruit-mode .r183-recruit-top,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.recruit-mode .r183-recruit-console,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.recruit-mode .r183-recruit-drawer,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.recruit-mode .r183-recruit-foot{
 background:linear-gradient(180deg,#291735,#110b21)!important;
 background-image:linear-gradient(180deg,#291735,#110b21)!important;
 color:#f8eafa!important;
 border-color:#ad743e!important;
 box-shadow:inset 0 1px #ffd56f24!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.recruit-mode .r118-banner-entry,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.recruit-mode .r183-pity-card,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.recruit-mode .r183-wallet,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.recruit-mode .r191-pity-step{
 background:linear-gradient(160deg,#321d3f,#1b112a)!important;
 background-image:linear-gradient(160deg,#321d3f,#1b112a)!important;
 color:#f3e6f6!important;
 border-color:#996038!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.recruit-mode .r118-sidebar-heading,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.recruit-mode .r183-featured-kicker,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.recruit-mode .r183-banner-copy h2,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.recruit-mode .r183-pity-card b{
 color:#ffe080!important;
 font-weight:900!important;
 font-style:italic!important;
 text-shadow:1px 2px #08040d!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.recruit-mode .r183-featured-meta,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.recruit-mode .r219-fragment-foot{
 color:#ddc9ea!important;
 text-shadow:0 1px #08040d!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.recruit-mode .r118-banner-entry.active{
 border:2px solid #ffd36b!important;
 box-shadow:inset 3px 0 #ffe074,0 0 10px #ffa00040!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.development-mode .r220-development,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.development-mode .r220-development-main,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.development-mode .r220-roster,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.development-mode .r220-dev-hero,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.development-mode .r220-dev-pane,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.development-mode .r220-choice-section,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.development-mode .r220-help{
 background:linear-gradient(180deg,#291735,#110b21)!important;
 background-image:linear-gradient(180deg,#291735,#110b21)!important;
 color:#f8eafa!important;
 border-color:#ad743e!important;
 box-shadow:inset 0 1px #ffd56f24!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.development-mode .r220-roster button,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.development-mode .r220-form-card,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.development-mode .r220-mastery-row,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.development-mode .r220-frag-wallet,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.development-mode .r220-loading{
 background:linear-gradient(160deg,#321d3f,#1b112a)!important;
 background-image:linear-gradient(160deg,#321d3f,#1b112a)!important;
 color:#f3e6f6!important;
 border-color:#996038!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.development-mode .r220-section-head h3,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.development-mode .r220-dev-copy h2,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.development-mode .r220-choice-head h4{
 color:#ffe080!important;
 font-weight:900!important;
 font-style:italic!important;
 text-shadow:1px 2px #08040d!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.development-mode .r220-dev-tabs button{
 background:linear-gradient(180deg,#3b2249,#170d2a)!important;
 background-image:linear-gradient(180deg,#3b2249,#170d2a)!important;
 color:#f3e3f5!important;
 border:1px solid #b17a42!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.development-mode .r220-dev-tabs button.active{
 background:linear-gradient(180deg,#fff0a5,#ffb331,#d15b1c)!important;
 background-image:linear-gradient(180deg,#fff0a5,#ffb331,#d15b1c)!important;
 color:#1e0b0a!important;
 border:1px solid #ffe17b!important;
 text-shadow:none!important;
 box-shadow:0 0 10px #ff8a004b!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.party-mode .p1175-root,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.party-mode .p1175-hint,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.party-mode .p75-party-panel,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.party-mode .p75-social-panel{
 background:linear-gradient(180deg,#291735,#110b21)!important;
 background-image:linear-gradient(180deg,#291735,#110b21)!important;
 color:#f8eafa!important;
 border-color:#ad743e!important;
 box-shadow:inset 0 1px #ffd56f24!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.party-mode .p75-social-tabs button,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.party-mode .p1175-tabs button{
 background:linear-gradient(180deg,#3b2249,#170d2a)!important;
 background-image:linear-gradient(180deg,#3b2249,#170d2a)!important;
 color:#f3e3f5!important;
 border:1px solid #b17a42!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.party-mode .p75-social-tabs button.active,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.party-mode .p1175-tabs button.active{
 background:linear-gradient(180deg,#fff0a5,#ffb331,#d15b1c)!important;
 background-image:linear-gradient(180deg,#fff0a5,#ffb331,#d15b1c)!important;
 color:#1e0b0a!important;
 border:1px solid #ffe17b!important;
 text-shadow:none!important;
 box-shadow:0 0 10px #ff8a004b!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal .p1076-settings,
html.zt-on:not(#zt0):not(#zt1) body #infoModal .p1076-card,
html.zt-on:not(#zt0):not(#zt1) body #infoModal .p1076-intro,
html.zt-on:not(#zt0):not(#zt1) body #infoModal .p1076-support{
 background:linear-gradient(180deg,#291735,#110b21)!important;
 background-image:linear-gradient(180deg,#291735,#110b21)!important;
 color:#f8eafa!important;
 border-color:#ad743e!important;
 box-shadow:inset 0 1px #ffd56f24!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal .p1076-control,
html.zt-on:not(#zt0):not(#zt1) body #infoModal .p1076-support-fields,
html.zt-on:not(#zt0):not(#zt1) body #infoModal .p1076-message{
 background:linear-gradient(160deg,#321d3f,#1b112a)!important;
 background-image:linear-gradient(160deg,#321d3f,#1b112a)!important;
 color:#f3e6f6!important;
 border-color:#996038!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal .p1076-intro h2,
html.zt-on:not(#zt0):not(#zt1) body #infoModal .p1076-card h3,
html.zt-on:not(#zt0):not(#zt1) body #infoModal .p1076-support-heading{
 color:#ffe080!important;
 font-weight:900!important;
 font-style:italic!important;
 text-shadow:1px 2px #08040d!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal .p1076-subtle,
html.zt-on:not(#zt0):not(#zt1) body #infoModal .p1076-intro p{
 color:#ddc9ea!important;
 text-shadow:0 1px #08040d!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal .p1076-settings input:not([type="checkbox"]),
html.zt-on:not(#zt0):not(#zt1) body #infoModal .p1076-settings textarea,
html.zt-on:not(#zt0):not(#zt1) body #infoModal .p1076-settings select{
 background:#140c25!important;
 background-image:none!important;
 border:1px solid #ae7845!important;
 color:#fff2e9!important
}

html.zt-on:not(#zt0):not(#zt1) body .p1165-panel,
html.zt-on:not(#zt0):not(#zt1) body .p1165-box,
html.zt-on:not(#zt0):not(#zt1) body .p1165-cands,
html.zt-on:not(#zt0):not(#zt1) body .p1165-wallet,
html.zt-on:not(#zt0):not(#zt1) body .p1166-offers{
 background:linear-gradient(180deg,#291735,#110b21)!important;
 background-image:linear-gradient(180deg,#291735,#110b21)!important;
 color:#f8eafa!important;
 border-color:#ad743e!important;
 box-shadow:inset 0 1px #ffd56f24!important
}

html.zt-on:not(#zt0):not(#zt1) body .p1165-person,
html.zt-on:not(#zt0):not(#zt1) body .p1165-status,
html.zt-on:not(#zt0):not(#zt1) body .p1165-notice{
 background:linear-gradient(160deg,#321d3f,#1b112a)!important;
 background-image:linear-gradient(160deg,#321d3f,#1b112a)!important;
 color:#f3e6f6!important;
 border-color:#996038!important
}

html.zt-on:not(#zt0):not(#zt1) body .p1165-panel h2,
html.zt-on:not(#zt0):not(#zt1) body .p1165-box h3,
html.zt-on:not(#zt0):not(#zt1) body .p1166-tabs{
 color:#ffe080!important;
 font-weight:900!important;
 font-style:italic!important;
 text-shadow:1px 2px #08040d!important
}

html.zt-on:not(#zt0):not(#zt1) body .p1166-tabs button{
 background:linear-gradient(180deg,#3b2249,#170d2a)!important;
 background-image:linear-gradient(180deg,#3b2249,#170d2a)!important;
 color:#f3e3f5!important;
 border:1px solid #b17a42!important
}

html.zt-on:not(#zt0):not(#zt1) body .p1166-tabs button.on{
 background:linear-gradient(180deg,#fff0a5,#ffb331,#d15b1c)!important;
 background-image:linear-gradient(180deg,#fff0a5,#ffb331,#d15b1c)!important;
 color:#1e0b0a!important;
 border:1px solid #ffe17b!important;
 text-shadow:none!important;
 box-shadow:0 0 10px #ff8a004b!important
}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-tabs button,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.party-mode .p1175-tabs button,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .r171-cyclo-tabs button{
 font-size:clamp(11px,1vw,13px)!important;
 font-weight:900!important;
 letter-spacing:0!important
}

@media(max-width:520px){

html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .modal.compact,\nhtml.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .modal.wide,\nhtml.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .modal,\nhtml.zt-on:not(#zt0):not(#zt1) body #infoModal.party-mode .modal,\nhtml.zt-on:not(#zt0):not(#zt1) body #infoModal.development-mode .modal,\nhtml.zt-on:not(#zt0):not(#zt1) body #infoModal:not([class*="-mode"]) .modal{zoom:1!important;width:calc(100vw - 18px)!important;max-width:calc(100vw - 18px)!important;height:min(700px,calc(100dvh - 80px))!important;max-height:calc(100dvh - 70px)!important;min-height:0!important;overflow:hidden!important}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .modal-body,\nhtml.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .modal-body,\nhtml.zt-on:not(#zt0):not(#zt1) body #infoModal.party-mode .modal-body,\nhtml.zt-on:not(#zt0):not(#zt1) body #infoModal.development-mode .modal-body,\nhtml.zt-on:not(#zt0):not(#zt1) body #infoModal:not([class*="-mode"]) .modal-body{min-width:0!important;max-width:100%!important;overflow-y:auto!important;overflow-x:hidden!important}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-layout{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(165px,.65fr) minmax(190px,1fr)!important;height:100%!important;max-width:100%!important;overflow:auto!important}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-library,\nhtml.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-detail{width:100%!important;max-width:100%!important;min-width:0!important;min-height:140px!important;overflow:auto!important}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-tabs{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;max-width:100%!important;scrollbar-width:thin!important}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-tabs button{flex:0 0 auto!important;min-height:32px!important;font-size:11px!important}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .r171-cyclo-body{max-width:100%!important;min-width:0!important;overflow:auto!important}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .r171-cyclopedia{min-width:0!important;width:100%!important;max-width:100%!important;overflow:auto!important}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .r171-cyclo-tabs{display:flex!important;overflow-x:auto!important;flex-wrap:nowrap!important;scrollbar-width:thin!important}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .r171-cyclo-tabs button{flex:0 0 auto!important;min-width:70px!important;font-size:11px!important}

html.zt-on:not(#zt0):not(#zt1) body #infoModal.party-mode .p1175-tabs,\nhtml.zt-on:not(#zt0):not(#zt1) body #infoModal.party-mode .p75-social-tabs{max-width:100%!important;overflow-x:auto!important;flex-wrap:nowrap!important;scrollbar-width:thin!important}

html.zt-on:not(#zt0):not(#zt1) body #infoModal .p1076-settings-grid{grid-template-columns:minmax(0,1fr)!important;max-width:100%!important}

html.zt-on:not(#zt0):not(#zt1) body #infoModal .p1076-settings{max-width:100%!important;min-width:0!important;overflow:auto!important}

html.zt-on:not(#zt0):not(#zt1) body #infoModal .p1076-intro h2{font-size:20px!important}

}

/* P1220 V2 — specificity corrections verified in real Forge and Options DOM. */
@media(max-width:520px){
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-layout{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:minmax(160px,.8fr) minmax(180px,1fr)!important;
  gap:7px!important;padding:5px!important;
  min-width:0!important;min-height:0!important;overflow-y:auto!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-layout>.r164-forge-library{
  grid-column:1!important;grid-row:1!important;
  width:100%!important;height:auto!important;max-width:100%!important;
  min-height:155px!important;overflow:auto!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-layout>.r164-forge-detail{
  grid-column:1!important;grid-row:2!important;
  width:100%!important;height:auto!important;max-width:100%!important;
  min-height:180px!important;overflow:auto!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal:has(.p1076-settings) .modal.compact,
 html.zt-on:not(#zt0):not(#zt1) body #infoModal:has(.p1076-settings) .modal{
  zoom:1!important;width:calc(100vw - 18px)!important;max-width:calc(100vw - 18px)!important;
  height:min(700px,calc(100dvh - 80px))!important;
  max-height:calc(100dvh - 70px)!important;
  overflow:hidden!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal:has(.p1076-settings) .modal-body{
  min-width:0!important;max-width:100%!important;overflow-y:auto!important;
 }
}


/* P1220 V3 — complete mobile forge stack (existing tabs, notice, recipe and detail). */
@media(max-width:520px){
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge.r164-forge-hd{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:48px auto minmax(0,1fr)!important;
  gap:7px!important;
  width:100%!important;max-width:100%!important;height:100%!important;
  min-height:0!important;overflow:auto!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-hd>.r164-forge-tabs{
  grid-column:1!important;grid-row:1!important;width:100%!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-hd>.r164-forge-note{
  grid-column:1!important;grid-row:2!important;
  width:100%!important;margin:0!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-hd>.r164-forge-layout{
  grid-column:1!important;grid-row:3!important;
  width:100%!important;max-width:100%!important;height:100%!important;
  min-width:0!important;min-height:0!important;
 }
}


/* P1220 v4: eliminate blue legacy chrome without hiding item or character art. */
html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r312-retry,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-recipe-action button,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-refine-action button{
  background:linear-gradient(180deg,#ffedab,#ffaf30 57%,#cc5a1f)!important;
  background-image:linear-gradient(180deg,#ffedab,#ffaf30 57%,#cc5a1f)!important;
  border:2px solid #08040c!important;color:#1e0b09!important;
  border-radius:999px!important;box-shadow:0 0 0 1px #ffdb76,0 0 9px #ff870042!important;
  font:900 italic 12px/1.2 system-ui!important;text-shadow:none!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-recipe-tree-actions button,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-recipe-tree button{
  background:linear-gradient(180deg,#3d2349,#190e29)!important;
  background-image:linear-gradient(180deg,#3d2349,#190e29)!important;
  color:#ffe4b6!important;border:1px solid #ab743d!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-recipe-library>header,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-recipe-tree{
  background:linear-gradient(180deg,#2b193a,#120b21)!important;
  background-image:linear-gradient(180deg,#2b193a,#120b21)!important;
  border-color:#a77541!important;color:#f5e4f3!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .r171-beast-portrait,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .p23-bestiary-detail,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .p23-discoveries{
  background:linear-gradient(180deg,#2b183a,#120b21)!important;
  background-image:linear-gradient(180deg,#2b183a,#120b21)!important;
  border-color:#ba8448!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.recruit-mode .r183-secondary-actions button:not([disabled]),
html.zt-on:not(#zt0):not(#zt1) body #infoModal.recruit-mode .r183-recruit-drawer button,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.recruit-mode .r118-banner-entry{
  background:linear-gradient(180deg,#3b2348,#180d28)!important;
  background-image:linear-gradient(180deg,#3b2348,#180d28)!important;
  border-image:none!important;border:1px solid #ad7943!important;
  color:#f4e3ee!important;
  box-shadow:inset 0 1px #ffe4ac32!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.recruit-mode .r183-summon-actions button:not([disabled]){
  border-image:none!important;border:2px solid #000!important;
  border-radius:999px!important;box-shadow:0 0 0 1px #ffcc5a!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal .p1076-primary,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.party-mode .p1175-root button.primary{
  background:linear-gradient(180deg,#ffe9a6,#ffb030,#cb571a)!important;
  background-image:linear-gradient(180deg,#ffe9a6,#ffb030,#cb571a)!important;
  color:#1d0b08!important;border:2px solid #000!important;
  border-radius:999px!important;box-shadow:0 0 0 1px #ffc95c!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal .p1076-switch{
  border:1px solid #e49a3d!important;background:#20132e!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal .p1076-switch[aria-checked="true"]{
  background:linear-gradient(90deg,#ff8a19,#ffd66b)!important;
}
@media(max-width:520px){
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-recipe-tree-actions button{
  min-height:28px!important;font-size:10px!important;
 }
}


/* P1220 V5 — override legacy modal zoom for remaining actual modes using content-aware specificity. */
@media(max-width:520px){
 html.zt-on:not(#zt0):not(#zt1) body #infoModal:has(.r171-cyclopedia) .modal,
 html.zt-on:not(#zt0):not(#zt1) body #infoModal:has(.p1175-root) .modal,
 html.zt-on:not(#zt0):not(#zt1) body #infoModal:has(.r220-loading) .modal,
 html.zt-on:not(#zt0):not(#zt1) body #infoModal:has(.r220-development) .modal{
  zoom:1!important;
  width:calc(100vw - 18px)!important;max-width:calc(100vw - 18px)!important;
  height:min(690px,calc(100dvh - 80px))!important;
  max-height:calc(100dvh - 70px)!important;
  min-height:0!important;overflow:hidden!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal:has(.r171-cyclopedia) .modal-body,
 html.zt-on:not(#zt0):not(#zt1) body #infoModal:has(.p1175-root) .modal-body,
 html.zt-on:not(#zt0):not(#zt1) body #infoModal:has(.r220-loading) .modal-body,
 html.zt-on:not(#zt0):not(#zt1) body #infoModal:has(.r220-development) .modal-body{
  overflow-x:hidden!important;overflow-y:auto!important;
  min-width:0!important;max-width:100%!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal:has(.r171-cyclopedia) .r171-cyclo-body{
  max-width:100%!important;overflow:auto!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal:has(.p1175-root) .p1175-root{
  min-height:190px!important;width:100%!important;max-width:100%!important;
 }
}


/* P1220 final pass — Event Hall P1206, Depot and minor HUD overlays.
   Applies only with zt-on; never edits event logic/rewards or real items. */
html.zt-on:not(#zt0):not(#zt1) body #p1206Root{
 background:rgba(6,3,16,.80)!important;color:#fff1e3!important;
}
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-shell{
 background:linear-gradient(180deg,#281539,#0c0719)!important;
 border:4px solid #ee9d36!important;
 box-shadow:0 0 0 2px #05030b,inset 0 0 0 2px #140b24,0 0 23px #fc72004a!important;
}
html.zt-on:not(#zt0):not(#zt1) body #p1206Root header{
 background:radial-gradient(ellipse at 50% -25%,#9b562d66,transparent 70%),linear-gradient(180deg,#3b1c47,#190d2a)!important;
 border-bottom:2px solid #f8992a!important;
}
html.zt-on:not(#zt0):not(#zt1) body #p1206Root header h2{
 color:#ffe079!important;-webkit-text-stroke:.5px #0e0812!important;
 text-shadow:2px 3px #000,0 0 12px #f80a!important;
}
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-tabs,
html.zt-on:not(#zt0):not(#zt1) body #p1206Root #p1206Content,
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-shell>footer{
 background:linear-gradient(180deg,#291735,#140c26)!important;
 border-color:#b8793f!important;color:#e6d8eb!important;
}
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-tabs button{
 background:linear-gradient(180deg,#3a224b,#180e2a)!important;
 border:1px solid #b97c45!important;color:#f6e6ed!important;
}
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-tabs button.selected{
 background:linear-gradient(180deg,#fff0b1,#ffb536,#ca5620)!important;
 border:1px solid #ffdb71!important;color:#1d0a09!important;
 text-shadow:none!important;
}
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-activity,
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-activity-detail,
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-calendar,
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-rewards,
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-meta span,
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-stats>div,
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-rewards button{
 background:linear-gradient(180deg,#342044,#160f28)!important;
 border:1px solid #ae7942!important;color:#f5e6f4!important;
 box-shadow:inset 0 1px #ffcf5b26!important;
}
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-activity.selected{
 background:linear-gradient(95deg,#5d2f47,#2d1a3d)!important;
 border:2px solid #ffbf4d!important;box-shadow:inset 4px 0 #ffe07a!important;
}
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-section-title,
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-act-title b,
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-calendar h3{
 color:#ffe079!important;font-style:italic!important;font-weight:900!important;text-shadow:1px 1px #000!important;
}
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-act-title span,
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-act-bottom small,
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-detail-content p,
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-calendar>p,
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-rewards>p,
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-upcoming,
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-slot small{
 color:#e0cde9!important;text-shadow:none!important;
}
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-meta b,
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-stats strong,
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-rewards button span{
 color:#ffe0a1!important;
}
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-table-wrap,
html.zt-on:not(#zt0):not(#zt1) body #p1206Root table{
 background:#110a22!important;border-color:#ba7c38!important;
}
html.zt-on:not(#zt0):not(#zt1) body #p1206Root table th,
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-weeknames b{
 background:#492542!important;color:#ffe19a!important;
}
html.zt-on:not(#zt0):not(#zt1) body #p1206Root table td,
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-slot,
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-days span{
 background:#2a1838!important;color:#f7e8f3!important;border-color:#875d46!important;
}
html.zt-on:not(#zt0):not(#zt1) body #p1206Root table td.today,
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-days span.today{
 background:#5a2f39!important;border-color:#ffc353!important;
}
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-detail-banner.blue{
 background:linear-gradient(115deg,#28204b,#3f265d,#b65d30)!important;
}
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-action,
html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-close{
 background:linear-gradient(#fff0ac,#ffad2e,#c85c1b)!important;color:#1b0b09!important;
 border:2px solid #000!important;box-shadow:0 0 0 1px #ffd45b!important;
}
html.zt-on:not(#zt0):not(#zt1) body #p1206Root button:focus-visible{
 outline:2px solid #ffe079!important;outline-offset:2px!important;
}
/* Depot — native fixed inventory+vault slots, no slot hiding. */
html.zt-on:not(#zt0):not(#zt1) body #infoModal.depot-mode .depot-view,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.depot-mode .depot-pane,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.depot-mode .storage-pane,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.depot-mode .depot-chest,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.depot-mode .depot-panel-head{
 background:linear-gradient(180deg,#2c1a3a,#120b22)!important;
 background-image:linear-gradient(180deg,#2c1a3a,#120b22)!important;
 color:#f5e8f1!important;border-color:#b07d42!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.depot-mode .depot-slot,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.depot-mode .bag-slot{
 background:linear-gradient(180deg,#342044,#160c25)!important;
 background-image:linear-gradient(180deg,#342044,#160c25)!important;
 border:1px solid #d79c48!important;border-radius:5px!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.depot-mode .depot-panel-head b,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.depot-mode .storage-title b{
 color:#ffe080!important;font-weight:900!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.depot-mode .depot-tabs button{
 background:linear-gradient(#3b2249,#1a0e29)!important;
 color:#f5e0f3!important;border:1px solid #aa7440!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.depot-mode .depot-tabs button.active{
 background:linear-gradient(#ffe9aa,#ffad31,#c85b21)!important;color:#1a0c09!important;
}
@media(max-width:520px){
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.depot-mode .modal{
  zoom:1!important;width:calc(100vw - 18px)!important;max-width:calc(100vw - 18px)!important;
  height:min(700px,calc(100dvh - 75px))!important;
  max-height:calc(100dvh - 65px)!important;overflow:hidden!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.depot-mode .modal-body{
  min-width:0!important;max-width:100%!important;overflow-y:auto!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-tabs button{
  font-size:11px!important;padding:5px 3px!important;
 }
}


/* P1220 final visual QA fixes: prevent Events footer clipping, theme settings slider. */
html.zt-on:not(#zt0):not(#zt1) body #infoModal .p1076-settings input[type="range"]{
 accent-color:#ffb52d!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal .p1076-settings input[type="range"]::-webkit-slider-thumb{
 border-color:#ffdd78!important;background:#ffac28!important;
}
@media(max-width:520px){
 html.zt-on:not(#zt0):not(#zt1) body #p1206Root .p1206-shell>footer{
  height:43px!important;min-height:43px!important;flex:0 0 43px!important;
  padding:7px 8px!important;font-size:10px!important;line-height:1.3!important;
  white-space:normal!important;overflow:hidden!important;
 }
}


/* P1220 post-audit: remaining actual blue frames from computed-style scan. */
html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .r171-cyclo-body main,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .r171-beast-big{
 border-color:#bf8548!important;
 background-color:#251432!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .r171-beast-detail button{
 background:linear-gradient(180deg,#3a2249,#1a102a)!important;
 background-image:linear-gradient(180deg,#3a2249,#1a102a)!important;
 color:#ffebca!important;border:1px solid #af7a43!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.recruit-mode .r183-banner.r185-no-featured{
 background:linear-gradient(115deg,#2e1b42,#160d2d)!important;
 background-image:linear-gradient(115deg,#2e1b42,#160d2d)!important;
 border-color:#d4994f!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.recruit-mode .r183-banner.r184-featured-banner{
 border-color:#d4994f!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .xp-bonus-breakdown{
 border-color:#a97d4b!important;
 background-color:#21142f!important;
}
html.zt-on:not(#zt0):not(#zt1) body #shopModal .npc-detail-icon,
html.zt-on:not(#zt0):not(#zt1) body #shopModal .npc-wallet{
 background:#261732!important;
 border-color:#a97a42!important;
}
html.zt-on:not(#zt0):not(#zt1) body #shopModal #npcEquipButton.secondary{
 background:linear-gradient(180deg,#3b2249,#1b102a)!important;
 background-image:linear-gradient(180deg,#3b2249,#1b102a)!important;
 border:1px solid #af7a43!important;
 color:#ffe6bc!important;
}


/* === P1221 final static transitions === */

/* P1221 — final non-gameplay skins for loading and death.
   The logo remains the original Zenkai asset (no newly drawn media).
   Combat HUD changes are deliberately limited to surfaces to protect FPS. */
html.zt-on:not(#zt0):not(#zt1) body .zk-loading-overlay{
 background:radial-gradient(circle at 50% 32%,rgba(110,45,126,.26),transparent 45%),
  linear-gradient(180deg,#160b26f8,#070413fc)!important;
 color:#f4e6f5!important;
}
html.zt-on:not(#zt0):not(#zt1) body .zk-loading-card{
 background:linear-gradient(180deg,#2a163b,#11091e)!important;
 border:2px solid #e49935!important;
 box-shadow:0 0 0 2px #08050d,inset 0 0 0 1px #ffc3593c,0 16px 50px #000b!important;
 border-radius:9px!important;
}
html.zt-on:not(#zt0):not(#zt1) body .zk-loading-tip-wrap{
 background:linear-gradient(180deg,#372043,#1b112a)!important;
 border-color:#ae7544!important;
 box-shadow:inset 0 1px #ffcb6030!important;
}
html.zt-on:not(#zt0):not(#zt1) body .zk-loading-tip-label{
 background:#562c38!important;color:#ffe075!important;border-color:#ffb847!important;
}
html.zt-on:not(#zt0):not(#zt1) body .zk-loading-tip,
html.zt-on:not(#zt0):not(#zt1) body .zk-loading-detail{
 color:#e7d7eb!important;
}
html.zt-on:not(#zt0):not(#zt1) body .zk-loading-status,
html.zt-on:not(#zt0):not(#zt1) body .zk-loading-percent{
 color:#ffe07b!important;font-weight:900!important;
}
html.zt-on:not(#zt0):not(#zt1) body .zk-loading-track{
 background:#130b21!important;border-color:#c17c37!important;
 box-shadow:inset 0 0 7px #000!important;
}
html.zt-on:not(#zt0):not(#zt1) body .zk-loading-bar{
 background:linear-gradient(90deg,#d85026,#ffad27,#ffe88b)!important;
 box-shadow:0 0 8px #fd7d2670!important;
}
html.zt-on:not(#zt0):not(#zt1) body #deathModal .death-modal{
 background:linear-gradient(180deg,#2c1634,#110a1f)!important;
 border:3px solid #e69332!important;
 border-radius:9px!important;
 box-shadow:0 0 0 2px #07040e,inset 0 0 0 1px #ffc5604c,0 14px 44px #000b!important;
 color:#f5e8f2!important;
}
html.zt-on:not(#zt0):not(#zt1) body #deathModal .death-result-title{
 font:900 italic clamp(21px,3vw,30px)/1.2 system-ui!important;
 letter-spacing:1px!important;color:#ffcf75!important;
 text-shadow:2px 3px #07040b,0 0 9px #e65c3350!important;
}
html.zt-on:not(#zt0):not(#zt1) body #deathModal .death-result-sub,
html.zt-on:not(#zt0):not(#zt1) body #deathModal .death-result-loss{
 color:#eadceb!important;border-color:#a0673b!important;
}
html.zt-on:not(#zt0):not(#zt1) body #deathModal .death-result-loss>b{
 color:#fff3dc!important;
}
html.zt-on:not(#zt0):not(#zt1) body #deathModal .death-result-loss>small,
html.zt-on:not(#zt0):not(#zt1) body #deathModal .death-revive-delay{
 color:#d3c2df!important;
}
html.zt-on:not(#zt0):not(#zt1) body #deathModal .death-item-lost,
html.zt-on:not(#zt0):not(#zt1) body #deathModal .death-bless-result.unprotected{
 background:#3c1b2d!important;border-color:#b85d44!important;color:#ffbeb3!important;
}
html.zt-on:not(#zt0):not(#zt1) body #deathModal .death-item-safe,
html.zt-on:not(#zt0):not(#zt1) body #deathModal .death-bless-result.protected{
 background:#292434!important;border-color:#c09d52!important;color:#ebd99b!important;
}
html.zt-on:not(#zt0):not(#zt1) body #deathModal .death-revive-main,
html.zt-on:not(#zt0):not(#zt1) body #deathModal #reviveBtn{
 background:linear-gradient(180deg,#fff2a9,#ffb532 55%,#c6591f)!important;
 border:2px solid #080309!important;border-radius:999px!important;
 color:#241008!important;font:900 italic 14px/1.25 system-ui!important;
 box-shadow:0 0 0 1px #ffd96c,0 0 10px #e66b284a!important;
}
/* Combat HUD: flat textures, no animation, no new shadows or render loops. */
html.zt-on:not(#zt0):not(#zt1) body .combat-settings,
html.zt-on:not(#zt0):not(#zt1) body .hunter-quick,
html.zt-on:not(#zt0):not(#zt1) body .distance-control,
html.zt-on:not(#zt0):not(#zt1) body .hunt-exit-menu{
 background-color:#1b1129!important;border-color:#b07840!important;
 color:#f0e5f1!important;
}
html.zt-on:not(#zt0):not(#zt1) body .hunter-quick button,
html.zt-on:not(#zt0):not(#zt1) body .combat-settings select,
html.zt-on:not(#zt0):not(#zt1) body .combat-settings .dropdown-trigger{
 border-color:#b08045!important;color:#f2dff2!important;
}
html.zt-on:not(#zt0):not(#zt1) body .hunter-quick button:focus-visible,
html.zt-on:not(#zt0):not(#zt1) body .combat-settings button:focus-visible{
 outline:2px solid #ffd86f!important;
}
@media(max-width:520px){
 html.zt-on:not(#zt0):not(#zt1) body #deathModal .death-modal{
 width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;
 max-height:calc(100dvh - 50px)!important;overflow-y:auto!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body .zk-loading-card{
 width:calc(100vw - 28px)!important;padding:16px!important;
 }
}


/* P1221 mobile death: fallback state retains the original native heading.
   Full death-result-panel draws its own title and remains unchanged. */
html.zt-on:not(#zt0):not(#zt1) body #deathModal:not(:has(.death-result-panel)) .modal-head{
 display:block!important;
 background:linear-gradient(90deg,#3e1b43,#200e29)!important;
 color:#ffdd7e!important;font:900 italic 18px/1.25 system-ui!important;
 text-shadow:1px 2px #000!important;border-bottom:2px solid #ec952f!important;
 padding:11px 16px!important;letter-spacing:.02em!important;
}
html.zt-on:not(#zt0):not(#zt1) body #deathModal:not(:has(.death-result-panel)) .modal-body{
 padding:15px 16px 16px!important;
}
html.zt-on:not(#zt0):not(#zt1) body #deathModal:not(:has(.death-result-panel)) .modal-body>p{
 font-size:13px!important;line-height:1.5!important;color:#f2dfee!important;
 margin:0 0 15px!important;
}
html.zt-on:not(#zt0):not(#zt1) body #deathModal:not(:has(.death-result-panel)) .modal-actions{
 display:flex!important;justify-content:center!important;gap:9px!important;
}
@media(max-width:520px){
 html.zt-on:not(#zt0):not(#zt1) body #deathModal .death-modal{
  min-width:min(340px,calc(100vw - 24px))!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #deathModal .death-result-panel{
  max-height:calc(100dvh - 130px)!important;overflow-y:auto!important;
 }
}


/* P1222: Depot original renderer and Tower late-injected CSS */
/* P1222 — eliminate image-backed blue Depot borders using the exact original renderer.
   Do not modify slot dimensions/count, item icons, item actions, scroll handlers. */
html.zt-on:not(#zt0):not(#zt1) body #infoModal.depot-mode .modal.compact::before{
 border-image:none!important;border:0!important;
 background:none!important;box-shadow:none!important;pointer-events:none!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.depot-mode .depot-pane,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.depot-mode .depot-chest{
 border-image:none!important;
 border:2px solid #d99b47!important;
 border-radius:7px!important;
 background:linear-gradient(180deg,#241630,#100a1f)!important;
 box-shadow:inset 0 0 0 2px #07040d,inset 0 1px #ffdc804d!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.depot-mode .depot-help{
 background:#171026!important;color:#e0cbe9!important;
 border-top:1px solid #a5723c!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.depot-mode .depot-slot-grid::-webkit-scrollbar-track{
 background:#130c22!important;border-color:#8d603e!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.depot-mode .depot-slot-grid::-webkit-scrollbar-thumb{
 background:linear-gradient(#ffcc69,#d67627)!important;border-color:#1b0d1f!important;
}
@media(max-width:520px){
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.depot-mode .depot-view{
  overflow-y:auto!important;overflow-x:hidden!important;
  scrollbar-width:thin!important;scrollbar-color:#cc8b48 #170d23!important;
  align-content:start!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.depot-mode .depot-pane,
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.depot-mode .depot-chest{
  min-height:300px!important;flex-shrink:0!important;
 }
}


/* P1222 — Tower dynamic stylesheet override.
   P385 injects #p385Css after initial load, restoring its legacy blue frames and
   an image-only Tower tab. Specificity + important ensures zt-on remains authoritative.
   No changes to Tower's selection, rank, completion states or combat. */
html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-mode-tabs [data-hunt-mode="tower"],
html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-mode-tabs [data-hunt-mode="tower"].active,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-mode-tabs [data-hunt-mode="tower"]:hover{
 background-image:linear-gradient(180deg,#3c234d,#1b0e2b)!important;
 color:#f1dfef!important;-webkit-text-fill-color:#f1dfef!important;
 text-shadow:1px 2px #000!important;
 border:1px solid #ac7340!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal .hunt-mode-tabs [data-hunt-mode="tower"].active{
 background-image:linear-gradient(180deg,#ffeaa0,#ffaf2d,#d15c1e)!important;
 color:#241008!important;-webkit-text-fill-color:#241008!important;
 text-shadow:0 1px #fff3ca!important;border-color:#ffdb6e!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior.p385-view .p385-rec span,
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior.p385-view .p385-rank{
 background:linear-gradient(180deg,#311b40,#160d26)!important;
 border-color:#ae7643!important;color:#ead9f3!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior.p385-view .p385-num{
 background:radial-gradient(circle at 50% 30%,#6c3a50,#21102e)!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior.p385-view .p385-fc.k-boss .p385-num{
 background:radial-gradient(circle at 50% 30%,#8d443c,#2b1331)!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior.p385-view .p385-num i,
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior.p385-view .p385-rank h4{
 color:#ffe18c!important;text-shadow:0 1px #000!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior.p385-view .p385-rec span{
 color:#e7d5eb!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior.p385-view .p385-hero{
 background:linear-gradient(100deg,#291637 0%,#3c1f43 40%,#9f4a35 84%,#4b2340 100%)!important;
 border-color:#ffb63c!important;
 box-shadow:inset 0 0 0 1px #08030e,0 0 10px #ff7b003b!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior.p385-view .p385-hero-txt small,
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior.p385-view .p385-hero em{
 color:#ffe4a8!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior.p385-view .p385-hero-txt h2{
 color:#fff0ce!important;text-shadow:1px 2px #000,0 0 8px #ffae3663!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior.p385-view .p385-hero-txt p{
 color:#f0dcec!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior.p385-view .p385-rk{
 color:#e9daed!important;border-bottom-color:#995d4555!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior.p385-view .p385-rk i,
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior.p385-view .p385-rk small{
 color:#c9b3d8!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior.p385-view .p385-chip.completed{
 color:#fbe5ad!important;background:#4c2d35!important;border-color:#d1a553!important;
}
/* The Tower badge artwork can remain as actual game artwork; remove only image-as-chrome. */
html.zt-on:not(#zt0):not(#zt1) body #huntModal #zk63HuntInterior.p385-view .p385-hero-tw{
 opacity:.65!important;
}


/* P1223 Depot continuous header geometry */
/* P1223 — Depot header geometry fix:
   remove inherited centered 525px banner, negative offset close button, and
   header/content overlap. One clean full-width header inside the existing modal. */
html.zt-on:not(#zt0):not(#zt1) body #infoModal.depot-mode .modal.compact{
 overflow:hidden!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.depot-mode .modal.compact>.modal-head{
 position:absolute!important;inset:0 0 auto 0!important;
 top:0!important;left:0!important;right:0!important;
 width:100%!important;max-width:100%!important;height:57px!important;
 transform:none!important;zoom:1!important;
 display:flex!important;align-items:center!important;justify-content:flex-start!important;
 padding:0 65px 0 19px!important;
 box-sizing:border-box!important;
 background:linear-gradient(90deg,#30173d,#20112f 68%,#291735)!important;
 background-image:linear-gradient(90deg,#30173d,#20112f 68%,#291735)!important;
 border:0!important;border-bottom:1px solid #b77c3b!important;
 color:#ffe18a!important;
 font:900 italic 15px/1.2 system-ui,sans-serif!important;
 text-shadow:1px 2px #000!important;
 text-align:left!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.depot-mode .modal.compact>.modal-head>.x{
 position:absolute!important;top:9px!important;right:13px!important;
 bottom:auto!important;left:auto!important;
 transform:none!important;
 width:38px!important;height:38px!important;min-width:38px!important;
 border:2px solid #080409!important;border-radius:50%!important;
 background:radial-gradient(circle at 30% 20%,#fff3ce,#ffc347 45%,#ee851c 78%,#b94415)!important;
 background-image:radial-gradient(circle at 30% 20%,#fff3ce,#ffc347 45%,#ee851c 78%,#b94415)!important;
 color:#140a08!important;
 box-shadow:0 0 0 1px #ffcc59,0 0 10px #f77c0047!important;
 font:900 20px/1 system-ui!important;
 display:grid!important;place-items:center!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.depot-mode .modal.compact>.modal-body{
 top:64px!important;left:12px!important;right:12px!important;
 bottom:12px!important;height:auto!important;max-height:none!important;
 padding:0!important;min-height:0!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.depot-mode .modal.compact #infoContent{
 min-height:0!important;height:100%!important;
}


/* P1224: shared mobile shell audit fixes */
/* P1224 — responsive shell repairs grounded in computed geometry.
 * Only three legacy-zoomed info modes and desktop inventory 6px seam.
 * Preserve all DOM elements, contents, actions and desktop layouts. */
@media(max-width:520px){
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-mode .modal,
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .modal,
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-ranking-mode .modal{
  zoom:1!important;
  width:calc(100vw - 18px)!important;
  max-width:calc(100vw - 18px)!important;
  height:min(690px,calc(100dvh - 75px))!important;
  max-height:calc(100dvh - 65px)!important;
  min-height:0!important;overflow:hidden!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-mode .modal-body,
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .modal-body,
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-ranking-mode .modal-body{
  min-width:0!important;max-width:100%!important;
  overflow-x:hidden!important;overflow-y:auto!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-mode .r164-guild,
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .character-sheet,
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-ranking-mode .zk-rank-board{
  max-width:100%!important;min-width:0!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-ranking-mode .zk-rank-tabs,
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-ranking-mode .zk-rank-categories{
  overflow-x:auto!important;max-width:100%!important;
 }
}
/* Inventory title/content must not intersect even when the original desktop
 * picture-derived geometry is used; keep the already-tested mobile stacking. */
@media(min-width:521px){
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .modal-body{
  top:65px!important;
 }
}


/* P1224: Character sheet bars use 100+70+88px columns inside 245px;
   reduce fixed columns only on mobile to prevent clipping numbers at right. */
@media(max-width:520px){
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .char-bar-row{
  grid-template-columns:86px minmax(0,1fr) 90px!important;
  min-width:0!important;max-width:100%!important;
  column-gap:0!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .char-bar-row b{
  width:100%!important;max-width:100%!important;
  justify-self:end!important;text-align:right!important;
  white-space:nowrap!important;
  font-size:10px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .char-bar-row label{
  min-width:0!important;font-size:10px!important;white-space:nowrap!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .p236-passive{
  max-width:100%!important;overflow-wrap:break-word!important;
 }
}


/* P1225 inner-content mobile repairs */
/* P1225 — eliminate inner clipping and genuinely unreadable microtype.
   Do not modify business logic, item artwork, or controls. */
@media(max-width:520px){
 /* Cyclopedia has exactly four existing tabs. Use a 2x2 native grid
    instead of hiding the fourth tab outside the 320px modal. */
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .r171-cyclo-tabs{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-auto-rows:minmax(32px,auto)!important;
  width:100%!important;min-width:0!important;
  max-width:100%!important;overflow:visible!important;
  gap:5px!important;padding:0 0 7px!important;
  height:auto!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .r171-cyclo-tabs button{
  width:100%!important;max-width:100%!important;min-width:0!important;
  height:32px!important;min-height:32px!important;
  padding:0 6px!important;font-size:11px!important;line-height:1.2!important;
  flex:none!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .r171-system-head{
  min-width:0!important;max-width:100%!important;
  flex-wrap:wrap!important;gap:5px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.bestiary-mode .r171-system-head>div{
  min-width:0!important;max-width:100%!important;
  flex-wrap:wrap!important;
 }
 /* Forge also has exactly four tabs: two lines keep all four actions
    visible at 320px, instead of obscuring "DESMANCHAR". */
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-hd>.r164-forge-tabs{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,32px)!important;
  width:100%!important;max-width:100%!important;
  height:72px!important;min-height:72px!important;
  gap:4px!important;padding:1px 3px!important;
  overflow:visible!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge-tabs button{
  width:100%!important;min-width:0!important;max-width:100%!important;
  height:31px!important;min-height:31px!important;
  padding:0 3px!important;font-size:11px!important;
  white-space:nowrap!important;flex:none!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.forge-mode .r164-forge.r164-forge-hd{
  grid-template-rows:72px auto minmax(0,1fr)!important;
 }
 /* Ranking header was 28+100+48+65=241px inside 234px at 320px. */
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-ranking-mode .zk-rank-columns,
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-ranking-mode .zk-rank-row{
  grid-template-columns:26px minmax(0,1fr) 42px 48px!important;
  width:100%!important;max-width:100%!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-ranking-mode .zk-rank-columns span,
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-ranking-mode .zk-rank-row>*{
  min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.guild-ranking-mode .zk-rank-columns span{
  font-size:9.5px!important;letter-spacing:0!important;
 }
 /* The values in the live character sheet must remain readable */
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .character-sheet .training-footer,
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .character-sheet .training-footer *,
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .character-sheet .char-bonus-row,
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .character-sheet .char-bonus-row span,
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .character-sheet .char-bonus-row b{
  font-size:10.5px!important;line-height:1.3!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .character-sheet .training-stat-row,
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .character-sheet .training-stat-row span,
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.character-mode .character-sheet .character-box h3{
  font-size:10.5px!important;line-height:1.25!important;
 }
}


/* === P1226 live screenshot corrections === */
/* P1226 — specific live regressions after P1225.
   Client-only. No JS, game mechanics, player records, modal layout relocation.
   The header ? is a native button: keep visible glyph and open the existing
   r171HelpOverlay above the parent modal. */
html.zt-on:not(#zt0):not(#zt1) body #infoModal.recruit-mode #forgeHelpBtn,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.recruit-mode #forgeHelpBtn:is(:hover,:active,:focus,:focus-visible){
 position:absolute!important;left:auto!important;right:47px!important;top:4px!important;
 transform:none!important;width:34px!important;height:34px!important;
 min-width:34px!important;min-height:34px!important;
 display:grid!important;place-items:center!important;
 color:#1b0c08!important;-webkit-text-fill-color:#1b0c08!important;
 font:900 19px/1 system-ui,Arial,sans-serif!important;
 text-shadow:0 1px #ffe8aa!important;
 background:radial-gradient(circle at 34% 23%,#fff3ce,#ffd25a 43%,#bd7429 100%)!important;
 background-image:radial-gradient(circle at 34% 23%,#fff3ce,#ffd25a 43%,#bd7429 100%)!important;
 border:2px solid #09050d!important;border-radius:50%!important;
 box-shadow:0 0 0 1px #ffce61,0 0 8px #f890004c!important;
 opacity:1!important;visibility:visible!important;filter:none!important;
 text-indent:0!important;overflow:hidden!important;z-index:12!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.recruit-mode .modal-head>.x{
 z-index:12!important;right:6px!important;
}
html.zt-on:not(#zt0):not(#zt1) body #r171HelpOverlay.r171-help-overlay{
 z-index:2147483501!important;
 background:rgba(4,2,13,.83)!important;
 overflow-y:auto!important;padding:18px!important;
 overscroll-behavior:contain!important;
}
html.zt-on:not(#zt0):not(#zt1) body #r171HelpOverlay .r171-help-card{
 width:min(720px,calc(100vw - 28px))!important;
 max-width:100%!important;max-height:calc(100dvh - 36px)!important;
 min-height:0!important;
 display:flex!important;flex-direction:column!important;
 overflow:hidden!important;
 background:linear-gradient(180deg,#291636,#0d071c)!important;
 border:2px solid #d79a42!important;border-radius:9px!important;
 box-shadow:0 0 0 2px #000,0 20px 55px #000c!important;
 color:#f3e7f7!important;
}
html.zt-on:not(#zt0):not(#zt1) body #r171HelpOverlay .r171-help-head{
 flex:0 0 auto!important;
 background:linear-gradient(90deg,#3f2145,#21112e)!important;
 border-bottom:2px solid #db8b32!important;
 color:#ffe18a!important;font-weight:900!important;
}
html.zt-on:not(#zt0):not(#zt1) body #r171HelpOverlay .r171-help-head button{
 min-width:34px!important;min-height:32px!important;
 background:linear-gradient(#fff1ad,#ffaf2d,#bd5b1f)!important;
 border:2px solid #07040b!important;border-radius:50%!important;
 color:#190a07!important;font:900 19px/1 system-ui!important;
}
html.zt-on:not(#zt0):not(#zt1) body #r171HelpOverlay .r171-help-body{
 min-height:0!important;overflow:auto!important;flex:1 1 auto!important;
 color:#f0e4f4!important;font-size:13px!important;line-height:1.6!important;
 scrollbar-color:#c58a44 #160c24!important;
}
html.zt-on:not(#zt0):not(#zt1) body #r171HelpOverlay .r171-help-body h3{
 color:#ffe18a!important;
}
html.zt-on:not(#zt0):not(#zt1) body #r171HelpOverlay .r171-help-table th{
 background:#48253d!important;color:#ffe18a!important;border-color:#b6834d!important;
}
html.zt-on:not(#zt0):not(#zt1) body #r171HelpOverlay .r171-help-table td{
 background:#1c112b!important;color:#eee1f1!important;border-color:#79513f!important;
}
/* Separate R306C profile/Account overlay: has never been under #infoModal. */
html.zt-on:not(#zt0):not(#zt1) body #r306cAccountProfile{
 background:rgba(5,2,13,.78)!important;
 color:#f4e6f4!important;
}
html.zt-on:not(#zt0):not(#zt1) body #r306cAccountProfile .r306c-profile-shell{
 background:linear-gradient(180deg,#281636,#0d071c)!important;
 border:2px solid #e69b38!important;border-radius:9px!important;
 box-shadow:0 0 0 2px #000,0 18px 60px #000b,0 0 19px #ef7b0040!important;
}
html.zt-on:not(#zt0):not(#zt1) body #r306cAccountProfile .r306c-profile-head{
 background:linear-gradient(90deg,#3d1d42,#1c102d)!important;
 border-bottom:2px solid #df8e30!important;
}
html.zt-on:not(#zt0):not(#zt1) body #r306cAccountProfile .r306c-profile-head-copy small{
 color:#d7b8e1!important;
}
html.zt-on:not(#zt0):not(#zt1) body #r306cAccountProfile .r306c-profile-head-copy b{
 color:#ffe085!important;font:900 italic 17px/1.15 system-ui!important;
 text-shadow:1px 2px #000!important;
}
html.zt-on:not(#zt0):not(#zt1) body #r306cAccountProfile .r306c-profile-icon-btn{
 background:linear-gradient(#3c254a,#1a1029)!important;
 border:1px solid #bd8548!important;color:#ffe7ad!important;
}
html.zt-on:not(#zt0):not(#zt1) body #r306cAccountProfile .r306c-profile-tabs{
 background:#1b102c!important;border-bottom:1px solid #b77c3b!important;
}
html.zt-on:not(#zt0):not(#zt1) body #r306cAccountProfile .r306c-profile-tabs button{
 background:linear-gradient(#3a2247,#1a0e2b)!important;
 color:#e7d2e8!important;border:1px solid #93633f!important;
 font-weight:900!important;
}
html.zt-on:not(#zt0):not(#zt1) body #r306cAccountProfile .r306c-profile-tabs button.active{
 background:linear-gradient(#fff0b0,#ffb437,#c65b20)!important;
 border-color:#ffce62!important;color:#1c0a08!important;
}
html.zt-on:not(#zt0):not(#zt1) body #r306cAccountProfile :is(.r306c-account-hero,.r306c-profile-stat,.r306c-account-card,.r306c-character-card,.r306c-history-card,.r306f-roster-intro,.r306c-profile-loading,.r306c-profile-empty){
 background:linear-gradient(180deg,#2d1a3a,#130c23)!important;
 border-color:#a67745!important;color:#f1e4f3!important;
}
html.zt-on:not(#zt0):not(#zt1) body #r306cAccountProfile :is(.r306c-account-hero h2,.r306c-account-card h3,.r306f-roster-intro h3,.r306c-profile-loading b,.r306c-profile-stat b){
 color:#ffe186!important;
}
html.zt-on:not(#zt0):not(#zt1) body #r306cAccountProfile :is(.r306c-account-hero p,.r306c-profile-stat span,.r306c-account-row span,.r306c-note,.r306f-roster-intro p){
 color:#d9c6e3!important;
}
html.zt-on:not(#zt0):not(#zt1) body #r306cAccountProfile .r306c-account-row{
 border-top-color:#715038!important;
}
html.zt-on:not(#zt0):not(#zt1) body #r306cAccountProfile .r306c-account-row b{
 color:#eee2f1!important;
}
html.zt-on:not(#zt0):not(#zt1) body #r306cAccountProfile .r306f-roster-intro button{
 background:linear-gradient(#fff2ad,#ffb235,#c75a1a)!important;
 color:#21100a!important;border:2px solid #000!important;border-radius:999px!important;
}
html.zt-on:not(#zt0):not(#zt1) body #r306cAccountProfile .r306c-profile-body{
 scrollbar-color:#b97e43 #140c23!important;
}
/* Quick Sell uses the native infoModal but is an independent CSS system. */
html.zt-on:not(#zt0):not(#zt1) body #infoModal.quick-sell-mode :is(.qs-shell,.qs-hero,.qs-summary,.qs-toolbar,.qs-row){
 background:linear-gradient(180deg,#291737,#130c23)!important;
 background-image:linear-gradient(180deg,#291737,#130c23)!important;
 border-color:#9f7245!important;color:#f3e9f5!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.quick-sell-mode .qs-row.quick-marked{
 background:linear-gradient(180deg,#513244,#271632)!important;
 border-color:#ffb344!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.quick-sell-mode :is(.qs-hero-copy b,.qs-summary-copy b,.qs-row b){
 color:#ffe8bf!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.quick-sell-mode :is(.qs-hero-copy span,.qs-summary-copy span,.qs-row small,.qs-footer-note){
 color:#d9c2e4!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.quick-sell-mode .qs-row input{
 accent-color:#ffad2c!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.quick-sell-mode :is(.qs-tool-btn,.qs-footer-actions .secondary){
 background:linear-gradient(#3e254b,#1b0f2b)!important;
 border:1px solid #ad7b44!important;color:#f6dbae!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.quick-sell-mode .qs-footer-actions .primary{
 background:linear-gradient(#ffefae,#ffaf2e,#c75b20)!important;
 color:#24100a!important;border:2px solid #000!important;
 border-radius:999px!important;
}
/* Huntera-like auction is inside the actual Shop view, with its own CSS. */
html.zt-on:not(#zt0):not(#zt1) body #shopModal .r164-market.p75-auction,
html.zt-on:not(#zt0):not(#zt1) body #shopModal :is(.p75-auction-layout,.p75-auction-aside,.p75-auction-main,.p75-auction-trade-panel,.p75-auction-item-icon,.p75-auction-variants,.r164-market-create.p75-open){
 background:linear-gradient(180deg,#251633,#130b23)!important;
 background-image:linear-gradient(180deg,#251633,#130b23)!important;
 border-color:#a67846!important;color:#f6e8f4!important;
}
html.zt-on:not(#zt0):not(#zt1) body #shopModal .p75-auction :is(button,input,select){
 border-color:#a47743!important;
}
html.zt-on:not(#zt0):not(#zt1) body #shopModal .p75-auction input,
html.zt-on:not(#zt0):not(#zt1) body #shopModal .p75-auction select{
 background:#170e29!important;color:#f2e3f4!important;
}
html.zt-on:not(#zt0):not(#zt1) body #shopModal .p75-auction button:not(.active){
 background:linear-gradient(#372043,#180e29)!important;
 color:#f1dcf0!important;
}
html.zt-on:not(#zt0):not(#zt1) body #shopModal .p75-auction button.active{
 background:linear-gradient(#ffe6a2,#ffaa2c,#bd5824)!important;
 color:#1c0a0b!important;border-color:#ffca62!important;
}
html.zt-on:not(#zt0):not(#zt1) body #shopModal .p75-auction :is(.r164-market-head h2,.p75-auction-trade-panel>header strong,.p75-auction-aside>header b){
 color:#ffe18f!important;
}
html.zt-on:not(#zt0):not(#zt1) body #shopModal .p75-auction :is(.p75-auction-tabs,.p75-auction-catalog){
 border-color:#99663e!important;
}
html.zt-on:not(#zt0):not(#zt1) body #shopModal .p75-auction .p75-auction-tabs button.active{
 color:#ffe289!important;border-bottom-color:#ffb43f!important;
 background:#49263d!important;
}
/* Depot actual item state — original items, slots and category selection remain. */
html.zt-on:not(#zt0):not(#zt1) body #infoModal.depot-mode :is(.depot-tabs,.depot-panel-head,.depot-view){
 border-color:#ae7a44!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.depot-mode .depot-tabs button.active{
 border-color:#ffcd65!important;box-shadow:inset 0 0 0 1px #ffc36340!important;
}
@media(max-width:520px){
 html.zt-on:not(#zt0):not(#zt1) body #r171HelpOverlay.r171-help-overlay{
  display:flex!important;align-items:flex-start!important;justify-content:center!important;
  padding:10px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #r171HelpOverlay .r171-help-card{
  width:100%!important;max-height:calc(100dvh - 20px)!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #r171HelpOverlay .r171-help-body{
  padding:12px!important;font-size:12px!important;line-height:1.5!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #r171HelpOverlay .r171-help-table{
  display:block!important;overflow-x:auto!important;max-width:100%!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #r306cAccountProfile .r306c-profile-shell{
  width:calc(100vw - 14px)!important;max-width:calc(100vw - 14px)!important;
  height:calc(100dvh - 18px)!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #r306cAccountProfile .r306c-profile-tabs button{
  min-width:0!important;font-size:10px!important;letter-spacing:0!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.quick-sell-mode .modal.compact{
  width:calc(100vw - 18px)!important;max-width:calc(100vw - 18px)!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #shopModal .p75-auction :is(.p75-auction-aside,.p75-auction-main){
  min-width:0!important;max-width:100%!important;
 }
}

/* P1227: blue chrome cleanup */

/* P1227 — only the proven old-blue panels; preserve live controls, icons and art. */
html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .capacity-track,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .inventory-money{
 border-image:none!important;
 border:2px solid #d49b47!important;
 border-radius:8px!important;
 background:linear-gradient(180deg,#2c1839,#100a20)!important;
 box-shadow:inset 0 0 0 1px #0a0615,inset 0 1px #ffd98334!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .capacity-track i{
 top:17px!important;left:8px!important;height:8px!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .capacity-track b,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .capacity-track span{
 top:9px!important;color:#ffe9b5!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .backpack-scroll::-webkit-scrollbar-track{
 background:#150d27!important;border-color:#91653c!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.inventory-mode .backpack-scroll::-webkit-scrollbar-thumb{
 background:linear-gradient(#efbd5a,#bb652a)!important;border-color:#4b2a31!important;
}
/* Hunt: remove old blue ornamental banner images, keep the layout and pull choice assets */
html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk63-section-title{
 background:linear-gradient(90deg,#542d46,#301b3d,#1b122e)!important;
 background-image:linear-gradient(90deg,#542d46,#301b3d,#1b122e)!important;
 color:#ffe28c!important;border-bottom:1px solid #e8a34f!important;
 text-shadow:1px 1px #0a0410!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk63-section-title small{
 color:#dbc7e4!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk63-right::before{
 background:linear-gradient(100deg,#4a2647,#291735,#1a102a)!important;
 background-image:linear-gradient(100deg,#4a2647,#291735,#1a102a)!important;
 border:1px solid #c88a46!important;border-radius:5px!important;
 box-sizing:border-box!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk63-loot-group-title{
 background:#35203e!important;
 border-left:3px solid #ffb54b!important;color:#ffde92!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk63-loot-scroll{
 scrollbar-color:#c38a48 #160e24!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk63-loot-scroll::-webkit-scrollbar-track{
 background:#160e24!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk63-loot-scroll::-webkit-scrollbar-thumb{
 background:linear-gradient(#ffd17b,#be7133)!important;
}
/* The standalone account profile mounts the player's .character-sheet outside infoModal. */
html.zt-on:not(#zt0):not(#zt1) body #r306cAccountProfile :is(.character-sheet,.character-main,.character-summary,.character-detail,.character-box,.character-side-stats,.character-passive,.character-portrait,.character-columns,.character-training-compact){
 background:linear-gradient(180deg,#2d193b,#140c26)!important;
 background-image:linear-gradient(180deg,#2d193b,#140c26)!important;
 border-color:#ae7d47!important;color:#f1e4f3!important;
}
html.zt-on:not(#zt0):not(#zt1) body #r306cAccountProfile :is(.character-box h3,.character-passive h3,.character-passive strong,.char-bonus-total b){
 color:#ffe084!important;
}
html.zt-on:not(#zt0):not(#zt1) body #r306cAccountProfile :is(.character-skill-row,.char-skill-row,.char-bar-row,.char-bonus-row,.training-stat-row){
 border-color:#966b45!important;color:#e8d7ef!important;
}
/* Three real recruit actions were blank because the original image-only font 0 is inherited. */
html.zt-on:not(#zt0):not(#zt1) body #infoModal.recruit-mode .r183-secondary-actions button{
 font:900 italic 11px/1.2 system-ui,sans-serif!important;
 color:#ffe6ba!important;-webkit-text-fill-color:#ffe6ba!important;
 text-shadow:1px 1px #100817!important;text-indent:0!important;
 background:linear-gradient(180deg,#492844,#1d112e)!important;
 background-image:linear-gradient(180deg,#492844,#1d112e)!important;
 border:1px solid #d19a54!important;border-radius:6px!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 text-align:center!important;white-space:normal!important;
 padding:4px!important;
}
/* Higher specificity overrides each per-action old image background. */
html.zt-on:not(#zt0):not(#zt1) body #infoModal.recruit-mode .r183-secondary-actions button[data-r183-drawer="pool"],
html.zt-on:not(#zt0):not(#zt1) body #infoModal.recruit-mode .r183-secondary-actions button[data-r183-drawer="history"],
html.zt-on:not(#zt0):not(#zt1) body #infoModal.recruit-mode .r183-secondary-actions button[data-r183-help]{
 background-image:linear-gradient(180deg,#492844,#1d112e)!important;
 font-size:11px!important;opacity:1!important;
}
@media(max-width:520px){
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.recruit-mode .r183-secondary-actions button{
  font-size:10px!important;
 }
}


/* P1227 follow-up: both Hunt panels were still using blue frame.webp border-image
   plus image-only headings. Keep their original 12px border geometry. */
html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk63-center,
html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk63-right{
 border-image:none!important;
 border:12px solid #25152f!important;
 border-radius:8px!important;
 background:linear-gradient(180deg,#2a1938,#130c24)!important;
 background-image:linear-gradient(180deg,#2a1938,#130c24)!important;
 box-shadow:inset 0 0 0 1px #b58143!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk63-center::before{
 content:'DETALHES DA CAÇADA'!important;
 position:absolute!important;left:6px!important;top:2px!important;
 width:calc(100% - 12px)!important;height:27px!important;
 display:flex!important;align-items:center!important;
 padding:0 12px!important;box-sizing:border-box!important;
 background:linear-gradient(90deg,#583045,#291a39,#1a1129)!important;
 background-image:linear-gradient(90deg,#583045,#291a39,#1a1129)!important;
 border:1px solid #d39948!important;border-radius:4px!important;
 color:#ffe29a!important;font:900 italic 10px/1.1 system-ui!important;
 letter-spacing:.2px!important;text-shadow:1px 1px #0a0610!important;
 pointer-events:none!important;
}
html.zt-on:not(#zt0):not(#zt1) body #huntModal .zk63-shell .zk63-right::before{
 content:'LOOT POSSÍVEL'!important;
 position:absolute!important;left:1px!important;right:1px!important;
 top:0!important;width:auto!important;height:27px!important;
 display:flex!important;align-items:center!important;
 padding:0 10px!important;box-sizing:border-box!important;
 background:linear-gradient(90deg,#593046,#281835)!important;
 background-image:linear-gradient(90deg,#593046,#281835)!important;
 border:1px solid #d39948!important;border-radius:4px!important;
 color:#ffe29a!important;font:900 italic 10px/1.1 system-ui!important;
 text-shadow:1px 1px #09040c!important;pointer-events:none!important;
}


/* P1228: wallet chrome and scrim */
/* P1228 — TOPBAR + WINDOW BACKDROP FINISH
   Colors and backdrop only: don't move HUD cells, currency amounts, actions, modals. */

/* The three wallet chips still used the original blue background and frames. */
html.zt-on:not(#zt0):not(#zt1) body .hunter-topbar .zk-v9-zeni-cell .currency-pill,
html.zt-on:not(#zt0):not(#zt1) body .hunter-topbar .zk-v9-premium-cell .currency-pill,
html.zt-on:not(#zt0):not(#zt1) body .hunter-topbar .zk-v9-coupon-cell .p1055-coupon-wallet{
 background:linear-gradient(175deg,#35203f 0%,#1c102e 65%,#100a1f 100%)!important;
 background-image:linear-gradient(175deg,#35203f 0%,#1c102e 65%,#100a1f 100%)!important;
 border:1px solid #d99a4a!important;
 border-top:2px solid #ffe08c!important;
 border-radius:10px!important;
 box-shadow:inset 0 1px rgba(255,216,125,.22),0 0 0 1px #08040f,0 3px 7px rgba(0,0,0,.36)!important;
 overflow:hidden!important;
}
/* Maintain original balance/purchase button geometry and make currency labels legible. */
html.zt-on:not(#zt0):not(#zt1) body .hunter-topbar .zk-v9-cell .currency-pill::after,
html.zt-on:not(#zt0):not(#zt1) body .hunter-topbar .zk-v9-coupon-cell .p1055-coupon-wallet>small{
 color:#f2d5a8!important;
 text-shadow:0 1px #090410!important;
 font-weight:800!important;
}
html.zt-on:not(#zt0):not(#zt1) body .hunter-topbar .zk-v9-cell .currency-pill>b,
html.zt-on:not(#zt0):not(#zt1) body .hunter-topbar .zk-v9-coupon-cell .p1055-coupon-wallet>b{
 color:#fff1d3!important;
 text-shadow:0 1px 2px #08040e!important;
}
html.zt-on:not(#zt0):not(#zt1) body .hunter-topbar .zk-v9-cell .currency-pill>button{
 background:linear-gradient(#fff4b8,#ffc554 54%,#d77c25)!important;
 border:1px solid #2c130c!important;
 border-radius:6px!important;
 box-shadow:0 0 0 1px #e2a840!important;
}
html.zt-on:not(#zt0):not(#zt1) body .hunter-topbar .zk-v9-cell .currency-pill>button:focus-visible{
 outline:2px solid #ffe18b!important;outline-offset:1px!important;
}
/* Do not force gradients or additional pseudo-overlay stacking contexts on inactive modals.
   Replace the old 75% blackish edge with one continuous transparent scrim. */
html.zt-on:not(#zt0):not(#zt1) body :is(#infoModal,#huntModal,#shopModal,#arenaModal,#actionModal,#testModal,#logModal,#deathModal).modal-backdrop.show{
 background:rgba(19,9,32,.43)!important;
 background-image:none!important;
 backdrop-filter:none!important;
 -webkit-backdrop-filter:none!important;
 box-shadow:none!important;
}
/* Keep Help and confirmation/dialog overlays using their existing higher z-index. */
@media(max-width:520px){
 html.zt-on:not(#zt0):not(#zt1) body .hunter-topbar .zk-v9-zeni-cell .currency-pill,
 html.zt-on:not(#zt0):not(#zt1) body .hunter-topbar .zk-v9-premium-cell .currency-pill,
 html.zt-on:not(#zt0):not(#zt1) body .hunter-topbar .zk-v9-coupon-cell .p1055-coupon-wallet{
  border-radius:8px!important;
 }
}


/* P1229 item tooltip */
/* P1229 — Global item tooltip always above game modals. The original #itemTooltip
   is already a direct child of body with position:fixed and pointer-events:none.
   The old z-index 99999 was below P1215 modals at 120000. Don't touch modal
   overflow or change item rendering, placement, pointer interactions. */
html.zt-on:not(#zt0):not(#zt1) body > #itemTooltip.item-tooltip {
 z-index:130000!important;
}

/* P1230 transformation theme */
/* P1230: shared transformation HUD + Goku/Gohan/Vegeta modal skin.
   Scoped to zt-on; gameplay remains in existing p1096/p1116/p1149 JS. */
html.zt-on:not(#zt0):not(#zt1) body .p1096-form-dock{
 border-image:none!important;
 border:2px solid #d79743!important;
 border-radius:7px!important;
 background:linear-gradient(180deg,#382042,#170d29)!important;
 background-image:linear-gradient(180deg,#382042,#170d29)!important;
 box-shadow:0 0 0 1px #0a0612,inset 0 1px #ffe49c3a,0 4px 12px #0009!important;
 color:#f6e7f3!important;
 padding:4px 9px!important;
}
html.zt-on:not(#zt0):not(#zt1) body .p1096-form-dock b{
 color:#ffdf84!important;font:900 12px/1.2 system-ui!important;
 text-shadow:1px 1px #090410!important;
}
html.zt-on:not(#zt0):not(#zt1) body .p1096-form-dock small{
 color:#e1cce7!important;font-size:10px!important;
}
html.zt-on:not(#zt0):not(#zt1) body .p1096-form-dock i{color:#ffca69!important}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode .modal.compact{
 border-image:none!important;
 border:2px solid #d79a45!important;
 border-radius:9px!important;
 background:linear-gradient(180deg,#2b1839,#10091e)!important;
 background-image:linear-gradient(180deg,#2b1839,#10091e)!important;
 box-shadow:0 0 0 2px #08040e,0 14px 42px #000b!important;
 overflow:hidden!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode .modal-head{
 background:linear-gradient(90deg,#432146,#21112e)!important;
 background-image:linear-gradient(90deg,#432146,#21112e)!important;
 border-bottom:2px solid #d58d37!important;
 color:#ffe08b!important;
 font:900 italic 18px/1.2 system-ui!important;
 text-shadow:1px 2px #06020c!important;
 padding:0 50px 0 15px!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode .modal-head .x{
 width:34px!important;height:34px!important;
 color:#1c0906!important;-webkit-text-fill-color:#1c0906!important;
 font:900 19px/1 system-ui!important;
 background:radial-gradient(circle at 35% 25%,#fff0ba,#ffc047 50%,#db6b1c)!important;
 background-image:radial-gradient(circle at 35% 25%,#fff0ba,#ffc047 50%,#db6b1c)!important;
 border:2px solid #09040c!important;border-radius:50%!important;
 box-shadow:0 0 0 1px #ffce67!important;
 display:grid!important;place-items:center!important;
 text-indent:0!important;opacity:1!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode .modal-body{
 background:transparent!important;
 scrollbar-color:#c48740 #1a0e29!important;
 color:#f0e0ef!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode .p1096-transform-sheet{
 color:#ede0f1!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode .p1096-transform-sheet>p{
 color:#e2d3e5!important;font-size:13px!important;line-height:1.55!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode .p1096-form-grid button{
 background:linear-gradient(180deg,#392144,#1b102a)!important;
 background-image:linear-gradient(180deg,#392144,#1b102a)!important;
 border:1px solid #a87548!important;
 border-radius:6px!important;color:#f5e8f3!important;
 min-width:0!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode .p1096-form-grid button.selected{
 background:linear-gradient(180deg,#6b3d3c,#3a2138)!important;
 border:2px solid #ffd16a!important;
 box-shadow:inset 0 0 0 1px #08040f,0 0 9px #e98e3447!important;
 color:#ffe6af!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode .p1096-form-grid button:disabled{
 opacity:.6!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode .p1096-form-grid b{
 color:#fff0d4!important;font-weight:900!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode .p1096-form-grid small{
 color:#d3bddd!important;font-size:11px!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode :is(#p1096FormDetails,#p1116FormDetails,#p1149FormDetails){
 background:linear-gradient(180deg,#301b3d,#160c25)!important;
 background-image:linear-gradient(180deg,#301b3d,#160c25)!important;
 border:1px solid #a97746!important;border-radius:6px!important;
 color:#efe0ee!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode :is(#p1096FormDetails,#p1116FormDetails,#p1149FormDetails) h3{
 color:#ffe08c!important;font:900 italic 18px/1.2 system-ui!important;
 text-shadow:1px 2px #08030e!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode .p1096-stats{
 color:#ddcbe3!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode .p1096-stats b{
 color:#ffe5ad!important;font-weight:900!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode .p1096-mastery{
 background:#120c21!important;border:1px solid #91683f!important;
 height:8px!important;border-radius:5px!important;overflow:hidden!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode .p1096-mastery i{
 background:linear-gradient(90deg,#df7025,#ffb630,#ffe17e)!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode .p1096-controls label{
 color:#e5cde8!important;font-size:12px!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode .p1096-controls select{
 background:#180e29!important;
 border:1px solid #d08e44!important;
 border-radius:6px!important;color:#ffedcf!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode .p1096-note{
 color:#cdb8d5!important;font-size:11px!important;line-height:1.5!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode .p1096-actions{
 background:linear-gradient(180deg,#271637,#150c23)!important;
 border-top:1px solid #9e6b3a!important;
 padding:12px 6px 8px!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode .p1096-actions button{
 background:linear-gradient(#3e264a,#1b102b)!important;
 border:1px solid #bd8447!important;border-radius:999px!important;
 color:#f6ddbe!important;font:900 italic 12px/1.2 system-ui!important;
 min-height:39px!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode .p1096-actions button[id$="Save"]{
 background:linear-gradient(#fff0ae,#ffb533,#cf641e)!important;
 border:2px solid #07040d!important;color:#251009!important;
 box-shadow:0 0 0 1px #ffd567!important;
}
html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode .p1096-actions button:focus-visible,
html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode .p1096-form-grid button:focus-visible{
 outline:2px solid #ffe18c!important;outline-offset:2px!important;
}
@media(max-width:600px){
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode .modal.compact{
  width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;
  border-width:2px!important;max-height:calc(100dvh - 40px)!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode .modal-head{
  font-size:15px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode .modal-body{
  max-height:calc(100dvh - 100px)!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode .p1096-form-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:6px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode .p1096-form-grid button{
  padding:6px!important;gap:5px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode .p1096-form-grid img{
  width:26px!important;height:39px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode .p1096-form-grid b{
  font-size:11px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode .p1096-form-grid small{
  font-size:10px!important;
 }
 html.zt-on:not(#zt0):not(#zt1) body #infoModal.p1096-mode .p1096-actions button{
  min-width:0!important;flex:1!important;
  padding:9px 6px!important;font-size:10px!important;
 }
}

