





.yd-today { display: flex; flex-direction: column; gap: var(--sp-6); }
.yd-sec { display: flex; flex-direction: column; gap: var(--sp-3); }
.yd-cards { display: flex; flex-direction: column; gap: var(--sp-4); }


.yd-quiet { margin: 0; padding: var(--sp-3) 0; }


.yd-sec-risk > .inc-label { color: var(--crit); }


.yd-v { display: flex; flex-direction: column; gap: var(--sp-3); margin: 0; }
.yd-v.crit { border-color: var(--crit-line); }
.yd-v-top { align-items: baseline; gap: var(--sp-3); }
.yd-v-code { font-size: var(--fs-l); font-weight: var(--fw-bold); }



.yd-v-when {
  flex: none; min-width: 4.3em; font-size: var(--fs-l); font-weight: var(--fw-bold);
  white-space: nowrap; color: var(--accent);
}

.yd-v-when.dt-ink { color: var(--dt); }


.yd-sec-out > .inc-label, .yd-sec-in > .inc-label {
  font-size: var(--fs-m); font-weight: var(--fw-bold); letter-spacing: .04em; color: var(--dt, var(--accent));
}

.yd-v-stage { color: var(--muted); }
.yd-v-stage.pst-free, .yd-v-stage.pst-paused { color: var(--warn); font-weight: var(--fw-semi); }
.yd-v-stage.pst-done { color: var(--ok); }


.yd-wait {
  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-wait:hover { background: var(--hover); color: var(--ink); }
.yd-wait .dmg-caret { margin-inline-start: auto; }
.yd-wait.open .dmg-caret { transform: rotate(270deg); }
.yd-wait-card .yd-wait { border-block-start: 0; padding-inline: var(--sp-3); }
.yd-wait-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-2) var(--sp-3); width: 100%;
  min-height: 44px; padding: var(--sp-2) var(--sp-3);
  background: none; border: 0; color: var(--muted); text-align: start; font-size: var(--fs-s);
}
.yd-wait-row:hover { background: var(--hover); }
.yd-wait-row.on { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--r-s); }
.yd-wait-row .yd-task-title { min-width: 0; font-weight: var(--fw-med); }
.yd-wait-row .yd-wait-why { margin-inline-start: auto; white-space: nowrap; }
.yd-rs .yd-loose-row { flex-wrap: wrap; min-height: 48px; cursor: pointer; border-block-start: 1px solid var(--line); }
.yd-rs .yd-loose-row .dmg-caret { margin-inline-start: auto; color: var(--accent); }
.yd-v-ev { gap: var(--sp-3); align-items: baseline; flex-wrap: wrap; }
.yd-v-at { font-weight: var(--fw-semi); white-space: nowrap; }
.yd-v-ev .yd-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }




.yd-v-why {
  display: flex; flex-direction: column; gap: var(--sp-1);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-s);
  border-inline-start: 3px solid var(--warn); background: var(--card2);
}
.yd-v-why.crit { border-inline-start-color: var(--crit); }
.yd-v-why .yd-c-deg { font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: .04em;
                      color: var(--warn); }
.yd-v-why.crit .yd-c-deg { color: var(--crit); }
.yd-v-why-t { font-size: var(--fs-s); }



.yd-v-why-go {
  align-self: start; min-height: 44px; padding: 0 var(--sp-3);
  margin-inline-start: calc(var(--sp-3) * -1);
  background: none; border: 0; text-align: start;
  font: inherit; font-size: var(--fs-s); font-weight: var(--fw-semi); color: var(--accent);
}
.yd-v-why-go:hover { text-decoration: underline; }


.yd-v-jobs { display: flex; flex-direction: column; border: 1px solid var(--line);
             border-radius: var(--r-s); overflow: hidden; }
.yd-g-wrap + .yd-g-wrap { border-block-start: 1px solid var(--line); }
.yd-g {
  display: flex; align-items: center; gap: var(--sp-3); width: 100%;
  min-height: 44px; padding: var(--sp-2) var(--sp-4);
  background: none; border: 0; color: inherit; text-align: start;
}
.yd-g:hover { background: var(--hover); }
.yd-g.on { background: var(--accent-soft); }
.yd-g.done { opacity: .6; }
.yd-g.open .dmg-caret { transform: rotate(270deg); }


.yd-g .yd-task-title { flex: 1; min-width: 0; }
.yd-g .pill, .yd-g .dmg-caret { flex: none; }

.yd-g-n { background: var(--accent-soft); color: var(--ink); font-weight: var(--fw-semi); }
.yd-g-list { display: flex; flex-direction: column; background: var(--card2); }
.yd-g-row {
  display: flex; align-items: center; gap: var(--sp-3); width: 100%;
  min-height: 40px; padding: var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-7);
  background: none; border: 0; color: inherit; text-align: start; font-size: var(--fs-s);
}
.yd-g-row + .yd-g-row { border-block-start: 1px solid var(--line); }
.yd-g-row:hover { background: var(--hover); }
.yd-g-row.on { background: var(--accent-soft); }

.yd-g-row .yd-task-title { flex: 1; min-width: 0; }
.yd-g-due, .yd-g-row .pill { flex: none; }


.yd-v-detail { padding-block-start: var(--sp-3); border-block-start: 1px solid var(--line); }

@media (max-width: 719px) {


  .yd-v-code { font-size: var(--fs-xl); }
  .yd-v .yd-act { display: flex; }
  .yd-v .yd-act .ho-big { flex: 1 1 100%; }




  .yd-v-ev .yd-who { display: block; }



  .yd-v-why .yd-c-deg { display: block; }
  .yd-g, .yd-g-row { padding-inline: var(--sp-3); }
  .yd-g-row { padding-inline-start: var(--sp-5); }


  .yd-g-due { display: none; }
}








.yd-w .tt { padding-inline-start: 2.8rem; }
.yd-w .tt-lanes { inset-inline-start: 2.8rem; }
.yd-w .tt-band-h { width: 2.4rem; }
.yd-w .tt-band.gap .tt-band-h { inset-inline-start: 3rem; }
.yd-w .tt-now-label { width: 2.4rem; }
.yd-w .tt-now::before { inset-inline-start: 2.8rem; }
.yd-w .tt-chip {
  flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 0; padding-inline: var(--sp-2); line-height: 1.15;
}
.yd-w .tt-time, .yd-w .tt-code, .yd-w .tt-who { font-size: 11px; max-width: 100%; }
.yd-w .tt-eta { display: none; }
.yd-w .tt-col-h { font-size: 11px; letter-spacing: .03em; }


.yd-w .yd-c-deg { display: none; }
.yd-w .yd-c-head { gap: var(--sp-2); padding-inline: var(--sp-3); }

@media (max-width: 719px) {






  .yd-w {
    display: flex; gap: var(--sp-4);
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  }
  .yd-w-col { flex: 0 0 100%; scroll-snap-align: start; }




  .yd-tabs { display: flex; gap: var(--sp-2); }
  .yd-tab {
    flex: 1 1 0; min-width: 0; min-height: 44px;
    display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-3);
    background: none; color: var(--muted);
    border: 1px solid var(--line); border-radius: var(--r-s);
    font-size: var(--fs-s); font-weight: var(--fw-med);
  }
  .yd-tab.on { background: var(--accent-soft); border-color: var(--accent); color: var(--ink);
               font-weight: var(--fw-semi); }
  .yd-tab-d { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
              text-transform: capitalize; }
  .yd-tab-x { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--crit); }


  .yd-span { flex: 1 0 100%; }
  .yd-span-b { flex: 1 1 0; min-height: 44px; }
}

@media (max-width: 719px) {


  .tt { padding-inline-start: 2.8rem; }
  .tt-lanes { inset-inline-start: 2.8rem; }
  .tt-band-h { width: 2.4rem; }
  .tt-band.gap .tt-band-h { inset-inline-start: 3rem; }
  .tt-now-label { width: 2.4rem; }
  .tt-now::before { inset-inline-start: 2.8rem; }





  .tt-chip {
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 0; padding-inline: var(--sp-2); line-height: 1.15;
  }
  .tt-time, .tt-code { font-size: 11px; max-width: 100%; }
  .tt-who { font-size: 11px; }


  .tt-eta { display: none; }


  .tt-col-h { font-size: 11px; letter-spacing: .03em; }


  .yd-c-deg { display: none; }
  .yd-c-head { gap: var(--sp-2); padding-inline: var(--sp-3); }
  .yd-detail .yd-act .ho-big { flex: 1 1 100%; }




  .vq-adopt { flex-wrap: wrap; flex: 1 1 100%; min-width: 0; }
  .vq-adopt select { min-width: 0; flex: 1 1 8rem; max-width: none; }
  .vq-adopt button { flex: 1 1 100%; }
}
















.yd-calendar { display: flex; flex-direction: column; gap: var(--sp-4); }


.yd-cal-sum { flex-wrap: wrap; gap: var(--sp-2); }
.yd-cal-tools { flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.yd-cal-key { display: inline-flex; flex-wrap: wrap; gap: var(--sp-4); }





.yd-cal-key { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); }
.yd-cal-tools .yd-cal-key { flex: 1 1 100%; }
.yd-cal-k { position: relative; flex: 0 0 auto; cursor: default; }
.yd-cal-k.yd-cal-bar { margin: 0; height: 20px; max-width: none; }
.yd-cal-k.yd-cal-prep, .yd-cal-k.yd-cal-jobs {
  display: inline-flex; align-items: center; height: 15px; margin: 0; padding-inline: 2px; border-radius: 2px;
}
.yd-cal-k.yd-cal-jobs::before { content: none; }
.yd-cal-k-risk { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.yd-cal-k .yd-cal-risk { margin: 0; cursor: default; }
.yd-cal-k .yd-cal-bt { position: static; }
.yd-cal-auto { flex-basis: 100%; }

.yd-cal-range { flex-wrap: wrap; gap: var(--sp-3); align-items: flex-end; }
.yd-cal-rf { display: inline-flex; flex-direction: column; gap: 2px; }
.yd-cal-rf input { min-height: 40px; }

.yd-cal-scroll {
  overflow: auto; max-height: 72vh; overscroll-behavior-x: contain;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
}


.yd-cal-edge {
  position: absolute; inset-block: 0; width: 48px; pointer-events: none;
}
.yd-cal-edge.s { inset-inline-start: 0; }
.yd-cal-edge.e { inset-inline-end: 0; }



.yd-cal {
  position: relative;
  --cal-name: 116px; --cal-col: 46px; --cal-col-min: 44px; --cal-row: 44px; --cal-bar: 30px; --cal-lane: 6px; --cal-head: 40px;
  display: flex; flex-direction: column;
  min-width: calc(var(--cal-name) + var(--cal-cols) * var(--cal-col));
}




.yd-cal-row {
  display: grid;
  grid-template-rows: 1fr var(--cal-lane);
  height: var(--cal-row); box-shadow: inset 0 -1px 0 var(--neutral-soft);
}


.yd-cal-row.lane { --cal-lane: 15px; height: calc(var(--cal-row) + 13px); }







.yd-cal-head {
  position: sticky; top: 0; z-index: 5; height: auto; grid-template-rows: auto auto; box-shadow: none;
}
.yd-cal-corner {
  grid-column: 1; grid-row: 1 / -1; position: sticky; inset-inline-start: 0; z-index: 2;
  background: var(--card2); border-inline-end: 1px solid var(--line);
}











.yd-cal-mh {
  grid-row: 1; display: flex; align-items: center; min-height: 18px;
  background: var(--card2); border-inline-start: 1px solid var(--line);
  color: var(--muted); font-size: 10px;
}
.yd-cal-mn {
  position: sticky; inset-inline-start: var(--cal-name); padding-inline: var(--sp-2);
  white-space: nowrap; font-weight: var(--fw-semi);
}



.yd-cal-mh.mstart, .yd-cal-dh.mstart, .yd-cal-cell.mstart {
  border-inline-start: 2px solid var(--muted);
}
.yd-cal-dh {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: var(--cal-head); padding: var(--sp-1) 0;
  background: var(--card2); border: 0; border-inline-start: 1px solid var(--line); border-radius: 0;
  color: var(--muted); cursor: pointer;
}
.yd-cal-dh:hover { background: var(--hover); color: var(--ink); }
.yd-cal-dh.we { background: var(--bg2); }


.yd-cal-dh.today { box-shadow: inset 0 2px 0 var(--accent); color: var(--ink); }
.yd-cal-dh.today .yd-cal-dn { color: var(--accent); }
.yd-cal-dw { font-size: 10px; }
.yd-cal-dn { font-size: var(--fs-s); font-weight: var(--fw-semi); line-height: 1; }


.yd-cal-name {
  grid-column: 1; grid-row: 1 / -1; position: sticky; inset-inline-start: 0; z-index: 4;
  display: flex; align-items: center; min-width: 0;
  padding-inline: var(--sp-3) var(--sp-2);
  background: var(--card); border-inline-end: 1px solid var(--line);
  color: inherit; text-decoration: none;
}
.yd-cal-name:hover { background: var(--card2); }
.yd-cal-code {
  font-size: var(--fs-s); font-weight: var(--fw-semi);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}


.yd-cal-cell { border-inline-start: 1px solid var(--line); }
.yd-cal-cell.we { background: var(--bg2); }
.yd-cal-cell.today { background: var(--accent-soft); }












.yd-cal-bar {
  align-self: center; z-index: 2;

  margin-block-start: var(--cal-lane);
  display: flex; align-items: center; min-width: 0; height: var(--cal-bar, 20px); max-width: 100%;
  margin-inline: 1px; padding-inline: var(--sp-2);
  border: 1px solid transparent; border-radius: var(--r-s);
  font-size: var(--fs-xs); text-align: start; overflow: hidden; overflow: clip;
}





.yd-cal-bt {
  flex: 0 1 auto; min-width: 0; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  position: sticky; inset-inline-start: calc(var(--cal-name) + var(--sp-2));
}



.yd-cal-rental { background: var(--accent-soft); border-color: var(--accent-dim); color: var(--ink); cursor: pointer; }
.yd-cal-rental:hover { background: var(--accent-glow); }

.yd-cal-rental.out { border-width: 2px; }



.yd-cal-bar.yd-cal-rental.await {
  border: 1px dashed var(--warn);
  background-color: var(--warn-soft);
  background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--warn) 30%, transparent) 0 4px, transparent 4px 9px);
}


.yd-cal-block { background: var(--warn-soft); border-color: var(--warn); color: var(--ink); cursor: pointer; }
.yd-cal-block:hover { background: var(--warn); color: var(--on-warn); }


.yd-cal-block.late { border-inline-end: 3px solid var(--crit); }


.yd-cal-block::before {
  content: ''; display: inline-block; width: 6px; height: 6px; margin-inline-end: 5px;
  border-radius: 1px; background: var(--warn);
}




.yd-cal-order {
  background: var(--warn-soft); border-color: var(--warn); border-style: dashed; color: var(--ink);
  opacity: .72; cursor: pointer;
}
.yd-cal-order:hover { opacity: 1; }
.yd-cal-order::before {
  content: ''; display: inline-block; width: 6px; height: 6px; margin-inline-end: 5px;
  border-radius: 1px; border: 1px solid var(--warn);
}




.yd-cal-prep {
  align-self: stretch; z-index: 1; height: auto; margin-inline: 0; padding: 0 2px; border: 0;
  border-radius: 0; color: var(--ink); font-size: 10px; line-height: 1;
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--muted) 55%, transparent) 0 2px,
                                        transparent 2px 5px);
}
.yd-cal-prep .yd-cal-bt { padding-inline: 3px; background: var(--card); border-radius: 2px; }







.yd-cal-bar.yd-cal-rental.risk { background: var(--warn-soft); border: 2px solid var(--warn); color: var(--ink); }
.yd-cal-bar.yd-cal-rental.risk:hover { background: var(--warn); color: var(--on-warn); }
.yd-cal-bar.yd-cal-rental.late { background: var(--crit-soft); border-color: var(--crit); border-inline-end: 4px solid var(--crit); }
.yd-cal-bar.yd-cal-rental.late:hover { background: var(--crit); color: var(--on-crit); }
.yd-cal-bar.cutl {
  margin-inline-start: 2px; border-start-start-radius: 0; border-end-start-radius: 0;
  border-inline-start-style: dashed;
}
.yd-cal-bar.cutr {
  margin-inline-end: 2px; border-start-end-radius: 0; border-end-end-radius: 0;
  border-inline-end-style: dashed;
}





.yd-cal-jobs {
  grid-row: 2; z-index: 1; align-self: stretch; justify-self: end; position: relative;
  display: flex; align-items: center; min-width: 0; max-width: calc(100% - 4px);
  margin-inline: 2px; padding: 0 4px; border: 1px solid var(--warn); border-radius: 7px;
  background: var(--warn-soft); color: var(--ink);
  font-size: 10px; font-weight: var(--fw-semi); line-height: 1; cursor: pointer;
}
.yd-cal-jobs .yd-cal-bt { position: static; }
.yd-cal-jobs::before {
  content: ''; position: absolute; inset-inline: -2px; bottom: 0; height: 24px;
}
.yd-cal-jobs:hover { background: var(--warn); color: var(--on-warn); }


.yd-cal-risk {
  z-index: 3; align-self: center; justify-self: start;
  display: flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; margin-inline-start: -7px; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--warn); color: var(--on-warn);
  font-size: 10px; line-height: 1; cursor: pointer;
}
.yd-cal-risk::before { content: '⚠'; }
.yd-cal-risk.hard { background: var(--crit); color: var(--on-crit); }








.yd-cal-grp {
  display: flex; align-items: center; width: 100%;
  min-height: 32px;
  background: var(--card2); border: 0; border-block: 1px solid var(--line);
  color: var(--ink); text-align: start; cursor: pointer;
}
.yd-cal-grp-in {
  position: sticky; inset-inline-start: 0;
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding-inline: var(--sp-3);
}
.yd-cal-grp:hover { background: var(--hover); }
.yd-cal-grp .inc-label { flex: 1; min-width: 0; }
.yd-cal-grp.open .dmg-caret { transform: rotate(270deg); }

@media (max-width: 719px) {



  .yd-cal { --cal-name: 88px; --cal-col: 40px; --cal-col-min: 40px; }
  .yd-cal-scroll { max-height: 64vh; }
}










































@media (max-width: 899px) {
  :root {
    scroll-padding-block: var(--topbar-h)
                          calc(var(--bottombar-h) + env(safe-area-inset-bottom) + var(--sp-5));
  }
  .tt-scroll {
    padding-block-end: calc(var(--bottombar-h) + env(safe-area-inset-bottom));
    scroll-padding-block-end: calc(var(--bottombar-h) + env(safe-area-inset-bottom));
  }




  .yd-cal-scroll {
    padding-block-end: calc(var(--bottombar-h) + env(safe-area-inset-bottom));
    scroll-padding-block-end: calc(var(--bottombar-h) + env(safe-area-inset-bottom));
  }
}




.dfl-page { display: flex; flex-direction: column; gap: var(--sp-5); }
.dfl-page h1 { margin: 0; }


.dfl-caret { display: flex; color: var(--muted); transform: rotate(180deg); }











#bottom .sheet-wrap { flex: 1; display: flex; position: relative; }
#bottom .more-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; height: var(--bottombar-h); padding: 0;
  background: none; border: 0; border-radius: 0; font-size: 11px; color: var(--muted);






  position: relative; z-index: 2;
}
#bottom .more-btn:hover { filter: none; color: var(--ink); }
#bottom .more-btn.active { color: var(--accent); }
#bottom .more-btn svg { width: 21px; height: 21px; display: block; }


#bottom .sheet-back {
  position: fixed; inset: 0; background: var(--overlay); z-index: 1; cursor: pointer;
}






#bottom .sheet {
  position: fixed; inset-block: 0; inset-inline-start: 0; inset-inline-end: auto; z-index: 2;
  inline-size: min(82vw, 19rem);
  display: flex; flex-direction: column; gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-3) calc(var(--sp-6) + env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--card); border: 0; border-inline-end: 1px solid var(--line);
  box-shadow: var(--shadow-strong);
}
#bottom .sheet a {
  flex: none; flex-direction: row; justify-content: flex-start; gap: var(--sp-4);
  height: auto; min-height: 52px; padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-s);
  font-size: var(--fs-m); color: var(--ink);
}
#bottom .sheet a:hover { background: var(--hover); }


#bottom .sheet a.active { background: var(--accent-soft); color: var(--accent); font-weight: var(--fw-semi); }

#bottom .sheet .new-dot { position: static; margin-inline-start: auto; }


#bottom .sheet .tab-ico { display: contents; }
#bottom .sheet .tab-ico .tab-badge {
  position: static; order: 3; margin-inline-start: 0; box-shadow: none;
}

@media (max-width: 719px) {
  .dfl-rows { padding-inline: var(--sp-4); }

}









.mod-row {
  display: flex; flex-direction: column; gap: var(--sp-3);
  padding-block: var(--sp-4); border-block-start: 1px solid var(--line);
}
.mod-row:first-of-type { border-block-start: 0; padding-block-start: 0; }
.mod-grid { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.mod-chip {
  display: flex; align-items: center; gap: var(--sp-2);
  min-height: 44px; padding: var(--sp-2) var(--sp-4);
  background: var(--card2); border: 1px solid var(--line); border-radius: var(--r);
  font-size: var(--fs-s); font-weight: var(--fw-med); cursor: pointer;
}







.mod-chip.picked { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.mod-chip.locked { cursor: default; opacity: .8; }



.mod-off { max-width: 34rem; margin-inline: auto; text-align: center; }
.mod-off h1 { font-size: var(--fs-xl); margin: 0; }
.mod-off button { min-height: 44px; }





.rn-page, .rn-card-page { display: flex; flex-direction: column; gap: var(--sp-5); }
.rn-page h1 { margin: 0; }
.rn-list { display: flex; flex-direction: column; gap: var(--sp-3); }



.rn-row {
  display: flex; align-items: center; gap: var(--sp-4); width: 100%;
  min-height: 64px; padding: var(--sp-4) var(--sp-5);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s);
  color: var(--ink); text-align: start;
}
.rn-row:hover { background: var(--hover); filter: none; }



























.rn-page {
  --rn-veh-col: 7rem;
  --rn-plate-col: 5rem;


  --rn-asg-col: 7rem;
}
.rn-main {
  min-width: 0; flex: 1;
  display: grid;
  grid-template-columns: var(--rn-veh-col) minmax(0, 1fr);
  column-gap: var(--sp-3); row-gap: var(--sp-2);
  align-items: center;
}



.rn-line1 { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; grid-column: 1 / -1; }


.rn-line2 { display: contents; }
.rn-veh { grid-column: 1; min-width: 0; display: flex; }



.rn-veh > .pill { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rn-plate { grid-column: 2; min-width: 0; white-space: nowrap; }



.rn-opt .rn-veh { flex: 0 0 var(--rn-veh-col); }

.rn-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rn-when { grid-column: 1 / -1; color: var(--muted); }
.rn-line3 { grid-column: 1 / -1; }
.rn-src { display: inline-flex; color: var(--muted); flex: none; }
.rn-caret { display: flex; color: var(--muted); transform: rotate(180deg); flex: none;
             transition: color var(--t) var(--ease), transform var(--t) var(--ease); }
.rn-row:hover .rn-caret, .rn-go:hover .rn-caret {
  color: var(--accent); transform: rotate(180deg) translateX(-2px);
}
.rn-empty { margin: 0; }


.rn-card-page .card { margin: 0; }

.rn-extras { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.rn-extra { max-inline-size: 100%; white-space: normal; overflow-wrap: anywhere; font-size: var(--fs-s); color: var(--ink); }




.rn-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.rn-act {
  flex: 1 1 12rem; display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-3); min-height: 52px; padding: var(--sp-3) var(--sp-5);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); color: var(--ink);
}
.rn-act:hover { background: var(--hover); filter: none; }


.rn-step-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rn-step.done .tl-dot { background: var(--ok); }
.rn-step-link { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.rn-tick { color: var(--ok); font-weight: var(--fw-semi); }

.rn-ho { display: flex; flex-direction: column; gap: var(--sp-2); }
.rn-ho + .rn-ho { border-block-start: 1px solid var(--line); padding-block-start: var(--sp-3); }



.rn-ho-when { margin-inline-start: auto; text-align: end; }



.rn-go {
  display: flex; align-items: center; gap: var(--sp-3); width: 100%;
  min-height: 44px; margin-block-start: var(--sp-4);
  background: none; border: 0; border-block-start: 1px solid var(--line); border-radius: 0;
  padding: var(--sp-4) var(--sp-1) 0;
  color: var(--accent); font-weight: var(--fw-med); text-align: start;
}
.rn-go:hover { filter: none; color: var(--accent); background: none; }
.rn-go-caret { margin-inline-start: auto; }

@media (max-width: 719px) {
  .rn-row { padding-inline: var(--sp-4); }
}








@media (min-width: 720px) {
  .rn-row { min-height: 52px; padding-block: var(--sp-3); }










  .rn-main {
    grid-template-columns: minmax(0, 1.95fr) var(--rn-asg-col) var(--rn-veh-col) var(--rn-plate-col)
                           minmax(0, 1.4fr) minmax(0, 1.25fr);
    column-gap: var(--sp-5);
  }
  .rn-line1 { grid-column: 1; }


  .rn-line1, .rn-veh, .rn-plate, .rn-asg, .rn-when, .rn-line3 { grid-row: 1; }
  .rn-asg { grid-column: 2; }
  .rn-veh { grid-column: 3; }
  .rn-plate { grid-column: 4; }

  .rn-when { grid-column: 5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }




  .rn-line3 { grid-column: 6; justify-self: end; text-align: end; }
}













.rn-new {
  min-height: 44px; padding-inline: var(--sp-6); border-radius: var(--r-s);
  font-weight: var(--fw-semi); flex: none;
}
.rn-act-off { color: var(--crit); }
.rn-act.rn-act-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.rn-modal {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: flex-end; justify-content: center;


  background: var(--overlay);
}
.rn-modal-card {
  background: var(--card); border: 1px solid var(--line);
  border-start-start-radius: var(--r); border-start-end-radius: var(--r);
  box-shadow: var(--shadow-strong);
  width: min(46rem, 100%); max-height: 92vh;
  display: flex; flex-direction: column;
}
.rn-modal-head {
  align-items: center; gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-6); border-block-end: 1px solid var(--line);
}

.rn-modal-x {
  background: none; border: 0; color: var(--muted);
  min-width: 44px; min-height: 44px; font-size: var(--fs-xl); line-height: 1;
}
.rn-modal-x:hover { background: none; color: var(--ink); filter: none; }
.rn-modal-body { padding: var(--sp-6); overflow-y: auto; }


.rn-modal-foot {
  position: sticky; bottom: calc(-1 * var(--sp-6)); gap: var(--sp-4); align-items: center;
  background: var(--card); padding-block: var(--sp-4);
  border-block-start: 1px solid var(--line); margin-block-start: var(--sp-5);
}
.rn-go-big {
  min-height: 52px; flex: 1 1 12rem; border-radius: var(--r);
  font-size: var(--fs-l); font-weight: var(--fw-semi);
}
.rn-danger { background: var(--crit); border-color: var(--crit); color: var(--on-crit); }



.rn-opt {
  display: flex; flex-direction: column; gap: var(--sp-2); width: 100%; text-align: start;
  min-height: 56px; padding: var(--sp-4) var(--sp-5);
  background: var(--card2); border: 1px solid var(--line); border-radius: var(--r);
  color: inherit; font-weight: var(--fw-med);
}
.rn-opt:hover { background: var(--hover); filter: none; }
.rn-opt.picked { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.rn-opt.off { opacity: .75; }
.rn-why { color: var(--crit); font-size: var(--fs-xs); text-align: end; }

.rn-choice-list { display: flex; flex-direction: column; gap: var(--sp-3); margin: var(--sp-4) 0; }
.rn-choice-ref { font-weight: var(--fw-bold, 600); }



.rn-bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.rn-bullets li { position: relative; padding-inline-start: var(--sp-5); font-size: var(--fs-s); }
.rn-bullets li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: .55em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--muted);
}
.rn-bullets.ok li::before { background: var(--ok); }
.rn-bullets.warn li::before { background: var(--warn); }
.rn-bullets.off li::before { background: var(--crit); }
.rn-plan { margin: 0; display: flex; flex-direction: column; gap: var(--sp-5); background: var(--card2); }
.rn-check { align-items: center; gap: var(--sp-3); min-height: 44px; }

@media (min-width: 720px) {

  .rn-modal { align-items: center; }
  .rn-modal-card { border-radius: var(--r); }
}
















.cmp-text {
  width: 100%; max-width: none;
  min-height: 44px; max-height: 8.5rem; overflow-y: auto; resize: none;
  padding: var(--sp-3) var(--sp-5); border-radius: var(--r);
  background: var(--card2); border: 1px solid var(--line); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-m); line-height: var(--lh-text);
}
.cmp-text:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cmp-acts { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

.cmp-go, .cmp-send { min-height: 52px; flex: 1 1 12rem; font-size: var(--fs-l); font-weight: var(--fw-semi); }
.cmp-acts .ghost { min-height: 52px; flex: 0 1 8rem; }












.cmp-acts.cmp-acts-write > button { flex: 1 0 auto; }


.cmp-acts .cp-spark { font-size: var(--fs-s); }



.cmp-hint { margin: 0; line-height: var(--lh-text); }

.cmp-blocked { margin: 0 0 var(--sp-3); line-height: var(--lh-text); }
.cmp-blocked-go { margin-inline-start: var(--sp-2); white-space: nowrap; }






.cmp-ask-row { display: flex; gap: var(--sp-3); align-items: center; }


.cmp-arrow {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  inline-size: 44px; block-size: 44px; padding: 0; border-radius: var(--r-pill);
}
.cmp-arrow svg { inline-size: 20px; block-size: 20px; display: block; }



.cmp-pair { display: flex; flex-direction: column; gap: var(--sp-4); }
.cmp-side {
  padding: var(--sp-4) var(--sp-5); border-radius: var(--r);
  background: var(--card2); border: 1px solid var(--line);
}

.cmp-side.out { border-color: var(--accent); }
.cmp-body { margin-block-start: var(--sp-2); white-space: pre-wrap; line-height: var(--lh-text); }
.cmp-note {
  margin: 0; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-s);
  background: var(--warn-soft); border-inline-start: 3px solid var(--warn);
}








.cmp-ask { flex: 1 1 auto; min-inline-size: 0; max-width: none; min-height: 44px; }



.ai-bar { height: 10px; border-radius: var(--r-pill); background: var(--neutral-soft); overflow: hidden; }
.ai-bar-fill { height: 100%; border-radius: var(--r-pill); background: var(--ok); }
.ai-bar-fill.warn { background: var(--warn); }
.ai-bar-fill.off { background: var(--crit); }
.ai-spent { font-size: var(--fs-l); }
.ai-kind { gap: var(--sp-4); }

@media (min-width: 720px) {
  .cmp-pair { flex-direction: row; }
  .cmp-pair > .cmp-side { flex: 1 1 0; }
}











.cp-spark-ico { font-size: var(--fs-m); line-height: 1; flex: none; }
.cp-btn { font-size: var(--fs-m); line-height: 1; }



.cp-spark {
  display: inline-flex; align-items: center; gap: var(--sp-2);


  min-height: 32px; padding: 5px var(--sp-5);
  border-radius: var(--r-pill); border: 1px solid var(--line);
  background: transparent; color: var(--muted); font-size: var(--fs-xs); cursor: pointer;
}
.cp-spark:hover { color: var(--ink); border-color: var(--accent); background: var(--accent-soft); }
.cp-spark[disabled] { opacity: .6; cursor: default; }









@media (max-width: 519px) {
  .cp-spark:not(.cp-spark-wide):not(.cp-spark-busy) .cp-spark-txt { display: none; }
}



.cp-sug {
  display: flex; flex-direction: column; gap: var(--sp-4);
  padding: var(--sp-5); border-radius: var(--r);
  border: 1px dashed var(--accent-dim); background: var(--card2);
}
.cp-sug-head { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }

.cp-held { white-space: normal; max-width: 100%; border-radius: var(--r-s); line-height: 1.35; }










@media (max-width: 719px) {
  .cp-sug > .cmp-acts {
    position: sticky; inset-block-end: var(--sp-3); z-index: 1;
    background: var(--card2); padding-block: var(--sp-3);
  }
}

.cp-sug.warn { border-color: var(--warn); }
.cp-flag {
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-s);
  background: var(--warn-soft); border-inline-start: 3px solid var(--warn);
}



.cp-sug-ask { border-block-start: 1px solid var(--line); padding-block-start: var(--sp-4); }
.cp-meta { display: flex; gap: var(--sp-3); flex-wrap: wrap; }



.cp-src { align-items: center; row-gap: var(--sp-2); }


.cp-src[hidden] { display: none; }
.cp-src-one { display: inline-flex; align-items: center; gap: var(--sp-2); }
.cp-src-sep { opacity: .5; }


.cp-none { align-items: center; row-gap: var(--sp-2); }







.cp-draft .note-hint { margin-block: 0; }




.cp-wrap { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end; }
.cp-back { position: absolute; inset: 0; background: var(--overlay); }




.cp-panel {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  width: 100%; max-width: 100%; height: 100%;
  background: var(--bg); border-inline-start: 1px solid var(--line); box-shadow: var(--shadow-strong);
}
.cp-head {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-6); border-block-end: 1px solid var(--line); flex: none;
}
.cp-x { font-size: var(--fs-xl); line-height: 1; }
.cp-log {
  flex: 1 1 auto; min-width: 0; overflow-y: auto; padding: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-6);
}
.cp-q { padding: var(--sp-4) var(--sp-5); border-radius: var(--r); background: var(--card2); }
.cp-q-body { margin-block-start: var(--sp-2); white-space: pre-wrap; }
.cp-a { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
.cp-rich { display: flex; flex-direction: column; gap: var(--sp-4); line-height: var(--lh-text); }
.cp-rich p { margin: 0; }
.cp-rich ul { margin: 0; padding-inline-start: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-2); }
.cp-err {
  padding: var(--sp-4) var(--sp-5); border-radius: var(--r-s);
  background: var(--crit-soft); border-inline-start: 3px solid var(--crit); color: var(--ink);
}
.cp-form {
  flex: none; display: flex; gap: var(--sp-4); align-items: stretch;
  padding: var(--sp-5) var(--sp-6) 0; border-block-start: 1px solid var(--line);
}
.cp-input {
  flex: 1 1 auto; min-height: 52px; resize: vertical;
  padding: var(--sp-4) var(--sp-5); border-radius: var(--r);
  background: var(--card2); border: 1px solid var(--line); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-m); line-height: var(--lh-text);
}
.cp-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cp-go { min-height: 52px; flex: 0 0 auto; font-weight: var(--fw-semi); }
.cp-foot { flex: none; padding: var(--sp-3) var(--sp-6) var(--sp-6); margin: 0; }




.cp-doors { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.cp-door { text-align: start; }







.cp-cards { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
.cp-card {
  display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0;
  padding: var(--sp-4) var(--sp-5); border-radius: var(--r); background: var(--card2); border: 1px solid var(--line);
}
.cp-cards[hidden], .cp-card[hidden], .cp-card-tbl tr[hidden] { display: none; }
.cp-card-src { color: var(--muted); font-weight: var(--fw-med); overflow-wrap: anywhere; }
.cp-card-sum { font-weight: var(--fw-semi); overflow-wrap: anywhere; }
.cp-card-scroll { overflow-x: auto; max-width: 100%; width: 100%; min-width: 0; align-self: stretch; text-align: start;
  -webkit-overflow-scrolling: touch; }
.cp-card-tbl { width: max-content; min-width: 100%; margin: 0; text-align: start; }
.cp-card-tbl td, .cp-card-tbl th { padding: var(--sp-2) var(--sp-4) var(--sp-2) 0; white-space: nowrap; }

.cp-card-tbl td:first-child, .cp-card-tbl th:first-child { white-space: normal; max-width: 16ch; overflow-wrap: anywhere;
  position: sticky; inset-inline-start: 0; background: var(--card2); }
.cp-card-tbl td:last-child, .cp-card-tbl th:last-child { white-space: normal; min-width: 8ch; padding-inline-end: var(--sp-2); }
.cp-card-num { text-align: end; }
.cp-card-total td { font-weight: var(--fw-semi); border-block-end: 0; border-block-start: 2px solid var(--line); }
.cp-card-more, .cp-card-open { align-self: flex-start; text-align: start; }

@media (min-width: 720px) {
  .cp-panel { width: 460px; max-width: 92vw; }
}

