.dw-muted { color: var(--dw-muted); margin: 6px 0 0; }
.dw-content { gap: 18px; min-width: 0; }
.dw-content > * { min-width: 0; }
.dw-inner-heading { padding: 18px 20px; }
.dw-page-heading h1 { font-size: 30px; }
.dw-page-heading p { font-size: 15px; line-height: 1.42; }
.dw-eyebrow { font-size: 11px; margin-bottom: 6px !important; }
.dw-card, .dw-panel { padding: 18px; }
.dw-btn { min-height: 36px; padding: 8px 12px; font-size: 13px; font-weight: 850; }
.dw-badge, .dw-status { padding: 3px 8px; font-size: 11px; border-radius: 6px; }
.dw-table th, .dw-table td { padding: 10px 11px; }
.dw-table td { font-size: 13px; }
.dw-field { gap: 5px; font-size: 12px; }
.dw-field input, .dw-field select, .dw-field textarea { min-height: 36px; padding: 8px 10px; }
.dw-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dw-metric-card { background: var(--dw-surface); border: 1px solid var(--dw-line); border-radius: var(--dw-radius-md); padding: 18px; box-shadow: var(--dw-shadow); display: grid; gap: 8px; }
.dw-metric-card span { color: var(--dw-muted); font-weight: 800; font-size: 13px; }
.dw-metric-card strong { font-size: 34px; line-height: 1; }
.dw-metric-card small { color: var(--dw-muted); }
.dw-app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dw-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: end; }
.dw-form-grid .wide, .wide { grid-column: 1 / -1; }
.dw-soft-panel { border: 1px solid var(--dw-line); border-radius: var(--dw-radius-md); background: #f8fafc; padding: 16px; }
.dw-soft-panel strong { display: block; margin-bottom: 7px; }
.dw-soft-panel p { margin: 0; color: var(--dw-muted); }
.dw-family-fee-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 22px; border: 1px solid rgba(31,138,112,.24); border-radius: var(--dw-radius-md); background: linear-gradient(120deg, rgba(31,138,112,.12), rgba(255,255,255,.98) 62%); box-shadow: var(--dw-shadow); }
.dw-family-fee-copy { display: grid; gap: 6px; }
.dw-family-fee-copy > span, .dw-family-fee-copy small { color: var(--dw-muted); font-weight: 720; }
.dw-family-fee-copy > strong { font-size: clamp(30px, 4vw, 44px); line-height: 1; font-variant-numeric: tabular-nums; }
.dw-family-fee-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.dw-family-fee-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dw-family-fee-overview article { display: grid; gap: 7px; min-height: 118px; align-content: center; padding: 18px; border: 1px solid var(--dw-line); border-radius: var(--dw-radius-md); background: var(--dw-surface); box-shadow: var(--dw-shadow); }
.dw-family-fee-overview span, .dw-family-fee-overview small { color: var(--dw-muted); font-weight: 740; }
.dw-family-fee-overview strong { font-size: 26px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dw-family-student-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dw-family-student-grid article { display: flex; justify-content: space-between; gap: 18px; align-items: center; border: 1px solid var(--dw-line); border-radius: 9px; padding: 14px; background: #fbfdfd; }
.dw-family-student-grid article > div { display: grid; gap: 4px; min-width: 0; }
.dw-family-student-grid article span, .dw-family-student-grid article small { color: var(--dw-muted); }
.dw-family-student-grid article b { color: var(--dw-primary); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dw-family-fee-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 14px; margin-bottom: 12px; border: 1px solid var(--dw-line); border-radius: 9px; background: #f8fafc; }
.dw-family-fee-toolbar > strong { color: var(--dw-primary); font-variant-numeric: tabular-nums; }
.dw-family-fee-table { min-width: 1040px; }
.dw-family-fee-table input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--dw-primary); }
.dw-family-voucher-submit { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; padding: 16px; border: 1px solid #b9ded2; border-radius: 10px; background: #f0faf6; }
.dw-family-voucher-submit > div { display: grid; gap: 4px; }
.dw-family-voucher-submit span { color: var(--dw-muted); }
.dw-family-voucher-sheet { display: grid; gap: 20px; }
.dw-voucher-identity { display: grid; justify-items: end; gap: 7px; }
.dw-voucher-identity strong { font-size: 19px; font-variant-numeric: tabular-nums; }
.dw-voucher-identity span { padding: 5px 9px; border-radius: 999px; background: #eef4f1; color: var(--dw-primary); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.dw-family-voucher-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dw-family-voucher-meta > div { display: grid; gap: 5px; padding: 12px; border: 1px solid var(--dw-line); border-radius: 8px; background: #f8fafc; }
.dw-family-voucher-meta span { color: var(--dw-muted); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.dw-family-voucher-meta strong { font-size: 14px; overflow-wrap: anywhere; }
.dw-family-voucher-table { min-width: 1080px; }
.dw-family-voucher-table tfoot th { border-top: 2px solid var(--dw-ink); background: #f1f7f5; font-size: 14px; }
.dw-family-voucher-table tfoot th:first-child { text-align: right; }
.dw-voucher-note { padding: 14px 16px; border-left: 4px solid var(--dw-primary); background: #f3f8f7; }
.dw-voucher-note strong { display: block; margin-bottom: 5px; }
.dw-voucher-note p { margin: 0; color: var(--dw-muted); line-height: 1.5; }
.dw-mobile-voucher-actions { display: none; }
.dw-card { min-width: 0; }
.dw-apps-heading { align-items: flex-end; }
.dw-apps-user { border: 1px solid var(--dw-line); border-radius: var(--dw-radius-md); background: var(--dw-surface); padding: 12px 14px; min-width: 180px; box-shadow: var(--dw-shadow); }
.dw-apps-user span { display: block; font-weight: 900; }
.dw-apps-user small { color: var(--dw-muted); font-weight: 800; }
.dw-crud-workspace { display: grid; gap: 13px; min-width: 0; }
.dw-crud-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dw-crud-summary-card { min-height: 68px; border: 1px solid rgba(15,23,42,.09); border-radius: 8px; background: linear-gradient(180deg, #fff, #fbfdff); box-shadow: 0 10px 24px rgba(15,23,42,.045); padding: 12px 14px; display: grid; align-content: center; gap: 4px; position: relative; overflow: hidden; }
.dw-crud-summary-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--summary-color, var(--dw-primary)); }
.dw-crud-summary-card strong { font-size: 17px; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dw-crud-summary-card span { color: var(--dw-muted); font-size: 12px; font-weight: 850; }
.dw-crud-summary-card.tone-green { --summary-color: #1f8a70; }
.dw-crud-summary-card.tone-blue { --summary-color: #316dd5; }
.dw-crud-summary-card.tone-violet { --summary-color: #7c4cc8; }
.dw-crud-summary-card.tone-amber { --summary-color: #b76a20; }
.dw-crud-summary-card.tone-red { --summary-color: #c23b54; }
.dw-crud-actionbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dw-crud-primary-actions, .dw-crud-secondary-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dw-crud-tabs { display: inline-flex; width: fit-content; max-width: 100%; gap: 5px; padding: 5px; border: 1px solid var(--dw-line); border-radius: 9px; background: rgba(255,255,255,.9); box-shadow: 0 12px 26px rgba(15,23,42,.045); overflow-x: auto; }
.dw-crud-tabs button { border: 0; border-radius: 7px; background: transparent; color: var(--dw-muted); padding: 8px 11px; display: inline-flex; align-items: center; gap: 8px; font-weight: 900; white-space: nowrap; cursor: pointer; font-size: 13px; }
.dw-crud-tabs button:hover, .dw-crud-tabs button.is-active { background: rgba(31,138,112,.1); color: var(--dw-primary); }
.dw-crud-tabs small { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center; background: #eef4f1; color: var(--dw-primary); font-size: 11px; }
.dw-crud-panel { display: none; min-width: 0; }
.dw-crud-panel.is-active { display: block; }
.dw-crud-card-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px; margin-bottom: 14px; }
.dw-crud-card-head h2 { margin: 0; font-size: 21px; letter-spacing: 0; }
.dw-crud-card-head p:not(.dw-eyebrow) { margin: 6px 0 0; color: var(--dw-muted); }
.dw-crud-search { display: flex; align-items: center; gap: 9px; min-width: min(100%, 520px); }
.dw-crud-search input { width: 100%; min-width: 220px; height: 38px; border: 1px solid var(--dw-line); border-radius: var(--dw-radius-md); padding: 0 12px; background: #f8fafc; outline: none; }
.dw-crud-search input:focus { border-color: var(--dw-primary); box-shadow: 0 0 0 4px rgba(31,138,112,.12); background: #fff; }
.dw-table-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; min-width: 210px; }
.dw-table-actions form { margin: 0; }
.dw-form-section-title { border-top: 1px solid var(--dw-line); padding-top: 16px; margin-top: 6px; }
.dw-form-section-title:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.dw-form-section-title h3 { margin: 0; font-size: 15px; letter-spacing: 0; }
.dw-admission-note { padding: 14px 16px; border: 1px solid #b9ded2; border-radius: 10px; background: #f0faf6; color: #285849; }
.dw-admission-note strong { display: block; margin-bottom: 3px; color: #173f34; }
.dw-admission-note p { margin: 0; line-height: 1.5; }
.dw-crud-form, .dw-crud-import { align-items: start; }
.dw-form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-top: 8px; }
.dw-empty-state { min-height: 180px; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; color: var(--dw-muted); }
.dw-empty-state strong { color: var(--dw-ink); font-size: 18px; }
.dw-empty-state p { margin: 0 0 6px; }
.dw-apps-toolbar { display: grid; gap: 14px; margin-bottom: 18px; }
.dw-apps-search { margin: 0; }
.dw-app-filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.dw-filter-pill { border: 1px solid var(--dw-line); border-radius: 999px; background: #fff; color: var(--dw-muted); padding: 9px 13px; font-weight: 900; white-space: nowrap; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.dw-filter-pill:hover, .dw-filter-pill.is-active { border-color: rgba(31, 138, 112, .45); background: rgba(31, 138, 112, .1); color: var(--dw-primary); }
.dw-school-app-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dw-school-app-card { min-height: 150px; --app-color: var(--dw-primary); }
.dw-school-app-card::before { background: var(--app-color); opacity: .78; }
.dw-school-app-card .dw-app-mark { width: 48px; height: 48px; border-radius: 8px; background: linear-gradient(135deg, var(--app-color), color-mix(in srgb, var(--app-color) 70%, #ffffff)); box-shadow: 0 12px 24px color-mix(in srgb, var(--app-color) 28%, transparent); }
.dw-school-app-card .dw-app-mark svg,
.dw-school-app-card .dw-app-mark .dw-app-icon-svg { width: 23px !important; height: 23px !important; max-width: 23px !important; max-height: 23px !important; display: block !important; }
.dw-school-app-card .dw-app-card-top { gap: 10px; }
.dw-school-app-card .dw-app-card-copy { display: grid; gap: 7px; }
.dw-school-app-card .dw-app-card-copy strong { font-size: 18px; line-height: 1.12; }
.dw-school-app-card .dw-app-card-copy em { font-size: 13px; line-height: 1.35; }
.dw-school-app-card.tone-core { --app-color: #1f8a70; }
.dw-school-app-card.tone-academics { --app-color: #356ed0; }
.dw-school-app-card.tone-people { --app-color: #0f8a8f; }
.dw-school-app-card.tone-fees { --app-color: #b76a20; }
.dw-school-app-card.tone-exams { --app-color: #7c4cc8; }
.dw-school-app-card.tone-attendance { --app-color: #19866b; }
.dw-school-app-card.tone-operations { --app-color: #c23b54; }
.dw-school-app-card.tone-reports { --app-color: #2f6f9f; }
.dw-school-app-card.tone-admin { --app-color: #34495e; }
.dw-school-app-card.tone-portal { --app-color: #5b63c7; }
.dw-empty-filter-state { margin-top: 16px; }
.dw-empty-filter-state[hidden] { display: none !important; }
.dw-launcher-shell { display: block; min-height: 100vh; background: radial-gradient(circle at 0 0, rgba(39, 180, 147, .12), transparent 34%), linear-gradient(180deg, #eef6f8 0, #f8fafc 55%, #eef3f7 100%); }
.dw-launcher-shell .dw-sidebar,
.dw-launcher-shell .dw-topbar,
.dw-launcher-shell .dw-mobile-topbar,
.dw-launcher-shell .dw-mobile-bottom-nav { display: none !important; }
.dw-launcher-shell .dw-workspace { min-height: 100vh; }
.dw-launcher-shell .dw-content { max-width: 1680px; margin: 0 auto; padding: 28px 40px 62px; gap: 20px; }
.dw-launcher-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 56px; }
.dw-launcher-top .dw-brand { width: fit-content; }
.dw-launcher-top .dw-brand-mark { width: 46px; height: 46px; border-radius: 8px; }
.dw-launcher-top .dw-brand strong { font-size: 18px; }
.dw-launcher-top .dw-brand small { font-size: 13px; }
.dw-launcher-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.dw-launcher-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 460px); align-items: end; gap: 32px; }
.dw-launcher-hero h1 { font-size: 56px; font-weight: 560; letter-spacing: 0; }
.dw-launcher-hero p { font-size: 16px; line-height: 1.46; max-width: 680px; }
.dw-launcher-search { margin: 0 0 8px; }
.dw-launcher-search input { height: 46px; font-size: 15px; }
.dw-launcher-shell .dw-apps-toolbar { margin: 0; }
.dw-launcher-shell .dw-app-filters { padding-bottom: 2px; }
.dw-launcher-shell .dw-filter-pill { border-radius: 6px; padding: 10px 14px; background: rgba(255,255,255,.92); box-shadow: 0 9px 20px rgba(15,23,42,.04); font-size: 14px; }
.dw-launcher-shell .dw-school-app-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.dw-launcher-shell .dw-school-app-card { min-height: 168px; padding: 15px 16px; gap: 16px; background: rgba(255,255,255,.95); box-shadow: 0 14px 34px rgba(15, 23, 42, .055); }
.dw-launcher-shell .dw-school-app-card:hover { box-shadow: 0 20px 46px rgba(15,23,42,.105); transform: translateY(-2px); }
.dw-launcher-shell .dw-app-card-copy strong { font-size: 20px; }
.dw-launcher-shell .dw-app-card-copy em { font-size: 14px; line-height: 1.36; }
.dw-install-screen { min-height: 100vh; padding: 28px; background: linear-gradient(180deg, #eef6f8 0, #f8fafc 100%); }
.dw-install-card { max-width: 1180px; min-height: calc(100vh - 56px); margin: 0 auto; background: white; border-radius: 18px; box-shadow: var(--dw-shadow-lg); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.dw-install-hero { background: linear-gradient(120deg, var(--dw-primary), var(--dw-accent)); color: white; padding: 32px; display: flex; justify-content: space-between; align-items: center; }
.dw-install-hero h1 { margin: 0; font-size: 34px; }
.dw-install-hero p { margin: 8px 0 0; opacity: .9; }
.dw-install-body { display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.dw-install-steps { border-right: 1px solid var(--dw-line); background: #f7fafc; padding: 24px; display: grid; align-content: start; gap: 12px; }
.dw-install-step { display: flex; align-items: center; gap: 12px; border-radius: var(--dw-radius-md); padding: 12px; color: var(--dw-muted); font-weight: 900; }
.dw-install-step.is-active { background: rgba(31, 138, 112, .11); color: var(--dw-primary); }
.dw-install-step span { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid var(--dw-line); border-radius: 50%; background: white; }
.dw-install-main { padding: 34px; display: grid; align-content: start; gap: 22px; }
.dw-status-list { display: grid; gap: 10px; }
.dw-status-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px; border: 1px solid var(--dw-line); border-radius: var(--dw-radius-md); }
.dw-pill-ok, .dw-pill-bad { border-radius: 999px; padding: 4px 10px; font-weight: 900; font-size: 12px; }
.dw-pill-ok { background: #dff6ee; color: #146b54; }
.dw-pill-bad { background: #fae4e8; color: #a53343; }
.dw-help-result { white-space: pre-wrap; line-height: 1.65; }
.dw-signature-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.dw-signature-row span { border-top: 1px solid var(--dw-line); padding-top: 10px; color: var(--dw-muted); font-weight: 800; text-align: center; min-height: 42px; }
.dw-school-dashboard { display: grid; gap: 22px; }
.dw-dashboard-hero-pro { display: flex; justify-content: space-between; align-items: flex-start; gap: 22px; padding: 26px; border-radius: 10px; background: linear-gradient(135deg, rgba(31,138,112,.12), rgba(49,109,213,.06) 52%, #fff); }
.dw-dashboard-hero-pro h1 { font-size: 38px; letter-spacing: 0; }
.dw-dashboard-context { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.dw-dashboard-context span { border: 1px solid rgba(31,138,112,.18); background: rgba(255,255,255,.82); color: var(--dw-muted); border-radius: 999px; padding: 7px 10px; font-size: 12px; font-weight: 900; }
.dw-dashboard-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; min-width: 230px; }
.dw-dashboard-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dw-dashboard-kpi { min-height: 150px; border: 1px solid var(--dw-line); border-radius: 10px; background: #fff; box-shadow: 0 16px 40px rgba(15,23,42,.06); padding: 18px; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start; position: relative; overflow: hidden; }
.dw-dashboard-kpi::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--kpi-color, var(--dw-primary)); }
.dw-dashboard-kpi-icon { width: 52px; height: 52px; max-width: 52px; max-height: 52px; min-width: 52px; min-height: 52px; border-radius: 9px; color: white; background: var(--kpi-color, var(--dw-primary)); display: grid; place-items: center; box-shadow: 0 14px 26px rgba(15,23,42,.12); overflow: hidden; }
.dw-school-dashboard .dw-dashboard-kpi-icon > svg,
.dw-school-dashboard .dw-dashboard-kpi-icon .dw-app-icon-svg { width: 26px !important; height: 26px !important; max-width: 26px !important; max-height: 26px !important; min-width: 0 !important; min-height: 0 !important; display: block !important; flex: 0 0 auto !important; }
.dw-dashboard-kpi-copy { display: grid; gap: 6px; min-width: 0; }
.dw-dashboard-kpi-copy small { color: var(--dw-muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.dw-dashboard-kpi-copy strong { font-size: 28px; line-height: 1.08; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.dw-dashboard-kpi-copy em { color: var(--dw-muted); font-style: normal; line-height: 1.35; }
.dw-dashboard-trend { display: inline-flex; width: max-content; border-radius: 999px; padding: 3px 7px; font-size: 10px; font-weight: 850; line-height: 1.1; background: #eef2f7; color: var(--dw-muted); }
.dw-dashboard-trend.trend-up { background: #dcfce7; color: #166534; }
.dw-dashboard-trend.trend-down { background: #fee2e2; color: #991b1b; }
.dw-dashboard-kpi.tone-green { --kpi-color: #1f8a70; }
.dw-dashboard-kpi.tone-blue { --kpi-color: #316dd5; }
.dw-dashboard-kpi.tone-violet { --kpi-color: #7c4cc8; }
.dw-dashboard-kpi.tone-amber { --kpi-color: #b76a20; }
.dw-dashboard-kpi.tone-orange { --kpi-color: #c25a2a; }
.dw-dashboard-kpi.tone-red { --kpi-color: #c23b54; }
.dw-dashboard-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dw-dashboard-panel-wide { grid-column: 1 / -1; }
.dw-dashboard-panel { border: 1px solid var(--dw-line); border-radius: 10px; background: rgba(255,255,255,.96); box-shadow: 0 14px 36px rgba(15,23,42,.05); padding: 20px; display: grid; align-content: start; gap: 16px; min-width: 0; }
.dw-dashboard-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dw-dashboard-panel-head h2 { margin: 3px 0 0; font-size: 22px; letter-spacing: 0; }
.dw-dashboard-panel-head a { border: 1px solid var(--dw-line); border-radius: 999px; padding: 8px 11px; font-size: 12px; font-weight: 900; color: var(--dw-primary); background: #fff; white-space: nowrap; }
.dw-dashboard-mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dw-dashboard-mini, .dw-dashboard-activity-list div { border: 1px solid var(--dw-line); border-radius: 9px; background: #f8fafc; padding: 14px; display: grid; gap: 6px; }
.dw-dashboard-mini span, .dw-dashboard-activity-list span { color: var(--dw-muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.dw-dashboard-mini strong, .dw-dashboard-activity-list strong { font-size: 22px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dw-dashboard-mini small, .dw-dashboard-activity-list small { color: var(--dw-muted); }
.dw-dashboard-activity-list { display: grid; gap: 12px; }
.dw-dashboard-priority-stack, .dw-dashboard-feed { display: grid; gap: 10px; }
.dw-dashboard-priority, .dw-dashboard-feed div, .dw-dashboard-breakdown-grid div, .dw-dashboard-dues-grid div { border: 1px solid var(--dw-line); border-radius: 9px; background: #fbfdff; padding: 12px; display: grid; gap: 5px; min-width: 0; }
.dw-dashboard-priority { border-left: 4px solid var(--priority-color, var(--dw-primary)); }
.dw-dashboard-priority.tone-green { --priority-color: #1f8a70; }
.dw-dashboard-priority.tone-amber { --priority-color: #b76a20; }
.dw-dashboard-priority.tone-red { --priority-color: #c23b54; }
.dw-dashboard-priority.tone-blue { --priority-color: #316dd5; }
.dw-dashboard-priority span, .dw-dashboard-feed small, .dw-dashboard-breakdown-grid small, .dw-dashboard-dues-grid small { color: var(--dw-muted); line-height: 1.35; }
.dw-dashboard-feed span, .dw-dashboard-breakdown-grid span, .dw-dashboard-dues-grid span { color: var(--dw-muted); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.dw-dashboard-feed strong, .dw-dashboard-breakdown-grid strong, .dw-dashboard-dues-grid strong { font-size: 18px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.dw-dashboard-breakdown-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.dw-dashboard-dues-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dw-dashboard-inline-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--dw-muted); }
.dw-dashboard-inline-note strong { color: var(--dw-text); font-size: 18px; font-variant-numeric: tabular-nums; }
.dw-dashboard-aging { display: flex; flex-wrap: wrap; gap: 8px; }
.dw-dashboard-aging span { border: 1px solid var(--dw-line); border-radius: 999px; background: #fff; color: var(--dw-muted); padding: 6px 9px; font-size: 12px; font-weight: 760; }
.dw-dashboard-aging b { color: var(--dw-text); }
.dw-dashboard-empty { border: 1px dashed var(--dw-line) !important; color: var(--dw-muted); background: #fff !important; text-align: center; }
.dw-dashboard-followups { display: grid; gap: 10px; }
.dw-dashboard-followup { border: 1px solid var(--dw-line); border-radius: 9px; padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #fbfdff; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.dw-dashboard-followup:hover { border-color: rgba(31,138,112,.42); transform: translateY(-1px); box-shadow: var(--dw-shadow); }
.dw-dashboard-followup span { display: grid; gap: 5px; min-width: 0; }
.dw-dashboard-followup small { color: var(--dw-muted); line-height: 1.4; }
.dw-dashboard-followup em { color: var(--dw-primary); font-style: normal; font-weight: 900; font-size: 12px; white-space: nowrap; }
.dw-dashboard-workflows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dw-dashboard-workflow { border: 1px solid var(--dw-line); border-radius: 10px; padding: 14px; background: #fff; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; min-height: 112px; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.dw-dashboard-workflow:hover { border-color: rgba(31,138,112,.42); transform: translateY(-1px); box-shadow: var(--dw-shadow); }
.dw-dashboard-workflow-icon { width: 44px; height: 44px; max-width: 44px; max-height: 44px; min-width: 44px; min-height: 44px; border-radius: 8px; display: grid; place-items: center; background: #27b493; color: #fff; overflow: hidden; }
.dw-school-dashboard .dw-dashboard-workflow-icon > svg,
.dw-school-dashboard .dw-dashboard-workflow-icon .dw-app-icon-svg { width: 23px !important; height: 23px !important; max-width: 23px !important; max-height: 23px !important; min-width: 0 !important; min-height: 0 !important; display: block !important; flex: 0 0 auto !important; }
.dw-dashboard-workflow span:last-child { display: grid; gap: 5px; }
.dw-dashboard-workflow strong { font-size: 16px; }
.dw-dashboard-workflow small { color: var(--dw-muted); line-height: 1.35; }
.dw-attendance-workspace { display: grid; gap: 14px; }
.dw-attendance-filters { display: grid; grid-template-columns: 180px minmax(180px, 1fr) minmax(180px, 1fr) auto; gap: 12px; align-items: end; }
.dw-attendance-sheet { display: grid; border: 1px solid var(--dw-line); border-radius: 9px; overflow: hidden; background: #fff; }
.dw-attendance-row { display: grid; grid-template-columns: 90px minmax(160px, 1fr) minmax(160px, 1fr) minmax(460px, 1.4fr); gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--dw-line); }
.dw-attendance-row:last-child { border-bottom: 0; }
.dw-attendance-row:hover { background: #fbfdff; }
.dw-attendance-head { background: #f8fafc; color: var(--dw-muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.dw-attendance-roll { font-weight: 900; color: var(--dw-primary); }
.dw-attendance-name { font-weight: 900; }
.dw-attendance-statuses { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.dw-attendance-choice { position: relative; display: inline-flex; align-items: center; }
.dw-attendance-choice input { position: absolute; opacity: 0; pointer-events: none; }
.dw-attendance-choice span { min-height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--dw-line); border-radius: 999px; background: #fff; padding: 0 11px; color: var(--dw-muted); font-size: 12px; font-weight: 900; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease; }
.dw-attendance-choice input:checked + span { color: #fff; border-color: var(--attendance-color, var(--dw-primary)); background: var(--attendance-color, var(--dw-primary)); box-shadow: 0 8px 18px color-mix(in srgb, var(--attendance-color, var(--dw-primary)) 22%, transparent); }
.dw-attendance-choice.status-present { --attendance-color: #1f8a70; }
.dw-attendance-choice.status-absent { --attendance-color: #c23b54; }
.dw-attendance-choice.status-leave { --attendance-color: #7c4cc8; }
.dw-attendance-choice.status-half_day { --attendance-color: #b76a20; }
.dw-attendance-choice.status-late { --attendance-color: #2f6f9f; }
.dw-attendance-note { grid-column: 4; width: 100%; border: 1px solid var(--dw-line); border-radius: 7px; min-height: 34px; padding: 7px 10px; background: #f8fafc; }

/* Production admin scale: compact, readable, and less oversized across LMS screens. */
body { font-size: 14px; }
.dw-content { padding: 18px 20px; gap: 14px; }
.dw-topbar { height: 56px; padding: 10px 18px; gap: 12px; }
.dw-topbar-brand .dw-brand-mark { width: 28px; height: 28px; font-size: 12px; }
.dw-search input { height: 34px; border-radius: 7px; padding: 0 12px; font-size: 14px; }

.dw-inner-heading { padding: 16px 18px; border-radius: 8px; box-shadow: 0 10px 28px rgba(15,23,42,.045); }
.dw-page-heading { gap: 14px; }
.dw-page-heading h1 { font-size: 26px; line-height: 1.08; font-weight: 760; }
.dw-page-heading p { margin-top: 7px; font-size: 14px; line-height: 1.38; max-width: 720px; }
.dw-eyebrow { font-size: 10px; margin-bottom: 5px !important; font-weight: 800; }
.dw-page-actions { gap: 8px; }

.dw-btn { min-height: 32px; padding: 6px 10px; border-radius: 7px; gap: 6px; font-size: 13px; font-weight: 720; line-height: 1.15; box-shadow: none; }
.dw-btn:hover { box-shadow: 0 6px 16px rgba(15,23,42,.07); transform: none; }
.dw-btn-primary:hover { box-shadow: 0 8px 18px rgba(31,138,112,.18); }
.dw-btn-sm { min-height: 28px; padding: 5px 8px; font-size: 12px; border-radius: 6px; }
.dw-btn-lg { min-height: 38px; padding: 8px 13px; font-size: 14px; }

.dw-card, .dw-panel { padding: 14px 16px; border-radius: 8px; box-shadow: 0 10px 28px rgba(15,23,42,.045); }
.dw-card-header { margin-bottom: 12px; }
.dw-card-header h2 { font-size: 17px; }
.dw-card-header p { font-size: 13px; }
.dw-soft-panel { padding: 12px 14px; }

.dw-crud-workspace { gap: 12px; }
.dw-crud-summary { gap: 10px; }
.dw-crud-summary-card { min-height: 58px; padding: 10px 12px; border-radius: 7px; box-shadow: 0 8px 20px rgba(15,23,42,.04); }
.dw-crud-summary-card strong { font-size: 15px; font-weight: 760; }
.dw-crud-summary-card span { font-size: 11px; font-weight: 720; }
.dw-crud-actionbar { gap: 10px; }
.dw-crud-primary-actions, .dw-crud-secondary-actions { gap: 7px; }
.dw-crud-tabs { padding: 4px; gap: 4px; border-radius: 8px; box-shadow: 0 8px 22px rgba(15,23,42,.04); }
.dw-crud-tabs button { padding: 7px 9px; gap: 6px; font-size: 12px; font-weight: 760; border-radius: 6px; }
.dw-crud-tabs small { min-width: 20px; height: 20px; padding: 0 6px; font-size: 10px; font-weight: 760; }
.dw-crud-card-head { gap: 12px; margin-bottom: 12px; }
.dw-crud-card-head h2 { font-size: 19px; font-weight: 760; }
.dw-crud-card-head p:not(.dw-eyebrow) { margin-top: 5px; font-size: 13px; line-height: 1.35; }
.dw-crud-search { gap: 7px; min-width: min(100%, 420px); }
.dw-crud-search input { height: 34px; min-width: 180px; border-radius: 7px; padding: 0 10px; font-size: 13px; }

.dw-table { min-width: 680px; }
.dw-table th, .dw-table td { padding: 8px 9px; line-height: 1.25; }
.dw-table th { font-size: 10px; font-weight: 760; letter-spacing: 0; }
.dw-table td { font-size: 13px; }
.dw-table-primary { gap: 2px; }
.dw-table-primary strong { font-weight: 760; }
.dw-table-primary small { font-size: 11px; }
.dw-table-actions { gap: 5px; min-width: 170px; }
.dw-badge, .dw-status { min-height: 22px; padding: 2px 7px; border-radius: 999px; font-size: 10px; font-weight: 780; line-height: 1; }

.dw-form-grid { gap: 12px; }
.dw-field { gap: 5px; font-size: 12px; font-weight: 650; }
.dw-field input, .dw-field select, .dw-field textarea { min-height: 34px; padding: 7px 9px; border-radius: 7px; font-size: 13px; }
.dw-field textarea { min-height: 86px; }
.dw-form-section-title { padding-top: 12px; margin-top: 4px; }
.dw-form-section-title h3 { font-size: 13px; font-weight: 760; }
.dw-form-actions { gap: 8px; padding-top: 6px; }
.dw-empty-state { min-height: 120px; gap: 6px; }
.dw-empty-state strong { font-size: 15px; font-weight: 760; }
.dw-empty-state p { font-size: 13px; }

.dw-metric-grid { gap: 10px; }
.dw-metric-card { min-height: 82px; padding: 12px 14px; gap: 6px; }
.dw-metric-card span { font-size: 11px; font-weight: 720; }
.dw-metric-card strong { font-size: 22px; font-weight: 760; }

.dw-dashboard-hero-pro { padding: 18px; gap: 16px; border-radius: 8px; }
.dw-dashboard-hero-pro h1 { font-size: 28px; font-weight: 760; }
.dw-dashboard-context { margin-top: 10px; gap: 6px; }
.dw-dashboard-context span { padding: 5px 8px; font-size: 11px; font-weight: 720; }
.dw-dashboard-actions { gap: 8px; }
.dw-dashboard-kpis { gap: 10px; }
.dw-dashboard-kpi { min-height: 110px; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 13px; border-radius: 8px; }
.dw-dashboard-kpi-icon { width: 40px; height: 40px; min-width: 40px; min-height: 40px; border-radius: 7px; }
.dw-school-dashboard .dw-dashboard-kpi-icon > svg,
.dw-school-dashboard .dw-dashboard-kpi-icon .dw-app-icon-svg { width: 20px !important; height: 20px !important; }
.dw-dashboard-kpi-copy small { font-size: 10px; font-weight: 760; }
.dw-dashboard-kpi-copy strong { font-size: 21px; font-weight: 760; }
.dw-dashboard-kpi-copy em { font-size: 12px; }
.dw-dashboard-trend { font-size: 9px; padding: 3px 6px; }
.dw-dashboard-panel { padding: 14px; gap: 12px; border-radius: 8px; }
.dw-dashboard-panel-head h2 { font-size: 18px; font-weight: 760; }
.dw-dashboard-panel-head a { padding: 6px 9px; font-size: 11px; }
.dw-dashboard-mini, .dw-dashboard-activity-list div { padding: 11px; }
.dw-dashboard-mini strong, .dw-dashboard-activity-list strong { font-size: 18px; }
.dw-dashboard-priority, .dw-dashboard-feed div, .dw-dashboard-breakdown-grid div, .dw-dashboard-dues-grid div { padding: 10px; border-radius: 8px; }
.dw-dashboard-breakdown-grid { gap: 8px; }
.dw-dashboard-feed strong, .dw-dashboard-breakdown-grid strong, .dw-dashboard-dues-grid strong { font-size: 16px; }
.dw-dashboard-followup { padding: 11px; gap: 10px; }
.dw-dashboard-workflow { min-height: 88px; padding: 11px; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; border-radius: 8px; }
.dw-dashboard-workflow-icon { width: 36px; height: 36px; min-width: 36px; min-height: 36px; border-radius: 7px; }
.dw-school-dashboard .dw-dashboard-workflow-icon > svg,
.dw-school-dashboard .dw-dashboard-workflow-icon .dw-app-icon-svg { width: 18px !important; height: 18px !important; }
.dw-dashboard-workflow strong { font-size: 14px; }
.dw-dashboard-workflow small { font-size: 12px; }

.dw-attendance-workspace { gap: 12px; }
.dw-attendance-filters { grid-template-columns: 160px minmax(170px, 1fr) minmax(170px, 1fr) auto; gap: 10px; }
.dw-attendance-row { grid-template-columns: 78px minmax(140px, 1fr) minmax(140px, 1fr) minmax(400px, 1.35fr); gap: 9px; padding: 8px 10px; }
.dw-attendance-head { font-size: 10px; font-weight: 760; }
.dw-attendance-roll, .dw-attendance-name { font-weight: 760; }
.dw-attendance-statuses { gap: 5px; }
.dw-attendance-choice span { min-height: 27px; padding: 0 8px; font-size: 11px; font-weight: 720; }
.dw-attendance-note { min-height: 30px; padding: 5px 8px; font-size: 12px; }

.dw-reports-heading { padding-top: 4px; }
.dw-reports-filter-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 520px); gap: 16px; align-items: end; }
.dw-reports-filter-card h2 { margin: 0; font-size: 18px; font-weight: 760; }
.dw-reports-filter-card p:not(.dw-eyebrow) { margin: 5px 0 0; color: var(--dw-muted); font-size: 13px; }
.dw-reports-filter-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.dw-reports-grid { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.dw-report-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.dw-report-shortcut { min-height: 38px; border: 1px solid var(--dw-line); border-radius: 7px; background: #fbfdff; padding: 6px 7px 6px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dw-report-shortcut span { min-width: 0; font-size: 12px; font-weight: 720; line-height: 1.25; color: var(--dw-ink); }

/* Shell refinement: compact accordion sidebar and route-aware search. */
.dw-app-shell { grid-template-columns: 260px minmax(0, 1fr); }
.dw-sidebar {
    padding: 18px 16px;
    gap: 18px;
    background: linear-gradient(180deg, #111b24 0%, #14212b 52%, #111a22 100%);
}
.dw-sidebar .dw-brand { gap: 10px; padding: 2px 2px 8px; border-bottom: 1px solid rgba(255,255,255,.07); }
.dw-sidebar .dw-brand-mark,
.dw-sidebar .dw-brand-logo { width: 38px; height: 38px; border-radius: 8px; box-shadow: 0 10px 24px rgba(39,180,147,.18); }
.dw-sidebar .dw-brand strong { font-size: 15px; font-weight: 760; }
.dw-sidebar .dw-brand small { font-size: 12px; font-weight: 600; color: #a8b8c6; }
.dw-nav { gap: 4px; }
.dw-nav-section {
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    border-bottom: 1px solid rgba(255,255,255,.055);
    padding: 2px 0 6px;
}
.dw-nav-section header { padding: 0; }
.dw-nav-section header button {
    width: 100%;
    min-height: 34px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #aebdca;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 8px;
    cursor: pointer;
    text-align: left;
    font-size: 10px;
    font-weight: 780;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.dw-nav-section header button::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #7890a2;
    border-bottom: 1.5px solid #7890a2;
    transform: rotate(45deg);
    transition: transform .16s ease;
}
.dw-nav-section.is-open header button { color: #f3f8fb; background: rgba(255,255,255,.045); }
.dw-nav-section.is-open header button::after { transform: rotate(225deg); }
.dw-nav-section header button small {
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: #9fb1bf;
    font-size: 10px;
    display: inline-grid;
    place-items: center;
    order: 2;
    margin-left: auto;
}
.dw-nav-section header button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dw-nav-links { gap: 2px; padding: 4px 0 6px; }
.dw-nav-item {
    min-height: 34px;
    border-radius: 7px;
    padding: 7px 8px;
    color: #bac7d2;
    font-size: 13px;
    font-weight: 560;
    transform: none !important;
}
.dw-nav-item:hover { background: rgba(255,255,255,.055); color: #fff; }
.dw-nav-item.is-active {
    background: rgba(39,180,147,.16);
    color: #fff;
    box-shadow: inset 3px 0 0 #27b493;
}
.dw-nav-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(255,255,255,.075);
    color: #d3e1ea;
    font-size: 9px;
    font-weight: 740;
}
.dw-nav-item.is-active .dw-nav-icon { background: rgba(39,180,147,.24); color: #eafff8; }
.dw-global-search { position: relative; max-width: none; }
.dw-global-search input { padding-left: 13px; background: #fbfdff; }
.dw-global-search-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 7px);
    z-index: 40;
    border: 1px solid rgba(15,23,42,.12);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15,23,42,.13);
    padding: 6px;
    display: grid;
    gap: 3px;
}
.dw-global-search-item {
    min-height: 42px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
}
.dw-global-search-item:hover { background: #f4f8fb; }
.dw-global-search-item strong { font-size: 13px; font-weight: 740; }
.dw-global-search-item small { color: var(--dw-muted); font-size: 11px; font-weight: 680; }
.dw-global-search-empty { padding: 12px; color: var(--dw-muted); font-size: 13px; }

.dw-module-page { display: grid; gap: 14px; }
.dw-module-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 4px 0 2px;
}
.dw-module-head h1 { margin: 0; font-size: 25px; line-height: 1.1; font-weight: 760; }
.dw-module-head p:not(.dw-eyebrow) { margin: 6px 0 0; color: var(--dw-muted); font-size: 13px; }
.dw-module-stats { display: grid; grid-template-columns: repeat(4, minmax(72px, 1fr)); gap: 8px; min-width: 360px; }
.dw-module-stats span {
    border: 1px solid var(--dw-line);
    border-radius: 7px;
    background: #fff;
    padding: 8px 10px;
    display: grid;
    gap: 2px;
    color: var(--dw-muted);
    font-size: 11px;
    font-weight: 720;
    box-shadow: 0 8px 20px rgba(15,23,42,.04);
}
.dw-module-stats strong { color: var(--dw-ink); font-size: 18px; line-height: 1; font-variant-numeric: tabular-nums; }
.dw-module-upload {
    border: 1px solid var(--dw-line);
    border-radius: 8px;
    background: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    box-shadow: 0 10px 28px rgba(15,23,42,.045);
}
.dw-module-upload h2 { margin: 0; font-size: 17px; font-weight: 760; }
.dw-module-upload p { margin: 5px 0 0; color: var(--dw-muted); font-size: 13px; }
.dw-module-upload form { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: min(100%, 520px); }
.dw-module-upload input[type="file"] {
    width: 100%;
    min-height: 32px;
    border: 1px solid var(--dw-line);
    border-radius: 7px;
    background: #fbfdff;
    padding: 4px 8px;
    font-size: 12px;
}
.dw-module-table-card {
    border: 1px solid var(--dw-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15,23,42,.055);
    padding: 14px;
}
.dw-module-toolbar {
    display: grid;
    grid-template-columns: 160px 140px 190px minmax(220px, 1fr) auto;
    gap: 8px;
    align-items: end;
    margin-bottom: 12px;
}
.dw-module-toolbar label { display: grid; gap: 5px; color: var(--dw-muted); font-size: 11px; font-weight: 720; }
.dw-module-toolbar select,
.dw-module-toolbar input {
    width: 100%;
    min-height: 32px;
    border: 1px solid var(--dw-line);
    border-radius: 7px;
    background: #fbfdff;
    padding: 0 9px;
    color: var(--dw-ink);
    font-size: 13px;
}
.dw-module-table { min-width: 980px; }
.dw-module-table tbody tr.is-active { background: #eef8ff; }
.dw-module-table tbody tr.is-active:hover { background: #e7f4fd; }
.dw-module-name,
.dw-module-description { display: grid; gap: 5px; min-width: 0; }
.dw-module-name strong { font-weight: 760; color: var(--dw-ink); }
.dw-module-name small,
.dw-module-description small { color: var(--dw-muted); font-size: 11px; }
.dw-module-description span { color: #314155; line-height: 1.35; }
.dw-module-actions { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; min-width: 250px; }
.dw-module-actions form { margin: 0; }
.dw-module-actions .dw-btn:disabled { opacity: .48; background: #f8fafc; }
.dw-update-grid { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(360px, 1.3fr); gap: 14px; align-items: start; }
.dw-update-version { display: grid; gap: 5px; margin-bottom: 12px; }
.dw-update-version strong { font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.dw-update-version span { color: var(--dw-muted); font-size: 13px; font-weight: 680; }
.dw-update-form { display: grid; gap: 12px; }
.dw-update-progress { display: grid; gap: 7px; }
.dw-update-progress span { color: var(--dw-muted); font-size: 12px; font-weight: 720; }
.dw-update-progress div { height: 9px; border-radius: 999px; overflow: hidden; background: #e9f0f6; border: 1px solid var(--dw-line); }
.dw-update-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--dw-primary), #316dd5); transition: width .24s ease; }
@media print {
    .dw-sidebar, .dw-topbar, .dw-mobile-topbar, .dw-mobile-bottom-nav, .no-print { display: none !important; }
    .dw-app-shell { display: block !important; }
    .dw-content { padding: 0 !important; }
    .dw-card, .dw-panel { box-shadow: none !important; }
    body { background: #fff !important; }
}
.pagination { display: flex; gap: 8px; list-style: none; padding-left: 0; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; min-width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid var(--dw-line); border-radius: var(--dw-radius); padding: 0 10px; background: white; }
@media (max-width: 980px) {
    .dw-metric-grid, .dw-app-grid, .dw-form-grid, .dw-school-app-grid { grid-template-columns: 1fr; }
    .dw-apps-heading { align-items: flex-start; }
    .dw-apps-user { width: 100%; }
    .dw-launcher-shell .dw-content { padding: 22px 16px 34px; }
    .dw-launcher-top { margin-bottom: 42px; align-items: flex-start; }
    .dw-launcher-hero { grid-template-columns: 1fr; }
    .dw-launcher-hero h1 { font-size: 42px; }
    .dw-launcher-shell .dw-school-app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dw-dashboard-hero-pro, .dw-dashboard-panels { grid-template-columns: 1fr; }
    .dw-dashboard-hero-pro { display: grid; }
    .dw-dashboard-actions { justify-content: flex-start; }
    .dw-dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dw-dashboard-breakdown-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dw-dashboard-workflows { grid-template-columns: 1fr; }
    .dw-reports-filter-card, .dw-reports-grid { grid-template-columns: 1fr; }
    .dw-update-grid { grid-template-columns: 1fr; }
    .dw-family-fee-hero, .dw-family-fee-overview, .dw-family-voucher-meta { grid-template-columns: 1fr 1fr; }
    .dw-family-fee-actions { justify-content: flex-start; }
    .dw-report-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dw-attendance-filters, .dw-attendance-row { grid-template-columns: 1fr 1fr; }
    .dw-attendance-statuses, .dw-attendance-note { grid-column: 1 / -1; }
    .dw-crud-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dw-crud-actionbar { align-items: stretch; }
    .dw-crud-tabs { width: 100%; }
    .dw-crud-card-head { grid-template-columns: 1fr; align-items: start; }
    .dw-crud-search { width: 100%; min-width: 0; }
    .dw-install-body { grid-template-columns: 1fr; }
    .dw-install-steps { border-right: 0; border-bottom: 1px solid var(--dw-line); grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .dw-launcher-top { display: grid; }
    .dw-launcher-actions { justify-content: flex-start; }
    .dw-launcher-shell .dw-school-app-grid { grid-template-columns: 1fr; }
    .dw-launcher-top .dw-brand strong { font-size: 19px; }
    .dw-dashboard-kpis, .dw-dashboard-mini-grid { grid-template-columns: 1fr; }
    .dw-dashboard-kpi { grid-template-columns: 46px minmax(0, 1fr); min-height: 130px; }
    .dw-dashboard-kpi-icon { width: 46px; height: 46px; max-width: 46px; max-height: 46px; min-width: 46px; min-height: 46px; }
    .dw-dashboard-panel-head, .dw-dashboard-followup { align-items: flex-start; flex-direction: column; }
    .dw-dashboard-breakdown-grid, .dw-dashboard-dues-grid { grid-template-columns: 1fr; }
    .dw-reports-filter-card, .dw-reports-filter-form, .dw-reports-grid, .dw-report-shortcuts { grid-template-columns: 1fr; }
    .dw-attendance-filters, .dw-attendance-row { grid-template-columns: 1fr; }
    .dw-attendance-head { display: none; }
    .dw-attendance-statuses, .dw-attendance-note { grid-column: auto; }
    .dw-crud-summary { grid-template-columns: 1fr; }
    .dw-family-fee-hero, .dw-family-fee-overview, .dw-family-student-grid, .dw-family-voucher-meta { grid-template-columns: 1fr; }
    .dw-family-fee-toolbar, .dw-family-voucher-submit { align-items: stretch; flex-direction: column; }
    .dw-family-fee-actions { display: grid; grid-template-columns: 1fr; }
    .dw-mobile-voucher-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .dw-family-fee-table, .dw-family-voucher-table { min-width: 0; }
    .dw-family-fee-table thead, .dw-family-voucher-table thead { display: none; }
    .dw-family-fee-table tbody, .dw-family-voucher-table tbody { display: grid; gap: 12px; }
    .dw-family-fee-table tbody tr, .dw-family-voucher-table tbody tr { display: grid; gap: 0; border: 1px solid var(--dw-line); border-radius: 9px; background: #fff; overflow: hidden; }
    .dw-family-fee-table tbody td, .dw-family-voucher-table tbody td { display: grid; grid-template-columns: minmax(88px, .8fr) minmax(0, 1.2fr); align-items: center; gap: 10px; border-bottom: 1px solid var(--dw-line); padding: 10px 12px; overflow-wrap: anywhere; }
    .dw-family-fee-table tbody td:last-child, .dw-family-voucher-table tbody td:last-child { border-bottom: 0; }
    .dw-family-fee-table tbody td::before, .dw-family-voucher-table tbody td::before { content: attr(data-label); color: var(--dw-muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
    .dw-family-fee-table tbody tr:hover, .dw-family-voucher-table tbody tr:hover { background: #fff; }
    .dw-family-voucher-table tfoot { display: block; margin-top: 12px; }
    .dw-family-voucher-table tfoot tr { display: grid; grid-template-columns: 1fr; }
    .dw-family-voucher-table tfoot th { display: block; text-align: left !important; border: 0; padding: 7px 12px; }
    .dw-crud-primary-actions, .dw-crud-secondary-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
    .dw-crud-search, .dw-form-actions { display: grid; grid-template-columns: 1fr; }
    .dw-table-actions { justify-content: flex-start; min-width: 0; }
    .dw-install-screen { padding: 0; }
    .dw-install-card { min-height: 100vh; border-radius: 0; }
    .dw-install-hero { padding: 22px; }
    .dw-install-main { padding: 22px; }
    .dw-install-steps { grid-template-columns: 1fr 1fr; padding: 14px; }
}

/* Enterprise school shell: original LMS treatment informed by the ERP's visual hierarchy. */
body {
    background: #f3f6f9;
    color: #15202b;
}
.dw-app-shell { grid-template-columns: 292px minmax(0, 1fr); }
.dw-workspace { background: linear-gradient(180deg, #f8fafc 0, #f3f6f9 260px); }
.dw-sidebar {
    padding: 18px 14px 20px;
    gap: 14px;
    background: linear-gradient(180deg, #101922 0%, #13212b 56%, #101922 100%);
    border-right: 1px solid rgba(255,255,255,.04);
}
.dw-sidebar .dw-brand {
    min-height: 52px;
    padding: 0 4px 14px;
}
.dw-sidebar .dw-brand-mark,
.dw-sidebar .dw-brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(39,180,147,.2);
}
.dw-sidebar .dw-brand strong { font-size: 16px; letter-spacing: -.01em; }
.dw-sidebar .dw-brand small { margin-top: 2px; font-size: 11px; color: #93a6b5; }
.dw-nav { gap: 2px; }
.dw-nav-section {
    padding: 2px 0 4px;
    border-bottom-color: rgba(255,255,255,.045);
}
.dw-nav-section header button {
    min-height: 37px;
    padding: 8px 10px;
    color: #90a4b4;
    font-size: 10.5px;
    font-weight: 720;
    letter-spacing: .055em;
}
.dw-nav-section header button::after { margin-right: 3px; }
.dw-nav-section.is-open header button {
    color: #dfe9ef;
    background: rgba(255,255,255,.035);
}
.dw-nav-links { padding: 3px 0 7px; gap: 2px; }
.dw-nav-item {
    min-height: 38px;
    padding: 6px 9px;
    gap: 10px;
    border-radius: 8px;
    color: #b5c3ce;
    font-size: 13px;
    font-weight: 590;
}
.dw-nav-item:hover { background: rgba(255,255,255,.05); }
.dw-nav-item.is-active {
    background: linear-gradient(90deg, rgba(39,180,147,.22), rgba(39,180,147,.11));
    box-shadow: inset 3px 0 0 #35c29f;
}
.dw-nav-icon {
    width: 27px;
    height: 27px;
    border-radius: 7px;
    background: rgba(255,255,255,.065);
    color: #a9bac7;
}
.dw-nav-icon svg { width: 15px; height: 15px; }
.dw-nav-item.is-active .dw-nav-icon {
    background: rgba(53,194,159,.19);
    color: #a9f1dd;
}
.dw-nav-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Discoverable enterprise navigation: searchable, countable, and multi-expand. */
.dw-nav { min-height: 0; display: flex; flex-direction: column; gap: 9px; }
.dw-nav-home {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 9px;
    background: rgba(255,255,255,.035);
    color: #d8e4ec;
    font-size: 13px;
    font-weight: 720;
}
.dw-nav-home:hover { border-color: rgba(53,194,159,.24); background: rgba(255,255,255,.055); color: #fff; }
.dw-nav-home.is-active {
    border-color: rgba(53,194,159,.32);
    background: linear-gradient(90deg, rgba(39,180,147,.23), rgba(39,180,147,.11));
    color: #fff;
    box-shadow: inset 3px 0 0 #35c29f;
}
.dw-nav-home .dw-nav-icon { width: 29px; height: 29px; }
.dw-nav-tools {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
}
.dw-nav-tools-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dw-nav-tools-head > span {
    color: #a9bac7;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .065em;
    text-transform: uppercase;
}
.dw-nav-tools-head button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #79d6bc;
    font-size: 10px;
    font-weight: 750;
    cursor: pointer;
}
.dw-nav-tools-head button:hover { color: #b7f0df; }
.dw-nav-filter { position: relative; display: block; }
.dw-nav-filter > svg {
    position: absolute;
    left: 10px;
    top: 50%;
    width: 15px;
    height: 15px;
    color: #8ea1b0;
    transform: translateY(-50%);
    pointer-events: none;
}
.dw-nav-filter input {
    width: 100%;
    height: 38px;
    padding: 0 32px 0 33px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    outline: 0;
    background: rgba(7,15,22,.36);
    color: #f3f8fb;
    font: 600 12px/1 var(--dw-font);
}
.dw-nav-filter input::placeholder { color: #8195a5; }
.dw-nav-filter input:focus { border-color: rgba(53,194,159,.55); box-shadow: 0 0 0 3px rgba(39,180,147,.11); }
.dw-nav-filter > button {
    position: absolute;
    right: 7px;
    top: 50%;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9bafbd;
    font-size: 18px;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
}
.dw-nav-tools > small { color: #718797; font-size: 9.5px; font-weight: 650; }
.dw-nav-groups { display: grid; gap: 3px; }
.dw-nav-section { padding: 2px 0 3px; }
.dw-nav-section header button {
    min-height: 40px;
    justify-content: flex-start;
    padding: 8px 9px;
    color: #b3c2cd;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}
.dw-nav-section header button > span { flex: 1 1 auto; order: 1; }
.dw-nav-section header button > small {
    min-width: 22px;
    height: 22px;
    order: 2;
    margin-left: 6px;
    background: rgba(255,255,255,.07);
    color: #9fb2c0;
    font-size: 9px;
}
.dw-nav-section header button::after { order: 3; margin: 0 3px 0 6px; }
.dw-nav-section.is-open header button { background: rgba(255,255,255,.05); color: #f3f8fb; }
.dw-nav-links { padding: 4px 0 7px 8px; }
.dw-nav-item { min-height: 37px; padding: 6px 8px; font-size: 12.5px; }
.dw-nav-item[hidden], .dw-nav-section[hidden] { display: none !important; }
.dw-nav-empty {
    display: grid;
    gap: 3px;
    padding: 14px 12px;
    border: 1px dashed rgba(255,255,255,.12);
    border-radius: 9px;
    color: #dce7ee;
}
.dw-nav-empty[hidden] { display: none; }
.dw-nav-empty strong { font-size: 12px; }
.dw-nav-empty span { color: #8095a5; font-size: 10px; }

.dw-topbar {
    height: 64px;
    padding: 9px 18px;
    gap: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 1px 0 rgba(15,23,42,.04);
}
.dw-topbar-context { width: 162px; min-width: 138px; display: grid; gap: 2px; }
.dw-topbar-context small {
    color: #758493;
    font-size: 9px;
    font-weight: 760;
    letter-spacing: .06em;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dw-topbar-context strong {
    font-size: 14px;
    font-weight: 760;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dw-global-search { position: relative; }
.dw-global-search input {
    height: 40px;
    padding: 0 42px 0 40px;
    border-color: #dce4eb;
    border-radius: 9px;
    background: #f7f9fb;
}
.dw-global-search input::placeholder { color: #82909d; }
.dw-search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    z-index: 2;
    width: 18px;
    height: 18px;
    color: #72808d;
    transform: translateY(-50%);
    pointer-events: none;
}
.dw-search-icon svg { width: 100%; height: 100%; }
.dw-global-search kbd {
    position: absolute;
    right: 10px;
    top: 50%;
    z-index: 2;
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 1px solid #d9e1e8;
    border-radius: 5px;
    background: #fff;
    color: #6d7b88;
    font: 700 11px/1 var(--dw-font);
    transform: translateY(-50%);
    pointer-events: none;
}
.dw-topbar-actions { gap: 8px; }
.dw-content { max-width: 1560px; width: 100%; margin: 0 auto; padding: 20px 22px 42px; }
.dw-card, .dw-panel, .dw-inner-heading,
.dw-dashboard-panel, .dw-dashboard-kpi {
    border-color: #dfe6ec;
    box-shadow: 0 8px 24px rgba(15,23,42,.035);
}
.dw-inner-heading { background: #fff; }
.dw-school-dashboard { gap: 16px; }
.dw-dashboard-hero-pro {
    padding: 21px 22px;
    border: 1px solid #d9e5e2;
    background: linear-gradient(120deg, rgba(31,138,112,.09), rgba(255,255,255,.98) 58%);
    box-shadow: 0 10px 30px rgba(15,23,42,.035);
}
.dw-dashboard-hero-pro h1 { font-size: 29px; letter-spacing: -.025em; }
.dw-dashboard-hero-pro p:not(.dw-eyebrow) { max-width: 760px; color: #536373; }
.dw-dashboard-kpis { gap: 10px; }
.dw-dashboard-kpi {
    min-height: 94px;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border-radius: 9px;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.dw-dashboard-kpi:hover {
    border-color: color-mix(in srgb, var(--kpi-color, var(--dw-primary)) 38%, #dfe6ec);
    box-shadow: 0 10px 26px rgba(15,23,42,.055);
    transform: translateY(-1px);
}
.dw-dashboard-kpi::before { inset: 10px auto 10px 0; width: 3px; height: auto; border-radius: 0 3px 3px 0; }
.dw-dashboard-kpi-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 8px;
    box-shadow: none;
}
.dw-school-dashboard .dw-dashboard-kpi-icon > svg,
.dw-school-dashboard .dw-dashboard-kpi-icon .dw-app-icon-svg { width: 19px !important; height: 19px !important; }
.dw-dashboard-kpi-copy { gap: 4px; }
.dw-dashboard-kpi-copy strong { font-size: 20px; }
.dw-dashboard-kpi-copy em { font-size: 11px; }
.dw-dashboard-panel { box-shadow: none; }
.dw-dashboard-mini, .dw-dashboard-activity-list div,
.dw-dashboard-priority, .dw-dashboard-feed div,
.dw-dashboard-breakdown-grid div, .dw-dashboard-dues-grid div { background: #f8fafb; }
.dw-table-wrap { border-radius: 8px; scrollbar-width: thin; }
.dw-table th { position: sticky; top: 0; z-index: 1; background: #f5f8fa; }
.dw-table tbody tr:last-child td { border-bottom: 0; }

.dw-launcher-user-chip {
    min-height: 42px;
    max-width: 190px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px 5px 6px;
    border: 1px solid #dbe4eb;
    border-radius: 10px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 8px 20px rgba(15,23,42,.035);
    color: var(--dw-ink);
}
.dw-launcher-user-chip b {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #e7f4ef;
    color: #176c58;
    font-size: 10px;
}
.dw-launcher-user-chip span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 760;
}
.dw-header-icon-button {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid #dbe4eb;
    border-radius: 10px;
    background: rgba(255,255,255,.96);
    color: #173044;
    box-shadow: 0 8px 20px rgba(15,23,42,.035);
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.dw-header-icon-button:hover { border-color: rgba(31,138,112,.42); color: var(--dw-primary); background: #fff; }
.dw-header-icon-button.is-danger { color: #bd3343; border-color: #efcbd0; }
.dw-header-icon-button.is-danger:hover { color: #9f2635; border-color: #e7aeb7; background: #fff7f8; }
.dw-header-icon-button svg { width: 19px; height: 19px; }
.dw-header-logout-form { margin: 0; display: inline-flex; }
.dw-notification-button { position: relative; }
.dw-notification-button > .dw-notification-count {
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #bd3343;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
}
.dw-header-icon-button.dw-notification-button > span,
.dw-mobile-header-button.dw-notification-button > span {
    position: absolute;
    top: -5px;
    right: -5px;
    border: 2px solid #fff;
}
.dw-notification-menu { position: relative; display: inline-flex; }
.dw-notification-button[aria-expanded="true"] {
    border-color: rgba(31,138,112,.5);
    background: #f3faf7;
    color: #176c58;
    box-shadow: 0 0 0 3px rgba(31,138,112,.09);
}
.dw-notification-popover {
    position: absolute;
    z-index: 90;
    top: calc(100% + 12px);
    right: 0;
    width: min(420px, calc(100vw - 24px));
    overflow: hidden;
    border: 1px solid #d7e2e7;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 24px 58px rgba(15,23,42,.18);
    color: var(--dw-ink);
    text-align: left;
}
.dw-notification-popover[hidden] { display: none !important; }
.dw-notification-popover-head {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 17px;
    border-bottom: 1px solid #e2e9ee;
    background: #fff;
}
.dw-notification-popover-head > div { min-width: 0; display: grid; gap: 3px; }
.dw-notification-popover-head h2 { margin: 0; color: #152435; font-size: 18px; line-height: 1.2; }
.dw-notification-popover-head small { color: #71808e; font-size: 11px; font-weight: 650; }
.dw-notification-popover-head form { margin: 0; flex: 0 0 auto; }
.dw-notification-read-all {
    padding: 7px 9px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #176f5e;
    font: 800 11px/1 var(--dw-font);
    cursor: pointer;
}
.dw-notification-read-all:hover { background: #eaf6f1; }
.dw-notification-read-all:focus-visible,
.dw-notification-popover-foot a:focus-visible,
.dw-notification-preview-link:focus-visible { outline: 3px solid rgba(31,138,112,.2); outline-offset: -3px; }
.dw-notification-all-read { display: inline-flex; align-items: center; gap: 4px; color: #657483; font-size: 11px; font-weight: 800; white-space: nowrap; }
.dw-notification-all-read svg { width: 17px; height: 17px; color: #1f8a70; }
.dw-notification-preview-list {
    max-height: min(430px, calc(100vh - 220px));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
.dw-notification-preview-item { display: block !important; margin: 0 !important; border-bottom: 1px solid #e7edf1; }
.dw-notification-preview-item:last-child { border-bottom: 0; }
.dw-notification-preview-link {
    width: 100%;
    min-height: 88px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 16px;
    align-items: start;
    gap: 11px;
    padding: 13px 15px;
    border: 0;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease;
}
.dw-notification-preview-item.is-unread .dw-notification-preview-link { background: #f3faf7; }
.dw-notification-preview-link:hover { background: #f7fafb !important; }
.dw-notification-state {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid #dce6eb;
    border-radius: 9px;
    background: #f7f9fa;
    color: #71808d;
}
.dw-notification-preview-item.is-unread .dw-notification-state { border-color: #bde1d7; background: #e4f5ef; color: #17745e; }
.dw-notification-state svg { width: 19px; height: 19px; }
.dw-notification-preview-copy { min-width: 0; display: grid; gap: 4px; }
.dw-notification-preview-copy strong { overflow: hidden; color: #182838; font-size: 13px; font-weight: 790; line-height: 1.32; text-overflow: ellipsis; white-space: nowrap; }
.dw-notification-preview-copy > small { display: -webkit-box; overflow: hidden; color: #647482; font-size: 11px; font-weight: 550; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.dw-notification-preview-meta { min-width: 0; display: flex; align-items: center; gap: 7px; color: #7a8995; font-size: 9px; font-weight: 720; }
.dw-notification-preview-meta b { overflow: hidden; color: #17745e; font-size: 9px; text-overflow: ellipsis; text-transform: uppercase; letter-spacing: .035em; white-space: nowrap; }
.dw-notification-preview-meta time { white-space: nowrap; }
.dw-notification-preview-arrow { width: 16px; height: 16px; margin-top: 10px; color: #9aa6af; }
.dw-notification-empty { min-height: 150px; display: grid; place-items: center; align-content: center; gap: 5px; padding: 24px; color: #6d7d8b; text-align: center; }
.dw-notification-empty > span { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 3px; border-radius: 10px; background: #edf6f3; color: #1f8a70; }
.dw-notification-empty svg { width: 21px; height: 21px; }
.dw-notification-empty strong { color: #263746; font-size: 14px; }
.dw-notification-empty small { max-width: 260px; font-size: 11px; line-height: 1.4; }
.dw-notification-popover-foot { padding: 10px 13px; border-top: 1px solid #e2e9ee; background: #f8fafb; }
.dw-notification-popover-foot a { min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid #d7e2e7; border-radius: 8px; background: #fff; color: #233445; font-size: 12px; font-weight: 800; }
.dw-notification-popover-foot a:hover { border-color: rgba(31,138,112,.42); color: #176f5e; background: #f6fbf9; }
.dw-notification-popover-foot svg { width: 15px; height: 15px; }
.dw-launcher-quick-menu { position: relative; display: inline-flex; }
.dw-launcher-plus-button {
    background: #176f5e;
    border-color: #176f5e;
    color: #fff;
    box-shadow: 0 10px 24px rgba(23,111,94,.2);
}
.dw-launcher-plus-button:hover,
.dw-launcher-plus-button[aria-expanded="true"] { background: #115c4e; border-color: #115c4e; color: #fff; }
.dw-launcher-plus-button svg { width: 22px; height: 22px; }
.dw-launcher-quick-popover {
    position: absolute;
    z-index: 80;
    top: calc(100% + 12px);
    right: 0;
    width: min(360px, calc(100vw - 24px));
    max-height: min(620px, calc(100vh - 92px));
    overflow: auto;
    padding: 14px;
    border: 1px solid #d7e2e7;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 58px rgba(15,23,42,.18);
}
.dw-launcher-quick-popover[hidden] { display: none !important; }
.dw-launcher-quick-popover-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 2px 2px 10px; }
.dw-launcher-quick-popover-head h2 { margin: 2px 0 0; font-size: 19px; }
.dw-launcher-quick-popover-head button {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid var(--dw-line);
    border-radius: 8px;
    background: #f8fafb;
    color: var(--dw-muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.dw-launcher-quick-list { display: grid; gap: 7px; }
.dw-launcher-quick-item {
    min-height: 60px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid var(--dw-line);
    border-radius: 9px;
    background: #fff;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.dw-launcher-quick-item:hover { border-color: rgba(31,138,112,.42); background: #f8fcfa; transform: translateX(-1px); }
.dw-launcher-quick-item > span:first-child { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: #e7f4ef; color: #176c58; }
.dw-launcher-quick-item > span:first-child svg { width: 19px; height: 19px; }
.dw-launcher-quick-item > span:last-child { min-width: 0; display: grid; gap: 3px; }
.dw-launcher-quick-item strong { font-size: 14px; }
.dw-launcher-quick-item small { color: var(--dw-muted); font-size: 11px; line-height: 1.3; }

.dw-notification-summary { display: grid; grid-template-columns: 160px 190px minmax(240px, 1fr); gap: 10px; }
.dw-notification-summary > article,
.dw-notification-summary > nav { min-height: 82px; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--dw-line); border-radius: 9px; background: #fff; }
.dw-notification-summary article strong { font-size: 26px; }
.dw-notification-summary article span { color: var(--dw-muted); font-size: 13px; }
.dw-notification-summary nav { justify-content: flex-end; }
.dw-notification-summary nav a { padding: 8px 13px; border-radius: 7px; color: var(--dw-muted); font-weight: 800; }
.dw-notification-summary nav a.is-active { background: #e7f4ef; color: #176c58; }
.dw-notification-panel { padding: 16px; }
.dw-notification-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; border: 1px solid var(--dw-line); border-left: 4px solid #27b493; border-radius: 9px; background: #fff; }
.dw-notification-item.priority-urgent { border-left-color: #bd3343; }
.dw-notification-item.priority-important { border-left-color: #d6902f; }
.dw-notification-item.is-read { background: #f8fafb; opacity: .82; }
.dw-notification-copy { display: grid; gap: 6px; min-width: 0; }
.dw-notification-copy > strong { font-size: 16px; }
.dw-notification-copy p { margin: 0; color: var(--dw-muted); line-height: 1.45; }
.dw-notification-meta { display: flex; align-items: center; gap: 8px; color: var(--dw-muted); font-size: 11px; }
.dw-notification-meta b { padding: 3px 6px; border-radius: 999px; background: #fff0f1; color: #a52c3a; font-size: 9px; text-transform: uppercase; }
.dw-notification-actions { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.dw-notification-actions form { margin: 0; }

.dw-mobile-workspace-link,
.dw-mobile-header-actions,
.dw-mobile-more-groups,
.dw-mobile-logout { display: none; }

@media (max-width: 1180px) {
    .dw-app-shell { grid-template-columns: 246px minmax(0, 1fr); }
    .dw-topbar-context { display: none; }
    .dw-launcher-quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    body { background: #f4f7f9; }
    .dw-mobile-topbar {
        min-height: 60px;
        padding: 9px 12px;
        background: rgba(255,255,255,.97);
        box-shadow: 0 1px 0 rgba(15,23,42,.035);
    }
    .dw-mobile-topbar .dw-brand { gap: 9px; }
    .dw-mobile-topbar .dw-brand-mark { width: 36px; height: 36px; border-radius: 9px; box-shadow: none; }
    .dw-mobile-topbar .dw-brand strong { font-size: 14px; }
    .dw-mobile-topbar .dw-brand small {
        display: block;
        max-width: 210px;
        margin-top: 2px;
        color: #7a8895;
        font-size: 10px;
        font-weight: 650;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .dw-mobile-header-actions { display: flex; align-items: center; gap: 6px; }
    .dw-mobile-header-actions form { margin: 0; display: inline-flex; }
    .dw-mobile-header-button {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        padding: 0;
        border: 1px solid #d9e3ea;
        border-radius: 9px;
        background: #fff;
        color: #176c58;
        cursor: pointer;
    }
    .dw-mobile-header-button.is-danger { color: #bd3343; border-color: #efcbd0; }
    .dw-mobile-header-button.dw-launcher-plus-button {
        background: #176f5e;
        border-color: #176f5e;
        color: #fff;
    }
    .dw-mobile-header-button svg { width: 17px; height: 17px; }
    .dw-mobile-header-actions .dw-notification-popover {
        position: fixed;
        top: 61px;
        right: 10px;
        left: 10px;
        width: auto;
        max-height: calc(100vh - 74px);
    }
    .dw-guardian-mobile-topbar .dw-notification-popover {
        position: fixed;
        top: 68px;
        right: 10px;
        left: 10px;
        width: auto;
        max-height: calc(100vh - 82px);
    }
    .dw-notification-preview-list { max-height: calc(100vh - 220px); }
    .dw-launcher-quick-head { align-items: flex-start; flex-direction: column; gap: 8px; }
    .dw-launcher-quick-head > small { max-width: none; text-align: left; }
    .dw-launcher-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dw-launcher-quick-action { min-height: 96px; padding: 10px; }
    .dw-notification-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dw-notification-summary > nav { grid-column: 1 / -1; min-height: 58px; justify-content: flex-start; }
    .dw-notification-item { align-items: flex-start; flex-direction: column; gap: 12px; padding: 13px; }
    .dw-notification-actions { width: 100%; flex-wrap: wrap; }
    .dw-mobile-workspace-link {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        flex: 0 0 auto;
        border: 1px solid var(--dw-line);
        border-radius: 9px;
        background: #fff;
        color: var(--dw-primary);
    }
    .dw-mobile-workspace-link svg { width: 17px; height: 17px; }
    .dw-content { padding: 14px 12px 94px; gap: 12px; }
    .dw-page-heading h1 { font-size: 24px; }
    .dw-inner-heading { padding: 14px; }
    .dw-card, .dw-panel { padding: 13px; }
    .dw-dashboard-hero-pro { padding: 16px; gap: 14px; }
    .dw-dashboard-hero-pro h1 { font-size: 25px; }
    .dw-dashboard-context { margin-top: 9px; }
    .dw-dashboard-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
    .dw-dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .dw-dashboard-kpi {
        min-height: 106px;
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 8px;
        padding: 11px 9px;
    }
    .dw-dashboard-kpi-icon { width: 34px; height: 34px; min-width: 34px; min-height: 34px; }
    .dw-school-dashboard .dw-dashboard-kpi-icon > svg,
    .dw-school-dashboard .dw-dashboard-kpi-icon .dw-app-icon-svg { width: 17px !important; height: 17px !important; }
    .dw-dashboard-kpi-copy small { font-size: 9px; line-height: 1.2; }
    .dw-dashboard-kpi-copy strong { font-size: 18px; }
    .dw-dashboard-kpi-copy em { font-size: 10px; }
    .dw-dashboard-kpi .dw-dashboard-trend {
        width: 100%;
        max-width: 100%;
        white-space: normal;
        line-height: 1.18;
        text-align: left;
    }
    .dw-dashboard-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dw-dashboard-panel { padding: 13px; }
    .dw-dashboard-panel-head h2 { font-size: 17px; }
    .dw-crud-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .dw-crud-summary-card { min-height: 68px; }
    .dw-page-workspace-action { display: none; }
    .dw-crud-primary-actions,
    .dw-crud-secondary-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .dw-table-wrap {
        margin-inline: -1px;
        border: 1px solid #e1e7ec;
        background: linear-gradient(90deg, #fff 94%, #edf2f5);
    }
    .dw-mobile-bottom-nav {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 3px;
        padding: 7px max(7px, env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom)) max(7px, env(safe-area-inset-right));
        box-shadow: 0 -10px 30px rgba(15,23,42,.09);
    }
    .dw-mobile-bottom-nav a,
    .dw-mobile-bottom-nav button {
        min-height: 52px;
        border-radius: 9px;
        font-size: 10px;
        font-weight: 720;
    }
    .dw-mobile-bottom-nav span {
        width: 25px;
        height: 25px;
        border-radius: 7px;
    }
    .dw-mobile-bottom-nav span svg { width: 15px; height: 15px; }
    .dw-mobile-bottom-nav a.is-active,
    .dw-mobile-bottom-nav button.is-active,
    .dw-mobile-bottom-nav button.is-current-route { color: var(--dw-primary); background: rgba(31,138,112,.085); }
    .dw-mobile-more {
        max-height: min(84vh, 760px);
        padding: 14px 12px calc(16px + env(safe-area-inset-bottom));
        border-radius: 18px 18px 0 0;
    }
    .dw-mobile-more-header { margin-bottom: 10px; padding: 0 2px 10px; border-bottom: 1px solid var(--dw-line); }
    .dw-mobile-more-header > div { display: grid; gap: 2px; }
    .dw-mobile-more-header small { color: var(--dw-muted); font-size: 10px; font-weight: 720; text-transform: uppercase; letter-spacing: .05em; }
    .dw-mobile-more-header strong { font-size: 18px; }
    .dw-mobile-more-close {
        width: 36px;
        height: 36px;
        border: 1px solid var(--dw-line);
        border-radius: 9px;
        background: #f7f9fb;
        color: #536270;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
    }
    .dw-mobile-more-search { position: relative; display: block; margin-bottom: 12px; }
    .dw-mobile-more-search svg {
        position: absolute;
        left: 12px;
        top: 50%;
        z-index: 1;
        width: 17px;
        height: 17px;
        color: #71808d;
        transform: translateY(-50%);
        pointer-events: none;
    }
    .dw-mobile-more-search input {
        width: 100%;
        height: 44px;
        padding: 0 12px 0 39px;
        border: 1px solid #dce4ea;
        border-radius: 10px;
        outline: 0;
        background: #f8fafb;
        color: var(--dw-ink);
        font: 650 13px/1 var(--dw-font);
    }
    .dw-mobile-more-search input:focus { border-color: rgba(31,138,112,.5); box-shadow: 0 0 0 3px rgba(31,138,112,.09); }
    .dw-mobile-more-groups { display: grid; gap: 14px; }
    .dw-mobile-more-group { display: grid; gap: 7px; }
    .dw-mobile-more-group h3 {
        margin: 0;
        padding: 0 2px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        color: #70808d;
        font-size: 9px;
        font-weight: 780;
        letter-spacing: .055em;
        text-transform: uppercase;
    }
    .dw-mobile-more-group h3 small {
        min-width: 20px;
        height: 20px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        background: #edf2f5;
        color: #60717e;
        font-size: 9px;
    }
    .dw-mobile-more-group[hidden],
    .dw-mobile-more-links a[hidden] { display: none !important; }
    .dw-mobile-nav-empty {
        padding: 18px 12px;
        border: 1px dashed var(--dw-line);
        border-radius: 10px;
        color: var(--dw-muted);
        text-align: center;
        font-size: 12px;
        font-weight: 700;
    }
    .dw-mobile-nav-empty[hidden] { display: none; }
    .dw-mobile-more-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .dw-mobile-more-links a {
        min-height: 52px;
        padding: 8px;
        gap: 8px;
        border-radius: 9px;
        background: #f8fafb;
        font-weight: 650;
    }
    .dw-mobile-more-links a > span { width: 29px; height: 29px; border-radius: 7px; }
    .dw-mobile-more-links a svg { width: 15px; height: 15px; }
    .dw-mobile-more-links a strong { min-width: 0; font-size: 11px; line-height: 1.2; }
    .dw-mobile-logout { display: block; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--dw-line); }
    .dw-mobile-logout button {
        width: 100%;
        min-height: 42px;
        border: 1px solid #f0cbd0;
        border-radius: 9px;
        background: #fff7f8;
        color: #a83948;
        font-weight: 740;
    }
}

@media (max-width: 640px) {
    .dw-launcher-shell .dw-content { padding: 18px 12px 36px; }
    .dw-launcher-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 36px;
    }
    .dw-launcher-top .dw-brand { gap: 9px; min-width: 0; }
    .dw-launcher-top .dw-brand-mark,
    .dw-launcher-top .dw-brand-logo { width: 38px; height: 38px; border-radius: 9px; }
    .dw-launcher-top .dw-brand strong { font-size: 14px; white-space: nowrap; }
    .dw-launcher-top .dw-brand small { display: none; }
    .dw-launcher-actions { flex-wrap: nowrap; justify-content: flex-end; gap: 6px; min-width: 0; }
    .dw-launcher-user-chip { min-height: 38px; max-width: 112px; padding: 4px 9px; }
    .dw-launcher-user-chip b { display: none; }
    .dw-launcher-user-chip span { font-size: 12px; }
    .dw-header-icon-button { width: 38px; height: 38px; border-radius: 9px; box-shadow: none; }
    .dw-header-icon-button svg { width: 17px; height: 17px; }
    .dw-launcher-quick-popover {
        position: fixed;
        top: 68px;
        right: 12px;
        left: 12px;
        width: auto;
        max-height: calc(100vh - 82px);
    }
    .dw-launcher-actions .dw-notification-popover {
        position: fixed;
        top: 68px;
        right: 12px;
        left: 12px;
        width: auto;
        max-height: calc(100vh - 82px);
    }
}

@media (max-width: 400px) {
    .dw-launcher-user-chip { display: none; }
}

@media (max-width: 360px) {
    .dw-dashboard-kpis, .dw-dashboard-mini-grid, .dw-crud-summary { grid-template-columns: 1fr; }
    .dw-crud-primary-actions, .dw-crud-secondary-actions { grid-template-columns: 1fr; }
    .dw-mobile-topbar .dw-brand small { max-width: 170px; }
    .dw-mobile-more-links { grid-template-columns: 1fr; }
    .dw-mobile-topbar .dw-brand strong,
    .dw-launcher-top .dw-brand strong { font-size: 13px; }
    .dw-mobile-header-actions { gap: 4px; }
    .dw-mobile-header-button { width: 34px; height: 36px; }
    .dw-launcher-user-chip { max-width: 88px; }
}

/* Enterprise attendance workspace */
.dw-attendance-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 16px 0;
}
.dw-attendance-mode-grid > a {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 15px;
    align-items: center;
    min-height: 142px;
    padding: 20px;
    border: 1px solid var(--dw-line);
    border-top: 4px solid var(--dw-primary);
    border-radius: 12px;
    background: #fff;
    color: var(--dw-text);
    box-shadow: 0 12px 30px rgba(15, 32, 48, .06);
    text-decoration: none;
}
.dw-attendance-mode-grid > a:hover { border-color: var(--dw-primary); transform: translateY(-1px); }
.dw-attendance-mode-grid h2 { margin: 2px 0 5px; font-size: 19px; }
.dw-attendance-mode-grid p { margin: 0; color: var(--dw-muted); font-size: 13px; line-height: 1.55; }
.dw-attendance-mode-grid small { color: var(--dw-primary); font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.dw-attendance-mode-grid b { color: var(--dw-primary); white-space: nowrap; }
.dw-attendance-mode-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eaf6f2;
    color: var(--dw-primary);
    font-size: 19px;
    font-weight: 900;
}
.dw-field-span-2 { grid-column: span 2; }
.dw-attendance-policy-badge,
.dw-attendance-session-state {
    display: inline-flex;
    align-items: center;
    border: 1px solid #b9dfd3;
    border-radius: 999px;
    background: #eff9f6;
    color: #146e5d;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 800;
}
.dw-attendance-session-state { margin-bottom: 12px; border-radius: 8px; }
.dw-enterprise-attendance-sheet .dw-attendance-row {
    grid-template-columns: minmax(150px, .85fr) minmax(130px, .65fr) minmax(430px, 1.75fr) minmax(150px, .8fr);
}
.dw-enterprise-attendance-sheet .dw-attendance-row:has(.dw-attendance-minutes) {
    grid-template-columns: minmax(150px, .8fr) minmax(120px, .6fr) minmax(410px, 1.7fr) 85px minmax(140px, .75fr);
}
.dw-enterprise-attendance-sheet .dw-attendance-note { grid-column: auto; }
.dw-attendance-name { display: grid; gap: 3px; }
.dw-attendance-name > b { color: var(--dw-muted); font-size: 11px; }
.dw-attendance-minutes {
    width: 100%;
    min-height: 34px;
    border: 1px solid var(--dw-line);
    border-radius: 7px;
    padding: 7px 8px;
    background: #f8fafc;
}
.dw-attendance-submit-bar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-top: 14px;
    padding: 13px 15px;
    border: 1px solid var(--dw-line);
    border-radius: 10px;
    background: #f8fafc;
}
.dw-attendance-submit-bar > span { color: var(--dw-muted); font-size: 12px; }

@media (max-width: 1100px) {
    .dw-enterprise-attendance-sheet .dw-attendance-row,
    .dw-enterprise-attendance-sheet .dw-attendance-row:has(.dw-attendance-minutes) {
        grid-template-columns: minmax(140px, 1fr) minmax(120px, .8fr);
    }
    .dw-enterprise-attendance-sheet .dw-attendance-statuses,
    .dw-enterprise-attendance-sheet .dw-attendance-note { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
    .dw-attendance-mode-grid { grid-template-columns: 1fr; }
    .dw-attendance-mode-grid > a { grid-template-columns: 46px minmax(0, 1fr); min-height: 0; padding: 16px; }
    .dw-attendance-mode-grid > a > b { grid-column: 2; }
    .dw-attendance-mode-icon { width: 46px; height: 46px; }
    .dw-field-span-2 { grid-column: auto; }
    .dw-enterprise-attendance-sheet .dw-attendance-row,
    .dw-enterprise-attendance-sheet .dw-attendance-row:has(.dw-attendance-minutes) { grid-template-columns: 1fr; }
    .dw-enterprise-attendance-sheet .dw-attendance-statuses,
    .dw-enterprise-attendance-sheet .dw-attendance-note { grid-column: auto; }
    .dw-attendance-submit-bar { align-items: stretch; flex-direction: column; }
}

/* Guardian portal: a calm family-facing shell, intentionally independent of staff navigation. */
.dw-guardian-body { margin: 0; min-width: 320px; background: #f3f7f6; color: var(--dw-ink); }
.dw-guardian-body *, .dw-guardian-body *::before, .dw-guardian-body *::after { box-sizing: border-box; }
.dw-guardian-shell { min-height: 100vh; display: grid; grid-template-columns: 278px minmax(0, 1fr); }
.dw-guardian-sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; padding: 22px 18px 30px; background: linear-gradient(180deg, #0d1c26, #102731); color: #f3f8fb; scrollbar-width: thin; }
.dw-guardian-brand { display: flex; justify-content: center; padding: 0 4px 18px; border-bottom: 1px solid rgba(255,255,255,.09); }
.dw-guardian-brand .dw-brand-identity { width: 100%; }
.dw-guardian-brand .dw-brand-wordmark { width: 218px; }
.dw-guardian-brand .dw-brand-identity small { color: #a8bac5; font-size: 11px; }
.dw-guardian-identity { display: grid; gap: 3px; padding: 0 7px; }
.dw-guardian-identity small { color: #6ed7bc; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; }
.dw-guardian-identity strong { font-size: 17px; }
.dw-guardian-identity span { color: #aab9c3; font-size: 12px; }
.dw-guardian-child-select { display: grid; gap: 7px; padding: 11px; border: 1px solid rgba(111,215,188,.24); border-radius: 11px; background: rgba(111,215,188,.08); }
.dw-guardian-child-select > span { color: #9bb0bc; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.dw-guardian-child-select select { width: 100%; min-height: 42px; padding: 0 32px 0 11px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: #142c37; color: #f6fbfd; font: inherit; font-size: 12px; font-weight: 800; }
.dw-guardian-nav { display: grid; gap: 18px; }
.dw-guardian-nav section { display: grid; gap: 5px; }
.dw-guardian-nav h2 { margin: 0 8px 4px; color: #7f94a1; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.dw-guardian-nav a { min-width: 0; min-height: 42px; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 6px 9px; border: 1px solid transparent; border-radius: 9px; color: #bdcbd4; text-decoration: none; }
.dw-guardian-nav a > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.065); color: #9eb1bc; }
.dw-guardian-nav a svg { width: 16px; height: 16px; }
.dw-guardian-nav a strong { overflow: hidden; font-size: 13px; font-weight: 730; text-overflow: ellipsis; white-space: nowrap; }
.dw-guardian-nav a small { min-width: 22px; padding: 3px 6px; border-radius: 999px; background: #dc3545; color: #fff; font-size: 9px; text-align: center; }
.dw-guardian-nav a:hover { background: rgba(255,255,255,.055); color: #fff; }
.dw-guardian-nav a.is-active { border-color: rgba(94,219,186,.22); background: rgba(32,170,138,.18); color: #fff; box-shadow: inset 3px 0 #46d1ae; }
.dw-guardian-nav a.is-active > span { background: rgba(70,209,174,.18); color: #73e0c4; }
.dw-guardian-workspace { min-width: 0; }
.dw-guardian-topbar { position: sticky; top: 0; z-index: 30; min-height: 72px; display: flex; align-items: center; gap: 16px; padding: 10px 24px; border-bottom: 1px solid #dce6e3; background: rgba(255,255,255,.94); box-shadow: 0 7px 24px rgba(18,42,52,.035); backdrop-filter: blur(14px); }
.dw-guardian-page-context { min-width: 180px; display: grid; gap: 2px; }
.dw-guardian-page-context small { color: var(--dw-primary); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.dw-guardian-page-context strong { font-size: 16px; }
.dw-guardian-child-chip { margin-left: auto; max-width: 270px; display: flex; align-items: center; gap: 9px; padding: 6px 11px 6px 7px; border: 1px solid #dce6e3; border-radius: 10px; background: #fff; color: var(--dw-ink); text-decoration: none; }
.dw-guardian-child-chip > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: #e5f5f0; color: #167c65; font-size: 11px; font-weight: 900; }
.dw-guardian-child-chip b { min-width: 0; display: grid; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dw-guardian-child-chip b small { color: var(--dw-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.dw-guardian-header-actions { display: flex; align-items: center; gap: 8px; }
.dw-guardian-header-actions form { margin: 0; }
.dw-guardian-profile-button { background: #e9f5f1; color: #15765f; font-size: 11px; font-weight: 900; }
.dw-guardian-quick { position: relative; }
.dw-guardian-quick-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 50; width: min(330px, calc(100vw - 30px)); padding: 10px; border: 1px solid #dce6e3; border-radius: 12px; background: #fff; box-shadow: 0 24px 55px rgba(13,35,45,.18); }
.dw-guardian-quick-menu > small { display: block; padding: 7px 9px; color: var(--dw-muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.dw-guardian-quick-menu a { display: grid; gap: 2px; padding: 10px; border-radius: 8px; color: var(--dw-ink); text-decoration: none; }
.dw-guardian-quick-menu a:hover { background: #f0f8f5; }
.dw-guardian-quick-menu strong { font-size: 13px; }
.dw-guardian-quick-menu span { color: var(--dw-muted); font-size: 11px; }
.dw-guardian-mobile-topbar, .dw-guardian-mobile-child-select, .dw-guardian-mobile-menu, .dw-guardian-mobile-backdrop, .dw-guardian-bottom-nav { display: none; }
.dw-guardian-content { width: min(1420px, 100%); margin: 0 auto; display: grid; gap: 20px; padding: 26px; }
.dw-guardian-welcome { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 25px 27px; border: 1px solid #cfe1dc; border-radius: 15px; background: linear-gradient(120deg, #e9f6f2 0, #fff 62%); box-shadow: 0 15px 34px rgba(16,62,53,.06); }
.dw-guardian-welcome h1, .dw-guardian-page-heading h1, .dw-guardian-child-hero h1 { margin: 4px 0 7px; font-size: clamp(27px, 3vw, 40px); letter-spacing: -.035em; }
.dw-guardian-welcome p, .dw-guardian-page-heading > div > p:last-child, .dw-guardian-child-hero p { margin: 0; color: var(--dw-muted); }
.dw-guardian-welcome-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.dw-guardian-alert-stack, .dw-guardian-section, .dw-guardian-request-forms > section, .dw-guardian-profile-grid > section { padding: 20px; border: 1px solid #dbe6e3; border-radius: 14px; background: #fff; box-shadow: 0 12px 28px rgba(14,45,53,.045); }
.dw-guardian-alert-stack > header, .dw-guardian-section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.dw-guardian-alert-stack > header h2, .dw-guardian-section-head h2 { margin: 2px 0 3px; font-size: 21px; letter-spacing: -.025em; }
.dw-guardian-alert-stack > header > span { min-width: 30px; padding: 5px 9px; border-radius: 999px; background: #eff5f3; color: var(--dw-primary); font-weight: 900; text-align: center; }
.dw-guardian-alert-stack > a { display: grid; grid-template-columns: 34px minmax(0,1fr) 15px; align-items: center; gap: 11px; padding: 12px; border: 1px solid #e0e8e6; border-left-width: 4px; border-radius: 10px; color: var(--dw-ink); text-decoration: none; }
.dw-guardian-alert-stack > a + a { margin-top: 8px; }
.dw-guardian-alert-stack > a > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #f1f5f4; font-weight: 900; }
.dw-guardian-alert-stack > a strong { font-size: 13px; }
.dw-guardian-alert-stack > a p { margin: 2px 0 0; color: var(--dw-muted); font-size: 12px; }
.dw-guardian-alert-stack > a.tone-danger { border-left-color: #d44852; }
.dw-guardian-alert-stack > a.tone-warning { border-left-color: #c67b23; }
.dw-guardian-alert-stack > a.tone-info { border-left-color: #3977ca; }
.dw-guardian-section-head p { margin: 0; color: var(--dw-muted); font-size: 12px; }
.dw-guardian-section-head > a { color: var(--dw-primary); font-size: 12px; font-weight: 850; text-decoration: none; }
.dw-guardian-children-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 14px; }
.dw-guardian-overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dw-guardian-overview-grid article { min-width: 0; display: grid; gap: 5px; padding: 17px; border: 1px solid #dce8e4; border-radius: 11px; background: linear-gradient(145deg, #fbfdfc, #f3f9f7); }
.dw-guardian-overview-grid small { color: var(--dw-muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.dw-guardian-overview-grid strong { color: var(--dw-ink); font-size: clamp(24px, 3vw, 34px); letter-spacing: -.035em; }
.dw-guardian-overview-grid span { color: var(--dw-muted); font-size: 11px; font-weight: 650; }
.dw-guardian-child-card { min-width: 0; overflow: hidden; border: 1px solid #dce7e4; border-radius: 13px; background: #fbfdfc; }
.dw-guardian-child-card.is-selected { border-color: #8bcdbb; box-shadow: 0 12px 28px rgba(20,123,97,.09); }
.dw-guardian-child-card-main { min-width: 0; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 15px; color: var(--dw-ink); text-decoration: none; }
.dw-guardian-child-avatar { width: 58px; height: 58px; display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: linear-gradient(135deg, #dff4ee, #c9ebe2); color: #167861; font-size: 18px; font-weight: 900; }
.dw-guardian-child-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dw-guardian-child-avatar.is-large { width: 82px; height: 82px; border-radius: 19px; font-size: 24px; }
.dw-guardian-child-copy { min-width: 0; display: grid; gap: 2px; }
.dw-guardian-child-copy small { color: var(--dw-muted); font-size: 10px; font-weight: 800; }
.dw-guardian-child-copy strong { overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.dw-guardian-child-copy > span { color: #526777; font-size: 12px; }
.dw-guardian-child-copy em { color: var(--dw-primary); font-size: 10px; font-style: normal; font-weight: 800; }
.dw-guardian-card-arrow { color: #7d918d; font-size: 26px; }
.dw-guardian-child-signals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #e3ebe9; }
.dw-guardian-child-signals a { min-width: 0; display: grid; gap: 2px; padding: 10px; border-right: 1px solid #e3ebe9; color: var(--dw-ink); text-decoration: none; }
.dw-guardian-child-signals a:last-child { border-right: 0; }
.dw-guardian-child-signals small { color: var(--dw-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.dw-guardian-child-signals strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.dw-guardian-child-signals strong.tone-success { color: #17805f; }
.dw-guardian-child-signals strong.tone-danger { color: #bf313d; }
.dw-guardian-today-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.dw-guardian-today-grid > article { min-width: 0; min-height: 150px; padding: 16px; border: 1px solid #e0e9e6; border-radius: 11px; background: #fbfdfc; }
.dw-guardian-today-grid article > header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.dw-guardian-today-grid header div { display: grid; gap: 2px; }
.dw-guardian-today-grid header small { color: var(--dw-muted); font-size: 10px; text-transform: uppercase; }
.dw-guardian-today-grid header strong { font-size: 14px; }
.dw-guardian-today-grid header a, .dw-guardian-today-attendance > a { color: var(--dw-primary); font-size: 11px; font-weight: 850; text-decoration: none; }
.dw-guardian-today-attendance { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 12px; }
.dw-guardian-today-attendance > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 11px; background: #e3f3ee; color: #137c61; }
.dw-guardian-today-attendance svg { width: 23px; height: 23px; }
.dw-guardian-today-attendance div { display: grid; gap: 3px; }
.dw-guardian-today-attendance small { color: var(--dw-muted); font-size: 10px; text-transform: uppercase; }
.dw-guardian-today-attendance strong { font-size: 19px; }
.dw-guardian-today-attendance p, .dw-guardian-muted { margin: 0; color: var(--dw-muted); font-size: 11px; }
.dw-guardian-compact-row { display: grid; grid-template-columns: minmax(80px,.5fr) minmax(0,1.5fr); gap: 10px; padding: 7px 0; border-top: 1px solid #edf1f0; }
a.dw-guardian-compact-row { color: var(--dw-ink); text-decoration: none; }
a.dw-guardian-compact-row:hover strong { color: var(--dw-primary); }
.dw-guardian-compact-row span { color: var(--dw-muted); font-size: 10px; }
.dw-guardian-compact-row strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.dw-guardian-finance-banner { display: flex; justify-content: space-between; align-items: center; gap: 22px; padding: 23px; border: 1px solid #b9ddcf; border-radius: 14px; background: linear-gradient(115deg, #e2f3ed, #fff 65%); }
.dw-guardian-finance-banner > div:first-child { display: grid; gap: 4px; }
.dw-guardian-finance-banner span, .dw-guardian-finance-banner small { color: var(--dw-muted); font-weight: 700; }
.dw-guardian-finance-banner strong { font-size: clamp(30px,4vw,44px); line-height: 1; }
.dw-guardian-finance-banner > div:last-child { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.dw-guardian-list { display: grid; gap: 8px; }
.dw-guardian-list > a, .dw-guardian-list > article { min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 12px; border: 1px solid #e1e9e7; border-radius: 9px; background: #fbfdfc; color: var(--dw-ink); text-decoration: none; }
.dw-guardian-list > * > div { min-width: 0; display: grid; gap: 2px; }
.dw-guardian-list small, .dw-guardian-list span { color: var(--dw-muted); font-size: 10px; }
.dw-guardian-list b { color: var(--dw-primary); font-size: 13px; white-space: nowrap; }
.dw-guardian-page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 4px 2px 3px; }
.dw-guardian-page-heading .dw-btn { flex: 0 0 auto; }
.dw-guardian-child-hero { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 18px; padding: 22px; border: 1px solid #cfe1dc; border-radius: 14px; background: linear-gradient(120deg,#e8f5f1,#fff 65%); }
.dw-guardian-child-hero > div > span { display: inline-block; margin-top: 7px; color: var(--dw-primary); font-size: 11px; font-weight: 800; }
.dw-guardian-action-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.dw-guardian-action-grid > a { min-width: 0; min-height: 108px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 15px; border: 1px solid #dae6e2; border-radius: 12px; background: #fff; color: var(--dw-ink); text-decoration: none; }
.dw-guardian-action-grid > a > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: #e8f4f0; color: #167c63; }
.dw-guardian-action-grid svg { width: 21px; height: 21px; }
.dw-guardian-action-grid strong { font-size: 14px; }
.dw-guardian-action-grid p { margin: 3px 0 0; color: var(--dw-muted); font-size: 11px; }
.dw-guardian-action-grid > a > b { color: #8ca09c; font-size: 20px; }
.dw-guardian-summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.dw-guardian-summary-grid article { min-width: 0; display: grid; gap: 5px; padding: 17px; border: 1px solid #dae5e2; border-radius: 11px; background: #fff; }
.dw-guardian-summary-grid small, .dw-guardian-summary-grid span { color: var(--dw-muted); font-size: 10px; }
.dw-guardian-summary-grid strong { font-size: 23px; overflow-wrap: anywhere; }
.dw-guardian-empty { min-height: 220px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 28px; border: 1px dashed #bfd1cc; border-radius: 13px; background: #fbfdfc; text-align: center; }
.dw-guardian-empty > span { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 13px; background: #e5f3ef; color: var(--dw-primary); }
.dw-guardian-empty svg { width: 25px; height: 25px; }
.dw-guardian-empty > strong { font-size: 18px; }
.dw-guardian-empty p { max-width: 520px; margin: 0; color: var(--dw-muted); }
.dw-guardian-feed, .dw-guardian-task-list, .dw-guardian-document-list, .dw-guardian-notice-list { display: grid; gap: 12px; }
.dw-guardian-feed > article, .dw-guardian-task-list > article, .dw-guardian-document-list > article, .dw-guardian-notice-list > article { padding: 18px; border: 1px solid #dce6e3; border-radius: 13px; background: #fff; box-shadow: 0 9px 24px rgba(15,48,55,.035); }
.dw-guardian-feed article > header, .dw-guardian-document-list article > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid #edf1f0; }
.dw-guardian-feed h2, .dw-guardian-document-list h2, .dw-guardian-task-list h2, .dw-guardian-notice-list h2 { margin: 2px 0 0; font-size: 17px; }
.dw-guardian-feed header span, .dw-guardian-feed header time { color: var(--dw-muted); font-size: 11px; }
.dw-guardian-diary-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 13px 0; }
.dw-guardian-diary-grid section { padding: 11px; border-radius: 9px; background: #f5f9f8; }
.dw-guardian-diary-grid small { color: var(--dw-primary); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.dw-guardian-diary-grid p { margin: 5px 0 0; color: #435b68; font-size: 13px; white-space: pre-line; }
.dw-guardian-feed footer { display: flex; gap: 10px; color: var(--dw-muted); font-size: 10px; font-weight: 800; }
.dw-guardian-task-list > article { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; align-items: start; gap: 14px; }
.dw-guardian-task-list article.is-overdue { border-left: 4px solid #cc3f49; }
.dw-guardian-task-date { min-height: 58px; display: grid; place-items: center; align-content: center; border-radius: 10px; background: #edf6f3; }
.dw-guardian-task-date small { color: var(--dw-muted); font-size: 9px; text-transform: uppercase; }
.dw-guardian-task-date strong { font-size: 16px; }
.dw-guardian-task-list article > div > small { color: var(--dw-primary); font-size: 10px; font-weight: 800; }
.dw-guardian-task-list p { margin: 6px 0 9px; color: var(--dw-muted); font-size: 12px; }
.dw-guardian-room-banner { display: flex; align-items: center; gap: 13px; padding: 15px; border: 1px solid #cde1dc; border-radius: 11px; background: #ecf7f3; }
.dw-guardian-room-banner > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: #d8eee7; color: #14775f; }
.dw-guardian-room-banner div { display: grid; gap: 1px; }
.dw-guardian-room-banner small, .dw-guardian-room-banner p { margin: 0; color: var(--dw-muted); font-size: 10px; }
.dw-guardian-family-timetable { display: grid; gap: 20px; }
.dw-guardian-timetable { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.dw-guardian-timetable > section { overflow: hidden; border: 1px solid #dbe6e3; border-radius: 12px; background: #fff; }
.dw-guardian-timetable section > header { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: #edf7f4; }
.dw-guardian-timetable h2 { margin: 0; font-size: 15px; }
.dw-guardian-timetable header span { color: var(--dw-muted); font-size: 10px; }
.dw-guardian-timetable article { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 12px; padding: 12px 14px; border-top: 1px solid #edf1f0; }
.dw-guardian-timetable time { color: var(--dw-primary); font-size: 11px; font-weight: 850; }
.dw-guardian-timetable article div { display: grid; gap: 2px; }
.dw-guardian-timetable article span { color: var(--dw-muted); font-size: 10px; }
.dw-guardian-attendance-list { display: grid; gap: 7px; }
.dw-guardian-attendance-list article { display: grid; grid-template-columns: minmax(140px,.8fr) minmax(90px,.5fr) minmax(0,1.3fr); gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid #e1e9e7; border-radius: 8px; }
.dw-guardian-attendance-list time, .dw-guardian-attendance-list span { color: var(--dw-muted); font-size: 11px; }
.dw-guardian-attendance-list time { display: grid; gap: 2px; }
.dw-guardian-attendance-list time small { color: var(--dw-primary); font-size: 9px; font-weight: 800; }
.dw-guardian-attendance-list strong { font-size: 12px; }
.dw-guardian-attendance-list .status-present { color: #15805d; }
.dw-guardian-attendance-list .status-absent { color: #be303d; }
.dw-guardian-attendance-list .status-late { color: #ad681c; }
.dw-guardian-report-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.dw-guardian-report-grid > article { padding: 16px; border: 1px solid #dfe8e6; border-radius: 11px; background: #fbfdfc; }
.dw-guardian-report-grid header { display: flex; justify-content: space-between; gap: 12px; }
.dw-guardian-report-grid h2 { margin: 2px 0 0; font-size: 17px; }
.dw-guardian-report-grid header span { color: var(--dw-primary); font-size: 25px; font-weight: 900; }
.dw-guardian-report-grid article > div { display: flex; gap: 8px; align-items: center; margin: 12px 0; }
.dw-guardian-report-grid b, .dw-guardian-report-grid em { padding: 4px 8px; border-radius: 999px; background: #e8f4f0; font-size: 10px; font-style: normal; }
.dw-guardian-report-grid p { margin: 0; color: var(--dw-muted); font-size: 11px; }
.dw-guardian-split, .dw-guardian-profile-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.dw-guardian-split > article { padding: 17px; border: 1px solid #dce6e3; border-radius: 12px; background: #fff; }
.dw-guardian-split h2 { margin: 0 0 10px; font-size: 17px; }
.dw-guardian-split article > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 10px; padding: 9px 0; border-top: 1px solid #edf1f0; }
.dw-guardian-split small { grid-column: 1/-1; color: var(--dw-muted); }
.dw-guardian-document-list article.needs-action { border-left: 4px solid #c77c22; }
.dw-guardian-document-meta { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; padding: 13px 0; }
.dw-guardian-document-meta > span { display: grid; gap: 3px; padding: 9px; border-radius: 8px; background: #f4f8f7; }
.dw-guardian-document-meta small { color: var(--dw-muted); font-size: 9px; text-transform: uppercase; }
.dw-guardian-document-meta strong { font-size: 11px; overflow-wrap: anywhere; }
.dw-guardian-rejection { padding: 10px; border-radius: 8px; background: #fff1f2; color: #9f2832; font-size: 11px; }
.dw-guardian-document-form, .dw-guardian-request-forms form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; padding-top: 12px; border-top: 1px solid #edf1f0; }
.dw-guardian-document-form label, .dw-guardian-request-forms label { display: grid; gap: 5px; }
.dw-guardian-document-form label > span, .dw-guardian-request-forms label > span { color: #526672; font-size: 10px; font-weight: 850; }
.dw-guardian-document-form input, .dw-guardian-request-forms input, .dw-guardian-request-forms select, .dw-guardian-request-forms textarea { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #cfdcda; border-radius: 8px; background: #fff; color: var(--dw-ink); font: inherit; font-size: 12px; }
.dw-guardian-document-form .dw-btn, .dw-guardian-request-forms .dw-btn { align-self: end; justify-self: start; }
.dw-guardian-mark-all { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 13px; border: 1px solid #d8e5e1; border-radius: 11px; background: #fff; }
.dw-guardian-mark-all span { display: grid; gap: 1px; }
.dw-guardian-mark-all small { color: var(--dw-muted); }
.dw-guardian-notice-list > article { display: flex; justify-content: space-between; gap: 20px; }
.dw-guardian-notice-list article.is-unread { border-left: 4px solid #258c72; background: #fbfefd; }
.dw-guardian-notice-list article > div > span { display: flex; align-items: center; gap: 7px; }
.dw-guardian-notice-list article span b { color: #178268; font-size: 9px; text-transform: uppercase; }
.dw-guardian-notice-list time { color: var(--dw-muted); font-size: 10px; }
.dw-guardian-notice-list p { margin: 5px 0 0; color: var(--dw-muted); font-size: 12px; }
.dw-guardian-notice-list footer { display: flex; align-items: center; gap: 7px; }
.dw-guardian-request-forms { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.dw-guardian-request-forms section > header { display: flex; gap: 11px; align-items: center; margin-bottom: 13px; }
.dw-guardian-request-forms header > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: #e8f4f0; color: var(--dw-primary); }
.dw-guardian-request-forms h2 { margin: 0; font-size: 17px; }
.dw-guardian-request-forms p { margin: 3px 0 0; color: var(--dw-muted); font-size: 11px; }
.dw-guardian-request-forms label.wide { grid-column: 1/-1; }
.dw-guardian-request-history { display: grid; gap: 8px; }
.dw-guardian-request-history article { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: start; gap: 12px; padding: 12px; border: 1px solid #e1e9e7; border-radius: 9px; }
.dw-guardian-request-history article > div { display: grid; gap: 3px; }
.dw-guardian-request-history small, .dw-guardian-request-history p { margin: 0; color: var(--dw-muted); font-size: 10px; }
.dw-guardian-request-history em { padding: 7px; border-radius: 7px; background: #f3f7f6; color: #455d68; font-size: 10px; font-style: normal; }
.dw-guardian-request-history > article > b { color: var(--dw-primary); font-size: 10px; }
.dw-guardian-profile-grid > section > header { display: flex; align-items: center; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid #edf1f0; }
.dw-guardian-profile-grid header > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: #dff1eb; color: #14785f; font-weight: 900; }
.dw-guardian-profile-grid h2 { margin: 0; font-size: 18px; }
.dw-guardian-profile-grid header p { margin: 2px 0 0; color: var(--dw-muted); font-size: 11px; }
.dw-guardian-profile-grid dl { margin: 13px 0 0; display: grid; gap: 8px; }
.dw-guardian-profile-grid dl div { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid #edf1f0; }
.dw-guardian-profile-grid dt { color: var(--dw-muted); font-size: 10px; font-weight: 800; }
.dw-guardian-profile-grid dd { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.dw-guardian-profile-children { display: grid; gap: 8px; margin-top: 13px; }
.dw-guardian-profile-children a { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 9px; border: 1px solid #e0e9e7; border-radius: 8px; color: var(--dw-ink); text-decoration: none; }
.dw-guardian-profile-children a > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: #e6f3ef; color: #16785f; font-size: 10px; font-weight: 900; }
.dw-guardian-profile-children a div { display: grid; gap: 1px; }
.dw-guardian-profile-children small { color: var(--dw-muted); font-size: 9px; }
.dw-guardian-profile-children b { color: #15805f; font-size: 9px; }
.dw-guardian-security-note { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 16px; border: 1px solid #cfe1dc; border-radius: 11px; background: #edf7f4; }
.dw-guardian-security-note > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 11px; background: #dbeee8; color: #14765e; }
.dw-guardian-security-note p { margin: 3px 0 0; color: var(--dw-muted); font-size: 11px; }

@media (max-width: 1120px) {
    .dw-guardian-shell { grid-template-columns: 245px minmax(0,1fr); }
    .dw-guardian-sidebar { padding-inline: 14px; }
    .dw-guardian-brand .dw-brand-wordmark { width: 190px; }
    .dw-guardian-action-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dw-guardian-child-signals { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dw-guardian-child-signals a:nth-child(2) { border-right: 0; }
    .dw-guardian-child-signals a:nth-child(-n+2) { border-bottom: 1px solid #e3ebe9; }
}

@media (max-width: 900px) {
    .dw-guardian-shell { display: block; }
    .dw-guardian-sidebar, .dw-guardian-topbar { display: none; }
    .dw-guardian-mobile-topbar { position: sticky; top: 0; z-index: 40; min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 16px; border-bottom: 1px solid #dce6e3; background: rgba(255,255,255,.97); box-shadow: 0 8px 24px rgba(15,43,53,.045); backdrop-filter: blur(14px); }
    .dw-guardian-mobile-topbar > a { min-width: 0; }
    .dw-guardian-mobile-topbar .dw-brand-identity { width: 158px; }
    .dw-guardian-mobile-topbar .dw-brand-wordmark { width: 158px; }
    .dw-guardian-mobile-topbar .dw-brand-identity small { font-size: 9px; }
    .dw-guardian-mobile-topbar > div { display: flex; align-items: center; gap: 7px; }
    .dw-guardian-mobile-child-select { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 8px; padding: 9px 15px; border-bottom: 1px solid #dfe8e5; background: #f8fbfa; }
    .dw-guardian-mobile-child-select span { color: var(--dw-muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }
    .dw-guardian-mobile-child-select select { min-width: 0; min-height: 38px; padding: 0 9px; border: 1px solid #cfdeda; border-radius: 8px; background: #fff; color: var(--dw-ink); font: inherit; font-size: 11px; font-weight: 800; }
    .dw-guardian-content { gap: 15px; padding: 17px 15px 92px; }
    .dw-guardian-mobile-backdrop { position: fixed; inset: 0; z-index: 58; display: block; background: rgba(7,20,27,.52); }
    .dw-guardian-mobile-backdrop[hidden], .dw-guardian-mobile-menu[hidden] { display: none; }
    .dw-guardian-mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(355px, 91vw); display: flex; flex-direction: column; gap: 12px; padding: 18px; overflow-y: auto; background: #10232d; color: #fff; box-shadow: -20px 0 50px rgba(0,0,0,.24); }
    .dw-guardian-mobile-menu > header { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid rgba(255,255,255,.1); }
    .dw-guardian-mobile-menu header div { display: grid; gap: 2px; }
    .dw-guardian-mobile-menu header small { color: #70d5bc; font-size: 9px; text-transform: uppercase; }
    .dw-guardian-mobile-menu header button { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: transparent; color: #fff; font-size: 25px; }
    .dw-guardian-mobile-menu nav { display: grid; gap: 15px; }
    .dw-guardian-mobile-menu nav section { display: grid; gap: 5px; }
    .dw-guardian-mobile-menu h2 { margin: 0 4px 3px; color: #8298a4; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
    .dw-guardian-mobile-menu nav a { display: grid; grid-template-columns: 32px minmax(0,1fr); align-items: center; gap: 9px; padding: 8px; border-radius: 8px; color: #c3d0d7; text-decoration: none; }
    .dw-guardian-mobile-menu nav a > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.065); }
    .dw-guardian-mobile-menu nav a svg { width: 16px; height: 16px; }
    .dw-guardian-mobile-menu nav a strong { font-size: 12px; }
    .dw-guardian-mobile-menu nav a.is-active { background: rgba(55,190,156,.17); color: #fff; }
    .dw-guardian-mobile-menu > form { margin-top: auto; }
    .dw-guardian-mobile-menu > form button { width: 100%; min-height: 42px; border: 1px solid rgba(230,79,89,.35); border-radius: 8px; background: rgba(230,79,89,.1); color: #ffb8bd; font-weight: 800; }
    .dw-guardian-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 52; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 2px; padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid #dce6e3; background: rgba(255,255,255,.97); box-shadow: 0 -14px 36px rgba(16,37,46,.09); backdrop-filter: blur(15px); }
    .dw-guardian-bottom-nav a, .dw-guardian-bottom-nav button { min-width: 0; min-height: 55px; display: grid; place-items: center; align-content: center; gap: 3px; border: 0; border-radius: 9px; background: transparent; color: #647786; font: inherit; font-size: 10px; font-weight: 850; text-decoration: none; }
    .dw-guardian-bottom-nav span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: #edf4f2; color: #168066; }
    .dw-guardian-bottom-nav svg { width: 15px; height: 15px; fill: currentColor; }
    .dw-guardian-bottom-nav .is-active { background: #eaf5f1; color: #11755c; }
    .dw-guardian-welcome { align-items: flex-start; flex-direction: column; padding: 20px; }
    .dw-guardian-welcome-actions { width: 100%; justify-content: flex-start; }
    .dw-guardian-children-grid, .dw-guardian-overview-grid, .dw-guardian-today-grid, .dw-guardian-timetable, .dw-guardian-report-grid, .dw-guardian-split, .dw-guardian-profile-grid, .dw-guardian-request-forms { grid-template-columns: 1fr; }
    .dw-guardian-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dw-guardian-finance-banner { align-items: flex-start; flex-direction: column; }
    .dw-guardian-finance-banner > div:last-child { justify-content: flex-start; }
    .dw-guardian-document-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 560px) {
    .dw-guardian-content { padding-inline: 12px; }
    .dw-guardian-mobile-topbar { padding-inline: 12px; }
    .dw-guardian-mobile-topbar .dw-brand-identity, .dw-guardian-mobile-topbar .dw-brand-wordmark { width: 140px; }
    .dw-guardian-welcome h1, .dw-guardian-page-heading h1, .dw-guardian-child-hero h1 { font-size: 26px; }
    .dw-guardian-welcome-actions, .dw-guardian-welcome-actions .dw-btn, .dw-guardian-finance-banner > div:last-child, .dw-guardian-finance-banner .dw-btn { width: 100%; }
    .dw-guardian-page-heading { align-items: flex-start; flex-direction: column; }
    .dw-guardian-page-heading .dw-btn { width: 100%; }
    .dw-guardian-child-card-main { grid-template-columns: 50px minmax(0,1fr) auto; padding: 13px; }
    .dw-guardian-child-avatar { width: 50px; height: 50px; border-radius: 12px; }
    .dw-guardian-child-signals { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dw-guardian-action-grid { grid-template-columns: 1fr; }
    .dw-guardian-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dw-guardian-child-hero { grid-template-columns: auto minmax(0,1fr); padding: 17px; }
    .dw-guardian-child-hero .dw-btn { grid-column: 1/-1; width: 100%; }
    .dw-guardian-diary-grid, .dw-guardian-document-form, .dw-guardian-request-forms form { grid-template-columns: 1fr; }
    .dw-guardian-request-forms label.wide { grid-column: auto; }
    .dw-guardian-task-list > article { grid-template-columns: 55px minmax(0,1fr); }
    .dw-guardian-task-list article > .dw-badge { grid-column: 2; justify-self: start; }
    .dw-guardian-attendance-list article { grid-template-columns: 1fr auto; }
    .dw-guardian-attendance-list article > span { grid-column: 1/-1; }
    .dw-guardian-notice-list > article { flex-direction: column; }
    .dw-guardian-notice-list footer { justify-content: flex-start; }
    .dw-guardian-request-history article { grid-template-columns: minmax(0,1fr) auto; }
    .dw-guardian-request-history article > .dw-badge { grid-column: 1/-1; justify-self: start; }
    .dw-guardian-security-note { grid-template-columns: 42px minmax(0,1fr); }
    .dw-guardian-security-note .dw-btn { grid-column: 1/-1; width: 100%; }
}

@media print {
    .dw-guardian-sidebar, .dw-guardian-topbar, .dw-guardian-mobile-topbar, .dw-guardian-mobile-child-select, .dw-guardian-bottom-nav, .dw-guardian-mobile-menu, .dw-guardian-mobile-backdrop { display: none !important; }
    .dw-guardian-shell { display: block; }
    .dw-guardian-content { width: 100%; padding: 0; }
}

/* Delloweb International wordmark: one consistent identity across every shell. */
.dw-brand-identity {
    min-width: 0;
    display: inline-grid;
    justify-items: center;
    gap: 4px;
}
.dw-brand-wordmark {
    width: 220px;
    max-width: 100%;
    height: auto;
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
}
.dw-brand-identity small {
    width: 100%;
    display: block;
    margin: 0;
    color: #667789;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: .01em;
    text-align: center;
    white-space: nowrap;
}
.dw-sidebar .dw-brand { width: 100%; justify-content: center; }
.dw-sidebar .dw-brand-identity { width: 100%; }
.dw-sidebar .dw-brand-wordmark { width: 210px; }
.dw-sidebar .dw-brand-identity small {
    max-width: 210px;
    color: #a8b8c6;
    font-size: 11px;
}
.dw-launcher-top .dw-brand-wordmark { width: 230px; }
.dw-launcher-top .dw-brand-identity small { font-size: 12px; }
.dw-auth-copy .dw-brand-wordmark { width: 248px; }
.dw-auth-copy {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    gap: 24px;
}
.dw-auth-copy::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 360px;
    height: 360px;
    top: -190px;
    right: -160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(39, 180, 147, .16), rgba(39, 180, 147, 0) 70%);
    pointer-events: none;
}
.dw-auth-copy::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #27b493 0 32%, rgba(39, 180, 147, 0) 72%);
    pointer-events: none;
}
.dw-auth-brand { display: grid; justify-items: start; }
.dw-auth-copy h1 {
    margin: 15px 0 7px;
    color: #d6e0e8;
    font-size: 22px;
    font-weight: 800;
}
.dw-auth-brand > p {
    max-width: 470px;
    margin: 0;
    font-size: 15px;
    line-height: 1.48;
}
.dw-auth-capabilities { display: grid; border-top: 1px solid rgba(184, 199, 213, .2); }
.dw-auth-capability {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 13px 0;
    border-bottom: 1px solid rgba(184, 199, 213, .16);
}
.dw-auth-capability-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(87, 213, 181, .28);
    border-radius: 9px;
    background: rgba(39, 180, 147, .1);
    color: #57d5b5;
}
.dw-auth-capability-icon svg { width: 18px; height: 18px; }
.dw-auth-capability > span:last-child { display: grid; gap: 4px; min-width: 0; }
.dw-auth-capability strong { color: #f5f8fa; font-size: 13px; line-height: 1.25; }
.dw-auth-capability small { color: #9fb0bf; font-size: 11px; line-height: 1.45; }
.dw-auth-trust { display: flex; flex-wrap: wrap; gap: 9px 16px; }
.dw-auth-trust span {
    position: relative;
    padding-left: 15px;
    color: #b8c7d5;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
}
.dw-auth-trust span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #57d5b5;
    transform: translateY(-50%);
    box-shadow: 0 0 0 3px rgba(87, 213, 181, .1);
}
.dw-install-brand { justify-content: flex-end; }
.dw-install-brand .dw-brand-wordmark { width: 220px; }
.dw-install-brand .dw-brand-identity small { color: rgba(255,255,255,.9); }

@media (max-width: 768px) {
    .dw-mobile-topbar .dw-brand { min-width: 0; }
    .dw-mobile-topbar .dw-brand-wordmark { width: 145px; }
    .dw-mobile-topbar .dw-brand-identity small {
        max-width: none;
        display: block;
        margin: 0;
        color: #667789;
        font-size: 9px;
        text-overflow: clip;
    }
    .dw-auth-copy .dw-brand-wordmark { width: min(230px, 100%); }
    .dw-auth-copy { gap: 20px; }
    .dw-auth-copy h1 { font-size: 21px; }
    .dw-auth-brand > p { font-size: 14px; }
    .dw-auth-capability { padding: 13px 0; }
    .dw-auth-capability small { font-size: 10.5px; }
    .dw-install-brand .dw-brand-wordmark { width: 180px; }
}

@media (max-width: 640px) {
    .dw-launcher-top .dw-brand-wordmark { width: 150px; }
    .dw-launcher-top .dw-brand-identity small {
        display: block;
        font-size: 9px;
    }
}

@media (max-width: 360px) {
    .dw-mobile-topbar .dw-brand-wordmark,
    .dw-launcher-top .dw-brand-wordmark { width: 124px; }
    .dw-mobile-topbar .dw-brand-identity small,
    .dw-launcher-top .dw-brand-identity small { font-size: 8px; }
}
