





.warn-text { color: var(--warn); }
.crit-text { color: var(--crit); font-weight: var(--fw-med); }


.sk-dmg-dot { fill: var(--warn); }
.sk-dmg-halo { fill: var(--warn); opacity: .18; }
.sk-dmg-x { stroke: var(--on-warn); stroke-width: 1.8; stroke-linecap: round; fill: none; }
.sk-damage.critical .sk-dmg-dot, .sk-damage.functional .sk-dmg-dot { fill: var(--crit); }
.sk-damage.critical .sk-dmg-halo, .sk-damage.functional .sk-dmg-halo { fill: var(--crit); opacity: .2; }
.sk-damage.critical .sk-dmg-x, .sk-damage.functional .sk-dmg-x { stroke: var(--on-crit); }

.sk-damage.critical .sk-dmg-halo { animation: breathe var(--pulse-marker) ease-in-out infinite; }
.sk-place { fill: var(--accent); fill-opacity: 0; cursor: crosshair; }


.dmg-line {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  background: none;
  border: none;
  border-block-start: 1px solid var(--line);
  border-radius: 0;
  padding: var(--sp-4) var(--sp-1) 0;
  color: var(--ink);
  font-weight: var(--fw-semi);
  text-align: start;
}


.dmg-line:hover { filter: none; color: var(--ink); }
.dmg-line.has, .dmg-line.has:hover { color: var(--crit); }
.dmg-caret { margin-inline-start: auto; display: inline-flex; flex: none;
             transform: rotate(180deg); transition: transform var(--t) var(--ease); }
.dmg-line.open .dmg-caret { transform: rotate(270deg); }





.dmg-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-2) var(--sp-4);
           align-items: start; padding-block: var(--sp-4); }
.dmg-row + .dmg-row { border-block-start: 1px solid var(--line); }
.dmg-main { min-width: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.dmg-sev { width: 10px; height: 10px; border-radius: var(--r-pill); flex: none; background: var(--warn); }
.dmg-sev.functional, .dmg-sev.critical { background: var(--crit); }


.ho-go {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex: 1 1 12rem;
  padding: var(--sp-4) var(--sp-6);
  font-size: var(--fs-m);
  font-weight: var(--fw-semi);
}


.ho-go.checkout { background: none; color: var(--accent); }
.ho-go.checkout:hover { background: var(--accent-soft); }
.ho-go.resumed { border-color: var(--warn); }


.ho { display: flex; flex-direction: column; gap: var(--sp-5); }
.ho .card { margin: 0; }
.ho-resumed { align-self: flex-start; }
.ho-steps { display: flex; gap: var(--sp-2); overflow-x: auto; padding-block-end: var(--sp-1); }
.ho-step {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex: 1 1 auto;
  white-space: nowrap;
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-s);
  padding: var(--sp-3) var(--sp-4);
}
.ho-step:hover { filter: none; color: var(--ink); }
.ho-step.active { border-color: var(--accent); background: var(--accent-soft); color: var(--ink);
                  font-weight: var(--fw-semi); }
.ho-step.done { color: var(--ink); }
.ho-nav { justify-content: space-between; }
.ho-nav button { min-width: 8rem; }


.ho-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: var(--sp-5); }
.ho-slot {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--sp-4);
}
.ho-slot.has { border-color: var(--ok); }
.ho-slot-head { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.ho-slot-name { font-size: var(--fs-s); font-weight: var(--fw-semi); }
.ho-tick { color: var(--ok); font-weight: var(--fw-bold); }
.ho-slot-act { gap: var(--sp-3); }


.ho-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ho-pair { display: flex; flex-direction: column; gap: var(--sp-3); }
.ho-side { display: flex; flex-direction: column; gap: var(--sp-1); }
.ho-side-label { font-size: var(--fs-xs); color: var(--muted); letter-spacing: .04em; }
.ho-shot { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-s); overflow: hidden;
           background: var(--bg2); }


.ho-shot.empty { display: flex; align-items: center; justify-content: center;
                 border: 1px dashed var(--line); background: none; }
.ho-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ho-del { position: absolute; inset-block-start: var(--sp-2); inset-inline-end: var(--sp-2);
          background: var(--card); }


.ph-cmp-tools { display: flex; gap: var(--sp-2); flex-wrap: wrap; grid-column: 1 / -1; }
.ph-cmp-btn { cursor: pointer; border: 1px solid var(--line); background: var(--card); min-height: 2rem; }
.ph-cmp-btn[aria-pressed="true"] { background: var(--accent-dim); color: var(--on-accent); border-color: var(--accent-dim); }
.ph-ov-wrap { grid-column: 1 / -1; }
.ph-ov { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-s); overflow: hidden; background: var(--bg2);
         touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; }
.ph-ov .ph-ov-img { position: absolute; inset: 0; }
.ph-ov-clip { position: absolute; inset: 0; overflow: hidden; }
.ph-ov-bar { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--on-accent);
             box-shadow: var(--shadow); z-index: 2; }
.ph-ov-grip { position: absolute; top: 50%; left: 50%; width: 1.75rem; height: 1.75rem; margin: -.875rem 0 0 -.875rem;
              border-radius: 50%; background: var(--on-accent); box-shadow: var(--shadow); }
.ph-ov-tag { position: absolute; top: var(--sp-2); z-index: 3; font-size: var(--fs-xs); padding: 0 var(--sp-2);
             border-radius: var(--r-s); background: var(--overlay); color: var(--on-accent); pointer-events: none; }
.ph-ov-tag-l { left: var(--sp-2); }
.ph-ov-tag-r { right: var(--sp-2); }
.ho-full .ph-ov { background: var(--overlay); }


.ho-odo { max-width: 9rem; font-size: var(--fs-xl); font-weight: var(--fw-semi); }
.ho-level + .ho-level { margin-block-start: var(--sp-5); padding-block-start: var(--sp-4);
                        border-block-start: 1px solid var(--line); }
.ho-level-k { font-weight: var(--fw-semi); }
.ho-level-v { color: var(--muted); }
input[type='range'].ho-range {
  width: 100%;
  max-width: none;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  accent-color: var(--accent);
}





.veh-sketch.placing { border-color: var(--accent); }

.pin-pick .veh-sketch { padding: var(--sp-3); }
.pin-pick .sketch { inline-size: 100%; block-size: auto; }
.ho-place-hint { text-align: center; color: var(--accent); font-size: var(--fs-s); margin-block-start: var(--sp-3); }
.ho-dmg-form textarea, .ho-dmg-form input[type='text'] { max-width: none; }


.ho-sum-row { align-items: baseline; }

.ho-sum-extras > :first-child { flex: none; }
.ho-sum-extras > :last-child { min-inline-size: 0; text-align: end; overflow-wrap: anywhere; font-weight: var(--fw-med); }
.ho-sign { width: 100%; padding: var(--sp-5); font-size: var(--fs-l); font-weight: var(--fw-semi); }
.ho-done { border-color: var(--ok); }
.ho-warns { border-color: var(--warn); }


.yd { display: flex; flex-direction: column; gap: var(--sp-5); }
.yd .card { margin: 0; }



.yd-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.yd-day { display: flex; flex-direction: column; min-width: 0; }









.yd-dnum {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.55em; height: 1.55em; padding-inline: .18em;
  border-radius: var(--r-pill); vertical-align: middle;
  font-weight: var(--fw-semi); line-height: 1; color: inherit;
}


.yd-dnum.today, .yd-dnum[aria-current='date'] { background: var(--crit); color: var(--on-crit); }
.yd-fwd svg { transform: rotate(180deg); }
.yd-conflicts { display: flex; flex-direction: column; gap: var(--sp-4); }
.yd-tools { justify-content: space-between; }
.yd-list { display: flex; flex-direction: column; padding: var(--sp-3) var(--sp-5); }


.yd-time { flex: none; width: 4.2rem; font-weight: var(--fw-semi); font-size: var(--fs-m); }
.yd-time.planned { color: var(--muted); font-weight: var(--fw-reg); }
.yd-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.yd-sub { gap: var(--sp-3); }
.yd-code { font-weight: var(--fw-semi); }
.yd-task-title { font-weight: var(--fw-med); }
.yd-task-pill { background: var(--neutral-soft); }
.yd-act { gap: var(--sp-3); }
.yd-act button { padding: var(--sp-2) var(--sp-5); }
.yd-empty { padding: var(--sp-8) 0; text-align: center; }




.yd-my { display: flex; flex-direction: column; gap: var(--sp-5); max-width: 34rem; }
.yd-my-card { display: flex; flex-direction: column; gap: var(--sp-3); margin: 0; }
.yd-my-card.done { opacity: .6; }
.yd-my-card.overdue { border-color: var(--crit-line); }
.yd-my-code { font-size: var(--fs-xl); font-weight: var(--fw-bold); }
.yd-my-title { font-size: var(--fs-l); }
.yd-my-act { gap: var(--sp-4); margin-block-start: var(--sp-2); }
.yd-big { flex: 1 1 8rem; max-width: 16rem; padding: var(--sp-5); font-size: var(--fs-l);
          font-weight: var(--fw-semi); }
.yd-my-done { margin-block-start: var(--sp-6); }

@media (max-width: 719px) {



  .ho-slots { grid-template-columns: 1fr; }
  .ho-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
  .ho-nav button { min-width: 6rem; }
  .ho-step span:not(.ho-step-n) { display: none; }
  .ho-step { flex: 1 1 0; justify-content: center; }
  .ho-go { flex-basis: 100%; }
  .yd-time { width: 3.4rem; font-size: var(--fs-s); }
  .yd-list { padding: var(--sp-2) var(--sp-4); }
}















.ho-big {
  min-height: 52px;
  padding: var(--sp-5) var(--sp-6);
  font-size: var(--fs-l);
  font-weight: var(--fw-semi);
  border-radius: var(--r);
}
.ho-shoot { width: 100%; }


.ho-cam { gap: var(--sp-4); }
.ho-cam-top { align-items: baseline; }
.ho-cam-slot { font-size: var(--fs-l); font-weight: var(--fw-semi); }
.ho-cam-count { color: var(--muted); font-size: var(--fs-m); }



.ho-dots {
  display: flex; gap: var(--sp-2); flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; padding: 3px 3px var(--sp-1); scrollbar-width: none;
}
.ho-dots::-webkit-scrollbar { display: none; }
.ho-dot {
  flex: 0 0 auto; width: 64px; min-height: 56px; padding: var(--sp-1) 2px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: var(--r-s); background: var(--neutral-soft); border: 1px solid var(--line);
  color: var(--muted); scroll-snap-align: center;
}
.ho-dot-pic { position: relative; display: grid; place-items: center; width: 40px; height: 28px; }
.ho-glyph { width: 26px; height: 26px; }
.ho-dot-thumb { width: 40px; height: 28px; object-fit: cover; border-radius: var(--r-s); display: block; }
.ho-dot-ok {
  position: absolute; inset-block-end: -4px; inset-inline-end: -5px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--ok); color: var(--on-accent);
  font-size: 10px; line-height: 15px; text-align: center; font-weight: var(--fw-bold);
}
.ho-dot-label {
  font-size: var(--fs-xs); line-height: 1.15; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ho-dot.has { background: var(--ok-soft); border-color: var(--ok); color: var(--ink); }
.ho-dot.now { outline: 2px solid var(--accent); outline-offset: 1px; color: var(--ink); }


.lock-banner { border-inline-start: 4px solid var(--warn); background: var(--warn-soft); }
.lock-banner .lock-takeover { width: 100%; min-height: 44px; }
.ho-cam-stage .ho-shot { aspect-ratio: 4 / 3; }
.ho-cam-nav { gap: var(--sp-3); }
.ho-cam-nav button { flex: 1 1 0; min-height: 44px; }
.ho-cam-sum { text-align: center; }

.ho-then-line {
  display: flex; align-items: center; gap: var(--sp-4); width: 100%;
  padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-s);
  background: var(--card2); text-align: start;
  color: var(--ink);
}
.ho-then-thumb { width: 56px; height: 42px; object-fit: cover; border-radius: var(--r-s); flex: none; }
.ho-shot.tap { cursor: zoom-in; }


.ho-full {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; gap: var(--sp-4);
  padding: var(--sp-5); background: var(--bg);
}
.ho-full-head { display: flex; align-items: center; gap: var(--sp-3); }
.ho-full-name { font-size: var(--fs-l); font-weight: var(--fw-semi); }






.ho-full-stage {
  flex: 1 1 auto; min-height: 0; aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  background: var(--overlay); border-radius: var(--r-s); overflow: hidden;
}
.ho-full-img { max-width: 100%; max-height: 100%; display: block; object-fit: contain; }

.ho-full-act { display: flex; gap: var(--sp-4); }
.ho-full-act .ho-big { flex: 1 1 0; }




.ho-guide { margin: 0; color: var(--ink); }
.ho-guide-match { margin: 0; color: var(--accent); font-weight: var(--fw-semi); }




.ho-full-cmp { aspect-ratio: auto; background: none; align-items: center; }
.ho-full-cmp .ho-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); width: 100%; }
.ho-full-warns { display: flex; gap: var(--sp-3); flex-wrap: wrap; justify-content: center; }



.ph-gal-nav { display: flex; align-items: center; justify-content: center; gap: var(--sp-4); }
.ph-gal-btn { min-width: var(--ctl, 44px); min-height: var(--ctl, 44px); justify-content: center; }
.ph-gal-next svg { transform: scaleX(-1); }
.ph-gal-pos { min-width: 4ch; text-align: center; }
@media (orientation: portrait) {
  .ho-full-cmp.dmg-cmp .ho-pair { grid-template-columns: minmax(0, 1fr); }
}





.ho-full { overflow-y: auto; }
.ho-full-cmp { flex: 0 1 auto; align-items: flex-start; }
.ho-full-act { margin-block-start: auto; }

.ho-full .ho-shot { background: var(--overlay); }
.ho-full .ho-img { object-fit: contain; }

.ho-img, .ho-full-img { image-orientation: from-image; }




.ph-zoom { touch-action: none; }
.ph-zoom img { transform-origin: 50% 50%; user-select: none; -webkit-user-select: none; -webkit-user-drag: none;
               -webkit-touch-callout: none; }
.ph-zoom.zoomed { cursor: grab; }




.ho-full-stage { position: relative; }
.ph-ribbon {
  position: absolute; inset-inline: 0; inset-block-start: 0; z-index: 1;
  padding: var(--sp-1) var(--sp-2);
  background: var(--ink);
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  color: var(--bg); font-size: var(--fs-xs); line-height: 1.3;
  pointer-events: none; overflow-wrap: anywhere;
}
.ho-shot .ho-del { z-index: 2; }
.ho-del ~ .ph-ribbon { padding-inline-end: calc(44px + var(--sp-3)); }







.ho-full.ho-live {
  display: flex; flex-direction: column; gap: var(--sp-3); overflow: hidden;


  background: linear-gradient(var(--overlay), var(--overlay)), var(--bg); color: var(--on-accent);
  padding: max(var(--sp-3), env(safe-area-inset-top)) max(var(--sp-3), env(safe-area-inset-right))
           max(var(--sp-3), env(safe-area-inset-bottom)) max(var(--sp-3), env(safe-area-inset-left));
}
.ho-live-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-3); }
.ho-live-name { font-size: var(--fs-l); font-weight: var(--fw-semi); }
.ho-live-label { font-size: var(--fs-s); opacity: .85; }
.ho-live-guide { margin: 0; flex-basis: 100%; font-size: var(--fs-s); }



.ho-live-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; border-radius: var(--r-s);
                 display: flex; align-items: center; justify-content: center; }
.ho-live-frame { position: relative; overflow: hidden; }
.ho-live-video, .ho-live-ref { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ho-live-video { object-fit: cover; }
.ho-live-ref { object-fit: fill; pointer-events: none; }
.ho-live-turn { position: absolute; inset-block-start: var(--sp-3); inset-inline-start: 50%;
                transform: translateX(-50%); z-index: 1; pointer-events: none; }
.ho-live-turn[hidden] { display: none; }
.ho-live-msg { margin: 0; text-align: center; font-weight: var(--fw-semi); }
.ho-live-msg[hidden] { display: none; }




.ho-live-act { display: grid; grid-template-columns: auto minmax(0, 1fr);
               grid-template-areas: "cancel side" "main main"; align-items: center; gap: var(--sp-3); }
.ho-live-act > .ho-live-cancel { grid-area: cancel; justify-self: start; }
.ho-live-act > .ho-live-side { grid-area: side; justify-self: end; min-width: 0; }
.ho-live-act > .ho-live-shutter { grid-area: main; justify-self: center; }
.ho-live-act > .ho-live-walk-go { grid-area: main; justify-self: stretch; }
.ho-live-act button { min-width: 48px; }
.ho-live-act button, .ho-live-native { min-height: 52px; }
.ho-live button.ghost { color: var(--on-accent); border: 1px solid var(--on-accent); background: none; }
.ho-live-shutter {
  width: 76px; height: 76px; min-height: 76px; padding: 0; border-radius: 50%;
  background: var(--on-accent); border: 6px solid var(--overlay); box-shadow: 0 0 0 3px var(--on-accent);
}
.ho-live-shutter:active { transform: scale(.94); }
.ho-live-native { align-self: center; }


.ho-live-native[hidden], .ho-live-torch[hidden], .ho-live-wide[hidden], .ho-live-hint[hidden] { display: none; }
.ho-live-wide[aria-pressed="true"] { background: var(--on-accent); color: var(--overlay); }
.ho-live.failed .ho-live-side { visibility: hidden; }

.ho-live-side { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: flex-end; }
.ho-live-torch.on { background: var(--on-accent); color: var(--overlay); }
.ho-live-hint { min-height: 48px; padding: 0 var(--sp-3); border-radius: var(--r-s); font-weight: var(--fw-semi);
                color: var(--on-accent); background: none; border: 1px solid var(--on-accent); }


.ho-full.ho-live { touch-action: none; }
.ho-live-video { transform-origin: 50% 50%; }
.ho-live.zoomed .ho-live-ref { visibility: hidden; }
.ho-live-zoom { position: absolute; inset-block-end: var(--sp-3); inset-inline-start: 50%; transform: translateX(-50%);
                z-index: 1; pointer-events: none; padding: var(--sp-1) var(--sp-3); border-radius: 999px;
                background: var(--overlay); color: var(--on-accent); font-weight: var(--fw-semi); }
.ho-live-zoom[hidden] { display: none; }

.ho-live.failed .ho-live-stage, .ho-live.failed .ho-live-shutter, .ho-live.failed .ho-live-walk-go { visibility: hidden; }

.ho-live-walk-go { padding-inline: var(--sp-4); min-height: 56px; font-weight: var(--fw-semi); }
.ho-live.failed .ho-live-stage { flex: 0 0 auto; height: 0; }
.ho-live.failed .ho-live-msg { margin-block: auto; }
.ho-live.failed button.ho-live-native { background: var(--accent); border-color: var(--accent); }


@media (orientation: landscape) and (max-height: 500px) {
  .ho-full.ho-live { display: grid; grid-template-columns: minmax(0, 1fr) 9rem;
                     grid-template-rows: auto minmax(0, 1fr) auto; column-gap: var(--sp-4); row-gap: var(--sp-2); }
  .ho-live > .ho-live-head { grid-column: 1; grid-row: 1; }
  .ho-live > .ho-live-stage { grid-column: 1; grid-row: 2; height: 100%; }
  .ho-live > .ho-live-msg { grid-column: 1; grid-row: 2 / span 2; align-self: center; }

  .ho-live > .ho-live-act { grid-column: 2; grid-row: 1 / span 2; grid-template-columns: minmax(0, 1fr);
                            grid-template-rows: auto auto minmax(0, 1fr); grid-template-areas: "cancel" "side" "main";
                            align-items: start; gap: var(--sp-2); }
  .ho-live-act > .ho-live-cancel { justify-self: stretch; }
  .ho-live-act > .ho-live-side { justify-self: stretch; justify-content: stretch; }
  .ho-live-act > .ho-live-side > button { flex: 1 1 100%; }
  .ho-live-act > .ho-live-shutter { align-self: end; }
  .ho-live-act > .ho-live-walk-go { align-self: end; }
  .ho-live > .ho-live-native { grid-column: 2; grid-row: 3; width: 100%; }
}







@media (orientation: landscape) and (max-height: 500px) {
  .ho-cam { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
            column-gap: var(--sp-4); row-gap: var(--sp-2); align-items: start; }
  .ho-cam > * { grid-column: 2; }
  .ho-cam > .ho-cam-stage { grid-column: 1; grid-row: 1 / span 12; }
  .ho-cam-stage .ho-shot { height: calc(100vh - 9rem); height: calc(100dvh - 9rem); min-height: 8rem; }
  .ho-cam-top { order: 1; }
  .ho-cam > .ho-shoot { order: 2; }
  .ho-cam-nav { order: 3; }
  .ho-dots { order: 4; }
  .ho-cam > .ho-guide, .ho-cam > .ho-guide-match { order: 5; }
  .ho-then-line { order: 6; }
  .ho-cam-sum { order: 7; text-align: start; }
  .ho-dot { width: 56px; min-height: 44px; }


  .ho-full { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr) auto;
             column-gap: var(--sp-4); row-gap: var(--sp-2); padding: var(--sp-3); }
  .ho-full > * { grid-column: 1; }
  .ho-full-head { grid-row: 1; }
  .ho-full-stage, .ho-full > .ho-pair { grid-row: 2; aspect-ratio: auto; height: 100%; min-height: 0; }
  .ho-full-warns { grid-row: 3; justify-content: flex-start; }
  .ho-full > .ph-gal-nav { grid-row: 3; justify-content: flex-start; }
  .ho-full-act { grid-column: 2; grid-row: 1 / -1; flex-direction: column; justify-content: flex-end;
                 margin: 0; width: 11rem; }
  .ho-full-act .ho-big { flex: 0 0 auto; }
  .ho-full .ho-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); width: 100%; }
  .ho-full .ho-pair .ho-shot { aspect-ratio: auto; height: calc(100vh - 8rem); height: calc(100dvh - 8rem); }
  .ho-full .ho-pair .ph-ov { aspect-ratio: auto; height: calc(100vh - 10rem); height: calc(100dvh - 10rem); }
}


.ho-lazy { display: block; }
.ho-cancel-row { display: flex; justify-content: center; margin-block-start: var(--sp-6); }


.dmg-page { display: flex; flex-direction: column; gap: var(--sp-5); }
.dmg-list { padding: var(--sp-3) var(--sp-5); }


.dmg-row.pick {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start; cursor: pointer; border-radius: var(--r-s);
  padding-inline: var(--sp-3); margin-inline: calc(-1 * var(--sp-3));
}
.dmg-row.pick:hover { background: var(--hover); }
.dmg-row.picked { background: var(--accent-soft); }
.dmg-check { width: 26px; height: 26px; margin: var(--sp-2) 0 0 0; flex: none; accent-color: var(--accent); }
.dmg-row.fresh { border-inline-start: 3px solid var(--warn); padding-inline-start: var(--sp-4); }
.dmg-order { gap: var(--sp-4); }






button.dmg-order.warn-text, .dmg-order.warn-text { color: var(--warn); }
.dmg-line.has { color: var(--crit); }


.ro { display: flex; flex-direction: column; gap: var(--sp-5); }
.ro-tools { align-items: center; }
.ro-sheet {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--sp-7); display: flex; flex-direction: column; gap: var(--sp-6);
  max-width: 52rem;
}
.ro-head { align-items: flex-start; gap: var(--sp-5); }
.ro-title { font-size: var(--fs-2xl); font-weight: var(--fw-bold); letter-spacing: .02em; }















.ro-logo { max-height: 22mm; max-width: 60mm; object-fit: contain; display: block; }
.ro-sub { font-size: var(--fs-l); }
.ro-meta { text-align: end; }
.ro-intro { margin: 0; }
.ro-block { display: flex; flex-direction: column; gap: var(--sp-3); }
.ro-id { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 var(--sp-6); }
.ro-id-row { padding-block: var(--sp-2); border-block-end: 1px solid var(--line); }
.ro-sketch { max-width: 34rem; }
.ro-list { display: flex; flex-direction: column; }
.ro-item { display: flex; gap: var(--sp-4); padding-block: var(--sp-4); align-items: flex-start; }
.ro-item + .ro-item { border-block-start: 1px solid var(--line); }
.ro-n { font-size: var(--fs-l); font-weight: var(--fw-bold); width: 1.6rem; flex: none; }
.ro-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: var(--sp-4); }
.ro-figure { margin: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.ro-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-s); }
.ro-signs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6);
            margin-block-start: var(--sp-8); }
.ro-sign { display: flex; flex-direction: column; gap: var(--sp-2); }
.ro-line { border-block-end: 1px solid var(--ink); height: var(--sp-8); }




.yd-parking { display: flex; flex-direction: column; gap: var(--sp-3); }
.yd-parking-top { align-items: baseline; }


.yd-parking-toggle {
  width: 100%; min-height: 44px; padding: 0; background: none; border: 0; color: inherit;
  cursor: pointer; text-align: start;
}
.yd-parking-toggle:hover { color: var(--ink); }
.yd-parking-toggle.open .dmg-caret { transform: rotate(270deg); }
.yd-parking-sum-txt { font-weight: var(--fw-semi); }
.yd-parking-body { display: flex; flex-direction: column; gap: var(--sp-3); }
.yd-parking-list { margin-block: 0; }
.yd-parking-chip { font-weight: var(--fw-semi); }
.yd-parking-sum { gap: var(--sp-3); }











.yd-conflicts { gap: var(--sp-2); margin-block-end: var(--sp-2); }
.yd-c-list {
  border: 1px solid var(--line); border-radius: var(--r-s); background: var(--card); overflow: hidden;
}
.yd-c + .yd-c { border-block-start: 1px solid var(--line); }
.yd-c-head {
  display: flex; align-items: center; gap: var(--sp-3); width: 100%;
  padding: var(--sp-2) var(--sp-4); background: none; border: 0; text-align: start; min-height: 44px;
  color: var(--ink);
}
.yd-c-head:hover { background: var(--hover); }


.yd-c-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.yd-c.crit .yd-c-dot { background: var(--crit); }
.yd-c-code { flex: none; }
.yd-c-deg {
  flex: none; font-size: var(--fs-xs); font-weight: var(--fw-semi); color: var(--warn);
}
.yd-c.crit .yd-c-deg { color: var(--crit); }
.yd-c-gap { margin-inline-start: auto; white-space: nowrap; }
.yd-c.open .dmg-caret { transform: rotate(270deg); }





.yd-c-why {
  padding: 0 var(--sp-4) var(--sp-2);
  padding-inline-start: calc(var(--sp-4) + 8px + var(--sp-3));
  margin-block-start: calc(var(--sp-2) * -1);
  font-size: var(--fs-s); color: var(--muted);
}

.yd-c-body { padding: 0 var(--sp-4) var(--sp-4); padding-inline-start: calc(var(--sp-4) + 8px + var(--sp-3)); }

.yd-list { display: flex; flex-direction: column; gap: var(--sp-2); padding: 0; }
.yd-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); }

.yd-card:nth-child(even) { background: var(--card2); }
.yd-card.open { border-color: var(--accent); }
.yd-card.task.done { opacity: .6; }
.yd-card.task.overdue .yd-time { color: var(--crit); }











.yd-card-head {
  display: flex; align-items: center; gap: var(--sp-4); width: 100%;
  padding: var(--sp-4) var(--sp-4); background: none; border: 0; text-align: start; min-height: 56px;
  color: var(--ink);
}
.yd-card-head:hover { background: var(--hover); }
.yd-card.open .dmg-caret { transform: rotate(270deg); }
.yd-card-head .yd-time { font-size: var(--fs-l); }
.yd-line { gap: var(--sp-3); flex-wrap: nowrap; min-width: 0; }
.yd-line .yd-code, .yd-line .yd-task-title, .yd-who {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.yd-card-body { padding: 0 var(--sp-4) var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-4); }
.yd-card-body .yd-act { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.yd-card-body .yd-act .ho-big { flex: 1 1 10rem; }
.yd-tools { justify-content: flex-start; }


.hh { display: flex; flex-direction: column; gap: var(--sp-5); }
.hh-group .yd-card-head { min-height: 60px; }
.hh-ho { margin: 0; }
.hh-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: var(--sp-3); }
.hh-thumb { padding: 0; border: 0; background: none; border-radius: var(--r-s); overflow: hidden;
            color: var(--ink); }
.hh-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

.ho-walk { margin-top: var(--sp-3); }
.ho-walk-btn { width: 100%; }

.ho-walk-badge { margin-inline-start: var(--sp-2); font-size: var(--fs-xs); padding: 0 var(--sp-2); }
.ho-walk-frames > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }


@media (max-width: 719px) {
  .ho-big, .dmg-order .ho-big, .ho-dmg-form .ho-big { width: 100%; }
  .ho-sign { width: 100%; min-height: 56px; font-size: var(--fs-l); }
  .ho-nav { gap: var(--sp-3); }
  .ho-nav button { flex: 1 1 0; min-height: 48px; }
  .yd-card-head { gap: var(--sp-3); padding-inline: var(--sp-3); }
  .yd-card-head .yd-time { width: 3.6rem; }
  .yd-card-body .yd-act .ho-big { flex: 1 1 100%; }
  .yd-who { display: none; }
  .ro-sheet { padding: var(--sp-5); }
  .ro-signs { grid-template-columns: 1fr; }
  .dmg-row.pick { grid-template-columns: auto minmax(0, 1fr); }
}
















.tt-wrap { margin-block: var(--sp-6) var(--sp-5); }
.tt-scroll {
  position: relative;
  overflow-y: auto; overflow-x: hidden;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg);

  scrollbar-gutter: stable;
}


.tt-head {
  position: sticky; inset-block-start: 0; z-index: 4;
  height: 2rem;



  background: var(--bg); border-block-end: 1px solid var(--line);




}
.tt-col-h {
  position: absolute; inset-block: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-xs); font-weight: var(--fw-semi); color: var(--muted);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

.tt {
  position: relative;



  margin-block: var(--sp-6) var(--sp-5);
  padding-inline-start: 3.4rem;
}
.tt-bands { position: absolute; inset: 0; }
.tt-band {
  position: absolute; inset-inline: 0;
  border-block-start: 1px solid var(--line);
}


.tt-band.gap {
  background: repeating-linear-gradient(135deg, var(--neutral-soft) 0 6px, transparent 6px 12px);
}



.tt-band.closed { background: var(--neutral-soft); }
.tt-band.gap.closed {
  background: repeating-linear-gradient(135deg, var(--line) 0 6px, var(--neutral-soft) 6px 12px);
}


.tt-band-h {
  position: absolute; inset-inline-start: 0; inset-block-start: -0.6em;
  width: 3rem; text-align: end;
  font-size: 11px; color: var(--muted); letter-spacing: .02em;
}
.tt-band.gap .tt-band-h {
  inset-block-start: 50%; transform: translateY(-50%);
  width: auto; inset-inline-end: var(--sp-4); text-align: start;
  inset-inline-start: 3.6rem;
}

.tt-lanes { position: absolute; inset-block: 0; inset-inline-start: 3.4rem; inset-inline-end: 0; }


.tt-split { position: absolute; inset-block: 0; width: 0; border-inline-start: 1px dashed var(--line); }









.tt-bar {
  position: absolute;
  padding: 0; margin: 0; text-align: start;
  color: var(--ink);
  background: none;
  border: 1px solid transparent;
  border-radius: var(--r-s);
  transition: box-shadow var(--t) var(--ease);
}



.tt-bar:hover { box-shadow: inset 0 0 0 1px var(--line); }
.tt-bar.sel { outline: 2px solid var(--accent); outline-offset: 1px; }














.tt-bar.roomy { background: var(--neutral-soft); }




.tt-bar.snug { background: var(--warn-soft); }



.tt-bar.short { background: var(--crit-soft); border-inline-start: 3px solid var(--crit); }





.tt-bar-short {
  position: absolute;
  background: var(--crit-soft);
  border-inline-start: 3px solid var(--crit);
  border-block-start: 1px dashed var(--crit);
  border-radius: var(--r-s);
  pointer-events: none;
}


.tt-bar-idle {
  position: absolute;
  border-inline-start: 2px dashed var(--line);
  margin-inline-start: 6px;
  pointer-events: none;
}

.tt-lead {
  position: absolute;
  border-inline-start: 1px dotted var(--muted);
  margin-inline-start: 6px;
  pointer-events: none;
}

.tt-hit { position: absolute; padding: 0; background: none; border: 0; color: var(--ink); }
.tt-hit.sel { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: var(--r-s); }









.tt-chip {
  position: absolute;
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 0 var(--sp-3);
  background: var(--card);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--tt-tone, var(--accent));
  border-radius: var(--r-s);
  color: var(--tt-tone, var(--ink));
  text-align: start;
  overflow: hidden;
}
.tt-chip:hover { box-shadow: inset 0 0 0 1px var(--tt-tone, var(--accent)); }
.tt-chip.sel { outline: 2px solid var(--accent); outline-offset: 1px; }
.tt-time { font-size: var(--fs-xs); font-weight: var(--fw-semi); color: var(--tt-tone, var(--accent)); flex: none; }



.tt-label { display: flex; align-items: baseline; gap: var(--sp-2); min-width: 0; max-width: 100%; }



.tt-code { font-size: var(--fs-xs); font-weight: var(--fw-semi); min-width: 0;
           overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }



.tt-who { font-size: var(--fs-xs); color: var(--muted); flex: 1 3 auto; min-width: 0;
          overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


.tt-eta { font-size: var(--fs-xs); font-weight: var(--fw-semi); color: var(--crit);
          flex: none; margin-inline-start: auto; }



.tt-chip.late { --tt-tone: var(--crit); background: var(--crit-soft); }
.tt-chip.task { --tt-tone: var(--muted); background: var(--neutral-soft); }


.tt-chip.service { --tt-tone: var(--warn); background: var(--warn-soft); }


.tt-chip.service .tt-code { flex: none; }


.tt-key { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); padding: var(--sp-3) var(--sp-3) 0; }
.tt-k.tt-chip {
  position: static; display: inline-flex; flex: 0 0 auto; height: 22px; padding: 0 var(--sp-2);
  font-size: var(--fs-xs); font-weight: var(--fw-semi); white-space: nowrap; cursor: default;
}
.tt-k.tt-chip:hover { box-shadow: none; }

.tt-chip.task.note { background: var(--card); border-style: dashed; border-inline-start-style: dashed; }








.tt-n { flex: none; color: var(--tt-tone, var(--muted)); font-size: 10px; font-weight: var(--fw-semi); }









.tt-now {
  position: absolute; inset-inline: 0; height: 0; z-index: 3;
  border-block-start: 1px solid var(--crit);
  pointer-events: none;
}
.tt-now::before {
  content: ''; position: absolute;
  inset-inline-start: 3.4rem; inset-block-start: -5px; margin-inline-start: -5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--crit);
}
.tt-now-label {
  position: absolute; inset-inline-start: 0; inset-block-start: -0.65em;
  width: 3rem; text-align: end;
  font-size: 11px; font-weight: var(--fw-semi); color: var(--crit);
}


.yd-detail { display: flex; flex-direction: column; gap: var(--sp-4); }
.yd-detail .yd-act { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.yd-detail .yd-act .ho-big { flex: 1 1 10rem; }
.yd-detail-sep { border-block-start: 1px solid var(--line); }




.yd-late, .yd-loose { display: flex; flex-direction: column; }


.yd-late-due { flex: none; margin-inline-start: auto; white-space: nowrap; }




.yd-loose-row .yd-task-title { min-width: 0; }
.yd-loose-row .pill, .yd-loose-row .yd-code { flex: none; }
.yd-loose-row {
  display: flex; align-items: center; gap: var(--sp-3); width: 100%;
  padding: var(--sp-3); background: none; border: 0; color: var(--ink); text-align: start;
  min-height: 44px;
}
.yd-loose-row:hover { background: var(--hover); }




@media (max-width: 719px) {
  .yd-late:not(.yd-rs) .yd-loose-row { flex-wrap: wrap; row-gap: var(--sp-2); align-items: baseline; }
  .yd-late:not(.yd-rs) .yd-loose-row > .pill.crit { order: 1; }
  .yd-late:not(.yd-rs) .yd-loose-row > .yd-code { order: 2; white-space: normal; overflow: visible; }
  .yd-late:not(.yd-rs) .yd-loose-row::before { content: ''; order: 3; flex: 0 0 100%; height: 0; }
  .yd-late:not(.yd-rs) .yd-loose-row > .yd-task-pill { order: 4; }
  .yd-late:not(.yd-rs) .yd-loose-row > .yd-task-title { order: 5; flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
  .yd-late:not(.yd-rs) .yd-loose-row > .yd-late-due { order: 6; margin-inline-start: 0; }
}




.yd-upkeep {
  display: flex; align-items: center; gap: var(--sp-2); width: 100%;
  min-height: 44px; padding: var(--sp-2) 0;
  background: none; border: 0; border-block-start: 1px solid var(--line);
  color: var(--muted); text-align: start; font-size: var(--fs-s);
}
.yd-upkeep:hover { background: var(--hover); color: var(--ink); }
.yd-upkeep .dmg-caret { margin-inline-start: auto; color: var(--accent); }



.yd-appt-row {
  width: 100%; min-height: 44px; padding: var(--sp-1) 0;
  background: none; border: 0; color: inherit; text-align: start; font-family: inherit;
  font-size: var(--fs-m); cursor: pointer;
}
.yd-appt-row:hover { background: var(--hover); }
.yd-appt-row.on { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: var(--r-s); }




.pill.yd-visit-pill { background: var(--accent-soft); color: var(--accent); }
.pill.yd-appt { background: var(--warn-soft); color: var(--warn); }


.yd-tz { margin: 0; }


#app > .yd-tz { margin: 12px 0 0; }





.tab-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.15rem; height: 1.15rem; padding-inline: .3rem;
  margin-inline-start: var(--sp-2);
  border-radius: 999px;
  background: var(--count-bg); color: var(--count-ink);
  font-size: var(--fs-2xs); font-weight: var(--fw-bold); line-height: 1;
}
.tab-ico { position: relative; display: inline-flex; }
.tab-ico .tab-badge {
  position: absolute; inset-block-start: -4px; inset-inline-start: 60%;
  margin-inline-start: 0;

  box-shadow: 0 0 0 2px var(--card);
}





.tab-badge.crit { background: var(--crit); color: var(--on-crit); }

.tab-badge.tab-dot { min-width: .6rem; width: .6rem; height: .6rem; padding: 0; }

.msg-assign .dt-menu-btn { min-width: 44px; min-height: 44px; }


.inc-page { display: flex; flex-direction: column; gap: var(--sp-4); }
.inc-sections { margin-block-end: 0; }




.inc-sections .chip.crit { border-color: var(--crit-line); color: var(--crit); }






.vq-adopt { display: flex; align-items: center; gap: var(--sp-3); flex: 0 0 auto; }
.vq-adopt select { width: auto; min-width: 8.5rem; max-width: 12rem; }
.vq-adopt button { white-space: nowrap; }


.dmg-shot-row { gap: var(--sp-3); }
.dmg-shot-thumb {
  padding: 0; border: 1px solid var(--line); background: none; color: var(--ink);
  border-radius: var(--r-s); overflow: hidden; flex: none; width: 64px; height: 48px;
}
.dmg-shot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }


.dmg-2shot-row { display: flex; align-items: center; gap: var(--sp-3); min-block-size: 52px; }
.dmg-2shot-n { flex: none; width: 64px; height: 48px; display: flex; align-items: center; justify-content: center;
               border: 1px dashed var(--line); border-radius: var(--r-s); color: var(--muted); font-size: var(--fs-l); }
.dmg-2shot-txt { display: flex; flex-direction: column; flex: 1 1 auto; min-inline-size: 0; overflow-wrap: anywhere; }
.dmg-2shot-row > button { flex: none; min-block-size: 44px; }
.dmg-2shot-skip { align-self: flex-start; }
.dmg-2shot-pair { display: inline-flex; flex-direction: column; align-items: center; gap: var(--sp-1); }
.dcz-ph-kind { position: absolute; inset-block-start: 4px; inset-inline-start: 4px; padding: 0 var(--sp-2);
               background: var(--card); color: var(--ink); border-radius: var(--r-s); opacity: .92; }









.dmg-name { min-inline-size: 0; align-items: center; gap: var(--sp-2); }
.dmg-name > span:last-child { min-inline-size: 0; overflow-wrap: anywhere; }

.dmg-name-txt { display: flex; flex-direction: column; min-inline-size: 0; overflow-wrap: anywhere; }
.dcard-obd-codes { margin: 0; padding-inline-start: var(--sp-6); }


.dmg-shots { flex-wrap: wrap; gap: var(--sp-3); }
.dmg-shots .dmg-shot-thumb { position: relative; }
.dmg-shot-x { position: absolute; inset-block-start: -8px; inset-inline-end: -8px; min-inline-size: 32px;
              min-block-size: 32px; background: var(--card); border: 1px solid var(--line); border-radius: 50%; }


.dmg-thumb-s { inline-size: 2rem; block-size: 2rem; flex: none; object-fit: cover;
               border-radius: var(--r-s); background: var(--line); }

.lk-bulk-why { align-self: center; }

.dcard-pin { margin: 0; }




.dcard-track { padding: var(--sp-5); }
.dcard-track .sh-stages li { flex: 1 1 5.5rem; min-inline-size: 0; white-space: normal;
                             overflow-wrap: anywhere; }



.dcard-moves { gap: var(--sp-4); margin-block-start: var(--sp-4); }



.dcard-status { margin: 0; overflow-wrap: anywhere; }

.dcard-paper { margin-inline-start: auto; min-block-size: 44px; white-space: nowrap; text-decoration: underline; }


.sh-status { margin: 0; overflow-wrap: anywhere; }
.dcard-moves .dcard-move-btn { inline-size: 100%; min-block-size: 56px; }
.dcard-moves .dcard-move-btn.ghost { min-block-size: 48px; }

.sh-stages .warn { background: var(--warn-soft); color: var(--warn); }




.dcard-shot-meta { flex: 1 1 12rem; min-inline-size: 0; overflow-wrap: anywhere; }

.pin-pick-act { gap: var(--sp-3); }

.dmg-open-row { inline-size: 100%; text-align: start; background: none; border: 0;
                color: inherit; font: inherit; cursor: pointer; }
.dmg-open-row:hover { background: var(--hover); }



















.yd-w { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--sp-4); }
.yd-w-col { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
.yd-col-h {
  display: flex; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap;
  padding-block-end: var(--sp-2); border-block-end: 1px solid var(--line);
}
.yd-col-d { font-weight: var(--fw-semi); text-transform: capitalize; min-width: 0;
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }



.yd-w-col.today .yd-col-h { border-block-end-color: var(--accent); }
.yd-col-now, .yd-col-x { flex: none; }
.yd-col-empty { padding: var(--sp-7) var(--sp-3); text-align: center; }



.yd-tabs { display: none; }


.yd-span { display: flex; flex: none; gap: 0; border: 1px solid var(--line); border-radius: var(--r-s);
           overflow: hidden; }
.yd-span-b {
  min-height: 34px; padding: var(--sp-2) var(--sp-4); border: 0; border-radius: 0;
  background: none; color: var(--muted); font-size: var(--fs-s); font-weight: var(--fw-med);
  white-space: nowrap;
}
.yd-span-b + .yd-span-b { border-inline-start: 1px solid var(--line); }
.yd-span-b:hover { background: var(--hover); color: var(--ink); }
.yd-span-b.on { background: var(--accent-soft); color: var(--ink); font-weight: var(--fw-semi); }

