/* Version 20261101_003717 */
#appPageHost #calendarModal .reminder-tabs { display:grid; overflow:visible; grid-template-columns:repeat(4,minmax(0,1fr)); }
#appPageHost #calendarModal .reminder-tabs button { min-width:0; white-space:normal; padding:9px 6px; }
.routine-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin:20px 0 12px; }
.routine-toolbar h3 { margin:0; font-size:1rem; }
.routine-row { display:flex; align-items:center; gap:10px; padding:12px 0; border-bottom:1px solid var(--border-color); }
.routine-row-text { flex:1; min-width:0; overflow-wrap:anywhere; }
.routine-row-text strong { font-size:.92rem; }
.routine-row-text small { display:block; color:var(--text-muted); font-size:.8rem; line-height:1.5; }
.routine-row button { padding:6px; background:none; border:0; color:var(--text-muted); cursor:pointer; }
.routine-switch { display:inline-flex; align-items:center; gap:10px; cursor:pointer; font-size:.85rem; }
#calendarModal .routine-switch input { appearance:none; -webkit-appearance:none; width:36px!important; height:21px; padding:0; margin:0; border-radius:14px; background:var(--border-color); border:1px solid var(--text-muted); position:relative; flex-shrink:0; cursor:pointer; }
#calendarModal .routine-switch input::after { content:''; position:absolute; width:15px; height:15px; left:2px; top:2px; border-radius:50%; background:var(--text-muted); }
#calendarModal .routine-switch input:checked { background:var(--primary-color); border-color:var(--primary-color); }
#calendarModal .routine-switch input:checked::after { transform:translateX(15px); background:white; }
.routine-days,.routine-devices { border:0; padding:0; margin:20px 0; min-width:0; }
.routine-days legend,.routine-devices legend { font-size:.9rem; font-weight:600; margin-bottom:10px; }
#routineDays { display:flex; flex-wrap:wrap; gap:12px; }
#routineDays label,#routineDevices label { display:flex; align-items:center; gap:7px; font-size:.85rem; }
#routineDevices label { margin:8px 0; overflow-wrap:anywhere; }
.routine-presets { display:flex; flex-wrap:wrap; gap:12px; margin-top:12px; }
.routine-presets button,.routine-text-button { padding:0; border:0; background:none; color:var(--text-muted); font:inherit; font-size:.8rem; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
#routineForm { margin-top:26px; }
#routineForm h3 { font-size:1rem; }
@media(max-width:600px){ #appPageHost #calendarModal .reminder-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); } .routine-row { flex-wrap:wrap; } .routine-row-text { flex-basis:calc(100% - 55px); } }

.routine-row button:first-of-type { margin-left:auto; }
