    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
      background: linear-gradient(160deg, #f1f5f9 0%, #e2e8f0 45%, #dbeafe 100%);
      min-height: 100vh;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      padding: 1rem 0.75rem 2rem;
    }
    @media (max-width: 480px) {
      body { padding: 0.75rem 0.5rem 1.5rem; align-items: stretch; }
      .card { padding: 1.5rem 1.1rem; border-radius: 14px; }
      .jd-title { font-size: 1.15rem; }
      h2 { font-size: 0.95rem; }
      input, textarea { font-size: 16px; } /* prevents iOS zoom on focus */
    }
    .card {
      background: #fff;
      border: 1px solid #e2e8f0;
      border-radius: 16px;
      box-shadow: 0 16px 48px rgba(15,23,42,0.1);
      padding: 2.5rem 2rem;
      width: 100%;
      max-width: 560px;
      animation: applyIn 0.45s cubic-bezier(0.16,1,0.3,1) both;
    }
    @keyframes applyIn {
      from { opacity: 0; transform: translateY(14px) scale(0.98); }
      to { opacity: 1; transform: none; }
    }
    .logo {
      font-size: 1.35rem;
      font-weight: 800;
      color: #2563eb;
      margin-bottom: 0.25rem;
      letter-spacing: -0.3px;
    }
    .jd-title {
      font-size: 1.4rem;
      font-weight: 700;
      color: #1a1a2e;
      margin-bottom: 0.5rem;
      line-height: 1.3;
    }
    .jd-meta {
      font-size: 0.85rem;
      color: #6b7280;
      margin-bottom: 1rem;
    }
    .toggle-details-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #eff6ff;
      color: #1d4ed8;
      border: 1px solid #bfdbfe;
      border-radius: 8px;
      padding: 0.45rem 0.85rem;
      font-size: 0.82rem;
      font-weight: 600;
      cursor: pointer;
      margin-bottom: 0.6rem;
      transition: background 0.15s;
    }
    .toggle-details-btn:hover { background: #dbeafe; }
    .toggle-details-btn svg {
      width: 14px; height: 14px;
      transition: transform 0.2s;
    }
    .toggle-details-btn.open svg { transform: rotate(180deg); }
    .jd-details {
      display: none;
      margin-bottom: 1.25rem;
    }
    .jd-details.open { display: block; }
    .jd-desc {
      background: #f8fafc;
      border-left: 3px solid #2563eb;
      padding: 0.85rem 1rem;
      border-radius: 0 8px 8px 0;
      font-size: 0.88rem;
      color: #374151;
      line-height: 1.6;
      margin-bottom: 0.85rem;
    }
    .jd-desc h1, .jd-desc h2, .jd-desc h3, .jd-desc h4 { font-size: 0.95rem; font-weight: 700; color: #1e293b; margin: 0.7rem 0 0.35rem; }
    .jd-desc p { margin: 0 0 0.6rem; }
    .jd-desc ul, .jd-desc ol { margin: 0 0 0.6rem; padding-left: 1.2rem; }
    .jd-desc li { margin: 0.15rem 0; }
    .jd-desc hr { border: none; border-top: 1px solid #e2e8f0; margin: 0.7rem 0; }
    .jd-desc strong { color: #1e293b; }
    .jd-desc :first-child { margin-top: 0; }
    .jd-desc :last-child { margin-bottom: 0; }
    .skills-list {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
    }
    .skill-tag {
      background: #eff6ff;
      color: #1d4ed8;
      padding: 0.22rem 0.7rem;
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: 500;
    }
    .tags-container {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      align-items: center;
      width: 100%;
      padding: 0.4rem 0.5rem;
      border: 1.5px solid #e5e7eb;
      border-radius: 8px;
      transition: border-color 0.2s;
      cursor: text;
    }
    .tags-container:focus-within {
      border-color: #2563eb;
      box-shadow: 0 0 0 3px rgba(102,126,234,0.12);
    }
    .tags-container .tag {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      background: #eff6ff;
      color: #1d4ed8;
      padding: 0.22rem 0.55rem;
      border-radius: 20px;
      font-size: 0.78rem;
      font-weight: 500;
    }
    .tags-container .tag-remove {
      background: none;
      border: none;
      color: #1d4ed8;
      cursor: pointer;
      font-size: 0.95rem;
      line-height: 1;
      padding: 0;
    }
    .tags-input {
      flex: 1;
      min-width: 120px;
      border: none !important;
      outline: none;
      padding: 0.2rem 0.1rem !important;
      box-shadow: none !important;
      font-size: 0.88rem;
    }
    .tags-input:focus { box-shadow: none !important; }
    .divider {
      border: none;
      border-top: 1px solid #e5e7eb;
      margin: 1.25rem 0 1.25rem;
    }
    h2 {
      font-size: 1rem;
      font-weight: 600;
      color: #374151;
      margin-bottom: 1.25rem;
    }
    .form-group { margin-bottom: 1rem; }
    label {
      display: block;
      font-size: 0.8rem;
      font-weight: 500;
      color: #374151;
      margin-bottom: 0.35rem;
    }
    label .req { color: #ef4444; }
    .opt-tag { font-size: .7rem; font-weight: 500; color: #6b7280; background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 20px; padding: 1px 7px; margin-left: 5px; vertical-align: middle; }
    .profiles-block { background: #f8faff; border: 1.5px solid #dbeafe; border-radius: 10px; padding: 1rem 1.1rem 0.5rem; margin-bottom: 1rem; }
    .profiles-header { font-size: .82rem; font-weight: 700; color: #3b82f6; display: flex; align-items: center; gap: 5px; margin-bottom: .4rem; }
    .profiles-hint { font-size: .75rem; color: #6b7280; margin-bottom: .85rem; line-height: 1.5; }
    input, textarea {
      width: 100%;
      padding: 0.6rem 0.75rem;
      border: 1.5px solid #e5e7eb;
      border-radius: 8px;
      font-size: 0.9rem;
      transition: border-color 0.2s;
      outline: none;
      font-family: inherit;
    }
    input:focus, textarea:focus {
      border-color: #2563eb;
      box-shadow: 0 0 0 3px rgba(102,126,234,0.12);
    }
    .email-row {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 8px;
      align-items: stretch;
    }
    .email-row input { width: 100%; }
    .otp-btn {
      padding: 0 14px;
      background: #4f46e5;
      color: #fff;
      border: none;
      border-radius: 8px;
      font-size: 0.82rem;
      font-weight: 600;
      cursor: pointer;
      white-space: nowrap;
      transition: opacity 0.15s;
    }
    .otp-btn:hover { opacity: 0.92; }
    .otp-btn:disabled { background: #cbd5e1; color: #fff; cursor: not-allowed; }
    .otp-block {
      display: none;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      padding: 0.9rem 1rem;
      margin-top: 0.5rem;
      margin-bottom: 0.75rem;
    }
    .otp-block.open { display: block; }
    .otp-block.verified { background: #f0fdf4; border-color: #bbf7d0; }
    .otp-input-row {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 8px;
      margin-bottom: 0.55rem;
    }
    .otp-input {
      letter-spacing: 0.4rem;
      font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
      font-size: 1.1rem;
      text-align: center;
    }
    .otp-meta {
      font-size: 0.72rem;
      color: #64748b;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }
    .otp-status {
      font-size: 0.78rem;
      font-weight: 600;
    }
    .otp-status.ok { color: #16a34a; }
    .otp-status.err { color: #dc2626; }
    .resend-link {
      background: none;
      border: none;
      color: #4f46e5;
      font-size: 0.78rem;
      font-weight: 600;
      cursor: pointer;
      padding: 0;
    }
    .resend-link:disabled {
      color: #94a3b8;
      cursor: not-allowed;
    }
    textarea { resize: vertical; min-height: 70px; }
    .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .file-label {
      display: block;
      padding: 0.6rem 0.75rem;
      border: 1.5px dashed #c4b5fd;
      border-radius: 8px;
      background: #f8f4ff;
      text-align: center;
      cursor: pointer;
      font-size: 0.85rem;
      color: #7c3aed;
      transition: background 0.2s;
    }
    .file-label:hover { background: #ede9fe; }
    .file-name { font-size: 0.78rem; color: #6b7280; margin-top: 0.3rem; }
    #resume-input { display: none; }
    .submit-btn {
      width: 100%;
      padding: 0.8rem;
      background: linear-gradient(135deg, #2563eb, #4f46e5);
      color: #fff;
      border: none;
      border-radius: 10px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: opacity 0.2s, transform 0.1s;
      margin-top: 1.25rem;
    }
    .submit-btn:hover:not(:disabled) { opacity: 0.92; transform: translateY(-1px); }
    .submit-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; background: #94a3b8; }
    .alert {
      padding: 0.75rem 1rem;
      border-radius: 8px;
      font-size: 0.875rem;
      margin-bottom: 1rem;
    }
    .alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
    .alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
    #success-screen { display: none; text-align: center; padding: 1rem 0; }
    #success-screen .icon { font-size: 3rem; margin-bottom: 1rem; }
    #success-screen h2 { font-size: 1.25rem; color: #16a34a; margin-bottom: 0.5rem; }
    #success-screen p { color: #6b7280; font-size: 0.9rem; line-height: 1.5; }
    #error-screen { display: none; text-align: center; padding: 2rem 0; }
    #error-screen .icon { font-size: 3rem; margin-bottom: 1rem; }
    #error-screen h2 { font-size: 1.1rem; color: #dc2626; margin-bottom: 0.5rem; }
    .loading { display: none; text-align: center; padding: 3rem; }
    .spinner {
      width: 40px; height: 40px;
      border: 3px solid #e5e7eb;
      border-top-color: #2563eb;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
      margin: 0 auto 1rem;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    @media (max-width: 480px) { .row { grid-template-columns: 1fr; } .card { padding: 1.5rem 1.25rem; } }
  
