.submission-page {
  width: min(1240px, calc(100% - 40px));
}

.submission-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(520px, 1.22fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: start;
  padding: 68px 0 90px;
}

.submission-hero {
  position: sticky;
  top: 34px;
}

.submission-hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.058em;
}

.safety-card,
.form-card,
.drafts-card,
.gate-card {
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.safety-card {
  margin-top: 34px;
  padding: 24px;
}

.safety-card h2 {
  margin: 0;
  font-size: 1rem;
}

.safety-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.55;
  list-style: none;
}

.safety-list li {
  position: relative;
  padding-left: 20px;
}

.safety-list li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.submission-content,
#submission-workspace {
  min-width: 0;
}

#submission-workspace {
  display: grid;
  gap: 26px;
}

.form-card,
.drafts-card,
.gate-card {
  padding: clamp(24px, 4vw, 34px);
}

.gate-card {
  text-align: center;
}

.gate-card h2 {
  margin: 18px 0 8px;
}

.gate-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.gate-symbol {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  color: var(--green);
  font-size: 1.4rem;
}

.primary-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 0 20px;
  border-radius: 13px;
  background: var(--green);
  color: #06110d;
  font-weight: 760;
  text-decoration: none;
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.card-heading.compact {
  align-items: center;
  margin-bottom: 6px;
}

.card-heading h2 {
  margin: 3px 0 0;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.card-kicker {
  margin: 0;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.account-chip {
  max-width: 240px;
  margin: 0;
  padding: 8px 11px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
}

.field textarea {
  width: 100%;
  min-height: 108px;
  padding: 13px 14px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  outline: none;
  background: rgba(2, 10, 8, 0.48);
  color: var(--text);
  font: inherit;
  line-height: 1.55;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(101, 240, 174, 0.1);
}

.optional {
  color: var(--muted);
  font-weight: 500;
}

.coordinate-group {
  margin: 20px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.coordinate-group legend {
  padding: 0 7px;
  color: #dbeae3;
  font-size: 0.8rem;
  font-weight: 680;
}

.coordinate-group > .field-note {
  margin-top: 0;
}

.coordinate-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.attestation {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 11px;
  align-items: start;
  margin-top: 22px;
  color: #c8dbd2;
  font-size: 0.8rem;
  line-height: 1.55;
}

.attestation input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.form-actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.form-actions .submit,
.form-actions .secondary-action {
  margin-top: 0;
}

.cancel-edit {
  background: transparent;
}

.refresh-button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.refresh-button:hover { color: var(--text); }

.refresh-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.drafts-status {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.draft-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.draft-item {
  display: grid;
  gap: 12px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

.draft-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.draft-item h3 {
  margin: 0;
  font-size: 1rem;
}

.draft-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.draft-item .review-note {
  padding: 11px 12px;
  border-left: 3px solid var(--orange);
  border-radius: 8px;
  background: rgba(255, 184, 107, 0.08);
  color: #f3d6b5;
}

.vault-card {
  border-color: rgba(101, 240, 174, 0.38);
}

.vault-copy,
.vault-state {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

.credential-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.vault-state {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--green);
  border-radius: 8px;
  background: rgba(101, 240, 174, 0.07);
}

.draft-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #789187;
  font-size: 0.72rem;
}

.draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-top: 2px;
}

.draft-action {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 720;
}

.draft-action:hover {
  border-color: var(--green);
  color: var(--text);
}

.draft-action.danger {
  border-color: rgba(255, 150, 137, 0.34);
  color: #ffc1b8;
}

.draft-action.primary {
  border-color: rgba(101, 240, 174, 0.42);
  background: rgba(101, 240, 174, 0.08);
  color: #c8ffe3;
}

.draft-action:disabled {
  cursor: wait;
  opacity: 0.55;
}

.status-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(101, 240, 174, 0.24);
  border-radius: 999px;
  background: rgba(101, 240, 174, 0.07);
  color: #bfffe0;
  font-size: 0.66rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 940px) {
  .submission-layout {
    grid-template-columns: 1fr;
  }

  .submission-hero {
    position: static;
  }
}

@media (max-width: 600px) {
  .submission-page { width: min(100% - 24px, 620px); }
  .submission-layout { padding: 48px 0 70px; }
  .submission-hero h1 { font-size: clamp(2.5rem, 13vw, 4rem); }
  .card-heading { display: grid; }
  .account-chip { max-width: 100%; }
  .coordinate-fields { grid-template-columns: 1fr; gap: 0; }
  .credential-fields { grid-template-columns: 1fr; gap: 0; }
}
