/* Luke's App: the Canvas (lib/ui/canvas.js). A plain pannable, zoomable sheet of lanes, one per area,
   with a card per project. Soft Focus tokens from app.css; scoped under .la like the rest of the page.
   The sheet is one CSS-transformed layer: nothing here animates, and zoom never changes a size. */

.la .cv {
  position: absolute; inset: 0; z-index: 1; overflow: hidden; overflow: clip;
  color: var(--ink); background: var(--bg) var(--wall) no-repeat; font: 400 var(--body-size)/1.45 var(--f-body);
}
.la .cv-vp {
  position: absolute; inset: 0; overflow: hidden; overflow: clip; cursor: grab;    /* clip: not even a script can scroll it */
  touch-action: none; overscroll-behavior: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.la .cv-vp.panning, .la .cv-vp.panning * { cursor: grabbing; }
.la .cv-sheet {
  position: absolute; left: 0; top: 0; transform-origin: 0 0;
  display: flex; align-items: flex-start; gap: 1.25rem; width: max-content; padding-bottom: 3rem;
}
.la .cv .landed { animation: none; }

/* a lane: the area's band, its own projects, then its sub-areas */
.la .cv-lane { flex: none; width: 19rem; display: flex; flex-direction: column; gap: .55rem; }
.la .cv-ahead { gap: .2rem; padding: .75rem .9rem .7rem 1rem; }
.la .cv-ahead .nrow { align-items: center; }
.la .cv-ahead .name { font-size: 1.45rem; overflow-wrap: anywhere; }
.la .cv-ahead.sub { padding: .5rem .7rem .5rem .85rem; border-radius: 16px; }
.la .cv-ahead.sub .name { font-size: 1.1rem; }
.la .cv-ahead .cv-open {
  flex: none; width: 2.3rem; height: 2.3rem; display: grid; place-items: center; padding: 0;
  border: 1px solid currentColor; border-radius: 999px; background: none; color: inherit; opacity: .55; cursor: pointer; font-size: .95rem;
}
.la .cv-ahead .cv-open:hover { opacity: 1; }
.la .cv-sec {
  display: flex; flex-direction: column; gap: .5rem; margin-top: .45rem;
  padding-left: .6rem; border-left: 2px solid hsl(var(--h, 200) 55% var(--dot-l));
}
.la .cv-cards { display: flex; flex-direction: column; gap: .5rem; }
.la .cv-none { margin: 0; padding: .2rem .3rem; font-size: .92rem; }

/* a project card */
.la .cv-card { padding: 0; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.la .cv-card[data-state="parked"] { opacity: .66; }
.la .cv-card.open { border-color: hsl(var(--h, 200) 45% 78%); }
.la .cv-chead { display: flex; align-items: stretch; min-width: 0; }
.la .cv-toggle {
  flex: 1 1 auto; min-width: 0; min-height: 3rem; display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem;
  padding: .7rem .5rem .7rem .9rem; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.la .cv-ttl { min-width: 0; font: var(--title-w) 1.02rem/1.28 var(--f-title); letter-spacing: var(--title-track); overflow-wrap: anywhere; }
.la .cv-meta { flex: none; display: inline-flex; align-items: center; gap: .4rem; }
.la .cv-n {
  padding: .28rem .55rem; border-radius: 999px; white-space: nowrap; font: 600 .78rem/1 var(--f-util); font-variant-numeric: tabular-nums;
  background: hsl(var(--h, 200) var(--tint-s) var(--tint-l)); color: hsl(var(--h, 200) var(--tone-s) var(--tone-l));
}
.la .cv-meta .chip { font-size: .74rem; padding: .24rem .5rem; }
.la .cv-meta .cv-warn { background: var(--mark); color: var(--mark-ink); border-color: var(--mark); }   /* not .mark: that is the app logo's class */
.la .cv-chev { width: .8rem; text-align: center; color: var(--ink-2); font-size: .8rem; line-height: 1; }
.la .cv-chead > .cv-open {
  flex: none; width: 2.75rem; padding: 0; border: 0; border-left: 1px solid var(--line); background: none; color: var(--ink-2); cursor: pointer; font-size: 1rem;
}
.la .cv-chead > .cv-open:hover { color: var(--ink); background: var(--surface-2); }
.la .cv-body { display: flex; flex-direction: column; gap: .6rem; padding: .65rem .9rem .8rem; border-top: 1px solid var(--line); cursor: default; }
.la .cv-field { display: flex; flex-direction: column; gap: .15rem; }
.la .cv-field p { font-size: .95rem; line-height: 1.4; overflow-wrap: anywhere; }
.la .cv-notes { white-space: pre-wrap; color: var(--ink-2); }
.la .cv-rows { margin-inline: -.9rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.la .cv-rows .arow { padding: .35rem .6rem .35rem .9rem; gap: .55rem; }
.la .cv-rows .atitle { font-size: .98rem; }
.la .cv-body > .cv-rows:last-child { border-bottom: 0; margin-bottom: -.8rem; }
.la .cv-empty, .la .cv-rest { font-size: .88rem; }

/* the controls, top right */
.la .cv-bar {
  position: absolute; z-index: 3; top: calc(.75rem + env(safe-area-inset-top, 0px)); right: calc(.75rem + env(safe-area-inset-right, 0px));
  display: flex; align-items: center; gap: .4rem;
}
.la .cv-btn, .la .cv-zoom {
  min-height: 2.5rem; border: 1px solid var(--bg-line); border-radius: 999px;
  background: color-mix(in srgb, var(--card) 94%, transparent); color: var(--bg-ink); box-shadow: 0 4px 14px rgba(20, 40, 35, .08);
}
.la .cv-btn { min-width: 2.5rem; padding: 0 .95rem; font: 600 .88rem/1 var(--f-util); cursor: pointer; white-space: nowrap; }
.la .cv-btn:hover { border-color: var(--bg-ink-2); }
.la .cv-zoom { display: flex; align-items: stretch; overflow: hidden; }
.la .cv-zoom .cv-btn { min-height: 0; border: 0; border-radius: 0; background: none; box-shadow: none; padding: 0 .7rem; font-size: 1.15rem; }
.la .cv-zoom .cv-btn:hover { background: var(--card-2); }
.la .cv-zoom .cv-pct { min-width: 3.5rem; padding: 0 .3rem; font: 500 .8rem/1 var(--f-mono); color: var(--bg-ink-2); font-variant-numeric: tabular-nums; }
@media (pointer: coarse) {
  .la .cv-btn, .la .cv-zoom { min-height: 2.75rem; }
  .la .cv-zoom .cv-btn { min-width: 2.75rem; }
}
