.routine { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.routine + .routine { margin-top: 20px; }
.routine-heading { padding: 20px 22px; }
.routine-heading h2 { margin: 0 0 6px; }
.routine-heading p { margin: 0; font-size: 14px; }
.video { aspect-ratio: 16 / 9; background: var(--field); }
.video iframe { display: block; width: 100%; height: 100%; border: 0; }
.details { padding: 22px; }
.video-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--sage); text-decoration: none; font-size: 14px; font-weight: 550; }
.video-link:active { filter: brightness(.85); }
.app-shell button { min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); background: var(--surface); color: inherit; font-size: 14px; cursor: pointer; }
.view-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 24px; background: var(--field); border-radius: 14px; }
.view-tabs button { flex: 1; border: 0; background: transparent; color: var(--muted); }
.view-tabs button[aria-pressed="true"] { background: var(--control); color: #f0f2ee; }
.section-label { margin: 0 0 12px; font-size: 14px; }
.status:empty { display: none; }
.app-shell .status { color: var(--danger); font-size: 14px; }
.completion { display: flex; align-items: center; gap: 12px; min-height: 60px; margin-bottom: 12px; cursor: pointer; }
.completion input { flex-shrink: 0; width: 24px; height: 24px; margin: 0; cursor: pointer; }
.completion span { font-size: 16px; font-weight: 550; }
.completion small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.4; }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.calendar-heading h2 { text-align: center; margin: 0; }
.month-arrow { flex-shrink: 0; }
.calendar-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.calendar-meta p { margin: 0; font-size: 12px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 16px 0 24px; }
.weekday { padding: 8px 0; font-size: 12px; text-align: center; }
.app-shell .calendar-day { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; min-height: 82px; padding: 9px 2px; border-radius: 10px; }
.calendar-day strong { font-size: 14px; font-weight: 500; }
.app-shell .calendar-day.today { border-color: var(--sage); }
.app-shell .calendar-day[aria-pressed="true"] { background: #354330; }
.completed-day { display: block; width: 100%; border-radius: 4px; padding: 3px 1px; background: var(--sage); color: #182016; font-size: 9px; line-height: 1.3; overflow-wrap: anywhere; }
.day-detail { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.day-detail h2 { margin: 0 0 12px; }
.day-detail p { margin: 0; font-size: 14px; }
.completed-routines { margin: 0; padding: 0; list-style: none; }
.completed-routines li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 15px; }
.completion-mark { color: var(--sage); }
.completed-routines time { margin-left: auto; flex-shrink: 0; color: var(--muted); font-size: 13px; }
