/* Lootibia · carved stone, graphite and aged brass. Presentation only. */
.lootibia-theme { color-scheme:dark; --lt-bg:#212121; --lt-panel:#313131; --lt-raised:#3c3c3c; --lt-inset:#262626; --lt-line:#555555; --lt-soft:#414141; --lt-text:#e4e0d8; --lt-muted:#aaa99f; --lt-gold:#c6a766; --lt-gold-dark:#71603b; --lt-rail:148px; }
.lootibia-theme body { background:var(--lt-bg); }
.lootibia-theme .tibia-online-entry { width:min(460px,calc(100% - 32px)); padding:32px; border:1px solid #737264; border-top:2px solid #b49b66; border-radius:4px; background:linear-gradient(#383838,#272727); color:#e4e0d8; box-shadow:0 20px 60px #0007; font:13px/1.6 Tahoma,sans-serif; }
.lootibia-theme .tibia-online-entry h1 { width:100%; aspect-ratio:5/1; font-size:0; background:url('./logo-main-transparent.png') center / 100% auto no-repeat; margin:0 0 26px; }
.lootibia-theme .tibia-online-entry :is(input,select,button,a) { border-color:#656354; background:#252525; color:#e3ddcd; border-radius:3px; }
.lootibia-theme .tibia-online-entry button { background:linear-gradient(#554c36,#3c372a); border-color:#9c8552; min-height:38px; }
.lootibia-theme .tibia-online-entry :is(input,select,button):focus-visible { outline:2px solid #c6a766; outline-offset:2px; }
.lootibia-theme .tibia-online-field-help { color:#b9b6a8; font-size:11px; }
.lootibia-theme .tibia-startup { background:radial-gradient(ellipse at 50% 38%,#3d3d3d 0,#242424 45%,#151515 100%); color:var(--lt-text); font:14px/1.6 Tahoma,sans-serif; }
.lootibia-theme .tibia-startup-card { width:min(620px,100%); padding:44px 48px 34px; border:1px solid var(--lt-line); border-top:2px solid var(--lt-line); border-radius:3px; background:linear-gradient(150deg,#343434,#212121); box-shadow:inset 0 0 0 5px #262626,0 24px 80px #0008; }
.lootibia-theme .tibia-startup-mark { display:block; width:100%; height:auto; aspect-ratio:3/1; border:0; border-radius:0; font-size:0; background:url('./logo-load-transparent.png') center / 100% auto no-repeat; }
.lootibia-theme .tibia-startup h1 { font:11px Tahoma,sans-serif; letter-spacing:4px; text-transform:uppercase; color:var(--lt-text); margin:28px 0 8px; }
.lootibia-theme .tibia-startup p { color:var(--lt-text); font:13px/1.6 Tahoma,sans-serif; }
.lootibia-theme .tibia-startup progress { height:7px; background:#181818; border-radius:0; border:1px solid var(--lt-line); }
.lootibia-theme .tibia-startup progress::-webkit-progress-bar { background:#181818; }
.lootibia-theme .tibia-startup progress::-webkit-progress-value { background:linear-gradient(90deg,#514936,#34332b); }
.lootibia-theme .tibia-startup progress::-moz-progress-bar { background:#494334; }
.lootibia-theme .tibia-startup a { border-color:var(--lt-gold); background:#494334; color:var(--lt-text); }

#app .client-shell.lootibia-ui { grid-template-rows:68px minmax(0,1fr); font-family:Tahoma,Arial,sans-serif; color:var(--lt-text); }
html.lootibia-theme #app .client-shell > header { height:68px; gap:20px; padding:6px 20px; background:linear-gradient(#313131,#262626); border-bottom:1px solid var(--lt-line); box-shadow:0 3px 16px #0006; }
html.lootibia-theme #app .lootibia-brand { display:block; flex:0 0 190px; height:44px; background:url('./logo-main-transparent.png') center / 100% auto no-repeat; border-right:1px solid var(--lt-line); padding-right:16px; }
html.lootibia-theme #app .header-character { min-width:170px; max-width:210px; }
html.lootibia-theme #app .header-character strong { color:var(--lt-text); }
html.lootibia-theme #app .header-character small { color:#b1b1b1; }
html.lootibia-theme #app .header-outfit-portrait { border:1px solid var(--lt-line); border-image:none; border-radius:3px; background:radial-gradient(#525252,#262626); }
html.lootibia-theme #app :is(.header-gold,.tibia-header-coins) { height:32px; background:#212121; border:1px solid #545454; border-radius:3px; color:var(--lt-text); box-shadow:inset 0 1px 4px #0003; }
html.lootibia-theme #app .header-experience-rate { color:var(--lt-text); }
html.lootibia-theme #app .tibia-top-presence { color:#b7b7b7; text-align:right; margin-left:auto; }
html.lootibia-theme #app .tibia-top-store { width:88px; height:36px; flex-basis:88px; border:1px solid var(--lt-line); border-image:none; border-radius:3px; color:var(--lt-text); background:linear-gradient(#514936,#39352a); box-shadow:inset 0 1px #ffffff12; }
html.lootibia-theme #app .tibia-top-store svg { width:22px; height:22px; filter:none; }
html.lootibia-theme #app .tibia-top-store .tibia-top-button-label { color:var(--lt-text); }

/* Navigation is a permanent rail on desktop; native buttons keep their handlers. */
html.lootibia-theme #app .lootibia-rail { position:fixed; inset:68px auto 0 0; z-index:150; width:var(--lt-rail); box-sizing:border-box; padding:16px 10px; border-right:1px solid #555555; background:linear-gradient(100deg,#303030,#252525); box-shadow:4px 0 18px #0003; overflow:auto; scrollbar-width:thin; }
html.lootibia-theme #app .tibia-top-menu { display:flex; flex-direction:column; overflow:visible; gap:12px; width:100%; align-items:stretch; }
html.lootibia-theme #app .lootibia-nav-group { display:grid; gap:3px; }
html.lootibia-theme #app .lootibia-nav-heading { color:var(--lt-text); font:9px/1.4 Tahoma,sans-serif; letter-spacing:1.7px; padding:5px 9px 7px; }
html.lootibia-theme #app .tibia-top-menu button { display:flex; align-items:center; gap:10px; width:100%; height:39px; flex:auto; padding:8px 9px; border:1px solid transparent; border-image:none; border-radius:3px; background:transparent; color:var(--lt-text); box-shadow:none; text-align:left; }
html.lootibia-theme #app .tibia-top-menu svg { width:20px; height:20px; flex:0 0 20px; filter:none; }
html.lootibia-theme #app .tibia-top-menu .tibia-top-button-label { display:block; position:static; opacity:1; background:none; color:inherit; font:11px/1.25 Tahoma,sans-serif; text-align:left; }
html.lootibia-theme #app .tibia-top-menu button:hover { background:#414141; color:var(--lt-text); filter:none; }
html.lootibia-theme #app .tibia-top-menu button[aria-expanded=true] { background:linear-gradient(90deg,#514936,#34332b); border-color:var(--lt-gold); color:var(--lt-gold); box-shadow:inset 3px 0 var(--lt-gold); }
html.lootibia-theme #app .tibia-top-menu .tibia-top-more { font-size:24px; border-top:1px solid #4a4a4a; border-radius:0; margin-top:4px; }
html.lootibia-theme #app .workspace { margin-left:var(--lt-rail); }
html.lootibia-theme #app .tibia-menu-extras { background:#2c2c2c; border-color:var(--lt-gold); }

/* Shared window frame and control system, including secondary dialogs. */
html.lootibia-theme #app :is(.tibia-game-window,.tibia-hud-window,.inventory-window,.action-dialog-card),
.lootibia-theme :is(.inventory-context-menu,.friends-context-menu,.inventory-quantity-dialog,.item-hover-card) { border:1px solid var(--lt-line); border-top:2px solid var(--lt-line); border-image:none; border-radius:4px; background:var(--lt-panel); box-shadow:inset 0 0 0 3px #252525,0 12px 40px #0009; color:var(--lt-text); font-family:Tahoma,Arial,sans-serif; }
html.lootibia-theme #app :is(.tibia-window-titlebar,.drawer-heading,.inventory-titlebar,.action-dialog-title) { background:linear-gradient(#494949,#3e3e3e); border-bottom:1px solid #626262; min-height:38px; padding:4px 12px; color:var(--lt-text); box-shadow:inset 0 1px #ffffff12; }
html.lootibia-theme #app :is(.tibia-window-titlebar,.drawer-heading,.inventory-titlebar,.action-dialog-title) strong { color:var(--lt-text); font:700 12px Tahoma,sans-serif; letter-spacing:1px; }
html.lootibia-theme #app :is(.tibia-window-body,.tibia-menu-family-body,.inventory-body) { background:#2c2c2c; color:var(--lt-text); scrollbar-color:#737373 #252525; }
html.lootibia-theme #app :is(.tibia-window-body,.tibia-menu-family-body,.inventory-body) :is(h2,h3,h4,strong,small,p,label,td,th) { color:inherit; }
html.lootibia-theme #app :is(.tibia-window-body,.tibia-menu-family-body,.inventory-body) :is(h3,h4) { color:var(--lt-text); }
html.lootibia-theme #app :is(.tibia-window-body,.tibia-menu-family-body,.inventory-body) :is(small,th) { color:#b1b1b1; }
html.lootibia-theme #app :is(input,select,textarea) { color:var(--lt-text); background:#232323; border:1px solid #606060; border-radius:3px; accent-color:var(--lt-gold); }
html.lootibia-theme #app :is(button,input,select,textarea):focus-visible { outline:2px solid var(--lt-line); outline-offset:2px; }
html.lootibia-theme #app :is(.tibia-game-window,.tibia-hud-window,.inventory-window,.action-dialog-card,.tibia-menu-extras) button:where(:not(.equipment-slot):not(.inventory-item-slot):not(.hunt-card):not(.bestiary-browser-card)) { border:1px solid #626262; border-image:none; border-radius:3px; background:linear-gradient(#474747,#363636); box-shadow:inset 0 1px #c1c1c115; color:var(--lt-text); }
html.lootibia-theme #app :is(.tibia-game-window,.tibia-hud-window,.inventory-window,.action-dialog-card) button:hover:not(:disabled) { border-color:var(--lt-gold); background-color:#4f4f4f; }
html.lootibia-theme #app :is(.tibia-game-window,.tibia-hud-window,.inventory-window) :is(button[aria-selected=true],button[aria-pressed=true],button.is-selected,button.selected,.tibia-store__primary,.tibia-market__primary) { color:var(--lt-text); background:linear-gradient(#514936,#39352a); border-color:var(--lt-gold); box-shadow:inset 3px 0 var(--lt-gold); }
html.lootibia-theme #app button:disabled { cursor:not-allowed; }
html.lootibia-theme #app :is(.tibia-menu-footer,.tibia-menu-family-footer,.bestiary-footer,.inventory-footer,.prey-footer,.friends-footer) { background:#252525; border-top:1px solid #595959; color:#bbbbbb; }

/* Family windows use a left tab column to free the body and make sections legible. */
@media(min-width:901px) {
  html.lootibia-theme #app .tibia-menu-family-window:has(>.tibia-menu-family-tabbar) { display:grid; grid-template-columns:142px minmax(0,1fr); grid-template-rows:38px minmax(0,1fr) 44px; width:min(1050px,calc(100vw - 186px))!important; height:min(730px,calc(100dvh - 166px)); max-height:calc(100dvh - 166px)!important; }
  html.lootibia-theme #app .tibia-menu-family-window>.tibia-menu-family-tabbar { grid-column:1; grid-row:2; min-width:0; padding:14px 8px; border-right:1px solid #545454; background:#282828; }
  html.lootibia-theme #app .tibia-menu-family-tabbar .tibia-menu-tabs { flex-direction:column; gap:6px; padding:0; border:0; }
  html.lootibia-theme #app .tibia-menu-family-tabbar .tibia-menu-tabs button { flex:0 0 auto; text-align:left; padding:11px 10px; font:11px Tahoma,sans-serif; min-height:40px; }
  html.lootibia-theme #app .tibia-menu-family-window:has(>.tibia-menu-family-tabbar)>:is(.drawer-heading,.tibia-window-titlebar) { grid-column:1/-1; grid-row:1; min-height:38px; }
  html.lootibia-theme #app .tibia-menu-family-window:has(>.tibia-menu-family-tabbar)>:is(.tibia-menu-family-body,.tibia-window-body) { grid-column:2; grid-row:2; padding:16px; }
  html.lootibia-theme #app .tibia-menu-family-window:has(>.tibia-menu-family-tabbar)>.tibia-menu-family-footer { grid-column:1/-1; grid-row:3; }
  html.lootibia-theme #app .tibia-game-window:not(:has(>.tibia-menu-family-tabbar)) { max-width:calc(100vw - 180px); }
}

/* Character: a calm summary, two reading columns, clear values. */
html.lootibia-theme #app .character-dashboard { color:var(--lt-text); gap:12px; }
html.lootibia-theme #app :is(.character-summary,.character-card) { background:#383838; border:1px solid #585858; border-radius:3px; padding:16px; }
html.lootibia-theme #app .character-summary { grid-template-columns:110px minmax(0,1fr); gap:16px; }
html.lootibia-theme #app .character-full-portrait { width:108px; height:120px; border:1px solid var(--lt-line); background:radial-gradient(#585858,#292929); border-radius:3px; }
html.lootibia-theme #app .character-full-portrait canvas { max-width:108px; max-height:120px; }
html.lootibia-theme #app .character-summary h2 { color:var(--lt-text); font-size:19px; }
html.lootibia-theme #app .character-summary-main>p { color:#b4b4b4; margin-bottom:14px; }
html.lootibia-theme #app .character-summary-stats { grid-column:1/-1; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px 18px; background:#2d2d2d; border:1px solid #555555; padding:10px 12px; }
html.lootibia-theme #app .character-summary-stats b { color:#e5e5e5; }
html.lootibia-theme #app .character-columns { gap:12px; grid-template-columns:1.15fr 1fr; }
html.lootibia-theme #app .character-card h3 { font:700 11px Tahoma,sans-serif; color:var(--lt-text); letter-spacing:1px; border-color:#5f5f5f; padding-bottom:10px; }
html.lootibia-theme #app .character-card h4 { color:#c5c5c5; }
html.lootibia-theme #app :is(.character-meter,.character-skill-meter>i:not(.filled)) { background:#232323; border-color:#575757; border-radius:2px; }
html.lootibia-theme #app :is(.character-combat-grid>div,.character-protection-grid>div) { background:#2e2e2e; border-color:#5b5b5b; color:#cccccc; }
html.lootibia-theme #app :is(.character-combat-grid b,.character-protection-grid b,.character-resource b) { color:var(--lt-text); }
html.lootibia-theme #app .character-bonus-total { color:var(--lt-text); border-color:#5f5f5f; }
html.lootibia-theme #app .character-skill-table th { border-color:#5b5b5b; }

/* Hunts become readable horizontal cards, with three columns on wide windows. */
html.lootibia-theme #app .tibia-hunts-reference .hunt-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
html.lootibia-theme #app .tibia-hunts-reference .hunt-card { border:1px solid #616161; border-image:none; border-radius:3px; min-height:174px; padding:14px; gap:10px; background:linear-gradient(145deg,#434343,#303030); color:#dedede; box-shadow:0 2px 5px #0003; }
html.lootibia-theme #app .tibia-hunts-reference .hunt-card:hover { border-color:var(--lt-gold); background:linear-gradient(145deg,#4e4e4e,#383838); }
html.lootibia-theme #app .tibia-hunts-reference .hunt-card strong { color:var(--lt-text); font:700 13px/1.35 Tahoma,sans-serif; }
html.lootibia-theme #app .tibia-hunts-reference .hunt-card>b { border-top:1px solid #606060; color:var(--lt-text); padding-top:10px; }
html.lootibia-theme #app :is(.hunt-toolbar-filters,.hunt-filters,.hunt-search,.auto-hunt-card,.hunt-selection,.hunt-organizer-panel,.hunt-metrics-card) { background:#353535; border-color:#636363; color:#d9d9d9; }
html.lootibia-theme #app .hunt-panel>.panel-heading strong { color:var(--lt-text); }
html.lootibia-theme #app :is(.live-pill,.hunt-favorite) { background:#414141; border-color:#757575; color:var(--lt-text); }

/* Inventory keeps the original slot artwork and drag/drop targets. */
html.lootibia-theme #app [data-inventory-window] { width:min(510px,calc(100vw - 180px)); height:min(600px,calc(100dvh - 150px)); }
html.lootibia-theme #app [data-inventory-window] .inventory-body { grid-template-columns:178px minmax(0,1fr); }
html.lootibia-theme #app :is(.inventory-paperdoll,.inventory-backpack,.inventory-container-section,.inventory-selection,.inventory-equipped-imbuements) { background:#2e2e2e; border-color:#5e5e5e; color:#d5d5d5; }
html.lootibia-theme #app .inventory-paperdoll { background:radial-gradient(ellipse at center,#4a4a4a,#2d2d2d 80%); }
html.lootibia-theme #app :is(.inventory-container-section>header,.inventory-section-title,.inventory-section-heading) { background:#404040; border-color:#696969; color:var(--lt-text); padding:9px; }
html.lootibia-theme #app :is(.equipment-slot,.inventory-item-slot) { border:1px solid #737373; background:linear-gradient(135deg,#424242,#272727); border-radius:3px; box-shadow:inset 0 1px 3px #0006; }
html.lootibia-theme #app :is(.inventory-item-slot,.equipment-slot):hover:not(.empty) { border-color:var(--lt-gold); background:#4e4e4e; }
html.lootibia-theme #app [data-inventory-window] .equipment-slot.empty { background:none; border:0; }

/* All supporting systems share the same inset surfaces. Semantic meters stay native. */
html.lootibia-theme #app :is(.bestiary-sidebar,.bestiary-browser-summary,.bestiary-detail,.tibia-menu-categories,.tibia-menu-pending,.tibia-menu-option,.tibia-menu-item-row,.tibia-menu-table,.tibia-guild-hero,.tibia-market__sidebar,.tibia-market__box,.tibia-market__item,.tibia-market__offers,.tibia-market__trade-panel,.tibia-store__sidebar,.tibia-store__card,.tibia-store__detail,.tibia-store__information,.prey-slot,.prey-current,.prey-bonus,.prey-wallet,.party-member,.friend-row,.friends-group,.blessings-row,.blessings-summary,.imbuement-detail,.imbuement-gear,.imbuement-item,.imbuement-payment,.imbuement-applied-card,.appearance-option,.appearance-preview,.appearance-option-list,.quest-board,.boss-card,.training-card,.action-editor) { background:#383838; border-color:#616161; color:#dfdfdf; border-radius:3px; }
html.lootibia-theme #app :is(.bestiary-browser-card,.prey-creature,.tibia-menu-item-row) { background:linear-gradient(145deg,#464646,#323232); border:1px solid #6a6a6a; border-radius:3px; color:#e3e3e3; }
html.lootibia-theme #app .bestiary-browser-card:hover { border-color:var(--lt-gold); background:#4c4c4c; }
html.lootibia-theme #app .bestiary-browser-card strong { color:#e6e6e6; }
html.lootibia-theme #app .bestiary-browser-count { color:#c0c0c0; }
html.lootibia-theme #app :is(.bestiary-sidebar h3,.bestiary-browser-results h3,.bestiary-browser-summary h3) { color:var(--lt-text); }
html.lootibia-theme #app :is(.tibia-market__sectionbar,.tibia-market__titlebar,.tibia-market__item-heading,.tibia-store__product-info,.prey-footer,.friends-search,.party-controls,.blessings-footer,.imbuement-detail-head) { background:#343434; border-color:#686868; color:#dcdcdc; }
html.lootibia-theme #app :is(.tibia-store__layout,.tibia-market__layout,.tibia-store__catalog,.tibia-market__main,.tibia-market__content,.prey-slots,.friends-list) { background:#303030; color:#dddddd; }
html.lootibia-theme #app :is(.bestiary-progress-track,.prey-time-progress,.party-resource,.party-stamina) { background-color:#272727; border-color:#696969; }
html.lootibia-theme #app :is(.party-member strong,.party-level,.prey-subtitle,.friends-intro,.blessings-intro,.tibia-menu-item-row small) { color:#d6d6d6; }
html.lootibia-theme #app :is(.party-output,.party-supply,.tibia-market__fineprint,.tibia-market__fee-note) { color:#b8b8b8; }
.lootibia-theme :is(.item-hover-card,.inventory-context-menu,.friends-context-menu) { background:#313131; color:#dfdfdf; }

/* Combat cockpit remains 20 slots. Vitals, actions and targeting have distinct groups. */
html.lootibia-theme #app .client-shell > footer.game-dock { width:min(980px,calc(100vw - 186px)); max-width:calc(100vw - 186px); left:calc(50% + 74px); padding:12px; bottom:12px; gap:12px; grid-template-columns:180px 32px minmax(0,398px) minmax(145px,170px) 66px; border:1px solid #737373; border-top:2px solid var(--lt-line); border-image:none; border-radius:4px; background:linear-gradient(#393939ee,#2b2b2bee); box-shadow:0 8px 30px #0009; }
html.lootibia-theme #app .dock-vitals { gap:6px; }
html.lootibia-theme #app .game-dock .dock-meter { height:15px; border-color:#6c6c6c; background:#1f1f1f; }
html.lootibia-theme #app .game-dock :is(.action-slot,.dock-tools button,.dock-fight-modes button,.dock-configure-actions,.dock-distance button,.dock-distance input) { border:1px solid #747474; border-image:none; border-radius:3px; background:linear-gradient(#4d4d4d,#2c2c2c); box-shadow:inset 0 1px #c8c8c81a; color:var(--lt-text); }
html.lootibia-theme #app .game-dock .action-slot { width:100%; }
html.lootibia-theme #app .game-dock .action-slot:hover { border-color:var(--lt-gold); }
html.lootibia-theme #app .game-dock .action-slot kbd { color:var(--lt-text); }
html.lootibia-theme #app .game-dock .dock-fight-modes button.active { border-color:var(--lt-gold); background:#5e5e5e; color:var(--lt-text); }
html.lootibia-theme #app .game-dock .dock-select select { background:#323232; border-color:#6e6e6e; color:#e2e2e2; }
html.lootibia-theme #app :is(.dock-select,.dock-distance,.status-idle) { color:#c6c6c6; }
html.lootibia-theme #app .game-dock :is(.hunt-toolbar button,.tibia-city-dock button) { border:1px solid #808080; border-image:none; border-radius:3px; background:linear-gradient(#4b4b4b,#323232); color:var(--lt-text); box-shadow:0 2px 4px #0007; font:11px Tahoma,sans-serif; height:32px; }
html.lootibia-theme #app .game-dock .hunt-toolbar .leave-button { color:var(--lt-text); border-color:var(--lt-gold); }
html.lootibia-theme #app .game-dock .hunt-toolbar .dispatch-button { border-color:var(--lt-gold); color:var(--lt-text); background:#494334; }

/* Session summaries are lighter, readable cards aligned on the right. */
html.lootibia-theme #app .tibia-hud-widget { width:224px; max-height:calc(100dvh - 220px); border:1px solid #717171; border-top:2px solid var(--lt-line); border-image:none; border-radius:3px; background:#323232ed; color:#dbdbdb; box-shadow:0 5px 18px #0006; }
html.lootibia-theme #app .tibia-hud-widget>header { background:#464646; height:34px; padding:0 10px; border-color:#6d6d6d; }
html.lootibia-theme #app .tibia-hud-widget>header strong { color:var(--lt-text); font:700 10px Tahoma,sans-serif; letter-spacing:.4px; }
html.lootibia-theme #app .tibia-hud-widget>header button { border:1px solid #7f7f7f; border-image:none; background:#353535; color:var(--lt-text); }
html.lootibia-theme #app .tibia-hud-widget-content { padding:10px; }
html.lootibia-theme #app .tibia-hud-empty { color:#bdbdbd; }
html.lootibia-theme #app .tibia-hud-widget-link { border-color:#747474; background:#424242; color:var(--lt-text); }
html.lootibia-theme #app .tibia-hud-summary-grid dt { color:#c2c2c2; }
html.lootibia-theme #app .tibia-hud-summary-grid dd { color:#e5e5e5; }
html.lootibia-theme #app .tibia-hud-loot-items { grid-template-columns:repeat(5,32px); gap:6px; }
html.lootibia-theme #app .tibia-hud-loot-item { width:32px; background:#2e2e2e; border-color:#757575; }

@media(max-width:1200px) and (min-width:901px) {
  html.lootibia-theme #app .client-shell > header { gap:12px; }
  html.lootibia-theme #app .lootibia-brand { flex-basis:142px; height:34px; }
  html.lootibia-theme #app .client-shell > footer.game-dock { gap:6px; padding:8px; grid-template-columns:145px 30px minmax(0,358px) 148px 60px; }
  html.lootibia-theme #app .tibia-hunts-reference .hunt-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  html.lootibia-theme #app .character-resource { grid-template-columns:14px 60px minmax(45px,1fr) 94px; font-size:11px; }
}
@media(max-width:900px) {
  html.lootibia-theme #app .client-shell > header { gap:8px; padding:5px 10px; }
  html.lootibia-theme #app .lootibia-brand { flex-basis:135px; height:33px; padding-right:0; }
  html.lootibia-theme #app .tibia-top-presence { display:none; }
  html.lootibia-theme #app .lootibia-rail { inset:68px 0 auto 0; height:50px; width:100%; padding:4px 8px; border-right:0; border-bottom:1px solid #707070; overflow:auto; }
  html.lootibia-theme #app .tibia-top-menu { flex-direction:row; gap:5px; width:max-content; }
  html.lootibia-theme #app .lootibia-nav-group { display:flex; gap:3px; }
  html.lootibia-theme #app .lootibia-nav-heading { display:none; }
  html.lootibia-theme #app .tibia-top-menu button { width:auto; min-width:78px; height:38px; gap:6px; font-size:10px; }
  html.lootibia-theme #app .tibia-top-menu .tibia-top-more { margin:0; border:0; }
  html.lootibia-theme #app .workspace { margin-left:0; margin-top:50px; }
  html.lootibia-theme #app .client-shell > footer.game-dock { left:50%; max-width:calc(100vw - 12px); width:calc(100vw - 12px); gap:6px; padding:8px; bottom:6px; }
  html.lootibia-theme #app :is(.tibia-menu-family-window,.tibia-game-window,.inventory-window) { max-width:calc(100vw - 16px); max-height:calc(100dvh - 142px)!important; }
  html.lootibia-theme #app [data-inventory-window] { width:min(510px,calc(100vw - 16px)); }
  html.lootibia-theme #app .tibia-hunts-reference .hunt-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  html.lootibia-theme #app .tibia-hud-widget { width:170px; }
  html.lootibia-theme #app .tibia-hud-loot-items { grid-template-columns:repeat(4,28px); }
}
@media(max-width:560px) {
  html.lootibia-theme #app .client-shell > header { gap:6px; }
  html.lootibia-theme #app .lootibia-brand { flex-basis:92px; height:24px; }
  html.lootibia-theme #app .header-character { min-width:125px; }
  html.lootibia-theme #app .header-gold { min-width:64px; gap:4px; padding:4px; }
  html.lootibia-theme #app .tibia-header-coins { min-width:36px; padding:4px; gap:3px; }
  html.lootibia-theme #app .tibia-top-store { position:fixed; right:8px; bottom:240px; z-index:155; width:62px; height:30px; font-size:10px; }
  html.lootibia-theme #app .tibia-top-store svg { width:16px; height:16px; }
  html.lootibia-theme #app .character-summary { grid-template-columns:72px minmax(0,1fr); padding:10px; gap:9px; }
  html.lootibia-theme #app .character-full-portrait { width:70px; height:88px; }
  html.lootibia-theme #app .character-full-portrait canvas { width:70px; height:88px; }
  html.lootibia-theme #app .character-summary h2 { font-size:14px; }
  html.lootibia-theme #app .character-summary-stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 9px; }
  html.lootibia-theme #app .character-columns { grid-template-columns:1fr; }
  html.lootibia-theme #app .character-resource { grid-template-columns:12px 34px minmax(30px,1fr); }
  html.lootibia-theme #app .character-resource b { grid-column:2/-1; font-size:10px; }
  html.lootibia-theme #app [data-inventory-window] .inventory-body { grid-template-columns:140px minmax(0,1fr); }
  html.lootibia-theme #app .tibia-hunts-reference .hunt-card { padding:10px; }
  html.lootibia-theme #app .tibia-hud-widget { max-height:180px; }
  html.lootibia-theme #app .tibia-startup-card { padding:24px; }
}
@media(prefers-reduced-motion:reduce) { .lootibia-theme *, .lootibia-theme *::before, .lootibia-theme *::after { scroll-behavior:auto!important; transition:none!important; } }

/* Brass is reserved for orientation and primary actions. */
html.lootibia-theme #app :is(.tibia-menu-family-tabbar,.action-support-note,.action-dialog-footer,.bestiary-browser-results>header,.appearance-palette) { background:#2b2b29; border-color:#59594f; color:#d2cbbc; }
html.lootibia-theme #app button[aria-pressed=true] { outline-color:#c6a766; }
@media(max-width:900px) {
  html.lootibia-theme #app .client-shell > footer.game-dock { grid-template-areas:'vitals tools combat distance' 'spells spells spells spells'; grid-template-columns:minmax(108px,1fr) 32px minmax(108px,1fr) 58px; grid-template-rows:auto 78px; justify-content:stretch; gap:6px; }
  html.lootibia-theme #app .game-dock .spell-panel { width:100%; min-width:0; max-width:none; padding:0; overflow:visible; }
  html.lootibia-theme #app .game-dock .spell-bar { width:100%; max-width:none; margin:0; }
  html.lootibia-theme #app .game-dock .dock-combat { min-width:0; }
  html.lootibia-theme #app .game-dock .dock-select { grid-template-columns:38px minmax(0,1fr); gap:2px; font-size:8px; }
  html.lootibia-theme #app .game-dock .dock-select select { font-size:9px; }
  html.lootibia-theme #app .game-dock .dock-distance { width:58px; min-width:0; }
  html.lootibia-theme #app .game-dock .dock-distance>div { gap:2px; }
  html.lootibia-theme #app .game-dock .dock-distance :is(input,button) { width:17px; }
  html.lootibia-theme #app .game-dock .action-slot .action-icon { width:min(32px,100%); }
}
html.lootibia-theme #app :is(.tibia-game-window,.tibia-hud-window,.inventory-window,.action-dialog-card) { border-top-color:#a38e60; }
html.lootibia-theme #app :is(.tibia-game-window,.tibia-hud-window,.inventory-window,.action-dialog-card) :is(button,h2,h3,h4,strong,b,p,small,label) { font-family:Tahoma,Arial,sans-serif; }
html.lootibia-theme #app :is(.tibia-window-titlebar,.inventory-titlebar,.drawer-heading)::before { content:''; width:5px; height:5px; flex:0 0 5px; transform:rotate(45deg); background:#bda16a; margin-right:5px; }
html.lootibia-theme #app .tibia-hud-summary-grid dd.loss { color:#df9d8d; }
html.lootibia-theme #app .tibia-hud-summary-grid dd.gain { color:#b7cc9a; }
html.lootibia-theme #app :is(.prey-locked,.prey-bonus-options,.prey-premium-note,.prey-any-picker>summary,.prey-wallet>span,.prey-creature) { background:#292929; border-color:#56564f; color:#c5c1b6; }
html.lootibia-theme #app .prey-grid-empty { background:#292929c0; color:#bdb9ae; }
html.lootibia-theme #app :is(.prey-bonus-title,.prey-footer-note,.prey-slot>header>span,.prey-lock-help,.prey-free-countdown) { color:#c9c3b2; }
html.lootibia-theme #app .prey-slot>header { padding-bottom:8px; border-bottom:1px solid #54544b; }
html.lootibia-theme #app .prey-slot h3 { color:#d8c498; font-size:11px; }
html.lootibia-theme #app .tibia-store { --border:#5b5b53; --gold:#d0b374; background:#292929; color:#d9d6cb; }
html.lootibia-theme #app .tibia-market { --market-bg:#292929; --market-panel:#343434; --market-line:#5c5c54; --market-text:#dedbd0; --market-muted:#b4b1a3; --market-blue:#c4b27e; --market-gold:#d2b67b; }
html.lootibia-theme #app :is(.tibia-city-market-tabs,.tibia-store__catalog>header,.tibia-store__preview,.tibia-store__quantity input,.tibia-store__total,.tibia-store__status,.tibia-store__search,.tibia-store__sidebar small) { background:#292929; border-color:#5d5d54; color:#cecbbb; }
html.lootibia-theme #app .tibia-store__featured { background:linear-gradient(110deg,#494438,#33312c); border-color:#80704a; }
html.lootibia-theme #app .tibia-store__card { background:linear-gradient(#3e3e3b,#32322f)!important; border-color:#636257; }
html.lootibia-theme #app .tibia-store__card.is-selected { border-color:#c5a569; box-shadow:inset 0 0 0 1px #907f55; }
html.lootibia-theme #app :is(.tibia-store h2,.tibia-store__card strong,.tibia-store__catalog h2) { color:#e6d9b9; }
html.lootibia-theme #app :is(.tibia-store p,.tibia-store__card p,.tibia-store__catalog>header p,.tibia-store__featured p) { color:#bfbcb1; }
html.lootibia-theme #app .tibia-store__featured>.tibia-store__art { background:#323029; border-color:#86744c; }
html.lootibia-theme #app .tibia-store__buy-coins { background:linear-gradient(#c9ac71,#9c824e)!important; color:#1f211b!important; }
html.lootibia-theme #app :is(.tibia-store,.tibia-market) :is(input,select) { background:#242424; color:#dedbcf; border-color:#626256; }
html.lootibia-theme #app :is(.bestiary-title-subtitle,.tibia-menu-option small,.tibia-menu-pagination span,.tibia-menu-table th) { color:#b4b0a3; }
@media(max-height:800px) and (min-width:901px) { html.lootibia-theme #app .city-shop-window.tibia-unified-store { top:82px!important; max-height:calc(100dvh - 96px)!important; } }
@media(max-width:900px) { html.lootibia-theme #app .city-shop-window.tibia-unified-store { top:126px!important; left:8px!important; max-height:calc(100dvh - 142px)!important; } }
html.lootibia-theme #app .tibia-menu-tabs button[aria-selected=true] { outline:0; border-color:#a78e54; background:linear-gradient(90deg,#514936,#37352c); color:#f0d9a5; box-shadow:inset 3px 0 #c6a766; }
html.lootibia-theme #app .tibia-menu-tabs button:focus-visible { outline:2px solid #dfbd7b; outline-offset:2px; }
html.lootibia-theme #app .hunt-catalog-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
html.lootibia-theme #app .hunt-catalog-card { background:linear-gradient(140deg,#414141,#313131); border-color:#60605a; border-radius:4px; min-height:146px; }
html.lootibia-theme #app .hunt-catalog-card:has(.hunt-catalog-open:hover) { border-color:#b39a62; box-shadow:0 2px 8px #0004; }
html.lootibia-theme #app .hunt-organizer .hunt-catalog-open { border:0; background:transparent; padding:14px 12px; height:112px; gap:12px; }
html.lootibia-theme #app .hunt-organizer .hunt-catalog-open:hover { background:#ffffff08; }
html.lootibia-theme #app .hunt-catalog-open strong { font:700 12px/1.4 Tahoma,sans-serif; color:#e9e4d7; }
html.lootibia-theme #app .hunt-catalog-open small { color:#bcbcaf; font:10px/1.5 Tahoma,sans-serif; }
html.lootibia-theme #app .hunt-creature-portrait { width:64px; height:72px; background:radial-gradient(ellipse,#50504a,#282828); border-color:#66655b; }
html.lootibia-theme #app .hunt-catalog-card footer { background:#272727; border-color:#585852; color:#c4bba6; padding:9px 12px; }
html.lootibia-theme #app .hunt-catalog-search label { background:#252525; border-color:#56564f; padding:8px 12px; }
html.lootibia-theme #app .hunt-organizer-nav { border-color:#55554e; }
html.lootibia-theme #app .hunt-organizer-nav strong { background:#393831; border-color:#66604d; color:#d7c49b; }
html.lootibia-theme #app :is(.hunt-detail-banner,.hunt-detail-level,.hunt-pull-panel,.hunt-loot-panel,.hunt-organizer-loot-row,.bestiary-hero,.bestiary-portrait,.bestiary-phase,.bestiary-section,.bestiary-loot,.bestiary-stats) { background:#303030; border-color:#5c5c54; color:#d6d6c8; box-shadow:none; }
html.lootibia-theme #app :is(.hunt-detail-banner h2,.hunt-detail-banner p,.hunt-detail-level span,.hunt-detail-level strong,.hunt-pull-note,.hunt-loot-protection,.bestiary-category,.bestiary-help) { color:#c9c6b7; }
html.lootibia-theme #app .hunt-detail-banner h2 { color:#e5d3a6; }
html.lootibia-theme #app .hunt-creature-count { background:#292929; border-color:#696354; color:#dfd7c0; }
html.lootibia-theme #app .hunt-organizer .hunt-favorite { width:22px; height:22px; padding:0; border:0; background:transparent; color:#ccb477; }
@media(max-width:1100px) { html.lootibia-theme #app .hunt-catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:520px) { html.lootibia-theme #app .hunt-catalog-grid { grid-template-columns:1fr; } }
html.lootibia-theme #app .tibia-top-menu button[aria-expanded=true], html.lootibia-theme #app .tibia-top-store { color:#eed4a0; border-color:#9c8452; }
html.lootibia-theme #app .tibia-top-menu button[aria-expanded=true] { border-left-color:#d0b270; }
html.lootibia-theme #app :is(.character-card h3,.character-bonus-total,.bestiary-sidebar h3,.hunt-panel>.panel-heading strong,.tibia-hud-widget>header strong) { color:#d7c49b; }
html.lootibia-theme #app .lootibia-nav-heading { color:#a49c88; }
html.lootibia-theme #app .tibia-window-titlebar strong { color:#e7d7b0; }
html.lootibia-theme #app .game-dock .hunt-toolbar .leave-button { color:#e5aaa0; border-color:#a87967; }
.lootibia-theme .tibia-startup progress::-webkit-progress-value { background:linear-gradient(90deg,#8f784a,#d5b777); }
.lootibia-theme .tibia-startup progress::-moz-progress-bar { background:#c6a766; }

/* Window-by-window palette audit. Native art, outfit swatches, health/mana
   fills, elemental damage and success/error indicators retain their meaning. */
html.lootibia-theme #app :is(.inventory-window,.tibia-game-window,.tibia-hud-window,.action-dialog-card,.tibia-menu-extras) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea) {
  background:#252525!important; color:#e4e0d8!important; border-color:#66645b!important; box-shadow:inset 0 1px 3px #0003;
}
html.lootibia-theme #app :is(button,input,select,textarea):focus-visible { outline-color:#c6a766!important; }
html.lootibia-theme #app :is(.inventory-window,.tibia-game-window,.tibia-hud-window,.action-dialog-card) { scrollbar-color:#777368 #262626; }
html.lootibia-theme #app :is(.inventory-titlebar,.tibia-window-titlebar,.drawer-heading,.action-dialog-title) :is(strong,small) { color:#e6d7b4!important; }
html.lootibia-theme #app :is(.inventory-window,.tibia-game-window,.tibia-hud-window)>footer { background:#282828; border-color:#5e5c54; color:#bcb7aa; }
html.lootibia-theme #app .header-experience-rate { background:linear-gradient(#393832,#272723); border-color:#6b6450; }
html.lootibia-theme #app .header-experience-rate span { color:#bab4a5; }
html.lootibia-theme #app .tibia-top-ping { color:#c6c0b3; }
html.lootibia-theme #app .tibia-header-coins-plus { color:#302c21; }
html.lootibia-theme #app .header-experience-popover { background:#30302d; border-color:#7e7155; color:#dcd4c1; }
html.lootibia-theme #app .header-experience-popover :is(span,small) { color:#c0b9aa; }
html.lootibia-theme #app .character-stat-icon:not(.icon-mana):not(.icon-ice):not(.icon-fire):not(.icon-earth):not(.icon-energy):not(.icon-death):not(.icon-holy) { color:#c4b58f; }
html.lootibia-theme #app .character-skill-meter>i.filled { background:#bea36a; }

/* Catalog, phase details and tracker. */
html.lootibia-theme #app .tibia-item-source { background:#292923; border-color:#68624f; color:#c9bb96; }
html.lootibia-theme #app .tibia-menu-item-stats { color:#d5cbb6; }
html.lootibia-theme #app .bestiary-category-glyph { color:#d1b779; }
html.lootibia-theme #app .bestiary-browser-summary :is(div,strong,b) { color:#d3c9b2; }
html.lootibia-theme #app .bestiary-layout-buttons button[aria-pressed=true] { border-color:#c6a766; color:#ecd7a9; background:#494235; box-shadow:none; }
html.lootibia-theme #app .bestiary-progress-track>i,
html.lootibia-theme #app .bestiary-tracker-bar>i { background:#c6a766; }
html.lootibia-theme #app .bestiary-footer :is(p,small,strong),
html.lootibia-theme #app .bestiary-pagination span { color:#c4beb0; }
html.lootibia-theme #app .bestiary-phase-number { border-color:#796e54; color:#c8b886; }
html.lootibia-theme #app .bestiary-phase-badge { border-color:#6e6755; color:#c9c0aa; }
html.lootibia-theme #app .bestiary-phase.is-current :is(.bestiary-phase-number,.bestiary-phase-badge) { border-color:#c6a766; color:#e1c486; }
html.lootibia-theme #app .bestiary-phase-reward { border-color:#58564e; }
html.lootibia-theme #app :is(.bestiary-card,.bestiary-attack-list article) { background:#323232; border-color:#5c5a52; }
html.lootibia-theme #app .bestiary-card :is(dt,dd),
html.lootibia-theme #app :is(.bestiary-loot-inspect,.bestiary-text-list li) { color:#c6c0b3; }
html.lootibia-theme #app .bestiary-resistance-track { background:#242424; border-color:#656157; }
html.lootibia-theme #app .bestiary-resistance.is-neutral .bestiary-resistance-track>i { background:linear-gradient(90deg,#817452,#c7b583); }
html.lootibia-theme #app .bestiary-resistance>b { color:#d5ccba; }
html.lootibia-theme #app .bestiary-icon { color:#c6b88f; }
html.lootibia-theme #app .bestiary-tracker-row { background:#353532b5; border-color:#635f53; }
html.lootibia-theme #app .bestiary-tracker-bar { background:#252525; border-color:#6d6450; }
html.lootibia-theme #app .bestiary-tracker-manual { border-color:#615d50; }

/* Social windows and tables. */
html.lootibia-theme #app .tibia-guild-hero>span { color:#bfb8a6; border-color:#655f4f; }
html.lootibia-theme #app .tibia-menu-table th { background:#373733; border-color:#635f53; color:#c7bfad; }
html.lootibia-theme #app .tibia-menu-table :is(td,tr) { border-color:#55534b; }
html.lootibia-theme #app .tibia-ranking-filters button { border-color:#625e52; color:#d1c9b5; }
html.lootibia-theme #app .tibia-ranking-filters button[aria-pressed=true] { border-color:#c6a766; background:#4b4434; color:#ecd7a9; box-shadow:inset 3px 0 #c6a766; }
html.lootibia-theme #app :is(.tibia-referral-counters,.tibia-referral-counters span,.party-compact>div) { color:#c5bcaa; border-color:#625d50; }

/* Store has its own late styles: neutralize fields and footer at that scope. */
html.lootibia-theme #app .tibia-store__purchase { border-color:#605d52; }
html.lootibia-theme #app .tibia-store>footer { background:#292929; color:#c7c1b3; border-color:#605d52; }
html.lootibia-theme #app .tibia-store__status { color:#c7c1b3; }
html.lootibia-theme #app .equipment-slot-item-placeholder { background:linear-gradient(135deg,#3a3a38,#242424); border-color:#66645d; }
html.lootibia-theme #app .inventory-section-heading>span { color:#b4ae9f; }
html.lootibia-theme #app :is(.inventory-comparison,.inventory-imbuement-details li) { background:#2a2a28; border-color:#5c594e; }
html.lootibia-theme #app .inventory-imbuement-details :is(span,small) { color:#c4beae; }

/* Action editor, combat dock, information and damage panels. */
html.lootibia-theme #app .action-choice-layout { border-color:#625e52; }
html.lootibia-theme #app :is(.action-description,.action-requirements,.action-choice-detail>small,.action-conditions>small,.action-ignored-section>p,.action-choice small) { color:#c3bdaf; }
html.lootibia-theme #app :is(.action-icon,.action-label,.action-label strong,.action-slot button) { color:#dcd6c8; }
html.lootibia-theme #app .action-label small { color:#b8b1a3; }
html.lootibia-theme #app .action-cooldown-shade { background:#080808b3; }
html.lootibia-theme #app .action-cooldown { color:#f0e7d4; }
html.lootibia-theme #app .game-dock .dock-meter { box-shadow:inset 0 0 0 1px #171717; }
html.lootibia-theme #app .game-dock .dock-meter :is(span,b) { color:#e5decd; }
html.lootibia-theme #app .dock-select select { box-shadow:inset 0 1px #b7ab8b2b; }
html.lootibia-theme #app .status-chip { background:#292929eb; border-color:#666052; }
html.lootibia-theme #app .attributes-window :is(h3,a) { color:#d8c69d; }
html.lootibia-theme #app .attributes-grid>div { background:#30302e; border-color:#5f5a4d; }
html.lootibia-theme #app .attributes-grid dt,
html.lootibia-theme #app .attributes-note { color:#bdb6a7; }
html.lootibia-theme #app .attributes-grid dd { color:#e5dcc7; }
html.lootibia-theme #app .hunt-loot li { border-color:#5f5a4d; }
html.lootibia-theme #app :is(.tibia-analyzer-summary,.tibia-analyzer-summary span,.tibia-analyzer-summary strong,.tibia-damage-rank) { color:#c7bfac; }
html.lootibia-theme #app .tibia-analyzer-window h3 { background:#3b3932; border-color:#6c6250; color:#d6c59d; }
html.lootibia-theme #app .tibia-damage-entry { background:#33332f; }
html.lootibia-theme #app .tibia-chat,
html.lootibia-theme #app .tibia-chat :is(.tibia-chat-tab,.tibia-chat-log) { color:#d5cdbb; }
html.lootibia-theme #app .tibia-chat-tabs { background:#383832a6; }
html.lootibia-theme #app .tibia-chat-compose { background:#2b2b28cf; border-color:#625e52; }
html.lootibia-theme #app .tibia-chat>p { background:#292927d9; color:#bcb5a7; }
html.lootibia-theme #app .tibia-online-chat-window { background:#242422a6; }

/* City and progression windows also exist while their commands are unavailable. */
html.lootibia-theme #app .tibia-training-modes section { background:#30302d; border-color:#666051; }
html.lootibia-theme #app :is(.tibia-training-modes,.arena-detail) h3 { background:#3b3931; border-color:#6b614c; color:#d8c59a; }
html.lootibia-theme #app :is(.arena-pits,.arena-metrics>div,.arena-rewards>div,.arena-footer,.arena-boss-details) { background:#30302d; border-color:#666051; }
html.lootibia-theme #app .arena-pits button b { color:#dcc394; border-color:#756647; }
html.lootibia-theme #app .arena-footer span { color:#bdb5a4; }
html.lootibia-theme #app .tibia-boss-board-row { background:#30302d; border-color:#666051; color:#d4cbb9; }
html.lootibia-theme #app :is(.weapon-family-choices,.weapon-window-recipe,.weapon-material,.weapon-window-status,.weapon-item-slot,.weapon-window-recipe [data-weapon-chances] li) { background:#30302d; border-color:#666051; color:#d4cbb9; }
html.lootibia-theme #app :is(.weapon-progression small,.weapon-window-help,.weapon-item-preview small,.weapon-material strong) { color:#c4bca9; }
html.lootibia-theme #app .weapon-window-footer { border-color:#615b4d; }
html.lootibia-theme #app .weapon-progression button+button::before { color:#c6a766; }
html.lootibia-theme #app .imbuement-sanctuary { background:#2c2c2a; color:#d4cbb9; }
html.lootibia-theme #app :is(.imbuement-gear-list,.imbuement-recipe-list) { border-color:#605c51; scrollbar-color:#79705d #272727; }
html.lootibia-theme #app :is(.imbuement-gear-icon,.imbuement-recipe-icon,.imbuement-gear-slots button.empty b) { background:#292927; border-color:#74674f; color:#d4c4a1; }
html.lootibia-theme #app .imbuement-gear-name strong { color:#dfd2b6; }
html.lootibia-theme #app .imbuement-gear-name small { color:#aaa18f!important; }
html.lootibia-theme #app :is(.imbuement-gear-slots button small,.imbuement-detail-head b) { color:#c4bca9; }
html.lootibia-theme #app .imbuement-window [data-imbuement-feedback] { background:#292927; border-color:#625d50; color:#c5bdab; }

/* Overrides for native selectors with their own priority or nested frames. */
html.lootibia-theme #app :is(.inventory-titlebar,.tibia-window-titlebar,.drawer-heading,.action-dialog-title) { background:linear-gradient(#46443e,#30302c)!important; border-color:#756b53!important; }
html.lootibia-theme #app .imbuement-window [data-imbuement-gold] { border-color:#756b53; }
html.lootibia-theme #app .hunt-panel { color:#d0c8b7; }
html.lootibia-theme #app .tibia-online-characters details { border-color:#615d51; }
html.lootibia-theme #app .tibia-online-characters summary { color:#d1bc91; }
html.lootibia-theme #app :is(.weapon-window-character,.weapon-item-placeholder,.dispatch-explanation) { color:#c6bcaa; }
html.lootibia-theme #app .tibia-ranking-filters button { border-color:#625e52!important; color:#d1c9b5!important; }
html.lootibia-theme #app .tibia-ranking-filters button[aria-pressed=true] { border-color:#c6a766!important; color:#ecd7a9!important; }
html.lootibia-theme #app .bestiary-layout-buttons button[aria-pressed=true] { border-color:#c6a766!important; color:#ecd7a9!important; }
html.lootibia-theme #app .blessings-summary b { color:#d5b97e; }
html.lootibia-theme #app .blessings-footer small { color:#bdb5a4; }

/* The quest journal is also reused by boss rooms and reward dialogs. */
html.lootibia-theme #app .quest-board { background:#2b2b29; border-color:#666051; color:#d0c8b7; scrollbar-color:#79705d #272727; }
html.lootibia-theme #app .quest-board-title { background:linear-gradient(#46443e,#30302c); color:#e6d7b4; }
html.lootibia-theme #app .quest-board-tabs { border-color:#615d51; }
html.lootibia-theme #app .quest-board-tabs>* { background:linear-gradient(#43413b,#2c2c29); border-color:#756b53; color:#cfc3ab; }
html.lootibia-theme #app .quest-board-tabs>b { background:#494235; border-color:#c6a766; color:#ecd7a9; box-shadow:inset 0 0 8px #c6a76622; }
html.lootibia-theme #app .quest-board :is(h2,h3) { color:#dac69a; }
html.lootibia-theme #app .quest-board h3:after { background:#615d51; }
html.lootibia-theme #app .quest-board :is(small,em,.quest-board-reward-hint,.quest-board-description,.quest-board-content>p) { color:#c0b7a4; }
html.lootibia-theme #app .quest-board :is(.quest-board-list-card,.quest-board-mission-card:not(.complete):not(.failed),.quest-board-open-room,.quest-board-check,.quest-board-result-message) { background:#30302d; border-color:#756b53; color:#d9c69e; }
html.lootibia-theme #app .quest-board :is(.quest-board-list-card,.quest-board-mission-card):hover { background:#494235; }
html.lootibia-theme #app .quest-board .quest-board-aside { border-color:#615d51; color:#d0c8b7; }
html.lootibia-theme #app .quest-board-large-icon { background:radial-gradient(#49473e,#292927); border-color:#756b53; }
html.lootibia-theme #app .quest-item-loading { color:#b3a78d; }
html.lootibia-theme #app .quest-board-rewards-mini>span { background:linear-gradient(#3c3b34,#292927); border-color:#756b53; color:#ded3ba; }
html.lootibia-theme #app .quest-board :is(.quest-board-back,.quest-board-primary,.quest-board-open-room button,.quest-board-invite button) { background:linear-gradient(#514936,#37352c); border-color:#9f895b; color:#ecdbb5; }
html.lootibia-theme #app .quest-board .quest-board-members { scrollbar-color:#79705d #272727; }

/* Review 11 Oct: use the same surface, accent and scrollbars in every nested pane. */
html.lootibia-theme #app :is(.tibia-menu-family-window,.tibia-market,.tibia-online-market,.tibia-menu-extras) *,
html.lootibia-theme .tibia-market-confirm { scrollbar-color:#797368 #262626; }
html.lootibia-theme #app ::-webkit-scrollbar { width:9px; height:9px; }
html.lootibia-theme #app ::-webkit-scrollbar-track { background:#262626; }
html.lootibia-theme #app ::-webkit-scrollbar-thumb { background:#797368; border:2px solid #262626; border-radius:5px; }
html.lootibia-theme #app ::-webkit-scrollbar-thumb:hover { background:var(--lt-gold); }
html.lootibia-theme #app .tibia-menu-extras button[data-top-grouped=true] { display:none; }
html.lootibia-theme #app .tibia-menu-tabs button[aria-selected=true] { background:linear-gradient(#514936,#39352a); color:var(--lt-gold); border-color:var(--lt-gold); box-shadow:inset 3px 0 var(--lt-gold); }
html.lootibia-theme #app :is(.hunt-organizer,.hunt-organizer-layout,.hunt-organizer-detail,.hunt-organizer-nav,.hunt-detail,.hunt-catalog,.hunt-catalog-list,.hunt-catalog-toolbar,.hunt-detail-banner,.hunt-pull-panel,.hunt-loot-panel,.arena-layout,.arena-detail) { background:#2c2c2c; border-color:var(--lt-line); color:var(--lt-text); }
html.lootibia-theme #app :is(.hunt-organizer,.arena-layout,.tibia-training-modes) :is(h2,h3,strong,b) { color:var(--lt-text); }
html.lootibia-theme #app :is(.hunt-organizer,.arena-layout,.tibia-training-modes) :is(small,label,p) { color:var(--lt-muted); }
html.lootibia-theme #app :is(.hunt-catalog-card,.hunt-organizer-loot-row,.arena-bosses button,.arena-rewards>div) { background:#353535; border-color:var(--lt-line); color:var(--lt-text); }
html.lootibia-theme #app :is(.arena-pits button,.arena-bosses button)[aria-pressed=true] { background:#494334; border-color:var(--lt-gold); color:var(--lt-gold); }
html.lootibia-theme #app .arena-pits strong { color:var(--lt-text); }
html.lootibia-theme #app .arena-heading h2 { color:var(--lt-gold); }
html.lootibia-theme #app :is(.hunt-organizer,.arena-layout) :is(input,button):focus-visible { outline-color:var(--lt-gold); }
html.lootibia-theme #app .hunt-organizer button:hover:not(:disabled) { background:linear-gradient(#514b3c,#37332b); border-color:var(--lt-gold); }
html.lootibia-theme #app .hunt-organizer button[aria-pressed=true] { background:linear-gradient(#514936,#39352a); border-color:var(--lt-gold); box-shadow:inset 2px 0 var(--lt-gold); color:var(--lt-gold); }
html.lootibia-theme #app :is(.hunt-catalog-search label,.hunt-creature-portrait,.hunt-catalog-card footer,.hunt-pull-creature small,.hunt-creature-count) { background:#333333; border-color:var(--lt-line); color:var(--lt-muted); }
html.lootibia-theme #app :is(.hunt-catalog-card:focus-within,.hunt-catalog-card:has(.hunt-catalog-open:hover),.hunt-catalog-search label:focus-within,.hunt-pull-creature:hover .hunt-creature-portrait) { border-color:var(--lt-gold); box-shadow:none; }
html.lootibia-theme #app :is(.hunt-organizer-loot-heading,[data-hunt-creature-info]) { color:var(--lt-muted); }
html.lootibia-theme #app .hunt-organizer h3 { background:#393831; border-color:#666051; color:var(--lt-text); }
html.lootibia-theme #app .hunt-organizer .hunt-detail-footer { border-color:var(--lt-line); }
html.lootibia-theme #app .arena-bosses canvas { width:48px; height:48px; object-fit:contain; }

/* Native tab pages share exact bounds; the hunt organizer no longer has a separate width cap. */
html.lootibia-theme #app .tibia-menu-family-window[data-top-menu-family=hunts] { box-sizing:border-box; padding:0 !important; gap:0; box-shadow:0 12px 40px #0009; width:min(1050px,calc(100vw - 180px)) !important; height:min(660px,calc(100dvh - 164px)); max-height:calc(100dvh - 164px) !important; }
html.lootibia-theme #app .tibia-menu-family-window[data-top-menu-family=hunts]>:is(.drawer-heading,.tibia-window-titlebar) { margin:0; box-sizing:border-box; }
html.lootibia-theme #app .tibia-menu-family-window[data-top-menu-family=hunts]>:is(.tibia-menu-family-body,.tibia-window-body) { border:0; box-sizing:border-box; width:100%; min-width:0; min-height:0; overflow:auto; }
html.lootibia-theme #app .tibia-menu-family-window[data-top-menu-family=hunts]>.tibia-menu-family-footer { box-sizing:border-box; height:44px; min-height:44px; flex:0 0 44px; padding:6px 10px; }
html.lootibia-theme #app .tibia-menu-family-window[data-top-menu-family=hunts] .arena-layout { min-height:0; }
html.lootibia-theme #app .tibia-menu-family-window[data-top-menu-family=hunts] .arena-detail { max-height:none; }
@media(max-width:900px) {
  html.lootibia-theme #app .tibia-menu-family-window[data-top-menu-family=hunts] { width:calc(100vw - 16px) !important; height:min(660px,calc(100dvh - 142px)); max-height:calc(100dvh - 142px) !important; }
}

/* Market, including confirmations mounted directly in document.body. */
html.lootibia-theme .tibia-market { --market-bg:var(--lt-panel); --market-panel:var(--lt-inset); --market-line:var(--lt-line); --market-text:var(--lt-text); --market-muted:var(--lt-muted); --market-blue:var(--lt-gold); --market-gold:var(--lt-gold); border-image:none; border:1px solid var(--lt-line); border-radius:3px; background:var(--lt-panel); color:var(--lt-text); }
html.lootibia-theme #app :is(.tibia-market__sectionbar strong,.tibia-market__featured,.tibia-market__source,.tibia-market__notice,.tibia-market__gold-balance,.tibia-market__title-counter,.tibia-market__box h3,.tibia-market th,.tibia-market__trade-panel) { border-color:var(--lt-line); background:#333333; color:var(--lt-text); box-shadow:none; }
html.lootibia-theme #app :is(.tibia-market__titlebar strong,.tibia-market__featured strong,.tibia-market__box h3,.tibia-market__gold,.tibia-market__scope button,.tibia-market__book-filter button) { color:var(--lt-gold); }
html.lootibia-theme #app :is(.tibia-market__titlebar span,.tibia-market__featured small,.tibia-market__item-count,.tibia-market__box label,.tibia-market__mobile-picker,.tibia-market__quote span,.tibia-market__fineprint,.tibia-market__search summary) { color:var(--lt-muted); }
html.lootibia-theme #app :is(.tibia-market__search,.tibia-market__box,.tibia-market__mobile-picker) :is(input,select,details) { border-color:var(--lt-line); background:var(--lt-inset); color:var(--lt-text); }
html.lootibia-theme #app .tibia-market input::placeholder { color:var(--lt-muted); }
html.lootibia-theme #app :is(.tibia-market__scope,.tibia-market__book-filter,.tibia-market__actions) button,
html.lootibia-theme #app :is(.tibia-market__trade-close,.tibia-market__primary,.tibia-market__search details button) { border:1px solid var(--lt-line); border-image:none; background:linear-gradient(#474747,#363636); color:var(--lt-text); box-shadow:none; }
html.lootibia-theme #app .tibia-market__item { color:var(--lt-text); border-color:var(--lt-soft); }
html.lootibia-theme #app .tibia-market td { border-color:var(--lt-soft); }
html.lootibia-theme #app .tibia-market td button { color:var(--lt-gold); }
html.lootibia-theme #app .tibia-market tbody tr:hover { background:#414141; }
html.lootibia-theme #app :is(.tibia-market__item,.tibia-market tbody tr).is-selected,
html.lootibia-theme #app .tibia-market :is(button[aria-pressed=true],.tibia-market__primary) { background:linear-gradient(#514936,#39352a); color:var(--lt-gold); border-color:var(--lt-gold); box-shadow:inset 2px 0 var(--lt-gold); }
html.lootibia-theme #app .tibia-market__item-heading h2 { color:var(--lt-text); }
html.lootibia-theme #app .tibia-market__item-icon.has-sprite { background:#262626; border-color:var(--lt-line); }
html.lootibia-theme #app .tibia-market__tabs button[aria-pressed=true] { border-bottom-color:var(--lt-gold); }
html.lootibia-theme #app .city-shop-window:has(.tibia-online-market:not([hidden])) { border:1px solid var(--lt-line); border-image:none; background:var(--lt-panel); }
html.lootibia-theme #app .city-shop-window .tibia-city-market-tabs button { border:1px solid var(--lt-line); border-image:none; background:linear-gradient(#474747,#363636); color:var(--lt-text); }
html.lootibia-theme #app .city-shop-window .tibia-city-market-tabs button[aria-selected=true] { background:#494334; border-color:var(--lt-gold); color:var(--lt-gold); box-shadow:inset 2px 0 var(--lt-gold); }
html.lootibia-theme .tibia-market-confirm { border:1px solid var(--lt-line); border-image:none; border-radius:4px; background:var(--lt-panel); color:var(--lt-text); }
html.lootibia-theme .tibia-market-confirm :is(header,footer) { background:#353535; border-color:var(--lt-line); color:var(--lt-text); }
html.lootibia-theme .tibia-market-confirm>small { color:var(--lt-muted); }
html.lootibia-theme .tibia-market-confirm button { border:1px solid var(--lt-line); border-image:none; background:linear-gradient(#474747,#363636); color:var(--lt-text); }
html.lootibia-theme .tibia-market-confirm [data-confirm-accept] { border-color:var(--lt-gold); background:#494334; color:var(--lt-gold); }
html.lootibia-theme .tibia-market-confirm button:focus-visible { outline-color:var(--lt-gold); }
html.lootibia-theme .tibia-market-confirm::backdrop { background:#080808bb; }

/* Keep native 32px background offsets; shrink the whole drawing inside the backpack tool. */
html.lootibia-theme #app .game-dock .dock-tools [data-open-inventory] { display:grid; place-items:center; padding:0; overflow:hidden; }
html.lootibia-theme #app .game-dock [data-bag-icon] { display:grid; place-items:center; width:26px; height:26px; }
html.lootibia-theme #app .game-dock [data-bag-icon] .item-sprite { width:32px; height:32px; margin:-3px; transform:scale(.75); transform-origin:center; }
html.lootibia-theme #app .quest-board-members>.empty { border-color:#615d51; color:#b3aa96; }
html.lootibia-theme #app .quest-board-idle { color:#b3aa96!important; }
html.lootibia-theme #app .quest-board-result { background:#292927; }
html.lootibia-theme #app .quest-start-countdown { background:#292927ed; border-color:#756b53; color:#d0c8b7; }
html.lootibia-theme #app .quest-board [data-quest-action=start]:disabled { background:#30302d; border-color:#615d51; color:#aaa38f; }

/* Imbuement equipment, recipes, payment and renewal all share the same palette.
   Material shortages, successful application and removal retain semantic colors. */
html.lootibia-theme #app .imbuement-gear { background:#33332f; border-color:#615d51; }
html.lootibia-theme #app .imbuement-gear.selected { border-color:#b59a62; }
html.lootibia-theme #app .imbuement-window :is(.imbuement-gear-slots,.imbuement-recipe-list) button { background:#292927!important; border-color:#756b53!important; color:#d4c4a1!important; box-shadow:none; }
html.lootibia-theme #app .imbuement-window :is(.imbuement-gear-slots,.imbuement-recipe-list) button[aria-pressed=true] { background:#494235!important; border-color:#c6a766!important; box-shadow:inset 0 0 0 1px #c6a76644; }
html.lootibia-theme #app :is(.imbuement-detail-head,.imbuement-recipe-list small,.imbuement-payment-title,.imbuement-chance,.imbuement-active-heading>span,.imbuement-auto-renew>label) { color:#d1c4a8; }
html.lootibia-theme #app :is(.imbuement-payment,.imbuement-active) { background:#292927; border-color:#615d51; }
html.lootibia-theme #app .inventory-window.imbuement-window :is(.imbuement-tiers,.imbuement-payment-modes,.imbuement-submit-actions) button { background:#39372f; color:#dfd0af; }
html.lootibia-theme #app .inventory-window.imbuement-window :is(.imbuement-tiers,.imbuement-payment-modes) button[aria-pressed=true] { background:#494235; box-shadow:inset 0 0 0 1px #c6a766,0 0 4px #c6a76633; }
html.lootibia-theme #app .imbuement-materials li { background:#292927; }
html.lootibia-theme #app .imbuement-protection { background:#33332f; border-color:#756b53; color:#d1c4a8; }
html.lootibia-theme #app .imbuement-window input { accent-color:#c6a766; }
html.lootibia-theme #app :is(.imbuement-payment-footer>small,.imbuement-active-actions>small,.imbuement-auto-renew-status.off,.imbuement-empty) { color:#b3aa96; }
html.lootibia-theme #app .imbuement-applied-card { background:#30302d; border-color:#756b53; }
html.lootibia-theme #app .imbuement-applied-card :is(strong,small) { color:#d1c4a8; }
html.lootibia-theme #app .imbuement-auto-renew-tooltip { background:#292927; border-color:#756b53; color:#d1c4a8; }
html.lootibia-theme #app .imbuement-auto-renew-tooltip>strong { color:#e4d4af; }
html.lootibia-theme #app .inventory-window.imbuement-window .imbuement-active-actions>button { background:#39332e; border-color:#756b53; }
html.lootibia-theme #app .imbuement-timebar { background:#242422; border-color:#615d51; }

/* Legacy frame sprites contain blue pixels even when border-color is neutral. */
html.lootibia-theme #app :is(.tibia-game-window,.tibia-hud-window,.inventory-window,.action-dialog-card,.tibia-menu-extras),
html.lootibia-theme #app :is(.tibia-game-window,.tibia-hud-window,.inventory-window,.action-dialog-card,.tibia-menu-extras) * { border-image:none!important; }
html.lootibia-theme #app :is(.bestiary-hero,.bestiary-card,.bestiary-phase) { border:1px solid #686357; border-radius:3px; box-shadow:inset 0 1px #ffffff09; }
html.lootibia-theme #app .bestiary-phase.is-current { border-color:#c6a766; }
html.lootibia-theme #app :is(.bestiary-phase>header,.bestiary-card h3,.bestiary-loot-group) { border-color:#615d51!important; }
html.lootibia-theme #app .bestiary-card[open] summary,
html.lootibia-theme #app .bestiary-kill-count { border-color:#615d51!important; }
html.lootibia-theme #app :is(.tibia-character-current,.tibia-chat-tabs,.weapon-window-character) { border-color:#615d51; }
html.lootibia-theme #app .hunt-creature-portrait { box-shadow:inset 0 0 0 1px #08080833; }
html.lootibia-theme #app :is(.prey-bonus,.prey-creature) { box-shadow:inset 0 1px 2px #08080866; }

/* City service popup sits above the auxiliary launcher instead of behind it. */
html.lootibia-theme #app .tibia-city-services-menu { z-index:430; background:#2c2c29; color:#d0c8b7; border:1px solid #a18b5a; border-radius:3px; box-shadow:0 8px 20px #0009; }
html.lootibia-theme #app .tibia-city-services-menu>strong { color:#dcc79b; }
html.lootibia-theme #app .tibia-city-services-menu>button { background:linear-gradient(#47453e,#34332d); border:1px solid #756b53; border-image:none; border-radius:3px; color:#dfd5c0; }
html.lootibia-theme #app .tibia-city-services-menu>button:hover:not(:disabled) { background:#494235; border-color:#c6a766; }
html.lootibia-theme #app .tibia-menu-extras button::after { color:#d0c8b7!important; }
html.lootibia-theme #app .tibia-menu-extras button:disabled::after { color:#aba493!important; }
html.lootibia-theme #app .dispatch-row { border-color:#615d51; }
html.lootibia-theme #app .dispatch-row small { color:#bdb5a4; }

/* Full native city views: selected recipes, Lady access and journal rooms. */
html.lootibia-theme #app .weapon-window-content h2 { color:#dac69a; }
html.lootibia-theme #app .weapon-window-introduction p { color:#c0b7a4; }
html.lootibia-theme #app :is(.weapon-family-choices,.weapon-progression) button { background:linear-gradient(#43413b,#2c2c29); border-color:#756b53; color:#d4cbb9; }
html.lootibia-theme #app :is(.weapon-family-choices,.weapon-progression) button[aria-pressed=true] { background:#494235; border-color:#c6a766; box-shadow:inset 0 0 0 1px #c6a76666; }
html.lootibia-theme #app .weapon-item-slot-large { border-color:#756b53; }
html.lootibia-theme #app .weapon-window-recipe>.weapon-primary-action { background:linear-gradient(#514936,#37352c); border-color:#9f895b; color:#ecdbb5; }
html.lootibia-theme #app .weapon-primary-action:hover:not(:disabled) { background:#5a4c32; border-color:#c6a766; }
html.lootibia-theme #app :is(.tibia-weapon-acquisition-window,.tibia-boss-board-window,.quest-board) :is(button,select,input):focus-visible { outline:2px solid #c6a766; outline-offset:2px; }
html.lootibia-theme #app :is(.lady-boss-access,.lady-boss-loot-item) { background:linear-gradient(#383832,#292927); border-color:#756b53; }
html.lootibia-theme #app .lady-boss-access-summary strong { color:#dac69a; }
html.lootibia-theme #app .lady-boss-access progress { accent-color:#c6a766; }
html.lootibia-theme #app .lady-boss-loot-item:hover { border-color:#c6a766; background:#494235; }
html.lootibia-theme #app .lady-boss-reward-item small { background:#292927cf; color:#ded3ba; }
html.lootibia-theme #app .tibia-lady-boss-board .lady-boss-consent { color:#c0b7a4; }
html.lootibia-theme #app .lady-boss-footer { background:#292927; border-color:#615d51; }
html.lootibia-theme #app .quest-board-invite input { background:#292927; border-color:#756b53; color:#ded3ba; }
/* Native crafting mounts its overlay directly on body, outside #app. */
html.lootibia-theme .umbral-craft-animation { background:#080807c9; }
html.lootibia-theme .umbral-craft-scene p { color:#d4cbb9; }
html.lootibia-theme .umbral-craft-scene button { background:linear-gradient(#514936,#37352c); border-color:#9f895b; color:#ecdbb5; }
html.lootibia-theme .umbral-craft-scene button:focus-visible { outline-color:#c6a766; }

/* Initial journey and transient notices · canonical Lootibia surfaces. */
html.lootibia-theme :is(.tibia-guided-tutorial,.tibia-tutorial-guide,.tibia-training-indicator) { background:var(--lt-panel); color:var(--lt-text); border:1px solid var(--lt-line); border-radius:3px; font-family:Tahoma,Arial,sans-serif; }
html.lootibia-theme :is(.tibia-guided-tutorial,.tibia-tutorial-guide) > :is(strong,small) { color:var(--lt-text); }
html.lootibia-theme :is(.tibia-guided-tutorial,.tibia-tutorial-guide) > small { color:var(--lt-gold); }
html.lootibia-theme :is(.tibia-guided-tutorial,.tibia-tutorial-guide,.tibia-training-indicator) button { background:var(--lt-raised); color:var(--lt-text); border:1px solid var(--lt-line); border-radius:3px; font-family:Tahoma,Arial,sans-serif; }
html.lootibia-theme :is(.tibia-guided-tutorial,.tibia-tutorial-guide,.tibia-training-indicator) button:focus-visible { outline:2px solid var(--lt-gold); outline-offset:2px; }
html.lootibia-theme .tibia-guided-tutorial [data-guide-next] { background:var(--lt-gold-dark); border-color:var(--lt-gold); }
html.lootibia-theme .tibia-guide-ring { border-color:var(--lt-gold); box-shadow:0 0 8px #c6a76670,inset 0 0 5px #c6a76640; }
html.lootibia-theme .tibia-guide-weapon [data-guide-weapon] { background:var(--lt-inset); border:1px solid var(--lt-line); }
html.lootibia-theme .tibia-guide-weapon [data-guide-weapon][aria-pressed=true] { background:var(--lt-raised); border:1px solid var(--lt-gold); box-shadow:inset 0 0 0 1px var(--lt-gold); }
html.lootibia-theme .tibia-guide-weapon [data-guide-weapon] strong { color:var(--lt-text); }
html.lootibia-theme .tibia-training-indicator { top:74px; }
html.lootibia-theme .tibia-training-indicator [data-training-travel] { color:var(--lt-muted); }
html.lootibia-theme .tibia-training-indicator progress { accent-color:var(--lt-gold); }
@media(max-width:900px) { html.lootibia-theme .tibia-training-indicator { top:126px; } }
html.lootibia-theme #app .modal-backdrop.vocation-modal { background:#000b; }
html.lootibia-theme #app .vocation-modal .modal-card.wide { background:var(--lt-panel); color:var(--lt-text); border:1px solid var(--lt-line); border-image:none; border-radius:3px; font-family:Tahoma,Arial,sans-serif; }
html.lootibia-theme #app .vocation-modal :is(h2,.vocation-card strong) { color:var(--lt-text); }
html.lootibia-theme #app .vocation-modal :is(.modal-card>p,.vocation-card p,footer) { color:var(--lt-muted); }
html.lootibia-theme #app .vocation-modal :is(.modal-card>small,.vocation-card small,.vocation-kit b,.vocation-kit em) { color:var(--lt-gold); }
html.lootibia-theme #app .vocation-modal .vocation-card { background:var(--lt-inset); color:var(--lt-text); border:1px solid var(--lt-line); border-radius:3px; }
html.lootibia-theme #app .vocation-modal .vocation-card:is(:hover,:focus-visible) { background:var(--lt-raised); border-color:var(--lt-gold); outline:2px solid var(--lt-gold); }
html.lootibia-theme #app .vocation-modal .vocation-weapon { background:var(--lt-bg); border-color:var(--lt-line); }
html.lootibia-theme #app .vocation-modal :is(.vocation-kit,footer) { border-color:var(--lt-line); }
html.lootibia-theme #app .vocation-modal .vocation-select { background:var(--lt-gold-dark); color:var(--lt-text); border:1px solid var(--lt-gold); border-image:none; border-radius:3px; }
/* Only empty placeholder art is desaturated; equipped item sprites keep their original colors. */
html.lootibia-theme #app [data-inventory-window] img.equipment-slot-placeholder { filter:grayscale(1); }
html.lootibia-theme #app :is(.party-feedback,[data-spell-aim-status]:not([data-tone=error]):not([data-tone=success]),[data-inventory-feedback]:not([data-tone=error]):not([data-tone=success])) { color:var(--lt-muted); }

/* Inventory interaction surfaces, including overlays outside the window frame. */
html.lootibia-theme .item-hover-comparison :is(.item-hover-card,.inventory-comparison) { background:var(--lt-panel); border-color:var(--lt-line); color:var(--lt-text); box-shadow:0 4px 16px #0009; }
html.lootibia-theme .item-hover-comparison .item-hover-card header strong,
html.lootibia-theme .item-hover-comparison .inventory-comparison>strong { color:var(--lt-gold); }
html.lootibia-theme .item-hover-comparison :is(.item-fact-muted,.item-fact-empty,.item-hover-prices>span,.inventory-comparison>small) { color:var(--lt-muted); }
html.lootibia-theme .item-hover-comparison :is(.item-fact-duration,.item-imbuement-facts,.item-fact-imbue small) { color:var(--lt-text); }
html.lootibia-theme .item-hover-comparison .item-hover-prices { border-color:var(--lt-line); }
html.lootibia-theme .inventory-context-menu { background:var(--lt-panel); border-color:var(--lt-line); color:var(--lt-text); box-shadow:0 4px 18px #0009; }
html.lootibia-theme .inventory-context-menu>strong { color:var(--lt-gold); border-color:var(--lt-line); }
html.lootibia-theme .inventory-context-menu :is(button,summary,label) { color:var(--lt-text); }
html.lootibia-theme .inventory-context-menu :is(button,summary) { background:transparent; border:0; box-shadow:none; }
html.lootibia-theme .inventory-context-menu :is(button:hover:not(:disabled),summary:hover,button:focus-visible,summary:focus-visible) { background:var(--lt-raised); color:var(--lt-text); box-shadow:inset 2px 0 var(--lt-gold); outline:1px solid var(--lt-gold); outline-offset:-1px; }
html.lootibia-theme .inventory-context-menu button:disabled { color:var(--lt-muted); }
html.lootibia-theme .inventory-context-menu summary span { color:var(--lt-gold); }
html.lootibia-theme .inventory-context-menu :is(small,.item-menu-submenu small) { color:var(--lt-muted); border-color:var(--lt-line); }
html.lootibia-theme .inventory-context-menu .item-menu-submenu>div { background:var(--lt-panel); border-color:var(--lt-line); }
html.lootibia-theme .inventory-context-menu .item-menu-submenu form { border-color:var(--lt-line); }
html.lootibia-theme :is(.inventory-context-menu,.inventory-quantity-dialog) :is(input,select) { background:var(--lt-inset); border-color:var(--lt-line); color:var(--lt-text); accent-color:var(--lt-gold); }
html.lootibia-theme :is(.inventory-context-menu,.inventory-quantity-dialog) :is(input,select):focus-visible { outline:1px solid var(--lt-gold); outline-offset:1px; }
html.lootibia-theme .is-inventory-drop-target { background:var(--lt-inset) !important; outline:1px solid var(--lt-gold); outline-offset:-2px; }
html.lootibia-theme .inventory-quantity-dialog { background:var(--lt-panel); border-color:var(--lt-line); color:var(--lt-text); box-shadow:0 8px 24px #0009; }
html.lootibia-theme .inventory-quantity-dialog h3 { color:var(--lt-gold); }
html.lootibia-theme .inventory-quantity-dialog :is(p,button) { color:var(--lt-text); }
html.lootibia-theme .inventory-quantity-dialog button { background:var(--lt-raised); border-color:var(--lt-line); }
html.lootibia-theme .inventory-quantity-dialog button:not(:disabled):is(:hover,:focus-visible) { background:var(--lt-raised); border-color:var(--lt-gold); outline-color:var(--lt-gold); }
html.lootibia-theme .inventory-quantity-dialog [data-move-confirm] { background:var(--lt-gold-dark); border-color:var(--lt-gold); }

/* Item hover stands out from the lighter window surfaces. */
html.lootibia-theme .item-hover-comparison :is(.item-hover-card,.inventory-comparison) { background:color-mix(in srgb,var(--lt-bg) 60%,black); box-shadow:0 6px 20px #000b; }
html.lootibia-theme .item-hover-comparison .item-hover-prices { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:12px; padding:7px 0 0; }
html.lootibia-theme .item-hover-comparison .item-hover-prices>p { grid-column:1; min-width:0; }
html.lootibia-theme .item-hover-comparison .item-hover-prices>span { position:static; grid-column:2; grid-row:1 / span 2; align-self:end; margin:1px 0; font:inherit; white-space:nowrap; }
