#service-panel {display:grid;gap:16px;width:100%;grid-template-columns:minmax(0,1fr)}
.service-icon {flex:none; display:grid; place-items:center; width:44px; height:44px; padding:0; color:#286c5b; border:1px solid var(--line); background:white; border-radius:50%}
.workspace:has(#service-panel[data-page=home]) .workspace-header {margin-bottom:18px}
.educator-tools [aria-current=page] {background:#e7f1ec}
.workspace:has(#settings-panel:not([hidden])) {min-height:calc(100svh - 56px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
#settings-panel {display:flex;flex:1;flex-direction:column;gap:24px;margin-bottom:0}
.settings-logout {align-self:flex-end;margin-top:auto;min-height:48px;padding:10px 20px;border:1.5px solid #a25347;border-radius:var(--control-radius);background:white;color:#873f33;font-size:16px;font-weight:600}
.settings-logout:hover {background:#fbefec}
.setting-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px;padding:6px 18px;background:white;border:1px solid var(--line);border-radius:16px;font-weight:600}
#push-toggle{display:grid;place-items:center;min-width:48px;min-height:44px;border:0;background:none;padding:0}
#push-toggle span{width:46px;height:28px;padding:3px;box-sizing:border-box;border-radius:20px;background:#75837c;transition:background .15s}
#push-toggle span::before{content:'';display:block;width:22px;height:22px;border-radius:50%;background:white;box-shadow:0 1px 3px #0003;transition:transform .15s}
#push-toggle[aria-checked=true] span{background:#277b68}
#push-toggle[aria-checked=true] span::before{transform:translateX(18px)}
@media(prefers-reduced-motion:reduce){#push-toggle span,#push-toggle span::before{transition:none}}
.workspace-header:has(.educator-tools) {flex-wrap:nowrap}
.educator-brand {display:grid;min-width:0;gap:2px}
.educator-brand strong,.educator-brand small {display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.1}
.educator-brand small {font-size:14px;font-weight:500;letter-spacing:0;color:var(--muted)}
@media(max-width:600px){
 .workspace-header:has(.educator-tools){gap:6px}
 .workspace-header:has(.educator-tools) .workspace-brand{gap:5px;font-size:clamp(15px,4vw,20px);letter-spacing:-.35px;flex:1}
 .workspace-header:has(.educator-tools) .workspace-brand img{width:28px;height:28px;flex:none}
 .educator-brand small{font-size:12px}
 .workspace-header .educator-tools{flex:none;gap:2px}
 .educator-tools .service-icon{width:clamp(32px,9vw,44px);height:clamp(32px,9vw,44px)}
}
@media(max-width:370px){
 body[data-view=account] .auth-panel:has(.educator-tools [data-tab=children]){padding-inline:max(6px,env(safe-area-inset-left)) max(6px,env(safe-area-inset-right))}
 .workspace-header:has(.educator-tools){gap:4px}
 .workspace-header .educator-tools{gap:1px}
 .workspace-header:has(.educator-tools) .workspace-brand img{width:22px;height:22px}
 .educator-brand small{font-size:11px}
}
.service-card {background:white; border:1px solid var(--line); border-radius:16px; padding:8px 20px 12px; min-width:0}
.service-heading,.service-dialog header {display:flex; align-items:center; justify-content:space-between; gap:12px}
.service-heading h2 {margin:0; font-size:18px; font-weight:600; letter-spacing:-.4px}
.service-heading small {margin-left:4px; color:var(--muted); font-size:13px; font-weight:500}
.service-heading button,.service-dialog header button {min-height:44px; font-size:14px}
.service-address p,.service-empty {font-size:14px; color:var(--muted); line-height:1.55; margin:2px 0 4px; white-space:pre-line; overflow-wrap:anywhere}
.service-address p:first-child {color:#233d39; font-weight:550}
.service-list {margin:0; padding:0; list-style:none}
.service-list li+li {border-top:1px solid var(--line)}
.service-list button {display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; text-align:left; padding:8px 0; min-height:46px; border:0; background:none; color:#233d39; font-size:15px; overflow-wrap:anywhere}
.service-list button span:last-child {font-size:22px; color:#687e74}
.service-status,.service-age {color:#306c5c; font-size:13px}
.service-status:empty,.service-age:empty,.service-error:empty {display:none}
.workspace .service-dialog {padding:0; width:min(500px,calc(100% - 24px)); max-height:90vh; max-height:90dvh; overflow:hidden}
.service-dialog form {display:flex; flex-direction:column; max-height:inherit; margin:0}
.service-dialog header {padding:10px 22px; border-bottom:1px solid var(--line)}
.service-dialog h2 {font-size:21px; margin:0}
.service-fields {overflow:auto; overscroll-behavior:contain; padding:20px 22px; display:grid; gap:16px; min-height:0}
.service-fields fieldset {min-width:0; margin:4px 0 0; padding:14px 0 0; border:0; border-top:1px solid var(--line); display:grid; gap:14px}
.service-fields legend {font-size:16px; font-weight:600; padding:0 10px 0 0}
.service-fields label {font-size:13px; margin:0 0 6px}
.service-field {min-width:0}
.service-field input,.service-field textarea,.service-field select {box-sizing:border-box; min-width:0; width:100%; border:1px solid var(--line); border-radius:12px; color:#233d39; background:#fff; font:inherit; font-size:16px; padding:12px; min-height:46px}
.service-field input[type=date] {appearance:none; text-align:left}
.service-field textarea {resize:vertical}
.service-age {margin-top:-10px}
.service-days {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 8px}
.service-days label {display:flex; align-items:center; gap:8px; min-height:44px; margin:0; font-size:14px; font-weight:400}
.service-days input {width:18px; height:18px; accent-color:#277b68; margin:0}
.service-owner {display:grid; grid-template-columns:auto minmax(0,1fr); gap:6px 12px; margin:0 0 4px; font-size:14px}
.service-owner dt {color:var(--muted)}
.service-owner dd {margin:0; overflow-wrap:anywhere}
.workspace-heading a.small-button,.sd-actions a.small-button {display:inline-flex;align-items:center;text-decoration:none}
.child-edit .service-fields{padding:0 0 18px;overflow:visible}
.child-edit .service-form-section h2{scroll-margin-top:12px}
.child-edit .service-actions{padding:12px 0 0}
.service-actions {padding:12px 22px; border-top:1px solid var(--line)}
.service-error {margin:0 0 8px; color:#90452e; font-size:13px}
@media(max-width:420px) {
  .workspace-nav:has([data-tab=service]) {gap:16px}
  .workspace-nav:has([data-tab=service]) button {font-size:13px}
  .service-card {padding-inline:16px}
}

.service-home {display:grid;grid-template-columns:minmax(0,1fr);gap:18px;color:#203c37}
.agenda-controls,.agenda-tasks {border:1px solid #d9e4dd;border-radius:22px}
.agenda-controls {background:#edf4ef;padding:18px clamp(12px,4vw,32px);display:grid;justify-items:center;gap:14px}
.agenda-date {width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:6px}
.agenda-date button {border:none;color:#245e4f;background:transparent;font:inherit}
.agenda-date button {font-size:14px;line-height:1.25;border-radius:8px;min-height:44px}
.agenda-date button:hover {background:#dae8de}
.agenda-pill {position:relative;justify-self:center;margin:0!important;max-width:100%;padding:10px 16px;border-radius:26px;background:white;color:#244a3e;text-align:center;font-size:clamp(14px,2.4vw,18px);line-height:1.25;font-weight:600}
.agenda-pill span::first-letter,.agenda-group::first-letter {text-transform:uppercase}
.agenda-pill span {display:block;padding-inline-end:28px;min-width:9ch}
.agenda-pill portail-date {position:absolute;inset:0}
.agenda-pill portail-date > input {height:100%;margin:0;padding:0 38px 0 8px;border:none;border-radius:inherit;background:transparent;color:transparent;text-align:center;font:inherit;cursor:text}
.agenda-pill:has(portail-date > input:focus) span {visibility:hidden}
.agenda-pill portail-date > input:focus {color:inherit;outline:none}
.agenda-pill:focus-within {outline:3px solid #79b9a4;outline-offset:2px}
.agenda-tasks {--list-inset:clamp(15px,3vw,26px);background:white;padding:4px var(--list-inset);overflow:clip}
.agenda-tasks .service-list button {padding:11px 0;min-height:56px}
.agenda-tasks .agenda-group {padding:16px 0 4px;font-size:13px;font-weight:650;color:#526a61}
.agenda-tasks .agenda-group+li {border-top:0}
.agenda-tasks .service-empty {margin:14px 0}
.agenda-opening {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 15px;border:1px solid var(--line);border-radius:16px;background:white}
.agenda-opening h2 {margin:0;color:var(--ink);font-size:17px}
.agenda-opening .sd-picks {flex:none}
.agenda-opening button {min-width:44px;min-height:44px}
[data-roll-container][inert] [data-presences] {background:#f0f2f0;color:#66706c;filter:grayscale(1)}
[data-roll-container][inert] [data-presences] button {opacity:.6}
.agenda-form-icon {flex:none;color:#286c5b}
.agenda-form-icon+span {flex:1;min-width:0}
.agenda-tasks .service-list a {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:11px 0;text-decoration:none;color:#233d39;font-size:15px;overflow-wrap:anywhere}
.agenda-tasks .service-list a:hover,.avis-recent button:hover .avis-subject {text-decoration:underline}
.agenda-tasks .service-list a span[aria-hidden] {color:#536d60}
.agenda-tasks [role=status]:empty,.agreement-dialog [role=status]:empty {display:none}
.workspace .agreement-dialog,.parent-sign {color:#233d39;text-align:left}
.workspace .agreement-dialog {width:min(490px,calc(100% - 24px));max-height:88dvh;overflow:auto;padding:24px}
.agreement-dialog header {display:flex;align-items:baseline;gap:12px;justify-content:space-between}
.agreement-dialog header h2,.parent-sign h2 {font-size:20px;line-height:1.3;margin:0}
.agreement-dialog a,.parent-sign a {display:inline-flex;align-items:center;text-decoration:none;margin:4px 8px 4px 0}
.agreement-options {display:grid;gap:10px;margin-top:18px}.agreement-options details {border:1px solid var(--line);padding:12px 14px;border-radius:14px}
.agreement-options summary {cursor:pointer;font-weight:600;padding:4px 0}
.agreement-options form {margin-top:14px}.agreement-options input[type=email] {width:100%}
.agreement-check {display:flex;align-items:flex-start;gap:10px;margin:16px 0;line-height:1.5;font-size:15px}
.agreement-check input {flex:none;width:20px;height:20px;margin:0;accent-color:#277b68}
.parent-sign {max-width:540px;margin:0 auto;padding:24px 20px 40px}
.parent-sign header {margin-bottom:38px}.parent-sign h1 {margin-bottom:20px}
.parent-sign p {line-height:1.6}.parent-sign canvas {display:block;width:100%;height:auto;background:white;border:1px solid #9aafa3;border-radius:12px;margin:10px 0 18px;touch-action:none}
.service-form-section {grid-column:1/-1;border-top:1px solid var(--line);padding-top:14px;margin-top:6px}
.service-form-section h2 {font-size:16px;margin:0 0 10px}

#children-panel:has(> .child-record) {padding:0;border:0;background:transparent}
.child-record {display:grid;gap:16px;min-width:0}
.child-card {background:white;border:1px solid var(--line);border-radius:16px;padding:clamp(16px,2.5vw,24px);min-width:0}
.child-card>header,.child-mark,.child-form-actions {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.child-card>header {margin-bottom:16px}
.child-card h2 {margin:0;font-size:19px;line-height:1.25}
.child-card p {font-size:14px;overflow-wrap:anywhere}
.child-identity {display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:24px}
.child-record .profile-fields input,.child-record .profile-fields textarea {width:100%;min-width:0}
.child-record .profile-fields textarea {resize:vertical;min-height:64px}
.child-identity .profile-fields {grid-template-columns:repeat(3,minmax(0,1fr))}
.child-identity [data-age] {margin:8px 0 0;color:var(--muted)}
.child-period,#child-retired {display:grid;gap:12px;border-top:1px solid var(--line);margin:14px 0;padding-top:14px}
.child-record [hidden] {display:none!important}
.child-period fieldset {margin:0;border:0;padding:0}
.child-form-actions {justify-content:flex-end}
.child-form-actions .primary,.child-record .small-button {width:auto;margin:0;min-height:44px}
.child-form-actions .primary {padding:8px 16px}
.child-feedback {font-size:14px;margin:0;color:var(--muted)}
.child-feedback:empty {display:none}
.child-feedback[role=alert] {color:#943a38}
.child-departure {justify-self:end;text-align:right;padding-top:12px}
.child-danger {border:1px solid #a84e4a;color:#922f2e;background:white;font:inherit;font-weight:600;min-height:44px;padding:8px 16px;border-radius:10px;cursor:pointer}
.child-danger:hover,.child-danger:focus-visible {background:#fff1ef}
@media(max-width:720px){
 .child-identity .profile-fields {grid-template-columns:minmax(0,1fr)}
 .child-identity {gap:14px}
 .child-identity .profile-image-target {width:64px;height:64px}
}
