/* ECOFAM Forms: independent, scoped design tokens */
.ef-shell{--ef-accent:#087e79;--ef-radius:12px;--ef-ink:#17304a;--ef-muted:#66798b;--ef-border:#dce7e9;--ef-bg:#fff;--ef-soft:#f5f9fa;color:var(--ef-ink);background:var(--ef-bg);font-family:inherit;width:100%;max-width:100%;box-sizing:border-box}
.ef-shell *{box-sizing:border-box}
.ef-shell button,.ef-shell input,.ef-shell textarea,.ef-shell select{font:inherit}
.ef-shell .ef-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 22px}
.ef-shell .ef-half{grid-column:span 1;min-width:0}.ef-shell .ef-full{grid-column:1/-1;min-width:0}
.ef-shell .ef-field{min-width:0}.ef-shell .ef-label{font-size:14px;font-weight:650;line-height:1.55;color:var(--ef-ink);display:block;margin-bottom:9px;letter-spacing:.01em}
.ef-shell .ef-label b,.ef-shell .ef-consent b{color:#b8464f}
.ef-shell .ef-control{width:100%;min-width:0;max-width:100%;display:block;outline:none;border:1px solid var(--ef-border);border-radius:var(--ef-radius);background:#fff;color:var(--ef-ink);box-shadow:none;padding:13px 15px;min-height:48px;line-height:1.4;transition:border-color .2s,box-shadow .2s}
.ef-shell textarea.ef-control{min-height:132px;resize:vertical;line-height:1.6}
.ef-shell .ef-control::placeholder{color:#8a9ba6;opacity:1}
.ef-shell .ef-control:focus{border-color:var(--ef-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--ef-accent) 14%,transparent)}
.ef-shell .ef-help{font-size:12px;line-height:1.55;color:var(--ef-muted);margin:8px 0 0}
.ef-shell .ef-heading{font-size:clamp(19px,2vw,24px);font-weight:700;margin:8px 0 -2px;color:var(--ef-ink);letter-spacing:-.025em}
.ef-shell .ef-options{display:grid;gap:12px}.ef-shell .ef-choice{font-size:14px;color:var(--ef-ink);display:flex;gap:11px;align-items:flex-start;line-height:1.5;cursor:pointer}
.ef-shell .ef-choice input,.ef-shell .ef-catalog-item input{margin:3px 0 0;flex:none;width:17px;height:17px;accent-color:var(--ef-accent)}
.ef-shell .ef-consent{padding:17px 18px;border:1px solid var(--ef-border);background:var(--ef-soft);border-radius:var(--ef-radius)}
.ef-shell .ef-actions{display:flex;justify-content:flex-start;margin-top:27px}
.ef-shell .ef-submit{display:inline-flex;align-items:center;justify-content:space-between;gap:28px;background:var(--ef-accent);color:#fff;border:1px solid transparent;border-radius:var(--ef-radius);padding:15px 22px;font-weight:700;line-height:1.2;min-height:52px;cursor:pointer;transition:filter .2s,transform .2s}
.ef-shell .ef-submit:hover{filter:brightness(.9);color:#fff}.ef-shell .ef-submit:focus-visible{outline:3px solid var(--ef-accent);outline-offset:3px}.ef-shell .ef-submit:disabled{opacity:.65;cursor:wait}
.ef-shell .ef-feedback{margin-top:16px;font-size:14px;line-height:1.5}.ef-shell .ef-feedback:empty{display:none}
.ef-shell .ef-feedback.is-success{padding:13px 16px;background:#eaf7f0;border:1px solid #a5d7c0;border-radius:9px;color:#155b39}.ef-shell .ef-feedback.is-error{padding:13px 16px;background:#fff2f0;border:1px solid #ecc1bc;border-radius:9px;color:#9a362e}
.ef-shell .ef-hp{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.ef-shell .ef-catalog{border:1px solid var(--ef-border);border-radius:calc(var(--ef-radius) + 4px);overflow:hidden;background:#fff}
.ef-shell .ef-catalog-top{display:flex;align-items:center;gap:16px;padding:16px;background:var(--ef-soft);border-bottom:1px solid var(--ef-border)}
.ef-shell .ef-catalog-top .ef-catalog-search{flex:1;min-width:0}.ef-shell .ef-catalog-selected{font-size:12px;color:var(--ef-muted);white-space:nowrap;font-weight:650}
.ef-shell .ef-catalog-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:14px 16px;border-bottom:1px solid var(--ef-border)}
.ef-shell .ef-tab{background:#fff;color:var(--ef-muted);border:1px solid var(--ef-border);font-size:12px;font-weight:650;border-radius:25px;padding:8px 13px;cursor:pointer;line-height:1.2}
.ef-shell .ef-tab:hover,.ef-shell .ef-tab.is-active{background:var(--ef-accent);border-color:var(--ef-accent);color:white}
.ef-shell .ef-catalog-items{max-height:380px;overflow-y:auto;scrollbar-gutter:stable}
.ef-shell .ef-catalog-item{display:flex;align-items:center;gap:12px;cursor:pointer;padding:13px 17px;margin:0;border-bottom:1px solid #eef2f4;line-height:1.45;font-size:14px}
.ef-shell .ef-catalog-item:hover{background:var(--ef-soft)}.ef-shell .ef-catalog-item:has(input:checked){background:#eff9f7}
.ef-shell .ef-catalog-item-name{flex:1;min-width:0;overflow-wrap:anywhere}
.ef-shell .ef-catalog-item[hidden],.ef-shell .ef-no-results[hidden]{display:none!important}
.ef-shell .ef-no-results{text-align:center;padding:18px;color:var(--ef-muted)}
@media(max-width:680px){.ef-shell .ef-grid{grid-template-columns:minmax(0,1fr);gap:20px}.ef-shell .ef-half{grid-column:1/-1}.ef-shell .ef-catalog-top{flex-wrap:wrap;gap:9px}.ef-shell .ef-catalog-top .ef-catalog-search{flex-basis:100%}.ef-shell .ef-catalog-item{padding:12px}.ef-shell .ef-actions .ef-submit{width:100%}.ef-shell .ef-catalog-tabs{flex-wrap:nowrap;overflow-x:auto;white-space:nowrap}.ef-shell .ef-catalog-selected{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.ef-shell *{transition:none!important}}
/* Extended ECOFAM Forms 0.5 features */
.ef-shell [hidden]{display:none!important}
.ef-shell.ef-font-system{font-family:ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif}
.ef-shell.ef-font-serif{font-family:Georgia,'Times New Roman',serif}
.ef-shell{background:var(--ef-bg)}
.ef-shell .ef-step-panel{animation:ef-enter .16s ease-out}
.ef-shell .ef-steps-progress{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:12px;color:var(--ef-muted);background:var(--ef-soft);border-radius:calc(var(--ef-radius) - 2px);padding:12px 16px;margin-bottom:25px;font-weight:700}
.ef-shell .ef-steps-progress [data-step-total]{color:var(--ef-accent)}
.ef-shell .ef-nav{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 19px;border:1px solid var(--ef-border);background:var(--ef-soft);color:var(--ef-ink);border-radius:var(--ef-radius);cursor:pointer;font-weight:700;min-height:52px}
.ef-shell .ef-nav:hover{border-color:var(--ef-accent);color:var(--ef-accent)}
.ef-shell .ef-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.ef-shell .ef-submit[hidden]{display:none!important}
.ef-shell .ef-field[hidden]{display:none!important}
.ef-shell .ef-catalog-item[hidden]{display:none!important}
.ef-shell .ef-control:focus-visible,.ef-shell .ef-nav:focus-visible{outline:2px solid var(--ef-accent);outline-offset:3px}
.ef-shell .ef-type-step .ef-heading{font-size:clamp(20px,2.2vw,28px);margin:6px 0 12px}
@keyframes ef-enter{from{opacity:.6;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:680px){.ef-shell .ef-nav{flex:1}.ef-shell .ef-actions{display:flex}.ef-shell .ef-submit{flex:1}}
@media(prefers-reduced-motion:reduce){.ef-shell .ef-step-panel{animation:none}}

/* v0.7 – diverse field types */
.ef-shell .ef-rich-text{font-size:14px;line-height:1.7;color:var(--ef-muted);margin:3px 0 8px;white-space:normal}
.ef-shell .ef-divider{border:0;border-top:1px solid var(--ef-border);width:100%;margin:8px 0}
.ef-shell select[multiple].ef-control{min-height:146px;padding:7px 9px}
.ef-shell select[multiple].ef-control option{padding:7px 9px;border-radius:5px}
.ef-shell .ef-type-color input.ef-control{max-width:128px;padding:5px;min-height:52px;cursor:pointer}
.ef-shell .ef-type-range input.ef-control{accent-color:var(--ef-accent);border:0;padding:0;background:transparent;min-height:24px}
.ef-shell .ef-range-output{display:inline-block;border:1px solid var(--ef-border);border-radius:8px;padding:4px 12px;margin-top:8px;font-size:13px;font-weight:700}
.ef-shell .ef-rating{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.ef-shell .ef-rating label{position:relative;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;border:1px solid var(--ef-border);border-radius:10px;color:#9badb0;background:#fff}
.ef-shell .ef-rating label:has(input:checked){background:#fff5dd;color:#c68b16;border-color:#e9be6d}
.ef-shell .ef-rating label:has(input:focus-visible){outline:3px solid var(--ef-accent);outline-offset:2px}
.ef-shell .ef-rating label span[aria-hidden]{font-size:22px}
.ef-shell .ef-rating input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.ef-shell .ef-type-toggle .ef-consent input{appearance:none;position:relative;min-width:42px;width:42px;height:24px;background:#cbd8dc;border-radius:18px;border:0;cursor:pointer;transition:background .2s;margin:0}
.ef-shell .ef-type-toggle .ef-consent input:before{content:'';position:absolute;left:3px;top:3px;width:18px;height:18px;background:#fff;border-radius:50%;transition:transform .2s}
.ef-shell .ef-type-toggle .ef-consent input:checked{background:var(--ef-accent)}
.ef-shell .ef-type-toggle .ef-consent input:checked:before{transform:translateX(18px)}
.ef-shell .ef-type-toggle .ef-consent input:focus-visible{outline:3px solid var(--ef-accent);outline-offset:3px}
.ef-shell .ef-type-rating .ef-label,.ef-shell .ef-type-range .ef-label{margin-bottom:12px}

/* ECOFAM medical form: light-only, clear catalog and compact input grid */
.ef-medical-note { background:#effaf6; border:1px solid #cbeade; border-radius:12px; padding:13px 16px; color:#1e6153; margin-bottom:14px; }
.ef-medical-note strong {font-weight:750} .ef-shell .ef-catalog {background:#fff;}
