/* Glowbox home: Today's path + My calendar. Every class is gbd- prefixed. */
.gb-daily{min-height:960px;margin-block:20px}
.gb-daily[hidden]{display:none;min-height:0;margin:0}
#gbDaily.gbd-on{min-height:0}
.gbd-duo{display:grid;grid-template-columns:1fr;gap:16px;align-items:stretch}
@media (min-width:900px){
  .gb-daily{min-height:620px;margin-block:28px}
  .gbd-duo{grid-template-columns:7fr 5fr;gap:20px}
}
.gbd-card{background:var(--glass,var(--surface));border-radius:var(--r-lg,28px);box-shadow:var(--shadow);padding:22px 18px;min-width:0;border:1px solid color-mix(in srgb,var(--line) 70%,transparent)}
@media (min-width:900px){.gbd-card{padding:26px}}
.gbd-eyebrow{font-size:12.5px;font-weight:700;letter-spacing:.04em;color:var(--muted)}
.gbd-card h2{margin:6px 0 0;font-size:22px;font-weight:800}
.gbd-card h3{margin:4px 0 14px;font-size:21px;font-weight:800;font-family:var(--f-display)}

/* path */
.gbd-stops{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;position:relative;margin-top:20px}
.gbd-stops::before{content:"";position:absolute;top:37px;left:16%;right:16%;border-top:3px dotted color-mix(in srgb,var(--fg) 22%,transparent)}
@media (min-width:900px){
  .gbd-stops{gap:14px}
  .gbd-stops::before{top:44px}
}
.gbd-stop{position:relative;text-align:center;padding:0 2px;background:none;border:0;color:inherit;min-width:0}
.gbd-dot{display:block;width:74px;height:74px;border-radius:50%;margin:0 auto;overflow:hidden;border:5px solid var(--surface);box-shadow:var(--shadow);position:relative;transition:transform .35s cubic-bezier(.2,.8,.2,1);background:var(--surface2)}
@media (min-width:900px){.gbd-dot{width:88px;height:88px}}
.gbd-stop:hover .gbd-dot,.gbd-stop:focus-visible .gbd-dot{transform:scale(1.06)}
.gbd-dot img{width:100%;height:100%;object-fit:cover;display:block}
.gbd-ph{width:100%;height:100%;display:grid;place-items:center;font-size:30px;font-weight:800;color:hsl(var(--gbd-h) 55% 28%);background:hsl(var(--gbd-h) 70% 85%)}
:root[data-theme="dark"] .gbd-ph{color:hsl(var(--gbd-h) 70% 88%);background:hsl(var(--gbd-h) 35% 28%)}
.gbd-tick{position:absolute;inset:0;background:rgba(18,135,90,.82);display:grid;place-items:center;color:#fff;opacity:0;transition:opacity .3s}
.gbd-stop.is-done .gbd-tick{opacity:1}
.gbd-stop b{display:block;margin-top:10px;font-size:15px;line-height:1.3;overflow-wrap:anywhere}
.gbd-sub{display:block;font-size:13px;color:var(--muted)}
/* one stop just turned done (plays once, on the first home render after it happened) */
.gbd-stop.gbd-lit .gbd-dot{animation:gbd-glow 1.1s cubic-bezier(.2,.8,.2,1) both}
.gbd-stop.gbd-lit .gbd-tick{animation:gbd-tick-in .5s .15s ease-out both}
@keyframes gbd-glow{
  0%{transform:scale(1);box-shadow:0 0 0 0 color-mix(in srgb,var(--good) 60%,transparent),var(--shadow)}
  35%{transform:scale(1.14)}
  100%{transform:scale(1);box-shadow:0 0 0 16px color-mix(in srgb,var(--good) 0%,transparent),var(--shadow)}
}
@keyframes gbd-tick-in{from{opacity:0}to{opacity:1}}
.gbd-lit-msg{margin:14px 0 0;text-align:center;font-size:14px;font-weight:700;color:var(--good)}
.gbd-lit-msg:empty{display:none}

/* seal */
.gbd-seal-row{display:flex;align-items:center;gap:14px;margin-top:20px;padding:14px 16px;border-radius:20px;background:var(--surface2)}
.gbd-seal-row b{display:block}
.gbd-note{font-size:13.5px;color:var(--muted)}
.gbd-seal{width:58px;height:58px;border-radius:50%;border:3px dashed var(--dim);display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:800;font-size:10px;color:var(--muted);flex:none;line-height:1.1;text-align:center}
.gbd-seal .gbd-d{font-size:16px;font-weight:900}
.gbd-seal-row.is-came .gbd-seal{border:3px solid color-mix(in srgb,var(--hot) 45%,transparent);color:var(--hot);background:color-mix(in srgb,var(--hot) 9%,var(--surface))}
.gbd-seal-row.is-done .gbd-seal{border:3px solid var(--hot);color:var(--hot);rotate:-14deg;scale:1.12;background:var(--surface)}
.gbd-seal.gbd-pop{animation:gbd-stamp .6s cubic-bezier(.2,.9,.3,1.3) both}
@keyframes gbd-stamp{
  0%{opacity:0;scale:2.4;rotate:10deg}
  60%{opacity:1;scale:.95;rotate:-16deg}
  100%{scale:1.12;rotate:-14deg}
}

/* calendar */
.gbd-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;max-width:380px}
.gbd-grid span{aspect-ratio:1;border-radius:50%;display:grid;place-items:center;font-size:12.5px;font-weight:700;color:var(--muted);background:var(--surface2);min-width:0}
.gbd-grid .gbd-wk{background:none;font-weight:600;aspect-ratio:auto;padding-bottom:2px;color:var(--dim)}
.gbd-grid .gbd-off{background:none}
.gbd-grid .gbd-hit{background:var(--surface);color:var(--hot);border:2.5px solid var(--hot);rotate:-10deg}
.gbd-grid .gbd-came{background:color-mix(in srgb,var(--hot) 17%,var(--surface2));color:var(--fg)}
.gbd-grid .gbd-rest{position:relative}
.gbd-grid .gbd-rest::after{content:"";position:absolute;left:50%;bottom:14%;width:5px;height:5px;margin-left:-2.5px;border-radius:50%;background:var(--dim);opacity:.75}
.gbd-grid .gbd-today{outline:2.5px dashed var(--fg);outline-offset:1px;color:var(--fg)}
.gbd-grid .gbd-today.gbd-hit{outline:none;scale:1.15}
.gbd-cal p{margin:14px 0 0;font-size:13.5px;color:var(--muted)}
.gbd-legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:12px;font-size:12.5px;color:var(--muted)}
.gbd-legend span{display:inline-flex;align-items:center;gap:6px}
.gbd-k{display:inline-block;width:14px;height:14px;border-radius:50%;position:relative;flex:none}
.gbd-k-came{background:color-mix(in srgb,var(--hot) 17%,var(--surface2))}
.gbd-k-hit{background:var(--surface);border:2px solid var(--hot)}
.gbd-k-rest{background:var(--surface2)}
.gbd-k-rest::after{content:"";position:absolute;left:50%;top:50%;width:4px;height:4px;margin:-2px 0 0 -2px;border-radius:50%;background:var(--dim)}
.gbd-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px;max-width:380px}
.gbd-stat{background:var(--surface2);border-radius:16px;padding:10px 10px 11px;min-width:0}
.gbd-stat b{display:block;font-size:20px;font-weight:800;line-height:1.15;color:var(--fg)}
.gbd-stat span{display:block;margin-top:2px;font-size:12px;line-height:1.3;color:var(--muted);overflow-wrap:anywhere}

/* motion */
.gbd-calm .gbd-dot,.gbd-calm .gbd-tick{transition:none}
.gbd-calm .gbd-seal.gbd-pop,.gbd-calm .gbd-stop.gbd-lit .gbd-dot,.gbd-calm .gbd-stop.gbd-lit .gbd-tick{animation:none}
@media (prefers-reduced-motion:reduce){
  .gbd-dot,.gbd-tick{transition:none}
  .gbd-stop:hover .gbd-dot,.gbd-stop:focus-visible .gbd-dot{transform:none}
  .gbd-seal.gbd-pop,.gbd-stop.gbd-lit .gbd-dot,.gbd-stop.gbd-lit .gbd-tick{animation:none}
}
