/* History uses the same shell and controls as the generation console. */
.history-shell { width:100%; max-width:1920px; margin-inline:auto; padding-inline:clamp(16px,2.2vw,42px); }
.history-header { z-index:30; background:#0c1322ed; border-bottom:1px solid #1e293b; box-shadow:0 12px 40px #00000038; backdrop-filter:blur(16px); }
.history-header-inner { padding-block:15px; gap:18px 24px; flex-wrap:wrap; }
.history-heading .brand-icon { flex-shrink:0; }
.history-heading .brand p { margin-top:5px; }
.history-header-actions { align-items:center; flex-wrap:wrap; }
.history-content { padding-block:28px 40px; }
.history-toolbar { padding:20px; margin-bottom:22px; border:1px solid #253044; border-radius:14px; background:#101724; gap:18px 24px; }
.history-toolbar .batch-filter { flex:1 1 340px; flex-wrap:wrap; }
.history-toolbar .batch-filter select { width:auto; flex:1; min-width:140px; max-width:none; }
.history-toolbar .status-filter { display:flex; align-items:center; gap:12px; width:auto; }
.history-toolbar .status-filter select { min-width:140px; }
.history-toolbar select,.history-search input { min-height:40px; border:1px solid #34475d; border-radius:8px; background:#0b1220; color:#e8edf6; }
.history-search { flex:1 1 300px; }
.history-search input { flex:1; min-width:0; padding:9px 12px; }
.history-toolbar select:focus-visible,.history-search input:focus-visible { outline:2px solid #71e6d0; outline-offset:2px; }
.history-info { color:#8e9cb2; }
.history-batch-management { padding:16px 20px; border:1px solid #253044; border-radius:12px; background:#101724; }
@media(max-width:767px) {
 .history-header { position:relative; }
 .history-header-actions { width:100%; }
 .history-toolbar { padding:16px; gap:16px; }
 .history-toolbar .batch-filter,.history-search { flex-basis:100%; }
 .history-toolbar .status-filter { width:100%; }
 .history-toolbar .status-filter select { flex:1; }
}

.history-page .task-media { position:relative; }
.history-video-download { position:absolute; right:10px; top:10px; z-index:5; display:grid; place-items:center; width:34px; height:34px; border:1px solid #ffffff40; border-radius:8px; background:#080c16b3; color:#71e6d0; backdrop-filter:blur(6px); }
.history-video-download:hover { background:#172333; border-color:#71e6d0; }

.batch-sms-option{display:inline-flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid #71e6d030;border-radius:8px;color:#b8d8cc;font-size:12px;cursor:pointer;white-space:nowrap}.batch-sms-option input{width:15px;height:15px;margin:0;accent-color:#71e6d0}.batch-sms-option:has(input:disabled){opacity:.5;cursor:default}
