/* Wigmore phone apps: staff app and parents portal */
:root {
	--navy: #1F2A44; --leaf: #2F7D5B; --sun: #FFC845; --sun-d: #E0A92A; --butter: #FFF6DC; --mint: #EAF4EE; --sky: #E6F1FA; --peach: #FBEADF; --rose: #FCE8E8;
	--line: #ECE5D3; --muted: #5B6680; --bg: #F7F4EC; --card: #FFFFFF; --err: #B3261E;
	--display: 'Baloo 2', 'Trebuchet MS', sans-serif; --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
	--safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
	color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--navy); font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--leaf); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
[hidden] { display: none !important; }
.wa-muted { color: var(--muted); }
.wa-small { font-size: 14px; color: var(--muted); text-align: center; }

/* Buttons */
.wa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 0; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; text-align: center; line-height: 1.2; }
.wa-btn-sun { background: var(--sun); color: var(--navy); box-shadow: 0 3px 0 var(--sun-d); }
.wa-btn-navy { background: var(--navy); color: #fff; }
.wa-btn-ghost { background: #fff; color: var(--navy); border: 2px solid var(--line); }
.wa-btn-danger { background: #fff; color: var(--err); border: 2px solid #F3C9C6; }
.wa-btn-block { width: 100%; }
.wa-btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.wa-btn:disabled { opacity: .55; cursor: default; }

/* Forms */
.wa-form { display: flex; flex-direction: column; gap: 6px; }
.wa-form label, .wa-label { font-weight: 800; font-size: 14px; margin-top: 8px; }
.wa-form input:not([type=checkbox]), .wa-form select, .wa-form textarea, .wa-input {
	-webkit-appearance: none; appearance: none; width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid #DDD5C2; border-radius: 14px; background: #fff; font-size: 16px; color: var(--navy);
}
.wa-form select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F2A44' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; padding-right: 40px; }
.wa-form textarea { min-height: 96px; resize: vertical; }
.wa-form input:focus, .wa-form select:focus, .wa-form textarea:focus { border-color: var(--leaf); outline: none; box-shadow: 0 0 0 3px rgba(47, 125, 91, .18); }
.wa-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 700 !important; font-size: 15px !important; }
.wa-check input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--leaf); }
.wa-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wa-row2 > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wa-error { background: #FDECEA; color: var(--err); border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 15px; }
.wa-fieldset { border: 0; padding: 14px; margin: 6px 0 0; background: var(--bg); border-radius: 16px; display: flex; flex-direction: column; gap: 6px; }
.wa-fieldset legend { font-family: var(--display); font-weight: 800; font-size: 17px; padding: 0; float: left; width: 100%; margin-bottom: 2px; }

/* Login */
.wa-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: calc(24px + var(--safe-t)) 16px calc(24px + var(--safe-b)); background: var(--butter); }
.wa-login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 28px; padding: 28px 22px; box-shadow: 0 20px 50px rgba(31, 42, 68, .12); display: flex; flex-direction: column; gap: 10px; text-align: center; }
.wa-login-logo { width: 170px; height: auto; margin: 0 auto 6px; }
.wa-login-card h1 { font-size: 28px; }
.wa-login-card .wa-form { text-align: left; margin-top: 6px; }
.wa-login-card .wa-btn { margin-top: 12px; }

/* ---------------- Staff app shell ---------------- */
.wa-app { min-height: 100vh; }
.wa-shell { min-height: 100vh; padding-bottom: calc(76px + var(--safe-b)); }
.wa-bar { position: sticky; top: 0; z-index: 20; background: var(--navy); color: #fff; padding: calc(10px + var(--safe-t)) calc(16px + var(--safe-r)) 12px calc(16px + var(--safe-l)); }
.wa-bar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wa-bar h1 { font-size: 24px; color: #fff; }
.wa-bar p { color: #C9D3E6; font-size: 13px; }
.wa-bar .wa-chip-live { background: rgba(255, 200, 69, .18); color: var(--sun); }
.wa-rainbow { height: 4px; background: linear-gradient(90deg, #E8474C 0 16.6%, #F28C3A 16.6% 33.3%, #F7C531 33.3% 50%, #4CB86B 50% 66.6%, #3D9BE9 66.6% 83.3%, #7B4FC9 83.3%); }
.wa-view { padding: 14px calc(14px + var(--safe-r)) 24px calc(14px + var(--safe-l)); display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin: 0 auto; }
.wa-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px calc(6px + var(--safe-r)) calc(6px + var(--safe-b)) calc(6px + var(--safe-l)); }
.wa-tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; border: 0; background: none; color: var(--muted); font-size: 11.5px; font-weight: 800; border-radius: 14px; cursor: pointer; }
.wa-tab svg { width: 24px; height: 24px; }
.wa-tab[aria-selected="true"] { color: var(--navy); background: var(--butter); }
.wa-tab .wa-badge { position: absolute; top: 4px; left: calc(50% + 6px); }
.wa-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #E8474C; color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }

/* Cards */
.wa-card { background: var(--card); border-radius: 22px; padding: 16px; box-shadow: 0 1px 0 rgba(31, 42, 68, .04); display: flex; flex-direction: column; gap: 10px; }
.wa-card h2 { font-size: 19px; }
.wa-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wa-hero { background: var(--navy); color: #fff; border-radius: 24px; padding: 18px; display: flex; align-items: center; gap: 16px; }
.wa-hero b { font-family: var(--display); font-size: 54px; line-height: 1; color: var(--sun); font-variant-numeric: tabular-nums; }
.wa-hero span { font-weight: 700; color: #E3E8F2; }
.wa-pulse { width: 12px; height: 12px; border-radius: 999px; background: #4CB86B; box-shadow: 0 0 0 0 rgba(76, 184, 107, .6); animation: wa-pulse 1.6s infinite; flex: none; }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(76, 184, 107, .55); } 70% { box-shadow: 0 0 0 12px rgba(76, 184, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(76, 184, 107, 0); } }
@media (prefers-reduced-motion: reduce) { .wa-pulse { animation: none; } }
.wa-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.wa-kpi { background: #fff; border-radius: 18px; padding: 14px; }
.wa-kpi span { font-size: 13px; font-weight: 700; color: var(--muted); }
.wa-kpi b { display: block; font-family: var(--display); font-size: 32px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.wa-kpi small { font-size: 12.5px; color: var(--muted); }
.wa-up { color: var(--leaf); font-weight: 800; } .wa-down { color: #B3261E; font-weight: 800; }
.wa-list { display: flex; flex-direction: column; gap: 8px; }
.wa-item { display: flex; gap: 12px; align-items: center; background: #fff; border: 0; border-radius: 16px; padding: 12px 14px; text-align: left; width: 100%; cursor: pointer; color: var(--navy); text-decoration: none; }
.wa-card .wa-item { background: var(--bg); }
.wa-item-main { flex: 1 1 auto; min-width: 0; }
.wa-item-main b { display: block; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-item-main span { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-item-side { flex: none; text-align: right; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wa-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--butter); display: flex; align-items: center; justify-content: center; flex: none; }
.wa-ico svg { width: 22px; height: 22px; }
.wa-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--mint); color: var(--leaf); white-space: nowrap; }
.wa-bars { display: flex; flex-direction: column; gap: 8px; }
.wa-barrow { display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 4px 10px; align-items: center; font-size: 14px; }
.wa-barrow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-barrow b { text-align: right; font-variant-numeric: tabular-nums; }
.wa-barrow i { grid-column: 1 / -1; display: block; height: 8px; border-radius: 6px; background: var(--leaf); }
.wa-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 130px; padding-top: 6px; }
.wa-week div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.wa-week i { width: 100%; max-width: 34px; background: var(--sky); border-radius: 8px 8px 4px 4px; min-height: 4px; }
.wa-week div:last-child i { background: var(--sun); }
.wa-week em { font-style: normal; color: var(--navy); font-size: 12px; font-variant-numeric: tabular-nums; }
.wa-empty { text-align: center; color: var(--muted); padding: 16px 8px; font-size: 15px; }

/* Segmented chips */
.wa-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
.wa-chips::-webkit-scrollbar { display: none; }
.wa-chipbtn { flex: none; border: 2px solid var(--line); background: #fff; color: var(--navy); border-radius: 999px; min-height: 38px; padding: 0 14px; font-weight: 800; font-size: 14px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.wa-chipbtn[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.wa-chipbtn em { font-style: normal; opacity: .7; font-variant-numeric: tabular-nums; }
.wa-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 0 12px; min-height: 48px; }
.wa-search input { border: 0; outline: 0; flex: 1; min-width: 0; font-size: 16px; background: transparent; }
.wa-dot { width: 10px; height: 10px; border-radius: 999px; flex: none; }

/* Floating action button */
.wa-fab { position: fixed; right: calc(16px + var(--safe-r)); bottom: calc(86px + var(--safe-b)); z-index: 25; width: 60px; height: 60px; border-radius: 20px; background: var(--sun); color: var(--navy); border: 0; box-shadow: 0 8px 20px rgba(31, 42, 68, .25); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.wa-fab svg { width: 28px; height: 28px; }

/* Sheets (full-screen panels) */
.wa-sheet { position: fixed; inset: 0; z-index: 50; background: rgba(31, 42, 68, .35); display: flex; align-items: flex-end; justify-content: center; }
.wa-sheet-in { background: var(--bg); width: 100%; max-width: 720px; max-height: calc(100vh - 24px - var(--safe-t)); border-radius: 26px 26px 0 0; display: flex; flex-direction: column; overflow: hidden; animation: wa-up .22s ease-out; }
@keyframes wa-up { from { transform: translateY(40px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .wa-sheet-in { animation: none; } }
.wa-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.wa-sheet-head h2 { font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 16px calc(24px + var(--safe-b)); display: flex; flex-direction: column; gap: 12px; }
.wa-close { border: 0; background: var(--bg); width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.wa-dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 12px; font-size: 15px; margin: 0; }
.wa-dl dt { font-weight: 800; color: var(--muted); font-size: 13px; padding-top: 2px; }
.wa-dl dd { margin: 0; overflow-wrap: anywhere; }
.wa-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wa-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wa-log li { font-size: 14px; padding-left: 16px; position: relative; }
.wa-log li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 999px; background: var(--leaf); }
.wa-log small { display: block; color: var(--muted); font-size: 12px; }

/* Photo grids */
.wa-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.wa-tile { position: relative; padding: 0; border: 0; background: var(--butter); border-radius: 14px; overflow: hidden; aspect-ratio: 1; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: var(--navy); }
.wa-tile img { width: 100%; height: 100%; object-fit: cover; }
.wa-tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; font-size: 11.5px; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-tile.wa-doc { background: var(--sky); }
.wa-tile.wa-doc span { position: static; background: none; color: var(--navy); padding: 4px 6px; white-space: normal; text-align: center; }
.wa-tile-del { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .92); color: var(--err); font-weight: 800; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.wa-drop { border: 2px dashed #D9CFB6; border-radius: 18px; background: #fff; padding: 18px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.wa-drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.wa-previews { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: 100%; }
.wa-previews img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.wa-progress { height: 8px; border-radius: 6px; background: var(--line); overflow: hidden; width: 100%; }
.wa-progress i { display: block; height: 100%; width: 0; background: var(--leaf); transition: width .2s; }

/* Toast */
.wa-toast { position: fixed; left: 50%; bottom: calc(92px + var(--safe-b)); transform: translateX(-50%); z-index: 60; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); max-width: calc(100vw - 32px); text-align: center; }
.wa-toast.err { background: var(--err); }

/* Install hint */
.wa-install { background: var(--sky); border-radius: 18px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-size: 14px; }
.wa-install b { display: block; }

/* ---------------- Parents portal ---------------- */
.wa-portal { min-height: 100vh; background: var(--butter); }
.wa-top { position: sticky; top: 0; z-index: 10; background: #fff; box-shadow: 0 2px 0 rgba(31, 42, 68, .05); padding-top: var(--safe-t); }
.wa-top-row { display: flex; align-items: center; justify-content: space-between; padding: 10px calc(16px + var(--safe-r)) 10px calc(16px + var(--safe-l)); max-width: 720px; margin: 0 auto; }
.wa-top-row img { height: 40px; width: auto; }
.wa-icon-btn { border: 2px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: 14px; color: var(--navy); text-decoration: none; }
.wa-main { max-width: 720px; margin: 0 auto; padding: 16px calc(14px + var(--safe-r)) calc(32px + var(--safe-b)) calc(14px + var(--safe-l)); display: flex; flex-direction: column; gap: 14px; }
.wa-hello h1 { font-size: 30px; }
.wa-hello p { color: var(--muted); margin-top: 4px; }
.wa-child { background: #fff; border-radius: 24px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.wa-child-head { display: flex; gap: 12px; align-items: center; }
.wa-child-head h2 { font-size: 24px; }
.wa-child-head p { color: var(--muted); font-size: 14px; }
.wa-avatar { width: 54px; height: 54px; border-radius: 18px; background: var(--sun); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 26px; flex: none; }
.wa-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 0; }
.wa-facts div { background: var(--mint); border-radius: 14px; padding: 10px 12px; }
.wa-facts dt { font-size: 12.5px; font-weight: 800; color: var(--muted); }
.wa-facts dd { margin: 0; font-weight: 800; }
.wa-note { background: var(--sky); border-radius: 14px; padding: 12px; font-size: 15px; }
.wa-child h3 { font-size: 18px; margin-top: 4px; }
.wa-notice { border-top: 1px solid var(--line); padding-top: 10px; }
.wa-notice:first-of-type { border-top: 0; padding-top: 0; }
.wa-notice h3 { font-size: 17px; }
.wa-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wa-links a { background: var(--bg); border-radius: 14px; padding: 12px; font-weight: 800; text-decoration: none; color: var(--navy); font-size: 15px; }
.wa-call { margin-top: 4px; }
.wa-foot { font-size: 13px; color: var(--muted); text-align: center; padding: 0 12px; }
.wa-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15, 20, 32, .94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(56px + var(--safe-t)) 12px calc(24px + var(--safe-b)); gap: 10px; }
.wa-lightbox img { max-width: 100%; max-height: 78vh; border-radius: 12px; object-fit: contain; }
.wa-lightbox p { color: #fff; font-weight: 700; text-align: center; }
.wa-lb-close { position: absolute; top: calc(12px + var(--safe-t)); right: 12px; border: 0; background: #fff; color: var(--navy); border-radius: 999px; padding: 10px 16px; font-weight: 800; cursor: pointer; }

@media (min-width: 760px) {
	.wa-kpis { grid-template-columns: repeat(4, 1fr); }
	.wa-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.wa-sheet { align-items: center; }
	.wa-sheet-in { border-radius: 26px; max-height: 88vh; }
}

/* ---------------- Parents app ---------------- */
.wa-parents { background: var(--butter); }
.wp-top { position: sticky; top: 0; z-index: 20; background: #fff; padding-top: var(--safe-t); box-shadow: 0 2px 0 rgba(31, 42, 68, .05); }
.wp-top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px calc(16px + var(--safe-r)) 10px calc(16px + var(--safe-l)); max-width: 720px; margin: 0 auto; }
.wp-top-row img { height: 40px; width: auto; }
.wp-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--leaf); background: var(--mint); border-radius: 999px; padding: 5px 11px; }
.wp-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }
.wp-live.wp-pulse { animation: wp-pulse 1.4s ease-out 2; }
@keyframes wp-pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 125, 91, .45); } 100% { box-shadow: 0 0 0 12px rgba(47, 125, 91, 0); } }
.wp-tabs { grid-template-columns: repeat(5, 1fr); }
.wp-tabs .wa-tab[aria-selected="true"] { background: var(--sun); }
.wp-hello { padding: 4px 2px 2px; }
.wp-hello > p { color: var(--muted); font-weight: 700; font-size: 14px; }
.wp-hello h1 { font-size: 30px; margin-top: 2px; }
.wp-h1 { font-size: 28px; padding: 2px; }
.wp-kids { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 2px; }
.wp-kid { display: flex; align-items: center; gap: 10px; background: #fff; border: 0; border-radius: 18px; padding: 8px 16px 8px 8px; cursor: pointer; text-align: left; flex: none; box-shadow: 0 1px 0 rgba(31, 42, 68, .05); }
.wp-kid .wa-avatar { width: 44px; height: 44px; font-size: 21px; border-radius: 14px; }
.wp-kid b { display: block; font-size: 16px; }
.wp-kid small { color: var(--muted); font-weight: 700; }
.wp-alert { display: flex; gap: 12px; align-items: flex-start; background: var(--navy); color: #fff; border-radius: 22px; padding: 16px; }
.wp-alert > div > b { font-family: var(--display); font-size: 19px; display: block; line-height: 1.2; }
.wp-alert p { color: #DCE3F0; font-size: 15px; margin: 4px 0 10px; }
.wp-alert p svg { display: inline; vertical-align: -3px; }
.wp-alert-ico { width: 44px; height: 44px; border-radius: 14px; background: var(--sun); color: var(--navy); display: flex; align-items: center; justify-content: center; flex: none; }
.wa-card .wp-alert { background: var(--sky); color: var(--navy); }
.wa-card .wp-alert p { color: var(--muted); }
.wp-newslist { display: flex; flex-direction: column; gap: 8px; }
.wp-newsbtn { display: block; text-decoration: none; color: inherit; }
.wp-news { background: var(--bg); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; border-left: 5px solid transparent; }
.wp-news h3 { font-size: 18px; }
.wp-news p { font-size: 15px; }
.wp-news small { color: var(--muted); font-weight: 700; }
.wp-news.wp-unread { border-left-color: #E8474C; }
.wp-news.wp-private { background: var(--peach); }
.wp-news.wp-hl { box-shadow: 0 0 0 3px var(--sun); }
.wp-newsfull { display: flex; flex-direction: column; gap: 10px; }
.wp-newsfull .wp-news { background: #fff; padding: 16px; }
.wp-newsfull .wp-news.wp-private { background: var(--peach); }
.wp-news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.wp-news-meta time { margin-left: auto; }
.wp-tag { background: #fff; color: #B4552A; border-radius: 999px; padding: 2px 9px; }
.wp-tag-all { color: var(--leaf); }
.wp-new { background: #E8474C; color: #fff; border-radius: 999px; padding: 2px 8px; }
.wp-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.wp-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wp-q { background: #fff; border-radius: 18px; padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 14px; }
.wp-q svg { color: var(--leaf); }
.wp-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wp-links a { display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 14px; padding: 12px; font-weight: 800; text-decoration: none; color: var(--navy); font-size: 14.5px; min-width: 0; }
.wp-links svg { color: var(--leaf); flex: none; }
.wp-chip-on { background: var(--mint) !important; color: var(--leaf) !important; }
.wp-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .9); color: var(--navy); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.wp-lb-prev { left: 10px; }
.wp-lb-next { right: 10px; }
.wa-tile.wa-doc svg { color: var(--navy); }
/* Logins */
.wa-pwrow { display: flex; gap: 8px; }
.wa-pwrow input { flex: 1; min-width: 0; }
.wa-creds { background: var(--butter); border-radius: 16px; padding: 14px; font-size: 15px; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; word-break: break-all; }
.wa-creds dt { font-weight: 800; color: var(--muted); }
.wa-creds dd { margin: 0; font-weight: 800; font-family: ui-monospace, Menlo, monospace; }
.wa-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--bg); border-radius: 14px; padding: 4px; }
.wa-seg label { display: flex !important; align-items: center; justify-content: center; text-align: center; border-radius: 10px; padding: 9px 6px; font-weight: 800 !important; font-size: 14px !important; cursor: pointer; }
.wa-seg input { position: absolute; opacity: 0; pointer-events: none; }
.wa-seg label:has(input:checked) { background: #fff; box-shadow: 0 1px 3px rgba(31, 42, 68, .12); }
.wa-role { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 9px; background: var(--sky); }
.wa-role-admin { background: var(--peach); }
.wp-chip-off { background: var(--bg) !important; color: var(--muted) !important; }
.wa-opt { font-weight: 600; color: var(--muted); font-size: 13px; }
.wa-loginfields { display: flex; flex-direction: column; gap: 6px; border-top: 2px dashed var(--line); margin-top: 8px; padding-top: 8px; }
.wp-alert p b { font-family: var(--body); font-size: inherit; display: inline; color: #fff; }
.wa-card .wp-alert p b { color: var(--navy); }
.wa-switch { display: flex !important; align-items: center; gap: 12px; font-weight: 800 !important; font-size: 15px !important; cursor: pointer; }
.wa-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wa-switch span { width: 52px; height: 30px; border-radius: 999px; background: #D7D2C4; position: relative; flex: none; transition: background .2s; }
.wa-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.wa-switch input:checked + span { background: var(--leaf); }
.wa-switch input:checked + span::after { transform: translateX(22px); }
.wa-switch input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.wp-review { background: #fff; border-radius: 22px; padding: 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 2px dashed var(--sun); }
.wp-review h2 { font-size: 20px; }
.wp-review p { color: var(--muted); font-size: 15px; margin-bottom: 6px; }
.wp-stars { color: #F2A900; font-size: 24px; letter-spacing: 4px; line-height: 1; }
.wp-post-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: 4px; }
.wp-tag-post { color: #3D6FB6 !important; }
.wp-post .wa-btn { align-self: flex-start; margin-top: 6px; }
/* Six tabs in the staff app */
.wa-app:not(.wa-parents) .wa-tabs { grid-template-columns: repeat(6, 1fr); padding-left: calc(2px + var(--safe-l)); padding-right: calc(2px + var(--safe-r)); }
.wa-app:not(.wa-parents) .wa-tab { font-size: 10.5px; padding: 0 1px; }
.wa-app:not(.wa-parents) .wa-tab svg { width: 22px; height: 22px; }
/* News */
.wa-newsitem { align-items: flex-start; }
.wa-newsthumb { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: none; }
.wa-newsthumb-none { display: flex; align-items: center; justify-content: center; background: var(--butter); color: var(--muted); }
.wa-newsitem .wa-item-main span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wa-cover { border: 2px dashed var(--line); border-radius: 18px; background: #fff; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-weight: 800; cursor: pointer; overflow: hidden; }
.wa-cover img { width: 100%; height: 100%; object-fit: cover; }
.wa-tip { font-size: 13px; margin-top: -2px; }
.wa-news-intro .wa-chip { align-self: flex-start; }
/* Artwork */
.wp-art-intro { padding: 0 2px; margin-top: -4px; }
.wp-art-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wp-art-item { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.wp-art-img { position: relative; display: block; padding: 0; border: 0; background: var(--butter); border-radius: 18px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; }
.wp-art-img img { width: 100%; height: 100%; object-fit: cover; }
.wp-art-doc { display: flex; align-items: center; justify-content: center; color: var(--muted); cursor: default; }
.wp-art-lock { position: absolute; left: 8px; top: 8px; background: rgba(31, 42, 68, .78); color: #fff; font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 3px 9px; }
.wp-art-item figcaption { font-size: 13.5px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wp-art-item .wa-btn { width: 100%; }
.wp-support .wp-stars { color: var(--leaf); }
/* Email-code sign in */
.wa-ok { background: var(--mint); color: var(--navy); border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: 15px; text-align: left; }
.wa-code { text-align: center; font-size: 30px !important; letter-spacing: 8px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wa-alt { margin-top: 14px; text-align: left; border-top: 1px solid var(--line); padding-top: 12px; }
.wa-alt summary { cursor: pointer; font-weight: 800; color: var(--leaf); list-style: none; text-align: center; }
.wa-alt summary::-webkit-details-marker { display: none; }
.wa-alt[open] summary { margin-bottom: 8px; }
.wa-resend { text-align: center; font-size: 14px; color: var(--muted); margin-top: 10px; }
.wa-linkbtn { background: none; border: 0; padding: 0; color: var(--leaf); font-weight: 800; font-size: 14px; cursor: pointer; text-decoration: underline; }
.wa-install-cta { display: flex; gap: 12px; align-items: center; background: var(--navy); color: #fff; border-radius: 22px; padding: 14px 16px; }
.wa-install-cta b { display: block; font-family: var(--display); font-size: 18px; }
.wa-install-cta span { color: #DCE3F0; font-size: 14px; }
.wa-install-cta .wa-btn { margin-left: auto; flex: none; }

/* v2.7 Choose your password */
.wa-pw-hi { margin: 0; font-weight: 700; }
.wa-pw-user { background: var(--butter); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; text-align: center; }
.wa-pw-user span { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.wa-pw-user b { font-size: 20px; word-break: break-all; }
.wa-pw-user small { font-size: 13px; color: var(--muted); word-break: break-all; }
.wa-pw-field { position: relative; }
.wa-pw-field input { width: 100%; padding-right: 76px !important; }
.wa-pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--butter); color: var(--navy); font: 800 14px Nunito, sans-serif; border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.wa-pw-meter { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 2px 0 4px; }
.wa-pw-meter i { display: block; height: 100%; width: 0; border-radius: 99px; background: #E8474C; transition: width .2s, background .2s; }
.wa-pw-meter i.m2 { background: #F28C3A; } .wa-pw-meter i.m3 { background: #F7C531; } .wa-pw-meter i.m4 { background: var(--leaf); }
.wa-pw-rules { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 700; color: var(--muted); }
.wa-pw-rules li::before { content: ""; display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); margin-right: 8px; vertical-align: -4px; box-sizing: border-box; }
.wa-pw-rules li.ok { color: var(--navy); }
.wa-pw-rules li.ok::before { background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--leaf); }
.wa-pw-rules li.bad:not(.ok) { color: var(--err); }
.wa-pw-rules li.bad:not(.ok)::before { border-color: var(--err); }
