/* Calendar editing uses one full-screen surface of drawers and the calculator's controls. */
.ss-calendar-editor{position:fixed;inset-inline:0;top:var(--visible-top,0px);height:var(--visible-height,100dvh);z-index:100;background:#171717;color:#f0f0f0;font:400 var(--ss-type-body,16px)/1.4 SteveDashboardNunito,system-ui,sans-serif;color-scheme:dark;overflow:clip;isolation:isolate;-webkit-tap-highlight-color:transparent;--sce-surface:#292929;--sce-inner:#1d1d1d;--sce-cream:#c8c8c8;--sce-ink:#171717;--sce-yellow:#ffdd00;--ss-type-small:16px;--sce-room:calc(var(--visible-height,100dvh) + var(--keyboard-inset,0px));--sce-control:60px;--sce-inner-control:var(--sce-control);--sce-brand:46px;--sce-brand-top:max(12px,env(safe-area-inset-top,0px));--sce-brand-gap:10px;--sce-stack-gap:20px;--sce-row-gap:10px;--sce-foot-top:10px;--sce-foot-bottom:19.2px;--sce-fixed:calc(var(--sce-brand-top) + var(--sce-brand) + var(--sce-brand-gap) + var(--sce-stack-gap) + 8*var(--sce-control) + 5*var(--sce-row-gap) + 4px + var(--sce-foot-top) + 12px + var(--sce-foot-bottom) + env(safe-area-inset-bottom,0px) + 2px)}
/* One standard control height everywhere; nothing shrinks. Rows keep the calculator's 10px stack spacing; the shared block takes the room left after the brand row, six closed drawers and the two-row footer, and whatever remains sits between the last row and the footer group; short screens scroll. */
.ss-calendar-editor.ss-calendar-editor{--sp-block-height:clamp(152px,calc(var(--sce-room) - var(--sce-fixed)),244px)}
.ss-calendar-editor *{box-sizing:border-box}
.ss-calendar-editor .sce-shell{position:relative;width:100%;max-width:496px;height:100%;margin:0 auto;overflow:clip;background:#171717}
.ss-calendar-editor .sce-screen{position:absolute;inset:0;display:flex;flex-direction:column;background:#171717;min-width:0;overflow:clip}
.ss-calendar-editor .sce-screen[hidden]{display:none!important}
.ss-calendar-editor .sce-head{flex:none;display:flex;flex-direction:column;gap:3px;padding:calc(12px + env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) 10px max(12px,env(safe-area-inset-left,0px))}
.ss-calendar-editor .sce-kicker,.ss-calendar-editor .sce-label,.ss-calendar-editor .sce-k{font-size:var(--ss-type-small,14px);font-weight:400;line-height:1.4;color:#bcbcbc}
.ss-calendar-editor h2{margin:0;font-size:var(--ss-type-heading,20px);font-weight:800;line-height:1.3;overflow-wrap:anywhere;outline:0}
.ss-calendar-editor .sce-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;overflow-anchor:none;scrollbar-width:none;padding:0 max(12px,env(safe-area-inset-right,0px)) 4px max(12px,env(safe-area-inset-left,0px));scroll-padding-block:14px;-webkit-overflow-scrolling:touch}
.ss-calendar-editor .sce-scroll::-webkit-scrollbar{display:none}
.ss-calendar-editor .sce-content{display:flex;flex-direction:column;gap:var(--sce-row-gap);min-width:0;flex:none;min-height:0}
.ss-calendar-editor .sce-result{display:flex;flex-direction:column;gap:6px;min-width:0;padding:10px 12px;border-radius:15px;background:var(--block-fill,#0aa31c);container-type:inline-size}
.ss-calendar-editor .sce-result h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
.ss-calendar-editor .sce-result-metrics{display:flex;align-items:baseline;justify-content:space-between;gap:clamp(2px,1cqi,6px);--sce-result-size:clamp(14px,calc(100cqi / var(--sce-result-width,8.5)),20px)}
.ss-calendar-editor .sce-result-metrics strong{display:inline-flex;align-items:baseline;gap:.125em;min-width:0;flex:none;font-size:var(--sce-result-size);font-weight:650;line-height:1.2;letter-spacing:-.4px;white-space:nowrap;font-variant-numeric:tabular-nums}
.ss-calendar-editor .sce-result-metrics small{font-size:16px;font-weight:650;letter-spacing:0}
.ss-calendar-editor .sce-result-metrics[data-count="3"]::before,.ss-calendar-editor .sce-result-metrics[data-count="3"]::after{content:"";width:1px;height:16px;flex:none;align-self:center;background:rgba(255,255,255,.264)}
.ss-calendar-editor .sce-result-metrics::before{order:1}
.ss-calendar-editor [data-sce-result-unit=mg]{order:2}
.ss-calendar-editor .sce-result-metrics::after{order:3}
.ss-calendar-editor [data-sce-result-unit=mL]{order:4}
.ss-calendar-editor .sce-result-basis{padding-top:4px;font-size:var(--ss-type-small,14px);line-height:1.3;overflow-wrap:anywhere}
.ss-calendar-editor [data-sce-equivalents][data-valid=true]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.ss-calendar-editor .sce-screen p.sce-label{display:block;margin:8px 0 -8px}
.ss-calendar-editor .sce-drawer-inner>p.sce-label:first-child,.ss-calendar-editor .sce-drawer-inner>:first-child>p.sce-label:first-child{margin-top:0}
.ss-calendar-editor :is(button,input){font-family:inherit;font-size:var(--ss-type-body,16px);font-weight:600;line-height:1.35;color:#f0f0f0;border:0!important;outline:0!important;box-shadow:none!important;text-decoration:none!important;-webkit-tap-highlight-color:transparent}
.ss-calendar-editor button{min-height:var(--sce-control);min-width:0;padding:12px 16px;background:var(--sce-surface);border-radius:12px;cursor:pointer;touch-action:manipulation;text-align:center}
.ss-calendar-editor button:disabled{cursor:default;opacity:.45}
.ss-calendar-editor input{height:var(--sce-control);min-height:var(--sce-control);width:100%;min-width:0;padding:0 16px;background:var(--sce-surface);border-radius:12px;caret-color:#f0f0f0;font-variant-numeric:tabular-nums;appearance:none}
.ss-calendar-editor input:focus{background:#353535}
.ss-calendar-editor :is(button,input):focus-visible{background:#414141}
/* Drawers: a header row with the current value, a body that opens in place. */
.ss-calendar-editor .sce-drawer{background:var(--sce-surface);border-radius:12px;min-width:0}
.ss-calendar-editor .sce-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:var(--sce-control);padding:0 16px;background:transparent;border-radius:12px;text-align:left}
.ss-calendar-editor .sce-drawer-head:focus-visible{background:#353535}
.ss-calendar-editor .sce-k{flex:none;white-space:nowrap;margin-right:auto}
.ss-calendar-editor .sce-tile small,.ss-calendar-editor .sce-tile em,.ss-calendar-editor .sce-tile b{color:inherit}
.ss-calendar-editor .sce-v{display:flex;align-items:center;gap:12px;min-width:0;font-weight:600;font-size:var(--ss-type-body,16px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ss-calendar-editor .sce-drawer-head .sce-next{transform:rotate(135deg) translate(-2px,2px);transition:transform 260ms cubic-bezier(.37,0,.63,1)}
.ss-calendar-editor .sce-drawer[open] .sce-drawer-head .sce-next{transform:rotate(-45deg) translate(2px,2px)}
.ss-calendar-editor .sce-drawer-body{display:grid;grid-template-rows:0fr;transition:grid-template-rows 260ms cubic-bezier(.37,0,.63,1)}
.ss-calendar-editor .sce-drawer[open] .sce-drawer-body{grid-template-rows:1fr}
.ss-calendar-editor .sce-drawer-inner{min-height:0;overflow:hidden;display:flex;flex-direction:column;gap:20px;padding:0 16px;border-top:0 solid transparent;transition:padding 260ms cubic-bezier(.37,0,.63,1),border-color 260ms}
/* While a drawer changes or a section folds inside it, the base margin eases on the drawer's curve, so page, drawer and base move as one. */
.ss-calendar-editor .sce-drawer-inner.sce-folding{transition:padding 260ms cubic-bezier(.37,0,.63,1),border-color 260ms,margin-bottom 260ms cubic-bezier(.37,0,.63,1)}
/* The end state is measured with transitions off and put straight back, so the person never sees it. */
.ss-calendar-editor .sce-drawer.sce-dry .sce-drawer-body,.ss-calendar-editor .sce-drawer.sce-dry .sce-drawer-inner{transition:none!important}
.ss-calendar-editor .sce-drawer[open] .sce-drawer-inner{padding:22px 16px;border-top:1px solid #3a3a3a}
.ss-calendar-editor .sce-drawer-inner :is(button,input){min-height:var(--sce-inner-control);background:var(--sce-inner)}
.ss-calendar-editor .sce-drawer-inner input{height:var(--sce-inner-control)}
.ss-calendar-editor .sce-drawer-inner button[aria-pressed=true]{background:var(--sce-cream);color:var(--sce-ink);font-weight:700}
.ss-calendar-editor .sce-next{flex:none;display:block;width:8px;height:8px;border-top:2px solid currentColor;border-right:2px solid currentColor;transform:rotate(45deg);margin:0 4px}
.ss-calendar-editor .sce-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
.ss-calendar-editor .sce-keys{display:grid;grid-template-columns:repeat(var(--sce-keys,3),minmax(0,1fr));gap:8px}
/* Several doses a day (7 October): the When drawer holds one row per dose, each a drawer on the inner tint; its controls sit on the page tint. The rules
   below out-rank the open outer drawer's descendant rules, so a closed dose row stays folded inside an open When. */
.ss-calendar-editor .sce-doses{display:flex;flex-direction:column;gap:10px}
/* On-device motion log (#motion-log): a read-out over the top of the editor; taps pass through it. */
.ss-calendar-editor .sce-motion-log{position:absolute;left:8px;right:8px;top:4px;z-index:9;margin:0;padding:8px;border-radius:8px;background:rgba(0,0,0,.74);color:#9ff39f;font:11px/1.35 ui-monospace,Menlo,Consolas,monospace;white-space:pre-wrap;word-break:break-all;pointer-events:none}
.ss-calendar-editor .sce-drawer .sce-dose{background:var(--sce-inner)}
.ss-calendar-editor .sce-drawer .sce-dose .sce-drawer-body{grid-template-rows:0fr}
.ss-calendar-editor .sce-drawer .sce-dose[open] .sce-drawer-body{grid-template-rows:1fr}
.ss-calendar-editor .sce-drawer .sce-dose .sce-drawer-inner{padding:0 16px;border-top:0 solid transparent}
.ss-calendar-editor .sce-drawer .sce-dose[open] .sce-drawer-inner{padding:22px 16px;border-top:1px solid #3a3a3a}
.ss-calendar-editor .sce-drawer .sce-dose .sce-drawer-head .sce-next{transform:rotate(135deg) translate(-2px,2px)}
.ss-calendar-editor .sce-drawer .sce-dose[open] .sce-drawer-head .sce-next{transform:rotate(-45deg) translate(2px,2px)}
.ss-calendar-editor .sce-dose .sce-drawer-inner :is(button,input){background:#171717}
.ss-calendar-editor .sce-dose .sce-drawer-inner button[aria-pressed=true]{background:var(--sce-cream);color:var(--sce-ink)}
.ss-calendar-editor .sce-keys button{padding-inline:6px}
.ss-calendar-editor .sce-step{display:grid;grid-template-columns:minmax(0,1fr) var(--sce-inner-control) var(--sce-inner-control);gap:8px}
.ss-calendar-editor .sce-step button{padding:0;font-size:22px;font-weight:500}
.ss-calendar-editor .sce-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;align-items:center;justify-items:center;min-height:var(--sce-control);padding:0}
.ss-calendar-editor .sce-days button{aspect-ratio:1;width:100%;max-width:var(--sce-control);min-height:0;padding:0;border-radius:50%;font-weight:700}
.ss-calendar-editor .sce-clocks{display:flex;flex-direction:column;gap:14px}
.ss-calendar-editor .sce-clock{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:10px}
.ss-calendar-editor .sce-clock .sce-pair{gap:6px}
.ss-calendar-editor .sce-clock button{padding-inline:4px}
.ss-calendar-editor .sce-wide{width:100%}
/* Wrappers (Break contents, the Days-apart pair, the Next-doses pair, the Repeat count and break choice) join the drawer's own column and spacing. */
.ss-calendar-editor :is([data-sce-break],[data-sce-next-wrap]){display:contents}
/* Sections that fold need a box of their own: a column with the drawer gap, so a label keeps 28px above and 12px below while the whole section can grow from 0. */
.ss-calendar-editor :is([data-sce-gap],[data-sce-repeat-count],[data-sce-repeat-choice]){display:flex;flex-direction:column;gap:20px}
/* Next doses: the calculator's yellow linked tiles, three visible, the strip scrolls sideways for the rest. */
.ss-calendar-editor .sce-track{--sce-gap:10px;--sce-visible:3;display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - (var(--sce-visible) - 1)*var(--sce-gap))/var(--sce-visible));gap:var(--sce-gap);height:76px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x pan-y}
.ss-calendar-editor .sce-track::-webkit-scrollbar{display:none}
.ss-calendar-editor .sce-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;height:100%;min-width:0;border-radius:10px;background:var(--sce-yellow);color:var(--sce-ink);scroll-snap-align:start}
.ss-calendar-editor .sce-tile small{font-size:12px;letter-spacing:.6px;font-weight:700;line-height:1}
.ss-calendar-editor .sce-tile b{font-size:22px;font-weight:800;line-height:1.1}
.ss-calendar-editor .sce-tile em{font-style:normal;font-size:12px;font-weight:600;line-height:1}
.ss-calendar-editor .sce-tile:not(:last-child)::after{--sce-bridge:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 36'%3E%3Cpath fill='white' d='M0 0C0 11 2 12 6 12S12 11 12 0V36C12 25 10 24 6 24S0 25 0 36Z'/%3E%3C/svg%3E");content:"";position:absolute;left:calc(100% - 1px);top:50%;transform:translateY(-50%);width:calc(var(--sce-gap) + 2px);height:36px;background:var(--sce-yellow);-webkit-mask:var(--sce-bridge) center/100% 100% no-repeat;mask:var(--sce-bridge) center/100% 100% no-repeat;pointer-events:none}
.ss-calendar-editor .sce-note{margin:0;color:#bcbcbc;font-size:var(--ss-type-small,14px);line-height:1.4;overflow-wrap:anywhere}
/* Supplies (owner, 8 October): the calculator's yellow linked tiles inside the Remaining drawer, an icon above one line of text; three when the text fits comfortably, otherwise Syringes and Vials. */
.ss-calendar-editor .sce-supplies:empty{display:none}
.ss-calendar-editor .sce-supplies[data-sce-tiles="2"]{--sce-visible:2}
.ss-calendar-editor .sce-supplies[data-sce-tiles="1"]{--sce-visible:1}
.ss-calendar-editor .sce-supplies .sce-tile{gap:5px;padding:6px 5px}
.ss-calendar-editor .sce-supplies .sce-tile svg{display:block;width:26px;height:26px;flex:none}
.ss-calendar-editor .sce-supplies .sce-tile>span{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;font-weight:500;line-height:17px}
.ss-calendar-editor .sce-note:empty{display:none}
.ss-calendar-editor .sce-error{margin:0;color:#ffc587;font-size:var(--ss-type-small,14px);line-height:1.4}
.ss-calendar-editor .sce-error:empty{display:none}
/* Remove peptide (owner, 7 October): a full red screen over the page, slid up from the bottom on the drawer curve and down again on Cancel. */
.ss-calendar-editor .sce-remove-screen{position:absolute;inset:0;z-index:6;display:flex;flex-direction:column;background:#b42b3d;color:#f0f0f0;transform:translateY(100%);transition:transform 260ms cubic-bezier(.37,0,.63,1)}
.ss-calendar-editor .sce-remove-screen[open]{transform:none}
.ss-calendar-editor .sce-remove-body{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;scrollbar-width:none}
.ss-calendar-editor .sce-remove-ask{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 12px 24px}
.ss-calendar-editor .sce-remove-ask svg{display:block;width:144px;height:144px;flex:none;margin-bottom:30px}
.ss-calendar-editor .sce-remove-question{margin:0;font-size:34px;line-height:1.2;font-weight:800;text-align:center;outline:0}
.ss-calendar-editor .sce-remove-note{margin:14px 0 0;padding:0 12px;font-size:var(--ss-type-body,16px);line-height:1.4;text-align:center;color:#f6d7dc}
.ss-calendar-editor .sce-remove-note b{color:#f0f0f0;font-weight:700}
.ss-calendar-editor .sce-remove-actions{flex:none;display:flex;flex-direction:column;gap:12px;padding:0 12px calc(var(--sce-foot-bottom) + env(safe-area-inset-bottom,0px))}
.ss-calendar-editor .sce-remove-actions>button{width:100%;min-height:var(--sce-control);padding:12px 8px}
.ss-calendar-editor .sce-remove-actions .sce-keep{background:#8c2331;color:#f0f0f0}
.ss-calendar-editor .sce-remove-actions .sce-keep:focus-visible{background:#9c2a3a}
.ss-calendar-editor .sce-danger{background:#a52a3a;color:#f0f0f0}
.ss-calendar-editor .sce-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;padding:var(--sce-foot-top) max(12px,env(safe-area-inset-right,0px)) calc(var(--sce-foot-bottom) + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));flex:none;background:#171717}
.ss-calendar-editor .sce-actions>button{width:100%;min-height:var(--sce-control);padding:12px 8px}
.ss-calendar-editor .sce-actions>button:only-child{grid-column:1/-1}
.ss-calendar-editor .sce-save{background:var(--sce-cream);color:var(--sce-ink);font-weight:700}
.ss-calendar-editor .sce-save:focus-visible,.ss-calendar-editor button[aria-pressed=true]:focus-visible{background:#e0e0e0;color:var(--sce-ink)}
.ss-calendar-editor .sce-remove{display:flex;align-items:center;justify-content:center;gap:8px;grid-column:1/-1;background:#a52a3a;color:#f0f0f0}
.ss-calendar-editor .sce-remove:focus-visible,.ss-calendar-editor .sce-danger:focus-visible{background:#bd3446;color:#fff}
.ss-calendar-editor .sce-remove svg{width:18px;height:18px;flex:none}
.ss-calendar-editor .sce-screen p{margin:0}
.ss-calendar-editor [hidden]{display:none!important}
.ss-calendar-editor[data-busy=true] .sce-content{cursor:progress}
.ss-calendar-editor .sce-shared-main>.sce-scroll{display:flex;flex-direction:column;gap:var(--sce-stack-gap)}
.ss-calendar-editor .sce-shared-main .sce-head{padding:0}
.ss-calendar-editor .sce-brand-row{flex:none;display:flex;align-items:center;height:calc(var(--sce-brand) + var(--sce-brand-top));min-height:0;margin-bottom:var(--sce-brand-gap);padding:var(--sce-brand-top) 12px 0}
@font-face{font-family:SteveEditorBrand;src:url("/assets/nunito-latin-900.9ca32f5d83345793.woff2") format('woff2');font-weight:900;font-display:swap}
.ss-calendar-editor .sce-wordmark{display:inline-flex;align-items:baseline;gap:2px;font-family:SteveEditorBrand,Nunito,sans-serif;font-size:25px;font-weight:900;letter-spacing:-1px;line-height:1}
@media(hover:hover) and (pointer:fine){.ss-calendar-editor button:not(:disabled):hover{background:#353535}.ss-calendar-editor .sce-drawer-inner button:not(:disabled):hover{background:#333}.ss-calendar-editor .sce-save:not(:disabled):hover,.ss-calendar-editor button[aria-pressed=true]:not(:disabled):hover{background:#e0e0e0;color:var(--sce-ink)}.ss-calendar-editor .sce-drawer-head:not(:disabled):hover{background:#2f2f2f}}
@media(hover:hover) and (pointer:fine){.ss-calendar-editor .sce-remove:not(:disabled):hover,.ss-calendar-editor .sce-danger:not(:disabled):hover{background:#bd3446;color:#fff}}
@media(prefers-reduced-motion:reduce){.ss-calendar-editor .sce-drawer-body,.ss-calendar-editor .sce-drawer-inner,.ss-calendar-editor .sce-drawer-head .sce-next,.ss-calendar-editor .sce-remove-screen{transition:none}}
/* Touch hover must not latch a filled square onto the calendar's bare pencil. */
@media(hover:none),(pointer:coarse){.steve-calendar.ss-timeline .ct-dose-summary>.ss-dose-edit:hover:not(:focus-visible){background:transparent}}
/* The look (look.js; the owner, 11 October): the Remaining drawer's supply tiles follow the tiles part, the button cream with the editor's ink. */
html[data-look-tiles=cream] .ss-calendar-editor{--sce-yellow:#c8c8c8}
/* The tiles part set to dark (the owner, 11 October): the Remaining drawer's tiles on the inner tint with light text. */
html[data-look-tiles=dark] .ss-calendar-editor{--sce-yellow:#1d1d1d;--sce-ink:#f0f0f0}
