/* ===== v21: calendar + short goal cards ===== */
.gk-card{padding:16px 14px}
.gk-top{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.gk-top h2{margin:0}
.gk-nav{display:flex;align-items:center;gap:4px}
.gk-nav b{min-width:0;text-transform:capitalize;font-size:15px;white-space:nowrap}
.gk-arr{width:40px;height:40px;border-radius:50%;border:0;background:var(--cream,#FFF1DC);font-size:22px;font-weight:800;color:var(--ink,#3a2a1a);line-height:1}
.gk-g{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.gk-w{font-size:11px;font-weight:800;text-align:center;color:var(--muted,#9a8470);padding:2px 0}
.gk-c{position:relative;min-width:0;height:44px;border:0;border-radius:12px;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:0;color:inherit}
.gk-c b{font-size:15px;font-weight:700;line-height:1}
.gk-e{pointer-events:none}
.gk-past b{opacity:.5}
.gk-td{background:#FFE7C7}
.gk-td b{color:#D9541E;font-weight:900}
.gk-sel{background:#F2701A!important}
.gk-sel b{color:#fff!important;opacity:1}
.gk-dot{min-width:7px;height:7px;border-radius:99px;background:#F2701A;font-style:normal;font-size:9px;line-height:7px;color:transparent}
.gk-dot:not(:empty){height:13px;min-width:13px;line-height:13px;color:#fff;font-weight:800;padding:0 3px}
.gk-sel .gk-dot{background:#fff;color:#F2701A}
.gk-ok{font-style:normal;font-size:11px;font-weight:900;color:#2E9A5E;line-height:1}
.gk-sel .gk-ok{color:#fff}
.gk-fl{position:absolute;top:1px;right:2px;font-style:normal;font-size:10px}
.gk-day{margin-top:12px;padding-top:10px;border-top:2px dashed var(--line,#f0e2cf)}
.gk-dh{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}
.gk-dh b{text-transform:capitalize}
.gk-rem{font-size:13px;font-weight:800;color:#1d5a92;background:#E6F1FB;border-radius:99px;padding:3px 10px;white-space:nowrap}
.gk-dl{font-weight:800;font-size:14px;color:#B4361E;margin:4px 0}
.gk-none{margin:6px 0}
.btn.sm.gk-ics{margin-top:10px;width:100%;max-width:100%;box-sizing:border-box;white-space:normal;height:auto;min-height:46px;padding:10px 12px;line-height:1.25;font-size:15px}
.goal-card.gc2{padding:16px}
.gc2 .goal-top{display:flex;align-items:flex-start;gap:8px}
.gc2 .goal-t{flex:1;min-width:0;margin:0;font-size:20px;overflow-wrap:anywhere}
.gc2 .g-ic{flex:none;width:40px;height:40px;border-radius:12px;border:0;background:var(--cream,#FFF1DC);font-size:17px}
.gc2 .g-meta{font-size:14px;color:var(--muted,#9a8470);font-weight:700;margin-top:2px}
.gc2 .g-bar{height:8px;border-radius:99px;background:#F3E3CE;margin:10px 0 6px;overflow:hidden}
.gc2 .g-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#FBC23B,#F2701A)}
.gc2 .g-next{font-size:12px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;color:#D9541E;margin-top:8px}
.gc2 .g-all{width:100%;margin-top:6px;min-height:44px;border:0;border-radius:12px;background:var(--cream,#FFF1DC);font-weight:800;font-size:14px;color:var(--ink,#3a2a1a)}
.gc2 .g-done{font-weight:800;color:#2E9A5E;margin-top:8px}
.step.cmp .t small.note{display:none}

.pwa-down{display:flex;flex-direction:column;align-items:center;margin-top:10px;color:#D9541E;font-weight:900;font-size:14px}
.pwa-down b{font-size:34px;line-height:1;animation:pwaBounce 1s ease-in-out infinite}
@keyframes pwaBounce{0%,100%{transform:translateY(0)}50%{transform:translateY(8px)}}
@media (prefers-reduced-motion:reduce){.pwa-down b{animation:none}}

/* ===== v21: layout fixes (iPhone drift, covered buttons) ===== */
.edrow textarea.st-t,.edrow input,.edrow select{font-size:16px}
.coach{transform:translateY(16px) scale(.92);opacity:0}
.coach.on{transform:none;opacity:1}
.buddy{right:max(10px,calc((100vw - var(--col))/2 + 10px));transform:translateY(20px) scale(.6);opacity:0}
.buddy.on{transform:rotate(-6deg);opacity:1}
.buddy.on:active{transform:none}
@media (hover:hover){.buddy.on:hover{transform:none}}
@media (prefers-reduced-motion:no-preference){
 .coach{transition:transform .35s var(--ease-spring),opacity .25s ease,visibility 0s linear .35s}
 .coach.on{transition:transform .45s var(--ease-spring),opacity .2s ease,visibility 0s}
 .buddy{transition:transform .35s var(--ease-spring),opacity .25s ease,visibility 0s linear .35s}
 .buddy.on{transition:transform .45s var(--ease-spring),opacity .2s ease,visibility 0s}}
.set-card .set-row:not(.ny-only),html.ny-season .set-card .set-row.ny-only{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:10px;row-gap:6px}
.set-card .set-row>div{grid-column:1;grid-row:1}
.set-card .set-row>.rm-sw{grid-column:2;grid-row:1}
.set-card .set-row>.rm-play{grid-column:1;grid-row:2;justify-self:start;min-height:40px}
#focusRun{padding-top:calc(env(safe-area-inset-top) + 64px);padding-bottom:calc(env(safe-area-inset-bottom) + 16px)}
#focusRun #focusSpark{width:min(120px,13vh)!important;height:min(120px,13vh)!important;flex:none}
#focusRun .ring{width:min(250px,32vh);height:min(250px,32vh);flex:none}
#focusRun .ring svg{width:100%;height:100%}
@media (max-height:700px){#focusRun #fTitle{font-size:22px!important}#focusRun .ring .tm{font-size:44px}}
.pl-ic,.edrow .pl-ic.del{width:40px;height:44px}
.pl-meta{min-height:44px}
@media (max-width:359px){.pl-ic,.edrow .pl-ic.del{width:34px}}
@media (max-width:519px){button.pill.pro{top:auto;bottom:-11px}}
.g-act{padding:0 48px}
@media (max-width:374px){.inst-ban img{display:none}.inst-ban{gap:6px}}
.inst-x{width:44px;height:44px}
#helpBtn{min-width:40px;min-height:40px}
.rm-play{min-height:40px}

.cl-card h2{margin-bottom:6px}
.cl-status{font-weight:800;font-size:15px;margin:2px 0 10px;color:#2E9A5E}
.cl-status.saving{color:#9a8470}.cl-status.err,.cl-status.off{color:#B4361E}
.cl-code{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0 12px}
.cl-code b{font-family:ui-monospace,Menlo,monospace;font-size:16px;letter-spacing:.04em;background:#FFF1DC;border-radius:10px;padding:8px 10px;overflow-wrap:anywhere;min-width:0}
.btn.sm.cl-move{width:100%;box-sizing:border-box;width:100%;white-space:normal;height:auto;min-height:44px}
