:root {
  color-scheme: light;
  --ink: #2f211b;
  --muted: #705f55;
  --mocha: #6f4e37;
  --dark: #4a2f24;
  --caramel: #d47e30;
  --cream: #f5f5dc;
  --paper: #fffdf8;
  --line: #dfd4c9;
  --success: #22633f;
  --danger: #9b2c2c;
  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;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(212, 126, 48, .17), transparent 34rem),
    linear-gradient(145deg, #f8f3e9, var(--cream));
}
.shell { width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0 80px; }
.hero { display: flex; align-items: center; gap: 24px; margin-bottom: 30px; }
.brand {
  display: grid; place-items: center; flex: 0 0 92px; height: 92px; border-radius: 28px;
  color: white; background: var(--dark); font: 800 2rem/1 Georgia, serif;
  box-shadow: 0 16px 40px rgba(74, 47, 36, .2);
}
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font: 750 clamp(2rem, 5vw, 3.25rem)/1.04 Georgia, serif; }
h2 { margin-bottom: 10px; font-size: 1.45rem; }
.eyebrow { margin-bottom: 7px; color: var(--caramel); font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.lead { max-width: 650px; margin-bottom: 0; color: var(--muted); font-size: 1.08rem; }
.card {
  margin-top: 18px; padding: clamp(22px, 4vw, 34px); border: 1px solid rgba(111, 78, 55, .17);
  border-radius: 24px; background: rgba(255, 253, 248, .94); box-shadow: 0 14px 50px rgba(74, 47, 36, .09);
}
.login-card { max-width: 520px; margin-inline: auto; }
label { display: block; margin-bottom: 8px; font-weight: 750; }
input[type="password"] {
  width: 100%; min-height: 48px; margin-bottom: 16px; padding: 10px 13px;
  border: 1px solid var(--line); border-radius: 10px; font: inherit;
}
button, .button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 20px;
  border: 0; border-radius: 12px; color: white; background: var(--dark); font: 750 1rem/1 inherit;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
button:hover, .button:hover { background: var(--mocha); transform: translateY(-1px); }
button:focus-visible, .button:focus-visible, input:focus-visible { outline: 3px solid rgba(212, 126, 48, .45); outline-offset: 3px; }
.toolbar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; }
.toolbar form { margin: 0; }
.button-link { min-height: auto; padding: 4px; color: var(--mocha); background: transparent; font-size: .9rem; text-decoration: underline; }
.button-link:hover { color: var(--dark); background: transparent; transform: none; }
.step { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.step > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: white; background: var(--caramel); font-weight: 800; }
.step strong, .step small { display: block; }
.step small { margin-top: 3px; color: var(--muted); }
.dropzone {
  display: grid; place-items: center; min-height: 170px; padding: 28px; border: 2px dashed #c5ad98;
  border-radius: 18px; background: #fbf6ed; text-align: center; cursor: pointer;
}
.dropzone span { margin: 7px 0 18px; color: var(--muted); font-weight: 400; }
.dropzone input { max-width: 100%; }
.upload-form > button { margin-top: 18px; }
.message { margin: 18px 0; padding: 14px 16px; border-radius: 12px; }
.message--error, .status--danger { color: #641b1b; background: #fff1f1; border-color: #e8b9b9; }
.status--success { border-left: 6px solid var(--success); }
.status--success .button { margin-top: 8px; }
dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
dl > div { min-width: 0; padding: 15px; background: var(--paper); }
dt { margin-bottom: 4px; color: var(--muted); font-size: .78rem; font-weight: 750; text-transform: uppercase; }
dd { margin: 0; overflow-wrap: anywhere; font-weight: 650; }
.good { color: var(--success); }
.mismatch-warning {
  margin: 0 0 20px; padding: 17px 18px; border: 1px solid #e1b06e;
  border-left: 5px solid var(--caramel); border-radius: 12px; background: #fff7e8;
}
.mismatch-warning h3 { margin: 0 0 7px; color: #7c451c; font-size: 1.05rem; }
.mismatch-warning p { margin: 0; color: #694c36; }
.confirmation {
  display: flex; align-items: flex-start; gap: 11px; margin: 0 0 18px; padding: 15px;
  border-radius: 12px; background: #fff7e8; cursor: pointer; font-weight: 650;
}
.confirmation input {
  flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0;
  accent-color: var(--caramel);
}
code { overflow-wrap: anywhere; }
@media (max-width: 620px) {
  .shell { width: min(100% - 22px, 920px); padding-top: 28px; }
  .hero { align-items: flex-start; gap: 15px; }
  .brand { flex-basis: 62px; height: 62px; border-radius: 18px; font-size: 1.45rem; }
  dl { grid-template-columns: 1fr; }
  button, .button { width: 100%; }
  .button-link { width: auto; }
}
