:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --text: #1c2430;
  --muted: #5f6b7a;
  --line: #dce2ea;
  --panel: #ffffff;
  --accent: #007c89;
  --accent-dark: #005d66;
  --soft: #edf6f7;
  --warning: #8a5a00;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.page {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0;
}

.hero {
  padding: 64px 0 44px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.button.wide {
  width: 100%;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.review-console {
  margin-top: 32px;
}

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

.console-header h2 {
  margin: 0;
  font-size: 28px;
}

.status-pill {
  margin: 4px 0 0;
  border: 1px solid #b9dfe3;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

.console-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}

.panel,
.status-panel,
.document {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.panel,
.status-panel {
  padding: 22px;
}

h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

h3 {
  margin: 0 0 16px;
  font-size: 18px;
}

p {
  margin: 0 0 16px;
}

.panel p,
.status-panel p,
.document p {
  color: var(--muted);
}

.account-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--text);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  background-position: center;
  background-size: cover;
}

.account-name {
  margin-bottom: 2px;
  color: var(--text);
  font-weight: 800;
}

.hint,
.counter {
  color: var(--muted);
  font-size: 13px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

input:disabled {
  opacity: 0.62;
}

input[type="file"] {
  padding: 12px;
}

textarea,
select {
  padding: 12px;
}

textarea {
  resize: vertical;
}

.counter {
  margin-top: -10px;
  text-align: right;
}

.video-empty,
.video-preview {
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111820;
}

.video-empty {
  display: grid;
  place-items: center;
  padding: 18px;
  color: #dce2ea;
  text-align: center;
}

.video-preview {
  object-fit: contain;
}

.fieldset {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.fieldset legend {
  padding: 0 6px;
  color: var(--text);
  font-weight: 800;
}

.fieldset label,
.switch {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
}

.fieldset input,
.switch input {
  width: auto;
}

.fieldset.subdued {
  background: #fbfcfd;
}

.switch {
  margin-bottom: 14px;
}

.consent-box {
  margin: 18px 0;
  padding: 14px;
  border-left: 4px solid var(--accent);
  background: var(--soft);
}

.consent-box p {
  margin-bottom: 6px;
  color: var(--text);
}

.status-panel {
  margin-top: 18px;
}

.document {
  width: min(820px, calc(100% - 40px));
  margin: 48px auto;
  padding: 32px;
}

.document h1 {
  margin: 18px 0;
  font-size: 42px;
}

.document h2 {
  margin-top: 28px;
}

.back {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.placeholder {
  color: var(--warning);
  font-weight: 700;
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 28px, 1080px);
    padding: 28px 0;
  }

  .hero {
    padding: 42px 0 32px;
  }

  .lead {
    font-size: 18px;
  }

  .console-header,
  .console-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .document {
    width: min(100% - 28px, 820px);
    margin: 24px auto;
    padding: 22px;
  }
}
