/* Personal navigation and history; owned by this component, not global details. */
.scan-result-breadcrumbs{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:8px}
.scan-result-breadcrumbs .back{margin-bottom:0;min-width:0;overflow-wrap:anywhere}
.scan-result-all-scans{flex:0 0 auto;margin-left:auto;color:var(--green);font-size:14px;font-weight:700;text-decoration:none}
.scan-result-all-scans:hover{text-decoration:underline}
.scan-daily-limit{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px 12px;padding:10px 0;margin:0 0 12px;border-bottom:1px solid var(--line);font-size:13px;line-height:1.4;color:var(--dark)}
.scan-daily-limit-note{color:var(--green);font-weight:600}.scan-daily-limit-note.is-exhausted{color:#84612f}
.topbar-actions{display:flex;align-items:center;gap:10px;min-width:0}
.account-menu{position:relative;flex:0 0 auto}
.account-menu-toggle{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid var(--line);border-radius:12px;background:var(--card);cursor:pointer;list-style:none;color:var(--dark)}
.account-menu-toggle::-webkit-details-marker{display:none}
.account-menu-toggle::marker{content:''}
.account-menu-toggle:focus-visible,.account-menu-links a:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.account-menu-bars{display:flex;width:18px;flex-direction:column;gap:4px}
.account-menu-bars span{height:2px;width:18px;background:currentColor;border-radius:2px;transition:transform .15s,opacity .15s}
.account-menu[open] .account-menu-toggle{background:var(--band);border-color:var(--green)}
.account-menu[open] .account-menu-bars span:first-child{transform:translateY(6px) rotate(45deg)}
.account-menu[open] .account-menu-bars span:nth-child(2){opacity:0}
.account-menu[open] .account-menu-bars span:last-child{transform:translateY(-6px) rotate(-45deg)}
.account-menu-links{position:absolute;right:0;top:calc(100% + 9px);width:220px;max-width:calc(100vw - 32px);box-sizing:border-box;padding:7px;background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 35px rgba(22,58,30,.16);z-index:25}
.account-menu-links a{display:flex;align-items:center;min-height:44px;box-sizing:border-box;padding:10px 14px;border-radius:10px;font-size:15px;line-height:1.3;font-weight:600;color:var(--dark);text-decoration:none}
.account-menu-links a:hover,.account-menu-links a[aria-current=page]{background:var(--band);color:var(--green)}
.history-page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin:14px 0 20px}
.history-page-heading h1{margin:0 0 6px}
.history-page-heading .sub{margin:0;font-size:13px;line-height:1.4}
.history-new-scan{display:inline-flex;align-items:center;justify-content:center;gap:5px;box-sizing:border-box;min-height:40px;padding:9px 12px;border:1px solid var(--green);border-radius:11px;color:var(--green);background:var(--card);font-size:13px;font-weight:700;text-decoration:none;white-space:nowrap}
.history-new-scan:hover{background:var(--band)}
.history-guest-note{background:var(--band);padding:15px 16px;border-radius:14px;margin-bottom:20px;font-size:13px;line-height:1.5;color:var(--dark)}
.history-guest-note b{font-size:14px}
.history-guest-note p{margin:6px 0 9px;color:var(--muted)}
.history-guest-note a,.history-section-heading a,.history-text-link{font-weight:600;color:var(--green);text-decoration:none}
.card.scan-history-card{display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px;padding:10px;margin-bottom:10px;align-items:start}
.scan-history-photo{width:100%;aspect-ratio:1;height:auto;border-radius:10px;overflow:hidden;background:#edf0ea;align-self:start}
.scan-history-photo img{display:block;width:100%;height:100%;aspect-ratio:1;object-fit:scale-down}
.scan-history-no-photo{display:flex;align-items:center;justify-content:center;aspect-ratio:1;width:100%;height:100%;color:#91a28e}
.scan-history-no-photo svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.5}
.scan-history-content{display:flex;min-width:0;align-items:flex-start;flex-direction:column;gap:3px;padding:0}
.scan-history-date{font-size:11px;line-height:1.3;color:var(--muted)}
.scan-history-category{font-size:15px;line-height:1.35;font-weight:700;margin:0;overflow-wrap:anywhere;color:var(--dark)}
.scan-history-status{display:inline-block;max-width:100%;box-sizing:border-box;font-size:11px;line-height:1.35;font-weight:600;padding:3px 7px;border-radius:6px;background:#eef1f3;color:#496173}
.scan-history-status--confirmed{background:#e3f4e5;color:#236b35}
.scan-history-status--rejected{background:#f5eee5;color:#84612f}
.scan-history-status--fallback{background:#f5eee5;color:#84612f}
.scan-history-results{align-self:flex-end;text-align:right;font-size:13px;font-weight:700;color:var(--green);text-decoration:none;margin-top:2px;padding-top:0;line-height:1.4}
.scan-history-results:hover{text-decoration:underline}
.history-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 12px}
.history-section-heading h2{font-size:19px;line-height:1.3;margin:0}
.history-section-heading a{font-size:13px;white-space:nowrap}
.card.history-empty{display:flex;align-items:center;gap:12px;text-align:center;padding:32px 20px}
.history-empty h2{font-size:20px;margin:0}
.history-empty p{font-size:14px;color:var(--muted);line-height:1.55;margin:0;max-width:310px}
.history-empty-icon{background:var(--band);border-radius:20px;padding:12px;color:var(--green);margin-bottom:2px}
.history-empty-icon svg{display:block;width:42px;height:42px}
.card.history-empty-compact{padding:20px;align-items:flex-start;text-align:left}
.history-text-link{font-size:13px}
.history-pagination{display:flex;justify-content:space-between;align-items:center;margin:22px 0;font-size:13px;gap:12px}
.history-pagination a{color:var(--green);font-weight:600;text-decoration:none;padding:10px 0}
.history-pagination span{color:var(--muted)}
@media(max-width:370px){.topbar-actions{gap:7px}.topbar-stats{gap:7px}.account-menu-toggle{width:36px;height:36px}.history-page-heading{gap:8px}.history-new-scan{padding:8px;font-size:12px}.card.scan-history-card{grid-template-columns:82px minmax(0,1fr);gap:12px}.scan-history-category{font-size:14px}}
@media(prefers-reduced-motion:reduce){.account-menu-bars span{transition:none}}
