:root {
  color: #17212b;
  background: #f5f7fa;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 320px; }

button, input { font: inherit; }

button {
  border: 0;
  border-radius: 0.45rem;
  background: #176b87;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  padding: 0.75rem 1rem;
}

button:hover { background: #0e5871; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid #efb64d; outline-offset: 2px; }
button[disabled] { cursor: wait; opacity: 0.65; }

a { color: #0e5871; }

.shell { margin: 0 auto; max-width: 46rem; padding: 2.25rem 1.25rem 3rem; }
.brand { color: #176b87; font-size: 0.9rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.title { font-size: clamp(1.9rem, 5vw, 2.7rem); letter-spacing: -0.04em; margin: 0.35rem 0 0.45rem; }
.intro { color: #52616d; margin: 0 0 1.5rem; }

.panel { background: #fff; border: 1px solid #dbe2e8; border-radius: 0.75rem; box-shadow: 0 12px 30px rgb(23 33 43 / 8%); padding: clamp(1.25rem, 5vw, 2rem); }
.panel h2 { margin: 0 0 0.35rem; }
.panel > p { color: #52616d; margin-top: 0; }

.form { display: grid; gap: 1rem; margin-top: 1.25rem; }
.field { display: grid; font-weight: 700; gap: 0.4rem; }
.field input { border: 1px solid #9caab5; border-radius: 0.45rem; min-height: 2.75rem; padding: 0.55rem 0.65rem; }
.field small { color: #52616d; font-weight: 400; }
.form-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 1rem; }

.notice, .problem, .test-mode { border-left: 4px solid; border-radius: 0.35rem; margin: 0 0 1rem; padding: 0.85rem 1rem; }
.notice { background: #eaf6ee; border-color: #237647; }
.problem { background: #fff1f1; border-color: #b52d2d; }
.problem p { margin: 0.3rem 0 0; }
.test-mode { background: #fff8df; border-color: #b7791f; font-weight: 700; }
.diagnostic { color: #52616d; font-size: 0.875rem; }

.account-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); margin: 1.25rem 0; }
.account-item { background: #f5f7fa; border-radius: 0.45rem; padding: 0.8rem; }
.account-item dt { color: #52616d; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }
.account-item dd { margin: 0.2rem 0 0; overflow-wrap: anywhere; }
.subtle { color: #52616d; }

@media (max-width: 36rem) {
  .shell { padding: 1.5rem 1rem; }
  .panel { padding: 1.25rem; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .form-actions button { width: 100%; }
}
