.ritual-settings { margin: 12px 0; padding: 18px; border: 1px solid #cbd9ce; border-radius: 12px; background: #f4f7f2; color: #254b3e; box-shadow: inset 0 1px 0 #fff, 0 3px 0 #dce5dd, 0 8px 22px #173c3109; }
.ritual-settings *, .ritual-dialog * { box-sizing: border-box; letter-spacing: 0; }
.ritual-settings-top { display: grid; grid-template-columns: 38px minmax(0, 1fr) 46px; gap: 10px; align-items: center; }
.ritual-settings .ritual-bell { width: 38px; height: 42px; display: grid; place-items: center; background: #e1ece4; border: 1px solid #c7d9cd; border-radius: 10px; box-shadow: inset 0 1px 0 white; }
.ritual-settings svg { width: 20px; height: 20px; flex-shrink: 0; }
.rushnik-v2 .view .ritual-settings h3 { margin: 0 !important; font-family: inherit; font-weight: 600; font-size: 17px !important; line-height: 1.3 !important; }
.rushnik-v2 .view .ritual-settings p { font-size: 12px !important; font-weight: 400 !important; line-height: 1.45 !important; }
.ritual-settings-top p { margin: 3px 0 0; font-size: 12px; line-height: 1.4; color: #617268; }
.ritual-settings .ritual-switch { position: relative; display: block; width: 46px; height: 44px; margin: 0; padding: 0; }
.ritual-switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.ritual-switch span { position: absolute; top: 9px; width: 46px; height: 26px; background: #b6c4ba; border-radius: 20px; transition: background .15s; }
.ritual-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: white; border-radius: 50%; box-shadow: 0 2px 3px #263e3526; transition: transform .15s; }
.ritual-switch input:checked + span { background: #24614b; }
.ritual-switch input:checked + span::after { transform: translateX(20px); }
.ritual-switch input:focus-visible + span { outline: 3px solid #a56d4e; outline-offset: 4px; }
.ritual-switch input:disabled + span { opacity: .5; }
.ritual-options { margin-top: 18px; border-top: 1px solid #d4dfd6; padding-top: 16px; }
.ritual-fields { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 12px; }
.ritual-settings .ritual-fields label { display: grid; gap: 6px; margin: 0; font-size: 12px; color: #4a6053; }
.ritual-settings :is(input[type="time"], select) { width: 100%; min-width: 0; min-height: 46px; padding: 10px; border: 1px solid #c6d5ca; border-radius: 8px; background: white; color: #284b3c; font-family: inherit; font-weight: 500; font-size: 16px; line-height: 1.3; box-shadow: 0 2px 0 #e0e7df; }
.ritual-settings .ritual-caption { margin: 9px 0 0; font-size: 12px; line-height: 1.45; color: #647569; overflow-wrap: anywhere; }
.ritual-settings-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; }
.ritual-settings-bottom p { margin: 0; flex: 1 1 100px; font-size: 12px; line-height: 1.45; color: #627466; }
.ritual-settings-bottom button { display: flex; align-items: center; gap: 6px; padding: 8px 0; min-height: 40px; border: 0; background: transparent; color: #2e624d; font: inherit; font-size: 12px; cursor: pointer; }
.ritual-settings-bottom svg { width: 16px; height: 16px; }
.ritual-settings.has-error #ritualReminderStatus { color: #904b3b; }
.ritual-dialog { width: min(390px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #bacfc0; border-radius: 20px; overflow: auto; background: #f6f8f3; color: #264939; box-shadow: 0 5px 0 #1d3e3526, 0 24px 70px #163a3433; font-family: "Golos Text", Golos, sans-serif; }
.ritual-dialog::backdrop { background: #17342b80; backdrop-filter: blur(4px); }
.ritual-reminder-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: #205448; color: white; }
.ritual-reminder-head > span { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; }
.ritual-reminder-head svg { width: 20px; height: 20px; }
.ritual-reminder-head button { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid #ffffff38; border-radius: 10px; background: #ffffff12; color: white; cursor: pointer; }
.ritual-reminder-body { padding: 25px 24px 16px; }
.ritual-reminder-tag { display: inline-block; margin: 0 0 10px; color: #758276; font-size: 11px; }
.ritual-dialog h2 { margin: 0 0 12px; font-size: 27px; font-weight: 600; line-height: 1.15; text-wrap: balance; color: #244a38; }
.ritual-dialog p { margin: 0; font-size: 15px; line-height: 1.6; color: #526558; text-wrap: pretty; }
.ritual-reminder-meta { display: flex; align-items: center; gap: 8px; margin: 22px 0; font-size: 12px; color: #657263; }
.ritual-reminder-meta svg { width: 17px; height: 17px; color: #975f42; }
.ritual-reminder-meta span + span { margin-left: auto; }
.ritual-dialog #ritualReminderStart { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; min-height: 52px; padding: 12px 10px; border: 1px solid #376b54; border-radius: 10px; background: #255e48; color: white; font: inherit; font-size: 14px; font-weight: 600; box-shadow: inset 0 1px 0 #ffffff24, 0 3px 0 #163f30, 0 6px 16px #255e4815; cursor: pointer; }
.ritual-dialog #ritualReminderStart svg { width: 18px; height: 18px; flex-shrink: 0; }
.ritual-dialog #ritualReminderLater { display: block; width: 100%; min-height: 44px; margin-top: 10px; padding: 10px; border: 0; background: transparent; color: #5a7161; font: inherit; font-size: 14px; cursor: pointer; }
.ritual-dialog button:focus-visible, .ritual-settings button:focus-visible { outline: 3px solid #aa7554; outline-offset: 3px; }
.ritual-settings [hidden], .ritual-dialog [hidden] { display: none !important; }
@media (max-width: 360px) { .ritual-settings { padding: 14px; } .ritual-settings-top { grid-template-columns: minmax(0, 1fr) 46px; } .ritual-settings .ritual-bell { display: none; } .ritual-reminder-body { padding: 22px 20px 14px; } .ritual-dialog h2 { font-size: 25px; } }
@media (prefers-reduced-motion: reduce) { .ritual-switch span, .ritual-switch span::after { transition: none; } }
