/* Field-guide panels extend the atlas palette without covering the map on arrival. */
#help-button.is-new{color:var(--gold)}#help-button{min-height:44px;white-space:nowrap}
#help-dialog{width:min(850px,calc(100vw - 28px));max-width:850px;max-height:min(90dvh,920px);padding:0;background:#101c28;color:#dfebf3;border:1px solid #405469;border-radius:16px;overflow:hidden}
#help-dialog[open]{display:flex;flex-direction:column}#help-dialog[hidden],[data-help-panel][hidden]{display:none!important}
.help-head{display:flex;justify-content:space-between;gap:18px;padding:25px 30px 18px;align-items:center}.help-head h2{font-family:Manrope,system-ui,sans-serif;font-size:25px;margin:8px 0 0;line-height:1.3}.help-head button{font-size:28px;min-width:44px;min-height:44px}
.help-nav{display:flex;gap:5px;padding:0 25px 12px;border-bottom:1px solid #304459;overflow-x:auto;flex-shrink:0}.help-nav button{padding:11px 13px;min-height:44px;font-size:14px;white-space:nowrap;border-radius:7px;color:#b6c7d7}.help-nav button[aria-pressed=true]{color:#f1c888;background:#283240}
#help-body{overflow:auto;overscroll-behavior:contain;padding:27px 30px;min-height:0;scrollbar-width:thin}#help-dialog h3{font-size:25px;line-height:1.25;margin:12px 0 15px;color:#edf3f9}#help-dialog p{font-size:16px;line-height:1.65;color:#becddb;margin:10px 0 17px}#help-dialog .eyebrow{color:#e6bb79;font-size:12px;line-height:1.5}
#help-dialog button:focus-visible,#help-dialog input:focus-visible,#help-dialog textarea:focus-visible,#help-dialog select:focus-visible,#help-dialog summary:focus-visible{outline:2px solid #edc488;outline-offset:3px}
#help-dialog button{font-family:inherit}#help-dialog button:disabled{opacity:.45;cursor:not-allowed}.help-intro{max-width:620px}.help-intro h3{font-size:38px!important;letter-spacing:-1px}.help-steps{list-style:none;padding:0;margin:26px 0;display:grid;gap:18px}.help-steps li{display:flex;gap:16px}.help-steps li>span{font:22px Georgia,serif;color:#c6a77a;padding-top:2px}.help-steps strong{font-size:16px;font-weight:600}.help-steps p{margin:4px 0 0!important}
.help-start-cards{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:27px 0}.help-start-cards button{text-align:left;border:1px solid #385660;border-radius:12px;padding:21px;background:linear-gradient(135deg,#173735,#182633);display:flex;gap:11px;flex-direction:column;min-height:165px}.help-start-cards button strong{font-size:20px;font-weight:600;color:#f3e3c8}.help-start-cards button>span:last-child{font-size:14px;line-height:1.6;color:#c4d4d8}.help-start-cards button:hover{border-color:#d8b276}
.help-progress-cta{border-block:1px solid #314657;padding:20px 0;margin:24px 0;display:flex;gap:20px;align-items:center}.help-progress-cta p{font-size:14px!important;margin-bottom:0!important}.help-progress-cta button{white-space:nowrap;color:#e6bb79;border:1px solid #655942;padding:12px;border-radius:7px;min-height:44px}
#help-dialog .help-primary{background:#e6bb79;color:#10202b;padding:12px 19px;font-size:15px;border-radius:7px;font-weight:600;min-height:44px}.help-install-card{display:flex;gap:17px;align-items:center;padding:22px 0}.help-install-card img{border-radius:16px;flex-shrink:0}.help-install-card strong{font-size:22px}.help-install-card span{display:block;color:#aabdd0;margin-top:6px;font-size:14px}
.help-instructions{margin:22px 0}.help-instructions details{border-bottom:1px solid #314657;padding:14px 0}.help-instructions summary{font-size:16px;line-height:1.5;color:#e7eef4;cursor:pointer;min-height:28px}.help-instructions details[open] summary{color:#e6bb79;margin-bottom:13px}.help-instructions li{font-size:16px;line-height:1.7;color:#becddb;margin:7px 0}.help-instructions button{color:#f0c88b;min-height:44px;text-align:left;padding:5px 0}
#help-dialog .help-note{border-left:2px solid #90794f;padding:8px 15px;background:#1d2932;font-size:14px}.help-copy{display:flex;gap:8px;margin-top:8px}.help-copy button{white-space:nowrap;border:1px solid #5d6470;padding:10px;border-radius:7px;min-height:44px}.help-copy input{flex:1;min-width:0}
#help-dialog label{display:block;font-size:14px;line-height:1.5;color:#d5e0e8}#help-dialog input,#help-dialog select,#help-dialog textarea{font:inherit;font-size:16px;background:#0d1721;color:#e2edf5;border:1px solid #40586e;border-radius:7px;padding:11px;max-width:100%;box-sizing:border-box}#help-dialog label>input:not([type=checkbox]),#help-dialog label>textarea,#help-dialog label>select{display:block;width:100%;margin-top:7px}#help-dialog textarea{resize:vertical;min-height:94px}#help-dialog form>label{margin-top:17px}.help-form-top{display:grid;grid-template-columns:145px 1fr;gap:14px;margin-top:25px}#help-dialog .help-check{display:flex;align-items:center;gap:10px;min-height:40px}#help-dialog input[type=checkbox]{width:18px;height:18px;accent-color:#d9b77c;flex-shrink:0}
#help-dialog .help-fine{font-size:13px;line-height:1.6;color:#9fb3c5;margin-top:13px}.help-switch{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.help-switch button{border:1px solid #40556a;border-radius:7px;padding:11px;font-size:14px;min-height:44px}.help-switch button[aria-pressed=true]{background:#304336;border-color:#799073;color:#dfefd9}.help-list-head{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-top:32px;flex-wrap:wrap}.help-list-head h3{font-size:20px!important;flex:1;margin:0!important}.help-list-head button{min-height:44px;color:#e6bb79}.help-list-head .help-status-filter{display:flex;align-items:center;gap:8px}.help-status-filter select{width:auto!important;margin:0!important}
.help-report{border:1px solid #354b60;border-radius:10px;padding:21px;margin:16px 0;background:#142331;overflow-wrap:anywhere}.help-report-meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap;color:#a9bcca;font-size:13px}.help-report-meta time{margin-left:auto;font-size:12px}.help-report h4{font-size:19px;line-height:1.45;margin:17px 0 10px}.help-state{font-size:12px;border:1px solid #63747a;padding:3px 8px;border-radius:20px}.state-resolved{background:#224035;color:#c3e4d1}.state-reviewing{background:#3b3426;color:#edcc98}.help-message{white-space:pre-wrap}.help-report>button{font-size:14px;color:#e6bb79;padding:10px 0;min-height:44px}.help-report form{margin-top:20px;border-top:1px solid #405160;padding-top:16px;display:grid;gap:12px}.help-report form>label{margin-top:0!important}.help-report form button{justify-self:start}.help-reply{background:#1c3536;border-left:2px solid #8da68b;padding:15px;margin-top:16px}.help-reply p{margin-bottom:0!important}.help-report .help-delete{display:block;color:#b5c6d4}.help-pagination{display:flex;align-items:center;gap:20px;justify-content:center;margin-top:22px;font-size:14px}.help-pagination button{padding:10px;min-height:44px}.help-empty{padding:18px;border:1px dashed #354b60;border-radius:8px}
#help-status{margin:0;padding:12px 28px!important;font-size:14px!important;background:#223c36;color:#d9eadc!important;border-top:1px solid #405650;flex-shrink:0;max-height:120px;overflow:auto}#help-status.error{background:#482d2c;color:#ffdbd2!important}.help-footer{border-top:1px solid #314657;display:flex;gap:15px;justify-content:space-between;align-items:center;padding:11px 28px;color:#9db0c1;font-size:12px;flex-shrink:0}.help-footer button{font-size:14px;min-height:44px;color:#e6bb79}
#connection-note{position:fixed;bottom:max(15px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:110;max-width:calc(100vw - 28px);width:540px;padding:12px 17px;border:1px solid #a18758;border-radius:9px;background:#293126;box-shadow:0 5px 25px #0008;color:#f3e4c5;font:14px/1.55 system-ui,sans-serif;pointer-events:none}
@media(max-width:600px){#help-dialog{max-height:calc(100dvh - 16px);width:calc(100vw - 16px);border-radius:12px}.help-head{padding:18px 19px 14px}.help-head h2{font-size:21px}.help-nav{padding:0 12px 10px;gap:0}.help-nav button{padding:10px;font-size:14px}#help-body{padding:22px 20px}.help-intro h3{font-size:31px!important}.help-start-cards{grid-template-columns:1fr;gap:12px}.help-start-cards button{min-height:0;padding:18px}.help-progress-cta{display:block}.help-progress-cta button{margin-top:14px}.help-form-top{grid-template-columns:1fr}.help-list-head{align-items:flex-start}.help-list-head h3{flex-basis:100%}.help-report{padding:17px}.help-report-meta time{margin-left:0}.help-footer{padding:8px 18px}.help-footer span{max-width:150px;line-height:1.5}#help-status{padding:11px 19px!important;max-height:100px}.help-copy{flex-wrap:wrap}.help-copy input{flex-basis:100%}.help-nav::-webkit-scrollbar{height:3px}}

.help-contact{border-top:1px solid #314657;margin-top:28px;padding-top:8px}#help-dialog .help-contact h3{font-size:18px}#help-dialog .help-contact p{font-size:14px}#help-dialog .help-contact a{color:#f0c88b;overflow-wrap:anywhere;text-underline-offset:3px}#help-dialog .help-contact a:focus-visible{outline:2px solid #edc488;outline-offset:3px}

/* Short, direct onboarding with one next action per step. */
.help-detours{list-style:none;margin:24px 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:14px}.help-detours li{display:flex;gap:12px;background:#152733;border:1px solid #39505f;border-radius:12px;padding:18px;min-width:0}.help-step-number{font:24px Georgia,serif;color:#d8b47c}.help-detours strong{display:block;font-size:17px;line-height:1.4;color:#f2e5cf}#help-dialog .help-detours p{font-size:14px;margin:8px 0}.help-detours button,.help-quick-tools button,.help-map-basics button{min-height:44px;padding:10px 12px;border:1px solid #6c624b;border-radius:8px;color:#f1cf94;text-align:left;line-height:1.4;font-size:14px}.help-detours button{margin-top:6px}.help-quick-tools{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.help-map-basics{margin:24px 0}.help-map-basics summary{min-height:44px;cursor:pointer;color:#efd2a3;padding:10px 0}#help-dialog .help-device-label{margin:16px 0}.help-install-steps{border:1px solid #3d5260;border-radius:12px;padding:8px 20px;background:#142530}.help-install-steps [hidden]{display:none!important}.help-install-steps ol{padding-left:22px}.help-install-steps li{font-size:16px;line-height:1.65;margin:10px 0;color:#d5e2eb}.help-reopen-check{border-left:2px solid #b69b6c;padding:12px 16px;margin:22px 0;background:#1b2d35}#help-dialog .help-reopen-check p{font-size:14px;margin:7px 0}
@media(max-width:600px){.help-detours{grid-template-columns:1fr}.help-detours li{padding:16px}.help-install-steps{padding:6px 12px}.help-reopen-check{padding:12px}.help-quick-tools button{flex:1 1 auto}.help-head,.help-footer{padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}}

@media(max-width:600px){.help-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible}.help-nav button{min-width:0;padding:10px 3px;font-size:13px;white-space:normal}}
