:root {
  --page:#faf7f5; --surface:#fffdf8; --ink:#30212a; --muted:#6e5661;
  --deep:#4e162b; --glow:#833952; --primary:#651f3c;
  --wash:#f1e4e7; --edge:#e8d7dc; --accent:#e8a7a1; --focus:#a74e6f;
  --wish:#fdf5ee; --light:#fff5ef; --shade:#4e162b17;
}
:root[data-theme="pine"] {
  --page:#f6f7f4; --surface:#fffef8; --ink:#1f352a; --muted:#506559;
  --deep:#163327; --glow:#2e5947; --primary:#245442;
  --wash:#e4ebe0; --edge:#d0ddcf; --accent:#c7d3b8; --focus:#527b60;
  --wish:#f9f6ee; --light:#f8faed; --shade:#16332719;
}
:root[data-theme="chocolate"] {
  --page:#faf6f2; --surface:#fffdf7; --ink:#36261f; --muted:#70594c;
  --deep:#2b1810; --glow:#5e3826; --primary:#69432d;
  --wash:#f0e3d9; --edge:#e6d4c7; --accent:#dfbc9a; --focus:#986c4d;
  --wish:#fdf6ee; --light:#fff6e9; --shade:#2b181017;
}
*{box-sizing:border-box}
html{background:var(--page);color:var(--ink);font:15px/1.48 system-ui,sans-serif}
body{margin:0}
main{max-width:620px;margin:auto;padding:0 14px 9rem}
[hidden]{display:none!important}
h1,h2,h3,p{margin:0}
h1,h2{font-family:Georgia,serif;font-weight:500;line-height:1.12}
h1{font-size:clamp(33px,8vw,46px)}
h2{font-size:clamp(25px,6vw,32px);margin:22px 0 12px}
h3{font-size:13px;font-weight:650;margin:17px 0 8px}
button,.primary,input,textarea,select{font:inherit}
button,.primary{cursor:pointer;color:var(--deep);background:var(--wash);border:0;border-radius:13px;padding:9px 13px;font-weight:600}
button,.primary,a,input,textarea,select{-webkit-tap-highlight-color:transparent}
.primary,.send{background:linear-gradient(120deg,var(--deep),var(--primary));color:var(--light);text-decoration:none}
.primary{display:inline-block}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,.palette:focus-within{outline:2px solid var(--focus);outline-offset:3px}
button:disabled{opacity:.5;cursor:default}
.topbar{position:sticky;z-index:4;top:0;display:flex;align-items:center;gap:7px;min-height:66px;padding:8px 0;background:var(--page)}
.brand{display:flex;align-items:center;gap:9px;flex:1;min-width:0;color:var(--deep)}
.brand strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:25px;letter-spacing:-.06em;unicode-bidi:isolate}
.mark{display:grid;place-items:center;flex:none;width:39px;height:39px;overflow:hidden;border-radius:12px;background:linear-gradient(140deg,var(--deep),var(--glow));box-shadow:0 2px 5px var(--shade)}
.mark svg{width:100%;height:100%;fill:none;stroke:var(--accent);stroke-width:4.8;stroke-linecap:round}
.mark .spark{fill:var(--light);stroke:none}
#app-nav{display:flex;gap:6px}
.icon-button{display:grid;place-items:center;flex:none;width:37px;height:40px;padding:0;border-radius:12px}
.line-icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round;flex:none}
.with-icon{display:flex;align-items:center;gap:8px}
.with-icon>span{min-width:0}
.refresh-status{position:absolute;z-index:1;right:0;top:100%;max-width:100%;pointer-events:none}
.refresh-status>span{display:flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid var(--edge);border-radius:12px;background:var(--surface);color:var(--deep);box-shadow:0 4px 14px var(--shade);font-size:13px;font-weight:650}
#reload-view[data-state="loading"]{opacity:1}
#reload-view[data-state="done"]{background:var(--deep);color:var(--light)}
@media (prefers-reduced-motion:no-preference){
  #reload-view[data-state="loading"] svg{animation:refresh-spin .9s linear infinite}
  @keyframes refresh-spin{to{transform:rotate(360deg)}}
}
.hero{position:relative;isolation:isolate;overflow:hidden;border-radius:24px;padding:20px 17px;background:linear-gradient(145deg,var(--deep) 20%,var(--glow));color:var(--light);box-shadow:0 5px 18px var(--shade)}
.hero-wave{z-index:-1;position:absolute;top:1px;right:-20px;width:172px;opacity:.22;fill:none;stroke:var(--accent);stroke-width:9;stroke-linecap:round;pointer-events:none}
.hero h1{margin:5px 0 13px}
#date{font-size:12px;letter-spacing:.025em}
.daily-wish{position:relative;margin:0 0 12px;padding:12px 14px;color:var(--ink);background:var(--wish);border:1px solid var(--edge);border-radius:16px}
.daily-wish small{display:block;margin:0 22px 5px 0;color:var(--muted);font-size:11px;letter-spacing:.04em}
.daily-wish strong{display:block;font:600 clamp(20px,5vw,25px)/1.16 Georgia,serif}
.daily-wish p{margin-top:5px;font-size:13px;line-height:1.43}
.daily-wish::after{content:"✦";position:absolute;right:13px;top:9px;color:var(--glow);font-size:17px}
.task{display:flex;align-items:center;gap:8px;margin:6px 0}
.task time{flex:none;min-width:40px;font-size:13px;font-variant-numeric:tabular-nums}
.hero .task button{width:100%;min-height:38px;padding:6px 10px;text-align:left;color:var(--light);background:#fff2;border-radius:12px;overflow-wrap:anywhere;font-size:13px;font-weight:540}
.task-timer{display:flex;align-items:center;gap:8px;background:#fff2;border-radius:12px;padding:8px 10px;width:100%;font-size:13px;overflow-wrap:anywhere}
.hero .task .line-icon{width:17px;height:17px;color:var(--accent)}
.hero .cycle-link button{display:flex;align-items:center;gap:8px;border:1px solid var(--accent);background:#fff3;margin-bottom:3px}
.cycle-link button::after{content:"›";margin-left:auto;font-size:18px;line-height:1}
.hero .task .home-habit{display:flex;align-items:center;gap:9px}
.home-habit[aria-pressed="true"]{background:#ffffff18;color:var(--accent)}
.habit-check{flex:none;width:20px;height:20px;border:1px solid currentColor;border-radius:50%;display:grid;place-items:center;font-size:13px;line-height:1}
.habit-check:not(:empty){color:var(--deep);background:var(--accent);border-color:transparent}
#menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#menu button,.quick-grid button,.card,.section-link,.habit-item{background:var(--surface);border:1px solid var(--edge);border-radius:15px;box-shadow:0 3px 8px var(--shade)}
#menu button,.quick-grid button{display:flex;align-items:center;gap:7px;min-height:53px;padding:8px;text-align:left;font-weight:550;font-size:13px;line-height:1.23;overflow-wrap:anywhere}
.tile-glyph{display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:8px;background:var(--wash);color:var(--deep)}
.tile-glyph .line-icon{width:16px;height:16px}
.card{padding:15px;margin:11px 0;text-align:left;overflow-wrap:anywhere}
.card p{white-space:pre-wrap}
.card img{max-width:100%;max-height:48vh;border-radius:10px}
.card a{color:var(--primary)}
.actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.actions button{flex:1 1 auto;min-height:39px}
.actions button:active,#menu button:active{filter:brightness(.95)}
.app-section{padding:0 0 6px;overflow-wrap:anywhere}
.app-section h2,.cycle-card h2{margin:10px 0 14px}
.section-note{background:var(--wash);padding:10px 12px;border-radius:13px;margin:9px 0;color:var(--muted);font-size:13px}
.quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.quick-grid button{flex-direction:column;justify-content:center;min-height:72px;text-align:center}
.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin:9px 0}
.collection-grid button{flex-direction:row;justify-content:flex-start;min-height:47px}
.task-panel h3{text-transform:uppercase;letter-spacing:.065em;color:var(--muted);font-size:12px}
.task-panel-today{padding:12px;margin:0}
.task-panel-today h3,.task-tag-form h3{margin:0 0 8px}
.task-panel-list{list-style:none;padding:0;margin:0}
.task-panel-list li{display:flex;align-items:center;gap:8px;min-height:46px}
.task-panel-list li + li{border-top:1px solid var(--edge)}
.task-panel-list input{appearance:none;display:grid;place-items:center;width:23px;height:23px;flex:none;margin:0;padding:0;border:1px solid var(--focus);border-radius:50%;cursor:pointer}
.task-panel-list input:checked{background:var(--wash)}
.task-panel-list input:checked::after{content:"";width:9px;height:5px;border:solid var(--deep);border-width:0 0 1.5px 1.5px;transform:rotate(-45deg) translateY(-1px)}
.task-panel-record{flex:1;display:grid;gap:1px;min-width:0;padding:6px 0;background:none;text-align:left;overflow-wrap:anywhere}
.task-panel-record:has(>.line-icon){grid-template-columns:17px minmax(0,1fr);column-gap:6px}
.task-panel-record>.line-icon{grid-row:1 / span 2;color:var(--glow)}
.task-panel-record:has(>.line-icon)>span,.task-panel-record:has(>.line-icon)>small{grid-column:2}
.task-panel-record small{font-weight:400;color:var(--muted)}
.task-panel-list input:checked + .task-panel-record{color:var(--muted);font-weight:450}
.task-panel-list input:checked + .task-panel-record>span{text-decoration:line-through}
.task-panel-tag-control,.task-custom-tags button{padding:6px;min-width:36px;min-height:36px;justify-content:center;background:var(--wash)}
.task-panel-empty{font-size:13px;color:var(--muted)}
.task-panel-statuses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.task-panel-statuses button,.task-panel-tags button{background:var(--surface);border:1px solid var(--edge);box-shadow:0 2px 6px var(--shade);font-size:13px;text-align:left}
.task-panel-statuses button{min-width:0;min-height:44px;padding:6px 8px;gap:6px}
.task-panel-statuses button>span:first-of-type{overflow-wrap:anywhere}
.task-panel .line-icon{width:17px;height:17px}
.task-panel-statuses .task-count{margin-left:auto;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--muted)}
.task-panel-statuses .task-missed-filter{background:var(--wash);border-color:var(--edge);color:var(--primary)}
.task-panel-list.task-missed-list{display:grid;gap:8px}
.task-missed-list li,.task-missed-list li+li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 8px;padding:8px 9px;border:1px solid var(--edge);border-radius:14px;background:var(--surface)}
.task-missed-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.task-missed-actions button{min-height:38px;padding:5px 3px;background:var(--wash);font-size:12px;line-height:1.2}
.task-missed-actions button:active{background:var(--edge)}
.task-panel-tags{display:flex;flex-wrap:wrap;gap:7px}
.task-panel-tags button{min-height:40px;overflow-wrap:anywhere}
.task-tag-settings,.task-tag-form,.task-custom-tags{display:grid;gap:8px}
.task-tag-settings label,.task-custom-tags>div,.task-icon-picker{display:flex;align-items:center;gap:8px;min-width:0}
.task-tag-settings label{min-height:36px}
.task-tag-settings label>span,.task-custom-tags>div>span{flex:1;min-width:0;overflow-wrap:anywhere}
.task-tag-settings input{height:20px;width:20px;accent-color:var(--primary)}
.task-custom-tags>div{min-height:44px;padding:6px 8px;border:1px solid var(--edge);border-radius:12px}
.task-tag-form label{display:grid;gap:4px;font-weight:600}
.task-tag-form input,.task-tag-form select{width:100%}
.task-panel-feedback{color:var(--primary);font-size:13px}
.task-panel-feedback:empty{display:none}
#tasks-dock{margin-bottom:7px}
#tasks-dock button{width:100%;min-height:42px}
.section-summary{white-space:pre-line}
.section-list{display:grid;gap:7px;margin:8px 0}
.section-link{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:43px;text-align:left;white-space:pre-line;overflow-wrap:anywhere;font-size:14px}
.section-link>.line-icon{color:var(--glow);width:17px;height:17px}
.section-link.with-icon,.section-link.birthday{justify-content:flex-start}
.section-accent{background:linear-gradient(125deg,var(--deep),var(--glow));color:var(--light);border-color:transparent}
.section-accent>.line-icon{color:var(--accent)}
.cycle-calendar-link{min-height:46px;margin-bottom:12px;background:var(--wash)}
.chevron{flex:none;margin-left:auto;font-size:17px;line-height:1}
.birthday{justify-content:flex-start}
.date-chip{font-variant-numeric:tabular-nums;background:var(--wash);color:var(--deep);border-radius:8px;padding:4px 7px;white-space:nowrap}
.birthday.section-accent .date-chip{background:#fff3;color:var(--light)}
.page-label{color:var(--muted);font-size:13px;margin-top:12px}
.habit-item{display:flex;align-items:center;gap:2px;margin:7px 0;padding:1px 3px}
.habit-item.done{background:var(--wash)}
.habit-item button{border:0;background:transparent;min-height:44px}
.habit-item button:last-child{text-align:left;flex:1;padding-left:2px;overflow-wrap:anywhere}
.section-tabs{flex-wrap:nowrap;background:var(--wash);padding:3px;border-radius:15px}
.section-tabs button{flex-basis:0}
.cycle-banner{display:flex;align-items:center;gap:10px;padding:17px;margin:9px 0 14px;border-radius:16px;background:linear-gradient(130deg,var(--deep),var(--glow));color:var(--light)}
.cycle-banner strong{font:600 clamp(17px,5vw,24px)/1.2 Georgia,serif}
.progress-card{display:grid}
.progress-card progress{width:100%;height:9px;accent-color:var(--accent)}
.card.cycle-card{padding:0;border:0;background:transparent;box-shadow:none}
.cycle-feature{display:grid;position:relative;isolation:isolate;overflow:hidden;gap:6px;min-height:110px}
.cycle-feature progress{width:100%;height:8px;margin:4px 0;accent-color:var(--accent)}
.calendar-week,.calendar-weekend{display:grid;gap:4px;margin-top:5px;text-align:center}
.calendar-week{grid-template-columns:repeat(5,minmax(0,1fr))}
.calendar-weekend{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:10px}
.calendar-week span{font-size:14px;padding:5px 0}
.calendar-week button,.calendar-weekend button{position:relative;min-height:44px;padding:0 0 5px;border-radius:10px;font-size:14px}
.calendar-weekend button{border:1px solid var(--edge)}
.calendar-week button[aria-current=date],.calendar-weekend button[aria-current=date]{background:var(--deep);color:var(--light)}
.calendar-week small,.calendar-weekend small{position:absolute;bottom:1px;left:0;right:0;font-size:10px;line-height:12px}
.calendar-card h2,.card-title{font-size:23px;margin:0 0 11px}
.calendar-controls button{flex:1 1 0;padding:8px 5px}
.calendar-week .event-dot,.calendar-weekend .event-dot{width:5px;height:5px;bottom:6px;left:calc(50% - 2.5px);border-radius:50%;background:currentColor}
.planner-paper,.planner-selection{border-radius:21px;padding:14px;box-shadow:0 5px 16px var(--shade)}
.planner-paper{background:linear-gradient(155deg,var(--surface) 35%,var(--wish))}
.planner-header{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;align-items:center;gap:4px;text-align:center}
.planner-header .icon-button{width:36px;height:38px}
.planner-header h2{font-size:clamp(23px,6.4vw,33px);margin:3px 0 0}
.planner-header h2::after{content:"";display:block;width:43px;height:1px;margin:10px auto 0;background:linear-gradient(90deg,#873e52,#bf9166)}
.planner-controls{display:flex;justify-content:center;gap:7px;margin:13px 0 12px}
.planner-controls button{font-size:13px;min-height:35px;padding:6px 10px}
.planner-controls .line-icon{width:15px;height:15px}
.month-picker{display:grid;grid-template-columns:minmax(0,1fr) 65px auto;gap:5px;margin-bottom:10px}
.month-picker>*{min-width:0;font-size:13px;padding:7px 5px}
.planner-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center}
.planner-headings{margin-bottom:4px;color:var(--muted);font-size:11px;font-weight:650}
.planner-headings span{padding:4px 0}
.planner-grid>:nth-child(7n+6),.planner-grid>:nth-child(7n){background:#bb8f6420;border-radius:9px}
.planner-day{position:relative;display:grid;place-items:center;min-width:0;min-height:43px;padding:0 0 4px;border-radius:9px;background:transparent;color:var(--ink);font-size:14px;line-height:1;font-variant-numeric:tabular-nums}
.planner-number{display:grid;place-items:center;width:min(30px,95%);aspect-ratio:1;border-radius:50%}
.planner-day[aria-current="date"] .planner-number{box-shadow:inset 0 0 0 1px var(--focus)}
.planner-day[aria-pressed="true"] .planner-number{background:#641e3e;color:#fff9f3;box-shadow:0 2px 4px #641e3e40}
.planner-dot{position:absolute;bottom:3px;left:calc(50% - 2px);width:4px;height:4px;background:#833550;border-radius:50%}
.planner-selection h2{font-size:clamp(21px,5.4vw,27px);margin:0 0 10px}
.planner-empty{color:var(--muted);font-size:13px;margin:3px 0 12px}
.planner-entries{display:grid;gap:3px;margin:0 0 11px}
.planner-entries button{width:100%;min-height:42px;padding:8px;text-align:left;background:transparent;border-bottom:1px solid var(--edge);border-radius:7px;font-size:14px;overflow-wrap:anywhere}
.planner-entries button:hover{background:var(--wish)}
.planner-entries .line-icon{color:var(--glow);width:17px;height:17px}
.planner-add{width:100%;display:flex;justify-content:center;min-height:40px}
.calendar-add textarea{width:100%;resize:vertical}
.themed-date .date-trigger{min-height:41px;width:100%;background:var(--surface);border:1px solid var(--edge);text-align:left;font-weight:500}
.viby-date-dialog{width:min(365px,calc(100% - 24px));max-height:calc(100% - 20px);padding:15px;border:1px solid var(--edge);border-radius:20px;background:var(--surface);color:var(--ink);box-shadow:0 18px 44px var(--shade)}
.viby-date-dialog::backdrop{background:#17121166}
.viby-date-dialog h2{font-size:24px;margin:0 0 10px}
.date-picker-nav{display:grid;grid-template-columns:35px minmax(0,1fr) 66px 35px;gap:4px;margin-bottom:8px}
.date-picker-nav .icon-button{width:35px}
.date-picker-nav select,.date-picker-nav input{font-size:13px;padding:5px}
.date-picker-grid button{min-height:36px;padding:0;border-radius:8px;background:var(--surface);color:var(--ink);font-size:14px;font-variant-numeric:tabular-nums}
.date-picker-grid button[aria-current="date"]{box-shadow:inset 0 0 0 1px var(--focus)}
.date-picker-grid button[aria-pressed="true"]{background:var(--deep);color:var(--light)}
.viby-date-dialog .actions button{font-size:13px;padding:5px 7px}
.beauty-open .mark,.beauty-open #reload-view,.beauty-open #open-settings{display:none}
.beauty-open .topbar{min-height:60px}
.beauty-open .brand{justify-content:center}
.beauty-open .brand strong{font:500 clamp(27px,7vw,34px)/1.1 Georgia,serif;letter-spacing:normal}
.beauty-spotlight{margin:10px 0 17px;padding:16px;border-radius:20px;background:linear-gradient(145deg,var(--deep),var(--glow));color:var(--light);box-shadow:0 5px 15px var(--shade)}
.beauty-heading{font:600 12px/1.35 system-ui,sans-serif;letter-spacing:.1em;text-transform:uppercase;margin:0 0 10px}
.beauty-spotlight .beauty-heading{color:var(--light)}
.beauty-spotlight p{font-size:13px}
.beauty-spotlight button{width:100%;background:#fff1;color:var(--light);margin:5px 0 0;min-height:40px;text-align:left}
.beauty-spotlight .line-icon{color:var(--accent)}
.beauty-spotlight .chevron{margin-left:auto;color:var(--light)}
.beauty-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.beauty-tile{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-height:91px;text-align:left;min-width:0;padding:11px;border:1px solid var(--edge);background:var(--surface);box-shadow:0 3px 8px var(--shade);overflow-wrap:anywhere}
.beauty-tile .line-icon,.beauty-procedure-title .line-icon{color:var(--glow);width:22px;height:22px}
.beauty-tile strong{font-size:14px}
.beauty-tile small,.beauty-hint{font-size:12px;color:var(--muted);line-height:1.4}
.beauty-custom{border-style:dashed;background:var(--wish);justify-content:center}
.beauty-procedure-title{margin:12px 0 14px;display:flex;align-items:center;gap:9px;font-size:clamp(28px,7vw,40px);overflow-wrap:anywhere}
.beauty-divider{width:42px;height:1px;margin:0 0 13px;background:#873e52}
.beauty-reference{margin:10px 0 17px;border-radius:17px;background:var(--wish)}
.beauty-reference-text{margin:7px 0;font-size:14px}
.beauty-reference>button{margin-top:7px;font-size:13px}
.beauty-reference .beauty-form{background:none;border:0;box-shadow:none;padding:4px 0 0;margin:6px 0 0}
.beauty-visit-date{color:var(--muted);font-size:13px}
.beauty-next,.beauty-form,.beauty-defaults,.beauty-visit,.module-settings{border-radius:17px}
.beauty-next dl{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 10px;margin:0 0 11px;font-size:14px}
.beauty-next dt{color:var(--muted)}
.beauty-next dd{margin:0;text-align:right;font-weight:650}
.beauty-next summary{color:var(--glow);font-weight:650;cursor:pointer}
.beauty-next .beauty-form{border:0;box-shadow:none;background:none;padding:8px 0 0;margin:7px 0 0}
.beauty-actions{margin:1px 0 16px}
.beauty-actions button{justify-content:center}
.beauty-form{scroll-margin-top:68px}
.beauty-visit .beauty-form{margin-bottom:0;box-shadow:none}
.beauty-form{display:grid;gap:9px}
.form-field{display:grid;gap:4px;font-weight:600;font-size:13px}
.form-field input,.form-field textarea,.form-field select{width:100%;font-weight:400;font-size:15px}
.beauty-form fieldset{min-width:0;border:0;margin:0;padding:0}
.beauty-form legend{font-size:13px;font-weight:600;margin:0 0 5px}
.beauty-chips{display:flex;flex-wrap:wrap;gap:4px}
.beauty-chips button{font-size:12px;padding:4px 8px}
.beauty-icons{display:flex;flex-wrap:wrap;gap:4px}
.beauty-icons label{display:grid;place-items:center;position:relative;width:39px;height:39px;border-radius:10px;background:var(--wash);color:var(--deep)}
.beauty-icons label:has(:checked){box-shadow:inset 0 0 0 2px var(--focus)}
.beauty-icons label:focus-within{outline:2px solid var(--focus);outline-offset:2px}
.beauty-icons input{position:absolute;opacity:0}
.beauty-rating{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
.beauty-rating label,.form-switch{display:flex;align-items:center;gap:6px;font-size:13px}
.beauty-rating label{padding:6px;border-radius:9px;background:var(--wash)}
.form-switch{justify-content:space-between;min-height:37px;font-weight:650}
.beauty-rating input{accent-color:var(--primary)}
.form-switch input{appearance:none;flex:none;position:relative;width:33px;height:20px;padding:0;margin:0;border-radius:20px;background:var(--wash);cursor:pointer}
.form-switch input::after{content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background:var(--glow)}
.form-switch input:checked{background:var(--primary);border-color:var(--primary)}
.form-switch input:checked::after{left:16px;background:var(--light)}
.beauty-reminder{display:flex;align-items:center;gap:6px;margin:0 0 8px}
.beauty-reminder .line-icon{height:15px;width:15px;color:var(--glow)}
.module-settings h2{margin:0 0 7px}
.beauty-defaults .form-switch+.form-switch{border-top:1px solid var(--edge)}
.beauty-visit-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px;font-size:13px;color:var(--muted)}
.beauty-visit h3{font-size:15px;margin:8px 0 3px}
.beauty-visit p{font-size:13px;color:var(--muted)}
.beauty-badge{border-radius:20px;padding:3px 8px;font-weight:650;background:#e6efdf;color:#2b4a34}
.beauty-badge.disliked{background:#f3e2df;color:#763734}
.form-error,.beauty-notice{color:var(--glow);font-size:13px}
.form-error:empty{display:none}
.doctor-entry>.section-link{background:linear-gradient(125deg,var(--deep),var(--glow));color:var(--light);border-color:transparent;min-height:49px}
.doctor-entry>.section-link>.line-icon,.doctor-entry>.section-link>.chevron{color:var(--light)}
.doctor-entry>.section-link>span{font-weight:650}
.doctor-title{display:flex;align-items:center;gap:8px;margin:8px 0 15px;font-size:clamp(27px,7vw,38px)}
.doctor-title .line-icon{width:23px;height:23px;color:var(--glow)}
.doctor-section{margin:0 0 20px}
.doctor-section>h2{font-size:clamp(22px,6vw,29px);margin:10px 0 8px}
.doctor-action{width:100%;justify-content:center;min-height:40px;margin-bottom:8px}
.doctor-form,.doctor-record{border-radius:17px}
.doctor-form{display:grid;gap:9px}
.doctor-form h3,.doctor-record h3{margin:0;font-size:16px}
.doctor-form textarea{resize:vertical}
.doctor-chips{display:flex;gap:4px;flex-wrap:wrap;margin-top:-3px}
.doctor-chips button{font-size:12px;padding:5px 8px}
.doctor-muted,.doctor-date,.doctor-notice,.doctor-followup{font-size:13px;color:var(--muted)}
.doctor-notice{margin:0 0 10px;color:var(--primary)}
.doctor-record p{margin-top:5px}
.doctor-record .actions button{font-size:13px;min-height:35px}
.doctor-record .doctor-date{color:var(--glow)}
.doctor-alarm{display:flex;align-items:center;gap:5px}
.doctor-alarm .line-icon{width:15px;height:15px}
.doctor-followup{color:var(--primary);font-weight:650}
.doctor-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin:3px 0 8px}
.doctor-filters>*{font-size:13px}
.record-action button{width:100%;text-align:left;background:var(--surface);border:1px solid var(--edge)}
.record-action button::after{content:"›";float:right;margin-left:7px}
.record-action button.with-icon::after{float:none;margin-left:auto}
.month-bar{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:10px}
.month-bar strong{text-transform:capitalize;text-align:center}
.month-bar button{width:39px;height:39px;padding:0;font-size:22px}
.cycle-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center}
.cycle-month-grid small{font-size:12px;color:var(--muted);padding-bottom:4px}
.cycle-month-grid button{min-width:0;padding:0;min-height:37px;background:transparent;border:1px solid transparent;font-size:13px}
.cycle-month-grid .cycle-period{background:var(--wash);border-color:var(--edge)}
.cycle-settings{display:flex;align-items:end;gap:10px;margin:10px 0}
.cycle-settings label{display:grid;gap:5px;flex:1;min-width:0;font-size:13px;font-weight:600}
.cycle-settings input{min-width:0;width:100%;margin:0}
.cycle-month-grid .cycle-estimated-period,.cycle-legend .cycle-estimated-period::before{background:var(--wash);border-color:var(--focus);border-style:dotted}
.cycle-month-grid .cycle-prediction{background:var(--wash);border-color:var(--focus);border-style:dashed}
.cycle-month-grid .cycle-ovulation{border-color:var(--focus)}
.cycle-month-grid button[aria-current="date"]{box-shadow:inset 0 0 0 2px var(--deep)}
.cycle-legend{display:grid;gap:5px;margin:10px 2px;padding:0;list-style:none;font-size:13px}
.cycle-legend li::before{content:"";display:inline-block;width:12px;height:12px;margin-right:8px;vertical-align:-1px;border:1px solid var(--focus);border-radius:4px}
.cycle-legend .cycle-period::before{background:var(--wash);border-color:var(--edge)}
.cycle-legend .cycle-prediction::before{background:var(--wash);border-style:dashed}
.recipe-input{width:100%;max-height:55vh;margin-top:10px}
.card .recipe-preview{margin:4px 0 12px;padding:10px;background:var(--page);border-radius:10px}
.recipe-input + .actions{margin-bottom:10px}
.cycle-card form,.cycle-history{display:grid;gap:8px;margin-top:16px}
.cycle-card form{padding:13px;background:var(--surface);border:1px solid var(--edge);border-radius:15px}
.cycle-card label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-weight:600;flex-wrap:wrap}
.cycle-card input[type=checkbox]{width:22px;height:22px;accent-color:var(--primary)}
.cycle-card textarea{flex-basis:100%;width:100%}
.cycle-tags{display:flex;flex-wrap:wrap;gap:6px}
.cycle-tags button{font-size:13px;padding:6px 8px}
.cycle-history button{text-align:left;overflow-wrap:anywhere}
#settings h1,#login h1{font-size:32px;margin-top:10px}
#login p{margin:12px 0}
.appearance{display:grid;gap:9px}
.appearance label,.appearance legend{font-weight:620}
.appearance small{color:var(--muted)}
.appearance fieldset{margin:7px 0 2px;padding:0;border:0}
.palettes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:8px}
.palette{display:flex;flex-direction:column;align-items:center;gap:5px;padding:8px 2px;border-radius:10px;background:var(--page);text-align:center;font-size:11px;cursor:pointer}
.palette:has(:checked){box-shadow:inset 0 0 0 2px var(--focus)}
.palette input{margin:0;accent-color:var(--primary)}
.swatch{width:90%;height:21px;border-radius:6px}
.swatch.wine{background:linear-gradient(110deg,#4e162b,#833952 65%,#e8a7a1)}
.swatch.pine{background:linear-gradient(110deg,#163327,#2e5947 65%,#c7d3b8)}
.swatch.chocolate{background:linear-gradient(110deg,#2b1810,#5e3826 65%,#dfbc9a)}
.settings-links{margin:0 0 9px}
#compose{position:fixed;z-index:3;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,620px);padding:8px 14px max(9px,env(safe-area-inset-bottom));background:var(--page);border-top:1px solid var(--edge)}
.bar{display:flex;align-items:center;gap:7px}
.clip,.send{flex:none;border-radius:50%;width:41px;height:41px;display:grid;place-items:center;font-size:22px;cursor:pointer}
.clip{background:var(--wash);position:relative;color:var(--deep)}
.clip input{position:absolute;inset:0;width:100%;opacity:0}
.send{padding:0}
input,textarea,select{min-width:0;border:1px solid var(--edge);background:var(--surface);border-radius:12px;padding:8px;color:var(--ink)}
textarea{flex:1;resize:vertical;max-height:18vh}
#signin{display:grid;gap:8px;margin-top:24px}
#status{color:var(--primary);margin-top:13px}
#attachment{font-size:13px;margin-bottom:7px}
