:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #15231f;
  background: #edf1eb;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top right, rgb(202 221 211 / 80%), transparent 32rem),
    #edf1eb;
}

button,
code,
input,
pre {
  font: inherit;
}

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

.masthead,
.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.auth-actions,
.panel-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-label {
  max-width: 260px;
  overflow: hidden;
  color: #52645e;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 7vw, 5.75rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

h2 {
  margin-bottom: 12px;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
}

.eyebrow {
  margin-bottom: 10px;
  color: #386052;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lede,
.muted,
.instructions {
  color: #52645e;
}

.lede {
  max-width: 600px;
  font-size: 1.1rem;
}

.button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #1b332b;
  border-radius: 999px;
  color: #f8faf8;
  background: #1b332b;
  cursor: pointer;
}

.button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.button-secondary {
  color: #1b332b;
  background: transparent;
}

.text-button {
  padding: 8px 4px;
  border: 0;
  color: #315d4d;
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.button:focus-visible,
.payload:focus-visible {
  outline: 3px solid #e39952;
  outline-offset: 3px;
}

.panel {
  margin-top: 72px;
  padding: clamp(22px, 5vw, 44px);
  border: 1px solid rgb(27 51 43 / 18%);
  border-radius: 22px;
  background: rgb(250 252 249 / 88%);
  box-shadow: 0 24px 70px rgb(39 65 55 / 9%);
}

.auth-panel {
  max-width: 620px;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  margin-top: 6px;
  color: #2a4038;
  font-size: 0.82rem;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgb(27 51 43 / 32%);
  border-radius: 9px;
  color: #15231f;
  background: #fff;
}

.auth-form input:focus-visible,
.text-button:focus-visible {
  outline: 3px solid #e39952;
  outline-offset: 2px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #e8ece9;
}

.status::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8d9994;
  content: "";
}

.status[data-state="success"]::before {
  background: #21845f;
}

.status[data-state="error"]::before {
  background: #bb493d;
}

.payload {
  min-height: 220px;
  max-height: 520px;
  margin: 22px 0 0;
  padding: 20px;
  overflow: auto;
  border-radius: 13px;
  color: #dce9e3;
  background: #17231f;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.instructions {
  max-width: 760px;
  margin-top: 38px;
  line-height: 1.7;
}

code {
  padding: 2px 5px;
  border-radius: 4px;
  color: #25493d;
  background: #dfe8e3;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
}

@media (max-width: 640px) {
  .shell {
    padding: 36px 0;
  }

  .masthead,
  .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-actions,
  .panel-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    align-self: flex-start;
  }

  .panel {
    margin-top: 44px;
  }
}
