:root{--ink:#243b3b;--muted:#687b79;--teal:#287f78;--teal-dark:#1f625e;--mint:#e8f4ef;--cream:#fbfaf6;--line:#e4ebe6;--coral:#f4a58b;--white:#fff;--shadow:0 16px 45px rgba(34,67,59,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px;line-height:1.6}a{color:var(--teal);text-decoration:none}a:hover{color:var(--teal-dark)}.topbar{height:auto;min-height:76px;padding:16px max(5vw,24px);display:flex;align-items:center;justify-content:space-between;gap:24px;background:rgba(255,255,255,.92);border-bottom:1px solid var(--line)}.brand{font-size:1.2rem;font-weight:800;letter-spacing:-.04em;color:var(--ink)}.brand::before {
    content: none;
    display: none;
}nav{display:flex;gap:22px;align-items:center;flex-wrap:wrap}nav a{font-size:.91rem;font-weight:600;color:#526966}.container{width:min(1120px,90vw);margin:0 auto;min-height:65vh}.hero{padding:90px 0 72px;position:relative;overflow:hidden}.eyebrow{font-size:.72rem;letter-spacing:.16em;font-weight:800;color:var(--teal);margin-bottom:14px}.hero h1{font-size:clamp(2.8rem,6vw,5.2rem);letter-spacing:-.065em;line-height:1.04;max-width:690px;margin:0 0 24px;font-weight:800}.hero h1 span{color:var(--teal)}.lead{font-size:1.13rem;color:var(--muted);max-width:570px}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:10px;background:var(--teal);color:#fff;padding:12px 19px;font:inherit;font-weight:700;cursor:pointer;box-shadow:0 5px 12px #287f781c}.button:hover{background:var(--teal-dark);color:#fff}.button.secondary{background:#fff;color:var(--teal);border:1px solid #d5e4dc;box-shadow:none}.button.full{width:100%;margin-top:10px}.hero-art{height:250px;position:relative;margin-top:58px;border-radius:26px;overflow:hidden;background:#e9f3ec}.sun{position:absolute;width:105px;height:105px;background:#f6c78f;border-radius:50%;right:18%;top:30px}.hill{position:absolute;bottom:-110px;width:75%;height:220px;border-radius:50%}.hill-one{left:-5%;background:#9bc7ad;transform:rotate(-7deg)}.hill-two{right:-7%;bottom:-145px;background:#6da99a;transform:rotate(9deg)}.card-float{position:absolute;left:8%;top:56px;background:white;padding:16px 22px;border-radius:14px;box-shadow:var(--shadow);font-weight:700}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;padding:18px 0 65px}.feature{background:white;border:1px solid var(--line);border-radius:18px;padding:28px}.feature-icon{width:44px;height:44px;border-radius:13px;background:var(--mint);display:grid;place-items:center;color:var(--teal);font-size:1.35rem}.feature h2{font-size:1.12rem;margin:18px 0 8px}.feature p,.muted{color:var(--muted)}.notice{background:#eef5ef;border:1px solid #deebe0;border-radius:16px;padding:22px 26px;margin:12px 0 60px}.notice p{margin:5px 0 0;color:var(--muted)}.footer{text-align:center;color:#82918b;font-size:.85rem;padding:30px 15px;border-top:1px solid var(--line);margin-top:60px}.auth-card{max-width:460px;margin:65px auto;background:#fff;border:1px solid var(--line);border-radius:22px;padding:36px;box-shadow:var(--shadow)}h1{letter-spacing:-.045em;line-height:1.15}h2{letter-spacing:-.025em}.auth-card h1{font-size:2rem;margin:0 0 10px}.auth-card form,.panel form{display:grid;gap:16px;margin-top:24px}label{display:grid;gap:7px;font-weight:650;font-size:.91rem}input,textarea,select{width:100%;border:1px solid #d7e2dc;border-radius:9px;background:#fff;padding:12px 13px;color:var(--ink);font:inherit}input:focus,textarea:focus,select:focus{outline:3px solid #287f7825;border-color:var(--teal)}textarea{resize:vertical}.error,.flash{padding:12px 15px;border-radius:10px;margin:16px 0;background:#fff0eb;color:#9b412d}.flash{background:#e8f4ef;color:#28645c}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:44px 0 26px}.page-heading h1{margin:0;font-size:clamp(2rem,4vw,3rem)}.page-heading p{margin:9px 0 0}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.stat{background:white;border:1px solid var(--line);border-radius:16px;padding:23px}.stat span,.stat small{display:block;color:var(--muted)}.stat strong{display:block;font-size:2.2rem;letter-spacing:-.06em;margin:4px 0}.stat strong.role{font-size:1.5rem}.stat small{font-size:.8rem}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:36px 0 16px}.section-heading h2{margin:0}.empty{padding:48px 24px;text-align:center;background:white;border:1px dashed #cddbd2;border-radius:18px}.empty h3{margin:6px 0}.empty p{color:var(--muted)}.empty-symbol{font-size:2.2rem;color:var(--teal)}.compact{padding:28px}.table-wrap{overflow-x:auto;background:white;border:1px solid var(--line);border-radius:14px}table{border-collapse:collapse;width:100%;text-align:left}th,td{padding:14px 18px;border-bottom:1px solid var(--line)}th{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);background:#fafcf9}tr:last-child td{border-bottom:0}.split{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(0,1.4fr);gap:30px;padding-bottom:30px}.panel{background:#fff;border:1px solid var(--line);border-radius:17px;padding:24px;height:max-content}.panel h2{margin:0}.count{font-size:.85rem;color:var(--muted);font-weight:500}.profile-list{display:grid;gap:10px}.profile{display:flex;align-items:center;gap:13px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:13px;color:var(--ink)}.avatar{display:grid;place-items:center;width:43px;height:43px;border-radius:14px;background:var(--mint);color:var(--teal);font-weight:800}.profile-info{display:grid;flex:1}.profile-info small,.profile-count{font-size:.8rem;color:var(--muted)}.journal-list{display:grid;gap:17px;padding-bottom:25px}.journal-card{display:grid;grid-template-columns:190px 1fr;background:white;border:1px solid var(--line);border-radius:17px;overflow:hidden}.journal-photo{min-height:190px;background:var(--mint)}.journal-photo img{width:100%;height:100%;object-fit:cover}.journal-body{padding:22px}.journal-meta,.byline{font-size:.8rem;color:var(--muted)}.journal-body h2{margin:7px 0}.journal-body p{margin:8px 0 14px;color:#536965}.tag{display:inline-block;border-radius:7px;padding:4px 9px;background:var(--mint);color:var(--teal-dark);font-size:.78rem;font-weight:700}.byline{margin-top:13px}.detail-card{max-width:800px;margin:25px auto;background:white;border:1px solid var(--line);border-radius:20px;padding:clamp(22px,5vw,45px)}.detail-card h1{font-size:clamp(2rem,5vw,3.2rem);margin:12px 0 20px}.detail-photo{width:100%;max-height:440px;object-fit:cover;border-radius:14px;margin-bottom:28px}.observation-copy{font-size:1.08rem;line-height:1.9;margin:26px 0}.back-link{display:inline-block;margin-top:28px}.text-link{margin-left:10px}.small{font-size:.82rem}.form-panel{max-width:760px;margin-bottom:30px}.form-panel form{gap:19px}
@media(max-width:760px){.topbar{align-items:flex-start;flex-direction:column;gap:10px}.topbar nav{gap:14px}.hero{padding-top:60px}.feature-grid,.stats{grid-template-columns:1fr}.feature-grid{gap:12px}.page-heading{align-items:flex-start;flex-direction:column}.split{grid-template-columns:1fr}.journal-card{grid-template-columns:1fr}.journal-photo{height:190px}.hero-art{height:200px}.auth-card{padding:26px;margin:35px auto}.profile-count{display:none}}


/* Stage 2 additions */
label select, label textarea { display:block; width:100%; margin-top:7px; padding:12px 13px; border:1px solid #d9e0e8; border-radius:10px; background:#fff; color:#263548; font:inherit; box-sizing:border-box; }
label textarea { resize:vertical; min-height:90px; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.filter-form { display:flex; align-items:end; flex-wrap:wrap; gap:14px; }
.filter-form label { flex:1; min-width:150px; }
.report-sheet { max-width:900px; margin:28px auto; padding:clamp(22px,5vw,56px); background:#fff; border:1px solid #e6eaf0; border-radius:16px; color:#243247; box-shadow:0 10px 35px rgba(25,45,75,.06); }
.report-sheet h1 { margin:8px 0 24px; }
.report-sheet h2 { margin-top:30px; padding-bottom:10px; border-bottom:1px solid #e6eaf0; }
.report-brand { color:#507b70; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.report-meta { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 20px; padding:16px; background:#f7f9fb; border-radius:12px; }
.report-entry { padding:12px 0; border-bottom:1px solid #edf0f4; overflow-wrap:anywhere; }
.report-entry h3 { margin-bottom:8px; }
.report-entry h3 small { font-weight:500; color:#667488; }
.report-disclaimer { margin-top:28px; padding-top:14px; border-top:1px solid #e6eaf0; font-size:.88rem; color:#657286; }
@media(max-width:650px) { .form-grid,.report-meta { grid-template-columns:1fr; } .filter-form { align-items:stretch; flex-direction:column; } .report-sheet { padding:20px; } }
@media print { body { background:#fff!important; color:#111!important; } .topbar,.footer,.no-print, .flash { display:none!important; } .container { max-width:none!important; padding:0!important; margin:0!important; } .report-sheet { max-width:none; margin:0; padding:0; border:0; box-shadow:none; border-radius:0; } .report-entry { break-inside:avoid; } a { color:inherit; text-decoration:none; } }

/* Child profile editing */
.profile-row{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.profile-row .profile{flex:1;min-width:0;margin-bottom:0}
.button-small{padding:8px 12px;font-size:.875rem;white-space:nowrap}
.button-secondary{background:#fff;color:var(--ink,#243047);border:1px solid var(--line,#dce2ea);text-decoration:none}
.button-secondary:hover{background:#f5f7fa}
.form-panel{max-width:820px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.form-panel textarea{width:100%;resize:vertical}
.form-actions{display:flex;align-items:center;gap:10px;margin-top:20px}
.small{font-size:.875rem}
@media(max-width:640px){.form-grid{grid-template-columns:1fr}.profile-row{align-items:stretch}.profile-row .profile-count{display:none}}

/* Compact child directory rows with actions aligned on the right. */
.profile-row{gap:8px;margin-bottom:6px}.profile-row .profile{padding:7px 9px;gap:9px;border-radius:9px}.profile-row .avatar{width:34px;height:34px;border-radius:10px;font-size:.82rem;flex:0 0 34px}.profile-row .profile-info{min-width:0;line-height:1.3}.profile-row .profile-info strong{font-size:.91rem}.profile-row .profile-info small{font-size:.73rem}.profile-row .profile-count{font-size:.72rem;white-space:nowrap}.profile-actions{display:flex;align-items:center;gap:5px;flex:0 0 auto}.profile-actions .button-small{padding:4px 8px;font-size:.75rem;line-height:1.35;border-radius:7px;box-shadow:none}.button-danger{background:#fff0ed;color:#a33f2e;border:1px solid #f0d1ca}.button-danger:hover{background:#a33f2e;color:#fff}.delete-child-form{margin:0;padding:0;display:block}.delete-child-form button{font:inherit;font-weight:700;cursor:pointer}
@media(max-width:640px){.profile-row{gap:6px}.profile-row .profile{padding:7px;gap:7px}.profile-row .profile-info strong{font-size:.84rem}.profile-actions{gap:4px}.profile-actions .button-small{padding:4px 6px;font-size:.7rem}.profile-row .profile-count{display:none}}

/* School settings and school identity */
.school-brand{display:flex;align-items:center;gap:9px;min-width:0;max-width:250px;color:var(--muted);font-size:.82rem;font-weight:700}
.school-brand span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.school-brand img{width:34px;height:34px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:8px;padding:2px;flex:0 0 34px}
.school-logo-field{display:grid;gap:10px}
.school-logo-preview{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:.85rem}
.school-logo-preview img{width:88px;height:88px;object-fit:contain;padding:6px;background:#fff;border:1px solid var(--line);border-radius:12px}
.checkbox-label{display:flex;align-items:center;gap:9px;font-weight:500}
.checkbox-label input{width:auto;margin:0}
.school-settings-panel{max-width:820px;margin-bottom:30px}
@media(max-width:900px){.topbar{align-items:flex-start;flex-wrap:wrap}.school-brand{order:2;max-width:100%}.topbar nav{order:3;width:100%;gap:12px}}

/* Report child picker */
.report-child-row{align-items:center;justify-content:space-between;gap:10px}
.report-child-profile{min-width:0;flex:1;cursor:default}
.report-child-profile .profile-info{min-width:0}
.report-child-profile .profile-info small{overflow-wrap:anywhere}
.report-child-row>.button{flex:0 0 auto;padding:5px 9px;font-size:.78rem}
@media(max-width:640px){.report-child-row{gap:7px}.report-child-row>.button{padding:5px 7px;font-size:.72rem}}

/* Observation cards without a photo use the full available width. */
.journal-card-no-photo{grid-template-columns:minmax(0,1fr)}
.journal-body{min-width:0}
.journal-body p{overflow-wrap:anywhere;white-space:pre-line}
