/* Reviewed Gemini draft-czxx04pg, scoped to the independent read-only pane. */
.location-history{--lh-navy:#0e243a;--lh-navy-muted:#334e68;--lh-surface-pale:#f0f4f8;--lh-border:#ccd9e2;--lh-border-strong:#9fb3c8;--lh-notice-bg:#fff8e6;--lh-notice-border:#f0b429;--lh-focus-ring:#d97706;box-sizing:border-box;max-width:100%;margin:16px auto;padding:16px;background:#fff;color:var(--lh-navy);border:1px solid var(--lh-border);border-radius:8px;font-family:system-ui,sans-serif;line-height:1.4;overflow-wrap:anywhere}
.location-history *{box-sizing:border-box;min-width:0}.location-history [hidden],.location-history[hidden]{display:none!important}
.location-history button,.location-history input,.location-history select{font:inherit;min-height:44px;border:1px solid var(--lh-border);border-radius:6px;background:#fff;color:var(--lh-navy)}
.location-history button{min-width:44px;padding:10px 14px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;line-height:1.3}
.location-history button:hover{background:var(--lh-surface-pale);border-color:var(--lh-border-strong)}.location-history :is(button,input,select):focus-visible{outline:3px solid var(--lh-focus-ring);outline-offset:2px}.location-history button:disabled{opacity:.5;cursor:default}
.location-history .lh-header{display:flex;flex-direction:column;gap:16px;padding-bottom:16px;border-bottom:1px solid var(--lh-border)}
.location-history .lh-eyebrow{margin:0 0 4px;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--lh-navy-muted)}
.location-history .lh-title{font-size:1.35rem;margin:0 0 6px;line-height:1.25}.location-history .lh-scope-note{margin:0;font-size:.85rem;color:var(--lh-navy-muted)}
.location-history .lh-actions{display:flex;flex-wrap:wrap;gap:8px}.location-history .lh-filters{display:grid;grid-template-columns:1fr;gap:10px;margin:16px 0;align-items:end}.location-history .lh-filters label{display:grid;gap:4px;font-size:.85rem;font-weight:600}.location-history .lh-filters :is(input,select){width:100%;padding:8px}
.location-history .lh-totals{margin:14px 0;padding:10px 14px;background:var(--lh-surface-pale);border:1px solid var(--lh-border);border-radius:6px;font-size:.9rem;font-weight:600}
.location-history .lh-notice{margin:0 0 16px;padding:12px 14px;background:var(--lh-notice-bg);border:1px solid var(--lh-notice-border);border-radius:6px;font-size:.875rem;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.location-history .lh-notice button{padding:8px 16px;font-weight:700}
.location-history .lh-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}.location-history .lh-areas{margin-bottom:20px}.location-history :is(.lh-dates,.lh-photos){display:flex;flex-direction:column;gap:8px}.location-history h3{margin:0;font-size:1.1rem}.location-history .lh-page-note{margin:4px 0 8px;font-size:.8rem;color:var(--lh-navy-muted)}
.location-history :is(.lh-date-list,.lh-area-list){display:grid;gap:8px}.location-history :is(.lh-date-list,.lh-area-list) button{flex-direction:column;align-items:stretch;text-align:left;width:100%;padding:10px 14px}.location-history :is(.lh-date-list,.lh-area-list) strong{font-size:.95rem}.location-history :is(.lh-date-list,.lh-area-list) :is(span,small){font-size:.8rem}.location-history button[aria-pressed="true"]{background:var(--lh-surface-pale);border:2px solid var(--lh-navy)}
.location-history .lh-pager{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;padding-top:12px;border-top:1px solid var(--lh-border)}.location-history .lh-pager span{font-size:.85rem;text-align:center}
.location-history .lh-photo-list{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.location-history .lh-photo{background:#fff;border:1px solid var(--lh-border);border-radius:6px;padding:12px;display:flex;flex-direction:column;gap:8px}.location-history .lh-photo p{margin:0;font-size:.9rem;font-weight:600}.location-history .lh-photo small{font-size:.75rem;color:var(--lh-navy-muted)}
.location-history .lh-thumbnail{background:var(--lh-surface-pale);border:1px dashed var(--lh-border-strong);border-radius:4px;min-height:140px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;font-size:.85rem;font-weight:500;padding:12px;overflow:hidden}.location-history .lh-thumbnail img{max-width:100%;width:100%;max-height:240px;object-fit:contain;display:block}
@media(min-width:600px){.location-history .lh-header{flex-direction:row;align-items:flex-start;justify-content:space-between}.location-history .lh-actions{max-width:380px}.location-history :is(.lh-photo-list,.lh-area-list){grid-template-columns:repeat(2,minmax(0,1fr))}.location-history .lh-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1024px){.location-history .lh-grid{grid-template-columns:280px minmax(0,1fr);gap:24px;align-items:start}.location-history .lh-dates{position:sticky;top:16px}}
@media(min-width:1280px){.location-history{padding:24px}.location-history .lh-grid{grid-template-columns:320px minmax(0,1fr);gap:32px}.location-history .lh-photo-list{gap:16px}.location-history .lh-thumbnail{min-height:180px}}
