:root {
      --bg: #cfe7fb;
      --ink: #0e0e0e;
      --muted: #3e4a57;
      --accent: #0e0e0e;
      --accent-2: #2f80c2;
      --danger: #b42318;
      --danger-soft: #fdecec;
      --card: #ffffff;
      --stroke: #c9ddef;
      --focus: #2f80c233;
      --chip: #e9f2fb;
      --panel: #f1f7fd;
      --shadow: 0 20px 50px rgba(19, 42, 74, 0.18);
      --header-logo-inset: 2px;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      font-family: "Rubik", "Segoe UI", sans-serif;
      color: var(--ink);
      background:
        radial-gradient(900px 500px at 10% -10%, #e9f2fb 0%, transparent 60%),
        radial-gradient(700px 400px at 90% 0%, #b7d8f4 0%, transparent 60%),
        var(--bg);
      line-height: 1.5;
    }

    .page {
      max-width: 1120px;
      margin: 40px auto 80px;
      padding: 0 20px;
    }

    .site-header {
      margin-bottom: 24px;
      padding: 16px 18px;
      border-radius: 16px;
      background: #ffffff;
      border: 2px solid var(--stroke);
      box-shadow: 0 10px 24px rgba(19, 42, 74, 0.12);
      display: grid;
      gap: 12px;
      justify-items: center;
      text-align: center;
    }

    .site-header .site-header-logo {
      width: calc(100% - (var(--header-logo-inset) * 2));
      max-width: 100%;
      height: auto;
      display: block;
      border-radius: 10px;
      margin-inline: auto;
    }

    .site-header p {
      margin: 0;
      color: #1f4a79;
      font-weight: 500;
      font-size: 0.94rem;
      line-height: 1.45;
      max-width: 90ch;
    }

    .env-navbar {
      position: sticky;
      top: 0;
      z-index: 2100;
      width: 100%;
      margin: 0;
      padding: 10px 16px;
      background: #b42318;
      border-bottom: 2px solid #7f1d1d;
      color: #ffffff;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 6px 14px;
      font-weight: 700;
      letter-spacing: 0.01em;
      box-shadow: 0 6px 18px rgba(69, 10, 10, 0.35);
      text-align: center;
    }

    .env-navbar__text {
      font-size: 0.95rem;
    }

    .env-navbar__meta {
      font-size: 0.85rem;
      font-weight: 600;
      opacity: 0.95;
      white-space: nowrap;
    }

    .hero {
      display: grid;
      gap: 20px;
      margin-bottom: 28px;
      align-items: center;
      grid-template-columns: 220px 1fr;
    }

    .hero h1 {
      font-family: "Baloo 2", sans-serif;
      font-size: clamp(2rem, 3.8vw, 3.2rem);
      margin: 0;
    }

    .hero p {
      margin: 0;
      color: var(--muted);
      max-width: 70ch;
    }

    .helper-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: #0e4f7f;
      font-weight: 700;
      text-decoration: none;
      width: fit-content;
    }

    .helper-link:hover {
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .helper-link--top {
      margin-top: 14px;
      padding: 8px 12px;
      border-radius: 999px;
      background: #eef6ff;
      border: 1px solid #9fc3e3;
    }

    .brand {
      display: grid;
      gap: 8px;
      place-items: center;
      padding: 16px;
      border-radius: 18px;
      background: #ffffff;
      border: 2px solid var(--stroke);
      box-shadow: 0 12px 30px rgba(19, 42, 74, 0.12);
    }

    .logo {
      width: 200px;
      height: auto;
      display: block;
    }

    .brand-line {
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--muted);
      text-align: center;
    }

    .chips {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 12px;
    }

    .chip {
      padding: 6px 12px;
      border-radius: 999px;
      background: var(--chip);
      border: 1px solid var(--stroke);
      font-size: 0.85rem;
    }

    .card {
      background: var(--card);
      border: 2px solid var(--stroke);
      border-radius: 24px;
      box-shadow: var(--shadow);
      padding: 28px;
    }

    .info-panel {
      display: grid;
      gap: 10px;
      background: var(--panel);
      border: 1px dashed #9fc3e3;
      border-radius: 18px;
      padding: 16px;
      margin-bottom: 20px;
      font-size: 0.95rem;
    }

    .info-panel.secondary {
      background: #eaf3fb;
      border-style: solid;
    }

    .info-panel strong {
      color: #0e4f7f;
    }

    .info-list {
      margin: 0;
      padding-left: 18px;
    }

    form {
      display: grid;
      gap: 26px;
    }

    .participant-form {
      margin-top: 30px;
    }

    fieldset {
      border: 2px solid var(--stroke);
      border-radius: 18px;
      padding: 20px;
      margin: 0;
    }

    fieldset[disabled] {
      opacity: 0.6;
    }

    legend {
      font-family: "Baloo 2", sans-serif;
      font-weight: 700;
      padding: 0 8px;
    }

    .grid-2 {
      display: grid;
      row-gap: 32px;
      column-gap: 12px;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-3 {
      display: grid;
      row-gap: 32px;
      column-gap: 20px;
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .field + .grid-2,
    .field + .grid-3,
    .grid-2 + .grid-2,
    .grid-2 + .grid-3,
    .grid-3 + .grid-2,
    .grid-3 + .grid-3 {
      margin-top: 12px;
    }

    .field {
      display: grid;
      gap: 8px;
    }

    .field-error {
      display: none;
      margin: -2px 0 0;
      color: var(--danger);
      font-size: 0.84rem;
      font-weight: 600;
      line-height: 1.35;
    }

    .field--error .field-error {
      display: block;
    }

    .checkbox-group--error .field-error {
      display: block;
    }

    label {
      font-weight: 500;
      font-size: 0.95rem;
    }

    input, select, textarea {
      width: 100%;
      padding: 10px 12px;
      border-radius: 12px;
      border: 2px solid var(--stroke);
      background: #fff;
      color: var(--ink);
      font-family: inherit;
      font-size: 0.95rem;
      line-height: 1.5;
    }

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

    input:focus, select:focus, textarea:focus {
      outline: 3px solid var(--focus);
      border-color: var(--accent-2);
    }

    .field--error input,
    .field--error select,
    .field--error textarea {
      border-color: var(--danger);
      background: var(--danger-soft);
    }

    .field--error .powiat-dropdown__trigger {
      border-color: var(--danger);
      background: var(--danger-soft);
    }

    .field--error .radio-group {
      border: 2px solid var(--danger);
      border-radius: 12px;
      background: var(--danger-soft);
      padding: 8px 10px;
    }

    .powiat-dropdown__native {
      position: absolute !important;
      width: 1px !important;
      height: 1px !important;
      margin: 0 !important;
      padding: 0 !important;
      border: 0 !important;
      clip: rect(0 0 0 0) !important;
      clip-path: inset(50%) !important;
      overflow: hidden !important;
      white-space: nowrap !important;
      opacity: 0 !important;
      pointer-events: none !important;
    }

    .powiat-dropdown {
      position: relative;
    }

    .powiat-dropdown__trigger {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 10px 12px;
      border-radius: 12px;
      border: 2px solid var(--stroke);
      background: #fff;
      color: var(--ink);
      font-family: inherit;
      font-size: 0.95rem;
      font-weight: 400;
      line-height: 1.5;
      text-align: left;
      appearance: none;
      cursor: pointer;
    }

    .powiat-dropdown__trigger:focus {
      outline: 3px solid var(--focus);
      border-color: var(--accent-2);
    }

    .powiat-dropdown__trigger-label {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .powiat-dropdown__caret {
      position: relative;
      width: 10px;
      height: 10px;
      flex: 0 0 auto;
      font-size: 0;
      line-height: 1;
      color: #1f2937;
      transition: transform 0.2s ease;
    }

    .powiat-dropdown__caret::before {
      content: "";
      position: absolute;
      inset: 2px;
      border-right: 1.5px solid currentColor;
      border-bottom: 1.5px solid currentColor;
      transform: rotate(45deg);
      transform-origin: center;
    }

    .powiat-dropdown.is-open .powiat-dropdown__caret {
      transform: rotate(180deg);
    }

    .powiat-dropdown.is-disabled .powiat-dropdown__trigger {
      opacity: 0.7;
      cursor: not-allowed;
      background: #f5f7fa;
    }

    .powiat-dropdown__panel {
      position: absolute;
      top: calc(100% + 6px);
      left: 0;
      right: 0;
      z-index: 1200;
      border: 2px solid var(--stroke);
      border-radius: 12px;
      background: #fff;
      box-shadow: 0 12px 24px rgba(12, 48, 80, 0.12);
      padding: 8px;
    }

    .powiat-dropdown__search {
      margin-bottom: 8px;
      border-radius: 10px;
      border: 2px solid var(--stroke);
      padding: 8px 10px;
      color: var(--ink);
      font-family: inherit;
      font-size: 0.95rem;
      font-weight: 400;
      line-height: 1.5;
    }

    .powiat-dropdown__search::placeholder {
      color: var(--muted);
    }

    .powiat-dropdown__list {
      list-style: none;
      margin: 0;
      padding: 0;
      max-height: 220px;
      overflow: auto;
      display: grid;
      gap: 4px;
    }

    .powiat-dropdown__item-btn {
      width: 100%;
      border: 1px solid transparent;
      border-radius: 8px;
      background: #fff;
      padding: 8px 10px;
      color: var(--ink);
      font-family: inherit;
      font-size: 0.95rem;
      font-weight: 400;
      line-height: 1.5;
      text-align: left;
      appearance: none;
      cursor: pointer;
    }

    .powiat-dropdown__item-btn:hover,
    .powiat-dropdown__item-btn:focus {
      background: #f5faff;
      border-color: #cfe2f3;
      outline: none;
    }

    .powiat-dropdown__item-btn.is-active {
      background: #e6f2ff;
      border-color: #9fc3e3;
      font-weight: 400;
    }

    .powiat-dropdown__empty {
      padding: 8px 10px;
      color: var(--muted);
      font-size: 0.9rem;
    }

    .rules-markdown {
      min-height: 180px;
      max-height: 320px;
      overflow: auto;
      padding: 12px;
      border-radius: 12px;
      border: 2px solid var(--stroke);
      background: #fff;
      font-size: 0.95rem;
      white-space: normal;
    }

    .rules-markdown p {
      margin: 0 0 10px;
    }

    .rules-markdown p:last-child {
      margin-bottom: 0;
    }

    .rules-markdown a {
      color: #1f4a79;
      text-decoration: underline;
      text-underline-offset: 2px;
      font-weight: 600;
    }

    .hint {
      color: var(--muted);
      font-size: 0.85rem;
    }

    .institution-section-hint {
      margin: 0 0 10px;
      line-height: 1.35;
    }

    .institution-section-hint strong {
      font-weight: 600;
    }

    .radio-group {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
    }

    .radio-option {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: var(--chip);
      border: 2px solid var(--stroke);
      border-radius: 999px;
      padding: 6px 10px;
      font-size: 0.9rem;
    }

    .checkbox-group {
      display: grid;
      gap: 10px;
    }

    .checkbox-group--error {
      border: 2px solid var(--danger);
      border-radius: 12px;
      background: var(--danger-soft);
      padding: 10px 12px;
    }

    .checkbox {
      display: flex;
      align-items: center;
      gap: 6px;
      font-weight: 600;
      font-size: 1rem;
    }

    .checkbox input[type="checkbox"] {
      width: 20px;
      height: 20px;
      margin: 0;
      accent-color: var(--accent-2);
    }

    .honeypot {
      position: absolute;
      left: -10000px;
      width: 1px;
      height: 1px;
      overflow: hidden;
    }

    .bot-warning {
      display: none;
      margin-top: 12px;
      padding: 10px 12px;
      border-radius: 12px;
      background: #fff3cd;
      border: 1px solid #f1d087;
      color: #6b4d00;
      font-weight: 600;
    }

    .captcha-box {
      display: grid;
      gap: 10px;
      justify-items: start;
    }

    .captcha-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      column-gap: 20px;
      row-gap: 12px;
      align-items: start;
    }

    .captcha-answer-field {
      gap: 8px;
    }

    .captcha-answer-input {
      width: min(100%, 320px);
      max-width: 320px;
      justify-self: start;
      margin-top: 0;
    }

    .captcha-image {
      display: block;
      width: 100%;
      max-width: 320px;
      height: 86px;
      object-fit: contain;
      border: 2px solid var(--stroke);
      border-radius: 12px;
      background: #ffffff;
      padding: 8px;
    }

    .captcha-refresh {
      border: 1px solid #b7cce2;
      background: #eef5fb;
      color: #1f4a79;
      border-radius: 10px;
      padding: 8px 12px;
      font-size: 0.88rem;
      font-weight: 600;
      cursor: pointer;
    }

    .captcha-refresh:hover {
      background: #e2effd;
    }

    .pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 12px;
      border-radius: 999px;
      background: #e6f2ff;
      border: 1px solid #9fc3e3;
      color: #0e4f7f;
      font-size: 0.85rem;
    }

    .table-head {
      display: grid;
      align-items: center;
      gap: 8px;
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: var(--muted);
      margin-bottom: 8px;
      padding: 8px 14px;
      background: #f5faff;
      border: 1px solid var(--stroke);
      border-radius: 12px;
    }

    .course-head {
      grid-template-columns: 80px 1fr;
    }

    .term-head {
      grid-template-columns: 72px 1.2fr 1.5fr 1fr;
      gap: 0;
    }

    .term-head span:last-child {
      text-align: center;
    }

    .term-field {
      margin-top: 28px;
    }

    .course-grid {
      display: grid;
      border-radius: 16px;
      border: 1px solid var(--stroke);
      overflow: hidden;
    }

    .course-tile {
      display: grid;
      grid-template-columns: 80px 1fr;
      align-items: center;
      gap: 8px;
      padding: 12px 14px;
      border-bottom: 1px solid var(--stroke);
      background: #ffffff;
      cursor: pointer;
      transition: background 0.2s ease, border-color 0.2s ease;
      font-size: 0.95rem;
    }

    .course-tile:last-child {
      border-bottom: none;
    }

    .course-tile input {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }

    .course-radio {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      border: 2px solid var(--accent-2);
      display: inline-block;
      margin-left: 8px;
    }

    .course-title {
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }

    .course-title-text {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .course-level-inline {
      display: inline-flex;
      align-items: center;
      padding: 2px 8px;
      border-radius: 999px;
      border: 1px solid #c9ddef;
      background: #eef5fb;
      color: #35516d;
      font-size: 0.8rem;
      font-weight: 500;
      white-space: nowrap;
    }

    .course-details {
      display: grid;
      gap: 2px;
      min-width: 0;
    }

    .course-block-link {
      color: inherit;
      text-decoration: none;
      cursor: default;
    }

    .course-block-link.is-tooltip {
      text-decoration: underline;
      text-decoration-style: solid;
      text-underline-offset: 2px;
      cursor: help;
    }

    .course-icon {
      width: 28px;
      height: 28px;
      object-fit: contain;
    }

    .course-subtitle {
      font-size: 0.95rem;
      color: var(--muted);
    }

    .course-subtitle.is-tooltip {
      text-decoration: underline;
      text-underline-offset: 2px;
      cursor: help;
      width: fit-content;
    }

    .course-tile:hover {
      background: #f5faff;
    }

    .course-tile:has(input:checked) {
      background: #e6f2ff;
    }

    .course-tile:has(input:checked) .course-radio {
      box-shadow: inset 0 0 0 4px var(--accent-2);
    }

    .term-list {
      display: grid;
      border-radius: 16px;
      border: 1px solid var(--stroke);
      overflow: hidden;
    }

    .term-item {
      display: grid;
      grid-template-columns: 72px 1.2fr 1.5fr 1fr;
      align-items: center;
      gap: 0;
      padding: 12px 14px;
      border-bottom: 1px solid var(--stroke);
      background: #ffffff;
      cursor: pointer;
      font-size: 0.95rem;
    }

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

    .term-item input[type="checkbox"] {
      width: 18px;
      height: 18px;
      margin-left: 8px;
      accent-color: var(--accent-2);
    }

    .term-item:has(input:checked) {
      box-shadow: inset 0 0 0 2px #2f80c2;
    }

    .term-main {
      display: contents;
    }

    .term-meta {
      display: contents;
    }

    .term-date {
      font-weight: 600;
    }

    .term-training {
      font-size: 0.95rem;
      color: var(--muted);
      text-align: left;
    }

    .term-status {
      font-size: 0.95rem;
      font-weight: 600;
      padding: 4px 8px;
      border-radius: 999px;
      background: #e6f2ff;
      border: 1px solid #9fc3e3;
      color: #0e4f7f;
      white-space: nowrap;
      justify-self: center;
      text-align: center;
      min-width: 128px;
    }

    .term-item.status-available {
      background: #eaf8ef;
    }

    .term-item.status-available .term-status {
      background: #d8f3e4;
      border-color: #78c99f;
      color: #0f5d36;
    }

    .term-item.status-waitlist {
      background: #fff4cc;
    }

    .term-item.status-waitlist .term-status {
      background: #ffe8a3;
      border-color: #e8b949;
      color: #7a4f00;
    }

    .term-item.status-full {
      background: #ffe7d9;
    }

    .term-item.status-full .term-status {
      background: #ffd1ba;
      border-color: #e28a5f;
      color: #8d2f00;
    }

    .term-item.status-closed,
    .term-item.status-unavailable,
    .term-item.status-hidden {
      background: #f1f2f4;
      cursor: default;
    }

    .term-item.status-closed .term-status,
    .term-item.status-unavailable .term-status,
    .term-item.status-hidden .term-status {
      background: #e1e4e9;
      border-color: #b8bfca;
      color: #3e4a59;
    }

    .term-item.status-past {
      background: #e9edf2;
    }

    .term-item.is-past {
      opacity: 0.8;
      cursor: default;
    }

    .term-item.is-past .term-date {
      text-decoration: line-through;
    }

    .term-note {
      margin: 10px 0 12px;
      padding: 10px 12px;
      border-radius: 12px;
      background: #e6f2ff;
      border: 1px solid #9fc3e3;
      color: #0e4f7f;
      font-weight: 600;
    }

    .term-note.term-note--error {
      background: var(--danger-soft);
      border-color: #f5b3b0;
      color: #8f1d18;
    }

    .term-quota-info {
      margin: 10px 0 0;
      padding: 10px 12px;
      border-radius: 12px;
      background: #f4efff;
      border: 1px solid #c7b3ef;
      color: #4a2d82;
      font-weight: 600;
      line-height: 1.4;
    }

    .term-jst-warning-note {
      margin: 10px 0 0;
      padding: 10px 12px;
      border-radius: 12px;
      background: #f8f3ff;
      border: 1px solid #6f42c1;
      color: #6f42c1;
      font-weight: 600;
      line-height: 1.4;
    }

    .link-button {
      border: none;
      background: none;
      color: var(--accent-2);
      font-weight: 600;
      cursor: pointer;
      padding: 0;
    }

    .link-button:hover {
      text-decoration: underline;
    }

    .test-header {
      margin-bottom: 20px;
      padding: 16px 18px;
      border-radius: 16px;
      background: #fff2f2;
      border: 2px solid #f1b4b4;
      display: grid;
      gap: 6px;
      text-align: center;
    }

    .test-header-badge {
      margin: 0;
      font-family: "Baloo 2", sans-serif;
      font-size: clamp(1.2rem, 2.8vw, 2rem);
      font-weight: 700;
      letter-spacing: 0.06em;
      color: #8b1111;
    }

    .test-header-note {
      margin: 0;
      color: #5c1e1e;
      font-weight: 500;
    }

    .test-data-note {
      margin-top: 8px;
      font-size: 0.92rem;
      color: #8b1111;
      font-weight: 600;
    }

    .site-footer {
      margin-top: 26px;
      padding: 14px 18px;
      border-radius: 14px;
      background: #ffffff;
      border: 1px solid var(--stroke);
      color: var(--muted);
      font-size: 0.9rem;
    }

    .site-footer p {
      margin: 0;
    }

    .site-footer__inner {
      display: grid;
      width: 100%;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      align-items: center;
      gap: 12px;
      min-height: 56px;
    }

    .site-footer__left {
      display: flex;
      align-items: center;
      justify-content: flex-start;
    }

    .site-footer__center {
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
    }

    .site-footer__center p {
      margin: 0;
      line-height: 1.2;
    }

    .site-footer__right {
      display: flex;
      align-items: center;
      justify-content: flex-end;
    }

    .site-footer__version {
      font-weight: 600;
      color: #35516d;
      white-space: nowrap;
    }

    .site-footer__logo {
      display: block;
      width: clamp(150px, 20vw, 190px);
      height: auto;
      max-width: 100%;
      object-fit: contain;
    }

    .site-footer a {
      color: #1f4a79;
      font-weight: 600;
      text-decoration: none;
    }

    .site-footer a:hover {
      text-decoration: underline;
      text-underline-offset: 2px;
    }

    .actions {
      display: flex;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
    }

    .actions-copy {
      display: grid;
      gap: 8px;
    }

    .status-message {
      position: fixed;
      top: 16px;
      left: 50%;
      transform: translateX(-50%);
      width: min(860px, calc(100vw - 24px));
      margin: 0;
      padding: 12px 14px;
      border-radius: 12px;
      border: 1px solid #cfd8e3;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 12px;
      align-items: start;
      font-family: "Rubik", "Segoe UI", sans-serif;
      font-weight: 600;
      z-index: 9999;
      box-shadow: 0 12px 28px rgba(19, 42, 74, 0.22);
    }

    .status-message[hidden] {
      display: none;
    }

    .status-message__content {
      line-height: 1.5;
    }

    .status-message.is-loading .status-message__content {
      display: inline-flex;
      align-items: center;
      gap: 10px;
    }

    .status-message__spinner {
      width: 16px;
      height: 16px;
      border-radius: 50%;
      border: 2px solid currentColor;
      border-top-color: transparent;
      display: inline-block;
      animation: status-spin 0.8s linear infinite;
      flex: 0 0 auto;
    }

    .status-message .status-message__close {
      border: 1px solid currentColor;
      background: transparent;
      color: inherit;
      border-radius: 10px;
      padding: 6px 10px;
      font-family: inherit;
      font-weight: 600;
      cursor: pointer;
      white-space: nowrap;
    }

    .status-message .status-message__close:hover {
      opacity: 0.9;
    }

    body.missing-required-popup-open {
      overflow: hidden;
    }

    .missing-required-popup {
      position: fixed;
      inset: 0;
      z-index: 10000;
      display: grid;
      place-items: center;
      padding: 16px;
    }

    .missing-required-popup[hidden] {
      display: none;
    }

    .missing-required-popup__backdrop {
      position: absolute;
      inset: 0;
      background: rgba(14, 14, 14, 0.45);
    }

    .missing-required-popup__panel {
      position: relative;
      width: min(560px, calc(100vw - 32px));
      max-height: calc(100vh - 32px);
      overflow: auto;
      border-radius: 16px;
      border: 2px solid var(--danger);
      background: var(--danger-soft);
      color: #8f1d18;
      padding: 18px 18px 16px;
      box-shadow: 0 20px 50px rgba(69, 10, 10, 0.3);
      display: grid;
      gap: 12px;
    }

    .missing-required-popup__title {
      margin: 0;
      font-family: "Baloo 2", sans-serif;
      font-size: clamp(1.3rem, 2.8vw, 1.8rem);
      line-height: 1.2;
      color: var(--danger);
    }

    .missing-required-popup__description {
      margin: 0;
      font-weight: 600;
    }

    .missing-required-popup__list {
      margin: 0;
      padding-left: 22px;
      display: grid;
      gap: 6px;
      font-weight: 600;
    }

    .missing-required-popup__close {
      justify-self: start;
      border: 1px solid #7f1d1d;
      background: #b42318;
      color: #ffffff;
      border-radius: 12px;
      padding: 10px 14px;
      font-size: 0.95rem;
      font-weight: 700;
      cursor: pointer;
    }

    .missing-required-popup__close:hover {
      background: #9f1f16;
    }

    .missing-required-popup__close:focus {
      outline: 3px solid rgba(180, 35, 24, 0.2);
      outline-offset: 2px;
    }

    button {
      border: none;
      background: var(--accent);
      color: white;
      padding: 12px 22px;
      border-radius: 14px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
    }

    button:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }

    .button-spinner {
      width: 14px;
      height: 14px;
      border-radius: 50%;
      border: 2px solid #ffffff;
      border-top-color: transparent;
      display: inline-block;
      margin-right: 8px;
      vertical-align: -2px;
      animation: status-spin 0.8s linear infinite;
    }

    .required-note {
      font-size: 0.85rem;
      color: var(--muted);
    }

    .helper-link--bottom {
      font-size: 0.92rem;
    }

    .section-note {
      margin-top: 12px;
      font-size: 0.85rem;
      color: var(--muted);
    }

    .term-intro-note {
      margin-top: 14px;
      font-size: 0.9rem;
      color: #0e4f7f;
      font-weight: 600;
    }

    .registration-process-note {
      margin-bottom: 18px;
      padding: 14px 16px;
      border-radius: 12px;
      background: #eef6ff;
      border: 1px solid #9fc3e3;
      color: #0e4f7f;
      font-size: 0.93rem;
      line-height: 1.5;
      display: grid;
      gap: 6px;
    }

    .registration-process-note p {
      margin: 0;
    }

    @media (max-width: 900px) {
      .env-navbar {
        padding: 9px 12px;
        gap: 4px 10px;
      }
      .env-navbar__meta {
        white-space: normal;
      }
      .grid-2, .grid-3 {
        grid-template-columns: 1fr;
      }
      .captcha-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .hero {
        grid-template-columns: 1fr;
      }
      .site-header {
        padding: 14px;
        gap: 10px;
      }
      .site-header .site-header-logo {
        width: calc(100% - 20px);
      }
      .site-header p {
        font-size: 0.88rem;
      }
      .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 10px;
      }
      .site-footer__left {
        justify-content: flex-start;
      }
      .site-footer__center {
        justify-content: center;
        min-height: auto;
      }
      .site-footer__right {
        justify-content: flex-end;
        min-height: auto;
      }
      .site-footer__logo {
        width: clamp(130px, 45vw, 180px);
      }
      .status-message {
        grid-template-columns: 1fr;
        gap: 10px;
      }
      .status-message .status-message__close {
        justify-self: end;
      }
    }

    @media (max-width: 680px) {
      .captcha-grid {
        grid-template-columns: 1fr;
      }
    }

    @keyframes status-spin {
      from {
        transform: rotate(0deg);
      }
      to {
        transform: rotate(360deg);
      }
    }
