:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #667085;
  --line: #d9dee7;
  --accent: #0f766e;
  --accent-2: #2563eb;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

.topbar {
  align-items: center;
  background: #101828;
  color: #fff;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 60px;
  padding: 12px 22px;
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar a {
  color: #e7edf6;
  font-size: 14px;
}

.container {
  margin: 0 auto;
  max-width: 1180px;
  padding: 24px;
}

.hero {
  align-items: center;
  background: linear-gradient(135deg, #0f766e, #263238 62%, #2563eb);
  color: #fff;
  display: flex;
  min-height: 330px;
  padding: 40px;
}

.hero div {
  max-width: 700px;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.08;
  margin: 8px 0 16px;
}

.eyebrow {
  color: #b6f0e9;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
}

.panel,
article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.narrow {
  max-width: 430px;
}

.grid {
  display: grid;
  gap: 16px;
}

.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wide {
  grid-column: 1 / -1;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  margin-top: 0;
}

label {
  display: grid;
  font-weight: 700;
  gap: 7px;
  margin-bottom: 14px;
}

.check {
  align-items: center;
  display: flex;
  font-weight: 400;
  gap: 8px;
}

input,
select,
textarea,
button {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  min-height: 40px;
  padding: 9px 10px;
  width: 100%;
}

textarea {
  resize: vertical;
}

button,
.button {
  background: var(--accent);
  border: 0;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-weight: 700;
  padding: 10px 14px;
  text-align: center;
  width: auto;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.secondary {
  background: #334155;
}

.danger {
  background: var(--danger);
}

table {
  background: #fff;
  border-collapse: collapse;
  border: 1px solid var(--line);
  margin: 14px 0 24px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef2f6;
}

small,
.muted {
  color: var(--muted);
}

.notice {
  color: var(--danger);
  font-weight: 700;
  margin: 10px 0;
}

.terms,
.format-info {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 18px 0;
  padding: 16px;
}

.terms h2,
.format-info h2 {
  font-size: 18px;
  margin-top: 0;
}

.format-info p {
  margin: 6px 0;
}

.status {
  background: #e6fffa;
  border: 1px solid #99f6e4;
  border-radius: 6px;
  display: inline-block;
  font-weight: 700;
  padding: 8px 10px;
}

.progress {
  background: #e5e7eb;
  border-radius: 999px;
  height: 14px;
  overflow: hidden;
  width: 100%;
}

.progress span {
  background: var(--accent);
  display: block;
  height: 100%;
}

.camera-frame {
  background: #0b1220;
  border-radius: 8px;
  margin: 14px 0;
  overflow: hidden;
}

.camera-frame iframe {
  border: 0;
  display: block;
  height: 520px;
  width: 100%;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .container {
    padding: 16px;
  }

  .hero {
    min-height: auto;
    padding: 26px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .two,
  .three,
  .four {
    grid-template-columns: 1fr;
  }

  table {
    display: block;
    overflow-x: auto;
  }

  .camera-frame iframe {
    height: 320px;
  }
}
