/* ============================================================================
   views.css: regole legate a una vista sola (dashboard, scalette, checklist,
   calendario, smart list, sondaggi, file, foglio di stampa, colonne per lista).
   I nomi pilotati da app.js non si rinominano: #setlist-editor, .set-block,
   .item-list, .item, .item-empty, .dragging/.dragover, #cond-rows, .cond-row.
   ============================================================================ */

/* ── colonne per lista (≥760px; sotto: schede impilate via .td[data-h]) ──── */
@media (min-width: 760px) {
  .tbl-songs .thead, .tbl-songs .tr { grid-template-columns: 2.4fr 1.1fr .6fr .5fr 1.4fr auto; }
  .tbl-setlists .thead, .tbl-setlists .tr { grid-template-columns: 2.2fr 1.2fr .7fr .7fr auto; }
  .tbl-smartlists .thead, .tbl-smartlists .tr { grid-template-columns: 2.4fr .8fr auto; }
  .tbl-events .thead, .tbl-events .tr { grid-template-columns: 2fr 1.2fr 1.1fr .9fr auto; }
  .tbl-contacts .thead, .tbl-contacts .tr { grid-template-columns: 2fr 1.4fr 1.2fr auto; }
  .tbl-checklists .thead, .tbl-checklists .tr { grid-template-columns: 2.2fr 1.4fr 1fr auto; }
  .tbl-files .thead, .tbl-files .tr { grid-template-columns: 2.4fr .7fr .8fr 1fr auto; }
  .tbl-tx .thead, .tbl-tx .tr { grid-template-columns: 1fr 1.6fr 1.2fr 1fr auto; }
  .tbl-funds .thead, .tbl-funds .tr { grid-template-columns: 2fr 1fr auto; }
  .tbl-invoices .thead, .tbl-invoices .tr { grid-template-columns: 1.6fr 1.4fr 1fr 1fr auto; }
  .tbl-stage .thead, .tbl-stage .tr { grid-template-columns: 2.2fr 1.2fr .8fr auto; }
  .tbl-users .thead, .tbl-users .tr { grid-template-columns: 1fr 1.5fr .7fr minmax(0, 2.4fr); }
  .tbl-invites .thead, .tbl-invites .tr { grid-template-columns: 1.4fr 1fr .8fr auto; }
  .tbl-sessions .thead, .tbl-sessions .tr { grid-template-columns: 1.4fr 2fr .8fr auto; }
  .tbl-results .thead, .tbl-results .tr { grid-template-columns: 2fr 1.2fr .6fr .6fr .8fr 1.4fr; }
  .tbl-inputs .thead, .tbl-inputs .tr { grid-template-columns: 40px 2fr 1fr .9fr .5fr .5fr 1fr auto; }
}

/* ── repertorio su mobile (<760px): riga compatta su due linee ─────────────
   linea 1: titolo + tonalità + BPM; linea 2: artista + stato. Niente etichette
   data-h, niente "—" per i valori vuoti, tag/durata/voto restano nella scheda. */
@media (max-width: 759px) {
  .tbl-songs .tr {
    grid-template-columns: minmax(0, 1fr) auto auto; column-gap: var(--s3); row-gap: 2px;
    grid-template-areas: "title key bpm" "art art st";
    padding: var(--s2) var(--s4); min-height: var(--hit); line-height: 1.35;
  }
  .tbl-songs .td[data-h]::before { display: none; }
  .tbl-songs .td-title { grid-area: title; }
  .tbl-songs .td-key { grid-area: key; }
  .tbl-songs .td-bpm { grid-area: bpm; }
  .tbl-songs .td-art { grid-area: art; }
  .tbl-songs .td-st { grid-area: st; }
  .tbl-songs .td-tags, .tbl-songs .tsub, .tbl-songs .is-empty { display: none; }
  .tbl-songs .tname { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tbl-songs .td-art { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tbl-songs .td-key, .tbl-songs .td-bpm { color: var(--ink-soft); font-size: var(--fs-0); }
}

/* ── home: prossimo impegno, cose da fare, registro attività ─────────────── */
.next-event {
  display: flex; flex-direction: column; gap: var(--s1); margin-bottom: var(--s5); padding: var(--s4) var(--s5);
  text-decoration: none; color: var(--ink); border: 1px solid var(--cable); border-radius: var(--r); background: var(--amp);
}
a.next-event:hover { background: var(--amp-2); }
.next-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
.next-title { font-family: var(--fh); font-weight: var(--fh-weight); font-stretch: var(--fh-stretch); font-size: var(--fs-3); line-height: 1.2; overflow-wrap: anywhere; }
.next-event time { color: var(--ink-soft); font-size: var(--fs-0); overflow-wrap: anywhere; }
.home-sec { margin-bottom: var(--s5); }
.home-sec > h2 { font-size: var(--fs-1); margin-bottom: var(--s3); }
.feed { list-style: none; margin: 0; padding: 0; border: 1px solid var(--cable); border-radius: var(--r); background: var(--amp); overflow: hidden; }
.feed-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--cable); }
.feed-item:last-child { border-bottom: none; }
.feed-text {
  flex: 1 1 18rem; display: flex; align-items: center; min-height: var(--hit); min-width: 0;
  padding: var(--s3) var(--s4); color: var(--ink); text-decoration: none; overflow-wrap: anywhere;
}
a.feed-text:hover { background: var(--amp-2); color: var(--cue); }
.feed-when { padding: 0 var(--s4) var(--s3); color: var(--ink-soft); font-size: var(--fs-0); font-variant-numeric: tabular-nums; }
@media (min-width: 760px) { .feed-when { flex: none; padding: var(--s3) var(--s4); } }
.home-more { text-align: center; margin-top: var(--s4); }
.minilist { display: flex; flex-direction: column; }
.minilist .mi { display: flex; align-items: center; gap: var(--s2); padding: var(--s2) 0; border-bottom: 1px solid var(--cable); font-size: var(--fs-0); }
.minilist .mi:last-child { border-bottom: none; }
.minilist .mi a { text-decoration: none; font-weight: 600; }
.minilist .mi a:hover { color: var(--cue); }
.minilist .mi .when { font-size: var(--fs-0); color: var(--ink-soft); margin: 0; font-variant-numeric: tabular-nums; }
.minilist .mi .grow { min-width: 0; }

/* ── primo accesso: blocco in Home e indicatore dei passi ────────────────── */
.setup-list, .setup-dots { list-style: none; margin: 0; padding: 0; }
.setup-list { border: 1px solid var(--cable); border-radius: var(--r); background: var(--amp); overflow: hidden; }
.setup-item { border-bottom: 1px solid var(--cable); }
.setup-item:last-child { border-bottom: none; }
.setup-link {
  display: flex; align-items: center; gap: var(--s3); min-height: var(--hit); padding: var(--s3) var(--s4);
  color: var(--ink); text-decoration: none; font-weight: 600; overflow-wrap: anywhere;
}
.setup-link:hover { background: var(--amp-2); color: var(--cue); }
.setup-n {
  flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--cable); color: var(--ink-soft); font-size: var(--fs-0); font-weight: 600;
}
.setup-n.is-done, .setup-item[data-step-done] .setup-n { background: var(--ok); border-color: var(--ok); color: var(--stage); }
.setup-dots { display: flex; gap: var(--s2); margin-bottom: var(--s4); }
.setup-dots a { display: inline-grid; place-items: center; min-width: var(--hit); min-height: var(--hit); color: var(--ink-soft); text-decoration: none; }
.setup-dots a:hover { color: var(--cue); }
.setup-dots [aria-current="step"] a { color: var(--ink); font-weight: 600; }
.setup-dots [aria-current="step"] .setup-n:not(.is-done) { border-color: var(--cue); color: var(--cue); }

/* ── sondaggio prove: invito in dashboard, voto, risultati ───────────────── */
.poll-cta {
  display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); padding: var(--s3) var(--s4);
  text-decoration: none; color: var(--ink); border-radius: var(--r);
  background: color-mix(in srgb, var(--cue) 10%, var(--amp)); border: 1px solid var(--cue);
}
.poll-cta:hover { background: var(--amp-2); }
.poll-cta > svg { width: 24px; height: 24px; color: var(--cue); flex: none; }
.poll-cta-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.poll-cta-txt small { color: var(--ink-soft); font-size: var(--fs-0); margin-top: 2px; }
.poll-cta-btn {
  flex: none; font-size: var(--fs-0); font-weight: 700; white-space: nowrap;
  background: var(--cue); color: var(--cue-ink); padding: var(--s2) var(--s4); border-radius: var(--r);
}
.pollvote { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; padding: var(--s2) 0; border-bottom: 1px solid var(--cable); }
.pollvote:last-of-type { border-bottom: none; }
.pollvote-when { font-size: var(--fs-0); }
.pollvote-opts { display: flex; gap: var(--s1); }
.vopt { cursor: pointer; }
.vopt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vopt span {
  display: inline-flex; align-items: center; min-height: var(--hit); padding: 0 var(--s4); border-radius: var(--r);
  border: 1px solid var(--cable); background: var(--amp); color: var(--ink-soft); font-size: var(--fs-0); font-weight: 600;
}
.vopt input:focus-visible + span { outline: 2px solid var(--cue); outline-offset: 2px; }
.vopt-yes input:checked + span { color: var(--ink); background: color-mix(in srgb, var(--ok) 18%, var(--amp)); border-color: var(--ok); }
.vopt-maybe input:checked + span { color: var(--ink); background: color-mix(in srgb, var(--warn) 18%, var(--amp)); border-color: var(--warn); }
.vopt-no input:checked + span { color: var(--ink); background: color-mix(in srgb, var(--danger) 18%, var(--amp)); border-color: var(--danger); }
.pollslot { border: 1px solid var(--cable); border-radius: var(--r); padding: var(--s3) var(--s4); }
.pollslot.lead { border-color: var(--cue); background: color-mix(in srgb, var(--cue) 10%, transparent); }
.pollslot-h { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); }
.pollslot-when { font-weight: 600; font-size: var(--fs-0); }
.pollslot-score { display: flex; align-items: center; gap: var(--s2); }
.pollslot-score .n { font-weight: 700; font-size: var(--fs-2); font-variant-numeric: tabular-nums; }
.pollslot-votes { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s3); }
.vchip { font-size: var(--fs-0); font-weight: 600; padding: 2px var(--s2); border-radius: var(--r); border: 1px solid var(--cable); background: var(--amp); color: var(--ink-soft); }
.vchip.vote-yes { color: var(--ink); border-color: var(--ok); }
.vchip.vote-maybe { color: var(--ink); border-color: var(--warn); }
.vchip.vote-no { color: var(--ink); border-color: var(--danger); }
.vchip.vote-none { opacity: .6; }

/* ── editor scalette (DnD di app.js) ─────────────────────────────────────── */
.setlist-editor { display: flex; flex-direction: column; gap: var(--s4); }
.set-block { border: 1px solid var(--cable); border-radius: var(--r); background: var(--amp); overflow: hidden; }
.set-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: var(--s3) var(--s4); border-bottom: 1px solid var(--cable); background: var(--amp-2);
}
.set-head h2 { font-size: var(--fs-2); display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap; }
.item-list { list-style: none; display: flex; flex-direction: column; min-height: 8px; }
.item { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s4); min-height: var(--hit); border-bottom: 1px solid var(--cable); }
.item:last-child { border-bottom: none; }
.item:hover { background: var(--amp-2); }
.item-handle { color: var(--ink-soft); cursor: grab; user-select: none; flex: none; display: flex; }
.item-handle svg { width: 16px; height: 18px; }
.item-title { flex: 1; min-width: 0; font-weight: 500; font-size: var(--fs-0); display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.item-title > svg { width: 16px; height: 16px; color: var(--ink-soft); flex: none; }
.item-break .item-title, .item-label .item-title { color: var(--ink-soft); font-style: italic; }
.item-dur { font-size: var(--fs-0); color: var(--ink-soft); flex: none; font-variant-numeric: tabular-nums; }
.item-actions { display: flex; gap: var(--s1); align-items: center; flex: none; position: relative; }
.item.dragging { opacity: .5; }
.item-list.dragover { outline: 2px dashed var(--cue); outline-offset: -4px; border-radius: var(--r); }
.item-empty { padding: var(--s3) var(--s4); color: var(--ink-soft); font-size: var(--fs-0); }
.editor-tools { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s4); }
.tool { border: 1px solid var(--cable); border-radius: var(--r); background: var(--amp); overflow: hidden; }
.tool > summary, .set-manage > summary, .item-edit-pop > summary, .cl-pop > summary { cursor: pointer; list-style: none; }
.tool > summary::-webkit-details-marker, .set-manage > summary::-webkit-details-marker,
.item-edit-pop > summary::-webkit-details-marker, .cl-pop > summary::-webkit-details-marker { display: none; }
.tool > summary { padding: var(--s3) var(--s4); min-height: var(--hit); font-weight: 600; font-size: var(--fs-0); display: flex; align-items: center; gap: var(--s2); }
.tool[open] > summary { border-bottom: 1px solid var(--cable); }
.tool .tool-b { padding: var(--s4); }
.picker { list-style: none; max-height: 340px; overflow: auto; margin-top: var(--s3); }
.picker li { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: var(--s2) 2px; border-bottom: 1px solid var(--cable); }
.picker li:last-child { border-bottom: none; }
.picker li > span { min-width: 0; overflow-wrap: anywhere; }
.picker form { display: flex; align-items: center; gap: var(--s2); min-width: 0; flex: 0 1 auto; }
.picker .select-el { min-width: 0; flex: 1 1 auto; max-width: 100%; text-overflow: ellipsis; }
.picker .btn { flex: none; min-width: var(--hit); min-height: var(--hit); }
@media (max-width: 599px) {
  /* titolo a tutta riga, azioni e "+" sotto: nessun bersaglio spinto fuori schermo */
  .picker li { flex-wrap: wrap; }
  .picker li > span { flex: 1 1 100%; }
  .picker form { flex: 1 1 100%; }
  .item { flex-wrap: wrap; row-gap: var(--s1); }
  .item-handle { display: none; } /* il trascinamento è del mouse: sul telefono si usano su/giù */
  .item-title { flex: 1 1 100%; overflow-wrap: anywhere; }
  .item-dur { order: 2; }
  .item-actions { order: 3; flex: 1 1 0; min-width: min-content; justify-content: flex-end; flex-wrap: wrap; }
  .item-actions .iconbtn-xs { min-width: var(--hit); min-height: var(--hit); }
}
.set-manage[open] > summary, .item-edit-pop[open] > summary, .cl-pop[open] > summary { color: var(--cue); }
/* popover sopra la pagina: unica ombra ammessa (--lift) */
.item-edit-pop[open] > summary + form, .cl-edit {
  position: absolute; z-index: 20; right: 0; top: 40px; width: 270px; padding: var(--s3);
  display: flex; flex-direction: column; gap: var(--s2);
  background: var(--amp); border: 1px solid var(--cable); border-radius: var(--r); box-shadow: var(--lift);
}
.set-manage[open] > summary + form { margin-top: var(--s2); }

/* ── albero checklist (fino a 3 livelli) ─────────────────────────────────── */
.tree { display: flex; flex-direction: column; }
.tree .tree { border-top: 1px solid var(--cable); }
.tree-item { border-bottom: 1px solid var(--cable); }
.tree-row { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s3); min-height: var(--hit); }
.tree-item[data-depth="1"] .tree-row { padding-left: 40px; }
.tree-item[data-depth="2"] .tree-row { padding-left: 64px; }
.tree-check {
  width: 28px; height: 28px; border-radius: var(--r); border: 2px solid var(--cable); background: var(--amp-2);
  display: grid; place-items: center; cursor: pointer; flex: none; color: transparent;
}
.tree-check.done { background: var(--ok); border-color: var(--ok); color: var(--stage); }
.tree-check.doing { border-color: var(--warn); color: var(--warn); }
.tree-check svg { width: 15px; height: 15px; }
.tree-row .tt { flex: 1; font-size: var(--fs-0); font-weight: 500; }
.tree-item.is-done .tt { color: var(--ink-soft); text-decoration: line-through; }
.tree-row .ord { display: flex; gap: var(--s1); align-items: center; position: relative; }
.tree-row .ord button {
  width: 36px; height: 36px; border-radius: var(--r); border: 1px solid var(--cable); background: var(--amp);
  color: var(--ink-soft); cursor: pointer; display: grid; place-items: center;
}
.tree-row .ord svg { width: 14px; height: 14px; }
.cl-edit { width: 280px; }
.cl-note { padding: 0 var(--s4) var(--s2) 52px; color: var(--ink-soft); font-size: var(--fs-0); }
.tree-item[data-depth="1"] .cl-note { padding-left: 76px; }
.tree-item[data-depth="2"] .cl-note { padding-left: 100px; }

/* ── calendario (griglia mese a mano; lista sotto 760px) ─────────────────── */
.cal { border: 1px solid var(--cable); border-radius: var(--r); background: var(--amp); overflow: hidden; }
.cal .dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--cable); background: var(--amp-2); }
.cal .dow span { padding: var(--s2) var(--s3); font-size: var(--fs-0); font-weight: 600; color: var(--ink-soft); }
.cal .wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--cable); }
.cal .wk:last-child { border-bottom: none; }
.cal .cell { min-width: 0; min-height: 92px; border-right: 1px solid var(--cable); padding: var(--s2); display: flex; flex-direction: column; gap: var(--s1); }
.cal .cell:nth-child(7) { border-right: none; }
.cal .cell.out { background: var(--stage); }
.cal .cell.out .dn { opacity: .6; }
.cal .cell.today { box-shadow: inset 0 0 0 2px var(--cue); }
.cal .dn { font-size: var(--fs-0); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cal .cell.today .dn {
  background: var(--cue); color: var(--cue-ink); font-weight: 700; border-radius: var(--r);
  width: 28px; height: 28px; display: grid; place-items: center;
}
.evt {
  display: flex; align-items: center; gap: var(--s1); padding: 2px var(--s1); border-radius: var(--r);
  font-size: var(--fs-0); font-weight: 600; line-height: 1.2; text-decoration: none;
  color: var(--ink); background: var(--amp-2);
}
.evt .t { font-weight: 400; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
/* colore categoria (dato utente): fondo tenue + quadratino davanti al titolo; il testo resta --ink */
.evt[data-c] { background: color-mix(in srgb, var(--c) 18%, var(--amp)); }
.evt[data-c]::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--c); flex: none; }
.cal-nav { display: flex; align-items: center; justify-content: center; gap: var(--s3); margin-bottom: var(--s4); }
.cal-nav strong { font-family: var(--fh); font-weight: var(--fh-weight); font-stretch: var(--fh-stretch); font-size: var(--fs-2); min-width: 180px; text-align: center; }
.cal-list { display: none; margin-top: var(--s4); }
@media (max-width: 759px) {
  .cal .cell { min-height: auto; padding: var(--s1); }
  .cal .dow span { padding: var(--s2) 0; text-align: center; min-width: 0; overflow: hidden; }
  .cal .dn { text-align: center; }
  /* sotto 760px la griglia mostra solo un pallino: i dettagli sono nella .cal-list */
  .evt { font-size: 0; padding: 2px; }
  .evt .t { font-size: 0; }
  .evt::before, .evt[data-c]::before { content: ""; width: 8px; height: 8px; border-radius: var(--r); background: var(--c, var(--cue)); }
  .cal-list { display: block; }
}

/* ── builder smart list (app.js) ─────────────────────────────────────────── */
#cond-rows { display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--s3); }
.cond-row { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr 1fr auto; gap: var(--s2); align-items: center; }
@media (max-width: 640px) { .cond-row { grid-template-columns: 1fr 1fr; } }
.cond-logic { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s3); color: var(--ink-soft); font-size: var(--fs-0); }
.cond-logic .select-el { width: auto; min-width: 160px; }

/* ── anteprima file ──────────────────────────────────────────────────────── */
.file-frame { width: 100%; height: 70vh; border: 1px solid var(--cable); border-radius: var(--r); background: var(--amp-2); }
.file-image { max-width: 100%; height: auto; border-radius: var(--r); }
.file-video { max-width: 100%; border-radius: var(--r); background: var(--stage); }

/* ── foglio di stampa (layout print): anteprima nel tema, carta in stampa ── */
.sheet {
  max-width: 780px; margin: var(--s4) auto var(--s6); padding: var(--s6) var(--s7);
  background: var(--amp); border: 1px solid var(--cable); border-radius: var(--r);
}
.sheet h1 { font-size: var(--fs-4); }
.sheet .meta { font-size: var(--fs-0); color: var(--ink-soft); margin-top: var(--s2); display: flex; gap: var(--s3); flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.seth {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: var(--s5) 0 var(--s2); padding-bottom: var(--s2); border-bottom: 1px solid var(--cable);
  font-family: var(--fh); font-weight: var(--fh-weight); font-stretch: var(--fh-stretch); font-size: var(--fs-1); color: var(--cue);
}
.pl { display: flex; align-items: baseline; gap: var(--s3); padding: var(--s2) 0; border-bottom: 1px dotted var(--cable); }
.pl .n { font-size: var(--fs-0); color: var(--ink-soft); width: 28px; flex: none; font-variant-numeric: tabular-nums; }
.pl .t { font-weight: 600; font-size: var(--fs-1); flex: 1; }
.pl .t small { font-weight: 400; color: var(--ink-soft); margin-left: var(--s2); font-size: var(--fs-0); }
.pl .k { font-size: var(--fs-0); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.pl .d { font-size: var(--fs-0); color: var(--ink-soft); width: 52px; text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.pbreak { font-size: var(--fs-0); color: var(--cue); padding: var(--s2) 0; font-style: italic; }
.sheet .note { font-size: var(--fs-0); color: var(--ink-soft); margin-top: var(--s1); white-space: pre-wrap; }

/* tabella di stampa (es. input list dello stage plot) */
.ps-tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-0); margin-top: var(--s2); }
.ps-tbl th, .ps-tbl td { border: 1px solid var(--cable); padding: var(--s1) var(--s2); text-align: left; }
.ps-tbl th { font-weight: 600; color: var(--ink-soft); background: var(--amp-2); }

/* anteprima dell'import CSV: la tabella scorre nel suo riquadro, mai la pagina */
.import-sum { display: flex; flex-direction: column; gap: var(--s2); }
.import-sum p { margin: 0; }
.import-scroll { overflow-x: auto; border: 1px solid var(--cable); border-radius: var(--r); background: var(--amp); max-width: 100%; }
.import-tbl { border-collapse: collapse; width: 100%; font-size: var(--fs-0); }
.import-tbl th, .import-tbl td { padding: var(--s2) var(--s3); text-align: left; border-bottom: 1px solid var(--cable); white-space: nowrap; max-width: 28ch; overflow: hidden; text-overflow: ellipsis; }
.import-tbl th { font-weight: 600; color: var(--ink-soft); background: var(--amp-2); }
.import-tbl tr:last-child td { border-bottom: none; }
.import-tbl td.num { font-variant-numeric: tabular-nums; }

@media print {
  .sheet { border: none; border-radius: 0; margin: 0; max-width: none; padding: 0; background: var(--paper); color: var(--paper-ink); }
  .sheet h1, .pl .t { color: var(--paper-ink); }
  .seth { color: var(--paper-ink); border-color: var(--paper-soft); }
  .pl { border-color: var(--paper-line); }
  .pl .n, .pl .k, .pl .d, .pl .t small, .sheet .meta, .sheet .note, .pbreak { color: var(--paper-soft); }
  .ps-tbl th, .ps-tbl td { border-color: var(--paper-line); color: var(--paper-ink); }
  .ps-tbl th { background: var(--paper-2); }
}
