.assistant-container { max-width: 980px; }
.assistant-page h1 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.12; max-width: 22ch; }
.assistant-budget, .assistant-result, .assistant-context { padding: clamp(1rem, 3vw, 1.8rem); border: 1px solid #bcc9d6; border-radius: 1.1rem; background: #fff; color: #182b42; }
.assistant-percent { font-size: 1.75rem; white-space: nowrap; color: #164e40; }
.assistant-page progress { display: block; height: 1rem; accent-color: #16715a; border-radius: 1rem; }
.assistant-page progress::-webkit-progress-bar { background: #e4ebf0; border-radius: 1rem; }
.assistant-page progress::-webkit-progress-value { background: #16715a; border-radius: 1rem; }
.assistant-page progress::-moz-progress-bar { background: #16715a; border-radius: 1rem; }
.assistant-page textarea { min-height: 9rem; font-size: 1.05rem; color: #182b42; background: #fff; }
.assistant-page .form-check { min-height: 2rem; padding-left: 2.25rem; }
.assistant-page .form-check-label { display: block; min-height: 2rem; line-height: 1.6; cursor: pointer; }
.assistant-page #assistant-consent.form-check-input {
    -webkit-appearance: none;
    appearance: none;
    float: left;
    width: 1.5rem;
    height: 1.5rem;
    margin-top: .1rem;
    margin-left: -2.25rem;
    border: 2px solid var(--ink, #182b42);
    border-radius: .3rem;
    background-color: #fff;
    background-image: none;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    box-shadow: none;
    cursor: pointer;
}
.assistant-page #assistant-consent.form-check-input:checked {
    background-color: var(--primary, #245b3e);
    border-color: var(--primary, #245b3e);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m3 8 3 3 7-7'/%3E%3C/svg%3E");
}
.assistant-page #assistant-consent.form-check-input:focus-visible {
    outline: 3px solid var(--ink, #182b42);
    outline-offset: 3px;
    box-shadow: 0 0 0 2px #fff;
}
@media (forced-colors: active) {
    .assistant-page #assistant-consent.form-check-input,
    .assistant-page #assistant-consent.form-check-input:checked {
        -webkit-appearance: auto;
        appearance: auto;
        color: CanvasText;
        border-color: CanvasText;
        background-color: Canvas;
        background-image: none;
        forced-color-adjust: auto;
    }
}
.assistant-answer { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.assistant-result a, .assistant-context a { color: #154f96; text-decoration: underline; }
.assistant-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.assistant-page [hidden] { display: none !important; }
.assistant-image-control { padding: 1rem; border: 1px dashed #a8b9c9; border-radius: .8rem; }
.assistant-image-preview { margin: 1rem 0; }
.assistant-image-preview img { display: block; max-width: 100%; max-height: 340px; object-fit: contain; border: 1px solid #bcc9d6; border-radius: .5rem; background: #fff; }
.assistant-image-preview figcaption { overflow-wrap: anywhere; }
@media (max-width: 575px) { .assistant-page .btn { min-height: 44px; } }
.assistant-visual {
    max-width: 36rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: var(--page);
    color: var(--ink);
}
.assistant-visual figcaption { font-weight: 700; overflow-wrap: anywhere; }
.assistant-visual svg { display: block; width: 100%; height: auto; }
.assistant-visual svg text { fill: currentColor; font-size: 15px; }
.assistant-visual-axis { stroke: currentColor; stroke-width: 1; opacity: 0.6; }
.assistant-visual-curve { stroke: var(--primary); stroke-width: 3; fill: none; }
.assistant-visual-root { fill: var(--ink); }
.assistant-visual ol { display: grid; gap: 0.55rem; margin: 0.65rem 0 0; padding-inline-start: 1.8rem; }
.assistant-visual li { padding: 0.6rem; border: 1px solid var(--border); border-radius: 0.5rem; overflow-wrap: anywhere; }
