:root {
  color-scheme: light;
  --teal: #006572;
  --paper: #fff3e4;
  --paper-top: #fff8ee;
  --text: #061928;
  --muted: #3a4772;
  --line: #dbe1ee;
  --input-line: #b8c1d2;
  --red: #d40505;
  --red-dark: #b50000;
  --green: #46b551;
  --danger: #d40505;
  --admin-bg: #eef3f8;
  --admin-line: #d9def0;
  --success: #147a4d;
  font-family: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--teal);
}

a {
  color: #005ee8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.request-shell {
  min-height: 100vh;
  display: block;
  width: min(752px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 80px;
}

.public-logo-wrap {
  width: 100%;
  margin-bottom: 10px;
}

.public-logo {
  display: block;
  width: min(420px, 100%);
  height: auto;
}

.form-panel {
  width: 100%;
  background: var(--paper);
  border-radius: 3px;
  overflow: hidden;
  padding: 0;
}

.form-panel.compact {
  padding: 46px 54px;
}

.form-panel > h1,
.form-panel > .intro {
  background: var(--paper-top);
  padding-left: 54px;
  padding-right: 54px;
}

h1 {
  margin: 0;
  padding-top: 42px;
  font-size: 34px;
  line-height: 1.16;
  letter-spacing: 0;
  font-weight: 700;
}

.intro {
  color: var(--muted);
  line-height: 1.62;
  margin: 0;
  padding-top: 8px;
  padding-bottom: 42px;
  font-size: 17px;
}

.coverage-block {
  text-align: center;
  padding: 28px 54px 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.02);
}

.coverage-block p {
  margin: 0 0 16px;
  font-size: 20px;
}

.coverage-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 5px;
  background: var(--green);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.coverage-button:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(0.95);
}

.request-form {
  display: grid;
  gap: 36px;
  padding: 0 54px 40px;
}

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

.field-narrow {
  width: 100%;
  max-width: none;
}

.field-narrow input,
.field-narrow select {
  width: 310px;
  max-width: 100%;
}

.field span:first-child {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
  color: #001c2b;
}

.field strong {
  color: var(--danger);
  padding-left: 4px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--input-line);
  border-radius: 4px;
  background: #fff;
  color: #172033;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  padding: 10px 12px;
  outline: none;
}

input,
select {
  height: 42px;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: #6c8fbd;
  box-shadow: 0 0 0 2px rgba(108, 143, 189, 0.18);
}

.sub-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: -4px;
}

.human-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 16px;
  color: #172033;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(184, 193, 210, 0.7);
  border-radius: 4px;
}

.human-check input {
  width: 18px;
  height: 18px;
  padding: 0;
}

.thanks-copy {
  border-top: 1px solid rgba(219, 225, 238, 0.8);
  padding-top: 26px;
  margin-top: 8px;
}

.thanks-copy h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
}

.thanks-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.empty-check {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
}

.primary-btn,
.secondary-btn,
.save-btn {
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.primary-btn {
  justify-self: center;
  width: 180px;
  min-height: 50px;
  padding: 0 24px;
  background: var(--red);
  color: #fff;
  font-size: 17px;
}

.primary-btn:hover {
  background: var(--red-dark);
}

.secondary-btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--input-line);
  color: #1d2940;
  background: #fff;
}

.secondary-btn.small {
  min-height: 34px;
  font-size: 13px;
}

.error-summary {
  margin: 0 54px 28px;
  border: 1px solid #f4b8b0;
  border-radius: 4px;
  padding: 14px 16px;
  color: var(--danger);
  background: #fff3f1;
}

.error-summary ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

.field-error {
  color: var(--danger);
  font-size: 13px;
}

.admin-shell {
  min-height: 100vh;
  padding: 18px;
  background: var(--admin-bg);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 0 0 14px;
}

.admin-kicker {
  margin: 0 0 4px;
  font-size: 13px;
  color: #5d6679;
  font-weight: 700;
}

.admin-header h1 {
  padding: 0;
  font-size: 28px;
}

.admin-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ip-pill {
  border: 1px solid var(--admin-line);
  border-radius: 999px;
  background: #fff;
  color: #5d6679;
  padding: 8px 12px;
  font-size: 13px;
}

.notice {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--success);
  background: #e9f8f1;
  border: 1px solid #b9ead2;
  border-radius: 4px;
  padding: 8px 12px;
  font-weight: 700;
}

.table-frame {
  overflow: auto;
  border: 1px solid #cbd3ea;
  background: #f7f8fd;
  box-shadow: 0 12px 36px rgba(25, 38, 64, 0.12);
}

.submissions-table {
  min-width: 1620px;
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}

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

.submissions-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f1f3ff;
  color: #000f4f;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
}

.submissions-table td {
  background: rgba(255, 255, 255, 0.52);
  color: #273249;
}

.submissions-table tr:hover td {
  background: #ffffff;
}

.submissions-table th:nth-child(1) { width: 170px; }
.submissions-table th:nth-child(2) { width: 118px; }
.submissions-table th:nth-child(3) { width: 100px; }
.submissions-table th:nth-child(4) { width: 260px; }
.submissions-table th:nth-child(5) { width: 440px; }
.submissions-table th:nth-child(6) { width: 130px; }
.submissions-table th:nth-child(7) { width: 250px; }
.submissions-table th:nth-child(8) { width: 170px; }
.submissions-table th:nth-child(9) { width: 150px; }
.submissions-table th:nth-child(10) { width: 90px; }

.nowrap {
  white-space: nowrap;
}

.set-name {
  font-weight: 600;
}

.url-cell,
.comment-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.url-link {
  color: #005cff;
}

.category-pill,
.status-select {
  border-radius: 4px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  color: #111;
}

.cat-baseball { background: #ffc88e; }
.cat-football { background: #ffc5c0; }
.cat-basketball { background: #f6bee4; }
.cat-hockey { background: #d8e6ff; }
.cat-soccer { background: #bfe9cf; }
.cat-wrestling { background: #bde3f0; }
.cat-racing { background: #ddd6fe; }
.cat-pokemon { background: #ede6b9; }
.cat-magicthegathering { background: #d7d1c7; }
.cat-lorcana { background: #cfd8ff; }
.cat-onepiece { background: #f7d8a6; }

.status-select,
.date-input {
  min-height: 34px;
  height: 34px;
  padding: 6px 8px;
  font-size: 13px;
}

.status-select {
  background: #ffc88e;
  border-color: #f4b36f;
}

.date-input {
  min-width: 128px;
}

.save-btn {
  min-height: 34px;
  padding: 0 12px;
  background: #172033;
  color: #fff;
  font-size: 13px;
}

.empty-row {
  text-align: center;
  padding: 36px;
  color: #5d6679;
}

@media (max-width: 720px) {
  .request-shell {
    width: min(100% - 24px, 752px);
    padding: 20px 0 44px;
  }

  .form-panel > h1,
  .form-panel > .intro,
  .coverage-block,
  .request-form {
    padding-left: 24px;
    padding-right: 24px;
  }

  h1 {
    font-size: 28px;
  }

  .intro {
    font-size: 16px;
  }

  .field-narrow {
    width: 100%;
  }

  .admin-header {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-actions {
    justify-content: flex-start;
  }
}
