/* The helper keeps navigation and the main action visible while settings scroll. */
body:has(#panel-helper:not([hidden]):not(.collapsed)) #chat-launcher{display:none}
#panel-helper.game-window{width:min(760px,calc(100vw - 32px))!important;max-height:calc(100dvh - 16px)!important;background:#101c28;border-color:#425b70;border-radius:16px;box-shadow:0 20px 65px #0007}
#panel-helper>.window-header{height:52px;padding:6px 16px;background:#122332;gap:10px}#panel-helper .window-header h2{font-size:15px;letter-spacing:.7px;color:#efe2c5}#panel-helper .window-button{width:36px!important;height:36px!important;border-radius:9px}
#panel-helper #body-helper{padding:0!important;max-height:var(--panel-space)!important;overflow:hidden;display:flex;flex-direction:column}#panel-helper.collapsed #body-helper{display:none}
.helper-console{display:flex;flex-direction:column;height:min(780px,var(--panel-space));min-height:0;color:#e8e3d7;font:13px/1.5 'DM Sans',sans-serif}
.helper-hero{padding:16px 20px 14px;flex-shrink:0;background:radial-gradient(ellipse at top right,#294e584d,transparent 65%),#132432;border-bottom:1px solid #304656}
.helper-hero-heading{display:flex;align-items:center;gap:12px;margin-bottom:14px}.helper-hero-heading>img{width:38px;height:38px;object-fit:contain}.helper-hero-heading>div{flex:1}.helper-hero-heading small{font-size:10px;letter-spacing:1.5px;color:#a2bbb9;font-weight:700}.helper-hero-heading h3{font:600 22px/1.15 'DM Sans',sans-serif;margin:4px 0 0;color:#fff0d2}
.helper-status{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border:1px solid #65768460;border-radius:20px;background:#09172180;color:#c0cbd0;font-size:11px;white-space:nowrap}.helper-status:before{content:'';width:6px;height:6px;border-radius:50%;background:#93a6af}.helper-status[data-running=true]{color:#97e4bb;border-color:#55877080}.helper-status[data-running=true]:before{background:#79d9a8}
.helper-plan-card{display:flex;gap:12px;align-items:center;text-align:left;width:100%;padding:12px 14px;background:linear-gradient(110deg,#75603426,#182631);border:1px solid #987848;border-radius:12px;font:inherit;color:#e8d7b4;cursor:pointer}.helper-plan-card:hover{background:linear-gradient(110deg,#aa843c36,#203444);border-color:#d7b069}.helper-plan-icon{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;background:#c9983f12;border-radius:8px}.helper-plan-icon img{width:30px;height:30px;object-fit:contain}.helper-plan-card>span:nth-child(2){flex:1;min-width:0}.helper-plan-card small{display:flex;gap:9px;align-items:center;font-size:9px;letter-spacing:.8px;color:#c5ad7b}.helper-plan-card small b{font-size:9px;letter-spacing:0;color:#b1c8c6;font-weight:500}.helper-plan-card strong{display:block;font-size:15px;line-height:1.4;color:#f8e8c6;margin-top:3px}.helper-plan-card em{display:block;font-size:11px;font-style:normal;color:#acc0cd;line-height:1.45;margin-top:3px}.helper-plan-cta{font-size:12px;flex-shrink:0;font-weight:700;color:#f3c66c}
#panel-helper .helper-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:0;border-bottom:1px solid #304656;border-radius:0;gap:0;padding:0 12px;margin:0;background:#0e1c29;flex-shrink:0}#panel-helper .helper-tabs>button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:54px;height:auto;border:0;border-bottom:2px solid transparent;border-radius:0;padding:7px 5px;font:600 12px/1.2 'DM Sans',sans-serif;letter-spacing:0;color:#9bb1bf;background:none}#panel-helper .helper-tabs>button img{width:23px;height:23px;object-fit:contain}#panel-helper .helper-tabs>button.selected{color:#f9d17f;border-bottom-color:#efbc60;background:#e2b35b08}
.helper-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px;scrollbar-width:thin;scrollbar-color:#466172 #101c28}.helper-section-heading{margin-bottom:18px}.helper-section-heading>small{font-size:9px;letter-spacing:1.3px;font-weight:800;color:#7eb6b4}.helper-section-heading h3{font-size:20px;font-weight:600;color:#f0e4c9;margin:5px 0}.helper-section-heading p{font-size:12px;color:#a8bbc8;margin:6px 0;line-height:1.6}
#panel-helper .auto-setting{margin:0 0 12px;padding:0!important;border:1px solid #354b5d;border-radius:12px;background:#132330;overflow:hidden}#panel-helper .auto-setting.is-off{border-color:#2f4351;background:#10202c}#panel-helper .auto-setting-head{gap:12px;padding:14px!important;align-items:center}#panel-helper .auto-setting-icon{width:39px;height:39px;border-color:#345260;border-radius:10px;background:#0a1722;flex-shrink:0}#panel-helper .auto-setting-icon>img{width:32px;height:32px;object-fit:contain}#panel-helper .auto-setting-title strong{font:600 14px/1.35 'DM Sans',sans-serif;letter-spacing:0;color:#f0e7d5}#panel-helper .auto-setting-title small{font:11px/1.5 'DM Sans',sans-serif;color:#a3b7c5;margin-top:4px}
#panel-helper .auto-toggle{flex-direction:column-reverse;gap:3px;min-height:44px;min-width:60px;justify-content:center}#panel-helper .auto-toggle>span{display:block;font:600 9px 'DM Sans',sans-serif;letter-spacing:0;color:#b2c6ce}#panel-helper .auto-toggle input{inset:0;width:100%;height:100%;opacity:0;margin:0}#panel-helper .toggle-track{width:35px;height:20px;background:#334959;border-color:#5a708066}#panel-helper .toggle-track:after{width:12px;height:12px;top:3px;left:3px;background:#adc1cd}#panel-helper .auto-toggle input:checked+.toggle-track{background:#337a68;border-color:#68ad92}#panel-helper .auto-toggle input:checked+.toggle-track:after{transform:translateX(14px);background:#c3f5df}#panel-helper .auto-toggle input:disabled+.toggle-track{opacity:.55}
#panel-helper .auto-setting-content{padding:0 14px 14px}.helper-two-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.helper-three-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.helper-two-columns>.auto-setting{height:calc(100% - 12px)}#panel-helper .helper-two-columns>.auto-setting .auto-setting-icon{display:none}
.helper-field{display:grid;align-content:start;gap:7px;min-width:0;font-size:12px;color:#c8d6dd}#panel-helper .helper-field select,#panel-helper .helper-field input[type="number"]{width:100%;max-width:100%;height:44px;min-height:44px;font:13px 'DM Sans',sans-serif;padding:0 10px;border:1px solid #456073;border-radius:8px;background:#0b1925;color:#eadfc8}.helper-field>small,.helper-note{font:12px/1.6 'DM Sans',sans-serif;color:#a5b9c7;margin:10px 0 0}.helper-field>small{font-size:11px;margin:0}
#panel-helper .skill-order{gap:10px;padding:0;grid-template-columns:repeat(3,minmax(0,1fr))}#panel-helper .skill-order>button{display:flex;flex-direction:column;align-items:center;min-width:0;padding:12px 5px 10px;border:1px solid #446072;border-radius:10px;background:#0b1926;color:#e7d3a5;cursor:pointer}#panel-helper .skill-order>button:hover{border-color:#d5a85a;background:#172b38}#panel-helper .skill-order small{display:block;font:700 9px 'DM Sans',sans-serif;letter-spacing:.8px;margin:0 0 8px;color:#94b8be}#panel-helper .skill-order img{width:40px;height:40px;border:0;background:none;padding:0}#panel-helper .skill-order strong{margin-top:8px;font-size:12px;max-width:100%;overflow-wrap:anywhere;text-align:center}#panel-helper .skill-order span{font:11px 'DM Sans',sans-serif;color:#aec5d2;margin:6px 0}#panel-helper .skill-order em{font:10px/1.4 'DM Sans',sans-serif;color:#a7b2ac;font-style:normal;text-align:center}
.helper-stock-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}.helper-stock-grid article{display:flex;gap:12px;align-items:center;background:#152d36;border:1px solid #345666;border-radius:12px;padding:15px}.helper-stock-grid img{width:35px;height:35px;object-fit:contain}.helper-stock-grid small{display:block;font-size:9px;letter-spacing:.6px;color:#9ec4c7}.helper-stock-grid strong{display:block;font-size:20px;margin:3px 0;color:#f8eaca}.helper-stock-grid span{display:block;color:#aec5cf;font-size:10px}.helper-stock-line{color:#b0c7d5;font-size:12px;margin:12px 0 0}.helper-stock-line b{color:#f4d793;margin-right:10px}
.helper-overview-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.helper-category{display:flex;align-items:center;gap:12px;text-align:left;padding:16px;border:1px solid #354f63;border-radius:12px;background:#122332;color:#eee4cf;font:inherit;cursor:pointer}.helper-category:hover{background:#1c3545;border-color:#6a8c9f}.helper-category>img{width:34px;height:34px;object-fit:contain}.helper-category>span{flex:1}.helper-category strong{display:block;font-size:13px;margin-bottom:5px}.helper-category small{display:block;font-size:11px;line-height:1.5;color:#a4bbcb}.helper-category>b{color:#d6b16b;font-size:20px}
.helper-alerts h4{font-size:12px;color:#e2b976;margin:0 0 8px}.helper-alerts>button{display:flex;width:100%;text-align:left;gap:10px;align-items:center;margin:7px 0;border:1px solid #b882343d;background:#b07b1710;border-radius:9px;padding:10px 12px;color:#e7cc95;font:inherit;cursor:pointer}.helper-alerts>button>span:nth-child(2){flex:1}.helper-alerts strong{font-size:12px;display:block}.helper-alerts small{font-size:11px;display:block;line-height:1.5;color:#c1b69d;margin-top:3px}.helper-ready{padding:12px;border:1px solid #44776170;border-radius:9px;background:#284c321f;color:#a3d3b8;font-size:12px;line-height:1.6}
.helper-route-summary{display:grid;grid-template-columns:1fr 1.25fr;gap:20px;align-items:center;padding:15px;border:1px solid #34515f;border-radius:12px;background:#112a34;margin-bottom:16px}.helper-route-summary small{display:block;font-size:9px;letter-spacing:.7px;color:#84b8b5}.helper-route-summary strong{font-size:14px;display:block;margin:5px 0}.helper-route-summary button,.helper-service-strip button,.helper-pvp-notice button{font:600 12px 'DM Sans',sans-serif;background:transparent;border:0;color:#efc575;min-height:44px;padding:7px 0;text-align:left}.helper-live-note{padding:10px;border:1px solid #53746060;border-radius:7px;background:#39593420;color:#b8e0bf;font-size:12px;margin:12px 0}.helper-service-strip{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 15px;background:#182b3b;border:1px solid #365267;border-radius:12px;font-size:12px;color:#b8cdd8}
.helper-pvp-notice{border:1px solid #94734480;border-radius:12px;background:#a77f2810;padding:16px;margin-bottom:16px}.helper-pvp-notice strong{font-size:15px;color:#f0ce88}.helper-pvp-notice p{font-size:12px;line-height:1.7;color:#c2beb0;margin:8px 0}.helper-pvp-controls{padding:0 16px 16px;border:1px solid #3d5366;border-radius:12px;background:#132331}.helper-pvp-row{display:flex;align-items:center;gap:15px;padding:16px 0;border-bottom:1px solid #314757;margin-bottom:12px}.helper-pvp-row>span{flex:1}.helper-pvp-row strong{display:block;font-size:14px}.helper-pvp-row small{display:block;font-size:12px;color:#a8bcc9;margin-top:5px}.helper-pvp-row input{width:22px;height:22px;accent-color:#56a98e;cursor:pointer}
.helper-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 20px;border-top:1px solid #3c5568;background:#152b3a;flex-shrink:0}.helper-footer>div{min-width:0}.helper-footer strong{display:block;font-size:12px;color:#d7e1dc}.helper-footer small{display:block;font-size:10px;color:#9fb7c8;margin-top:3px}#panel-helper .helper-start{width:auto;flex-shrink:0;min-width:165px;height:46px;padding:10px 16px;border:1px solid #eebc62;border-radius:10px;background:linear-gradient(180deg,#f5ce80,#e9af43);color:#221a0c;font:700 13px 'DM Sans',sans-serif;letter-spacing:0}#panel-helper .helper-start.running{background:#16372f;color:#a5e8c7;border-color:#548c75}#panel-helper .helper-start:disabled{opacity:.55;cursor:wait}
#panel-helper :is(button,select,input):focus-visible{outline:2px solid #f5c677;outline-offset:2px}

/* The same layout language carries through to the per-hunt plan. */
#game-modal[data-menu-type=helper-plan][open]{width:min(1040px,calc(100vw - 24px));height:min(900px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);overflow:hidden;display:flex;flex-direction:column;border-radius:16px;border-color:#4c667a}
#game-modal[data-menu-type=helper-plan]>header{flex-shrink:0}#game-modal[data-menu-type=helper-plan] #modal-body{display:flex;min-height:0;overflow:hidden;padding:0;flex:1}.hunt-plan-form{display:flex;flex-direction:column;width:100%;min-width:0;min-height:0;color:#d5e0e4;font:13px/1.5 'DM Sans',sans-serif}
.plan-intro{display:flex;align-items:flex-start;gap:20px;padding:20px 24px 12px;background:linear-gradient(110deg,#203a42,#122534)}.plan-intro>div{flex:1}.plan-intro small{font-size:9px;font-weight:700;letter-spacing:1px;color:#90c3bf}.plan-intro h3{font-size:23px;margin:5px 0;color:#f7e7c5}.plan-intro p{font-size:12px;line-height:1.6;color:#adc5d1!important;margin:8px 0!important}.plan-intro>span{font-size:10px;color:#e6c588;white-space:nowrap;border:1px solid #9f895c70;border-radius:20px;padding:5px 9px}.hunt-plan-form>.plan-destination{display:grid;grid-template-columns:150px 1fr;align-items:center;gap:12px;padding:12px 24px;background:#122534;border-bottom:1px solid #354d60;font-size:12px;color:#bdcbd5;flex-shrink:0}
.plan-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.95fr);gap:18px;padding:20px 24px;overflow:auto;min-height:0;flex:1;overscroll-behavior:contain;scrollbar-width:thin}.plan-options{display:grid;gap:16px}.plan-section{padding:16px;border:1px solid #354e62;border-radius:12px;background:#112230;min-width:0}.plan-section>header{display:flex;gap:10px;margin-bottom:16px}.plan-section>header>span{display:grid;place-items:center;width:28px;height:28px;flex-shrink:0;border-radius:8px;background:#77ac9d17;color:#9bcebd;font-size:11px;font-weight:700}.plan-section h4,.plan-capture h4{font-size:14px;font-weight:600;color:#f1e3c6;margin:0}.plan-section>header p{font-size:11px;color:#9fb9cb!important;margin:4px 0 0!important}.plan-section>label,.plan-fields label{display:grid;gap:7px;font-size:12px}.plan-section label small{font-size:11px;line-height:1.55;color:#a2b9c9}
.hunt-plan-form .plan-fields{grid-template-columns:1fr 1fr;gap:12px;margin:0 0 12px}.hunt-plan-form :is(.menu-search,input:not([type=checkbox]),select){min-height:44px;width:100%;font:13px 'DM Sans',sans-serif;border:1px solid #496477;border-radius:8px;padding:9px 10px;background:#0a1925;color:#eadfc6}.hunt-plan-form .plan-check{display:flex!important;align-items:flex-start;gap:10px;margin:16px 0 0;padding:10px;background:#182c3a;border-radius:8px;cursor:pointer}.plan-check input{width:20px;height:20px;flex-shrink:0;margin:2px 0 0;accent-color:#57ac8d}.plan-check strong{display:block;font-size:12px;color:#e0e2d6}.plan-check small{display:block;margin-top:4px}.plan-wallet{display:flex;gap:8px;justify-content:space-between;background:#0d1a25;border-radius:8px;padding:11px}.plan-wallet span{font-size:10px;color:#a2bbcd}.plan-wallet b{display:block;font-size:16px;color:#f4d390;margin-top:3px}.hunt-plan-form .plan-info{font-size:11px;line-height:1.65;color:#a7c5d3;margin:14px 0 0!important}.hunt-plan-form .plan-caution{font-size:11px;line-height:1.65;color:#dfbe85;margin:12px 0 0!important}.plan-capture{padding:16px;border:1px dashed #466272;border-radius:12px;background:#122430}.plan-capture>p,.plan-capture>small{font-size:11px;color:#adc0cd;line-height:1.65}.plan-capture>div{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.plan-capture>div>span{display:flex;align-items:center;gap:6px;font-size:11px;border:1px solid #365365;padding:5px 8px;border-radius:6px}.plan-capture img{width:22px;height:22px;object-fit:contain}
.plan-route-section{align-self:start}.hunt-plan-form .route-editor{display:flex;flex-direction:column;border:0;padding:0;background:none;gap:14px}.hunt-plan-form .route-editor canvas{border:1px solid #506955;border-radius:9px}.hunt-plan-form .route-editor>div{display:flex;flex-direction:column;gap:10px}.hunt-plan-form .route-editor strong{font-size:13px;color:#e9cc86}.hunt-plan-form #plan-route-status{font-size:11px;color:#abc2d0;margin:0!important;line-height:1.6}.plan-map-legend{display:flex;flex-wrap:wrap;gap:13px;font-size:10px;color:#b8cdcb}.plan-coordinates{display:grid;grid-template-columns:70px 70px 1fr;gap:8px;align-items:end}.plan-coordinates label{display:grid!important;gap:4px;font-size:11px}.hunt-plan-form .plan-coordinates input{width:100%}.plan-route-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.hunt-plan-form .action-button{min-height:44px;font-size:12px;border-radius:8px}.plan-footer{display:flex;justify-content:space-between;gap:12px;flex-shrink:0;padding:14px 24px;border-top:1px solid #3d5568;background:#172c3b}.plan-footer .primary{min-width:220px}
@media(max-width:1100px){
 #panel-helper.game-window{width:min(760px,calc(100vw - 16px))!important}#panel-helper .window-button{width:44px!important;height:44px!important}#panel-helper>.window-header{padding:4px 12px}
 .helper-hero{padding:12px}.helper-hero-heading{gap:9px;margin-bottom:10px}.helper-hero-heading h3{font-size:18px}.helper-hero-heading>img{width:30px;height:30px}.helper-hero-heading small{font-size:9px}.helper-plan-card{padding:10px;gap:9px}.helper-plan-card strong{font-size:14px}.helper-plan-card em{font-size:10px}.helper-plan-icon{display:none}.helper-plan-cta{font-size:11px;max-width:55px;line-height:1.4}
 #panel-helper .helper-tabs{padding:0 5px}#panel-helper .helper-tabs>button{flex-direction:column;gap:4px;font-size:10px;min-height:58px}#panel-helper .helper-tabs>button img{width:21px;height:21px}.helper-content{padding:14px}.helper-section-heading h3{font-size:18px}.helper-section-heading p{font-size:12px}
 .helper-two-columns,.helper-three-columns{grid-template-columns:1fr}.helper-two-columns{gap:0}.auto-setting-content>.helper-two-columns{gap:12px}.helper-three-columns{gap:12px}.helper-two-columns>.auto-setting{height:auto}#panel-helper .auto-setting-head{padding:12px!important;gap:9px}#panel-helper .auto-setting-title strong{font-size:13px}#panel-helper .auto-setting-icon{width:32px;height:32px}#panel-helper .auto-setting-icon img{width:27px;height:27px}#panel-helper .auto-toggle{min-width:54px}
 .helper-overview-grid{grid-template-columns:1fr;gap:10px}.helper-stock-grid{gap:8px}.helper-stock-grid article{display:block;padding:12px}.helper-stock-grid img{width:28px;height:28px;margin-bottom:7px}.helper-stock-grid strong{font-size:16px}.helper-stock-grid small{font-size:8px}.helper-route-summary{grid-template-columns:1fr;gap:14px}.helper-service-strip{flex-wrap:wrap}
 .helper-footer{padding:10px 12px;gap:8px}.helper-footer strong{font-size:10px}.helper-footer small{font-size:9px;max-width:155px}#panel-helper .helper-start{min-width:125px;font-size:12px;padding:10px}.helper-content .helper-field select,.helper-content .helper-field input[type="number"]{font-size:16px!important}
 #game-modal[data-menu-type=helper-plan][open]{height:calc(var(--visual-height,100dvh) - 16px);max-height:calc(var(--visual-height,100dvh) - 16px);width:auto}#game-modal[data-menu-type=helper-plan] #modal-body{padding:0}.plan-intro{padding:14px 16px 8px;gap:10px}.plan-intro h3{font-size:19px}.plan-intro>span{display:none}.plan-intro p{font-size:11px}.hunt-plan-form>.plan-destination{display:block;padding:10px 16px;font-size:11px}.plan-destination select{display:block;margin-top:6px}.plan-workspace{grid-template-columns:1fr;padding:14px 16px;gap:14px}.plan-section{padding:14px}.plan-footer{padding:10px 12px;gap:8px}.plan-footer>.action-button{min-width:0!important;flex:1;font-size:12px!important}.plan-fields input{font-size:16px!important}
}
@media(max-width:380px){.helper-hero-heading h3{font-size:16px}.helper-status{font-size:10px;padding:4px 7px}.helper-plan-card em{display:none}.helper-stock-grid{grid-template-columns:1fr}.helper-stock-grid article{display:flex}.helper-stock-grid img{margin:0}.helper-footer small{display:none}.helper-footer strong{max-width:125px}#panel-helper .skill-order{gap:5px}#panel-helper .skill-order strong{font-size:10px}#panel-helper .skill-order span{font-size:10px}.plan-intro>div>p{display:none}.hunt-plan-form .plan-fields{grid-template-columns:1fr}.plan-coordinates{grid-template-columns:60px 60px 1fr}}
@media(max-height:540px) and (orientation:landscape){.helper-hero-heading{display:none}.helper-hero{padding:8px 12px}.helper-plan-card{padding:7px 10px}.helper-plan-card em{display:none}#panel-helper .helper-tabs>button{min-height:42px;flex-direction:row}.helper-footer{padding:7px 12px}.plan-intro{display:none}.hunt-plan-form>.plan-destination{display:grid;grid-template-columns:135px 1fr;padding:8px 14px}.plan-destination select{margin:0}}
/* Update Rota 0.1.1: map-first route editor, with independent zoom and point selection. */
#game-modal[data-menu-type=helper-plan][open]{width:min(1200px,calc(100vw - 24px));height:min(980px,calc(100dvh - 24px))}
.hunt-plan-form .plan-intro{padding:12px 20px 4px;flex-shrink:0}.hunt-plan-form .plan-intro h3{font-size:20px}.hunt-plan-form .plan-intro p{margin:4px 0!important}.hunt-plan-form>.plan-destination{padding:10px 20px;border-bottom:0}
.plan-tabs{display:flex;gap:8px;padding:0 20px 10px;background:#122534;border-bottom:1px solid #354d60;flex-shrink:0}.plan-tabs button{border:1px solid #3c576b;background:#0c1b27;color:#b9cbd4;border-radius:8px;padding:10px 18px;min-height:44px;font:600 12px 'DM Sans',sans-serif;cursor:pointer}.plan-tabs button[aria-selected=true]{background:#dfb8661c;border-color:#b59758;color:#f3d595}
.hunt-plan-form .plan-workspace{display:block;padding:16px 20px}.hunt-plan-form [role=tabpanel][hidden],.hunt-plan-form [hidden]{display:none!important}.hunt-plan-form .plan-options{grid-template-columns:1fr 1fr;align-items:start}.plan-options .plan-capture{grid-column:1/-1}
.hunt-plan-form .plan-route-section{padding:16px;background:#10212d}.plan-route-section>header{justify-content:space-between;align-items:center}.plan-route-section>header>.route-draft-badge{width:auto;height:auto;border-radius:20px;padding:4px 10px;font-size:10px;white-space:nowrap}
.route-presets{display:flex;gap:8px;margin:0 0 16px;flex-wrap:wrap}.plan-route-section button{font:600 12px 'DM Sans',sans-serif;color:#d6e0df;background:#172e3d;border:1px solid #40596a;border-radius:7px;min-height:40px;padding:8px 12px;cursor:pointer}.plan-route-section button:hover:not(:disabled){background:#284252;border-color:#97bbc1}.plan-route-section button:focus-visible,.plan-tabs button:focus-visible{outline:2px solid #9ae5de;outline-offset:3px}.plan-route-section button:disabled{opacity:.38;cursor:default}.route-presets button[aria-pressed=true]{background:#e6bd621c;color:#ffdf97;border-color:#a7894b}
.route-editor-v2{display:grid;grid-template-columns:minmax(0,1fr) 248px;gap:18px;align-items:start}.route-map-column{min-width:0}.route-map-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;flex-wrap:wrap}.route-map-toolbar strong{font-size:12px;color:#eed79c}.route-map-toolbar>div{display:flex;align-items:center;gap:5px}.route-map-toolbar button{padding:6px 10px;min-width:36px}.route-map-toolbar output{min-width:40px;text-align:center;font-size:11px;color:#c3d5da;font-variant-numeric:tabular-nums}
.route-map-viewport{height:min(48vh,430px);min-height:240px;position:relative;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;border:1px solid #3f6370;border-radius:10px;background:#06151c;box-shadow:inset 0 0 25px #0008;touch-action:pan-x pan-y}
.route-map-stage{position:relative;margin-inline:auto;isolation:isolate;max-width:none}.hunt-plan-form #plan-map{display:block;width:100%;height:auto;max-width:none;border:0;border-radius:0;image-rendering:pixelated;touch-action:pan-x pan-y;cursor:default}.route-markers{position:absolute;inset:0;pointer-events:none}
.plan-route-section .route-marker,.route-drag-ghost{display:grid;place-items:center;position:absolute;transform:translate(-50%,-50%);width:25px;height:25px;min-width:25px;min-height:25px;border-radius:50%;border:2px solid #edd48c;background:#152a31;color:#fff1bd;font:700 10px 'DM Sans',sans-serif;box-shadow:0 2px 5px #000b;padding:0;pointer-events:auto;touch-action:none;user-select:none;cursor:grab;z-index:1}
.plan-route-section .route-marker.selected{background:#bce6da;color:#08252c;border-color:#fff5c8;box-shadow:0 0 0 4px #3ddccc55,0 2px 7px #000;z-index:3}.plan-route-section .route-marker:hover{background:#325362}.route-map-stage.dragging .route-marker.selected{opacity:.35}.route-drag-ghost{pointer-events:none;z-index:4;background:#8de5c6;color:#102d2c;border-color:white;box-shadow:0 0 0 5px #8de5c655}.route-drag-ghost[data-valid=false]{background:#f09485;border-color:#ffd2ca}
.hunt-plan-form #plan-route-status{min-height:37px;margin:10px 0 4px!important;font-size:12px;color:#c5d9df}.hunt-plan-form #plan-route-status[data-error=true]{color:#ffc49a}.plan-map-legend span{display:flex;gap:5px;align-items:center}.plan-map-legend i{display:inline-block;width:7px;height:7px}.route-legend-line{height:2px!important;width:15px!important;background:#f6cd70}.route-legend-spawn{border:1px solid #fff3c3}.route-legend-mob{background:#b63436}.route-history{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:14px}.route-history>span{flex:1 1 100%;font-size:10px;color:#91aeba}
.route-points-panel{border:1px solid #334d5e;border-radius:10px;background:#0b1a25;overflow:hidden;min-width:0}.route-points-panel>header{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:14px 12px 0}.route-points-panel>header h4{font-size:12px}.route-points-panel>header span{font-size:10px;color:#b9d7cd}.route-points-panel>p{padding:0 12px;font-size:11px!important;color:#94b0c1!important;margin:6px 0 12px!important}
#route-point-list{list-style:none;padding:0 7px;margin:0;max-height:285px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}#route-point-list li{margin:0 0 4px}#route-point-list button{display:flex;align-items:center;gap:9px;width:100%;min-height:48px;text-align:left;background:transparent;border-color:transparent;padding:7px 8px}#route-point-list button.selected{background:#274740;border-color:#568477}#route-point-list button>b{display:grid;place-items:center;width:27px;height:27px;border-radius:7px;background:#d7c78516;color:#ecd291;font-size:11px}#route-point-list button>span{flex:1;font-size:12px}#route-point-list small{display:block;color:#9ebac5;font-size:10px;margin-top:2px;font-weight:400}#route-point-list em{font-size:8px;color:#bde0cb;font-style:normal;letter-spacing:.6px}
#route-point-empty{padding:24px 16px;text-align:center;font-size:12px;color:#92b0bd;line-height:1.8}.route-selection{margin:12px 0 0;padding:12px;border-top:1px solid #334d5e;background:#10232f}.route-selection>strong{font-size:11px;color:#eed6a0;display:block;margin-bottom:9px}.route-selection>div{display:flex;flex-wrap:wrap;gap:5px}.route-selection button{flex:1;padding:7px;font-size:10px;white-space:nowrap}.route-selection [data-route-action=remove]{color:#f4b4a3}.route-selection small{display:block;color:#91acb9;font-size:10px;margin-top:9px;line-height:1.6}
.route-coordinates{padding:0 12px 12px;background:#10232f}.route-coordinates summary{padding:10px 0;cursor:pointer;color:#bed2d8;font-size:11px}.route-coordinates .plan-coordinates{grid-template-columns:1fr 1fr;margin-bottom:8px}.route-coordinates>button{width:100%;margin-top:5px;font-size:11px}.hunt-plan-form .plan-footer{padding:12px 20px}
@media(max-width:900px){
 #game-modal[data-menu-type=helper-plan][open]{width:calc(100vw - 16px);height:calc(var(--visual-height,100dvh) - 16px)}.hunt-plan-form .plan-intro{padding:10px 14px 0}.hunt-plan-form .plan-intro small{display:none}.hunt-plan-form .plan-intro h3{font-size:17px}.hunt-plan-form .plan-intro p{font-size:11px}.hunt-plan-form>.plan-destination{padding:8px 14px;display:block}.plan-destination select{margin-top:4px}.plan-tabs{padding:0 14px 8px;gap:6px}.plan-tabs button{flex:1;padding:8px 7px;font-size:11px}.hunt-plan-form .plan-workspace{padding:12px}.hunt-plan-form .plan-options{grid-template-columns:1fr}.hunt-plan-form .plan-route-section{padding:12px}.route-editor-v2{grid-template-columns:1fr;gap:16px}.plan-route-section>header{margin-bottom:12px}.plan-route-section h4{font-size:13px}.plan-route-section>header>.route-draft-badge{display:none}.route-presets{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-bottom:12px}.route-presets button{font-size:10px;padding:6px;min-height:44px}.route-map-toolbar{gap:8px}.route-map-toolbar>div{margin-left:auto}.route-map-toolbar button{min-height:44px}.route-map-viewport{height:clamp(235px,64vw,410px);min-height:0}.plan-route-section .route-marker,.route-drag-ghost{width:26px;height:26px;min-width:26px;min-height:26px}.route-history button{min-height:44px}#route-point-list{max-height:210px}.route-selection button{font-size:12px;min-height:44px}.route-coordinates>button{min-height:44px}.hunt-plan-form .plan-footer{padding:10px 12px}.hunt-plan-form .plan-coordinates input{font-size:16px}
}
@media(max-height:540px) and (orientation:landscape){.hunt-plan-form .plan-intro{display:none}.hunt-plan-form>.plan-destination{display:grid;grid-template-columns:135px 1fr;padding:6px 14px}.plan-destination select{margin:0}.plan-tabs{padding-bottom:6px}.plan-tabs button{min-height:36px}.route-map-viewport{height:300px}.hunt-plan-form .plan-footer{padding:8px 12px}}
.hunt-plan-form .plan-intro{align-items:center;justify-content:space-between;padding:8px 20px}.hunt-plan-form .plan-intro>p{flex:1;margin:0!important;font-size:11px}.plan-route-section>header{gap:16px}.plan-route-section>header>div:first-child{flex:1}.route-presets{margin:0;flex-wrap:nowrap}.route-map-viewport{height:min(42vh,400px)}
@media(max-width:1000px){.plan-route-section>header{flex-wrap:wrap}.route-presets{width:100%}.route-presets button{flex:1}}
@media(max-width:900px){.hunt-plan-form .plan-intro{display:none}.plan-route-section>header{gap:10px}.plan-route-section>header p{display:none}.route-map-viewport{height:clamp(215px,64vw,410px)}.route-presets{margin:0}}
@media(max-height:540px) and (orientation:landscape){
 #game-modal[data-menu-type=helper-plan]>header{padding:5px 14px;min-height:48px}#game-modal[data-menu-type=helper-plan]>header h2{font-size:18px}
 .hunt-plan-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr);grid-template-rows:auto minmax(0,1fr) auto}.hunt-plan-form>.plan-destination{grid-column:1;grid-row:1;grid-template-columns:1fr;padding:6px 10px;font-size:0}.hunt-plan-form>.plan-destination select{margin:0;font-size:12px;min-height:40px}.hunt-plan-form>.plan-tabs{grid-column:2;grid-row:1;padding:6px 10px 6px 0;border:0;align-items:stretch}.plan-tabs button{font-size:10px;padding:6px}.hunt-plan-form>.plan-workspace{grid-column:1/-1;grid-row:2;padding:8px 12px}.hunt-plan-form>.plan-footer{grid-column:1/-1;grid-row:3;padding:6px 12px}.plan-footer .action-button{min-height:40px}
 .plan-route-section>header>div:first-child{display:none}.plan-route-section>header{margin-bottom:8px}.route-presets{display:flex;gap:6px}.route-presets button{min-height:34px;font-size:10px}.route-editor-v2{grid-template-columns:minmax(0,1fr) 220px;gap:12px}.route-map-toolbar{margin-bottom:6px}.route-map-toolbar button{min-height:32px}.route-map-toolbar strong{font-size:10px}.route-map-viewport{height:max(120px,calc(100dvh - 235px))}
}

.helper-manual-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 18px;padding:13px;border:1px solid #548998;border-radius:9px;background:#193844}.helper-manual-banner[hidden],#quick-resume-route[hidden]{display:none!important}.helper-manual-banner b,.helper-manual-banner small{display:block}.helper-manual-banner b{font-size:13px;color:#bfe6ed}.helper-manual-banner small{font-size:11px;color:#a3bdc6;margin-top:5px}.helper-manual-banner button{flex-shrink:0}#quick-resume-route{color:#a7e5f0;border:1px solid #548998;border-radius:6px}.hunt-controls{flex-wrap:wrap}@media(max-width:600px){.helper-manual-banner{margin:8px;flex-wrap:wrap}.helper-manual-banner button{width:100%}.hunt-controls #quick-resume-route{font-size:11px}}

@media(max-width:600px){.hunt-controls:has(#quick-resume-route:not([hidden])){display:grid;grid-template-columns:1fr 1fr}.hunt-controls:has(#quick-resume-route:not([hidden]))>button{min-width:0;width:auto;margin:0}.hunt-controls:has(#quick-resume-route:not([hidden])) #quick-auto{grid-column:auto}}

/* Keep the status above both rows of manual combat controls on small screens. */
@media(max-width:1100px){.game-world:has(#quick-resume-route:not([hidden])) .world-context{bottom:calc(245px + env(safe-area-inset-bottom))}.game-world:has(#quick-resume-route:not([hidden])) .target-hud{bottom:calc(287px + env(safe-area-inset-bottom))}}
@media(max-width:1100px) and (max-height:540px) and (orientation:landscape){.game-world:has(#quick-resume-route:not([hidden])) .world-context{bottom:calc(177px + env(safe-area-inset-bottom))}.game-world:has(#quick-resume-route:not([hidden])) .target-hud{bottom:calc(214px + env(safe-area-inset-bottom))}}
