/* Dashboard (module "home"). Prefix: hm- */

.hm { display: flex; flex-direction: column; gap: var(--s-5); max-width: 1320px; margin: 0 auto; padding-bottom: var(--s-6); }
.hm-h3 { margin: 0; font: 600 var(--fs-xl)/1.2 var(--font-display); color: var(--text); }
.hm-eyebrow { display: inline-block; font: 700 var(--fs-xs)/1.2 var(--font-ui); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.hm-eyebrow b { color: var(--text); }
.hm-link { padding: 0; border: 0; background: none; color: var(--link); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* ----- hero ----- */
.hm-hero { display: flex; align-items: flex-start; gap: var(--s-6); padding: var(--s-2) var(--s-1) 0; }
.hm-hero-main { flex: 1 1 auto; min-width: 0; }
.hm-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.hm-title {
  margin: var(--s-3) 0 0; font: 700 clamp(30px, 3.6vw, 46px)/1.05 var(--font-display);
  letter-spacing: -0.01em; color: var(--text); overflow-wrap: anywhere;
}
.hm-squiggle { display: block; width: 232px; height: 12px; margin-top: var(--s-1); fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
.hm-logline { margin-top: var(--s-3); max-width: 70ch; font-size: var(--fs-lg); line-height: 1.45; color: var(--text-2); }
.hm-logline .inline-edit { display: inline; }
.hm-logline textarea { width: 100%; font-size: var(--fs-md); }
.hm-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-4); }

.hm-next {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--control-h-lg);
  padding: var(--s-1) var(--s-3) var(--s-1) var(--s-1);
  font: inherit; color: var(--text); text-align: left; cursor: pointer;
  background: var(--c-soft); border: var(--bw) dashed var(--c-ink); border-radius: var(--r-pill);
}
.hm-next:hover { border-style: solid; background: var(--surface); }
.hm-next-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--c); color: var(--on-candy); border: var(--bw) solid var(--line); }
.hm-next-text { display: flex; flex-direction: column; line-height: 1.15; }
.hm-next-text small { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-ink); }
.hm-next-text span { font-weight: 700; }

.hm-countdown {
  flex: none; margin: var(--s-3) var(--s-3) 0 0; padding: var(--s-3) var(--s-4);
  display: flex; align-items: center; gap: var(--s-3); max-width: 230px;
  background: var(--c); color: var(--on-candy);
  border: var(--bw) solid var(--line); border-radius: 18px; box-shadow: var(--shadow-md);
  transform: rotate(3deg);
}
.hm-countdown b { font: 700 42px/0.9 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hm-countdown span { font: 700 var(--fs-sm)/1.2 var(--font-ui); letter-spacing: 0.04em; text-transform: uppercase; }
@media (prefers-reduced-motion: no-preference) {
  .hm-countdown { transition: transform 0.2s ease; }
  .hm-countdown:hover { transform: rotate(-2deg) scale(1.03); }
}

/* ----- start (empty project) ----- */
.hm-start { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.hm-start-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); padding: var(--s-5);
  background: var(--c-soft); border: var(--bw) solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md);
}
.hm-start-card h3 { margin: var(--s-1) 0 0; font: 600 var(--fs-xl)/1.2 var(--font-display); color: var(--text); }
.hm-start-card p { margin: 0 0 var(--s-2); color: var(--text-2); line-height: 1.45; flex: 1; }
.hm-start-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--c); color: var(--on-candy); border: var(--bw) solid var(--line); box-shadow: var(--shadow-sm); }

/* ----- stat tiles ----- */
.hm-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.hm-tile {
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
  padding: 14px var(--s-4) var(--s-4); text-align: left; font: inherit; cursor: pointer;
  color: var(--on-candy); background: var(--c);
  border: var(--bw) solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out;
}
.hm-tile:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.hm-tile:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 0 var(--shadow-color); }
.hm-tile:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hm-tile-head { display: flex; align-items: center; gap: var(--s-2); font: 700 var(--fs-xs)/1 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; }
.hm-tile-icon { display: grid; place-items: center; width: 28px; height: 28px; flex: none; background: var(--paper); color: var(--paper-ink); border: var(--bw) solid var(--line); border-radius: 9px; }
.hm-tile-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-tile-go { margin-left: auto; flex: none; }
.hm-tile-value { display: flex; align-items: baseline; gap: 6px; min-width: 0; font: 600 var(--fs-lg)/1 var(--font-display); white-space: nowrap; }
.hm-tile-value b { font: 700 38px/1 var(--font-display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.hm-tile-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 22px; font-size: var(--fs-sm); font-weight: 700; }
.hm-pill {
  padding: 2px 8px; border-radius: var(--r-pill);
  background: var(--paper); color: var(--paper-ink); border: var(--bw-thin) solid var(--line);
  font-size: var(--fs-xs); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.hm-meter { position: relative; display: block; flex: 1 1 60px; min-width: 50px; height: 10px; overflow: hidden; background: var(--paper); border: var(--bw-thin) solid var(--line); border-radius: var(--r-pill); }
.hm-meter > span { position: absolute; inset: 0 auto 0 0; background: var(--paper-ink); border-radius: var(--r-pill); }
.hm-meter-line { flex: 0 1 160px; }
.hm-meter-line > span { background: var(--c); }

/* ----- rows ----- */
.hm-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-5); align-items: start; }
.hm-row-ticket { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; }
.hm-col { display: flex; flex-direction: column; gap: var(--s-5); min-width: 0; }
.hm-card { min-width: 0; }

/* ----- ticket ----- */
.hm-ticket {
  position: relative; overflow: hidden; min-width: 0;
  display: grid; grid-template-columns: 112px minmax(0, 1fr);
  background: var(--surface); color: var(--text);
  border: var(--bw) solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md);
}
.hm-ticket::before, .hm-ticket::after {
  content: ""; position: absolute; left: 101px; width: 20px; height: 20px; border-radius: 50%; z-index: 1;
  background: var(--canvas); border: var(--bw) solid var(--line);
}
.hm-ticket::before { top: -12px; }
.hm-ticket::after { bottom: -12px; }
.hm-ticket-stub {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: var(--s-4) var(--s-2); background: var(--c); color: var(--on-candy);
  border-right: var(--bw) dashed var(--line);
}
.hm-stub-label { font: 700 var(--fs-xs)/1 var(--font-ui); letter-spacing: 0.16em; text-transform: uppercase; }
.hm-stub-num { font: 700 72px/0.95 var(--font-display); font-variant-numeric: tabular-nums; }
.hm-stub-of { padding: 3px 10px; font: 700 var(--fs-xs)/1 var(--font-ui); white-space: nowrap; background: var(--paper); color: var(--paper-ink); border: var(--bw-thin) solid var(--line); border-radius: var(--r-pill); }
.hm-ticket-body { display: flex; flex-direction: column; gap: var(--s-3); padding: 14px var(--s-4) var(--s-4) 18px; min-width: 0; }
.hm-ticket-date { margin: var(--s-1) 0 0; font: 700 28px/1.05 var(--font-display); }
.hm-ticket-loc { display: flex; align-items: center; gap: 6px; margin: var(--s-1) 0 0; font-weight: 700; color: var(--text-2); }
.hm-ticket-text { margin: 0; color: var(--text-2); line-height: 1.45; }
.hm-ticket-hint { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }
.hm-ticket-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: auto; }
.hm-ticket-empty .hm-ticket-body { justify-content: center; }
.hm-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.hm-fact { padding: 7px 10px 8px; background: var(--surface-sunken); border-radius: var(--r-sm); min-width: 0; }
.hm-fact-label { display: block; font: 700 10.5px/1.2 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.hm-fact-value { display: block; margin-top: 2px; font: 800 18px/1.15 var(--font-ui); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hm-fact-value small { font: 800 var(--fs-xs)/1 var(--font-ui); }
.hm-cast { display: flex; flex-direction: column; gap: 6px; }
.hm-cast-list { display: flex; flex-wrap: wrap; gap: 6px; }
.hm-cast-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 2px; font-size: var(--fs-sm); font-weight: 700; background: var(--red-soft); color: var(--text); border-radius: var(--r-pill); }
.hm-cast-num { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; font-size: var(--fs-xs); background: var(--red); color: var(--on-candy); border: var(--bw-thin) solid var(--line); border-radius: var(--r-pill); }

.hm-daylight-bar { position: relative; height: 14px; background: var(--indigo); border: var(--bw-thin) solid var(--line); border-radius: var(--r-pill); }
.hm-daylight-day { position: absolute; top: 0; bottom: 0; background: var(--yellow); border-left: var(--bw-thin) solid var(--line); border-right: var(--bw-thin) solid var(--line); }
.hm-daylight-mark { position: absolute; top: -6px; bottom: -6px; width: 5px; margin-left: -2.5px; border: 1px solid var(--line); border-radius: 2px; }
.hm-daylight-call, .hm-key-call { background: var(--pink); }
.hm-daylight-wrap, .hm-key-wrap { background: var(--surface); }
.hm-daylight-labels { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); flex-wrap: wrap; margin-top: 8px; font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); }
.hm-daylight-labels > span { display: inline-flex; align-items: center; gap: 5px; }
.hm-daylight-labels b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.hm-daylight-key i { display: inline-block; width: 5px; height: 12px; border: 1px solid var(--line); border-radius: 2px; }
.hm-daylight-key .hm-key-wrap { margin-left: var(--s-2); }

/* ----- next steps ----- */
.hm-steps { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4); min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.hm-steps-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.hm-ring {
  --pct: 0; flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: conic-gradient(var(--green) calc(var(--pct) * 1%), var(--surface-sunken) 0);
  border: var(--bw) solid var(--line);
}
.hm-ring span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: var(--bw-thin) solid var(--line); font: 700 var(--fs-xs)/1 var(--font-display); }
.hm-step-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.hm-step {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto; gap: var(--s-1) var(--s-3);
  padding: var(--s-3); text-align: left; font: inherit; color: var(--text); cursor: pointer;
  background: var(--c-soft); border: var(--bw) solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm);
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out;
}
.hm-step:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow-md); }
.hm-step:active { transform: translate(2px, 2px); box-shadow: none; }
.hm-step-icon { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--c); color: var(--on-candy); border: var(--bw) solid var(--line); }
.hm-step-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hm-step-title { font-weight: 800; line-height: 1.25; }
.hm-step-sub { font-size: var(--fs-sm); line-height: 1.35; color: var(--text-2); }
.hm-step-go { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); font-weight: 700; color: var(--c-ink); }
.hm-steps-done { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4); background: var(--green-soft); border-radius: var(--r-md); color: var(--text); }
.hm-done-list { display: flex; flex-wrap: wrap; gap: 6px; padding-top: var(--s-2); border-top: 1px dashed var(--border); }
.hm-done { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; font-size: var(--fs-xs); font-weight: 700; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-pill); }
.hm-done .icon { color: var(--ok-text); }

/* ----- pipeline ----- */
.hm-pipeline { padding: var(--s-5) var(--s-5) var(--s-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.hm-pipe-track { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: var(--s-7); border: var(--bw) solid var(--line); border-radius: var(--r-pill); background: var(--surface-2); }
.hm-pipe-stage {
  display: flex; align-items: center; justify-content: center; gap: var(--s-2); min-width: 0; padding: var(--s-2) var(--s-3);
  background: var(--surface-2); color: var(--text-2); font-weight: 700; font-size: var(--fs-sm);
}
.hm-pipe-stage + .hm-pipe-stage { border-left: var(--bw) solid var(--line); }
.hm-pipe-stage:first-child { border-radius: var(--r-pill) 0 0 var(--r-pill); }
.hm-pipe-stage:last-child { border-radius: 0 var(--r-pill) var(--r-pill) 0; }
.hm-pipe-stage.is-past { background: var(--c-soft); color: var(--text); }
.hm-pipe-stage.is-now { background: var(--c); color: var(--on-candy); }
.hm-pipe-icon { display: grid; place-items: center; flex: none; }
.hm-pipe-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-pipe-marker { position: absolute; top: -12px; width: 0; height: 0; margin-left: -8px; border: 8px solid transparent; border-top: 10px solid var(--text); border-bottom: 0; pointer-events: none; }
.hm-pipe-flag {
  position: absolute; bottom: calc(100% + 12px); left: 0; transform: translateX(-50%);
  padding: 2px 10px; white-space: nowrap; font: 700 var(--fs-xs)/1.4 var(--font-ui);
  background: var(--tooltip-bg); color: var(--tooltip-fg); border-radius: var(--r-pill);
}
.hm-pipe-marker.is-start .hm-pipe-flag { left: -14px; transform: none; }
.hm-pipe-marker.is-end .hm-pipe-flag { left: auto; right: -14px; transform: none; }
.hm-pipe-foot { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--text-2); }
.hm-pipe-foot b { color: var(--text); font-variant-numeric: tabular-nums; }

/* ----- storyboard strip ----- */
.hm-frames { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
.hm-frame { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.hm-frame-box {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; padding: 0; cursor: pointer;
  background: var(--paper); color: var(--paper-ink); border: var(--bw) solid var(--line); border-radius: var(--r-sm);
}
.hm-frame-box:hover { box-shadow: var(--shadow-sm); }
.hm-frame-img { width: 100%; height: 100%; display: block; }
.hm-frame-svg, .hm-frame-svg svg { display: block; width: 100%; height: 100%; }
.hm-frame-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 100%; font-size: var(--fs-xs); font-weight: 700; }
.hm-frame-label {
  position: absolute; left: 5px; top: 5px; padding: 2px 6px;
  font: 700 10.5px/1.2 var(--font-ui); font-variant-numeric: tabular-nums;
  background: var(--red); color: var(--on-candy); border: var(--bw-thin) solid var(--line); border-radius: var(--r-xs);
}
.hm-frame-cap { font-size: var(--fs-sm); line-height: 1.3; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-frames-foot { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px dashed var(--border); font-size: var(--fs-sm); color: var(--text-2); }
.hm-frames-foot b { color: var(--text); font-variant-numeric: tabular-nums; }
.hm-frames-foot .hm-meter { background: var(--surface-sunken); }

/* ----- script page ----- */
.hm-paper {
  position: relative; display: block; width: 100%; max-height: 520px; overflow: hidden; text-align: left; cursor: text;
  padding: 20px 24px 22px 52px; font: 400 13.5px/1.36 var(--font-script);
  color: var(--paper-ink); background: var(--paper);
  border: var(--bw) solid var(--line); border-radius: 4px; box-shadow: 3px 3px 0 0 var(--blue);
}
.hm-paper::before {
  content: ""; position: absolute; left: 14px; top: 16px; bottom: 16px; width: 12px;
  background-image: radial-gradient(circle, var(--surface-sunken) 0 4px, var(--border) 4.2px 5.4px, transparent 5.8px);
  background-size: 12px 110px; background-repeat: repeat-y;
}
.hm-paper > span { display: block; }
.hm-paper .sp-slug { position: relative; margin-top: 1.36em; font-weight: 700; }
.hm-paper .sp-slug:first-child { margin-top: 0; }
.hm-paper .sp-slug::before { content: attr(data-scene); position: absolute; left: -30px; font-weight: 400; opacity: 0.6; }
.hm-paper .sp-action { margin-top: 1.36em; }
.hm-paper .sp-char { margin: 1.36em 0 0 22ch; }
.hm-paper .sp-paren { margin-left: 16ch; }
.hm-paper .sp-dialog { margin-left: 10ch; max-width: 35ch; }
.hm-paper .sp-trans { margin-top: 1.36em; text-align: right; }
.hm-paper .sp-center { margin-top: 1.36em; text-align: center; }
.hm-paper-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(to bottom, transparent, var(--paper)); }
.hm-paper-empty { cursor: pointer; }
.hm-paper-empty .sp-action { opacity: 0.7; }

/* ----- agenda ----- */
.hm-agenda, .hm-tasks, .hm-legend { list-style: none; margin: 0; padding: 0; }
.hm-agenda { display: flex; flex-direction: column; gap: 2px; }
.hm-agenda-item {
  display: flex; align-items: center; gap: var(--s-3); width: 100%; padding: 6px var(--s-2); text-align: left;
  font: inherit; color: var(--text); background: none; border: 0; border-radius: var(--r-sm); cursor: pointer;
}
.hm-agenda-item:hover { background: var(--hover); }
.hm-date-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px;
  background: var(--c); color: var(--on-candy); border: var(--bw) solid var(--line); border-radius: var(--r-sm);
}
.hm-date-chip small { font: 700 10px/1 var(--font-ui); text-transform: uppercase; letter-spacing: 0.06em; }
.hm-date-chip b { font: 700 19px/1 var(--font-display); }
.hm-agenda-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hm-agenda-title { font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-agenda-sub { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--text-muted); font-weight: 600; }

/* ----- tasks ----- */
.hm-tasks { display: flex; flex-direction: column; }
.hm-task { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); padding: var(--s-2) 0; border-top: 1px dashed var(--border); }
.hm-task:first-child { border-top: 0; padding-top: 0; }
.hm-task-check {
  display: grid; place-items: center; width: 24px; height: 24px; padding: 0; cursor: pointer;
  color: transparent; background: var(--field-bg); border: var(--bw) solid var(--line); border-radius: 7px;
}
.hm-task-check:hover:not(:disabled) { color: var(--text-muted); background: var(--green-soft); }
.hm-task.is-done .hm-task-check { color: var(--on-candy); background: var(--green); }
.hm-task-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 0; text-align: left; font: inherit; color: var(--text); background: none; border: 0; cursor: pointer; }
.hm-task-title { font-weight: 700; line-height: 1.3; }
.hm-task-main:hover .hm-task-title { text-decoration: underline; }
.hm-task.is-done .hm-task-title { color: var(--text-muted); text-decoration: line-through; }
.hm-task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); }
.hm-task-meta > span { display: inline-flex; align-items: center; gap: 3px; }
.hm-due.is-late { color: var(--danger-text); font-weight: 800; }
.hm-due.is-today { color: var(--warn-text); font-weight: 800; }
.hm-prio { padding: 0 6px; border-radius: var(--r-pill); background: var(--red-soft); color: var(--red-ink); }
@media (prefers-reduced-motion: no-preference) {
  .hm-task.is-done .hm-task-check { animation: hm-pop 0.35s ease-out; }
  @keyframes hm-pop { 0% { transform: scale(0.6); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }
}

/* ----- budget ----- */
.hm-budget { display: flex; align-items: center; gap: var(--s-4); }
.hm-donut { width: 138px; height: 138px; flex: none; }
.hm-donut-track { fill: none; stroke: var(--surface-sunken); stroke-width: 22; }
.hm-donut-seg { fill: none; stroke-width: 22; transform: rotate(-90deg); transform-origin: 60px 60px; }
.hm-donut-ring { fill: none; stroke: var(--line); stroke-width: 2; }
.hm-donut-total { font: 700 15px var(--font-display); fill: var(--text); }
.hm-donut-sub { font: 600 9px var(--font-ui); fill: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.hm-legend { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; font-size: var(--fs-sm); }
.hm-legend li { display: flex; align-items: center; gap: var(--s-2); }
.hm-legend-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.hm-legend .num { font-weight: 700; }
.hm-swatch { width: 12px; height: 12px; flex: none; border: var(--bw-thin) solid var(--line); border-radius: 4px; }
.hm-spent { display: flex; flex-direction: column; gap: 6px; margin-top: var(--s-4); }

/* ----- launcher ----- */
.hm-launcher { display: flex; flex-direction: column; gap: var(--s-3); }
.hm-launch-groups { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-4); }
.hm-launch-group { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.hm-launch-list { display: flex; flex-direction: column; gap: var(--s-1); }
.hm-launch {
  display: flex; align-items: center; gap: var(--s-2); padding: 6px; text-align: left; font: inherit; color: var(--text);
  background: none; border: var(--bw) solid transparent; border-radius: var(--r-md); cursor: pointer;
}
.hm-launch:hover { background: var(--c-soft); border-color: var(--line); box-shadow: var(--shadow-sm); }
.hm-launch-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--c); color: var(--on-candy); border: var(--bw) solid var(--line); }
.hm-launch-text { display: flex; flex-direction: column; min-width: 0; }
.hm-launch-title { font-weight: 800; font-size: var(--fs-md); }
.hm-launch-blurb { font-size: var(--fs-xs); line-height: 1.3; color: var(--text-muted); }

/* ----- responsive ----- */
@media (max-width: 1240px) {
  .hm-launch-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .hm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-row, .hm-row-ticket { grid-template-columns: minmax(0, 1fr); }
  .hm-frames { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hm-hero { flex-direction: column; gap: var(--s-3); }
  .hm-countdown { margin: 0; }
  .hm-start { grid-template-columns: minmax(0, 1fr); }
  .hm-step-grid { grid-template-columns: minmax(0, 1fr); }
  .hm-launch-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-pipe-label { font-size: var(--fs-xs); }
}
@media (max-width: 560px) {
  .hm-tiles, .hm-launch-groups { grid-template-columns: minmax(0, 1fr); }
  .hm-pipe-icon { display: none; }
}
