/* Approved Direktstart: turquoise, navy, orange; original logo shares the header surface. */
.family-portal{--bg:#edf7f5}
.family-portal .main{background:#edf7f5}
.family-portal .sidebar{background:linear-gradient(170deg,#e2f5f0,#f7fbfa);border-right:1px solid #cde2df}
.family-portal .sidebar .brand{padding-bottom:16px}
.family-portal .brand-logo{background:transparent;mix-blend-mode:multiply;object-fit:contain}
.family-portal .topbar.ux-topbar{display:flex;background:linear-gradient(110deg,#e2f5f0 0%,#f6fbfa 66%,#fff1e5 100%);border-bottom:3px solid #14b8a6;border-image:linear-gradient(90deg,#14b8a6 72%,#f97316 72%) 1;box-shadow:none;gap:16px;flex-wrap:wrap;padding:20px 28px;margin-bottom:24px}
.family-portal .sidebar>.brand{display:none}
.family-portal:has(.family-dashboard) .topbar>div{display:none}
.family-portal:has(.family-dashboard) #familyHeaderBrand{margin-right:auto}
#familyHeaderBrand{border:0;background:transparent;padding:0;flex:0 0 auto;min-height:48px}
#familyHeaderBrand[hidden]{display:none}
#familyHeaderBrand img{display:block;width:172px;height:51px;object-fit:contain;background:transparent;mix-blend-mode:multiply}
.family-portal .topbar h1{font-size:1.2rem;letter-spacing:-.02em}
.family-portal .topbar>div{min-width:130px}
.family-portal .nav-item.active{background:#087f78;color:#fff}
.family-portal .content{padding:0 28px 36px}
.family-dashboard{max-width:1120px;margin:auto;color:#0b1730}
.family-child-picker{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 22px}
.family-child-picker>span{font-size:.875rem;color:#526478}
.family-child-picker .student-switcher{margin:0;display:flex;flex-wrap:wrap;gap:8px}
.family-child-picker .student-chip{white-space:normal;overflow-wrap:anywhere}
.family-heading{margin:0 0 20px}
.family-heading .eyebrow{color:#076b65;font-size:.75rem;letter-spacing:.09em}
.family-heading h2{font-size:1.7rem;line-height:1.2;margin:0 0 7px;overflow-wrap:anywhere}
.family-heading p{margin:0;color:#526478;font-size:1rem}
.family-next{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px;border-left:5px solid #f97316;border-radius:17px;background:#0b1730;color:#fff;margin:0 0 24px;box-shadow:0 7px 20px #0b173012}
.family-next>div{min-width:0}
.family-next span{display:block;color:#74e1d2;font-size:.875rem;font-weight:650}
.family-next strong{display:block;font-size:1.8rem;line-height:1.25;margin-top:7px;overflow-wrap:anywhere}
.family-next p{font-size:.875rem;color:#d0dde5;margin:9px 0 0}
.family-next .button{background:#087f78;color:#fff;border:1px solid #45b9ae;flex-shrink:0}
.family-actions h3{font-size:1rem;margin:0 0 12px}
.family-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.family-tile{font:inherit;display:flex;flex-direction:column;align-items:flex-start;gap:10px;position:relative;min-width:0;min-height:152px;padding:18px;text-align:left;border:1px solid #dbe7e9;border-top:3px solid #087f78;border-radius:15px;background:#fff;color:#0b1730;cursor:pointer}
.family-tile.warm{border-top-color:#f97316}
.family-tile:hover{border-color:#087f78;box-shadow:0 5px 15px #087f7810}
.family-tile:focus-visible{outline:3px solid #087f78;outline-offset:3px}
.family-tile-icon{display:grid;place-items:center;width:37px;height:37px;border-radius:11px;background:#ddf3ef;color:#076b65;font-size:1.3rem}
.family-tile.warm .family-tile-icon{background:#fff3e7;color:#ac4500}
.family-tile strong{font-size:1rem;line-height:1.3;overflow-wrap:anywhere}
.family-tile>span:last-child{font-size:.875rem;line-height:1.4;color:#526478}
.family-feedback{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:20px;padding:17px 0;border-top:1px solid #cde2df}
.family-feedback strong{font-size:1rem}
.family-feedback .button{flex-shrink:0}
.family-feedback p{margin:5px 0 0;font-size:.875rem;color:#526478}
.family-secondary{display:flex;gap:10px;flex-wrap:wrap;margin-top:5px}
@media(max-width:1150px){.family-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.family-portal .topbar.ux-topbar{padding:16px 20px}.family-portal .content{padding:0 20px 36px}}
@media(max-width:600px){.family-portal .topbar.ux-topbar{gap:12px;padding:14px 16px;margin-bottom:20px}#familyHeaderBrand{order:-2}#familyHeaderBrand img{width:144px;height:43px}.family-portal .topbar>div{flex-basis:100%;order:2}.family-portal .content{padding:0 16px 30px}.family-next{padding:18px;align-items:flex-start;flex-direction:column;gap:15px}.family-next strong{font-size:1.6rem}.family-tile{padding:14px;min-height:150px;gap:8px}.family-feedback{align-items:flex-start}.family-heading h2{font-size:1.5rem}.family-child-picker .student-switcher{width:100%}.family-secondary .button{flex:1 1 145px}}
@media(max-width:360px){.family-tiles{grid-template-columns:1fr}.family-tile{min-height:120px}}
@media(max-width:600px){.family-portal .topbar.ux-topbar{display:grid;grid-template-columns:36px minmax(0,1fr) 40px 40px;gap:9px}.family-portal #familyHeaderBrand{grid-row:1;grid-column:2;margin:0;justify-self:start}.family-portal #familyHeaderBrand img{width:128px;height:42px}.family-portal .topbar #menuButton{grid-row:1;grid-column:1}.family-portal .topbar #notificationButton{grid-row:1;grid-column:3;width:40px;min-width:40px}.family-portal .topbar #profileButton{grid-row:1;grid-column:4;width:40px;height:40px}.family-portal .topbar .language-toggle{grid-row:2;grid-column:2/-1;justify-self:end}.family-portal .topbar>div{grid-row:3;grid-column:1/-1}.family-portal .topbar #portalSearchButton{grid-row:2;grid-column:1}}
@media(max-width:360px){.family-portal #familyHeaderBrand img{width:112px}}
html[lang="fr"] .operations-hero{flex-wrap:wrap}
html[lang="fr"] .operations-hero .button-row{flex-wrap:wrap;max-width:100%;min-width:0}
html[lang="fr"] .operations-hero .button-row .button{white-space:normal}

