:root {
  color-scheme: light;
  --bg: #eef2f1;
  --panel: #ffffff;
  --ink: #1c2427;
  --muted: #647276;
  --line: #d9e1de;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --warn-bg: #fff7ed;
  --warn: #9a3412;
  --ok-bg: #ecfdf5;
  --ok: #047857;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

.shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.status-bar,
.layout,
.panel-heading.row,
.button-row,
.user-card {
  display: flex;
  align-items: center;
}

.status-bar {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 0.95;
}

h2 {
  font-size: 1.15rem;
}

.layout {
  align-items: stretch;
  gap: 18px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(34, 51, 51, 0.08);
}

.auth-panel {
  flex: 0 0 380px;
}

.form-panel {
  flex: 1;
}

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

.panel-heading {
  margin-bottom: 16px;
}

.panel-heading p,
.help,
.user-card p,
.submissions-help {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.panel-heading.row {
  justify-content: space-between;
  gap: 14px;
}

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

label {
  display: grid;
  gap: 7px;
  color: #344246;
  font-size: 0.9rem;
  font-weight: 650;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cbd7d4;
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
  background: #fbfdfc;
}

textarea {
  resize: vertical;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 11px 14px;
  background: var(--brand);
  color: white;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

button:hover {
  background: var(--brand-dark);
}

button:disabled {
  cursor: not-allowed;
  background: #cbd7d4;
  color: #566569;
}

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

.secondary {
  background: #e5eeeb;
  color: #223033;
}

.secondary:hover {
  background: #d8e4e0;
}

.google {
  width: 100%;
  margin-top: 8px;
  background: #1f2937;
}

.google:hover {
  background: #111827;
}

.divider {
  display: grid;
  place-items: center;
  margin: 16px 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.pill {
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--warn-bg);
  color: var(--warn);
  font-weight: 750;
  white-space: nowrap;
}

.pill.ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.signed-in {
  display: grid;
  gap: 14px;
}

.user-card {
  gap: 12px;
}

.user-card span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok);
  font-weight: 800;
}

.message {
  min-height: 24px;
  margin: 4px 0 12px;
  color: var(--muted);
}

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

.message.ok {
  color: var(--ok);
}

.submissions {
  display: grid;
  gap: 10px;
}

.submission {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdfc;
}

.submission strong {
  display: block;
  margin-bottom: 4px;
}

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

.hidden {
  display: none !important;
}

@media (max-width: 780px) {
  .shell {
    width: min(100vw - 24px, 680px);
    padding-top: 20px;
  }

  .status-bar,
  .layout {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-panel {
    flex-basis: auto;
  }

  .panel-heading.row {
    align-items: flex-start;
    flex-direction: column;
  }
}
