.ha-home{margin:24px 0 30px}.ha-heading{margin-bottom:16px}.ha-heading h2{margin:0 0 8px}.ha-heading p{margin:0;color:var(--muted,#68766b);font-size:14px;line-height:1.55}.ha-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ha-tile{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:12px;min-width:0;padding:18px 15px;border:1px solid #dce5d9;background:#fffdf7;border-radius:20px;color:#293d32;cursor:pointer;box-shadow:0 4px 14px #293d3205;transition:transform .25s ease,box-shadow .25s ease,background-color .25s ease}.ha-tile:hover{background:#f0f3e9;box-shadow:0 7px 20px #293d3210;transform:translateY(-2px)}.ha-tile:active{transform:scale(.98)}.ha-tile strong{font-size:14px;line-height:1.45;font-weight:600;overflow-wrap:anywhere}.ha-tile small{margin-top:auto;font-size:11px;color:#617165;line-height:1.5}.ha-symbol{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:#e9eee1;color:#426044}.ha-symbol svg{width:23px;height:23px}.ha-saved{background:#edf3e8;border-color:#cadbc7}.ha-form{display:grid;gap:24px}.ha-form>p,.ha-form .field,.ha-form .check{margin:0}.ha-options{padding:0;border:0;min-width:0;margin:0;display:grid;gap:10px}.ha-options legend{font-size:16px;line-height:1.5;font-weight:600;margin-bottom:14px;float:none;width:100%}.ha-counter{display:block;margin-top:6px;color:#74836e;font-size:13px;font-weight:400}.ha-option{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid #dce4d8;background:#fffdf8;border-radius:14px;line-height:1.5;font-size:14px;cursor:pointer;transition:background-color .22s ease,border-color .22s ease,box-shadow .22s ease}.ha-option:has(input:checked){background:#e9efdf;border-color:#8ca07d}.ha-option:has(input:disabled){opacity:.55;cursor:default}.ha-option input{width:18px;height:18px;flex:0 0 18px;accent-color:#426044;cursor:inherit}.ha-options.ha-invalid{outline:2px solid #b85b45;outline-offset:8px;border-radius:8px}.ha-field-error{margin:0;color:#a34432;font-size:13px}.ha-field-error:empty{display:none}.ha-result{display:grid;gap:20px}.ha-result h3,.ha-result p{margin:0;line-height:1.6}.ha-result-mark{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:#e4eedc;color:#426044;font-size:24px}.ha-result dl{margin:0;display:grid;gap:18px}.ha-result dt{color:#6b786d;font-size:12px;margin-bottom:5px}.ha-result dd{margin:0;line-height:1.6;font-size:15px;white-space:pre-wrap;overflow-wrap:anywhere}.ha-receipt,.ha-gift{padding:16px;border-radius:14px;background:#edf2e6;font-size:14px}.ha-result-actions{display:grid;gap:12px}.ha-manager-result{display:grid;gap:16px;padding:18px;background:#f1f3e9;border-radius:16px}.ha-manager-result p{white-space:pre-wrap}.ha-lots{margin:0}.ha-lots summary{cursor:pointer;font-weight:600;padding:8px 0}.ha-lot-list{display:grid;gap:8px;max-height:260px;overflow:auto;padding:2px}.ha-manager-tools{display:flex;flex-wrap:wrap;gap:14px;margin-bottom:22px}.ha-admin-card{margin-top:20px}.ha-admin-card h3{margin:0 0 14px}.ha-admin-card dl{display:grid;gap:12px;margin:20px 0}.ha-admin-card dt{font-size:13px;color:#69778b}.ha-admin-card dd{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.ha-admin-card details>summary{cursor:pointer;padding:14px 0;font-weight:600}.ha-admin-form{display:grid;gap:18px;padding-top:16px}.ha-admin-form .field{margin:0}.ha-admin-form .check{margin:0}.ha-admin-form .actions{margin-top:6px}.ha-admin-badge{display:inline-block;font-size:12px;padding:5px 10px;background:#eaf1e8;color:#36523b;border-radius:12px}.ha-admin-search{flex:1;min-width:180px}.ha-result .ha-result-actions button{min-height:48px}.ha-home button:focus-visible,.ha-option:focus-within{outline:2px solid #708c65;outline-offset:3px}
@media(min-width:700px){.ha-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ha-tile{padding:20px;min-height:170px}.ha-tile strong{font-size:16px}.ha-home{margin-bottom:40px}}@media(prefers-reduced-motion:reduce){.ha-tile,.ha-option{transition:none}.ha-tile:hover,.ha-tile:active{transform:none}}

/* Match existing form buttons while retaining native disclosure keyboard behavior. */
.ha-lots>summary{display:flex;align-items:center;justify-content:center;min-height:48px;padding:12px 16px;border:1px solid var(--line,#e3e4d9);border-radius:13px;background:#fff;color:var(--ink,#293d32);font:600 14px/1.45 Arial,Helvetica,sans-serif;text-align:center;list-style:none;cursor:pointer;transition:background-color .25s ease,border-color .25s ease,box-shadow .25s ease}
.ha-lots>summary::-webkit-details-marker{display:none}.ha-lots>summary::marker{content:''}
.ha-lots>summary:hover{background:#f1f3e9;border-color:#bbc9b3}.ha-lots[open]>summary{background:#edf2e6;border-color:#bbc9b3}.ha-lots>summary:focus-visible{outline:2px solid #708c65;outline-offset:3px}
.ha-lots>.detail-note{margin:16px 0 12px}
.ha-tile .ha-start{display:inline-flex;align-items:center;justify-content:center;min-height:36px;max-width:100%;margin-top:auto;padding:8px 12px;border:1px solid #293d32;border-radius:12px;background:#293d32;color:#fff;font-size:11px;font-weight:600;line-height:1.4;text-align:center;box-sizing:border-box;transition:background-color .25s ease,border-color .25s ease}
.ha-tile:hover .ha-start{background:#385440;border-color:#385440}
@media(prefers-reduced-motion:reduce){.ha-lots>summary,.ha-tile .ha-start{transition:none}}

/* One existing logical question per screen, with answers retained in the same form. */
.ha-step[hidden],.ha-wizard-nav [hidden]{display:none!important}.ha-step{display:grid;gap:22px;min-width:0}.ha-step>p,.ha-step>.field{margin:0}.ha-progress{display:grid;gap:10px}.ha-step-count{font-size:13px;color:var(--muted,#68766b)}.ha-progress-track{height:5px;overflow:hidden;border-radius:9px;background:#e6eadf}.ha-progress-track i{display:block;height:100%;background:#4c684e;border-radius:9px;transition:width .25s ease}.ha-wizard-nav{position:sticky;bottom:-20px;z-index:2;display:flex;align-items:stretch;gap:12px;background:var(--paper,#fffdf8);padding:16px 0 6px;margin-top:4px;border-top:1px solid #e1e6db}.ha-wizard-nav button{min-height:48px;flex:1;white-space:normal}.ha-wizard-nav button[disabled]{opacity:.45;cursor:default}.ha-form .error:empty{display:none}.ha-step .ha-options{padding:4px}.ha-step .ha-options legend{font-size:17px}.ha-form{gap:20px}@media(prefers-reduced-motion:reduce){.ha-progress-track i{transition:none}}

/* Keep navigation outside the scrolling content, full width and above safe areas. */
#sheet[open]:has(#ha-form){display:flex;flex-direction:column;overflow:hidden;background:#fff;max-height:calc(100dvh - 40px)}
#sheet:has(#ha-form)>.sheet-header{position:relative;flex:0 0 auto}
#sheet:has(#ha-form)>.sheet-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-padding:20px}
#sheet>.ha-wizard-nav{position:relative;bottom:auto;flex:0 0 auto;box-sizing:border-box;width:100%;margin:0;padding:16px 24px max(16px,env(safe-area-inset-bottom,0px));border-top:1px solid var(--line,#e1e6db);background:#fff}
#sheet>.ha-wizard-nav button{box-sizing:border-box;min-width:0;min-height:48px;margin:0}
@media(max-width:650px){#sheet>.ha-wizard-nav{padding-left:18px;padding-right:18px}}
