/* Ask Milo - base styles. Palette approved by owner: purple / yellow / cream.
   Final tokens come from 02-thiet-ke/design-spec.md (UI/UX); these are placeholders matching the palette. */
:root {
  --purple: #6b3fa0;
  --purple-dark: #4b2775;
  --yellow: #ffcc33;
  --yellow-soft: #fff1b8;
  --cream: #fff9ec;
  --ink: #2b2140;
  --muted: #6e6580;
  --danger: #c0392b;
  --ok: #2e8b57;
  --radius: 18px;
  --font: "Andika", "Lexend", "Comic Neue", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 18px; }
body { margin: 0; font-family: var(--font); background: var(--cream); color: var(--ink); line-height: 1.5; }
a { color: var(--purple); }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: var(--purple); color: #fff; }
.topbar .brand { color: #fff; font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.container { max-width: 960px; margin: 0 auto; padding: 24px 16px 48px; }
.footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 16px; }
h1 { color: var(--purple-dark); font-size: 2rem; margin-top: 0; }
.card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: 0 4px 14px rgba(75, 39, 117, .12); margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.form label { display: block; margin-bottom: 14px; font-weight: 600; }
.form input, .form select { display: block; width: 100%; margin-top: 6px; padding: 14px; font-size: 1.1rem; border: 2px solid #d8cdea; border-radius: 12px; font-family: inherit; }
.form input:focus, .form select:focus { outline: 3px solid var(--yellow); border-color: var(--purple); }
.form .check { font-weight: 400; display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 8px 0; font-size: 1rem; cursor: pointer; }
.form .check input { width: 32px; height: 32px; flex: none; margin: 6px; } /* 32px box + margin = 44px touch target (QA) */
fieldset { border: 2px dashed #d8cdea; border-radius: var(--radius); margin: 0 0 16px; padding: 12px 16px; }
.btn { display: inline-block; background: var(--purple); color: #fff; border: 0; border-radius: 999px; padding: 12px 24px; font-size: 1rem; font-weight: 700; cursor: pointer; text-decoration: none; font-family: inherit; min-height: 48px; }
.btn:hover { background: var(--purple-dark); }
.btn-big { font-size: 1.25rem; padding: 16px 32px; min-height: 64px; }
.btn-secondary { background: var(--yellow); color: var(--ink); }
.btn-secondary:hover { background: #f5b900; }
.btn-small { padding: 8px 16px; min-height: 44px; min-width: 44px; font-size: 1rem; background: var(--yellow); color: var(--ink); }
.btn-danger { background: var(--danger); }
.inline { display: inline; }
.alert { background: #fde8e6; border-left: 6px solid var(--danger); padding: 12px 16px; border-radius: 10px; }
.notice { background: var(--yellow-soft); border-left: 6px solid var(--yellow); padding: 12px 16px; border-radius: 10px; }
.muted { color: var(--muted); }
.hero { text-align: center; padding: 32px 0; }
.hero .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 24px 0; }
.avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-size: 2rem; font-weight: 700; color: var(--purple-dark); }
.kid-card .pin { letter-spacing: .6em; text-align: center; font-size: 1.6rem; }
.topic { display: flex; justify-content: space-between; align-items: center; }
.badge { background: var(--yellow-soft); border-radius: 999px; padding: 4px 12px; font-size: .85rem; }
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th, .table td { padding: 8px; border-bottom: 1px solid #eee; text-align: left; vertical-align: top; }
