/* Portale della squadra: una colonna, pensato prima per il telefono. Usa i token e i componenti di app.css (bottoni, campi, card, pill). */
.pt-body { min-height: 100dvh; }
.pt-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--border);
  background: var(--topbar-glass); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.pt-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--foreground); font-weight: 650; font-size: var(--fs-md); text-decoration: none; }
.pt-brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--primary); color: var(--primary-foreground); font-size: 15px; flex: none; }
.pt-top-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pt-me { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-foreground); font-weight: 650; font-size: 13px; text-decoration: none; }
.pt-me:hover { text-decoration: none; filter: brightness(1.05); }
.pt-preview { padding: 8px 16px; background: var(--amber-bg); color: var(--amber); font-size: var(--fs-sm); font-weight: 550; text-align: center; }

.pt-main { width: 100%; max-width: 760px; margin: 0 auto; padding: 20px 16px calc(48px + env(safe-area-inset-bottom)); }
.pt-main h1 { margin: 4px 0 4px; font-size: 24px; line-height: 1.25; letter-spacing: -0.015em; }
.pt-main .lead { margin: 0 0 20px; color: var(--muted-foreground); font-size: var(--fs-md); }
.pt-stack { display: grid; gap: 14px; }
.pt-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.pt-card > .h { display: flex; align-items: center; gap: 8px; padding: 14px 16px 0; }
.pt-card > .h h2 { margin: 0; font-size: 15px; font-weight: 650; }
.pt-card > .h .r { margin-left: auto; }
.pt-card > .b { padding: 12px 16px 16px; }
.pt-card > .b > :first-child { margin-top: 0; }
.pt-card > .b > :last-child { margin-bottom: 0; }

/* accesso */
.pt-auth { max-width: 440px; margin: 6vh auto 0; }
.pt-auth .pt-card > .b { padding: 22px 20px 20px; }
.pt-auth h1 { font-size: 22px; }
.pt-auth .hero { margin-bottom: 18px; }
.pt-auth .hero .eyebrow { color: var(--primary-text); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.pt-auth .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; color: var(--muted-foreground); font-size: var(--fs-sm); }
.pt-auth .meta span { display: inline-flex; align-items: center; gap: 5px; }
.pt-form { display: grid; gap: 14px; }
.pt-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pt-form .field label { font-size: 13px; }
.pt-form input:where(:not([type=checkbox])), .pt-form select, .pt-form textarea { min-height: 44px; font-size: 16px; }
.pt-form .btn, .pt-actions .btn { --h: 44px; font-size: 15px; }
.pt-form .btn.pri { width: 100%; }
.pt-code { letter-spacing: 0.4em; text-align: center; font-variant-numeric: tabular-nums; font-size: 22px !important; font-weight: 600; }
.pt-demo { padding: 10px 12px; border: 1px dashed var(--amber); border-radius: var(--radius-md); background: var(--amber-bg); color: var(--amber); font-size: var(--fs-sm); }
.pt-demo b { font-size: 15px; letter-spacing: 0.15em; }
.pt-choice { display: grid; gap: 10px; }
.pt-choice .btn { justify-content: flex-start; height: auto; min-height: 52px; padding: 10px 14px; white-space: normal; text-align: left; }
.pt-choice .btn small { display: block; color: var(--muted-foreground); font-weight: 400; }
.pt-link { background: none; border: 0; padding: 0; color: var(--primary-text); font-weight: 500; cursor: pointer; }
.pt-err { padding: 10px 12px; border-radius: var(--radius-md); background: var(--red-bg); color: var(--red); font-size: var(--fs-sm); }

/* home: progetti */
.pt-projects { display: grid; gap: 12px; }
.pt-proj { display: grid; gap: 6px; padding: 16px; color: inherit; text-decoration: none; transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease); }
.pt-proj:hover { text-decoration: none; border-color: var(--primary-line); box-shadow: var(--shadow-sm); }
.pt-proj .t { display: flex; align-items: flex-start; gap: 8px; font-size: 16px; font-weight: 650; line-height: 1.35; }
.pt-proj .t .pill { margin-left: auto; flex: none; }
.pt-proj .m { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted-foreground); font-size: var(--fs-sm); }
.pt-proj .m span { display: inline-flex; align-items: center; gap: 5px; }
.pt-proj.past { opacity: 0.72; }
.pt-section-t { margin: 22px 0 10px; color: var(--muted-foreground); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.pt-empty { padding: 28px 20px; text-align: center; }
.pt-empty .ic { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 10px; border-radius: 50%; background: var(--accent); color: var(--accent-foreground); }
.pt-empty h2 { margin: 0 0 6px; font-size: 17px; }
.pt-empty p { margin: 0 auto; max-width: 380px; color: var(--muted-foreground); }

/* barra di completamento */
.pt-meter { position: relative; height: 6px; border-radius: 99px; background: var(--muted); overflow: hidden; }
.pt-meter > span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--primary); }
.pt-nudge { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.pt-nudge .txt { flex: 1; min-width: 0; }
.pt-nudge .txt b { display: block; margin-bottom: 6px; }
.pt-nudge .pt-meter { margin-top: 8px; }

/* progetto */
.pt-switch { width: 100%; margin-bottom: 14px; min-height: 40px !important; font-weight: 550; }
.pt-head .m { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; color: var(--muted-foreground); font-size: var(--fs-md); }
.pt-head .m span { display: inline-flex; align-items: center; gap: 6px; }
.pt-cta { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-lg); border: 1px solid var(--amber); background: var(--amber-bg); color: var(--amber); }
.pt-cta.ok { border-color: color-mix(in oklab, var(--green) 40%, transparent); background: var(--green-bg); color: var(--green); }
.pt-cta.wait { border-color: var(--border); background: var(--muted); color: var(--muted-foreground); }
.pt-cta .txt { flex: 1; min-width: 0; }
.pt-cta .txt b { display: block; color: inherit; }
.pt-cta .txt span { font-size: var(--fs-sm); }
.pt-cta .btn { flex: none; }
.pt-kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: var(--fs-base); }
.pt-kv dt { color: var(--muted-foreground); }
.pt-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.pt-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.pt-list > li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); }
.pt-list > li:first-child { border-top: 0; padding-top: 2px; }
.pt-list .ic { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--muted); color: var(--foreground-2); }
.pt-list .tx { flex: 1; min-width: 0; }
.pt-list .tx b { display: block; font-weight: 600; }
.pt-list .tx .s { color: var(--muted-foreground); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.pt-list .rt { flex: none; text-align: right; font-size: var(--fs-sm); color: var(--muted-foreground); }
.pt-list a.tx { color: inherit; }
.pt-brief { white-space: pre-wrap; overflow-wrap: anywhere; }
.pt-tabs { display: flex; gap: 6px; margin: 2px 0 10px; }
.pt-tabs button { min-height: 32px; padding: 0 12px; border: 1px solid var(--input); border-radius: 99px; background: none; color: var(--foreground-2); font-weight: 550; cursor: pointer; }
.pt-tabs button.on { border-color: var(--primary); background: var(--accent); color: var(--accent-foreground); }
.pt-tel { white-space: nowrap; }

/* accordo */
.pt-doc { max-height: 58vh; overflow: auto; padding: 4px 18px 18px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); font-size: 14.5px; line-height: 1.6; overscroll-behavior: contain; }
.pt-doc h2 { font-size: 18px; margin: 22px 0 6px; }
.pt-doc h3 { font-size: 15px; margin: 16px 0 4px; }
.pt-doc table { border-collapse: collapse; width: 100%; margin: 10px 0; font-size: 13.5px; }
.pt-doc td, .pt-doc th { border: 1px solid var(--border); padding: 6px 8px; text-align: left; vertical-align: top; }
.pt-doc hr { border: 0; border-top: 1px solid var(--border); margin: 26px 0; }
.pt-terms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(120px, 100%), 1fr)); gap: 10px 16px; }
.pt-terms div { display: grid; gap: 2px; }
.pt-terms span { color: var(--muted-foreground); font-size: var(--fs-sm); }
.pt-terms b { font-weight: 600; overflow-wrap: anywhere; }
.pt-accept { display: grid; gap: 10px; }
.pt-accept label { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--input); border-radius: var(--radius-md); cursor: pointer; line-height: 1.4; }
.pt-accept label:has(input:checked) { border-color: var(--primary); background: var(--accent); }
.pt-accept input { margin-top: 2px; width: 18px; height: 18px; }
.pt-signed { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--green-bg); color: var(--green); }
.pt-hash { font-family: var(--font-mono); font-size: 11px; word-break: break-all; opacity: 0.85; }

/* profilo */
.pt-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 12px 14px; }
.pt-fields .field.wide { grid-column: 1 / -1; }
.pt-fields .req { color: var(--red); margin-left: 2px; }
.pt-fields input:where(:not([type=checkbox])), .pt-fields select, .pt-fields textarea { min-height: 42px; font-size: 16px; }
.pt-consent { display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; cursor: pointer; }
.pt-consent input { margin-top: 3px; width: 18px; height: 18px; }
.pt-privacy { margin: 6px 0 0 28px; color: var(--muted-foreground); font-size: var(--fs-sm); }
.pt-docs > li .rt { display: flex; gap: 6px; }
.pt-savebar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 10px; margin: 18px -16px -48px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--topbar-glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pt-savebar .msg { flex: 1; color: var(--muted-foreground); font-size: var(--fs-sm); }
.pt-savebar .btn { --h: 44px; }

/* spese */
.pt-exp-form { display: grid; gap: 12px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--border); }
.pt-exp-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

@media (max-width: 420px) {
  .pt-main h1 { font-size: 21px; }
  .pt-form .row2 { grid-template-columns: 1fr; }
  .pt-cta { flex-wrap: wrap; }
  .pt-cta .btn { width: 100%; }
  .pt-kv { grid-template-columns: 1fr; gap: 2px; }
  .pt-kv dd { margin-bottom: 8px; }
}

/* sezioni del portale (01/11/2026): fila di schede sotto l'intestazione su schermo largo, barra in basso sul telefono.
   Fuori dall'intestazione: il suo sfocato (backdrop-filter) farebbe da riferimento al position: fixed. */
.pt-nav { display: flex; justify-content: center; gap: 4px; max-width: 760px; margin: 0 auto; padding: 10px 16px 0; }
.pt-nav[hidden] { display: none; }
.pt-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; color: var(--muted-foreground); font-size: 14px; font-weight: 550; text-decoration: none; }
.pt-nav a:hover { color: var(--foreground); text-decoration: none; }
.pt-nav a.on { background: var(--accent); color: var(--accent-foreground); }
@media (max-width: 640px) {
  .pt-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; justify-content: space-around; margin: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--card); }
  .pt-nav a { flex-direction: column; gap: 2px; min-width: 76px; padding: 6px 10px; font-size: 12px; }
  .pt-body.has-nav .pt-main { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
}

/* versione di questa copia (01/11/2026, app/versione.json): barra del backup archiviato, etichetta della copia di lavoro */
.release-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; padding: 8px 16px;
  background: var(--amber); color: #1d1a12; font-size: var(--fs-sm); text-align: center; position: relative; z-index: 60; }
.release-bar b { font-family: var(--font-display, inherit); font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; }

/* aggiunte con ritorno (01/11/2026, giro aggiunte-3): "Sicuro? Togli · Annulla" sul posto, Modifica/Togli delle spese, bottoni del modulo */
.pt-ask { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 2px 8px; color: var(--muted-foreground); font-size: var(--fs-sm); }
.pt-ask-b { display: inline-flex; align-items: center; gap: 6px; }
.pt-ask .pt-link { min-height: 32px; }
.pt-link.danger { color: var(--destructive); }
.pt-rowacts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 14px; margin-top: 2px; }
.pt-rowacts .pt-link { min-height: 32px; }
.pt-exp-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pt-exp-acts .pt-ask { flex: 1 1 100%; justify-content: flex-start; }
.pt-list > li.is-editing { box-shadow: inset 3px 0 0 var(--primary); padding-left: 8px; }
.pt-rowacts .pt-ask { display: grid; justify-items: end; gap: 0; }
.pt-list .tx .pt-ask { display: flex; justify-content: flex-start; }
@media (max-width: 420px) { .pt-rowacts { flex-direction: column; align-items: flex-end; } }

/* lavori assegnati (02/11/2026): spunta grande, dettaglio che si apre sul posto */
.pt-works > li.pt-wk { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; column-gap: 12px; align-items: start; }
.pt-wk > .tx { display: contents; }                 /* il dettaglio aperto usa tutta la larghezza, sotto titolo e stato */
.pt-wk > .pt-wk-check { grid-column: 1; grid-row: 1 / span 2; }
.pt-wk .pt-wk-open { grid-column: 2; grid-row: 1; }
.pt-wk > .pill { grid-column: 3; grid-row: 1; margin-top: 4px; }
.pt-wk .pt-wait, .pt-wk .pt-wk-more { grid-column: 2 / -1; }
.pt-wk .pt-wk-more { margin-top: 6px; } .pt-wk-more .pt-brief { margin: 0; }
.pt-wk-check { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; margin-top: 2px; padding: 0; border: 2px solid var(--input); border-radius: 50%;
  background: var(--card); color: transparent; cursor: pointer; }
.pt-wk-check[aria-pressed=true] { border-color: var(--green); background: var(--green); color: var(--card); }
.pt-wk-open { display: flex; flex-direction: column; gap: 2px; width: 100%; min-height: 36px; padding: 0; border: 0; background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.pt-wk.is-done .pt-wk-open b { color: var(--muted-foreground); text-decoration: line-through; }
.pt-late { color: var(--red); font-weight: 600; }
.pt-wait, .pt-list .tx .pt-wait { color: var(--amber); }
.pt-wk-more { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.pt-wk-st { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-wk-st button { min-height: 40px; padding: 0 14px; border: 1px solid var(--input); border-radius: 999px; background: var(--card); color: var(--foreground-2); font: inherit; font-size: 15px; cursor: pointer; }
.pt-wk-st button.on { border-color: var(--primary); background: var(--accent); color: var(--accent-foreground); font-weight: 600; }
.pt-wk-f { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--foreground-2); }
.pt-wk-f input { width: 100%; min-width: 0; min-height: 46px; font-size: 16px; font-weight: 400; }
.pt-wk-cl { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pt-wk-cl label { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16px; }
.pt-wk-cl input { width: 20px; height: 20px; }
.pt-wk-cl input:checked + span { color: var(--muted-foreground); text-decoration: line-through; }

/* ------------------------------------------------------------ crew 03/11/2026: schede del progetto, giornate, call sheet, rubrica, info utili */
.pt-ptabs { display: flex; gap: 4px; margin: 14px -16px 0; padding: 0 16px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border); }
.pt-ptabs::-webkit-scrollbar { display: none; }
.pt-ptabs a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-bottom: 2px solid transparent; color: var(--muted-foreground); font-weight: 600; font-size: 14px; text-decoration: none; }
.pt-ptabs a.on { border-bottom-color: var(--primary); color: var(--foreground); }
.pt-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pt-day { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: inherit; text-decoration: none; }
.pt-day:hover { border-color: var(--primary); text-decoration: none; }
.pt-day.today { border-color: var(--primary); box-shadow: inset 3px 0 0 var(--primary); }
.pt-day.past { opacity: .72; }
.pt-day .dt { flex: none; width: 44px; display: grid; justify-items: center; line-height: 1.1; }
.pt-day .dt b { font-size: 22px; }
.pt-day .dt small { color: var(--muted-foreground); text-transform: uppercase; font-size: 11px; letter-spacing: .04em; }
.pt-day .tx { flex: 1; min-width: 0; display: grid; gap: 4px; }
.pt-day .t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pt-day .t b { overflow-wrap: anywhere; }
.pt-day .s { color: var(--muted-foreground); font-size: var(--fs-sm); }
.pt-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: var(--fs-sm); color: var(--foreground-2); }
.pt-facts li { display: flex; align-items: flex-start; gap: 6px; min-width: 0; }
.pt-facts li svg { flex: none; margin-top: 2px; color: var(--muted-foreground); }
.pt-facts li span { overflow-wrap: anywhere; }
.pt-facts li.strong { color: var(--foreground); font-weight: 600; }
.pt-facts.big { font-size: var(--fs-md); gap: 8px; }
.pt-today { width: 100%; margin-bottom: 12px; --h: 44px; }
.pt-daynav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.pt-daynav .pt-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.pt-daysel { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1 1 240px; justify-content: flex-end; }
.pt-daysel select { flex: 1 1 0; width: 0; min-width: 0; max-width: 260px; min-height: 44px; }
.pt-daysel .btn.icon { --h: 44px; width: 44px; flex: none; }
.pt-dayhead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pt-dayhead h2 { margin: 0; font-size: 20px; }
.pt-dayhead h2::first-letter { text-transform: uppercase; }
.pt-dayhead .m { flex-basis: 100%; display: flex; align-items: center; gap: 6px; color: var(--muted-foreground); font-size: var(--fs-sm); }
.pt-call { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 0 12px; }
.pt-call span { color: var(--muted-foreground); font-weight: 600; }
.pt-call b { font-size: 30px; font-variant-numeric: tabular-nums; }
.pt-sched { list-style: none; margin: 0; padding: 0; display: grid; }
.pt-sched li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); }
.pt-sched li:first-child { border-top: 0; }
.pt-sched li[hidden] { display: none; }
.pt-sched .tm { font-variant-numeric: tabular-nums; font-weight: 650; display: grid; line-height: 1.2; }
.pt-sched .tm small { font-weight: 500; color: var(--muted-foreground); }
.pt-sched .tt { display: grid; gap: 2px; overflow-wrap: anywhere; }
.pt-sched .tt small { color: var(--muted-foreground); }
.pt-sched li.key .tt { font-weight: 650; }
.pt-sched li.other { color: var(--foreground-2); }
.pt-card .h .pt-tabs.r { margin: 0 0 0 auto; }
.pt-pre, .pt-brief { white-space: pre-line; }
.pt-exc { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--accent); color: var(--accent-foreground); white-space: pre-line; }
.pt-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pt-files .btn { --h: auto; min-height: 36px; max-width: 100%; white-space: normal; text-align: left; overflow-wrap: anywhere; }
.pt-list > li > .tx { min-width: 0; }
.pt-search { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; margin-bottom: 10px; border: 1px solid var(--input); border-radius: 10px; color: var(--muted-foreground); }
.pt-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--foreground); font-size: 16px; min-height: 42px; }
.pt-chips { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 10px; padding-bottom: 2px; scrollbar-width: none; }
.pt-chips button { flex: none; min-height: 36px; padding: 0 12px; border: 1px solid var(--input); border-radius: 99px; background: none; color: var(--foreground-2); font-weight: 550; cursor: pointer; }
.pt-chips button.on { border-color: var(--primary); background: var(--accent); color: var(--accent-foreground); }
.pt-list > li[hidden] { display: none; }
.pt-ferr { margin-top: 4px; color: var(--destructive, #c0392b); font-size: var(--fs-sm); }
.pt-leave { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgb(0 0 0 / .35); padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
.pt-leave-c { width: 100%; max-width: 480px; display: grid; gap: 6px; padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); }
.pt-leave-b { display: flex; gap: 8px; margin-top: 8px; }
.pt-leave-b .btn { flex: 1; --h: 44px; }
/* CREW-01: sul telefono la barra Salva sta sopra il menu in basso (e la sua area sicura), non sotto */
@media (max-width: 640px) {
  .pt-body.has-nav .pt-savebar { bottom: calc(64px + env(safe-area-inset-bottom)); margin-bottom: 0; padding-bottom: 12px; }
  .pt-body.has-nav .pt-nav { min-height: calc(64px + env(safe-area-inset-bottom)); }
}
