.family-routines { color:#183f39; background:#fffdf5; border:2px solid #a8bca7; border-radius:1.3rem; padding:clamp(.8rem,2vw,1.5rem); margin-block:1.5rem; direction:rtl; text-align:right; font:inherit; line-height:1.65; overflow-wrap:anywhere; }
.family-routines *, .family-routines *::before, .family-routines *::after { box-sizing:border-box; }
.family-routines [hidden] { display:none!important; }
.family-routines summary { font-size:1.2em; font-weight:800; cursor:pointer; min-height:48px; padding:.5rem; }
.family-routines :focus-visible { outline:3px solid #96391f; outline-offset:4px; }
.family-routines label { display:block; font-weight:800; margin-block:.8rem .4rem; }
.family-routines button,.family-routines select,.family-routines textarea { font:inherit; color:inherit; min-height:48px; max-width:100%; border:2px solid #718e83; border-radius:.8rem; padding:.8rem; background:#fffefa; }
.family-routines button { cursor:pointer; line-height:1.5; white-space:normal; text-align:right; }
.family-routines button:disabled { opacity:.65; cursor:default; }
.family-routines textarea { width:100%; resize:vertical; }
.family-routines select { width:100%; }
.routine-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; margin-block:1rem; }
.routine-cards button { display:grid; grid-template-columns:2.2rem minmax(0,1fr); gap:.3rem .7rem; background:#fff6d4; border-color:#b39e65; box-shadow:0 4px 0 #d9d1b9; }
.routine-cards button>span:last-child { grid-column:2; }
.routine-icon { font-size:1.424rem; grid-row:span 2; }
.routine-editor { border-top:2px solid #bacab7; padding-top:.5rem; }
.routine-editor button { display:block; width:100%; margin-top:.8rem; }
.family-routines .routine-handoff { background:#205f52; color:#fff; font-weight:800; }
.routine-note { font-size:.95em; color:#465a50; }
.routine-destination,.routine-status { font-weight:700; }
.routine-status { min-height:1.65em; }
@media(max-width:600px){.routine-cards { grid-template-columns:1fr; }}
@media(prefers-reduced-motion:reduce){.family-routines * { transition:none!important; animation:none!important; scroll-behavior:auto!important; }}
