/* Beger AI Inspire beta.14.17 | Result, pointers and local image history.
   One typography and control hierarchy for desktop and mobile, scoped by feature. */
:root { --beger17-blue:#0b3f94; --beger17-navy:#19324f; --beger17-muted:#596b81; --beger17-border:#d8e3f1; --beger17-soft:#f2f6fc; }
html body .wb-ai-prompt-widget.beger-design-v14 :is(.beger-result-sidebar,.beger-local-workspace),
html body .beger-pointer-dialog {font-family:Prompt,'Noto Sans Thai',Tahoma,sans-serif!important;color:var(--beger17-navy)!important;font-weight:400!important;letter-spacing:normal!important;}

/* The result's LEFT column contains a summary card followed by a separate calculator card. */
html body .wb-ai-prompt-widget.beger-design-v14 .beger-result-sidebar{display:flex;flex-direction:column;gap:16px;min-width:0;width:100%;align-self:start;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-result-sidebar > .beger-result-details{margin:0!important;padding:20px!important;width:100%!important;min-width:0!important;box-sizing:border-box;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-result-details-title,
html body .wb-ai-prompt-widget.beger-design-v14 .beger-paint-heading,
html body .wb-ai-prompt-widget.beger-design-v14 .beger-history-header h3,
html body .beger-pointer-dialog .beger-pointer-top h3 {
  font-family:inherit!important;font-size:18px!important;line-height:1.5!important;font-weight:600!important;color:var(--beger17-navy)!important;letter-spacing:normal!important;text-shadow:none!important;
}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-result-details-title{margin-bottom:10px!important;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-result-detail-row .beger-review-row-label{font-family:inherit!important;font-weight:500!important;color:var(--beger17-muted)!important;font-size:14px!important;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-result-detail-row .beger-review-row-value strong{font-family:inherit!important;font-size:14px!important;font-weight:500!important;line-height:1.6!important;color:var(--beger17-navy)!important;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-result-edit-panel{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:10px!important;margin-top:16px!important;padding-top:16px!important;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-result-edit-panel > button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-height:44px!important;margin:0!important;border-radius:10px!important;padding:10px 15px!important;font-family:inherit!important;font-size:14px!important;font-weight:500!important;line-height:1.4!important;text-transform:none!important;letter-spacing:normal!important;box-shadow:none!important;white-space:nowrap!important;transition:background-color .15s ease,border-color .15s ease;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-result-edit-panel .beger-result-edit-action{color:var(--beger17-blue)!important;background:#fff!important;border:1px solid #b8cbe5!important;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-result-edit-panel .wb-ai-result-regenerate{color:var(--beger17-blue)!important;background:var(--beger17-soft)!important;border:1px solid #b8cbe5!important;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-result-edit-panel > button:hover{background:#e6effc!important;border-color:var(--beger17-blue)!important;color:var(--beger17-blue)!important;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-result-edit-panel svg{width:17px!important;height:17px!important;display:block!important;stroke:currentColor!important;fill:none!important;flex:none!important;}

/* Result actions: flat, readable, consistent ink and weight. */
html body .wb-ai-prompt-widget.beger-design-v14 .wb-ai-result-container > .wb-ai-result-overlay{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:10px!important;}
html body .wb-ai-prompt-widget.beger-design-v14 .wb-ai-result-container > .wb-ai-result-overlay > button{font-family:Prompt,'Noto Sans Thai',Tahoma,sans-serif!important;font-size:14px!important;font-weight:500!important;line-height:1.35!important;letter-spacing:normal!important;min-height:44px!important;border-radius:10px!important;padding:10px 14px!important;box-shadow:none!important;}
html body .wb-ai-prompt-widget.beger-design-v14 .wb-ai-result-container > .wb-ai-result-overlay .beger-color-pointer-button{border:1px solid var(--beger17-blue)!important;background:var(--beger17-blue)!important;color:#fff!important;}
html body .wb-ai-prompt-widget.beger-design-v14 .wb-ai-result-container > .wb-ai-result-overlay .beger-color-pointer-button:hover{background:#07357e!important;color:#fff!important;}
html body .wb-ai-prompt-widget.beger-design-v14 .wb-ai-result-container > .wb-ai-result-overlay .beger-color-pointer-toggle{border:1px solid #b8cbe5!important;background:#fff!important;color:var(--beger17-blue)!important;}
html body .wb-ai-prompt-widget.beger-design-v14 .wb-ai-result-container > .wb-ai-result-overlay .wb-ai-result-download{background:var(--beger17-blue)!important;border:1px solid var(--beger17-blue)!important;color:#fff!important;}

@media(min-width:1025px){
  html body .wb-ai-prompt-widget.beger-design-v14.beger-has-result:not(.beger-editing-after-result) .wb-ai-result-container.visible:not(.is-loading) > .beger-result-sidebar{
    grid-column:1!important;grid-row:1 / span 2!important;align-self:start!important;
  }
}
@media(max-width:1024px){
  html body .wb-ai-prompt-widget.beger-design-v14 .beger-result-sidebar{margin-top:16px;}
  html body .wb-ai-prompt-widget.beger-design-v14 .beger-result-sidebar > .beger-result-details{padding:16px!important;}
}
@media(max-width:767px){
  html body .wb-ai-prompt-widget.beger-design-v14 .beger-result-edit-panel > button{flex:1 1 140px!important;}
  html body .wb-ai-prompt-widget.beger-design-v14 .wb-ai-result-container > .wb-ai-result-overlay{display:flex!important;gap:9px!important;}
  html body .wb-ai-prompt-widget.beger-design-v14 .wb-ai-result-container > .wb-ai-result-overlay > button{flex:1 1 42%;min-width:0!important;white-space:normal!important;}
}

/* Calculator is a simple one-field card below the result summary. */
html body .wb-ai-prompt-widget.beger-design-v14 .beger-paint-calculator{display:block;box-sizing:border-box;background:#fff;border:1px solid var(--beger17-border);border-radius:16px;padding:20px;min-width:0;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-paint-heading{margin:0 0 14px!important;padding:0!important;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-paint-fields{display:block;margin:0 0 14px;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-paint-fields label{font-family:inherit!important;font-size:14px!important;line-height:1.5!important;font-weight:500!important;color:var(--beger17-navy)!important;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-paint-fields input{display:block;box-sizing:border-box;width:100%;min-height:44px;margin:8px 0 0;padding:10px 12px;border:1px solid #becde0;border-radius:10px;background:#fff;color:var(--beger17-navy);font-family:inherit;font-weight:400;font-size:16px;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-paint-fields input:focus{border-color:var(--beger17-blue);outline:2px solid #c8dcfa;outline-offset:0;box-shadow:none;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-paint-output{background:var(--beger17-soft);border:1px solid #e2eaf5;border-radius:10px;padding:14px 16px;margin-bottom:16px;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-paint-output-label{font-size:13px;font-weight:400;color:var(--beger17-muted);}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-paint-result{font-family:inherit;font-size:24px;font-weight:600;line-height:1.4;color:var(--beger17-blue);margin:4px 0 0;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-paint-notes{font-size:12px;font-weight:400;line-height:1.8;color:var(--beger17-muted);}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-paint-notes-title{font-weight:500;color:var(--beger17-navy);margin:0 0 4px;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-paint-notes ol{padding-left:1.45em;margin:0;list-style-type:decimal;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-paint-notes li{margin:0 0 5px;padding-left:0;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-paint-notes a{color:var(--beger17-blue)!important;text-decoration:underline!important;text-underline-offset:2px;}
@media(max-width:767px){html body .wb-ai-prompt-widget.beger-design-v14 .beger-paint-calculator{padding:16px;}}

/* History: two large action buttons, icon on Download, no success notices or metadata. */
html body .wb-ai-prompt-widget.beger-design-v14 .beger-local-workspace{border:1px solid var(--beger17-border);border-radius:16px;background:#fff;margin:22px auto;padding:20px;max-width:1240px;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-history-header h3{margin:0 0 12px!important;padding:0!important;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-history-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 16px;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-history-actions > button{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 17px;border-radius:10px;border:1px solid var(--beger17-blue);background:#fff;color:var(--beger17-blue);font-family:inherit;font-weight:500;font-size:14px;line-height:1.5;letter-spacing:normal;cursor:pointer;opacity:1;box-shadow:none;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-history-actions > button svg{width:19px;height:19px;stroke:currentColor;fill:none;flex:0 0 19px;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-history-actions .beger-history-select-all[aria-pressed="true"]{background:#edf4ff;color:var(--beger17-blue);border-color:var(--beger17-blue);}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-history-actions .beger-history-download-selected{background:var(--beger17-blue);color:#fff;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-history-actions .beger-history-download-selected:disabled{background:#e6e9ef!important;color:#7c899a!important;border-color:#dce2eb!important;opacity:1!important;cursor:not-allowed!important;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-history-actions > button:not(:disabled):hover{border-color:#07357e;background:#edf4ff;color:#07357e;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-history-actions .beger-history-download-selected:not(:disabled):hover{background:#07357e;color:#fff;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-history-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,125px));gap:10px;max-height:400px;overflow:auto;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-history-card{display:block;position:relative;aspect-ratio:1/1;overflow:hidden;border:1px solid var(--beger17-border);border-radius:10px;background:#f6f8fc;cursor:pointer;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-history-card img{display:block;width:100%;height:100%;object-fit:cover;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-history-card input{width:20px;height:20px;top:7px;left:7px;accent-color:var(--beger17-blue);}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-history-card:has(input:checked){outline:2px solid var(--beger17-blue);outline-offset:-2px;}
html body .wb-ai-prompt-widget.beger-design-v14 .beger-history-status[hidden]{display:none!important;}
@media(max-width:600px){
 html body .wb-ai-prompt-widget.beger-design-v14 .beger-local-workspace{padding:15px;}
 html body .wb-ai-prompt-widget.beger-design-v14 .beger-history-actions > button{flex:1 1 130px;padding:10px 12px;}
 html body .wb-ai-prompt-widget.beger-design-v14 .beger-history-grid{grid-template-columns:repeat(auto-fill,minmax(92px,1fr));}
}

/* Manual Color Marker modal: clear selection without solid dark background. */
html body .beger-pointer-dialog .beger-pointer-top{padding:18px 20px 14px;align-items:center;}
html body .beger-pointer-dialog .beger-pointer-top h3{margin:0!important;}
html body .beger-pointer-dialog .beger-pointer-body{padding:16px 20px 10px;}
html body .beger-pointer-dialog .beger-pointer-pickers{gap:10px;margin-bottom:16px;}
html body .beger-pointer-dialog .beger-pointer-swatch-button{font-family:inherit!important;display:flex!important;align-items:center!important;gap:10px!important;flex:1 1 180px;max-width:300px;min-height:62px;padding:10px 12px!important;border:1px solid var(--beger17-border)!important;border-radius:11px!important;background:#fff!important;color:var(--beger17-navy)!important;box-shadow:none!important;outline:none!important;}
html body .beger-pointer-dialog .beger-pointer-swatch-button *{color:var(--beger17-navy)!important;text-shadow:none!important;}
html body .beger-pointer-dialog .beger-pointer-swatch-button.is-active{border:2px solid var(--beger17-blue)!important;background:#f1f6fe!important;color:var(--beger17-navy)!important;box-shadow:none!important;}
html body .beger-pointer-dialog .beger-pointer-swatch-button.is-active .beger-pointer-status{color:var(--beger17-blue)!important;}
html body .beger-pointer-dialog .beger-pointer-swatch-button:hover{border-color:#87a8d6!important;background:#f5f8fe!important;}
html body .beger-pointer-dialog .beger-pointer-swatch{flex:none;width:32px;height:38px;border-radius:7px;}
html body .beger-pointer-dialog .beger-pointer-swatch-text{min-width:0;font-size:13px;font-weight:400;line-height:1.5;}
html body .beger-pointer-dialog .beger-pointer-role{font-size:13px!important;font-weight:500!important;color:var(--beger17-navy)!important;}
html body .beger-pointer-dialog .beger-pointer-code{font-size:12px!important;font-weight:400!important;color:var(--beger17-muted)!important;}
html body .beger-pointer-dialog .beger-pointer-status{font-size:18px!important;font-weight:600!important;flex:none;}
html body .beger-pointer-dialog .beger-pointer-bottom{display:flex;justify-content:space-between;gap:10px;padding:14px 20px;}
html body .beger-pointer-dialog .beger-pointer-bottom > button{font-family:inherit!important;min-height:44px;font-size:14px!important;font-weight:500!important;line-height:1.4!important;border-radius:10px!important;padding:10px 16px!important;box-shadow:none!important;}
html body .beger-pointer-dialog .beger-pointer-clear{color:#8c424b!important;border:1px solid #ecd0d3!important;background:#fff!important;margin:0!important;}
html body .beger-pointer-dialog .beger-pointer-done{color:var(--beger17-blue)!important;border:1px solid #b8cbe5!important;background:#f1f6fe!important;margin-left:auto;}
html body .beger-pointer-dialog .beger-pointer-close{font-size:24px!important;color:var(--beger17-muted)!important;}
html body .beger-pointer-dialog .beger-pointer-edit-canvas{touch-action:none;}
@media(max-width:680px){
 html body .beger-pointer-dialog .beger-pointer-top,html body .beger-pointer-dialog .beger-pointer-body,html body .beger-pointer-dialog .beger-pointer-bottom{padding-left:14px;padding-right:14px;}
 html body .beger-pointer-dialog .beger-pointer-swatch-button{max-width:none;min-width:0;flex:1 1 42%;}
 html body .beger-pointer-dialog .beger-pointer-status{display:inline!important;}
}
