/* An editorial search layer. Shared header, artwork and provenance remain unchanged. */
.history-entry{border-top:1px solid #302c25;border-bottom:1px solid #302c25;padding:64px 0;background:#0b0a08}
.history-entry .wrap{display:flex;align-items:center;justify-content:space-between;gap:36px}
.history-eyebrow,#historyEntryKicker{font:500 11px/1.5 var(--sans,Arial,sans-serif);letter-spacing:.12em;text-transform:uppercase;color:#c4a575}
.history-entry h2{font:400 clamp(28px,3.6vw,44px)/1.18 Georgia,serif;margin:14px 0;color:#e9e5dc;max-width:24ch}
.history-entry p{font-size:16px;line-height:1.7;color:#aaa69e;margin:0}
.history-entry button{flex-shrink:0;border:1px solid #65533a;color:#e9e5dc;background:none;padding:16px 22px;font:inherit;cursor:pointer}
#commandDialog{width:min(calc(100% - 24px),1060px);max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#65533a #0b0a08}
#commandDialog .command-close{top:12px;right:12px;position:absolute;width:36px;height:36px;font-size:24px;border:0;background:#0b0a08;z-index:10}
#commandDialog .unified-search-heading{padding:22px 60px 18px 24px;display:block}
#commandDialog .unified-search-heading span{font-size:11px}
#commandDialog .unified-search-heading b{display:block;margin-top:8px;font-size:16px;line-height:1.5;color:#c5c0b5}
#commandDialog .search-form{padding:16px 24px;display:flex;gap:12px;min-width:0}
#commandDialog .search-form input{min-width:0;width:100%;font-size:16px;padding:12px 0}
#commandDialog .search-form button{white-space:nowrap;min-width:70px;font-size:14px}
#commandDialog .search-lower{padding:0 24px 16px;display:flex;gap:12px;flex-wrap:wrap}
#commandDialog .search-lower span,#commandDialog .latest-button{font-size:12px;line-height:1.5}
#historySearch{padding:0 24px 24px;font:400 14px/1.65 var(--sans,Arial,sans-serif);color:#aaa69e}
.history-topics{display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid #302c25;padding-top:20px}
.history-topic,.history-filters button{font:inherit;cursor:pointer;border:1px solid #38332b;color:#d8d3c9;background:transparent;padding:7px 14px;min-height:40px}
.history-topic:hover,.history-filters button[aria-pressed=true]{border-color:#b89a68;background:#211b12;color:#e9d5b0}
.history-scope{margin:14px 0 8px;color:#aaa69e;font-size:13px}
.history-query-status{font-size:13px;color:#d1b380;margin:18px 0 0}.history-query-status:empty{display:none}
.history-source-language{display:flex;align-items:center;gap:12px;font-size:14px;color:#c5c0b5;margin:12px 0}.history-source-language select{font:inherit;background:#13110d;color:#eee8dc;border:1px solid #494033;padding:8px 10px;max-width:190px}
.history-excerpt{font-size:14px;line-height:1.8;color:#bcb6aa;margin:0 0 18px;overflow-wrap:anywhere}
.history-source-report{margin:24px 0 14px;border-top:1px solid #39332b;padding-top:14px}.history-source-report>summary{font-size:14px;color:#c4a575;cursor:pointer;padding:8px 0}.history-source-row{padding:14px 0;border-bottom:1px solid #302c25}.history-source-row>a{font-size:14px}.history-source-row p,.history-source-warning{font-size:13px;line-height:1.7;color:#aaa69e;margin:7px 0}.history-source-row .history-more{width:auto;margin-top:4px}
.history-load-sources{display:block;width:100%;min-height:48px;margin:20px 0;background:#211b12;color:#e7d2ad;border:1px solid #68563b;cursor:pointer;font:inherit;font-size:14px}.history-load-sources:disabled{opacity:.6;cursor:wait}
.history-method{font-size:13px;color:#a7a298;line-height:1.8}
.history-method summary{color:#c4a575;cursor:pointer;padding:6px 0}
.history-method p{max-width:90ch;margin:8px 0 18px}
.history-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:24px 0 18px}
.history-filters{display:flex;gap:6px;flex-wrap:wrap}.history-filters button{font-size:12px;padding:5px 12px}
.history-share,.history-source{color:#c4a575;font-size:12px;line-height:1.6;text-decoration:none;overflow-wrap:anywhere}
.history-share:hover,.history-source:hover{text-decoration:underline}
.history-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.history-card{min-width:0;border:1px solid #39332b;padding:22px;background:linear-gradient(145deg,#15120d,#0a0908 70%);align-self:start}
.history-card-meta{display:flex;gap:14px;align-items:center;justify-content:space-between;font-size:12px;color:#c4a575;letter-spacing:.04em}
.history-card h3{font:400 25px/1.25 Georgia,'Noto Serif',serif;color:#eee9df;margin:14px 0 10px;overflow-wrap:anywhere}
.history-zone{font-size:11px;line-height:1.6;color:#a7a298;margin:0 0 20px;overflow-wrap:anywhere}
.history-block-preview{display:flex;align-items:center;min-height:136px;gap:12px;padding:12px 0;border-top:1px solid #332e26;border-bottom:1px solid #332e26}
.history-crystal{width:112px;height:112px;flex:0 0 112px;object-fit:contain}.history-crystal[hidden]{display:none}
.history-block-facts{min-width:0;display:flex;flex-direction:column;gap:5px;align-items:flex-start}
.history-height{font:400 clamp(20px,2.3vw,27px)/1.3 Georgia,serif;color:#efe9dd;overflow-wrap:anywhere}
.history-block-facts time{font-size:11px;color:#b2ada4}
.history-explore{font-size:14px;color:#d1b380;min-height:40px;display:inline-flex;align-items:center;text-decoration:none}
.history-pending,.history-empty{font-size:14px;color:#b9b3a9}.history-empty{padding:24px 0}
.history-card-sources{display:flex;flex-wrap:wrap;gap:8px 20px;justify-content:space-between;padding-top:16px}
.history-day{margin-top:18px;border-top:1px solid #332e26;padding-top:4px}.history-day summary{padding:12px 0;cursor:pointer;font-size:13px;color:#d7cfbf}
.history-day-note{font-size:12px;color:#aaa69e;margin:0 0 12px}
.history-day-blocks{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.history-day-blocks a{display:flex;flex-direction:column;gap:3px;min-width:0;padding:10px;border:1px solid #332e26;text-decoration:none;color:#e2d5bd}
.history-day-blocks b{font-size:13px;font-weight:500}.history-day-blocks time{font-size:10px;color:#aaa69e;overflow-wrap:anywhere}
.history-more,.history-retry{background:none;border:1px solid #65533a;color:#d1b380;padding:10px 14px;margin-top:12px;cursor:pointer;font:inherit;font-size:12px;min-height:42px}.history-more{width:100%}.history-more:disabled{opacity:.6;cursor:default}
.history-context{padding:18px 20px;margin:20px auto 0;max-width:560px;border-left:2px solid #b99a63;text-align:left;background:#13110d}
.history-context[hidden]{display:none}.history-context strong{display:block;font:400 22px/1.35 Georgia,serif;color:#e9e5dc;margin:8px 0}.history-context p{font-size:12px;line-height:1.7;color:#aaa69e;margin:8px 0;overflow-wrap:anywhere}
.history-context button{background:none;border:0;color:#c4a575;font:inherit;font-size:12px;padding:8px 12px;cursor:pointer}
#historySearch a:focus-visible,#historySearch button:focus-visible,#historySearch summary:focus-visible,.history-entry button:focus-visible{outline:2px solid #c4a575;outline-offset:4px}
@media(max-width:720px){.history-entry{padding:40px 0}.history-entry .wrap{display:block}.history-entry button{margin-top:22px}.history-entry h2{font-size:32px}.history-grid{grid-template-columns:minmax(0,1fr)}#commandDialog{width:calc(100% - 20px);max-height:calc(100dvh - 20px)}#commandDialog .unified-search-heading{padding:18px 54px 14px 16px}#commandDialog .search-form{padding:12px 16px;gap:8px}#commandDialog .search-lower{padding:0 16px 12px}#historySearch{padding:0 16px 18px}.history-card{padding:18px}.history-card h3{font-size:25px}.history-crystal{width:96px;height:96px;flex-basis:96px}.history-height{font-size:24px}.history-context{width:calc(100% - 28px);box-sizing:border-box;margin-bottom:22px}.history-topics{gap:6px}.history-topic{padding:7px 11px}.history-context button{padding-left:0;display:block}}
@media(prefers-reduced-motion:reduce){#commandDialog[open]{animation:none}}
