/* ==========================================================================
   Portail FONSTI — espace candidat, formulaires, données d'impact, assistant.
   S'appuie sur les jetons de couleur du thème (orange, blanc, vert).
   ========================================================================== */
:root {
	--fp-green: var(--green, #13792c);
	--fp-orange: var(--orange, #ed7e1f);
	--fp-ink: var(--ink, #15201a);
	--fp-text: var(--text, #4f5a54);
	--fp-muted: var(--muted, #6b7570);
	--fp-line: var(--line, #e5e8e6);
	--fp-mint: var(--mint, #ecf6ed);
	--fp-sand: var(--sand, #fff5e9);
	--fp-radius: var(--radius, 16px);
	--fp-red: #b42318;
	--fp-blue: #1d5fa8;
}

.fp-wrap { max-width: 1100px; }
.fp-h1 { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem); line-height: 1.2; margin: 0 0 18px; color: var(--fp-ink); letter-spacing: -0.02em; }
.fp-h2 { font-size: clamp(1.3rem, 1.1rem + .5vw, 1.6rem); margin: 32px 0 12px; color: var(--fp-ink); }
.fp-h3 { font-size: 1.1rem; margin: 0 0 12px; color: var(--fp-ink); }
.fp-h3 a { color: inherit; }
.fp-h3 a:hover { color: var(--fp-green); }
.fp-eyebrow { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fp-green); }
.fp-muted, .fp-meta { color: var(--fp-muted); }
.fp-meta { font-size: .875rem; margin: 6px 0 0; }
.fp-lead { font-size: 1.075rem; line-height: 1.7; color: var(--fp-text); max-width: 760px; margin-bottom: 28px; }
.fp-empty { color: var(--fp-muted); font-style: italic; }
.fp-link { background: none; border: 0; padding: 0; color: var(--fp-green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }
.fp-link--danger { color: var(--fp-red); }
.fp-ref { font-family: ui-monospace, monospace; font-size: .9rem; color: var(--fp-muted); }
.fp-code { font-size: 1.05rem; letter-spacing: .08em; background: var(--fp-mint); padding: 4px 10px; border-radius: 6px; }
.fp-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.fp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 20px; }
.fp-inline { display: inline; }
.fp-bullets { padding-left: 20px; line-height: 1.8; }

/* Cartes, alertes, badges --------------------------------------------- */
.fp-card { background: #fff; border: 1px solid var(--fp-line); border-radius: var(--fp-radius); padding: clamp(18px, 3vw, 28px); margin-bottom: 20px; }
.fp-card--accent { border-color: var(--fp-orange); box-shadow: 0 0 0 3px var(--fp-sand); }
.fp-alert { border-radius: 12px; padding: 14px 18px; margin: 0 0 20px; border: 1px solid; line-height: 1.55; }
.fp-alert ul { margin: 6px 0 0; padding-left: 20px; }
.fp-alert--success { background: #ecf8ef; border-color: #a7d7b3; color: #0f5b24; }
.fp-alert--error { background: #fdf1f0; border-color: #f2b8b5; color: #8a1c13; }
.fp-alert--info { background: var(--fp-sand); border-color: #f6cf9f; color: #7a4308; }
.fp-alert a { color: inherit; font-weight: 700; }
.fp-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.fp-badge--green { background: #e3f4e7; color: #146c2e; }
.fp-badge--orange { background: #fff0de; color: #9a4f0b; }
.fp-badge--red { background: #fde7e6; color: #9b1c12; }
.fp-badge--blue { background: #e6eefa; color: #1a4f8c; }
.fp-badge--grey { background: #eef0ef; color: #4f5a54; }
.fp-count { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px; background: var(--fp-orange); color: #fff; font-size: .75rem; align-items: center; justify-content: center; }

/* Application (connecté) ---------------------------------------------- */
.fp-app__bar { background: linear-gradient(120deg, var(--forest, #0e3b1d), var(--fp-green)); color: #fff; padding: 28px 0; }
.fp-app__barin { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.fp-app__hello { margin: 0; font-size: 1.4rem; font-weight: 700; }
.fp-app__sub { margin: 4px 0 0; opacity: .85; }
.fp-app__logout { color: #fff; border: 1px solid rgba(255,255,255,.6); padding: 8px 16px; border-radius: 999px; text-decoration: none; }
.fp-app__logout:hover, .fp-app__logout:focus-visible { background: #fff; color: var(--forest, #0e3b1d); }
.fp-app__grid { display: grid; grid-template-columns: 1fr; gap: 24px; padding-top: 28px; padding-bottom: 64px; }
@media (min-width: 960px) { .fp-app__grid { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; } }
.fp-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (min-width: 960px) { .fp-nav ul { flex-direction: column; position: sticky; top: calc(var(--header-h, 90px) + 16px); } }
.fp-nav a { display: flex; align-items: center; white-space: nowrap; padding: 10px 14px; border-radius: 10px; color: var(--fp-text); text-decoration: none; font-weight: 600; }
.fp-nav a:hover { background: var(--fp-mint); color: var(--fp-green); }
.fp-nav a.is-active { background: var(--fp-green); color: #fff; }
.fp-main { min-width: 0; }

/* KPI ------------------------------------------------------------------ */
.fp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 0 0 24px; }
.fp-kpi { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--fp-line); border-top: 4px solid var(--fp-line); text-decoration: none; color: inherit; }
.fp-kpi--green { border-top-color: var(--fp-green); }
.fp-kpi--orange { border-top-color: var(--fp-orange); }
.fp-kpi--blue { border-top-color: var(--fp-blue); }
.fp-kpi--red { border-top-color: var(--fp-red); }
.fp-kpi__n { font-size: 1.7rem; font-weight: 800; color: var(--fp-ink); line-height: 1.1; }
.fp-kpi__l { font-size: .875rem; color: var(--fp-muted); }
.fp-cols { display: grid; gap: 20px; }
@media (min-width: 1100px) { .fp-cols { grid-template-columns: 3fr 2fr; } }

/* Tableaux ------------------------------------------------------------- */
.fp-table-wrap { overflow-x: auto; }
.fp-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.fp-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--fp-muted); padding: 10px 12px; border-bottom: 2px solid var(--fp-line); }
.fp-table td { padding: 14px 12px; border-bottom: 1px solid var(--fp-line); vertical-align: top; }
.fp-table a { color: var(--fp-ink); }
@media (max-width: 700px) {
	.fp-table thead { display: none; }
	.fp-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--fp-line); }
	.fp-table td { display: block; border: 0; padding: 4px 0; }
	.fp-table td[data-label]::before { content: attr(data-label) " : "; color: var(--fp-muted); font-size: .8rem; }
}
.fp-list, .fp-notifs { list-style: none; margin: 0; padding: 0; }
.fp-list li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--fp-line); }
.fp-notifs li { padding: 14px 0 14px 16px; border-bottom: 1px solid var(--fp-line); position: relative; }
.fp-notifs li.is-unread::before { content: ""; position: absolute; left: 0; top: 22px; width: 8px; height: 8px; border-radius: 50%; background: var(--fp-orange); }
.fp-notifs__t { margin: 0; font-weight: 700; }
.fp-notifs__m { margin: 4px 0 0; color: var(--fp-text); }

/* Formulaires ---------------------------------------------------------- */
.fp-form .fp-field, .fp-field { margin: 0 0 18px; }
.fp-field label, .fp-repeater legend { display: block; font-weight: 600; font-size: .9rem; color: var(--fp-ink); margin-bottom: 6px; }
.fp-field input:not([type=checkbox]):not([type=file]), .fp-field select, .fp-field textarea {
	width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #cdd3cf; border-radius: 10px; background: #fff; font: inherit; color: var(--fp-ink);
}
.fp-field textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.fp-field input:focus, .fp-field select:focus, .fp-field textarea:focus { outline: 3px solid rgba(19, 121, 44, .25); border-color: var(--fp-green); }
.fp-field [aria-invalid=true] { border-color: var(--fp-red); }
.fp-help { font-size: .85rem; color: var(--fp-muted); margin: 6px 0 0; }
.fp-req { color: var(--fp-red); }
.fp-row, .fp-fields { display: grid; gap: 0 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) {
	.fp-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fp-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fp-fields > :not(.fp-field--half) { grid-column: 1 / -1; }
}
.fp-check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 16px; line-height: 1.5; cursor: pointer; }
.fp-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--fp-green); flex: none; }
.fp-counter { display: block; text-align: right; font-size: .78rem; color: var(--fp-muted); margin-top: 4px; }
.fp-counter.is-near { color: var(--fp-orange); }
.fp-upload { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 2px dashed #cdd3cf; border-radius: 12px; background: #fafbfa; cursor: pointer; margin: 10px 0; }
.fp-upload:hover, .fp-upload:focus-within { border-color: var(--fp-green); background: var(--fp-mint); }
.fp-upload span { font-weight: 600; color: var(--fp-green); }
.fp-upload input { font-size: .9rem; max-width: 100%; }
.fp-inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.fp-inline-form .fp-field { flex: 1 1 220px; margin: 0; }
.fp-inline-form input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #cdd3cf; border-radius: 10px; }
.fp-btn-danger { background: var(--fp-red); color: #fff; }
.fp-danger-zone { margin-top: 24px; color: var(--fp-muted); }
.fp-danger-zone summary { cursor: pointer; }
.hp { position: absolute !important; left: -9999px !important; }

/* Assistant de soumission --------------------------------------------- */
.fp-stepper { list-style: none; margin: 8px 0 20px; padding: 0; display: flex; gap: 6px; overflow-x: auto; counter-reset: s; }
.fp-stepper__item { flex: 1 0 auto; }
.fp-stepper button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border: 1px solid var(--fp-line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; font-size: .85rem; color: var(--fp-text); white-space: nowrap; }
.fp-stepper__n { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; background: #eef0ef; font-weight: 700; flex: none; }
.fp-stepper .is-current button { border-color: var(--fp-green); color: var(--fp-ink); font-weight: 700; box-shadow: 0 0 0 3px var(--fp-mint); }
.fp-stepper .is-current .fp-stepper__n { background: var(--fp-green); color: #fff; }
.fp-stepper .is-done .fp-stepper__n { background: #e3f4e7; color: var(--fp-green); }
.fp-stepper .is-done .fp-stepper__n::after { content: "✓"; margin-left: 1px; font-size: .7rem; }
.fp-stepper .is-todo .fp-stepper__n { background: #fff0de; color: #9a4f0b; }
@media (max-width: 860px) { .fp-stepper__l { display: none; } .fp-stepper .is-current .fp-stepper__l { display: inline; } }
.fp-autosave { font-size: .85rem; color: var(--fp-muted); margin: 6px 0 0; }
.fp-autosave.is-error { color: var(--fp-red); }
.fp-wizard-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; border-top: 1px solid var(--fp-line); padding-top: 20px; margin-top: 12px; }
.fp-repeater { grid-column: 1 / -1; border: 1px solid var(--fp-line); border-radius: 12px; padding: 16px; margin: 0 0 20px; }
.fp-repeater__row { display: grid; grid-template-columns: 1fr; gap: 0 12px; position: relative; padding: 12px 36px 0 0; border-bottom: 1px dashed var(--fp-line); margin-bottom: 12px; }
@media (min-width: 720px) { .fp-repeater__row { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } }
.fp-repeater__cell .fp-field { margin-bottom: 12px; }
.fp-repeater__del { position: absolute; top: 40px; right: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--fp-line); background: #fff; cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--fp-red); }
.fp-total { font-size: 1.05rem; margin: 14px 0 0; }
.fp-pieces { display: grid; gap: 14px; grid-column: 1 / -1; margin-bottom: 16px; }
.fp-piece { border: 1px solid var(--fp-line); border-radius: 12px; padding: 16px; }
.fp-piece.is-ok { border-left: 4px solid var(--fp-green); }
.fp-piece__file { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0; }
.fp-file { display: inline-flex; align-items: center; gap: 8px; color: var(--fp-ink); text-decoration: none; font-weight: 600; word-break: break-word; }
.fp-file:hover { color: var(--fp-green); }
.fp-file__ext { font-size: .7rem; font-weight: 800; padding: 3px 6px; border-radius: 5px; background: var(--fp-orange); color: #fff; }
.fp-file small { color: var(--fp-muted); font-weight: 400; }
.fp-files { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }

/* Récapitulatif et suivi ---------------------------------------------- */
.fp-recap { border-top: 1px solid var(--fp-line); padding-top: 16px; margin-top: 16px; }
.fp-recap dl, .fp-dl { display: grid; grid-template-columns: 1fr; gap: 4px 20px; margin: 0; }
@media (min-width: 720px) { .fp-recap dl, .fp-dl { grid-template-columns: 220px 1fr; } }
.fp-recap dt, .fp-dl dt { color: var(--fp-muted); font-size: .88rem; }
.fp-recap dd, .fp-dl dd { margin: 0 0 10px; color: var(--fp-ink); }
.fp-recap ul { margin: 0; padding-left: 18px; }
.fp-timeline { list-style: none; display: flex; margin: 16px 0 24px; padding: 0; }
.fp-timeline li { flex: 1; position: relative; text-align: center; font-size: .85rem; color: var(--fp-muted); padding-top: 30px; }
.fp-timeline li span { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--fp-line); z-index: 1; }
.fp-timeline li::before { content: ""; position: absolute; top: 10px; left: -50%; width: 100%; height: 3px; background: var(--fp-line); }
.fp-timeline li:first-child::before { display: none; }
.fp-timeline .is-done span, .fp-timeline .is-current span { border-color: var(--fp-green); background: var(--fp-green); }
.fp-timeline .is-done::before, .fp-timeline .is-current::before { background: var(--fp-green); }
.fp-timeline .is-current { color: var(--fp-ink); font-weight: 700; }
.fp-timeline .is-rejected span { border-color: var(--fp-red); background: var(--fp-red); }
.fp-thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fp-thread li { padding: 14px 16px; border-radius: 12px; background: var(--fp-mint); max-width: 92%; }
.fp-thread li.is-mine { background: #f4f5f4; margin-left: auto; }
.fp-thread li.is-internal { background: #fff8e1; border: 1px dashed #e6c45c; }
.fp-thread__meta { font-size: .8rem; color: var(--fp-muted); margin: 0 0 6px; }
.fp-progress { height: 10px; background: #eef0ef; border-radius: 6px; overflow: hidden; margin-top: 14px; }
.fp-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--fp-green), #22a33b); }
.fp-jalons { list-style: none; margin: 0; padding: 0; }
.fp-jalon { border-left: 4px solid var(--fp-line); }
.fp-jalon.is-valide { border-left-color: var(--fp-green); }
.fp-jalon.is-soumis { border-left-color: var(--fp-blue); }
.fp-jalon.is-complement, .fp-jalon.is-a_venir { border-left-color: var(--fp-orange); }
.fp-jalon.is-en_retard, .fp-jalon.is-rejete { border-left-color: var(--fp-red); }
.fp-jalon__head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.fp-depot { margin-top: 12px; }
.fp-depot summary { cursor: pointer; font-weight: 700; color: var(--fp-green); }
.fp-receipt { max-width: 760px; border-top: 6px solid var(--fp-green); }
.fp-appels { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.fp-appel { display: flex; flex-direction: column; margin: 0; }
.fp-appel .btn { margin-top: auto; align-self: flex-start; }
.fp-appel__g { margin: 0 0 8px; font-size: .78rem; font-weight: 700; text-transform: uppercase; color: var(--fp-orange); letter-spacing: .05em; }

/* Connexion / inscription --------------------------------------------- */
.fp-auth { max-width: 640px; }
.fp-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--fp-line); margin-bottom: -1px; }
.fp-tabs a { padding: 12px 18px; text-decoration: none; color: var(--fp-muted); font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.fp-tabs a[aria-selected=true] { color: var(--fp-green); border-bottom-color: var(--fp-green); }
.fp-auth__card { border-top-left-radius: 0; border-top-right-radius: 0; }
.fp-field[data-optional] label small { font-weight: 400; color: var(--fp-muted); }
.fp-benefits { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.fp-benefits li { padding: 16px; border-radius: 12px; background: var(--fp-mint); color: var(--fp-text); line-height: 1.5; }
.fp-benefits strong { display: block; color: var(--fp-ink); margin-bottom: 4px; }

/* Données d'impact ----------------------------------------------------- */
.fp-charts { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.fp-chart { margin: 0; padding: 22px; background: #fff; border: 1px solid var(--fp-line); border-radius: var(--fp-radius); }
.fp-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fp-bars li { display: grid; grid-template-columns: minmax(110px, 38%) 1fr auto; gap: 10px; align-items: center; font-size: .88rem; position: relative; }
.fp-bars__track { height: 14px; background: #eef0ef; border-radius: 7px; overflow: hidden; }
.fp-bars__fill { display: block; height: 100%; width: var(--w); background: var(--fp-green); border-radius: 7px; transform-origin: left; animation: fp-grow .9s ease-out both; }
.fp-bars li:nth-child(even) .fp-bars__fill { background: var(--fp-orange); }
.fp-bars li:hover .fp-bars__fill, .fp-bars li:focus .fp-bars__fill { filter: brightness(1.1); }
.fp-bars__v { font-weight: 700; color: var(--fp-ink); white-space: nowrap; }
.fp-bars li:focus { outline: 2px solid var(--fp-green); outline-offset: 4px; border-radius: 4px; }
@keyframes fp-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.fp-donut__wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.fp-donut__svg { width: 180px; height: 180px; transform: none; }
.fp-donut__n { font-size: 7px; font-weight: 800; fill: var(--fp-ink); }
.fp-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; }
.fp-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.fp-stories { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin: 20px 0; }
.fp-story { background: #fff; border-radius: var(--fp-radius); overflow: hidden; border: 1px solid var(--fp-line); }
.fp-story img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.fp-story__b { padding: 18px; }
.fp-events { display: grid; gap: 12px; }

/* Assistant conversationnel ------------------------------------------ */
.fp-chat { position: fixed; right: 16px; bottom: 16px; z-index: 9990; font-size: .95rem; }
.fp-chat__toggle { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; border: 0; background: var(--fp-green); color: #fff; font: inherit; font-weight: 700; box-shadow: 0 10px 30px rgba(16,40,25,.25); cursor: pointer; }
.fp-chat__toggle:hover, .fp-chat__toggle:focus-visible { background: var(--forest, #0e3b1d); }
.fp-chat__panel { position: absolute; right: 0; bottom: 64px; width: min(400px, calc(100vw - 32px)); max-height: min(620px, calc(100vh - 120px)); display: flex; flex-direction: column; background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(16,40,25,.28); overflow: hidden; }
.fp-chat__panel[hidden] { display: none; }
.fp-chat__head { display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px; background: var(--fp-green); color: #fff; }
.fp-chat__title { margin: 0; font-weight: 800; }
.fp-chat__sub { margin: 2px 0 0; font-size: .78rem; opacity: .9; }
.fp-chat__close { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.fp-chat__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f7f9f8; }
.fp-msg { padding: 10px 14px; border-radius: 14px; max-width: 88%; line-height: 1.5; white-space: pre-line; }
.fp-msg--bot { background: #fff; border: 1px solid var(--fp-line); align-self: flex-start; }
.fp-msg--user { background: var(--fp-green); color: #fff; align-self: flex-end; }
.fp-msg ul { margin: 8px 0 0; padding-left: 18px; white-space: normal; }
.fp-msg a { color: var(--fp-green); font-weight: 600; }
.fp-msg__src { font-size: .78rem; color: var(--fp-muted); margin-top: 6px; }
.fp-msg__fb { display: flex; gap: 6px; margin-top: 8px; }
.fp-msg__fb button { border: 1px solid var(--fp-line); background: #fff; border-radius: 999px; padding: 2px 10px; cursor: pointer; font-size: .8rem; }
.fp-chat__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--fp-line); }
.fp-chat__form input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid #cdd3cf; border-radius: 10px; font: inherit; }
.fp-chat__foot { margin: 0; padding: 0 12px 12px; font-size: .85rem; }
.fp-chat__human { display: grid; gap: 8px; }
.fp-chat__human input, .fp-chat__human textarea { width: 100%; padding: 8px 10px; border: 1px solid #cdd3cf; border-radius: 8px; font: inherit; }
.fp-typing::after { content: "…"; animation: fp-blink 1s infinite; }
@keyframes fp-blink { 50% { opacity: .2; } }
@media (max-width: 600px) { .fp-chat__toggle span { display: none; } .fp-chat__toggle { padding: 14px; } }

@media (prefers-reduced-motion: reduce) { .fp-bars__fill, .fp-typing::after { animation: none; } }
@media print {
	.site-header, .site-footer, .fp-nav, .fp-app__bar, .fp-chat, .fp-noprint, .page-hero { display: none !important; }
	.fp-app__grid { display: block; padding: 0; }
	.fp-card { border: 0; padding: 0; }
}
