.schedule-proposal-pencil { border:0; padding:3px 6px; margin-left:5px; background:transparent; color:#4b77a8; font-size:17px; cursor:pointer; }
.schedule-proposal-pencil span { display:inline-block; transform:scaleX(-1); }
.schedule-proposal-pencil:hover { color:#245580; }
.schedule-proposal-pencil:focus-visible, .proposal-dialog button:focus-visible { outline:2px solid #4b77a8; outline-offset:2px; }
.proposal-history { max-width:600px; margin:0 auto 20px; padding:10px 15px; background:#f5f8fb; border:1px solid #dce7f1; border-radius:4px; }
.proposal-history h4 { margin:0 0 8px; color:#456f9f; }
.proposal-history ul { padding-left:20px; margin-bottom:8px; }
.proposal-dialog { width:calc(100% - 30px); max-width:580px; max-height:calc(100dvh - 30px); padding:0; border:1px solid #ddd; border-radius:5px; color:#333; box-shadow:0 5px 24px rgba(0,0,0,.25); }
.proposal-dialog::backdrop { background:rgba(0,0,0,.48); }
.proposal-dialog-inner { padding:22px; }
.proposal-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.proposal-heading h3 { margin:0 0 8px; font-size:22px; }
.proposal-close { border:0; background:none; font-size:28px; line-height:1; color:#777; cursor:pointer; }
.proposal-subtitle { color:#777; margin-bottom:18px; }
.proposal-dialog label, .proposal-context-title { display:block; font-weight:600; margin:15px 0 7px; }
.proposal-dialog textarea { width:100%; padding:10px 12px; border:1px solid #ccc; border-radius:4px; font:inherit; resize:vertical; }
.proposal-dialog textarea:focus { outline:2px solid #8eb5dc; outline-offset:1px; }
.proposal-context { display:flex; gap:6px; flex-wrap:wrap; }
.proposal-chip { display:inline-flex; align-items:center; gap:6px; padding:4px 7px 4px 9px; color:#3c648a; background:#edf4fa; border:1px solid #d6e5f1; border-radius:4px; font-size:13px; }
.proposal-chip button { border:0; background:transparent; font-size:18px; line-height:1; color:#557a9e; cursor:pointer; }
.proposal-hint { color:#777; font-size:13px; margin:7px 0 0; line-height:1.45; }
.proposal-error { color:#a94442; margin:6px 0; }
.proposal-message { margin:15px 0 0; padding:10px; background:#fcf8e3; color:#8a6d3b; border-radius:4px; }
.proposal-file-list { list-style:none; padding:0; margin:8px 0 0; }
.proposal-file-list li { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:5px 0; overflow-wrap:anywhere; }
.proposal-file-remove { background:none; border:0; color:#4b77a8; cursor:pointer; }
.proposal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:22px; }
@media(max-width:767px) { .proposal-dialog-inner { padding:18px; } .proposal-actions { position:sticky; bottom:0; padding:10px 0 0; background:#fff; } .proposal-actions button { flex:1; } }
.schedule-proposal [hidden] { display:none !important; }

/* Proposal history and file chooser */
.proposal-history { max-width:600px; margin:0 auto 24px; padding:0; background:transparent; border:0; }
.proposal-history h4 { margin:0 0 10px; color:#333; font-size:15px; font-weight:600; }
.proposal-history ul { list-style:none; padding:0; margin:0 0 8px; display:grid; gap:8px; }
.proposal-history-item { display:flex; align-items:flex-start; gap:11px; padding:11px 13px; background:#fff; border:1px solid #e4eaf0; border-radius:5px; }
.proposal-history-icon { flex:none; width:28px; height:28px; margin-top:1px; border-radius:50%; background:#edf4fa; color:#4b77a8; position:relative; }
.proposal-history-icon::before { content:''; position:absolute; left:9px; top:7px; width:10px; height:12px; border:1.5px solid currentColor; border-radius:1px; }
.proposal-history-icon::after { content:''; position:absolute; left:11px; top:11px; width:6px; border-top:1px solid currentColor; box-shadow:0 3px currentColor; }
.proposal-history-content { min-width:0; display:flex; flex-direction:column; gap:2px; font-size:13px; line-height:1.4; }
.proposal-history-content strong { color:#3f4b56; font-weight:600; }
.proposal-history-status { color:#687d91; }
.proposal-upload-title { display:block; font-weight:600; margin:15px 0 7px; }
.proposal-upload-control { position:relative; }
.proposal-file-input { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.proposal-dialog label.proposal-upload-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; margin:0; padding:9px 13px; color:#416f9e; background:#f5f9fc; border:1px solid #cbddeb; border-radius:4px; font-size:14px; font-weight:600; cursor:pointer; }
.proposal-dialog label.proposal-upload-button:hover { background:#eaf3fa; border-color:#9cbdd9; }
.proposal-file-input:focus-visible + .proposal-upload-button { outline:2px solid #4b77a8; outline-offset:3px; }
.proposal-captcha-area { margin-top:18px; }
.proposal-captcha-area #proposal-captcha { max-width:100%; overflow-x:auto; }
.proposal-captcha-area #proposal-captcha-retry { margin-top:8px; }
