/* My Curiosity hub additions (on top of the Snack Bar styles) */
.pill { background: var(--sky-lt); color: var(--blue); }
.pill-ok { background: #e8f5e3; color: #3d6b1f; }
.pill-pin { background: #fff3d6; color: #8a5a00; }
.sec-title { font-size: 1.02rem; margin: 18px 0 8px; }
.kid-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 12px; }
.kid-tile { display: flex; flex-direction: column; gap: 2px; text-align: left; border: 0; cursor: pointer; font: inherit; }
.kid-tile.static { cursor: default; }
.kid-tile .bal { font-size: 1.5rem; font-weight: 800; color: var(--blue); font-family: "Poppins", sans-serif; margin-top: 6px; }
.kid-tile .bal.lowtxt { color: #b45309; }
.mini-list { display: grid; gap: 6px; font-size: .92rem; }
.post .post-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.post .post-head small { margin-left: auto; }
.post h3 { margin: 4px 0 6px; font-size: 1.08rem; }
.post .post-body { line-height: 1.55; }
.post.pinned { border-left: 4px solid var(--camp, #8a8b49); }
.chat-log { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; padding: 4px 2px 10px; }
.bubble { box-shadow: none; border: 1px solid var(--line); }
.bubble small { display: block; font-size: .72rem; color: var(--muted); margin-top: 3px; white-space: normal; }
.bubble.me { align-self: flex-end; background: var(--sky-lt); border-color: transparent; }
.bubble.them { align-self: flex-start; }
.chat-send { display: flex; gap: 8px; align-items: flex-end; }
.chat-send textarea { flex: 1; resize: vertical; }
.student-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.student-head h3 { margin: 0; }
.facts { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; margin: 12px 0; }
.facts dt { color: var(--muted); font-weight: 600; font-size: .88rem; }
.facts dd { margin: 0; }
.req-list { display: grid; gap: 8px; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.req { display: flex; gap: 10px; align-items: flex-start; }
.req .reply { color: #3d6b1f; margin-top: 2px; }
.req-card .req-top { display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; margin-bottom: 4px; }
.req-card .req-top small { margin-left: auto; }
.resolveForm { margin-top: 8px; }
.resolveForm input { flex: 1; min-width: 180px; }
.thread-row { display: grid; text-align: left; gap: 2px; border: 0; cursor: pointer; font: inherit; width: 100%; }
.thread-row.unread { border-left: 4px solid var(--danger); }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.link-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.link-card .go { margin-top: auto; padding-top: 6px; color: var(--blue); font-weight: 700; font-size: .88rem; }
.link-card:hover { outline: 2px solid var(--sky-lt); }
.link-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.link-row .grow { flex: 1; min-width: 200px; }
.link-row small { display: block; word-break: break-all; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts dt { margin-top: 4px; } }

/* lunch sides */
.side-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; width: 100%; }
.side-chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--ink); }
.side-chip.on { border-color: var(--blue); background: var(--sky-lt, #e3f1f6); color: var(--blue); }
.side-chip[disabled] { opacity: .45; cursor: not-allowed; }
.lrow .side-pick { grid-column: 2; }

/* filter chips wrap onto more lines instead of scrolling off the edge */
.chips { flex-wrap: wrap; overflow: visible; padding-bottom: 2px; row-gap: 6px; }

/* lunch picker with photos */
.lunch-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.lunch-opt { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; color: var(--ink); text-align: center; }
.lunch-opt img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; margin-bottom: 4px; }
.lunch-opt .lo-emoji { font-size: 2rem; line-height: 56px; height: 60px; }
.lunch-opt b { font-size: .85rem; line-height: 1.2; }
.lunch-opt small { color: var(--muted); font-size: .76rem; }
.lunch-opt.on { border-color: var(--blue); background: var(--sky-lt, #e3f1f6); box-shadow: 0 0 0 2px rgba(62,124,149,.25); }
.lunch-opt.alg { border-color: #e6a19a; }
.lunch-opt[disabled] { opacity: .5; }
.side-chip img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 4px; }
.lrow { grid-template-columns: 90px 1fr; align-items: start; }

/* ═════════ Camp features ═════════ */
[hidden] { display: none !important; }
.back { margin-bottom: 8px; }
.pill-recap { background: #f0f5dc; color: #586a14; }
.pill-new { background: var(--sky-lt); color: var(--blue); }
.post.recap { border-left: 4px solid var(--lime); }
.post-foot { align-items: center; }
.post-foot > * { flex: none; }
.seen-line { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--blue); font-size: .8rem; font-weight: 600; margin-right: auto; }
.seen-line svg { width: 16px; height: 16px; }
.post-img { display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; margin: 8px 0 4px; cursor: zoom-in; background: var(--line); min-height: 120px; }
.post-img img { width: 100%; max-height: 420px; object-fit: cover; }
.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin: 8px 0 4px; }
.strip-ph { padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; background: var(--line); }
.strip-ph img { width: 100%; height: 100%; object-fit: cover; }
img[data-imgid]:not([src]) { visibility: hidden; }
.file-drop { display: block; border: 2px dashed var(--line); border-radius: 12px; padding: 12px; text-align: center; color: var(--muted); font-weight: 600; cursor: pointer; }
.file-drop:hover { border-color: var(--teal); }
.lb-close { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 12px; }

/* segmented control */
.seg { display: flex; background: #e8eff2; border-radius: 999px; padding: 4px; gap: 4px; }
.seg button { flex: 1; border: 0; background: none; border-radius: 999px; padding: 8px 10px; font-family: "Poppins", sans-serif; font-weight: 600; font-size: .85rem; color: var(--muted); cursor: pointer; }
.seg button[aria-selected="true"] { background: #fff; color: var(--blue); box-shadow: 0 1px 4px rgba(20,45,60,.12); }

/* more menu / quick actions */
.more-item, .quick-act { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 0; cursor: pointer; color: inherit; font: inherit; }
.more-item:hover, .quick-act:hover, .week-strip:hover { box-shadow: 0 0 0 2px var(--teal), var(--shadow); }
.quick-act { margin: 14px 0 0; }
.mi-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--sky-lt); color: var(--blue); }
.mi-icon svg { width: 22px; height: 22px; }
.mi-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mi-body b { font-family: "Poppins", sans-serif; font-weight: 600; color: var(--ink); }
.mi-body small { color: var(--muted); font-size: .84rem; }
.lc-arrow { font-size: 1.6rem; color: var(--muted); line-height: 1; }
.badge.static { position: static; }
.week-strip { display: grid; gap: 6px; width: 100%; text-align: left; border: 0; cursor: pointer; margin-top: 12px; font: inherit; color: inherit; border-left: 4px solid var(--lime); }
.ws-row b { font-family: "Poppins", sans-serif; color: var(--blue); margin-right: 4px; }

/* calendar */
.week-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.week-nav b { font-family: "Poppins", sans-serif; color: var(--ink); min-width: 120px; text-align: center; }
.week-nav input[type=date] { width: auto; flex: 1; min-width: 150px; }
.theme-banner { position: relative; border-radius: var(--radius); padding: 16px 18px; color: #fff; background: linear-gradient(120deg, var(--blue), var(--teal)); box-shadow: var(--shadow); display: grid; gap: 6px; }
.theme-banner h3 { color: #fff; font-size: 1.2rem; }
.tb-kicker { font-family: "Poppins", sans-serif; font-size: .7rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; color: var(--blue); }
.theme-banner .tb-kicker { color: #fff; opacity: .9; }
.theme-banner .bring { color: #fff; background: rgba(255,255,255,.16); }
.tb-del { position: absolute; top: 12px; right: 14px; color: #fff; }
.day { display: grid; gap: 10px; }
.day.is-today { box-shadow: 0 0 0 2px var(--lime), var(--shadow); }
.day-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.day-h b { font-family: "Poppins", sans-serif; color: var(--ink); }
.ev { border-left: 4px solid var(--teal); background: var(--bg); border-radius: 0 10px 10px 0; padding: 10px 12px; display: grid; gap: 4px; }
.ev.k-trip { border-left-color: var(--blue); }
.ev.k-reminder { border-left-color: var(--olive); }
.ev.k-special { border-left-color: var(--lime); }
.ev-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ev-top .link { margin-left: auto; }
.ev-pill { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.bring { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; background: #f0f5dc; color: #4a5a10; border-radius: 8px; padding: 6px 10px; }
.bring svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* absence & pickup */
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.type-opt { position: relative; cursor: pointer; }
.type-opt input { position: absolute; opacity: 0; pointer-events: none; }
.type-opt span { display: grid; gap: 2px; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; height: 100%; }
.type-opt b { font-family: "Poppins", sans-serif; font-weight: 600; font-size: .92rem; color: var(--ink); }
.type-opt small { color: var(--muted); font-size: .78rem; }
.type-opt input:checked + span { border-color: var(--blue); background: var(--sky-lt); }
.type-opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(54,168,178,.3); }
.t-pill.t-absent, .sum-chip.t-absent { background: #fdecea; color: #a93226; }
.t-pill.t-late, .sum-chip.t-late { background: #fff4cc; color: #6b5300; }
.t-pill.t-early, .sum-chip.t-early { background: var(--sky-lt); color: var(--blue); }
.t-pill.t-pickup, .sum-chip.t-pickup { background: #f0f5dc; color: #4a5a10; }
.change { display: grid; gap: 4px; }
.change.cancelled { opacity: .55; }
.change.cancelled h3 { text-decoration: line-through; }
.summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; align-items: center; }
.sum-chip { border-radius: 999px; padding: 5px 12px; font-size: .82rem; font-family: "Poppins", sans-serif; }
.summary .btn { margin-left: auto; }

/* lost & found */
.lost-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.lost-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.lost-img { padding: 0; border: 0; aspect-ratio: 4/3; cursor: zoom-in; background: var(--line); display: block; width: 100%; }
.lost-img img { width: 100%; height: 100%; object-fit: cover; }
.lost-img.noimg { display: grid; place-items: center; color: var(--muted); cursor: default; }
.lost-img.noimg svg { width: 40px; height: 40px; }
.lost-body { padding: 12px 14px 14px; display: grid; gap: 4px; }
.lost-body b { font-family: "Poppins", sans-serif; font-weight: 600; color: var(--ink); }
.lost-act { margin-top: 6px; display: grid; gap: 6px; justify-items: start; }

/* incidents */
.incident { display: grid; gap: 4px; }
.incident p { margin: 4px 0; line-height: 1.45; }
.incident.open { border-left: 4px solid var(--danger); }
.inc-injury { background: #fdecea; color: #a93226; }
.inc-illness { background: #fff4cc; color: #6b5300; }
.inc-behavior { background: var(--sky-lt); color: var(--blue); }
.inc-other { background: #eef1f3; color: var(--muted); }
.incClose { margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
a.chip { text-decoration: none; color: var(--blue); display: inline-flex; align-items: center; }
.card.empty a.btn { color: #fff; text-decoration: none; display: inline-block; margin-top: 6px; }
.demo-bar a { color: #5b4a00; font-weight: 700; margin-left: auto; }
.demo-link { text-align: center; margin-top: 22px; font-size: .8rem; }
.demo-link a { color: var(--muted); }

/* ── Curiosity apps menu (grid button for staff/admins) ── */
.apps-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--blue); display: grid; place-items: center; cursor: pointer; }
.apps-btn:hover, .apps-btn[aria-expanded="true"] { background: var(--sky-lt); border-color: var(--teal); }
.apps-panel { position: fixed; z-index: 70; width: min(340px, calc(100vw - 16px)); max-height: calc(100vh - 90px); overflow: auto; background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(20,45,60,.22); padding: 12px; border: 1px solid var(--line); }
.apps-h { font-family: "Poppins", sans-serif; font-size: .7rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; color: var(--blue); margin: 4px 6px 8px; }
.apps-grid { display: grid; gap: 4px; margin-bottom: 8px; }
.app-tile { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; text-decoration: none; color: inherit; }
.app-tile:hover, .app-tile:focus-visible { background: var(--sky-lt); outline: none; }
.app-tile.here { background: #f0f5dc; }
.app-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; font-size: 1.25rem; flex: none; }
.app-txt { display: grid; min-width: 0; flex: 1; }
.app-txt b { font-family: "Poppins", sans-serif; font-weight: 600; color: var(--ink); font-size: .92rem; }
.app-txt small { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-tile.here small { color: #586a14; font-weight: 600; }
.app-ext { color: var(--muted); }

/* ── Families (Office) ── */
.fam-sum button.sum-chip { border: 0; cursor: pointer; font: inherit; }
.fam-card { display: grid; gap: 8px; }
.fam-card.pending { border-left: 4px solid var(--danger); }
.fam-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.fam-top small { display: block; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.link-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--sky-lt); color: var(--blue); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: .85rem; font-weight: 600; }
.chip-x { border: 0; background: rgba(62,124,149,.15); color: var(--blue); width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 1rem; line-height: 1; }
.chip-x:hover { background: #fdecea; color: var(--danger); }
.sug { display: flex; flex-wrap: wrap; gap: 6px; }
.sug-btn { border: 1.5px dashed var(--teal); background: #fff; border-radius: 999px; padding: 4px 10px; cursor: pointer; font-size: .82rem; color: var(--blue); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.sug-btn:hover { background: var(--sky-lt); }
.fam-act { align-items: center; }
.fam-act > * { flex: none; }
.fam-tools { align-items: center; margin: 10px 0; }
.fam-tools input[type=search] { flex: 2; min-width: 200px; }
.ready-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.emailsForm input { font-size: .85rem; }
input[type=search] { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; font: inherit; }
input[type=search]:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(54,168,178,.2); }
/* ── Camp Schedules ── */
.app.wide { max-width: 1240px; }
.app.wide .tabbar { max-width: 1240px; }
.sch-modes { margin-bottom: 12px; max-width: 520px; }
.sch-weeks .chip { display: inline-flex; align-items: center; gap: 6px; }
.sch-weeks .chip small { font-weight: 400; opacity: .8; }
.wk-dot { width: 8px; height: 8px; border-radius: 50%; background: #d4dde1; }
.wk-dot.draft { background: #e3b341; }
.wk-dot.pub { background: #5E7A22; }
.sch-weekhead { display: grid; gap: 4px; margin: 4px 2px 10px; }
.sch-weekhead > div:first-child { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sch-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.sch-tools .btn { border-radius: 999px; }
.sch-share { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 6px 2px 12px; }
.sch-evs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.pill-bad { background: #fdecea; color: var(--danger); }
.sch-scroll { overflow-x: auto; margin: 0 -4px 12px; padding: 0 4px 6px; }
.sch-grid { border-collapse: separate; border-spacing: 4px; width: 100%; min-width: 520px; table-layout: fixed; }
.sch-grid th { font-family: Poppins, sans-serif; font-size: .82rem; color: var(--blue); font-weight: 600; text-align: left; padding: 2px 4px; }
.sch-grid th.sch-time { width: 104px; font-size: .76rem; color: var(--muted); white-space: nowrap; vertical-align: top; padding-top: 8px; }
.sch-grid td { padding: 0; vertical-align: top; }
.sch-cell { width: 100%; min-height: 54px; display: flex; flex-direction: column; gap: 1px; text-align: left; border: 0; border-left: 4px solid var(--c); border-radius: 8px; padding: 6px 8px; font: inherit; font-size: .84rem; cursor: pointer; color: var(--ink); }
.sch-cell:disabled, .sch-cell.ro { cursor: default; }
.sch-cell:not(:disabled):hover { box-shadow: 0 0 0 2px var(--c) inset; }
.sch-cell .sc-name { font-weight: 600; line-height: 1.25; }
.sch-cell small { color: var(--muted); font-size: .72rem; line-height: 1.3; }
.sc-note { font-style: italic; }
.sch-cell.blank { background: #f4f8fa !important; border-left-style: dashed; color: var(--muted); }
.sch-cell.sel { box-shadow: 0 0 0 2px var(--blue) inset; }
.sch-cell.clash { box-shadow: 0 0 0 2px var(--danger) inset; }
.sch-off { text-align: center; color: var(--muted); background: #f1f4f5; border-radius: 8px; vertical-align: middle !important; }
.sch-editor { border-top-color: var(--teal); }
.sch-editor h3 { flex: 1; }
.sch-editor details summary { cursor: pointer; }
.sch-notify { border: 1.5px dashed var(--line); border-radius: 10px; padding: 8px 12px; display: grid; gap: 4px; }
.sch-issues { display: grid; gap: 6px; font-size: .88rem; margin-bottom: 14px; }
.sch-issues .iss.info { color: var(--muted); padding-left: 4px; }
.sch-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.sch-legend span { border-left: 4px solid var(--c); border-radius: 8px; padding: 4px 10px; font-size: .8rem; font-weight: 600; }
.sch-legend small { font-weight: 400; color: var(--muted); }
.sch-line { display: flex; gap: 12px; align-items: baseline; border-left: 4px solid var(--c); border-radius: 6px; padding: 7px 10px; margin: 4px 0; background: #fafcfd; }
.sch-line > b { width: 64px; flex: none; font-family: Poppins, sans-serif; font-size: .85rem; color: var(--blue); }
.sch-line > span { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.sch-line .sc-note { flex-basis: 100%; color: var(--muted); font-size: .8rem; }
.sch-line.mine { background: #fff8e1; }
.sch-fam { padding: 10px 12px; }
.sch-acts { display: grid; gap: 6px; margin-top: 8px; }
.sch-actrow { display: grid; gap: 2px; text-align: left; border: 0; border-left: 4px solid var(--c); border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer; }
.sch-actrow small { color: var(--muted); }
.sch-actform { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.sch-emoji, .sch-color, .sch-order { flex: 0 0 90px !important; }
.sch-color input { height: 40px; padding: 2px; }
.sch-grp { border-top: 1px solid var(--line); padding-top: 8px; display: grid; gap: 6px; }
.sch-grp .row { align-items: center; }
.sch-slotrow { align-items: end; }
.sch-slotrow > span { flex: 0 0 20px; padding-bottom: 12px; }
details.compose > summary { cursor: pointer; font-family: Poppins, sans-serif; font-weight: 600; color: var(--blue); }
.compose .check, label.check { display: flex; gap: 8px; align-items: center; font-size: .9rem; }

/* notice banner set in Curiosity Admin (Sites & notices) */
.site-notice { background: var(--sky-lt); color: var(--blue); font-weight: 600; font-size: .92rem; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.site-notice.warn { background: #fff1e0; color: #9a4b00; border-color: #f5d7b0; }
