/* Beger AI Inspire beta.14.18 | History is a separate full-width section below the app. */
/* This section is a SIBLING of .wb-ai-prompt-widget, not part of its result grid. */
html body .beger-history-section.beger-local-workspace {
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  display:block!important;
  margin:24px 0 0!important;
  padding:clamp(18px,2.6vw,36px)!important;
  box-sizing:border-box!important;
  border:1px solid #d8e3f1!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 2px 14px rgba(20,50,92,.045)!important;
  color:#19324f!important;
  font-family:Prompt,'Noto Sans Thai',Tahoma,sans-serif!important;
}
html body .beger-history-section,
html body .beger-history-section *,
html body .beger-history-section *::before,
html body .beger-history-section *::after {box-sizing:border-box;}
html body .beger-history-section .beger-history-inner {
  width:100%;max-width:1240px;margin:0 auto;min-width:0;
}
html body .beger-history-section .beger-history-header {display:block;margin:0 0 14px;}
html body .beger-history-section .beger-history-header h3 {
  margin:0!important;padding:0!important;font-size:20px!important;
  font-weight:600!important;line-height:1.5!important;
  color:#19324f!important;font-family:inherit!important;
}
html body .beger-history-section .beger-history-actions {
  display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 20px!important;
}
html body .beger-history-section .beger-history-actions > button {
  appearance:none!important;display:inline-flex!important;align-items:center!important;
  justify-content:center!important;gap:9px!important;
  min-height:46px!important;min-width:150px;padding:10px 18px!important;
  border-radius:10px!important;border:1px solid #0b3f94!important;
  background:#fff!important;color:#0b3f94!important;
  font:500 15px/1.45 Prompt,'Noto Sans Thai',Tahoma,sans-serif!important;
  cursor:pointer!important;box-shadow:none!important;opacity:1!important;
  text-transform:none!important;letter-spacing:normal!important;
}
html body .beger-history-section .beger-history-actions > button svg {
  display:block;width:20px;height:20px;flex:0 0 20px;
  stroke:currentColor!important;fill:none!important;
}
html body .beger-history-section .beger-history-actions .beger-history-select-all[aria-pressed="true"] {
  background:#edf4ff!important;color:#0b3f94!important;
}
html body .beger-history-section .beger-history-actions .beger-history-download-selected:not(:disabled) {
  background:#0b3f94!important;color:#fff!important;
}
html body .beger-history-section .beger-history-actions .beger-history-download-selected:disabled {
  background:#e7ebf1!important;color:#8593a6!important;
  border-color:#d6deea!important;cursor:not-allowed!important;
}
html body .beger-history-section .beger-history-actions > button:not(:disabled):hover {
  box-shadow:none!important;border-color:#07357e!important;
}
html body .beger-history-section .beger-history-actions .beger-history-select-all:hover {
  background:#edf4ff!important;
}
html body .beger-history-section .beger-history-actions .beger-history-download-selected:not(:disabled):hover {
  background:#07357e!important;color:#fff!important;
}
html body .beger-history-section .beger-history-actions > button:focus-visible,
html body .beger-history-section .beger-history-card:focus-within {
  outline:3px solid #87afe5!important;outline-offset:3px!important;
}
html body .beger-history-section .beger-history-grid {
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,175px),1fr))!important;
  gap:16px!important;max-height:none!important;overflow:visible!important;
  width:100%!important;
}
html body .beger-history-section .beger-history-card {
  position:relative;display:block;aspect-ratio:4/3;
  width:100%;height:auto;min-width:0;
  border:1px solid #d9e3ef!important;border-radius:12px!important;
  background:#f6f8fb!important;overflow:hidden;cursor:pointer;
}
html body .beger-history-section .beger-history-card img {
  display:block;width:100%;height:100%;object-fit:contain;
}
html body .beger-history-section .beger-history-card input[type="checkbox"] {
  position:absolute;z-index:2;top:10px;left:10px;
  width:22px;height:22px;accent-color:#0b3f94;
}
html body .beger-history-section .beger-history-card:has(input:checked) {
  outline:3px solid #0b3f94;outline-offset:-3px;
}
html body .beger-history-section .beger-history-empty {
  grid-column:1/-1;font-size:14px;line-height:1.6;color:#60748b;margin:0;
}
html body .beger-history-section .beger-history-status[hidden]{display:none!important;}
@media(max-width:767px){
  html body .beger-history-section.beger-local-workspace {margin-top:16px!important;padding:18px 16px!important;border-radius:14px!important;}
  html body .beger-history-section .beger-history-header h3{font-size:18px!important;}
  html body .beger-history-section .beger-history-actions{gap:8px!important;margin-bottom:16px!important;}
  html body .beger-history-section .beger-history-actions > button{
    flex:1 1 calc(50% - 4px);min-width:0;padding:10px 8px!important;
    font-size:14px!important;min-height:46px!important;
  }
  html body .beger-history-section .beger-history-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;
  }
}
