/* YMB Mobile look: Public Sans, paper, ink, slate accent. No scroll bars anywhere. */
:root {
  --paper: #FBFBF8; --ink: #121212; --slate: #2C4259; --panel: #EBEDE8;
  --ochre: #C08A3E; --green: #2F5A2A; --muted: #5C6168; --line: #D9DCD5;
}
* { box-sizing: border-box; scrollbar-width: none; }
[hidden] { display: none !important; }
*::-webkit-scrollbar { display: none; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body {
  font: 16px/1.45 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
.app {
  max-width: 480px; margin: 0 auto; min-height: 100dvh;
  padding: calc(env(safe-area-inset-top) + 12px) 20px calc(env(safe-area-inset-bottom) + 20px);
  display: flex; flex-direction: column;
}
.top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; color: var(--slate); letter-spacing: .02em; }
.env { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: #5A4E12; background: #F3EDC8; padding: 3px 10px; border-radius: 999px; }
.screen { flex: 1; }
h1 { font-size: 28px; line-height: 1.2; margin: 8px 0 6px; font-weight: 700; }
h2 { font-size: 17px; margin: 0 0 6px; font-weight: 600; color: var(--slate); }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.center { text-align: center; margin-top: 30vh; }
code { background: var(--panel); padding: 1px 5px; border-radius: 4px; font-size: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 16px 0; }
.card p:last-child { margin-bottom: 0; }
.form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.form input {
  display: block; width: 100%; margin-top: 6px; padding: 13px 14px; font: inherit; font-weight: 400;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink);
}
.form input:focus { outline: 2px solid var(--slate); outline-offset: 1px; border-color: transparent; }
.btn {
  display: block; width: 100%; padding: 14px; font: inherit; font-weight: 600; border-radius: 12px;
  border: 1.5px solid var(--slate); background: transparent; color: var(--slate); cursor: pointer; margin-top: 8px;
}
.btn.primary { background: var(--slate); color: #fff; }
.btn:disabled { opacity: .55; cursor: default; }
.link { background: none; border: 0; padding: 8px 0; font: inherit; color: var(--slate); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.links { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.msg { min-height: 1.4em; font-size: 14px; margin: 0 0 4px; }
.msg.err { color: #9A3B22; }
.msg.ok { color: var(--green); }
.banner { display: flex; justify-content: space-between; align-items: center; background: #DCE4EC; color: var(--slate); border-radius: 12px; padding: 6px 14px; margin-bottom: 12px; font-size: 14px; }
.foot { font-size: 12px; text-align: center; padding-top: 24px; }
