
/* ---------- Khu vực phụ huynh (dành cho người lớn: nhiều chữ hơn) ---------- */
body[data-screen="parent"] .screen { overflow-y: auto; }
.parent { max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; padding-bottom: 30px; user-select: text; font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif; }
.p-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.p-head h2 { margin: 0; font-size: 28px; color: #fff; text-shadow: 0 3px 0 #1d6fd1; font-family: var(--font); }
.p-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.p-card { background: #fff; border-radius: 20px; padding: 14px; box-shadow: 0 5px 0 var(--card-edge); display: flex; flex-direction: column; }
.p-card b { font-size: 30px; line-height: 1.1; font-family: var(--font); }
.p-card b em { font-style: normal; font-size: 18px; color: var(--ink-soft); }
.p-card small { color: var(--ink-soft); font-size: 13px; }
.p-panel { background: #fff; border-radius: 22px; padding: 16px 18px; box-shadow: 0 5px 0 var(--card-edge); }
.p-panel h3 { margin: 0 0 12px; font-size: 19px; font-family: var(--font); }
.week { display: flex; align-items: flex-end; gap: 10px; height: 130px; }
.day { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.day i { width: 100%; max-width: 42px; min-height: 4px; border-radius: 8px 8px 4px 4px; background: linear-gradient(#7cc4ff, #3aa0ff); }
.day .v { font-size: 12px; color: var(--ink-soft); }
.day small { font-size: 12px; color: var(--ink-soft); }
.p-topic { padding: 10px 0; border-top: 1px solid #eef2f8; }
.p-topic:first-of-type { border-top: 0; }
.p-topic-head { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.p-topic-head span { color: var(--ink-soft); font-size: 13px; }
.p-topic .meter { width: 100%; margin: 6px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; padding: 2px 10px; border-radius: 99px; background: #f1f4f9; color: #a1a8bb; }
.chip small { font-size: 11px; }
.chip.on { background: #dff7e7; color: #1f7a43; }
.settings .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 15px; }
.settings input[type="checkbox"] { width: 22px; height: 22px; accent-color: #3aa0ff; margin-right: 8px; }
.settings label.row:has(input[type="checkbox"]) { justify-content: flex-start; }
.settings input[type="text"] { font: inherit; padding: 6px 12px; border-radius: 12px; border: 2px solid var(--card-edge); background: #fff; color: var(--ink); width: min(220px, 100%); }
.settings .name-row { justify-content: flex-end; padding-top: 0; }
.settings .saved { color: #1f7a43; font-weight: 700; font-size: 14px; }
.settings .saved.pop { animation: pop .3s ease; }
.settings select { font: inherit; padding: 6px 10px; border-radius: 12px; border: 2px solid var(--card-edge); background: #fff; color: var(--ink); }
.note { margin: 0 0 6px; font-size: 13px; color: var(--ink-soft); background: #f5f9ff; border-radius: 12px; padding: 8px 12px; }
.tips ul { margin: 0; padding-left: 20px; line-height: 1.55; font-size: 15px; }
.danger { text-align: center; background: transparent; box-shadow: none; }
.pill.plain { padding: 10px 18px; border-radius: 99px; background: rgba(255, 255, 255, .7); color: #c0392b; font-weight: 700; font-size: 15px; }

