.obai-prompt-check{display:flex;gap:9px;align-items:center;margin:12px 0;font:inherit;cursor:pointer}.obai-prompt-check>i{color:#fca244}.obai-prompt-check input{position:absolute;opacity:0;width:1px;height:1px}.obai-prompt-check:focus-within{outline:2px solid #fca244;outline-offset:4px}.obai-prompt-check.is-checked .obds-choice-mark{background:#fca244;color:#0f1827}.obai-prompt-box{background:linear-gradient(145deg,#fff8ee,#fff);border:1px solid #f5d1a6;border-radius:20px;padding:20px;margin:16px 0;color:#0f1827;font:inherit}.obai-prompt-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.95;max-height:440px;overflow:auto;margin-bottom:16px;font:inherit}.obai-prompt-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}.obai-prompt-actions .obai-execute{flex:2;min-width:210px;background:#fca244;color:#0f1827}.obai-prompt-actions .ghost{flex:1}.obai-files{margin:12px 0}.obai-file-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center;padding:14px;border:1px solid #fed7aa;border-radius:16px;margin:8px 0;background:#fffaf4}.obai-file-label{display:flex;gap:10px;align-items:center;flex:1;min-width:140px;overflow-wrap:anywhere}.obai-file-label>i{color:#fca244;font-size:26px}.obai-dialog{width:min(900px,94vw);max-height:90dvh;overflow:auto;border:1px solid #fed7aa;border-radius:22px;padding:22px;color:#0f1827;background:#fff;font-family:inherit;box-shadow:0 24px 90px #0005}.obai-dialog::backdrop{background:#0f1827b3}.obai-dialog-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:15px}.obai-dialog button,.obai-dialog a{font:inherit;padding:10px 16px;border-radius:12px;border:1px solid #fed7aa;background:#fff8ed;color:#0f1827;cursor:pointer;text-decoration:none}.obai-file-frame{width:100%;height:65vh;border:0}.obai-file-image{max-width:100%;height:auto;display:block;margin:12px auto}.obai-dialog [disabled]{opacity:.6;cursor:wait}@media(max-width:550px){.obai-prompt-box{padding:14px}.obai-dialog{padding:14px}.obai-prompt-actions{flex-direction:column}.obai-file-row .obds-btn{flex:1}}

/* 1.2.366: consistent fields and attachment spacing */
html body .obds-wrap .obai-prompt-check{margin:14px 0 24px!important}
html body .obds-wrap .obai-output-field{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px;grid-column:1/-1;width:100%}
html body .obds-wrap .obai-output-field>span{color:#64748b;font-size:13px;font-weight:800;display:flex;align-items:center;gap:7px}
html body .obds-wrap .obai-output-field select{width:100%;box-sizing:border-box}
html body .obds-wrap .obai-upload-heading{display:block;margin-top:20px!important;margin-bottom:8px!important}
html body .obds-wrap .obds-drop-hint{display:block;margin:0 0 12px!important;line-height:1.7}
html body .obds-wrap .obds-drop-hint[hidden]{display:none!important}

html body .obds-wrap .obai-upload-heading,html body .obds-wrap .obai-upload-heading i{color:#0f1827!important}
html body .obds-wrap .obai-prompt-check{font-weight:950!important;justify-content:flex-start!important}
html body .obds-wrap .obai-prompt-check>span{font-weight:950!important}
html body .obds-wrap .obai-prompt-check .obds-choice-mark{margin:0!important;flex:0 0 auto}
.obai-stage-preview{margin:18px 0;overflow:hidden;border-radius:18px}.obai-stage-preview>img{display:block;width:100%;height:auto}
.obai-update-dialog{font-family:inherit;width:min(720px,calc(100vw - 28px));max-height:90dvh;box-sizing:border-box;padding:0;border:1px solid #fed7aa;border-radius:26px;background:#fff;box-shadow:0 30px 120px #0006;overflow:auto;color:#0f1827;animation:obai-notice-enter .3s ease-out}
.obai-update-dialog::backdrop{background:#0f1827aa;backdrop-filter:blur(7px)}
.obai-update-header{position:relative;padding:28px;background:radial-gradient(ellipse at top left,#ffe0b3,transparent 65%),#fffaf3;border-bottom:1px solid #ffedd5}
.obai-update-badge{display:inline-flex;background:#0f1827;color:#fff;border-radius:30px;padding:7px 13px;font-size:12px;font-weight:800;letter-spacing:.3px}
.obai-update-header h2{font-family:inherit;font-weight:900;font-size:28px;line-height:1.5;color:#0f1827;margin:15px 0 5px}.obai-update-header p{font:inherit;color:#64748b;margin:0;line-height:1.8}
.obai-update-close{position:absolute;inset-inline-end:20px;top:20px;border:1px solid #fed7aa;background:#fff;border-radius:12px;padding:9px 15px;font:inherit;font-weight:800;color:#0f1827;cursor:pointer}
.obai-update-dialog>img{display:block;width:100%;height:auto}.obai-update-close:focus-visible{outline:3px solid #FCA244;outline-offset:3px}
@keyframes obai-notice-enter{from{opacity:0;transform:translateY(15px) scale(.97)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.obai-update-dialog{animation:none}}
@media(max-width:500px){.obai-update-header{padding:22px 18px}.obai-update-header h2{font-size:23px}.obai-update-close{inset-inline-end:14px;top:16px}}

/* 1.2.368: both quick and detailed mode attachment headings, icon and text */
html body .obds-wrap label.obai-upload-heading,
html body .obds-wrap label.obai-upload-heading i,
html body .obds-wrap label.obai-upload-heading span,
html body .obds-wrap label.obai-upload-heading small{color:#0f1827!important;opacity:1!important}
html body .obds-wrap .obai-stage-actions{display:flex;justify-content:center;margin:12px 0 10px}
html body .obds-wrap .obai-cancel-file{display:inline-flex;gap:9px;align-items:center;justify-content:center;background:#0f1827;color:#fff;border:1px solid #0f1827;border-radius:12px;font-weight:900;cursor:pointer;padding:12px 18px;font-family:inherit;max-width:100%}
html body .obds-wrap .obai-cancel-file:hover{background:#25354a}
html body .obds-wrap .obai-cancel-file:disabled{opacity:.6;cursor:wait}
html body .obds-wrap .obai-stage-preview .obds-card-processing{margin-top:8px}
html body .obds-wrap .obai-stage-message{font-weight:800;color:#0f1827;text-align:center;line-height:1.6}
html body .obds-wrap .obai-revision-output{margin-bottom:12px}

/* 1.2.370: Quick mode needs its own color override (including WebKit text fill). */
html body .obds-wrap [data-obds-mode-panel="quick"] form[data-obds-quick] label.obai-upload-heading.obai-quick-upload-dark,
html body .obds-wrap [data-obds-mode-panel="quick"] form[data-obds-quick] label.obai-upload-heading.obai-quick-upload-dark i,
html body .obds-wrap [data-obds-mode-panel="quick"] form[data-obds-quick] label.obai-upload-heading.obai-quick-upload-dark span{color:#0F1827!important;-webkit-text-fill-color:#0F1827!important;opacity:1!important;text-shadow:none!important;filter:none!important;}

/* 1.2.373: readable prompts and shared responsive viewer controls. */
.obai-prompt-text{white-space:normal;line-height:1.9}.obai-prompt-text h4{font-family:inherit;font-weight:900;font-size:17px;line-height:1.6;margin:18px 0 8px;padding-inline-start:10px;border-inline-start:3px solid #fca244;color:#0f1827}.obai-prompt-text h4:first-child{margin-top:0}.obai-prompt-text p{margin:0 0 12px;white-space:pre-wrap}.obai-prompt-text strong{font-weight:900}.obai-prompt-text ul{padding-inline-start:22px;margin:6px 0 14px}.obai-prompt-text li{padding:3px 0}
html body .obds-wrap .obai-prompt-check{margin:4px 0 10px!important;min-height:36px!important;padding:0!important;align-self:start}
html body .obds-wrap .obai-upload-heading{margin-top:6px!important;margin-bottom:6px!important}
html body .obds-wrap .obds-account-save,html body .obds-wrap .obds-account-save i{color:#fff!important;-webkit-text-fill-color:#fff!important}
html body .obds-wrap .obds-account-logout{background:#0f1827!important;border-color:#0f1827!important;color:#fff!important;-webkit-text-fill-color:#fff!important}html body .obds-wrap .obds-account-logout i{color:#fff!important;-webkit-text-fill-color:#fff!important}
.obai-file-row{gap:8px;padding:10px 12px}.obai-file-action{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:52px;min-height:48px;padding:6px 10px;background:#fff;border:1px solid #e5e7eb;border-radius:13px;color:#0f1827;text-decoration:none;font-family:inherit;font-weight:700;font-size:11px;line-height:1.2;cursor:pointer}.obai-file-action i{font-size:19px;color:#a6560d}.obai-file-action:hover{background:#fff0dc;border-color:#fca244}.obai-file-action span{font-size:11px}.obai-file-label{min-width:100px;font-size:13px}
.obai-dialog button.obai-round{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#fca244;color:#fff;flex-shrink:0}.obai-round:focus-visible,.obai-file-action:focus-visible{outline:3px solid #3182ce;outline-offset:3px}
.obai-print-dialog{padding:0;width:min(1040px,calc(100vw - 20px));max-height:94vh;max-height:94dvh;overflow:hidden;background:#edf0f5}.obai-print-dialog .obai-dialog-head{margin:0;padding:12px 16px;background:#0f1827;color:#fff}.obai-preview-tools{display:flex;justify-content:center;align-items:center;gap:10px;padding:10px}.obai-preview-tools span{min-width:70px;text-align:center;font-variant-numeric:tabular-nums}.obai-page-stage{height:58vh;height:58dvh;overflow:auto;padding:16px;box-sizing:border-box;overscroll-behavior:contain}.obai-preview-paper{width:100%;max-width:none;margin:0 auto;box-shadow:0 8px 28px #0f182724;background:#fff}.obai-preview-paper canvas,.obai-preview-paper img{display:block;width:100%;height:auto;max-width:none;margin:0}.obai-preview-status{text-align:center;color:#64748b;font-size:12px;line-height:1.7}.obai-preview-footer{display:flex;justify-content:center;padding:12px max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom));background:#fff}.obai-dialog a.obai-primary-download{display:inline-flex;gap:9px;align-items:center;justify-content:center;background:#0f1827;color:#fff;border:0;min-width:150px}.obai-primary-download i{font-size:22px}.obai-primary-download span{font-size:13px}
html body .obds-wrap .obds-viewer-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px;flex-wrap:wrap}
html body .obds-wrap .obds-viewer-tools{display:flex;align-items:center;gap:7px;flex-shrink:0}
html body .obds-wrap .obds-viewer-tools :is(.obds-history-viewer-download,.obds-history-viewer-close,.obds-history-viewer-nav){position:static!important;inset:auto!important;transform:none!important;display:inline-flex;align-items:center;justify-content:center;width:44px!important;height:44px!important;min-width:44px!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:#fca244!important;color:#fff!important;text-decoration:none!important;box-shadow:none!important}
html body .obds-wrap .obds-viewer-tools [hidden]{display:none!important}html body .obds-wrap .obds-viewer-tools i{color:#fff!important;font-size:20px!important}html body .obds-wrap .obds-viewer-bar .obds-history-viewer-title{position:static!important;margin:0!important;padding:0!important;font-size:13px;flex:1}
html body .obds-wrap .obds-history-viewer-box{padding:0 8px 8px!important;max-height:94vh;max-height:94dvh}html body .obds-wrap .obds-history-viewer-media{max-height:calc(94dvh - 78px)!important;overflow:auto}html body .obds-wrap .obds-history-viewer-media img{max-height:calc(94dvh - 84px)!important}
@media(max-width:550px){.obai-file-row{flex-wrap:nowrap}.obai-file-label{min-width:0}.obai-file-label>span{overflow-wrap:anywhere}.obai-file-action{padding:6px;min-width:48px}.obai-dialog{box-sizing:border-box}.obai-preview-tools{gap:7px}.obai-page-stage{padding:10px;height:58dvh}.obds-viewer-bar{flex-direction:column;align-items:stretch!important}.obds-viewer-tools{justify-content:center}.obds-history-viewer-title{text-align:center}}

.obai-preview-footer{flex-wrap:wrap;gap:8px}.obai-print-spec{flex-basis:100%;margin:0;text-align:center;font-size:11px;line-height:1.7;color:#64748b}

/* 1.2.374: consistent control colors and compact prompt spacing. */
html body .obds-wrap textarea.obai-prompt-details{display:block;margin-bottom:2px!important}
html body .obds-wrap .obai-prompt-check{display:flex!important;width:fit-content;min-height:28px!important;height:auto!important;margin:0 0 3px!important;padding:0!important;line-height:1.4}
html body .obds-wrap .obai-prompt-check + .obai-upload-heading{margin-top:0!important;margin-bottom:3px!important}
html body .obds-wrap .obai-prompt-check + .obds-trial-upload-row{margin-top:0!important;padding-top:0!important}
html body .obds-wrap .obai-file-row .obai-file-action{color:#a6560d!important;-webkit-text-fill-color:#a6560d!important;background:#fff!important;border-color:#e5e7eb!important;transition:background .18s,color .18s,border-color .18s}
html body .obds-wrap .obai-file-row .obai-file-action :is(i,span){color:inherit!important;-webkit-text-fill-color:inherit!important}
html body .obds-wrap .obai-file-row .obai-file-action:is(:hover,:focus-visible){background:#a6560d!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#a6560d!important}
html body .obds-wrap .obds-viewer-tools :is(.obds-history-viewer-download,.obds-history-viewer-close,.obds-history-viewer-nav){transition:background .18s,color .18s}
html body .obds-wrap .obds-viewer-tools :is(.obds-history-viewer-download,.obds-history-viewer-close,.obds-history-viewer-nav):not(:disabled):is(:hover,:focus-visible){background:#fff!important;color:#fca244!important}
html body .obds-wrap .obds-viewer-tools :is(.obds-history-viewer-download,.obds-history-viewer-close,.obds-history-viewer-nav):not(:disabled):is(:hover,:focus-visible) i{color:#fca244!important}
.obai-dialog button.obai-round:not(:disabled):is(:hover,:focus-visible){background:#fff;color:#fca244}
.obai-dialog a.obai-primary-download:is(:hover,:focus-visible){background:#fff;color:#0f1827;box-shadow:inset 0 0 0 1px #0f1827}
.obai-dialog .obai-round i,.obai-dialog .obai-primary-download :is(i,span){color:inherit}
.obai-preview-status[hidden]{display:none!important}

/* Icon-only file actions with download feedback. */
html body .obds-wrap .obai-file-row .obai-file-action{flex-direction:row;min-width:44px;min-height:44px;width:44px;height:44px;padding:0;gap:0}
.obai-dialog a.obai-primary-download{min-width:44px;width:44px;height:44px;padding:0;border-radius:50%}
.obai-file-action[aria-busy=true],.obai-primary-download[aria-busy=true]{opacity:.55;cursor:wait}
.obai-download-error{font-size:12px;color:#b42318;flex-basis:100%;text-align:center}

/* 1.2.376: trial headings and transparent file controls. */
html body .obds-free-trial .obds-trial-section-title,html body .obds-free-trial .obds-trial-section-title i{color:#fca244!important;-webkit-text-fill-color:#fca244!important}
body:has(.obds-free-trial) :is(#obdm-lc-launcher,#obdm-lc-launcher-preview,#obdm-lc-widget){display:none!important}
html body .obds-wrap .obai-file-row .obai-file-action{background:transparent!important;border:0!important;box-shadow:none!important;color:#fca244!important;-webkit-text-fill-color:#fca244!important;transition:color .18s,transform .18s}
html body .obds-wrap .obai-file-row .obai-file-action:is(:hover,:focus-visible){background:transparent!important;color:#d96d06!important;-webkit-text-fill-color:#d96d06!important;transform:translateY(-2px) scale(1.08)}
html body .obds-wrap .obai-file-row .obai-file-action:active{transform:scale(.94)}

.obai-dialog a.obai-primary-download{background:transparent!important;color:#fca244!important;box-shadow:none!important;transition:color .18s,transform .18s}.obai-dialog a.obai-primary-download:is(:hover,:focus-visible){background:transparent!important;color:#d96d06!important;box-shadow:none!important;transform:translateY(-2px) scale(1.08)}

.obai-stage-image-link{display:block;cursor:zoom-in}.obai-stage-image-link>.obds-img{display:block;width:100%;height:auto}

/* 1.2.388: prompt versions and readable hover/focus on desktop and touch. */
html body .obds-wrap .obai-prompt-actions .obds-btn{transition:background .18s,color .18s,border-color .18s;transform:none!important}
html body .obds-wrap .obai-prompt-actions .obai-execute{background:#fca244!important;border-color:#fca244!important;color:#0f1827!important;-webkit-text-fill-color:#0f1827!important}
html body .obds-wrap .obai-prompt-actions .obai-regenerate{background:#fff!important;border-color:#e5e7eb!important;color:#0f1827!important;-webkit-text-fill-color:#0f1827!important}
html body .obds-wrap .obai-prompt-actions .obds-btn:not(:disabled):is(:hover,:focus-visible){background:#0f1827!important;border-color:#0f1827!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html body .obds-wrap .obai-prompt-actions .obds-btn i{color:inherit!important;-webkit-text-fill-color:inherit!important}
html body .obds-wrap .obai-prompt-actions .obds-btn:focus-visible{outline:3px solid #fca244;outline-offset:3px}
html body .obds-wrap .obai-prompt-actions .obds-btn:disabled{opacity:.55;cursor:wait}
html body .obds-wrap .obai-copy-prompt,.obai-dialog .obai-copy-prompt{font-size:12px!important;line-height:1.5!important;padding:8px 12px!important;min-height:40px;font-weight:600!important}
html body .obds-wrap .obai-copy-prompt i,.obai-dialog .obai-copy-prompt i{font-size:12px!important}
.obai-old-prompt{border:1px solid #f5d1a6;border-radius:14px;margin:10px 0}.obai-old-prompt>summary{cursor:pointer;padding:14px;font-weight:700;color:#0f1827}.obai-old-prompt .obai-prompt-box{margin:0;border:0}.obai-prompt-version-title{display:block;margin-bottom:12px}.obai-prompt-date{display:block;color:#64748b;margin-bottom:10px}

/* v390: accessible prompt disclosure and aligned optional field labels. */
html body .obds-wrap .obai-old-prompt{border:1px solid #f5d1a6;border-radius:18px;background:#fff;overflow:hidden;transition:border-color .2s,box-shadow .2s}
html body .obds-wrap .obai-old-prompt>summary{display:flex;align-items:center;gap:10px;list-style:none;padding:16px 18px;background:linear-gradient(120deg,#fff9f0,#fff);font-size:15px;line-height:1.6;transition:background .2s,color .2s}
.obai-old-prompt>summary::-webkit-details-marker{display:none}
.obai-prompt-heading{display:flex;align-items:center;gap:10px;flex:1}.obai-prompt-heading>i{color:#dc8b30}
.obai-prompt-latest{font-size:11px;border:1px solid #f5d1a6;background:#fff2df;padding:3px 9px;border-radius:20px;color:#93551b}
.obai-prompt-chevron{font-size:12px;transition:transform .22s}
.obai-old-prompt[open]>summary .obai-prompt-chevron{transform:rotate(180deg)}
html body .obds-wrap .obai-old-prompt:is([open],:hover){border-color:#fca244;box-shadow:0 5px 18px #fca24418}
html body .obds-wrap .obai-old-prompt>summary:hover{background:#fff0da}
html body .obds-wrap .obai-old-prompt>summary:focus-visible{outline:3px solid #fca244;outline-offset:-3px}
.obai-old-prompt[open]>.obai-prompt-box{border-top:1px solid #f5d1a6;border-radius:0;animation:obai-prompt-reveal .2s ease-out}
@keyframes obai-prompt-reveal{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
.obai-prompt-date{font-size:12px;line-height:1.6;color:#64748b;margin-bottom:14px}
html body .obds-wrap .obds-trial-options-body .obds-trial-field>span{color:#0f1827;font-weight:800;display:flex;align-items:center;gap:8px}
html body .obds-wrap .obds-trial-options-body .obds-trial-field>span>i{font-size:16px;width:20px;min-width:20px;text-align:center;color:#fca244}
.obai-font-options .obds-option-card small{overflow-wrap:anywhere}
.obai-files{position:relative;clear:both;min-width:0}
@media(prefers-reduced-motion:reduce){.obai-old-prompt,.obai-old-prompt>summary,.obai-prompt-chevron{transition:none!important}.obai-old-prompt[open]>.obai-prompt-box{animation:none}}

/* Share the shape-picker theme, without global button text-fill/uppercase leakage. */
html body .obds-wrap .obai-font-options .obds-option-card{font-family:inherit;text-transform:none!important}
html body .obds-wrap .obai-font-options .obds-option-card strong{color:#0f1827!important;-webkit-text-fill-color:#0f1827!important;text-transform:none!important}
html body .obds-wrap .obai-font-options .obds-option-card small{color:#9a5800!important;-webkit-text-fill-color:#9a5800!important;text-transform:none!important}

/* Version history uses the same layout in the prompt dialog and admin details. */
:is(.obai-dialog,.obds-admin-modal) .obai-old-prompt>summary{display:flex;align-items:center;gap:10px;list-style:none;padding:16px;background:linear-gradient(120deg,#fff9f0,#fff);font-size:15px;line-height:1.6}
:is(.obai-dialog,.obds-admin-modal) .obai-prompt-heading{display:flex;gap:9px;align-items:center;flex:1;min-width:0}
:is(.obai-dialog,.obds-admin-modal) .obai-prompt-latest{background:#fff1dd;color:#9a4c02;border-radius:20px;padding:3px 8px;white-space:nowrap;font-size:11px}
:is(.obai-dialog,.obds-admin-modal) .obai-prompt-chevron{transition:transform .2s}
:is(.obai-dialog,.obds-admin-modal) .obai-old-prompt[open]>summary .obai-prompt-chevron{transform:rotate(180deg)}
