:root {
        color-scheme: dark only;
        --bg: #0A1128;
        --surface: rgba(26, 42, 74, 0.8);
        --line: #2A3A5A;
        --brand: #3B82F6;
        --brand-glow: rgba(59, 130, 246, 0.3);
        --accent: #FFB703;
        --text: #ffffff;
        --text-soft: #94a3b8;
        --error: #ff6f86;
        --ok: #35c886;
        --radius-lg: 24px;
        --radius-md: 12px;
        font-family: "Inter", "Segoe UI", Roboto, sans-serif;
      }

      body {
        margin: 0;
        min-height: 100vh;
        background-color: var(--bg);
        background-image:
          radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
          radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 40%);
        color: var(--text);
        display: flex;
        justify-content: center;
        padding: 2rem 1rem;
        line-height: 1.5;
      }

      body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: #1A2A4A;
        z-index: 100;
      }

      @keyframes fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
      }

      .container {
        width: 100%;
        max-width: 900px;
        animation: fadeIn 0.8s ease-out;
      }

      .header {
        margin-bottom: 2.5rem;
      }

      .badge {
        display: inline-flex;
        align-items: center;
        padding: 0.4rem 1rem;
        background: rgba(59, 130, 246, 0.1);
        border: 1px solid var(--brand);
        color: var(--brand);
        border-radius: 99px;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 1rem;
      }

      h1 {
        margin: 0;
        font-size: 2.5rem;
        font-weight: 800;
        background: linear-gradient(to right, #fff, var(--text-soft));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }

      .header p {
        color: var(--text-soft);
        font-size: 1.1rem;
        margin-top: 0.5rem;
      }

      .panel {
        background: var(--surface);
        backdrop-filter: blur(12px);
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        padding: 2.5rem;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
      }

      .panel:hover {
        transform: translateY(-5px);
        box-shadow: 0 25px 60px var(--brand-glow);
      }

      .panel-head {
        margin-bottom: 2rem;
      }

      .panel-title {
        color: var(--brand);
        font-size: 1.5rem;
        margin: 0;
      }

      .panel-subtitle {
        color: var(--text-soft);
        font-size: 0.9rem;
        margin-top: 0.25rem;
      }

      form {
        display: grid;
        gap: 1.5rem;
      }

      .grid-2 {
        display: grid;
        gap: 1.5rem;
      }

      @media (min-width: 600px) {
        .grid-2 { grid-template-columns: 1fr 1fr; }
      }

      .field {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
      }

      label {
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--text-soft);
        margin-left: 0.2rem;
      }

      input, textarea {
        background: rgba(10, 17, 40, 0.5);
        border: 1px solid var(--line);
        border-radius: var(--radius-md);
        padding: 0.8rem 1.2rem;
        color: white;
        font-size: 1rem;
        transition: all 0.3s ease;
      }

      input:focus, textarea:focus {
        outline: none;
        border-color: var(--brand);
        box-shadow: 0 0 15px var(--brand-glow);
        background: rgba(10, 17, 40, 0.8);
      }

      textarea {
        min-height: 100px;
        resize: vertical;
      }

      .hint {
        font-size: 0.8rem;
        color: var(--text-soft);
        margin-bottom: 0.5rem;
        display: block;
      }

      .error {
        color: var(--error);
        font-size: 0.8rem;
        height: 1.2rem;
      }

      .is-invalid input, .is-invalid textarea { border-color: var(--error); }
      .is-valid input, .is-valid textarea { border-color: var(--ok); }

      .actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        margin-top: 0.15rem;
      }

      .action-left {
        display: flex;
        align-items: center;
        gap: 0.6rem;
      }

      .primary-btn {
        background: linear-gradient(135deg, var(--brand), #2563EB);
        color: white;
        border: none;
        border-radius: var(--radius-md);
        padding: 1.2rem;
        font-size: 1.1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.8rem;
        box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
        width: 100%;
      }

      .primary-btn:hover {
        transform: scale(1.02);
        box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
      }

      .primary-btn:active {
          transform: scale(0.98);
      }

      .secondary-btn {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--line);
        color: white;
        padding: 0.5rem 1rem;
        border-radius: var(--radius-md);
        cursor: pointer;
        font-size: 0.85rem;
        transition: background 0.2s;
      }

      .secondary-btn:hover {
        background: rgba(255, 255, 255, 0.1);
      }

      #feedback {
        text-align: center;
        font-weight: 500;
        color: var(--error);
        margin-top: 1rem;
      }

      #editalText {
        border-style: dashed;
        background: rgba(59, 130, 246, 0.05);
      }

      .pdf-row {
        display: flex;
        gap: 0.75rem;
        margin-bottom: 0.5rem;
      }

      input[type="file"] {
        flex: 1;
        padding: 0.5rem;
        font-size: 0.8rem;
        border-style: solid;
      }

      .secondary-btn {
        border: 1px solid #3a5080;
        background: #121c32;
        color: #d0dcfa;
        border-radius: 10px;
        padding: 0.6rem 0.95rem;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
      }

      .secondary-btn:hover:not(:disabled) {
        background: #182442;
      }

      .secondary-btn:disabled {
        opacity: 0.55;
        cursor: not-allowed;
      }

      /* ── Resultado ─────────────────────────────────────── */

      .resultado-section {
        margin-top: 2rem;
        background: var(--surface);
        backdrop-filter: blur(12px);
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        padding: 2.5rem;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
      }

      .resultado-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 2rem;
        flex-wrap: wrap;
        gap: 1rem;
      }

      .resultado-header h2 {
        margin: 0;
        font-size: 1.8rem;
        font-weight: 800;
        background: linear-gradient(to right, #fff, var(--text-soft));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }

      .resultado-bloco {
        margin-bottom: 2rem;
      }

      .bloco-titulo {
        color: var(--brand);
        font-size: 1.1rem;
        font-weight: 600;
        margin: 0 0 0.75rem 0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
      }

      /* Accordions */

      .accordion-item {
        border-bottom: 1px solid var(--line);
        overflow: hidden;
      }

      .accordion-item:last-child {
        border-bottom: none;
      }

      .accordion-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 0.25rem;
        cursor: pointer;
        font-weight: 600;
        color: var(--text);
        user-select: none;
        gap: 0.5rem;
      }

      .accordion-header:hover {
        color: var(--brand);
      }

      .accordion-icon {
        font-size: 0.75rem;
        transition: transform 0.25s ease;
        flex-shrink: 0;
      }

      .accordion-item.open .accordion-icon {
        transform: rotate(90deg);
      }

      .accordion-body {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        color: var(--text-soft);
        line-height: 1.7;
        white-space: pre-wrap;
        padding: 0 0.25rem;
      }

      .accordion-item.open .accordion-body {
        max-height: 600px;
        padding-bottom: 1rem;
      }

      /* Validation blocks */

      .validation-block {
        padding: 0.85rem 1rem;
        border-left: 3px solid var(--line);
        border-radius: 0 var(--radius-md) var(--radius-md) 0;
        margin-bottom: 0.75rem;
        background: rgba(255, 255, 255, 0.02);
      }

      .validation-block.ok   { border-left-color: var(--ok); }
      .validation-block.faltando { border-left-color: var(--error); }
      .validation-block.sugestoes { border-left-color: var(--accent); }

      .validation-block h4 {
        margin: 0 0 0.5rem 0;
        font-size: 0.85rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
      }

      .validation-block.ok h4       { color: var(--ok); }
      .validation-block.faltando h4 { color: var(--error); }
      .validation-block.sugestoes h4 { color: var(--accent); }

      .validation-block ul {
        margin: 0;
        padding-left: 1.25rem;
        color: var(--text-soft);
        font-size: 0.9rem;
        line-height: 1.6;
      }

      /* Checklist table */

      .checklist-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.9rem;
      }

      .checklist-table th {
        text-align: left;
        color: var(--text-soft);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 0.5rem 0.75rem;
        border-bottom: 1px solid var(--line);
      }

      .checklist-table td {
        padding: 0.6rem 0.75rem;
        color: var(--text-soft);
        border-bottom: 1px solid rgba(42, 58, 90, 0.4);
        vertical-align: top;
      }

      .checklist-table tr:nth-child(even) td {
        background: rgba(255, 255, 255, 0.02);
      }

      /* Requisitos block */

      .requisitos-grid {
        display: grid;
        gap: 0.75rem;
      }

      .requisito-item {
        font-size: 0.9rem;
        color: var(--text-soft);
      }

      .requisito-item strong {
        color: var(--text);
        display: block;
        margin-bottom: 0.2rem;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.4px;
      }

      .requisito-item ul {
        margin: 0.2rem 0 0 1rem;
        padding: 0;
      }