html[data-theme="dark"] .guide-nav-link:hover{background:var(--site-hover);color:var(--site-accent)}
.generation-history{max-width:1580px;margin:0 auto;color:var(--site-ink);padding:10px 0 35px}
.history-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:32px}
.history-eyebrow{font-size:10px;letter-spacing:2.5px;color:var(--site-muted);font-weight:700}
.history-heading h1{font-size:30px;letter-spacing:-1px;display:flex;align-items:center;gap:14px;margin:11px 0}
.history-heading h1 span{font-size:11px;letter-spacing:0;font-weight:500;padding:6px 11px;border-radius:20px;background:var(--site-hover);color:var(--site-accent)}
.history-heading p{font-size:13px;color:var(--site-muted);margin:0;line-height:1.8}
.history-tools{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:18px}
.history-kind-tabs{display:flex;gap:4px;background:var(--site-soft);border:1px solid var(--site-line);border-radius:12px;padding:5px}
.history-kind-tabs button{display:flex;align-items:center;gap:9px;border:0;border-radius:8px;padding:9px 18px;background:transparent;color:var(--site-muted);font-size:13px;cursor:pointer}
.history-kind-tabs button[aria-pressed=true]{background:var(--site-surface);color:var(--site-accent);box-shadow:0 2px 8px #00000008;font-weight:700}
.history-kind-tabs span{font-size:11px;opacity:.8}
#generation-history-search{display:flex;align-items:center;gap:9px;border:1px solid var(--site-line);background:var(--site-surface);border-radius:10px;padding:0 6px 0 13px;width:390px;max-width:100%;height:43px}
#generation-history-search input{min-width:0;flex:1;width:100%;padding:10px 0;border:0;outline:0;background:transparent;color:var(--site-ink);font-size:12px}
.history-search-label{color:var(--site-muted);display:flex}.history-search-label svg{width:17px;height:17px}
#generation-history-search button{border:0;border-radius:6px;padding:6px 10px;background:var(--site-soft);color:var(--site-muted);cursor:pointer;font-size:11px;white-space:nowrap}
.history-filters{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:15px 18px;border:1px solid var(--site-line);border-radius:12px;background:var(--site-surface)}
.history-filters label{display:flex;align-items:center;gap:10px;color:var(--site-muted);font-size:11px}
.history-filters select{width:150px;min-width:80px;max-width:200px;padding:7px 27px 7px 9px;border:1px solid var(--site-line);border-radius:7px;background:var(--site-bg);color:var(--site-ink);font-size:12px;text-overflow:ellipsis}
.history-filters .text-action{margin-left:auto;font-size:11px;white-space:nowrap}
.history-results-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:22px 0 15px;font-size:11px;color:var(--site-muted)}
.history-results-bar p{margin:0}.history-results-bar>span{font-size:10px}
.history-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:20px}
.history-card{border:1px solid var(--site-line);border-radius:13px;overflow:hidden;background:var(--site-surface);transition:box-shadow .2s,border-color .2s}
.history-card:hover{border-color:var(--site-accent);box-shadow:0 7px 25px #30285313}
.history-card-preview{display:block;width:100%;position:relative;aspect-ratio:16/10;padding:0;border:0;overflow:hidden;background:var(--site-soft);cursor:pointer;color:var(--site-muted)}
.history-card-preview img,.history-card-preview video{display:block;width:100%;height:100%;object-fit:contain}
.history-card-preview img{transition:transform .2s}.history-card:hover .history-card-preview img{transform:scale(1.025)}
.history-media-type,.history-operation{position:absolute;top:10px;left:10px;font-size:10px;color:#fff;background:#151822ab;border:1px solid #ffffff22;border-radius:6px;padding:4px 7px;backdrop-filter:blur(8px)}
.history-operation{left:auto;right:10px}
.history-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border:1px solid #ffffff66;background:#1518228f;color:white;border-radius:50%;width:40px;height:40px;display:grid;place-items:center;font-size:13px;padding-left:2px}
.history-card-info{padding:15px 15px 0}
.history-card-origin{display:flex;justify-content:space-between;align-items:center;gap:10px;color:var(--site-muted);font-size:10px;margin-bottom:9px}
.history-card-origin>span{color:var(--site-accent)}
.history-card-title{display:block;width:100%;background:none;border:0;text-align:left;font-size:13px;font-weight:650;color:var(--site-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0;cursor:pointer;line-height:1.7}
.history-card-info>p{margin:4px 0 10px;color:var(--site-muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.history-card-model{font-size:10px;display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--site-muted);height:21px}
.history-card-model span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:70%}
.history-card-model small{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.history-card-actions{border-top:1px solid var(--site-line);display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:12px 0}
.history-card-actions button,.history-card-actions a{display:flex;align-items:center;gap:4px;border:0;background:none;color:var(--site-muted);font-size:10px;padding:0;cursor:pointer;text-decoration:none;white-space:nowrap}
.history-card-actions button:hover,.history-card-actions a:hover{color:var(--site-accent)}
.history-card-actions svg{width:12px;height:12px}.history-card-actions button:disabled{opacity:.5}
.history-pagination{display:flex;justify-content:center;align-items:center;gap:22px;margin-top:30px;color:var(--site-muted);font-size:12px}
.history-pagination .outline-btn{font-size:12px;padding:8px 14px}
.history-empty,.history-loading{min-height:340px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--site-muted);gap:12px}
.history-empty>span{width:68px;height:68px;border-radius:18px;background:var(--site-soft);display:grid;place-items:center}
.history-empty svg{width:28px;height:28px}.history-empty h2{font-size:19px;color:var(--site-ink);margin:4px 0}
.history-empty p{font-size:12px;line-height:1.8;max-width:550px;margin:0 0 8px}
.history-loading{font-size:12px;min-height:370px}.history-loading>span{width:25px;height:25px;border:2px solid var(--site-line);border-top-color:var(--site-accent);border-radius:50%;animation:history-spin .8s linear infinite}
@keyframes history-spin{to{transform:rotate(360deg)}}
.history-preview-dialog{width:min(1220px,94vw);max-height:90vh;padding:0;border:1px solid var(--site-line);border-radius:17px;background:var(--site-surface);color:var(--site-ink);box-shadow:var(--site-shadow);overflow:auto}.history-preview-dialog[open]{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr)}.history-preview-dialog::backdrop{background:#090c19b8;backdrop-filter:blur(6px)}.history-preview-close{position:absolute;top:11px;right:11px;z-index:2;background:var(--site-soft);color:var(--site-ink);border:1px solid var(--site-line);border-radius:50%;width:31px;height:31px;font-size:22px;cursor:pointer}.history-preview-media{position:relative;min-height:440px;display:flex;align-items:center;justify-content:center;background:#10121a;padding:20px}.history-preview-media img,.history-preview-media video{width:100%;max-height:80vh;object-fit:contain}.history-preview-media-error{position:absolute;inset:auto 20px 20px;background:#2a2637e8;color:#ffced3;padding:13px;line-height:1.7;font-size:12px}.history-preview-details{padding:35px 27px 28px;overflow:auto;max-height:87vh}.history-preview-details h2{font-size:18px;line-height:1.6;margin:12px 10px 16px 0;overflow-wrap:anywhere}.history-preview-actions{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:22px}.history-preview-actions .primary-btn,.history-preview-actions .outline-btn{font-size:11px;text-decoration:none;padding:9px 13px;display:flex;gap:6px;align-items:center}.history-preview-actions svg{width:14px;height:14px}.history-preview-details dl{margin:0;font-size:11px}.history-preview-details dl>div{display:grid;grid-template-columns:70px 1fr;padding:9px 0;border-bottom:1px solid var(--site-line);gap:10px}.history-preview-details dt{color:var(--site-muted)}.history-preview-details dd{margin:0;overflow-wrap:anywhere}.history-prompt-heading{display:flex;align-items:center;justify-content:space-between;margin-top:23px}.history-prompt-heading h3{font-size:12px;margin:0}.history-prompt-heading button{font-size:10px}.history-full-prompt{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:11px;line-height:1.9;max-height:260px;overflow:auto;padding:13px;border-radius:8px;background:var(--site-soft);color:var(--site-ink);border:1px solid var(--site-line)}.history-preview-loading{padding:100px 60px;color:var(--site-muted);font-size:13px}.history-preview-dialog>.history-empty{grid-column:1/-1;padding:30px}.generation-history :is(button,a,input,select):focus-visible,.history-preview-dialog :is(button,a):focus-visible{outline:2px solid var(--site-accent);outline-offset:3px}
@media(min-width:1700px){.history-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}@media(max-width:1100px){.history-filters label{flex:1;min-width:180px}.history-filters select{flex:1;width:120px;max-width:100%}.history-filters .text-action{margin-left:0}}@media(max-width:760px){.generation-history{padding:0}.history-heading{gap:10px;margin-bottom:25px;align-items:flex-start}.history-heading h1{font-size:24px}.history-heading>button{padding:8px 10px;font-size:11px;white-space:nowrap}.history-heading>button svg{display:none}.history-heading p{font-size:11px}.history-tools{flex-wrap:wrap;gap:12px}#generation-history-search{width:100%}.history-kind-tabs{width:100%}.history-kind-tabs button{justify-content:center;flex:1}.history-filters{padding:12px;gap:11px}.history-filters label{min-width:calc(50% - 10px);font-size:10px;gap:5px}.history-filters select{min-width:0;width:100px;font-size:11px}.history-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.history-card-info{padding:10px 10px 0}.history-card-origin{font-size:9px;flex-wrap:wrap;gap:4px}.history-card-title{font-size:12px}.history-card-model{display:block;height:auto}.history-card-model span{max-width:100%;display:block}.history-card-model small{display:none}.history-card-actions{gap:7px;flex-wrap:wrap;padding:10px 0;margin-top:8px}.history-card-actions :is(a,button){font-size:9px}.history-card-actions svg{display:none}.history-results-bar>span{display:none}.history-preview-dialog[open]{display:block}.history-preview-dialog{width:95vw}.history-preview-media{min-height:230px;padding:12px}.history-preview-media :is(img,video){max-height:47vh}.history-preview-details{max-height:none;padding:24px 20px}.history-preview-details h2{font-size:16px}.history-pagination{gap:12px;font-size:10px}.history-media-type,.history-operation{font-size:9px;top:7px;left:7px;padding:3px 5px}.history-operation{left:auto;right:7px}}@media(prefers-reduced-motion:reduce){.history-loading>span{animation:none}.history-card,.history-card-preview img{transition:none}}
