:root {
  --bg: #f5f5f3;
  --card: #ffffff;
  --text: #111111;
  --muted: #666666;
  --line: #dddddd;
  --line-soft: #e9e9e9;
  --accent: #111111;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
}

body {
  min-height: 100vh;
}

.apply-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 16px 22px;
}

.apply-top {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.apply-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.apply-logo img {
  height: 34px;
  width: auto;
  display: block;
}

.apply-home-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.apply-home-link:hover {
  color: var(--text);
  text-decoration: underline;
}

.apply-main {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.apply-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.apply-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: #fafafa;
}

.apply-title {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
}

.apply-intro {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 620px;
}

.application-state { text-align: center; overflow-wrap: anywhere; }
.application-state .apply-actions { justify-content: center; }
.application-state .apply-intro { max-width: 560px; margin-left: auto; margin-right: auto; }
.apply-shell a:focus-visible, .apply-shell button:focus-visible { outline: 3px solid #345b78; outline-offset: 4px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.required-indicator {
  color: var(--danger);
}

.optional-label {
  color: #777;
  font-weight: 400;
}

.reapplication-notice {
  display: grid;
  gap: 5px;
  margin: 0 0 20px;
  padding: 13px 14px;
  border: 1px solid #e5d7b8;
  border-radius: 10px;
  background: #fffaf0;
  color: #5c481e;
  font-size: 13px;
  line-height: 1.5;
}

.reapplication-notice a {
  color: inherit;
  font-weight: 600;
}

.account-summary {
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fafafa;
}

.account-summary-label {
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.account-summary-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
}

.account-summary-row:last-child {
  margin-bottom: 0;
}

.account-summary-key {
  color: var(--muted);
}

.account-summary-value {
  color: var(--text);
  font-weight: 600;
  word-break: break-word;
}

.apply-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.field-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: -2px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}

.apply-notif-wrap {
  display: grid;
  gap: 9px;
}

.form-notif {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  pointer-events: none;
  border: 1px solid var(--line);
  background: #fafafa;
  color: var(--text);
}

.form-notif[hidden],
.apply-recovery-link[hidden] {
  display: none;
}

.apply-recovery-link {
  width: fit-content;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.form-notif.show {
  opacity: 1;
  transform: translateY(0);
}

.form-notif.success {
  background: #f8f8f8;
  border-color: var(--line);
  color: var(--text);
}

.form-notif.error {
  background: #fff;
  border-color: #efc8c5;
  color: var(--danger);
}

.apply-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.apply-back {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.apply-back:hover {
  color: var(--text);
  text-decoration: underline;
}

.apply-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.apply-submit {
  min-width: 180px;
  min-height: 46px;
  padding: 0 18px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.apply-submit:hover {
  opacity: 0.94;
}

.apply-submit:active {
  transform: translateY(1px);
}

.apply-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.apply-submit:focus-visible,
.apply-back:focus-visible,
.apply-home-link:focus-visible,
.verification-copy-btn:focus-visible,
.apply-recovery-link:focus-visible,
.result-value a:focus-visible {
  outline: 3px solid rgba(17, 17, 17, 0.28);
  outline-offset: 3px;
}

.apply-footer {
  width: 100%;
  max-width: 760px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 700px) {
  .apply-card {
    padding: 20px;
  }

  .apply-title {
    font-size: 24px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .account-summary-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .apply-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .apply-submit {
    width: 100%;
  }

  .apply-action-link {
    width: 100%;
  }
}
.application-result[hidden] {
  display: none;
}

.result-card {
  margin-top: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fafafa;
  padding: 16px;
}

.result-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #ececec;
}

.result-row:last-child {
  border-bottom: none;
}

.result-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.result-value {
  font-size: 14px;
  color: var(--text);
  word-break: break-word;
  line-height: 1.5;
}

.result-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 700px) {
  .result-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
.verification-box {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: #fafafa;
}

.verification-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #111;
}

.verification-text {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 12px;
}

.verification-code-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.verification-code {
  font-family: monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;

  padding: 14px 18px;
  border-radius: 12px;

  background: #111;
  color: #fff;

  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.verification-copy-btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #111;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.verification-copy-btn:hover {
  background: #111;
  color: #fff;
}

.verification-note {
  margin-top: 10px;
  font-size: 12px;
  color: #888;
}

@media (max-width: 420px) {
  .apply-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .apply-card {
    padding: 18px 16px;
  }

  .verification-code-wrap {
    align-items: stretch;
  }

  .verification-code {
    width: 100%;
    padding: 12px 14px;
    font-size: 18px;
    letter-spacing: 1.5px;
    text-align: center;
  }

  .verification-copy-btn {
    width: 100%;
    min-height: 42px;
  }
}
.creator-terms-section{margin:24px 0;padding:18px;border:1px solid #dce1e8;border-radius:12px;overflow-wrap:anywhere}
.creator-terms-section h2{font-size:18px;margin:0 0 10px}.creator-terms-section p{margin:10px 0;line-height:1.5}
.creator-terms-choice{display:flex;align-items:flex-start;gap:12px}.creator-terms-choice input[type=checkbox]{width:22px;height:22px;min-width:22px;padding:0;margin:3px 0;flex:none}
.creator-terms-choice label{margin:0;line-height:1.6}.creator-terms-section a{color:#245b9c;text-decoration:underline;text-underline-offset:3px;display:inline-block;padding:5px 0}
.creator-terms-section :focus-visible{outline:3px solid #257ed0;outline-offset:3px}.creator-terms-draft{background:#fff4d7;padding:10px;border-radius:8px}
