:root {
  color-scheme: light;
  --ink: #17233c;
  --muted: #667085;
  --line: #dbe4ee;
  --surface: #ffffff;
  --canvas: #f3f7fb;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --safe: #067647;
  --safe-bg: #ecfdf3;
  --danger: #b42318;
  --danger-bg: #fef3f2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(160deg, #edf7f5 0%, var(--canvas) 45%, #eef3fa 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.brand, .card-heading, .session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand { justify-content: flex-start; margin-bottom: 24px; }

.brand-mark {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 15px;
  background: var(--brand);
  color: white;
  font-weight: 800;
  letter-spacing: -.04em;
  box-shadow: 0 10px 25px rgba(15, 118, 110, .22);
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(1.35rem, 3vw, 1.8rem); }
h2 { margin-bottom: 12px; font-size: clamp(1.25rem, 3vw, 1.65rem); }
p { color: var(--muted); line-height: 1.65; }

.eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--brand);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.card, .session-bar {
  border: 1px solid rgba(219, 228, 238, .95);
  border-radius: 20px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 22px 65px rgba(31, 50, 81, .10);
}

.card { padding: clamp(24px, 5vw, 42px); }
.login-card { max-width: 620px; }
.session-bar { margin-bottom: 18px; padding: 14px 18px; }
.session-label { margin-left: 10px; color: var(--muted); font-size: .9rem; }

.status {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.status-locked, .status-nocharge { color: #344054; background: #f2f4f7; }
.status-safe { color: var(--safe); background: var(--safe-bg); }
.status-nocharge { white-space: nowrap; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 13px 20px;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}

.button:hover { background: var(--brand-dark); transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, summary:focus-visible, .link-button:focus-visible { outline: 3px solid #99f6e4; outline-offset: 3px; }

.manual-link {
  display: block;
  width: fit-content;
  margin-top: 16px;
  color: var(--brand-dark);
  font-size: .9rem;
  font-weight: 800;
  text-underline-offset: 3px;
}

.manual-callout {
  margin: 18px 0 0;
  padding: 13px 15px;
  border: 1px solid #b6d9d4;
  border-radius: 11px;
  background: #f0fdfa;
  color: #344054;
  font-size: .9rem;
}

.manual-callout a { color: var(--brand-dark); font-weight: 800; text-underline-offset: 3px; }

.link-button {
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.upload-form { display: grid; gap: 15px; margin-top: 24px; }

.file-field {
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfdff;
}

.file-field > span { font-weight: 800; }
.file-field small, .fine-print, footer { color: var(--muted); font-size: .82rem; line-height: 1.55; }
.file-field input { width: 100%; color: #344054; font: inherit; font-size: .9rem; }
.file-field input[type="text"], .file-field input[type="password"] {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
}

details { padding: 14px 16px; border-radius: 12px; background: #f8fafc; }
summary { cursor: pointer; color: #344054; font-weight: 800; }
pre { overflow-x: auto; padding: 14px; border-radius: 9px; background: #17233c; color: #e6fffa; font-size: .82rem; line-height: 1.6; }

.alert { margin: 0 0 18px; padding: 14px 16px; border: 1px solid; border-radius: 12px; line-height: 1.5; }
.alert small { display: block; margin-top: 5px; }
.alert-success { border-color: #abefc6; background: var(--safe-bg); color: var(--safe); }
.alert-error { border-color: #fecdca; background: var(--danger-bg); color: var(--danger); }

footer { padding: 22px 6px 0; text-align: center; }

@media (max-width: 620px) {
  .shell { width: min(100% - 20px, 880px); padding-top: 24px; }
  .card-heading { align-items: flex-start; flex-direction: column; }
  .session-bar { align-items: flex-start; }
  .session-label { display: block; margin: 7px 0 0; }
  .button { width: 100%; }
}
