/* Web182 3090 (UI items 14..21 練功／輔助 look): the approved preview hunt-safety-game-preview.css (quick-original-r130, SHA 6f8ca551155a19b6…; it holds 246 of the 247 rules of candidate hunt-safety-direct-use settings-max.css plus the later r125 rules); preview-only rules (candidate bar, demo actor, the preview portrait above the settings) left out; the settings window background /hunt-safety-popup-preview.png is shipped as assets/ui-r125/hunt-safety-popup.png (same bytes, SHA 79293287a9f7cb3a…); other rules unchanged; ported by tools/port_css.sh: #stage -> the game stage, preview-only asset URLs -> byte-identical formal files, !important declarations -> @layer web182-ui */
@layer web182-ui-run,web182-ui-count,web182-ui-trade,web182-ui,lineageNativeOverrides;
/* Settings only. Width/height are supplied in unscaled game coordinates. */
.safety-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.direct-use-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px}
.direct-use-list button{display:flex;align-items:center;justify-content:space-between;gap:8px}
.direct-use-list img{width:32px;height:32px;object-fit:contain;image-rendering:pixelated}
/* Compact inventory-style item cells: name and price live in the bag tooltip. */
:is(#stage,.game) #dialog.m-settings-max .direct-use-list{grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px}
:is(#stage,.game) #dialog.m-settings-max .direct-use-item{display:flex;align-items:center;gap:8px;padding:8px;border:1px solid #625438;background:#131713}
:is(#stage,.game) #dialog.m-settings-max .direct-use-item .settings-item-icon{width:44px;min-width:44px;height:44px;padding:5px;display:grid;place-items:center;background:#101310}
:is(#stage,.game) #dialog.m-settings-max .direct-use-item .safety-switch{flex:1;padding:6px;min-width:36px}
/* Icon-only supply controls. Labels remain available on hover and to assistive tech. */
:is(#stage#stage#stage,.game) #dialog.m-settings-max .direct-use-list{display:flex;flex-wrap:wrap;gap:18px 24px;align-content:flex-start;padding:12px 0}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .direct-use-item{display:flex;gap:10px;padding:0;border:0;background:none;box-shadow:none}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide]{position:relative;display:block;flex:none;width:52px;min-width:52px;height:28px;touch-action:pan-y;user-select:none;cursor:pointer}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide] .slide-thumb{position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:linear-gradient(#e0dbcc,#8c897e);box-shadow:0 1px 3px #000a;transition:transform .16s ease}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide][aria-checked=true] .slide-thumb{transform:translateX(24px);background:linear-gradient(#fff1bb,#c5a451)}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide]:disabled{opacity:.35;cursor:default}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide]:focus-visible{outline:2px solid #f5d487;outline-offset:3px}
:is(#stage,.game) #dialog.m-settings-max .reserve-icon{display:flex;gap:8px;align-items:center}
:is(#stage,.game) #dialog.m-settings-max .reserve-icon:before{content:'';width:18px;height:18px;border:2px solid #cbb276;border-radius:50%;box-shadow:inset 0 0 0 3px #66552a;background:#ac8d44}
:is(#stage,.game) #dialog.m-settings-max .mw-head{flex:0 0 auto}
:is(#stage,.game) #dialog.m-settings-max .mw-body{min-height:0;flex:1;overflow:auto}
/* Scale the complete original bitmap once. No border slicing or tiling. */
/* Original glass-and-metal switch, drawn in CSS at display resolution. */
:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide]{transition:background .18s ease,border-color .18s ease,box-shadow .18s ease}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide]::before{content:'';position:absolute;left:10px;right:10px;top:16px;height:2px;background:#69747855;box-shadow:0 1px #0008;pointer-events:none}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide] .slide-thumb{position:absolute;left:3px;top:3px;width:28px;height:28px;border-radius:9px;box-sizing:border-box;border:1px solid #c2b393;background:linear-gradient(145deg,#e4ddcc 0%,#aca996 47%,#707b78 50%,#aab4ad 100%);box-shadow:inset 0 1px 0 #fff9,inset 0 -1px 1px #263237,0 2px 4px #0009;transform:translateX(0);transition:transform .18s ease,background .18s ease}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide] .slide-thumb::before{content:'';position:absolute;inset:7px;transform:rotate(45deg);border:1px solid #596b6c;background:linear-gradient(135deg,#aebfbc,#536366);box-shadow:inset 1px 1px #e3e7d955;pointer-events:none}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide][aria-checked=true]::before{background:#8ee8ff;box-shadow:0 0 5px #4bcaff99}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide][aria-checked=true] .slide-thumb{transform:translateX(30px);border-color:#e1d2a7;background:linear-gradient(145deg,#effbff 0%,#a4c8ce 47%,#668f9a 50%,#b4dbe1 100%)}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide][aria-checked=true] .slide-thumb::before{border-color:#b7f0ff;background:linear-gradient(135deg,#e8ffff,#6fe2ff 48%,#2197bb);box-shadow:0 0 6px #a0edffaa,inset 1px 1px #fff9}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide]:disabled{cursor:default}
/* Complete custom switch housing: a continuous rounded metal rim and inset glass rail. */
:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide]::before{content:'';position:absolute;left:4px;right:4px;top:4px;bottom:4px;height:auto;border:1px solid #050b0dcc;border-radius:18px;background:linear-gradient(180deg,#0b1116,#1d292e);box-shadow:inset 0 2px 4px #0008,0 1px #d8e5e518;pointer-events:none}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide] .slide-thumb{left:4px;top:4px;width:28px;height:28px;border-radius:50%;border:1px solid #d6c79f;background:radial-gradient(circle at 34% 25%,#fff7df 0%,#d2c5a6 38%,#9b927b 72%,#625e51 100%);box-shadow:inset 0 1px 1px #fff9,0 2px 4px #000b;transform:translateX(0)}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide] .slide-thumb::before{inset:8px;transform:none;border-radius:50%;border:1px solid #a99f83;background:linear-gradient(#c4baa0,#e5dac0);box-shadow:inset 0 1px 2px #3d372a55}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide][aria-checked=true]::before{background:linear-gradient(180deg,#234d60,#33788c);border-color:#142a34;box-shadow:inset 0 2px 4px #07151a88,0 1px #d8e5e522}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide][aria-checked=true] .slide-thumb{transform:translateX(36px);border-color:#d6e8e8;background:radial-gradient(circle at 34% 25%,#fff 0%,#dbf5f8 38%,#92bec9 72%,#4f7b8b 100%)}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide][aria-checked=true] .slide-thumb::before{border-color:#b9f0fb;background:radial-gradient(circle at 35% 28%,#f6ffff,#8fe3f5 55%,#42a3bf);box-shadow:0 0 5px #a1edfa55,inset 0 1px #fff9}
/* Hide scrollbar chrome inside settings while retaining wheel, touch and keyboard scrolling. */
/* Use the panel width to keep routine settings on one screen. */
:is(#stage#stage#stage,.game) #dialog.m-settings-max .assist-home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .assist-home-group{display:flex;flex-direction:column;gap:8px;min-width:0}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .assist-home-group .assist-percent-control{align-items:center;min-width:0}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .assist-percent-slider{flex:1;min-width:0}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .assist-percent-value{min-width:40px;text-align:right}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .assist-home-help{float:right;margin-top:3px}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .assist-status{font-size:12px;line-height:1.3}
@media(max-width:420px){:is(#stage#stage#stage,.game) #dialog.m-settings-max .assist-home-grid{gap:10px}}
/* Three explicit escape choices with their existing item/skill artwork. */
:is(#stage#stage#stage,.game) #dialog.m-settings-max .escape-methods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:4px 0 14px}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .escape-method{align-items:center;gap:8px;min-width:0;text-align:left}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .escape-method-icon{width:32px;height:32px;object-fit:contain;flex:none;image-rendering:pixelated}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .escape-method-name{font-size:14px;line-height:1.25;white-space:normal}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .escape-method-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .escape-condition{gap:2px 8px;min-width:0}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .escape-condition-label{grid-column:1/-1}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .escape-condition-range{width:100%;min-width:0;height:32px;margin:0;accent-color:#bdac77}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .escape-condition-value{text-align:right;align-self:center}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .escape-method-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
/* Healing method and its icons share one row; labels remain accessible. */
:is(#stage#stage#stage,.game) #dialog.m-settings-max .assist-heal-modes{align-items:center}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .assist-heal-picks{align-items:center;flex-wrap:wrap}
/* All settings artwork is a single scaled image. Icon controls keep their existing dimensions. */
/* Restore the original icon-frame palette: Alpha idle, original blue selected/pressed. No tint or slicing. */
/* Escape choices use the same original-color artwork without border slicing. */
:is(#stage#stage#stage,.game) #dialog.m-settings-max .escape-methods{grid-template-columns:repeat(4,minmax(0,1fr))}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .escape-method{gap:6px}
@media(max-width:480px){:is(#stage#stage#stage,.game) #dialog.m-settings-max .escape-method-name{font-size:12px}}
/* Escape options: artwork only, no frame, plate or persistent caption. */
:is(#stage#stage#stage,.game) #dialog.m-settings-max .escape-methods{display:flex;flex-wrap:wrap;gap:20px;align-items:center;margin:4px 0 12px}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button.escape-method,
:is(#stage#stage#stage,.game) #dialog.m-settings-max button.escape-method:is([aria-pressed=true],:active,:disabled){place-items:center}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .escape-method-icon{width:36px;height:36px;object-fit:contain;image-rendering:pixelated;transition:filter .15s ease,opacity .15s ease}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button.escape-method[aria-pressed=false] .escape-method-icon{opacity:.7}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button.escape-method[aria-pressed=true] .escape-method-icon{opacity:1;filter:drop-shadow(0 0 3px #f3d381)}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button.escape-method:focus-visible .escape-method-icon{filter:drop-shadow(0 0 4px #b5eaff)}
/* Learned/available choices first, selected conditions underneath; no empty-slot grid. */
:is(#stage#stage#stage,.game) #dialog.m-settings-max .helper-learned-icons{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:6px 0}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button.helper-learned-icon,:is(#stage#stage#stage,.game) #dialog.m-settings-max button.helper-learned-icon:is([aria-pressed=true],:active){place-items:center}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .helper-learned-icon img{width:32px;height:32px;object-fit:contain;image-rendering:pixelated}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .helper-learned-icon[aria-pressed=true] img{filter:drop-shadow(0 0 3px #ead092)}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .helper-learned-icon[data-enabled=true] img{opacity:1}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .helper-inline-fields{display:grid;grid-template-columns:minmax(160px,1fr) minmax(160px,1fr);gap:6px 14px;align-items:start}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .helper-condition-select{width:100%;min-height:38px;font:inherit;color:#e8dec7;background:#121d20;border:1px solid #7c6d4d}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .helper-inline-range{grid-template-columns:70px minmax(60px,1fr) 40px;gap:5px;align-items:center}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .helper-inline-range input{width:100%;min-width:0;height:28px;accent-color:#cbb27b}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .helper-icon-advanced{grid-column:1/-1}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .helper-icon-advanced summary{cursor:pointer;color:#bcb6a5;font-size:12px}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .helper-message:empty{display:none}
/* Selection opens its conditions below the icons; no settings are exposed before a choice. */
:is(#stage#stage#stage,.game) #dialog.m-settings-max .helper-inline-fields:not([hidden]){margin-top:8px;padding-top:6px}
/* Compact shared actions for every assist tab, next to Close. */
/* Selected helper icon uses a real sliding enable switch; conditions appear when enabled. */
:is(#stage#stage#stage,.game) #dialog.m-settings-max .helper-enable-switch{align-self:start;justify-self:start}
/* Each selected magic owns its trigger and threshold, editable even while disabled. */
:is(#stage#stage#stage,.game) #dialog.m-settings-max .helper-condition-row{flex-wrap:wrap;gap:5px;align-items:center;grid-column:1/-1}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max .helper-condition-option{white-space:nowrap}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .helper-condition-option[aria-pressed=true]{outline-offset:-2px}
/* Compact switch proportion matched to 32px potion art. */
:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide]::before{left:3px;right:3px;top:3px;bottom:3px;border-radius:12px}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide] .slide-thumb{left:3px;top:3px;width:18px;height:18px;transform:translateX(0)}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide] .slide-thumb::before{inset:5px}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide][aria-checked=true] .slide-thumb{transform:translateX(22px)}
/* Enabled helper icons show a check; double click/tap toggles. */
:is(#stage#stage#stage,.game) #dialog.m-settings-max .settings-enabled-check{position:absolute;right:-2px;bottom:0;width:18px;height:18px;display:grid;place-items:center;border-radius:50%;color:#efffca;background:#335622;font:bold 15px/18px sans-serif;text-shadow:0 1px #000;box-shadow:0 0 0 1px #a9c67b;pointer-events:none}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .helper-learned-icon[data-double-check][aria-pressed=true] img{filter:drop-shadow(0 0 3px #e4cf83)}
/* Align teleport rows and keep the timing editor in a compact floating panel. */
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-idle-teleport-toggle{display:flex;align-items:center;gap:5px;margin:0;min-height:30px}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max button.hunt-idle-text{text-align:left;cursor:pointer}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-idle-overlay{position:absolute;inset:0;z-index:30;display:grid;place-items:center;background:#0005;padding:14px;box-sizing:border-box}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-idle-popup{width:min(360px,100%);box-sizing:border-box;border:1px solid #a38c5b;border-radius:8px;background:linear-gradient(#20292c,#11191c);box-shadow:0 8px 24px #0009;overflow:hidden}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-idle-popup-head,:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-idle-popup-body{box-sizing:border-box;width:100%;margin:0;padding:12px 14px}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-idle-popup-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #75613f}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-idle-popup-title{margin:0;font-size:15px;font-weight:normal}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max button.hunt-idle-popup-close{min-width:48px}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-idle-popup-body .hunt-teleport-idle{flex-direction:column;align-items:stretch;gap:10px;width:100%;box-sizing:border-box}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-idle-popup-body input{width:100%;min-width:0;box-sizing:border-box;margin:0}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-settings-panel>label:has(input[type=checkbox]){display:flex;align-items:center;gap:5px;min-height:30px;margin:0}
:is(#stage#stage#stage,.game) #dialog.m-settings-max :is(.hunt-idle-teleport-toggle,.hunt-settings-panel>label)>input[type=checkbox]{flex:0 0 auto;margin:3px 3px 3px 4px}
/* Four hunt options in an aligned 2 × 2 grid, with boss beside idle teleport. */
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-general-toggles{box-sizing:border-box;align-items:center}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-general-toggles>:is(label,.hunt-idle-teleport-toggle){min-width:0;box-sizing:border-box;font-size:14px}
/* Spell settings appear only inside the selected icon's floating editor. */
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-magic-popup{width:min(440px,100%)}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-magic-popup-body{display:flex;flex-direction:column;gap:14px}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-magic-popup-body>.hunt-magic-mp{flex-wrap:wrap;align-items:center;gap:7px;width:100%;margin:0;padding:0;box-sizing:border-box}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-magic-popup-body .hunt-magic-every{flex-direction:column;align-items:stretch}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-magic-popup-body input[type=number]{width:68px;min-width:68px;max-width:90px;box-sizing:border-box}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-magic-popup-title{font-size:14px}
/* r36: two route modes, then three independent hunting areas. */
:is(#stage#stage#stage,.game) #dialog.m-settings-max #hunt-route-panel>.hunt-route-row{justify-content:center;gap:0}
:is(#stage#stage#stage,.game) #dialog.m-settings-max #hunt-route-panel .hunt-mode{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;width:100%;max-width:580px}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-route-mode-hint{font-size:13px;line-height:1.7;text-align:center;margin:12px 0}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-route-popup{width:min(580px,100%);max-height:100%;overflow:auto}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-route-popup-body{padding:12px 14px;display:flex;flex-direction:column;gap:10px}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-route-popup .hunt-route-slots{margin:0;padding:0;border:0;width:100%}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-route-popup .hunt-route-slots>p:first-child{font-size:13px;margin:0 0 8px}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-route-popup .hunt-route-choices{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-route-popup .hunt-route-choices>button{white-space:pre-line;line-height:1.6;box-sizing:border-box}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-route-popup .hunt-route-choices>button[aria-checked=true]{outline:2px solid #e9ca7c;outline-offset:1px}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-route-popup .hunt-route-name{align-items:center;gap:10px;margin:14px 0 8px}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-route-popup .hunt-route-name input{flex:1;min-width:0}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-route-popup .hunt-route-meta{font-size:13px;margin:6px 0}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-route-popup small{display:block;font-size:11px;line-height:1.5;opacity:.8}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-route-popup .hunt-route-info{font-size:12px;line-height:1.5;margin:0}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-route-popup .hunt-record{align-self:flex-end}
/* Keep all three areas and recording action visible without a scroll. */
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max .hunt-route-popup{overflow:visible;max-height:none}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max .hunt-route-popup .hunt-idle-popup-head{padding:7px 12px;min-height:0}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max .hunt-route-popup .hunt-idle-popup-title{font-size:15px;margin:0}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max .hunt-route-popup-body{padding:9px 12px;gap:6px}
:is(#stage,.game) .route-recording-badge{position:absolute;z-index:85;transform:translate(-50%,-100%);display:flex;align-items:center;justify-content:center;gap:6px;min-width:94px;min-height:32px;padding:6px 10px;border:1px solid #ff6969;border-radius:18px;background:rgba(43,7,9,.92);color:#fff1eb;font: bold 12px/1.2 'Microsoft JhengHei',sans-serif;box-shadow:0 0 12px #e62a3560;pointer-events:auto;touch-action:none;cursor:pointer;white-space:nowrap}
:is(#stage,.game) .route-recording-dot{width:9px;height:9px;flex:none;border-radius:50%;background:#ff3b46;box-shadow:0 0 6px #ff4c55;animation:route-record-pulse 1.1s ease-in-out infinite}
:is(#stage,.game) .route-recording-stop{width:9px;height:9px;flex:none;border-radius:1px;background:#fff1eb;margin-left:3px}
@keyframes route-record-pulse{50%{opacity:.35;transform:scale(.72)}}
@media(prefers-reduced-motion:reduce){:is(#stage,.game) .route-recording-dot{animation:none}}
/* Integrated automation settings: always-visible blue destinations. */
/* A single settings entry replaces the three side shortcuts. */
.automation-dock.unified-settings-dock-root .unified-settings-dock{position:absolute;right:4px;top:auto;bottom:58px;width:58px;height:64px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;pointer-events:auto;cursor:pointer;touch-action:manipulation}
.unified-settings-dock img{display:block;width:52px;height:52px;object-fit:contain;filter:drop-shadow(0 0 3px #83c9e533);transition:filter .15s,transform .15s;pointer-events:none}
.unified-settings-dock span{color:#e3ded2;font:11px/12px 'Microsoft JhengHei',sans-serif;text-shadow:0 1px 2px #000,0 0 3px #000;pointer-events:none}
.unified-settings-dock:hover img,.unified-settings-dock:focus-visible img{filter:drop-shadow(0 0 5px #9bdfff99)}
.unified-settings-dock:active img{transform:scale(.92)}
/* r44: use the verified new trash/shop artwork as the shared settings shell. */
/* r46: restore the original trash desktop size; all automation settings share it. */
/* Keep the always-visible HP/MP portrait clear of the restored window header. */
/* r47: enlarge the complete window and its controls together, within the game viewport. */
/* Active automation: independent blue/yellow/red waves, shared slow gear. */
.unified-settings-dock{isolation:isolate}
.unified-settings-dock img{position:relative;z-index:1;transform-origin:center;animation:settings-gear-turn 18s linear infinite;animation-play-state:paused}
.unified-settings-dock.is-running img{animation-play-state:running;filter:drop-shadow(0 0 5px #d6e8ef80)}
.unified-settings-dock .settings-running-wave{position:absolute;left:50%;top:50%;width:42px;height:42px;box-sizing:border-box;border:2px solid var(--wave-color);border-radius:50%;background:none;box-shadow:0 0 8px var(--wave-color),inset 0 0 4px var(--wave-color);pointer-events:none;z-index:0;opacity:0;transform:translate(-50%,-50%) scale(.7);animation:none}
.unified-settings-dock .settings-wave-hunt{--wave-color:#65caff}
.unified-settings-dock .settings-wave-assist{--wave-color:#ffdb55}
.unified-settings-dock .settings-wave-trash{--wave-color:#ff5d69}
.unified-settings-dock.is-hunt-running .settings-wave-hunt,.unified-settings-dock.is-assist-running .settings-wave-assist,.unified-settings-dock.is-trash-running .settings-wave-trash{animation:settings-status-wave 3s ease-out infinite;animation-delay:var(--wave-delay)}
@keyframes settings-status-wave{0%{opacity:0;transform:translate(-50%,-50%) scale(.65)}15%{opacity:.85}100%{opacity:0;transform:translate(-50%,-50%) scale(1.9)}}
@keyframes settings-gear-turn{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.unified-settings-dock.is-hunt-running .settings-wave-hunt.wave-first{opacity:.55;transform:translate(-50%,-50%) scale(1.12)}
.unified-settings-dock.is-assist-running .settings-wave-assist.wave-first{opacity:.55;transform:translate(-50%,-50%) scale(1.35)}
.unified-settings-dock.is-trash-running .settings-wave-trash.wave-first{opacity:.55;transform:translate(-50%,-50%) scale(1.58)}}
/* r54: lower assist tabs match the compact category buttons, using whole red artwork. */
/* r55: compact gold healing controls; item artwork keeps its native colors. */
/* r56: start/stop at the lower right; save and close remain in the header. */
/* r58: save actions use green; retain compact size and header position. */
/* r59: category buttons lead the header; retain an accessible dialog title. */
/* r60: highlight the currently selected interface without changing button size. */
/* r61: selected tabs/options share the category glow; keep original artwork/colors. */
/* r62: compact companion switches match the other 76 x 30 controls. */
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max .pet-heal-threshold{display:flex;align-items:center;gap:12px;margin:12px 0}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max .pet-heal-threshold input{flex:1;min-width:60px}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max .pet-heal-threshold output{min-width:40px;text-align:right}
/* r63: original potion artwork, one checked choice beside pet healing. */
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max .pet-heal-options{display:flex;align-items:center;gap:8px;margin:6px 0}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max .pet-heal-potions{display:flex;align-items:center;gap:5px}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max #dialogbody button.pet-potion-choice{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max .pet-potion-choice img{display:block;width:30px;height:30px;object-fit:contain}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max .pet-potion-check{position:absolute;right:-2px;bottom:-2px;font:bold 18px/20px Arial,sans-serif;color:#ffe68f;text-shadow:0 1px 2px #000,0 0 3px #000;pointer-events:none}
/* r67: remove pointer-focus orange rectangle around native checkboxes. */
@layer web182-ui{
:is(#stage#stage#stage,.game) #dialog.m-settings-max[open]{display:flex!important;flex-direction:column!important;box-sizing:border-box!important;width:var(--settings-w)!important;height:var(--settings-h)!important;max-width:none!important;max-height:none!important;left:8px!important;top:8px!important;right:auto!important;bottom:auto!important;margin:0!important;transform:none!important;padding:10px!important;background:#0a0d10e8 url('/assets/ui-r125/hunt-safety-popup.png') center/100% 100% no-repeat!important;border:1px solid #a28c53!important;color:#e6decb!important;border-radius:0!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .dialoghead{flex:0 0 auto!important;background:#141814!important;border:0!important;color:#f1dfad!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max #dialogbody{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;width:100%!important;height:auto!important;box-sizing:border-box!important;padding:8px!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max :is(.assist-settings,.hunt-form){height:100%!important;max-height:none!important;min-height:0!important;display:flex!important;flex-direction:column!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max :is(.assist-body,.hunt-settings-body){flex:1 1 auto!important;min-height:0!important;overflow:auto!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max :is(.assist-footer,.assist-tabbar,.hunt-settings-tabs){flex:0 0 auto!important;position:static!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button{min-height:36px!important;border-radius:0!important;color:#e5d4a4!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .safety-switch[aria-pressed=true]{box-shadow:inset 0 0 0 1px #d4bb72!important;color:#fff0b8!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-settings-panel:not([hidden]){flex:1 1 auto!important;min-height:0!important;overflow:auto!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max [hidden]{display:none!important}
:is(#stage,.game) .pc-item-tooltip{z-index:500!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .settings-item-icon{border:0!important;background:none!important;box-shadow:none!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide]{min-height:28px!important;padding:0!important;border-radius:18px!important;border:1px solid #74654a!important;background:#282b29!important;box-shadow:inset 0 2px 5px #0008!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide][aria-checked=true]{background:#71602e!important;border-color:#cdb16a!important}
@media(prefers-reduced-motion:reduce){.slide-thumb{transition:none!important}}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button:not([data-slide]):not(.settings-item-icon):not(.mw-close):not(#close):not(:has(img)){min-height:46px!important;padding:8px 14px!important;border:0!important;border-image:none!important;background-image:var(--lm-blue,url('/assets/lineagem-common/Btn_Blue_Normal_P.png'))!important;background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important;background-color:transparent!important;box-shadow:none!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button:not([data-slide]):not(.settings-item-icon):not(.mw-close):not(#close):not(:has(img)):active:not(:disabled){border-image:none!important;background-image:var(--lm-blue-down,url('/assets/lineagem-common/Btn_Blue_Pressed.png'))!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button:not([data-slide]):not(.settings-item-icon):not(.mw-close):not(#close):not(:has(img)):disabled{border-image:none!important;background-image:var(--lm-disabled,url('/assets/lineagem-common/Btn_Disabled.png'))!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide]{width:66px!important;min-width:66px!important;height:36px!important;min-height:36px!important;border:1px solid #8c7b55!important;border-image:none!important;border-radius:12px!important;padding:0!important;background:linear-gradient(180deg,#253034e6,#10191ce8)!important;box-shadow:inset 0 1px 0 #dcebf022,inset 0 -2px 5px #0008,0 2px 4px #0006!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide][aria-checked=true]{border-color:#c6b27c!important;background:linear-gradient(180deg,#2c5967e8,#163440eb)!important;box-shadow:inset 0 1px #c5efff44,inset 0 0 10px #66cfee25,0 0 6px #70cbe322!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide]:focus-visible{outline:2px solid #a3e4fa!important;outline-offset:3px!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide]:disabled{opacity:.35!important;filter:grayscale(.6)!important}
@media(prefers-reduced-motion:reduce){:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide],:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide] .slide-thumb{transition:none!important}}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide]{box-sizing:border-box!important;width:74px!important;min-width:74px!important;height:38px!important;min-height:38px!important;border:1px solid transparent!important;border-radius:22px!important;border-image:none!important;background:linear-gradient(180deg,#202c30,#101719) padding-box,linear-gradient(145deg,#e0c895 0%,#8e7950 32%,#403b2e 64%,#a58d5c 100%) border-box!important;box-shadow:0 2px 5px #0006,inset 0 1px #ffffff12!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide][aria-checked=true]{border-color:transparent!important;background:linear-gradient(180deg,#283b42,#13242b) padding-box,linear-gradient(145deg,#f0d7a0,#ae9260 37%,#68583c 65%,#d1b37b) border-box!important;box-shadow:0 2px 5px #0006,0 0 8px #7dcde118,inset 0 1px #ffffff18!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max,
:is(#stage#stage#stage,.game) #dialog.m-settings-max *{scrollbar-width:none!important;-ms-overflow-style:none!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max::-webkit-scrollbar,
:is(#stage#stage#stage,.game) #dialog.m-settings-max *::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max :is(.assist-settings,.hunt-form){gap:5px!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max #dialogbody{padding:4px 8px!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .assist-panel{padding:3px 0!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .assist-home-group .assist-percent-row{display:grid!important;grid-template-columns:1fr!important;gap:2px!important;margin:0!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .assist-home-group .assist-percent-control{display:flex!important;gap:8px!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .assist-percent-slider{height:28px!important;margin:0!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .assist-home-help{width:28px!important;min-height:24px!important;height:24px!important;padding:0!important;border:0!important;border-image:none!important;background:none!important;color:#d6c18a!important;font-size:18px!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .assist-status{margin:0!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .assist-stage-head{gap:6px!important;margin:0 0 4px!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .assist-stage{padding:4px 0!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .assist-row{margin:2px 0!important;gap:6px!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .assist-hint{margin:2px 0!important;line-height:1.35!important;font-size:12px!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .direct-use-list{padding:5px 0!important;gap:12px 20px!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .escape-method{display:flex!important;min-height:56px!important;padding:8px 10px!important;border:1px solid #776843!important;border-image:none!important;background:linear-gradient(#182426d9,#0e1719df)!important;color:#d8d9cf!important;box-shadow:none!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .escape-method[aria-pressed=true]{border-color:#d5bd7b!important;background:linear-gradient(#27404be6,#182b33ed)!important;box-shadow:inset 0 0 0 1px #c7aa5f40!important;color:#ffedbe!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .escape-condition{display:grid!important;grid-template-columns:1fr 42px!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .assist-heal-inline{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:6px!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .assist-heal-modes{display:flex!important;flex:0 0 auto!important;gap:4px!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .assist-heal-picks{display:flex!important;flex:0 1 auto!important;gap:4px!important;margin:0!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max,
:is(#stage#stage#stage,.game) #dialog.m-settings-max *{border-image:none!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button:has(img):not([data-slide]):not(.settings-item-icon):not(.escape-method){border:0!important;background:transparent var(--lm-blue,url('/assets/lineagem-common/Btn_Blue_Normal_P.png')) center / 100% 100% no-repeat!important;box-shadow:none!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button:has(img):not([data-slide]):not(.settings-item-icon):not(.escape-method):active:not(:disabled){background-image:var(--lm-blue-down,url('/assets/lineagem-common/Btn_Blue_Pressed.png'))!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button:has(img):not([data-slide]):not(.settings-item-icon):not(.escape-method):disabled{background-image:var(--lm-disabled,url('/assets/lineagem-common/Btn_Disabled.png'))!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button:has(img):not(.settings-item-icon):is([aria-pressed=true],[aria-selected=true],.selected){outline:1px solid #dbc588!important;outline-offset:-2px!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button:has(img):not([data-slide]):not(.settings-item-icon):not(.escape-method){background-image:var(--lm-alpha,url('/assets/lineagem-common/Btn_Alpha_Normal.png'))!important;filter:none!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button:has(img):not([data-slide]):not(.settings-item-icon):not(.escape-method):is([aria-pressed=true],[aria-selected=true],.selected):not(:disabled){background-image:var(--lm-blue,url('/assets/lineagem-common/Btn_Blue_Normal_P.png'))!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button:has(img):not([data-slide]):not(.settings-item-icon):not(.escape-method):active:not(:disabled){background-image:var(--lm-blue-down,url('/assets/lineagem-common/Btn_Blue_Pressed.png'))!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button:has(img):not([data-slide]):not(.settings-item-icon):not(.escape-method):disabled{background-image:var(--lm-disabled,url('/assets/lineagem-common/Btn_Disabled.png'))!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button.escape-method{border:0!important;border-image:none!important;background:transparent var(--lm-alpha,url('/assets/lineagem-common/Btn_Alpha_Normal.png')) center / 100% 100% no-repeat!important;box-shadow:none!important;filter:none!important;color:#d9d7cf!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button.escape-method[aria-pressed=true]{background-image:var(--lm-blue,url('/assets/lineagem-common/Btn_Blue_Normal_P.png'))!important;color:#f2e5bf!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button.escape-method:active:not(:disabled){background-image:var(--lm-blue-down,url('/assets/lineagem-common/Btn_Blue_Pressed.png'))!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button.escape-method:disabled{background-image:var(--lm-disabled,url('/assets/lineagem-common/Btn_Disabled.png'))!important;color:#858b8b!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .escape-method{padding:8px!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button.escape-method,
:is(#stage#stage#stage,.game) #dialog.m-settings-max button.escape-method:is([aria-pressed=true],:active,:disabled){display:grid!important;width:52px!important;min-width:52px!important;height:52px!important;min-height:52px!important;padding:6px!important;border:0!important;border-image:none!important;background:none!important;box-shadow:none!important;outline:none!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button.helper-learned-icon,:is(#stage#stage#stage,.game) #dialog.m-settings-max button.helper-learned-icon:is([aria-pressed=true],:active){width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;display:grid!important;padding:4px!important;border:0!important;border-image:none!important;background:none!important;box-shadow:none!important;outline:none!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .helper-inline-range{display:grid!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .helper-inline-fields[hidden],
:is(#stage#stage#stage,.game) #dialog.m-settings-max .helper-global-mp[hidden]{display:none!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max :is(.mw-header,.dialoghead){display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:nowrap!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max :is(.mw-header,.dialoghead)>:is(.mw-title,h2){flex:1 1 auto!important;min-width:0!important;margin-right:auto!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .assist-header-actions{display:flex!important;align-items:center!important;gap:4px!important;flex:0 0 auto!important;margin:0 0 0 auto!important;padding:0!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max .assist-header-actions>button:is(.assist-save,.assist-start,.assist-stop){width:auto!important;min-width:48px!important;max-width:none!important;height:30px!important;min-height:30px!important;padding:3px 9px!important;font-size:12px!important;line-height:20px!important;white-space:nowrap!important;flex:0 0 auto!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max :is(.mw-header,.dialoghead)>:is(.mw-close,#close){position:static!important;flex:0 0 auto!important;margin:0!important;width:46px!important;min-width:46px!important;height:30px!important;min-height:30px!important;padding:3px 7px!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .helper-condition-row[hidden],:is(#stage#stage#stage,.game) #dialog.m-settings-max .helper-icon-advanced[hidden]{display:none!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .helper-condition-row{display:flex!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max .helper-condition-option{min-height:32px!important;height:32px!important;padding:4px 10px!important;font-size:13px!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .helper-condition-option[aria-pressed=true]{outline:1px solid #ddc586!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max button[data-slide]{width:48px!important;min-width:48px!important;height:26px!important;min-height:26px!important;border-radius:15px!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .helper-learned-icon[data-double-check]{position:relative!important;overflow:visible!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .settings-enabled-check[hidden]{display:none!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max button.hunt-idle-text{display:inline-block!important;min-height:30px!important;height:auto!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;color:inherit!important;font:inherit!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-idle-overlay[hidden]{display:none!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max button.hunt-idle-popup-close{min-height:30px!important;height:30px!important;padding:3px 8px!important;font-size:12px!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-idle-popup-body .hunt-teleport-idle{display:flex!important;margin:0!important;padding:0!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-general-toggles{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px 20px!important;width:100%!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-general-toggles>:is(label,.hunt-idle-teleport-toggle){display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;min-height:32px!important;padding:0!important;margin:0!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-general-toggles>*>input[type=checkbox]{flex:0 0 18px!important;width:18px!important;height:18px!important;margin:0!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max .hunt-general-toggles .hunt-idle-text{font-size:14px!important;min-height:32px!important;line-height:1.4!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-magic-settings-park[hidden]{display:none!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-magic-popup-body>.hunt-magic-mp{display:flex!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max #hunt-route-panel>.hunt-route-row{display:flex!important;margin:10px 0!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max #hunt-route-panel .hunt-mode-label{display:none!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max #hunt-route-panel .hunt-mode{display:grid!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max #hunt-route-panel .hunt-mode>button{width:100%!important;min-height:52px!important;font-size:17px!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-route-popup .hunt-route-choices{display:grid!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-route-popup .hunt-route-choices>button{width:100%!important;min-width:0!important;min-height:76px!important;font-size:13px!important;padding:7px!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-route-popup .hunt-route-name{display:flex!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-route-popup .hunt-route-name input{width:auto!important;max-width:none!important}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .hunt-route-popup .hunt-record{font-size:14px!important;min-height:34px!important;padding:5px 14px!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max .hunt-route-popup button{min-height:28px!important;padding:4px 10px!important;font-size:13px!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max .hunt-route-popup .hunt-route-slots{display:block!important;min-height:0!important;gap:0!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max .hunt-route-popup .hunt-route-choices>button{display:block!important;min-height:58px!important;padding:4px!important;font-size:12px!important;line-height:1.4!important;white-space:pre-line!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max .hunt-route-popup .hunt-route-choices>button[aria-checked=true]{outline:2px solid #e9ca7c!important;outline-offset:1px!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max .hunt-route-popup .hunt-route-name{min-height:28px!important;gap:8px!important;margin:9px 0 5px!important;font-size:13px!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max .hunt-route-popup input{height:28px!important;min-height:28px!important;padding:3px 8px!important;font-size:13px!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max .hunt-route-popup .hunt-route-meta{margin:3px 0!important;font-size:12px!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max .hunt-route-popup small{font-size:10px!important;line-height:1.4!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max .hunt-route-popup .hunt-route-info{margin:0!important;font-size:11px!important}
:is(#stage,.game) .route-recording-badge[hidden]{display:none!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog .automation-settings-menu{display:flex!important;align-items:center!important;gap:4px!important;flex:0 0 auto!important;margin:0 auto 0 8px!important;padding:0!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog .automation-settings-menu button{display:block!important;width:auto!important;min-width:76px!important;height:30px!important;min-height:30px!important;padding:3px 9px!important;border:0!important;border-image:none!important;border-radius:0!important;background:transparent var(--lm-blue,url('/assets/lineagem-common/Btn_Blue_Normal_P.png')) center / 100% 100% no-repeat!important;color:#e6dcc4!important;font:12px/20px 'Microsoft JhengHei',sans-serif!important;white-space:nowrap!important;box-shadow:none!important;cursor:pointer!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog .automation-settings-menu button[aria-pressed=true]{outline:1px solid #d8c58e!important;outline-offset:-3px!important;color:#ffe6a3!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog .automation-settings-menu button:active{background-image:var(--lm-blue-down,url('/assets/lineagem-common/Btn_Blue_Pressed.png'))!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max :is(.mw-header,.dialoghead)>:is(.mw-title,h2){flex:0 0 auto!important;margin-right:0!important}
.automation-dock.unified-settings-dock-root button[data-entry=hunt],.automation-dock.unified-settings-dock-root button[data-entry=assist],.automation-dock.unified-settings-dock-root button[data-entry=trash]{display:none!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max[open]{background-color:#0a0d10!important;background-image:url('/assets/lineagem-unified-native/FullFrameUI_BG02.png'),url('/assets/lineagem-unified-native/FullFrameUI_BG01.png')!important;background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important;border:1px solid #62615a!important;border-image:none!important;box-shadow:inset 0 0 0 2px #15191b,inset 0 0 0 3px #454644!important;color:#e4e2da!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max :is(.mw-header,.dialoghead){background:transparent url('/assets/lineagem-unified-native/Img_InventoryTitleBg.png') center/100% 100% no-repeat!important;border-bottom:1px solid #77705c66!important;padding:6px 10px!important;gap:5px!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max :is(.mw-body,#dialogbody){background:transparent!important;border:0!important;padding:8px 12px!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max :is(.assist-body,.hunt-settings-body,.hunt-settings-panel){background:transparent!important;color:#d7d3c8!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max :is(.assist-tabbar,.hunt-settings-tabs){border-bottom:1px solid #69675d55!important;padding-bottom:8px!important;margin-bottom:8px!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max :is(.hunt-idle-popup,.helper-icon-settings,.assist-condition-popup){background:#0b1015f5!important;border:1px solid #77705c!important;box-shadow:0 8px 28px #0008!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max[open]{width:var(--settings-original-w,100%)!important;height:var(--settings-original-h,100%)!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;padding:0!important;margin:0!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max :is(.mw-header,.dialoghead){min-height:40px!important;flex:0 0 auto!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max :is(.mw-body,#dialogbody){position:relative!important;inset:auto!important;flex:1 1 auto!important;width:100%!important;height:auto!important;min-height:0!important;overflow:auto!important;padding:8px 12px!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max #dialogbody>.native-commerce-host{position:relative!important;inset:auto!important;width:100%!important;height:100%!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max[open]{padding-top:24px!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max :is(.mw-header,.dialoghead){display:flex!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max[open]{transform:translate(-50%,-50%) scale(var(--settings-enlarge,1))!important;transform-origin:center!important;padding-top:44px!important}
.unified-settings-dock{overflow:visible!important}
@media(prefers-reduced-motion:reduce){.unified-settings-dock img,.unified-settings-dock .settings-running-wave{animation:none!important}}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max :is(.assist-tabbar,.hunt-settings-tabs){display:flex!important;justify-content:flex-start!important;align-items:center!important;gap:4px!important;flex-wrap:wrap!important;grid-template-columns:none!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max :is(.assist-tabbar .assist-tab,.hunt-settings-tabs button){display:block!important;flex:0 0 76px!important;width:76px!important;min-width:76px!important;max-width:76px!important;height:30px!important;min-height:30px!important;max-height:30px!important;box-sizing:border-box!important;padding:3px 9px!important;border:0!important;border-image:none!important;border-radius:0!important;background:transparent url('/assets/lineagem-common/Btn_Red_Normal.png') center / 100% 100% no-repeat!important;color:#e6dcc4!important;font:12px/20px 'Microsoft JhengHei',sans-serif!important;white-space:nowrap!important;box-shadow:none!important;filter:none!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max :is(.assist-tabbar .assist-tab.selected,.hunt-settings-tabs button[aria-selected=true]){outline:1px solid #d8c58e!important;outline-offset:-3px!important;color:#ffe6a3!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max :is(.assist-tabbar .assist-tab,.hunt-settings-tabs button):active{background-image:url('/assets/lineagem-common/Btn_Red_Pressed.png')!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max :is(.assist-stage-head,.assist-stage-head .assist-chips,.assist-heal-modes){gap:4px!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max :is(.assist-stage-head .assist-chip,.assist-stage-head .assist-toggle,.assist-heal-modes .assist-chip){flex:0 0 76px!important;width:76px!important;min-width:76px!important;max-width:76px!important;height:30px!important;min-height:30px!important;max-height:30px!important;box-sizing:border-box!important;padding:3px 9px!important;border:1px solid #b89945!important;border-image:none!important;border-radius:2px!important;background:linear-gradient(180deg,#75602d 0%,#46361b 50%,#685122 100%)!important;color:#fff0b6!important;font:12px/20px 'Microsoft JhengHei',sans-serif!important;white-space:nowrap!important;box-shadow:inset 0 1px 2px #ffe6a455,inset 0 -1px 3px #d9a42e44!important;filter:none!important;text-shadow:0 1px 2px #000!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max :is(.assist-stage-head .assist-chip,.assist-stage-head .assist-toggle,.assist-heal-modes .assist-chip):is(.selected,.on){outline:1px solid #ffdf76!important;outline-offset:-3px!important;background:linear-gradient(180deg,#a38338,#64491c 55%,#8d6927)!important;color:#fff5ce!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max :is(.assist-stage-head .assist-chip,.assist-stage-head .assist-toggle,.assist-heal-modes .assist-chip):active{background:linear-gradient(180deg,#483715,#7d6029)!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max .automation-run-actions{display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:6px!important;flex:0 0 auto!important;margin: auto 0 0!important;padding:8px 0 4px!important;width:100%!important;box-sizing:border-box!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max .automation-run-actions>button{flex:0 0 110px!important;width:110px!important;min-width:110px!important;max-width:110px!important;height:30px!important;min-height:30px!important;padding:3px 9px!important;box-sizing:border-box!important;border:1px solid #77858a!important;border-image:none!important;border-radius:0!important;background:linear-gradient(#19232a,#0a1014)!important;box-shadow:inset 0 0 0 1px #343e44!important;color:#e6dcc4!important;font:12px/20px 'Microsoft JhengHei',sans-serif!important;white-space:nowrap!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max .automation-run-actions>button:active{background:#34434d!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max .assist-header-actions>.assist-save{border:1px solid #5b9b67!important;border-image:none!important;border-radius:2px!important;background:linear-gradient(180deg,#365d40 0%,#1c3727 55%,#2e5337 100%)!important;box-shadow:inset 0 1px 2px #a9edb34d!important;color:#e5f4d7!important;text-shadow:0 1px 2px #000!important;filter:none!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max .assist-header-actions>.assist-save:active{background:linear-gradient(180deg,#172f20,#3e7049)!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog .automation-settings-title{position:absolute!important;width:1px!important;height:1px!important;min-width:0!important;min-height:0!important;padding:0!important;margin:-1px!important;border:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog .automation-settings-menu{margin:0 auto 0 0!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog .automation-settings-menu button[aria-pressed=true]{outline:1px solid #ffe49b!important;outline-offset:-3px!important;color:#fff3bc!important;box-shadow:0 0 5px #ffd56da6,0 0 10px #efbd3f55,inset 0 0 7px #ffdd6855!important;text-shadow:0 0 5px #ffe29a99,0 1px 2px #000!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max #dialogbody button:is(.selected,[aria-selected=true],[aria-pressed=true],[aria-checked=true]){outline:1px solid #ffe49b!important;outline-offset:-3px!important;box-shadow:0 0 5px #ffd56da6,0 0 10px #efbd3f55,inset 0 0 7px #ffdd6855!important;text-shadow:0 0 5px #ffe29a99,0 1px 2px #000!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max .summon-compact-toggle{flex:0 0 76px!important;width:76px!important;min-width:76px!important;max-width:76px!important;height:30px!important;min-height:30px!important;padding:3px 6px!important;box-sizing:border-box!important;font:12px/20px 'Microsoft JhengHei',sans-serif!important;white-space:nowrap!important;border:1px solid #b89945!important;border-image:none!important;border-radius:2px!important;background:linear-gradient(180deg,#75602d,#46361b 50%,#685122)!important;color:#fff0b6!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max #dialogbody button.pet-potion-choice{width:34px!important;min-width:34px!important;max-width:34px!important;height:34px!important;min-height:34px!important;padding:1px!important;border:0!important;border-image:none!important;background:none!important;box-shadow:none!important;outline:none!important;filter:none!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max .pet-potion-choice img{filter:none!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max .pet-potion-check[hidden]{display:none!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max #dialogbody button.pet-potion-choice:focus-visible{outline:1px solid #ffe49b!important;outline-offset:1px!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max input[type=checkbox]{height:18px!important;min-height:18px!important;max-height:18px!important;outline:none!important;box-shadow:none!important}
:is(#stage#stage#stage,.game) #dialog#dialog#dialog.m-settings-max input[type=checkbox]:focus-visible{outline:1px solid #9bd3e9!important;outline-offset:2px!important}
}
/* 3090r6 #17: the 回城方式 / 順移方式 rows (preview .escape-methods buttons) get a small heading inside each group. */
:is(#stage#stage#stage,.game) #dialog.m-settings-max .assist-home-group .assist-method-title{font-size:13px;line-height:1.3;color:#d9c79a;letter-spacing:1px;margin:2px 0 -4px}
:is(#stage#stage#stage,.game) #dialog.m-settings-max .assist-home-group .escape-methods{margin:2px 0 6px}
