:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  --bg: #f5f7fb;
  --card: #ffffff;
  --card-strong: #ffffff;
  --line: #dde4ee;
  --text: #1f2937;
  --muted: #667085;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: #eff6ff;
  --warm: #475467;
  --danger: #b42318;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.page-shell,
.admin-shell {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 28px 16px 36px;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.hero-card,
.admin-card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.hero-card {
  width: min(100%, 680px);
  border-radius: 18px;
  padding: 28px;
}

.admin-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-card {
  border-radius: 18px;
  padding: 24px;
}

.narrow-card {
  width: min(100%, 520px);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm);
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
  font-family: inherit;
  letter-spacing: 0;
  font-weight: 700;
}

h1 {
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.2;
}

h2 {
  font-size: 24px;
  line-height: 1.25;
}

.lead,
.panel-copy {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.notice-banner {
  margin-top: 18px;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  line-height: 1.6;
}

.stack-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

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

.field span {
  font-size: 14px;
  font-weight: 800;
  color: #2d342f;
}

input,
textarea {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  padding: 12px 14px;
  background: #ffffff;
  color: var(--text);
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

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

input:focus,
textarea:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.primary-button,
.secondary-button,
.ghost-link,
.danger-button {
  min-height: 44px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}

.primary-button,
.secondary-button,
.danger-button {
  border: 0;
  cursor: pointer;
}

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

.secondary-button,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #d0d5dd;
  color: var(--text);
  padding: 0 18px;
}

.danger-button {
  background: #fff1f3;
  border: 1px solid #fecdd3;
  color: #be123c;
  padding: 0 18px;
}

.primary-button:disabled,
.secondary-button:disabled,
.danger-button:disabled,
.disabled {
  opacity: 0.64;
  cursor: not-allowed;
  pointer-events: none;
}

.inline-action {
  white-space: nowrap;
}

.dashboard-topbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

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

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-strong);
}

.submissions-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.submissions-table th,
.submissions-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eaecf0;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.select-column {
  width: 52px;
  text-align: center;
}

.submissions-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.submissions-table th {
  background: #f8fafc;
  color: #344054;
  font-size: 14px;
}

.submissions-table tbody tr:nth-child(even) {
  background: #fcfcfd;
}

.message {
  min-height: 24px;
  margin: 18px 0 0;
  font-weight: 700;
  color: var(--accent);
}

.message.error {
  color: var(--danger);
}

.empty-state {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.hidden {
  display: none;
}

@media (max-width: 720px) {
  .page-shell,
  .admin-shell {
    padding: 16px 12px 24px;
  }

  .hero-card,
  .admin-card {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .admin-header,
  .dashboard-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .button-row {
    width: 100%;
  }

  .secondary-button,
  .ghost-link,
  .primary-button {
    width: 100%;
    justify-content: center;
  }

  .submissions-table {
    min-width: 720px;
  }
}
