/* Academy Manager — M0 shell. Court-green ink on warm sand; system stack (self-contained,
   no font fetches — site-standards). Mobile-first; the PWA is the product surface. */
:root {
  --ground: #FAF8F4; --raised: #FFFFFF; --ink: #14211F; --muted: #5C6B68;
  --rule: #E2DDD3; --primary: #1D5B52; --primary-ink: #FFFFFF; --error: #8C3A32;
}
@media (prefers-color-scheme: dark) {
  :root { --ground: #101614; --raised: #18201E; --ink: #ECEFEC; --muted: #A2AFAB;
          --rule: #26322F; --primary: #6FBFB0; --primary-ink: #0B100F; --error: #E2938A; }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--ground); color: var(--ink);
  font: 16px/1.55 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.app { min-height: 100dvh; display: grid; place-items: center; padding: 1.25rem; }
.hidden { display: none !important; }

.card {
  width: 100%; max-width: 24rem; background: var(--raised);
  border: 1px solid var(--rule); border-radius: 10px; padding: 2rem 1.75rem;
}
.brand { display: flex; flex-direction: column; gap: .15rem; margin-bottom: 1.6rem; }
.brand.small { margin-bottom: 1.2rem; }
.wordmark { font-weight: 700; letter-spacing: .35em; font-size: .95rem; }
.product { color: var(--muted); font-size: .85rem; letter-spacing: .04em; }

form { display: flex; flex-direction: column; gap: .45rem; }
label { font-size: .8rem; color: var(--muted); margin-top: .5rem; }
input {
  font: inherit; color: inherit; background: var(--ground);
  border: 1px solid var(--rule); border-radius: 6px; padding: .6rem .7rem;
}
input:focus-visible, button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
button {
  font: inherit; font-weight: 600; margin-top: 1rem; cursor: pointer;
  background: var(--primary); color: var(--primary-ink);
  border: 0; border-radius: 6px; padding: .7rem;
}
button[disabled] { opacity: .6; cursor: default; }
button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--rule); }
.msg { min-height: 1.3em; margin: .5rem 0 0; font-size: .88rem; color: var(--error); }
.hint { margin: .2rem 0 0; font-size: .8rem; color: var(--muted); }

.me { display: flex; align-items: center; gap: .9rem; margin: .4rem 0 1rem; }
.avatar {
  width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: var(--primary-ink); font-weight: 700; font-size: 1.1rem;
}
.who h1 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.meline { margin: .1rem 0 0; color: var(--muted); font-size: .88rem; }
.m0note { color: var(--muted); font-size: .85rem; border-top: 1px solid var(--rule); padding-top: .9rem; }

.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--ground); }
.spin { width: 1.6rem; height: 1.6rem; border: 3px solid var(--rule); border-top-color: var(--primary);
        border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
