/* Nexus Preview Power (D461, docs/power.md par. 5). Il guscio e' quello del
   portale (nexus-shell.css del kit, D321), i componenti sono quelli del kit
   (nx-cmd, nexus-card, nexus-chip, nexus-alert, nexus-kpi): qui stanno solo
   le icone in linea, l'impaginazione delle pagine, i campi e le tabelle nella
   forma del portale e l'assetto sul telefono. Solo token --nx-* / --nexus-*
   dove il kit li ha. Tono da schermata di prodotto: poco testo, molto spazio. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--nexus-font-family); color: var(--nexus-text-primary); background: var(--nx-canvas); }
a { color: var(--nx-teal-ink, #0b7a75); }
button { font-family: inherit; }
[hidden] { display: none !important; }

/* ---- Il guscio del portale ---- */
body.pw-portale { height: 100vh; height: 100dvh; overflow: hidden; }
.pw-portale .nx-shell { height: 100%; }
/* Le icone del kit in linea (IconeKit della libreria comune): il colore lo da' il testo. */
.pn-icon { display: inline-grid; place-items: center; width: 1em; height: 1em; font-size: 18px; flex: none; }
.pn-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; }
.nx-rail-row--leaf .nx-rail-row__icon .pn-icon { font-size: 16px; }
.nx-rail-item__icon .pn-icon { font-size: 20px; }
.nx-rail-item__label { hyphens: auto; }
.nx-nav-handle .pn-icon { font-size: 16px; }
.nx-topbtn .pn-icon { font-size: 20px; }
.nx-account__item-icon .pn-icon { font-size: 16px; }
a.nx-rail-row, a.nx-rail-item, a.nx-topbtn, a.nx-account__item, a.nx-cmd, a.nx-cmd:hover { text-decoration: none; }
.nx-rail-row__chev { transition: transform .15s ease; }
.nx-rail-row--open .nx-rail-row__chev { transform: rotate(90deg); }
.nx-actrail .nx-account__user-mark { width: 34px; height: 34px; font-weight: 600; font-size: 12px; }
.nx-account__menu .pw-inline { display: block; }
.pw-brand-link { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.pw-brand-tag { color: var(--nx-on-canvas-muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1; padding-top: 4px; }
.nx-content__inner { min-height: 100%; display: flex; flex-direction: column; }
.pw-page { flex: 1 0 auto; }

/* Sul telefono: la barra in cima e la colonna che si apre sopra il foglio. */
.pw-mbar, .pw-scrim { display: none; }
@media (max-width: 760px) {
  .pw-portale .nx-shell.nx-canvas { --nx-content-padding: 14px; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr); padding: 0 8px 8px; gap: 0 4px; }
  .pw-mbar { display: flex; align-items: center; gap: 8px; grid-column: 1; grid-row: 1; height: 52px; min-width: 0; }
  .pw-mbar__menu { color: var(--nx-on-canvas); }
  .pw-mbar__brand { display: flex; align-items: center; gap: 6px; text-decoration: none; }
  .pw-portale .nx-nav-handle { display: none; }
  .pw-portale .nx-actrail { grid-column: 2; grid-row: 1; flex-direction: row; align-items: center; height: 52px; }
  .pw-portale .nx-main { grid-column: 1 / -1; grid-row: 2; }
  .pw-portale .nx-nav-col { position: fixed; top: 0; bottom: 0; left: 0; z-index: 60; padding: 6px 0; background: var(--nx-canvas); box-shadow: var(--nx-shadow-float); transform: translateX(-105%); transition: transform .2s ease; }
  .pw-portale .pw-nav-open .nx-nav-col { transform: none; }
  .pw-portale .pw-nav-open .pw-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: color-mix(in srgb, var(--nx-navy-deep, #050E1A) 45%, transparent); }
  .pw-portale .nx-account__menu { right: 0; top: calc(100% + 8px); max-width: calc(100vw - 24px); }
}

/* ---- L'accesso: il foglio stretto sul telaio navy, con il marchio sopra ---- */
body.pw-solo { min-height: 100vh; display: flex; justify-content: center; }
.pw-solo__frame { width: 100%; max-width: 520px; padding: 10vh 16px 24px; display: flex; flex-direction: column; gap: 18px; }
.pw-solo__brand { display: flex; align-items: center; gap: 10px; padding-left: 4px; }
.pw-sheet { background: var(--nx-sheet); border-radius: var(--nx-radius-sheet); padding: 28px 30px 30px; }
.nx-content .pw-sheet { background: none; border-radius: 0; padding: 0; }
.pw-sheet--narrow { max-width: 520px; }
.pw-sheet .pw-lead { margin-bottom: 18px; }
.pw-solo .pw-foot { color: var(--nx-on-canvas-muted, #8FA3B8); border: 0; padding: 0 4px; }

/* ---- Le pagine ---- */
.nx-content h1, .pw-sheet h1 { font-family: var(--nexus-font-heading); font-size: var(--nexus-fs-h2); line-height: var(--nexus-lh-h2); font-weight: var(--nexus-fw-semibold); margin: 0 0 6px; }
.nx-content h2 { font-family: var(--nexus-font-heading); font-size: var(--nexus-fs-h3); line-height: var(--nexus-lh-h3); font-weight: var(--nexus-fw-semibold); margin: 0 0 12px; }
.nx-content h3 { font-size: var(--nexus-fs-body-sm); font-weight: var(--nexus-fw-semibold); margin: 16px 0 6px; color: var(--nexus-text-secondary); }
.pw-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.pw-lead { color: var(--nexus-text-secondary); margin: 0; max-width: 760px; line-height: 1.5; }
.pw-page > h2 { margin-top: 26px; }
.pw-card { margin-top: 16px; }
.pw-card > h2:first-child { margin-top: 0; }
.pw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; align-items: start; }
.pw-grid--top > .pw-card { margin-top: 0; }
.pw-wide { grid-column: 1 / -1; }
@media (max-width: 860px) { .pw-grid { grid-template-columns: 1fr; } }
.pw-flash { margin-bottom: 16px; }
.pw-flash__more { margin: 8px 0 0; }
.pw-foot { color: var(--nexus-text-muted); font-size: 12px; padding: 18px 0 4px; margin-top: 28px; border-top: 1px solid var(--nx-line-soft); }
.pw-hint { font-size: 12px; color: var(--nexus-text-muted); margin-top: 4px; line-height: 1.45; }
.pw-hint--top { margin: -4px 0 12px; }
.pw-mono { font-family: var(--nexus-font-mono); font-size: 13px; overflow-wrap: anywhere; }
.pw-path { margin: 0 0 12px; }
.pw-nowrap { white-space: nowrap; }
.pw-inline { display: inline; margin: 0; }
.pw-empty { color: var(--nexus-text-muted); padding: 22px 0; }
.pw-empty p { margin: 0 0 12px; }
.pw-count { color: var(--nexus-text-muted); font-size: 12.5px; margin: 0 0 6px; }
.pw-sub { display: block; margin-top: 2px; font-size: 12.5px; color: var(--nexus-text-muted); }
.pw-list { margin: 8px 0 12px; padding-left: 20px; line-height: 1.5; }
.pw-list li { margin: 4px 0; }
.pw-list--plain { list-style: none; padding-left: 0; }
/* Le pagine che arrivano dopo (Idee, Documenti): un riquadro calmo, nessun comando finto. */
.pw-soon { background: var(--nx-surface); border-radius: var(--nx-radius-card); box-shadow: var(--nx-shadow-card); padding: 28px 26px; max-width: 640px; }
.pw-soon p { margin: 12px 0 0; color: var(--nexus-text-secondary); font-size: 15px; line-height: 1.5; }
.pw-kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; margin: 0; }
.pw-kv dt { color: var(--nexus-text-secondary); }
.pw-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.pw-about { margin-top: 28px; }
.pw-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.pw-kpi { display: grid; gap: 6px; }

/* I campi nella forma degli editor DevExpress del portale; sotto :where per non battere le classi del kit. */
.pw-form { max-width: 760px; }
.pw-form--wide { max-width: 980px; }
.pw-field { margin-bottom: 14px; min-width: 0; }
.pw-field label, .pw-form label:not(.pw-check):not(.pw-choice) { display: block; font-size: 12.5px; font-weight: 600; color: var(--nexus-text-secondary); margin-bottom: 4px; }
:where(.pw-page, .pw-sheet) :where(input[type=text], input[type=password], input[type=search], select) { width: 100%; min-height: var(--nx-control-h, 38px); border: 0; border-radius: var(--nx-radius-sm); background: var(--nx-field); color: var(--nx-text); font: inherit; font-size: var(--nexus-fs-body-sm); padding: 8px 10px; }
:where(.pw-page, .pw-sheet) :where(input, select):focus { outline: none; box-shadow: var(--nx-focus); background: var(--nx-field-hover, var(--nx-field)); }
.pw-actions { display: flex; gap: 10px; margin-top: 18px; align-items: center; flex-wrap: wrap; }
.pw-check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 6px 0 10px; cursor: pointer; }
.pw-check input { margin: 0; accent-color: var(--nx-teal-ink, #0B7B77); }
/* Le due partenze di Nuova idea: il gruppo senza la cornice del browser, la legenda come le etichette dei campi. */
.pw-partenze { border: 0; margin: 0; padding: 0; min-width: 0; }
.pw-partenze > legend { padding: 0; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--nexus-text-secondary); }
.pw-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 16px; }
label.pw-choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--nx-radius-sm, 8px); background: var(--nx-field, #F1F5F9); cursor: pointer; }
label.pw-choice:has(input:checked) { background: var(--nexus-teal-100, #E6F8F7); box-shadow: inset 0 0 0 1px var(--nx-teal-ink, #0B7B77); }
.pw-choice input { margin-top: 3px; accent-color: var(--nx-teal-ink, #0B7B77); }
.pw-choice strong { display: block; font-size: 14px; }
.pw-choice small { display: block; margin-top: 3px; font-size: 12px; color: var(--nexus-text-muted); line-height: 1.45; }

/* Le tabelle come le griglie del portale: sole linee orizzontali, testata attenuata; sul telefono scorrono nel loro riquadro. */
.pw-table-wrap { max-width: 100%; overflow-x: auto; }
.pw-table { width: 100%; border-collapse: collapse; font-size: var(--nexus-fs-body-sm); }
.pw-table th { text-align: left; font-size: var(--nexus-fs-table-head, 12px); color: var(--nexus-text-muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--nx-line); white-space: nowrap; }
.pw-table td { padding: 10px; border-bottom: 1px solid var(--nx-line-soft); vertical-align: top; }
.pw-table tbody tr:hover td { background: var(--nx-row-selected, var(--nexus-hover-surface)); }
.pw-table .pw-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pw-table .nexus-chip + .nexus-chip { margin-left: 4px; }
.pw-row-actions { white-space: nowrap; text-align: right; }

/* Un comando che aspetta: lo spinner e, se si puo' fermare, Ferma accanto (D364). */
.pw-spinner { display: inline-block; width: 11px; height: 11px; margin-right: 6px; border-radius: 50%; border: 2px solid rgb(8 23 43 / .2); border-top-color: currentColor; animation: pw-spin .8s linear infinite; vertical-align: -1px; }
@keyframes pw-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pw-spinner { animation-duration: 2.4s; } }
.pw-busy { pointer-events: none; opacity: .85; }
.pw-ferma__icona { display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: currentColor; margin-right: 7px; }

/* ---- R1a: la preparazione (clienti, scheda, prototipo, idee, scaletta) ---- */
.pw-crumb { display: flex; gap: 8px; align-items: center; font-size: 13px; margin: 0 0 8px; color: var(--nexus-text-muted); }
.pw-crumb a { text-decoration: none; }
.pw-crumb a:hover { text-decoration: underline; }
.pw-head__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pw-h1chip { vertical-align: 4px; margin-left: 6px; }
.pw-cardhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; margin-bottom: 12px; }
.pw-cardhead h2 { margin: 0 0 4px; }
.pw-cardhead .pw-hint--top { margin: 0; max-width: 680px; }
.pw-card h3 { font-size: var(--nexus-fs-body-sm); color: var(--nexus-text-secondary); margin: 18px 0 8px; }
.pw-card h4 { font-size: 13.5px; margin: 16px 0 6px; }
.pw-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .pw-grid--3 { grid-template-columns: 1fr; } }
.pw-actions--tight { margin-top: 0; }
.pw-inline-form { display: flex; align-items: center; gap: 8px; }
.pw-inline-form label { font-size: 12.5px; font-weight: 600; color: var(--nexus-text-secondary); white-space: nowrap; }
:where(.pw-page) .pw-inline-form select { width: auto; min-width: 140px; }
.pw-toolbar { display: flex; align-items: flex-end; gap: 12px 16px; flex-wrap: wrap; margin: 0 0 14px; }
.pw-toolbar .pw-field { margin: 0; min-width: 200px; }
:where(.pw-page) .pw-search { max-width: 420px; }
.pw-combo { display: flex; gap: 8px; }
.pw-combo select { flex: 1; min-width: 0; }
.pw-rowlink { text-decoration: none; color: inherit; }
.pw-rowlink:hover strong { text-decoration: underline; }
.pw-tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; background: var(--nx-field, #F0F4F9); color: var(--nexus-text-secondary); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pw-tag--ok { background: var(--nexus-teal-100, #E6F8F7); color: var(--nx-teal-ink, #0B7B77); }
.pw-tag--warn { background: #FFF4DB; color: #8A5A12; }
.pw-link { background: none; border: 0; padding: 0 2px; color: var(--nx-teal-ink, #0B7B77); font: inherit; font-size: 12.5px; text-decoration: underline; cursor: pointer; }
.pw-fonte { font-size: 12px; text-decoration: none; }
.pw-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:where(.pw-page) textarea { width: 100%; min-height: 96px; border: 0; border-radius: var(--nx-radius-sm); background: var(--nx-field); color: var(--nx-text); font: inherit; font-size: var(--nexus-fs-body-sm); padding: 10px 12px; line-height: 1.5; resize: vertical; }
:where(.pw-page) textarea:focus { outline: none; box-shadow: var(--nx-focus); }

/* I riquadri che si richiudono: il titolo e' il sommario. */
details.pw-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
details.pw-fold > summary::-webkit-details-marker { display: none; }
details.pw-fold > summary h2 { margin: 0; }
details.pw-fold > summary::before { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin-right: 2px; transition: transform .15s ease; align-self: center; color: var(--nexus-text-muted); }
details.pw-fold[open] > summary::before { transform: rotate(45deg); }
details.pw-fold[open] > summary { margin-bottom: 14px; }
.pw-fold--piccolo > summary { font-size: 13px; color: var(--nexus-text-secondary); }
.pw-fold--piccolo { margin-top: 14px; }
.pw-dettagli { margin-top: 22px; }

/* La scaletta: le voci in ordine, i comandi a destra. */
.pw-scaletta { list-style: none; margin: 0 0 6px; padding: 0; }
.pw-scaletta__voce { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--nx-line-soft); }
.pw-scaletta__voce:first-child { border-top: 0; }
.pw-scaletta__n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--nx-canvas, #08172B); color: #fff; font-weight: 700; font-size: 13px; }
.pw-scaletta__titolo { font-weight: 600; font-size: 15px; }
.pw-scaletta__titolo a { color: inherit; text-decoration: none; }
.pw-scaletta__titolo a:hover { text-decoration: underline; }
.pw-scaletta__meta { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 4px; font-size: 12.5px; color: var(--nexus-text-muted); }
.pw-scaletta__comandi { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.pw-toggle[aria-pressed="true"] { background: var(--nexus-teal-100, #E6F8F7); color: var(--nx-teal-ink, #0B7B77); }
@media (max-width: 760px) { .pw-scaletta__voce { grid-template-columns: 30px minmax(0, 1fr); } .pw-scaletta__comandi { grid-column: 1 / -1; justify-content: flex-start; } }
.pw-proposte { margin-top: 10px; padding: 12px 14px; border-radius: var(--nx-radius-sm, 8px); background: var(--nexus-teal-100, #E6F8F7); }
.nx-content .pw-proposte h3 { margin-top: 0; color: var(--nx-teal-ink, #0B7B77); }
.pw-proposta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.pw-aggiungi { margin-top: 16px; }

/* Il profilo pubblico. */
.pw-versioni { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 14px 0 6px; }
.pw-profilo { margin-top: 12px; border-top: 1px solid var(--nx-line-soft); padding-top: 6px; }
.nx-content .pw-profilo__testa h3 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 4px; font-size: 15px; color: inherit; }
.pw-fonti { columns: 2; font-size: 13px; }
@media (max-width: 760px) { .pw-fonti { columns: 1; } }

/* La fattibilita' in parole (markdown del generatore). */
.pw-prosa { font-size: 14.5px; line-height: 1.6; max-width: 980px; }
.nx-content .pw-prosa h1 { font-size: 20px; margin: 4px 0 10px; }
.nx-content .pw-prosa h2 { font-size: 16px; margin: 20px 0 8px; color: var(--nx-teal-ink, #0B7B77); }
.nx-content .pw-prosa h3 { font-size: 14px; margin: 16px 0 6px; color: var(--nexus-text-secondary); }
.pw-prosa table { border-collapse: collapse; width: 100%; font-size: 13.5px; margin: 8px 0 14px; display: block; overflow-x: auto; }
.pw-prosa th, .pw-prosa td { text-align: left; vertical-align: top; padding: 7px 10px; border-bottom: 1px solid var(--nx-line-soft); }
.pw-prosa th { font-size: 12px; color: var(--nexus-text-muted); border-bottom-color: var(--nx-line); }
.pw-prosa code { font-family: var(--nexus-font-mono); font-size: 12px; background: var(--nx-field); padding: 0 4px; border-radius: 4px; }
.pw-prosa hr { border: 0; border-top: 1px solid var(--nx-line-soft); margin: 18px 0; }
.pw-prosa em { color: var(--nexus-text-secondary); }

/* Completa le sezioni. */
.pw-sezioni { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 18px; }
.pw-sezioni__gruppo { border: 0; margin: 0; padding: 0; }
.pw-sezioni__gruppo legend { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--nexus-text-muted); margin-bottom: 6px; }
.pw-sezioni__voce { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: baseline; padding: 4px 0; font-size: 13.5px; cursor: pointer; }
.pw-sezioni__voce .pw-sub { grid-column: 2; margin-top: 0; }
.pw-sezioni__voce--spenta { opacity: .55; cursor: default; }

/* Le idee del catalogo: riquadri. */
.pw-idee { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
/* position: relative tiene dentro il riquadro l'etichetta nascosta della tendina
   (pw-visually-hidden): senza, si posizionava sulla pagina e la allungava oltre
   il foglio (schermata a pagina intera di 5.900 px, prova dell'8/11). */
.pw-idea { display: flex; flex-direction: column; gap: 10px; position: relative; }
.pw-idea[hidden] { display: none; }
.pw-idea__tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nx-content .pw-idea__titolo { font-size: 16px; line-height: 1.35; margin: 0; }
.pw-idea__testo { margin: 0; color: var(--nexus-text-secondary); font-size: 13.5px; line-height: 1.5; flex: 1 0 auto; }
.pw-idea__azioni { display: flex; gap: 8px; flex-wrap: wrap; }
.pw-idea__scaletta { display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--nx-line-soft); padding-top: 10px; }
.pw-idea__scaletta select { flex: 1; min-width: 0; }

/* Il pannello di una corsa (come quello dell'app di oggi). */
.pw-run { background: var(--nx-surface); border-radius: var(--nx-radius-card); box-shadow: var(--nx-shadow-card); padding: 20px 22px 18px; margin: 0 0 16px; }
.pw-run__head { display: flex; align-items: center; gap: 14px; }
.nx-content .pw-run__title { margin: 0; font-size: 18px; }
.pw-run__eta { color: var(--nexus-text-secondary); font-size: 14px; margin-top: 2px; }
.pw-run__clock { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--nexus-text-muted); font-size: 13px; }
.pw-run__next { margin-left: auto; white-space: nowrap; }
.pw-run .pw-inline { flex: none; }
.pw-spinner--run { width: 22px; height: 22px; border-width: 3px; margin: 0; flex: none; border-color: rgb(28 207 201 / .25); border-top-color: var(--nx-teal, #1CCFC9); }
.pw-spinner--done, .pw-spinner--stop, .pw-spinner--fail { animation: none; border-color: var(--nx-teal, #1CCFC9); }
.pw-spinner--stop { border-color: #C58A1F; }
.pw-spinner--fail { border-color: #B42318; }
.pw-spinner--xs { width: 10px; height: 10px; border-width: 2px; margin: 0 4px 0 0; }
.pw-bar { height: 6px; border-radius: 999px; background: var(--nx-field, #E6ECF2); overflow: hidden; margin: 16px 0 14px; }
.pw-bar__fill { height: 100%; width: 2%; background: var(--nx-teal, #1CCFC9); border-radius: inherit; transition: width .9s ease; }
.pw-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; }
.pw-step { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px 5px 9px; border-radius: 999px; background: var(--nx-field, #EEF2F6); color: var(--nexus-text-secondary); font-size: 13px; font-weight: 600; }
.pw-step__dot { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #B8C4D0; }
.pw-step__dot svg { width: 10px; height: 10px; }
.pw-step--done { background: var(--nexus-teal-100, #E6F8F7); color: var(--nx-teal-ink, #0B7B77); }
.pw-step--done .pw-step__dot { border-color: var(--nx-teal, #1CCFC9); background: var(--nx-teal, #1CCFC9); color: var(--nx-canvas, #08172B); }
.pw-step--now { background: var(--nx-canvas, #08172B); color: #fff; }
.pw-run__label { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--nx-teal-ink, #0B7B77); margin-bottom: 6px; }
.pw-story { list-style: none; margin: 0; padding: 0; max-height: 340px; overflow: auto; }
.pw-story__item { display: grid; grid-template-columns: 20px 42px 1fr; align-items: start; gap: 8px; padding: 7px 2px; font-size: 15px; line-height: 1.45; color: var(--nexus-text-secondary); }
.pw-story__item + .pw-story__item { border-top: 1px solid var(--nx-line-soft); }
.pw-story__item--live, .pw-story__item:last-child { color: var(--nx-text, #0F1B2D); }
.pw-story__item--live .pw-story__text { font-weight: 600; }
.pw-story__icon { display: grid; place-items: center; width: 20px; height: 22px; color: var(--nx-teal-ink, #0B7B77); }
.pw-story__icon svg { width: 16px; height: 16px; }
.pw-story__dot { width: 8px; height: 8px; border-radius: 50%; background: #B8C4D0; }
.pw-story__item--live .pw-story__dot { background: var(--nx-teal, #1CCFC9); box-shadow: 0 0 0 4px rgb(28 207 201 / .18); }
.pw-story__item--fix .pw-story__icon { color: #B7791F; }
.pw-story__item--fail, .pw-story__item--fail .pw-story__icon { color: #8a1f1f; }
.pw-story__item--end .pw-story__text { font-weight: 700; color: var(--nx-teal-ink, #0B7B77); }
.pw-story__item--stop .pw-story__icon, .pw-story__item--stop .pw-story__text { color: #8a5a12; font-weight: 600; }
.pw-story__t { color: var(--nexus-text-muted); font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 3px; }
@media (max-width: 760px) { .pw-story__item { grid-template-columns: 20px 1fr; } .pw-story__t { display: none; } }
.pw-techlog { margin-top: 12px; }
.pw-techlog summary { cursor: pointer; font-size: 12.5px; color: var(--nexus-text-muted); }
.pw-log { margin-top: 8px; background: var(--nx-field); border-radius: var(--nx-radius-sm, 8px); padding: 10px 12px; font-family: var(--nexus-font-mono); font-size: 12px; white-space: pre-wrap; max-height: 240px; overflow: auto; }

/* La riunione (R1b): a schermo intero, senza guscio; per ora «in arrivo». */
body.pw-riunione { min-height: 100vh; margin: 0; background: var(--nx-canvas, #08172B); color: #E6EDF5; display: grid; place-items: center; }
.pw-riunione__palco { text-align: center; padding: 6vh 6vw; max-width: 1100px; }
.pw-riunione__marchio { opacity: .9; margin-bottom: 6vh; }
.pw-riunione__titolo { font-family: var(--nexus-font-heading); font-size: clamp(36px, 6vw, 72px); line-height: 1.1; margin: 0 0 24px; color: #fff; }
.pw-riunione__sotto { font-size: clamp(20px, 2.4vw, 30px); margin: 0 0 12px; color: var(--nx-teal, #1CCFC9); }
.pw-riunione__nota { font-size: 18px; color: #A8B8CC; margin: 0 0 6vh; }
.pw-riunione__esci { color: #A8B8CC; font-size: 15px; text-decoration: none; border: 1px solid rgb(255 255 255 / .2); border-radius: 999px; padding: 10px 18px; }
.pw-riunione__esci:hover { color: #fff; border-color: rgb(255 255 255 / .45); }
