[hidden] { display: none !important; }
.saved-result, .history { border:1px solid var(--line); border-radius:14px; background:var(--surface); padding:22px; margin:0 0 24px; }
.saved-result h2, .history h2 { margin:0; font-size:1.125rem; font-weight:600; letter-spacing:-.02em; }
.saved-result > p { color:var(--muted); font-size:.875rem; margin:10px 0 0; }
.saved-meta { display:flex; flex-wrap:wrap; gap:8px 20px; margin:10px 0 18px; font-size:.875rem; color:var(--muted); }
#saved-result-region { color:var(--text); }
.share-controls { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.share-url { flex:1 1 240px; min-width:0; width:100%; color:var(--text); background:var(--bg); border:1px solid var(--line); border-radius:7px; padding:12px; font:inherit; font-size:.875rem; }
.small-button { border:1px solid #496278; border-radius:7px; background:#24384b; color:var(--text); padding:11px 15px; font:inherit; font-size:.875rem; cursor:pointer; min-height:44px; }
.text-action { border:0; background:none; color:var(--cyan); padding:6px 0; font:inherit; font-size:.875rem; cursor:pointer; text-decoration:underline; text-underline-offset:4px; min-height:36px; display:inline-flex; align-items:center; }
.text-action:disabled { color:var(--muted); cursor:default; text-decoration:none; }
.history-heading { display:flex; justify-content:space-between; gap:16px; align-items:center; }
.history-intro { font-size:.875rem; color:var(--muted); margin:8px 0 20px; }
.history-list { list-style:none; padding:0; margin:0; }
.history-item { padding:18px 0; border-top:1px solid var(--line); }
.history-item:last-child { padding-bottom:0; }
.history-top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.history-top time { font-size:.875rem; }
.history-region { overflow-wrap:anywhere; display:block; color:var(--muted); font-size:.875rem; margin-top:3px; }
.history-values { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:15px 0 0; }
.history-values dt { color:var(--muted); font-size:.8125rem; }
.history-values dd { margin:3px 0 0; font-size:.9375rem; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.history-empty { color:var(--muted); margin:0; font-size:.9375rem; }
.clear-confirmation { border:1px solid #927342; background:#292317; padding:15px; border-radius:8px; margin:10px 0 18px; }
.clear-confirmation p { margin:0 0 10px; }
.clear-confirmation button { margin-right:10px; }
.public-result { min-height:65vh; }
.public-result .intro { padding-top:48px; }
.shared-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:24px; padding:30px; border:1px solid var(--line); border-radius:16px; background:var(--surface); margin-bottom:16px; }
.shared-summary > div { min-width:0; }
.detail-label, .detail-note { display:block; color:var(--muted); font-size:.875rem; }
.shared-summary strong, .shared-summary time { display:block; font-size:1.25rem; line-height:1.45; font-weight:550; margin:9px 0; overflow-wrap:anywhere; }
.public-actions { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:24px; margin:32px 0 8px; }
.public-actions .start-button { text-decoration:none; }
.public-notes { margin:30px 0; padding-top:16px; border-top:1px solid var(--line); color:var(--muted); font-size:.9375rem; }
@media(max-width:600px) {
 .saved-result, .history { padding:17px; }
 .history-heading { align-items:flex-start; }
 .history-top { flex-wrap:wrap; }
 .history-values { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .shared-summary { padding:22px; }
 .public-result .intro { padding-top:28px; }
}
