@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

    #ecd-root{
      --char:#303030; --gold:#918a76; --gold-d:#7a7464; --olive:#c3bd9f;
      --cream:#f5f3ef; --gray:#585958; --line:rgba(48,48,48,.10);
      max-width:980px; margin:0 auto;
      font-family:Inter,-apple-system,"Segoe UI",Roboto,system-ui,sans-serif;
      color:var(--gray); -webkit-font-smoothing:antialiased; line-height:1.5;
    }
    #ecd-root *{ box-sizing:border-box; }
    #ecd-root [hidden]{ display:none !important; }
    #ecd-root h1,#ecd-root h2,#ecd-root h3,#ecd-root p,#ecd-root ul,#ecd-root dl,#ecd-root dd,#ecd-root dt{ margin:0; }
    #ecd-root button{ font-family:inherit; cursor:pointer; }
    #ecd-root a{ text-decoration:none; }

    /* Hero */
    .ecd-hero{ position:relative; overflow:hidden; background:var(--char); border-radius:14px; padding:44px 32px; }
    .ecd-hero::before{ content:""; position:absolute; right:-90px; top:-90px; width:340px; height:340px; border-radius:50%; background:rgba(145,138,118,.18); filter:blur(60px); }
    .ecd-badge{ position:relative; display:inline-block; font-size:11px; font-weight:600; letter-spacing:.2em; text-transform:uppercase; color:var(--olive); border:1px solid rgba(195,189,159,.3); border-radius:999px; padding:6px 16px; }
    .ecd-hero h1{ position:relative; margin-top:18px; font-size:42px; font-weight:800; line-height:1.06; color:#fff; }
    .ecd-hero .ecd-rule{ position:relative; margin-top:16px; width:64px; height:1px; background:var(--gold); }
    .ecd-hero p{ position:relative; margin-top:18px; max-width:560px; color:rgba(255,255,255,.72); font-size:15px; }
    .ecd-chips{ position:relative; margin-top:22px; display:flex; flex-wrap:wrap; gap:10px; }
    .ecd-chip{ display:inline-flex; align-items:center; gap:7px; font-size:12px; color:rgba(255,255,255,.8); border:1px solid rgba(255,255,255,.15); border-radius:999px; padding:6px 12px; }

    /* Cards */
    .ecd-card{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:26px 28px; margin-top:22px; }
    .ecd-codigo{ display:flex; gap:20px; align-items:flex-start; }
    .ecd-ico{ width:48px; height:48px; flex:0 0 auto; border-radius:50%; background:rgba(145,138,118,.1); display:flex; align-items:center; justify-content:center; color:var(--gold); }
    .ecd-codigo h2{ font-size:19px; font-weight:600; color:var(--char); }
    .ecd-codigo p{ margin-top:8px; font-size:14px; color:rgba(88,89,88,.85); }
    .ecd-codigo .ecd-actions{ margin-top:18px; display:flex; flex-wrap:wrap; gap:12px; }

    .ecd-btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:12px 22px; font-size:13px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; border:0; border-radius:0; transition:background .2s,opacity .2s; }
    .ecd-btn-gold{ background:var(--gold); color:#fff; } .ecd-btn-gold:hover{ background:var(--gold-d); }
    .ecd-btn-dark{ background:var(--char); color:#fff; } .ecd-btn-dark:hover{ background:rgba(48,48,48,.9); }
    .ecd-btn-ghost{ background:transparent; color:var(--char); border:1px solid rgba(48,48,48,.2); } .ecd-btn-ghost:hover{ background:rgba(48,48,48,.05); }
    .ecd-btn:disabled{ opacity:.5; cursor:not-allowed; }

    /* Alerta */
    .ecd-alert{ display:flex; gap:16px; align-items:flex-start; background:#fff; border:1px solid var(--olive); border-radius:14px; padding:18px 20px; margin-top:22px; }
    .ecd-alert svg{ color:var(--gold); flex:0 0 auto; margin-top:2px; }
    .ecd-alert b{ display:block; color:var(--char); font-size:14px; }
    .ecd-alert p{ margin-top:4px; font-size:14px; color:rgba(88,89,88,.85); }

    /* Form card */
    .ecd-formcard{ background:#fff; border:1px solid var(--line); border-radius:14px; overflow:hidden; margin-top:22px; }
    .ecd-formhead{ padding:24px 28px; border-bottom:1px solid var(--line); display:flex; flex-wrap:wrap; justify-content:space-between; gap:14px; }
    .ecd-eyebrow{ font-size:11px; font-weight:600; letter-spacing:.2em; text-transform:uppercase; color:var(--gold); }
    .ecd-formhead h2{ margin-top:4px; font-size:22px; font-weight:600; color:var(--char); }
    .ecd-formhead .ecd-sub{ margin-top:4px; font-size:14px; color:rgba(88,89,88,.7); }
    .ecd-tag{ display:inline-flex; align-items:center; gap:7px; font-size:12px; color:rgba(88,89,88,.7); background:var(--cream); border:1px solid var(--line); border-radius:999px; padding:7px 14px; height:fit-content; }

    /* Stepper */
    .ecd-stepper{ display:flex; gap:8px; overflow-x:auto; padding:18px 20px 4px; }
    .ecd-tab{ flex:0 0 auto; display:inline-flex; align-items:center; gap:10px; padding:10px 14px; border-radius:10px; border:1px solid var(--line); background:#fff; color:rgba(88,89,88,.7); }
    .ecd-tab .ecd-tnum{ width:24px; height:24px; border-radius:6px; background:var(--cream); color:rgba(88,89,88,.7); display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:600; }
    .ecd-tab .ecd-tlabel{ font-size:14px; font-weight:600; white-space:nowrap; }
    .ecd-tab.is-active{ background:var(--char); border-color:var(--char); color:#fff; }
    .ecd-tab.is-active .ecd-tnum{ background:rgba(255,255,255,.15); color:#fff; }
    .ecd-tab.is-done{ background:rgba(145,138,118,.1); border-color:rgba(145,138,118,.3); color:var(--char); }
    .ecd-tab.is-done .ecd-tnum{ background:var(--gold); color:#fff; }

    .ecd-body{ padding:24px 28px; }
    .ecd-error{ margin-bottom:20px; font-size:14px; color:#8a3b3b; background:rgba(138,59,59,.08); border:1px solid rgba(138,59,59,.2); border-radius:10px; padding:12px 16px; }
    .ecd-step h3{ font-size:18px; font-weight:600; color:var(--char); }
    .ecd-step .ecd-stepsub{ margin-top:4px; font-size:14px; color:rgba(88,89,88,.7); }

    .ecd-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:22px; }
    .ecd-full{ grid-column:1 / -1; }
    @media(max-width:640px){ .ecd-grid{ grid-template-columns:1fr; } .ecd-hero h1{ font-size:34px; } }

    .ecd-label{ display:block; font-size:11px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:rgba(88,89,88,.6); margin-bottom:8px; }
    .ecd-input,.ecd-select,.ecd-textarea{ width:100%; padding:12px 14px; border:1px solid var(--line); background:#fff; font-family:inherit; font-size:14px; color:var(--gray); outline:none; border-radius:0; transition:border-color .2s,box-shadow .2s; }
    .ecd-input:focus,.ecd-select:focus,.ecd-textarea:focus{ border-color:var(--gold); box-shadow:0 0 0 1px var(--gold); }
    .ecd-textarea{ resize:vertical; }
    .ecd-count{ margin-top:4px; font-size:12px; color:rgba(88,89,88,.5); text-align:right; }

    /* Radio cards */
    .ecd-radios{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:22px; }
    @media(max-width:640px){ .ecd-radios{ grid-template-columns:1fr; } }
    .ecd-radio{ position:relative; display:block; padding:20px; border:1px solid var(--line); border-radius:10px; cursor:pointer; transition:border-color .2s,background .2s; }
    .ecd-radio:hover{ border-color:rgba(145,138,118,.4); }
    .ecd-radio.is-sel{ border-color:var(--gold); background:rgba(145,138,118,.05); box-shadow:0 0 0 1px var(--gold); }
    .ecd-radio input{ position:absolute; opacity:0; width:0; height:0; }
    .ecd-radio-top{ display:flex; align-items:flex-start; justify-content:space-between; }
    .ecd-radio-top svg{ color:var(--gold); }
    .ecd-dot{ width:16px; height:16px; border-radius:50%; border:1px solid rgba(48,48,48,.25); display:flex; align-items:center; justify-content:center; }
    .ecd-radio.is-sel .ecd-dot{ border-color:var(--gold); background:var(--gold); }
    .ecd-radio.is-sel .ecd-dot::after{ content:""; width:6px; height:6px; border-radius:50%; background:#fff; }
    .ecd-radio .ecd-rtitle{ margin-top:12px; font-size:14px; font-weight:600; color:var(--char); }
    .ecd-radio .ecd-rdesc{ font-size:12px; color:rgba(88,89,88,.6); }

    /* Anexos */
    .ecd-drop{ display:block; cursor:pointer; margin-top:22px; }
    .ecd-drop-inner{ border:2px dashed rgba(145,138,118,.4); border-radius:14px; padding:32px; text-align:center; background:rgba(245,243,239,.4); transition:border-color .2s; }
    .ecd-drop:hover .ecd-drop-inner{ border-color:var(--gold); }
    .ecd-drop-ico{ width:48px; height:48px; margin:0 auto; border-radius:50%; background:var(--gold); color:#fff; display:flex; align-items:center; justify-content:center; }
    .ecd-drop b{ display:block; margin-top:12px; font-size:14px; color:var(--char); }
    .ecd-drop span{ display:block; margin-top:4px; font-size:12px; color:rgba(88,89,88,.6); }
    .ecd-filelist{ list-style:none; padding:0; margin:16px 0 0; display:flex; flex-direction:column; gap:8px; }
    .ecd-fileitem{ display:flex; align-items:center; justify-content:space-between; gap:12px; background:var(--cream); border:1px solid var(--line); border-radius:10px; padding:10px 14px; }
    .ecd-fileitem>span:first-child{ font-size:14px; color:var(--gray); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .ecd-fileact{ display:flex; align-items:center; gap:12px; flex:0 0 auto; }
    .ecd-fileact em{ font-style:normal; font-size:12px; color:rgba(88,89,88,.5); }
    .ecd-fileact button{ border:0; background:none; font-size:20px; line-height:1; color:rgba(88,89,88,.5); } .ecd-fileact button:hover{ color:#8a3b3b; }
    .ecd-formats{ margin-top:16px; font-size:12px; color:rgba(88,89,88,.6); }

    /* Confirmação */
    .ecd-resumo{ margin-top:22px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
    .ecd-resrow{ display:flex; gap:16px; padding:10px 0; border-top:1px solid var(--line); }
    .ecd-resrow:first-child{ border-top:0; }
    .ecd-resrow dt{ flex:0 0 220px; font-size:11px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:rgba(88,89,88,.5); }
    .ecd-resrow dd{ font-size:14px; color:var(--char); }
    @media(max-width:640px){ .ecd-resrow{ flex-direction:column; gap:2px; } .ecd-resrow dt{ flex-basis:auto; } }
    .ecd-relato-box{ margin-top:16px; font-size:14px; color:var(--gray); white-space:pre-wrap; background:var(--cream); border:1px solid var(--line); border-radius:10px; padding:16px; }
    .ecd-lgpd{ margin-top:22px; font-size:12px; color:rgba(88,89,88,.7); }
    .ecd-lgpd a{ color:var(--gold); text-decoration:underline; }

    .ecd-check{ display:flex; align-items:flex-start; gap:12px; padding:16px; border:1px solid var(--line); border-radius:10px; cursor:pointer; margin-top:22px; }
    .ecd-check:hover{ border-color:rgba(145,138,118,.4); }
    .ecd-check input{ margin-top:2px; width:16px; height:16px; accent-color:var(--gold); flex:0 0 auto; }
    .ecd-check span{ font-size:14px; color:var(--gray); }
    .ecd-secbox{ padding:16px; border:1px solid var(--line); border-radius:10px; background:rgba(245,243,239,.4); margin-top:16px; }
    .ecd-secbox .ecd-sechead{ display:flex; align-items:center; gap:8px; color:var(--char); font-weight:600; font-size:14px; }
    .ecd-secbox .ecd-sechead svg{ color:var(--gold); }
    .ecd-secbox p{ margin-top:4px; font-size:12px; color:rgba(88,89,88,.7); }
    .ecd-robo{ display:inline-flex; align-items:center; gap:12px; margin-top:12px; padding:10px 16px; border:1px solid rgba(48,48,48,.15); border-radius:10px; background:#fff; cursor:pointer; }
    .ecd-robo input{ width:16px; height:16px; accent-color:var(--gold); }
    .ecd-robo span{ font-size:14px; color:var(--char); }
    .ecd-hint{ margin-top:16px; font-size:12px; color:rgba(88,89,88,.6); }

    /* Nav */
    .ecd-navbar{ padding:20px 28px; border-top:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:16px; }
    .ecd-back{ display:inline-flex; align-items:center; gap:8px; border:0; background:none; padding:12px 18px; font-size:13px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--gray); }
    .ecd-back:hover{ color:var(--char); } .ecd-back:disabled{ opacity:.4; cursor:not-allowed; }

    /* Sucesso */
    .ecd-success{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:48px 28px; text-align:center; margin-top:22px; display:flex; flex-direction:column; align-items:center; }
    .ecd-success .ecd-sico{ width:64px; height:64px; margin:0 auto; border-radius:50%; background:rgba(145,138,118,.1); color:var(--gold); display:flex; align-items:center; justify-content:center; }
    #ecd-root .ecd-success h2{ margin-top:22px; font-size:26px; font-weight:600; color:var(--char); }
    #ecd-root .ecd-success p{ margin-top:10px; font-size:15px; color:rgba(88,89,88,.75); max-width:520px; }
    .ecd-proto{ display:inline-flex; align-items:center; gap:12px; margin-top:26px; background:var(--cream); border:1px solid var(--line); border-radius:10px; padding:12px 18px; }
    .ecd-proto .ecd-plabel{ font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:rgba(88,89,88,.5); }
    .ecd-proto .ecd-pnum{ font-size:18px; font-weight:700; letter-spacing:.06em; color:var(--char); }
    .ecd-proto button{ border:0; background:none; font-size:12px; font-weight:600; color:var(--gold); } .ecd-proto button:hover{ color:var(--char); }