.improve-trigger,.improve-sidebar-btn{border:1px solid #e8b763;background:#fff4de;color:#925117;font-weight:800;cursor:pointer;border-radius:12px}.improve-trigger{width:38px;height:38px;font-size:24px;box-shadow:0 2px 12px #d78b2340}.improve-sidebar-btn{display:block;width:calc(100% - 22px);margin:10px 11px;padding:12px 6px;font-size:13px}.improve-overlay{position:fixed;inset:0;background:#09283935;z-index:8000;cursor:crosshair}.improve-focus{position:fixed;pointer-events:none;z-index:8001;border:3px solid #f2a72a;border-radius:7px;box-shadow:0 0 0 9999px #0a263626;background:#ffffff18}.improve-selection-tip{position:fixed;top:72px;left:50%;transform:translateX(-50%);background:#143747;color:white;padding:14px 20px;border-radius:15px;z-index:8003;box-shadow:0 15px 35px #1238}.improve-dialog{position:fixed;max-width:min(620px,calc(100% - 24px));width:100%;max-height:90vh;overflow:auto;border:1px solid #b9dae0;border-radius:20px;padding:22px;background:#fff;color:#143747;box-shadow:0 25px 70px #102e4250;z-index:8100}.improve-dialog::backdrop{background:#102e4270}.improve-dialog h2{margin:0 0 12px}.improve-dialog textarea{width:100%;resize:vertical;box-sizing:border-box;border:1px solid #a4cbd5;border-radius:10px;padding:14px;font:inherit;min-height:148px}.improve-dialog small{display:block;color:#54727a;margin:8px 0}.improve-context{font-size:13px;background:#ebf7fa;padding:8px;border-radius:7px}.improve-count{text-align:right;font-size:12px;color:#476c75}.improve-upload{display:block;margin:12px 0;font-weight:600}.improve-upload input{display:block;margin-top:8px;max-width:100%}.improve-capture,.improve-actions button{border:0;border-radius:10px;background:#007f99;color:white;padding:11px 15px;cursor:pointer;font-weight:700}.improve-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:15px}.improve-actions button:first-child{background:#e5edf0;color:#143747}.improve-preview{max-width:100%;max-height:220px;object-fit:contain;border:1px solid #c3dce3;border-radius:12px;margin-top:8px}.improve-inbox{max-width:1180px;margin:32px auto}.improve-card{background:white;border:1px solid #c9e0e7;border-radius:18px;padding:20px;margin:16px 0;box-shadow:0 5px 17px #123b5110}.improve-card img{max-width:100%;max-height:390px;object-fit:contain;border-radius:8px;border:1px solid #cfdee3}.improve-card p{white-space:pre-wrap;overflow-wrap:anywhere}.improve-card small{color:#617b87}.improve-card select{padding:10px;border:1px solid #a6cbd7;border-radius:8px}@media(max-width:670px){.improve-dialog{padding:14px}.improve-inbox{margin:12px}.improve-selection-tip{width:85%;text-align:center}}

/* FIX: confirmación visible fuera del modal y estados claros de envío/captura. */
.improve-toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: min(420px, calc(100vw - 36px));
    z-index: 9000;
    box-sizing: border-box;
    padding: 17px 21px;
    border: 1px solid #b1dbd2;
    border-left: 5px solid #1d9d79;
    border-radius: 13px;
    background: #f1fbf8;
    color: #154d43;
    box-shadow: 0 13px 38px rgba(11, 59, 66, 0.2);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 650;
}
.improve-toast[hidden] { display: none !important; }
.improve-capture:disabled,
.improve-actions button:disabled { cursor: wait; opacity: 0.65; }
@media (max-width: 670px) {
    .improve-toast { bottom: 14px; left: 18px; right: 18px; }
}


/* WEB-IMPROVE-FIX03: botón de vista previa y segundo modal accesible. */
.improve-view-capture {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0 4px;
    padding: 11px 17px;
    border: 1px solid #9eced6;
    border-radius: 10px;
    background: #e9f7fa;
    color: #07556a;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}
.improve-view-capture[hidden] { display: none !important; }
.improve-view-capture:hover { background: #d8f0f5; }
.improve-preview-dialog {
    width: min(1080px, calc(100vw - 30px));
    max-width: 1080px;
    max-height: calc(100dvh - 35px);
    box-sizing: border-box;
    padding: 16px;
    border: 1px solid #bad9e1;
    border-radius: 17px;
    background: #ffffff;
    color: #123747;
    box-shadow: 0 22px 65px #092b4259;
}
.improve-preview-dialog::backdrop { background: #061f30b8; }
.improve-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.improve-preview-heading h2 { margin: 0; font-size: clamp(19px, 2vw, 25px); }
.improve-preview-close { border: 0; border-radius: 9px; padding: 10px 17px; font: inherit; font-weight: 750; background: #007f99; color: #ffffff; cursor: pointer; }
.improve-preview-large { display: block; width: auto; max-width: 100%; max-height: calc(100dvh - 190px); margin: 0 auto; object-fit: contain; border: 1px solid #d8e5e9; border-radius: 9px; }
.improve-preview-note { font-size: 13px; color: #496976; margin: 12px 0 0; }
@media (max-width: 650px) { .improve-preview-dialog { padding: 12px; } .improve-preview-large { max-height: calc(100dvh - 210px); } }
