/* =========================================================================================== the management app
   One look for every gym (body.gx, layout_app.php), the look of «Tessera viva» (docs/ridisegno-tessera-viva/prototipo)
   and of the GRYNTA site: Familjen Grotesk for everything, titles included; the light, quiet content of a tool used for
   hours. The gym is present through its own colours: the top bar in its main colour with its chip and name, the
   accent on what is hot. Tokens first: the older components of tonus.css read them and follow; --brand, --accent and
   --brand-soft are the prototype's names for the gym's colours of Core\Theme. No condensed face here: Oswald stays in
   the members' app. */
@font-face { font-family: 'Familjen Grotesk'; src: url(grynta/familjen.woff2) format('woff2'); font-weight: 400 700; font-display: swap }
body.gx {
  --font: 'Familjen Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 12px;
  --brand: var(--brand-primary); --on-brand: var(--brand-on-primary); --brand-soft: var(--brand-primary-soft);
  --accent: var(--brand-accent); --on-accent: var(--brand-on-accent);
  --primary: var(--brand); --on-primary: var(--on-brand); --focus: #c2410c;
  --bg: #f6f7f9; --surface: #fff; --ink: #14181d; --ink-2: #4a5360; --ink-3: #636c78; --line: #e3e6ea; --line-2: #c9ced6;
  --ok: #157347; --ok-soft: #e6f4ec; --ko: #b42318; --ko-soft: #fdecea; --warn: #8a5a00; --warn-soft: #fff4dc;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-up: 0 20px 50px -18px rgba(10, 20, 30, .45);
  margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}
.gx a { color: var(--primary); text-decoration: none }
.gx a:hover { text-decoration: underline; text-underline-offset: 3px }
.gx :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px }
.gx h1, .gx h2, .gx h3 { line-height: 1.2; letter-spacing: -.01em }
.gx h1 { font-size: 1.35rem; font-weight: 700 }
.gx h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: .75rem }
.gx h3 { font-size: 1rem; font-weight: 700 }

/* ------------------------------------------------------------------------------------------------ frame */
/* the demo strip above everything, as the prototype's top strip: white, thin, small type */
.gx .demo-band { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; min-height: 0; margin: 0; padding: 2px 16px !important; background: var(--surface);
  color: var(--ink-2); border-bottom: 1px solid var(--line); font: 500 13.6px/1.3 var(--font); text-align: left }
.gx .demo-band a { min-height: 40px; padding: 0 12px; border-radius: 9px; background: #eef0f3; color: var(--ink) !important; font-weight: 650 }
.gx .demo-band a:hover { background: #e3e6ea }
.gx .demo-band .demo-txt { opacity: 1; color: var(--ink-2); flex: 1 1 auto; text-align: left }
.gx .demo-band .demo-switch { margin-left: auto }

/* the top bar in the gym's colour: chip and name, date and time, the big search in the middle, who is working */
.gx-top { background: var(--brand); color: var(--on-brand) }
.gx-top-in { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; max-width: 1240px; margin: 0 auto; padding: 9.6px 16px }
.gx-marchio { display: flex; align-items: center; gap: 9.6px; min-height: 44px; color: inherit !important; font-weight: 700; font-size: 16.8px; text-decoration: none !important; min-width: 0 }
.gx-marchio:hover .gx-nome { text-decoration: underline; text-underline-offset: 3px }
.gx-logo { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 9px; background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: 14.4px; letter-spacing: .02em; object-fit: cover }
.gx-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.gx-ora { font-size: 14.1px; opacity: .85; white-space: nowrap }
.gx-cerca { position: relative; flex: 1 1 18rem; max-width: 26rem; margin-left: auto; min-width: 0 }
.gx .gx-cerca .sel-box svg { color: color-mix(in srgb, var(--on-brand) 85%, transparent) }
.gx .gx-cerca .sel-box input { min-height: 44px; border: 1px solid color-mix(in srgb, var(--on-brand) 30%, transparent); border-radius: var(--radius);
  background: color-mix(in srgb, var(--on-brand) 12%, transparent); color: var(--on-brand); font-size: 16px }
.gx .gx-cerca .sel-box input::placeholder { color: color-mix(in srgb, var(--on-brand) 75%, transparent) }
.gx .gx-cerca .sel-box input:focus { border-color: color-mix(in srgb, var(--on-brand) 70%, transparent); box-shadow: none; outline: 3px solid #ffd27a; outline-offset: 2px }
.gx .gx-cerca .sel-vai { min-height: 44px; background: color-mix(in srgb, var(--on-brand) 14%, transparent); color: var(--on-brand); border-color: color-mix(in srgb, var(--on-brand) 30%, transparent) }
.gx-cerca .sel-nuovo { display: none }
.gx-cerca .sel-lista { color: var(--ink) }
.gx-top :focus-visible { outline-color: #ffd27a }
.gx-chi { display: inline-flex; align-items: center; gap: 2px; padding: 1px; border-radius: 12px; background: color-mix(in srgb, var(--on-brand) 12%, transparent) }
.gx-chi a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 11.2px; border-radius: 11px; background: var(--surface); color: var(--brand) !important;
  font-weight: 600; font-size: 14.1px; text-decoration: none !important; white-space: nowrap }
.gx-chi a:hover { background: color-mix(in srgb, var(--surface) 88%, var(--brand)) }
.gx-chi a.gx-prova { background: var(--accent); color: var(--on-accent) !important }

/* the sections: a light bar of tabs under the top bar; «Altro» holds the rest */
.gx-nav { background: var(--surface); border-bottom: 1px solid var(--line) }
.gx-nav-in { display: flex; gap: 4px; max-width: 1240px; margin: 0 auto; padding: 5.6px 16px; overflow-x: auto; scrollbar-width: none }
.gx-nav-in::-webkit-scrollbar { display: none }
.gx-nav a, .gx-nav button { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 44px; padding: 0 14.4px; border: 0; border-radius: var(--radius);
  background: transparent; color: var(--ink-2) !important; font: 650 16px/1 var(--font); text-decoration: none !important; white-space: nowrap; cursor: pointer }
.gx-nav a:hover, .gx-nav button:hover { background: #f1f3f5 }
.gx-nav a[aria-current="page"], .gx-nav button.on { background: var(--brand-soft); color: var(--brand) !important }
.gx-nav button svg { flex: none; transition: transform .15s }
.gx-nav button { anchor-name: --gx-altro }
.gx-altro:not(:popover-open) { display: none }
.gx-altro { position: fixed; inset: auto; margin: 6px 0 0; padding: 6px; width: 17rem; max-width: calc(100vw - 32px); border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-up); font: 400 16px/1.45 var(--font);
  position-anchor: --gx-altro; top: anchor(bottom); right: anchor(right) }
@supports not (anchor-name: --a) { .gx-altro { top: 7.5rem; right: 16px } }
.gx-altro:popover-open { display: grid; gap: 2px }
.gx-altro a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink) !important; font-weight: 600; text-decoration: none !important }
.gx-altro a:hover { background: var(--brand-soft) }
.gx-altro a[aria-current="page"] { background: var(--brand-soft); color: var(--brand) !important }
.gx-altro a svg { flex: none; color: var(--ink-3) }
.gx-altro .gx-esci { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px }
.gx-altro .gx-chiudi { display: none }

.gx-main { min-width: 0; width: 100%; max-width: 1240px; margin: 0 auto; padding: 20px 16px 48px }
.gx-piede { max-width: 1240px; margin: 0 auto; padding: 0 16px 32px; font-size: 12.8px; color: var(--ink-3) }

/* ------------------------------------------------------------------------------------------------ phone */
@media (max-width: 47.99rem) {
  .gx .demo-band { padding: 2px 12px !important; gap: 4px 10px }
  .gx-top-in { padding: 8.8px 12px; gap: 12px 16px }
  /* the name is a 44px target that takes the room of the 36px chip, as in the prototype */
  .gx-marchio { margin: -4px 0 }
  .gx-ora { display: none }
  .gx-marchio { flex: 1 1 100% }
  .gx-chi { margin-left: auto }
  .gx-cerca { order: 5; flex-basis: 100%; max-width: none; margin-left: 0 }
  .gx-nav-in { padding: 5.6px 12px }
  .gx-main { padding: 16px 12px 40px }
  .gx-piede { padding: 0 12px 24px }
  /* «Altro» comes up from the bottom, like the layers */
  .gx-altro { inset: auto 0 0 0; top: auto; right: 0; width: 100%; max-width: none; margin: 0; padding: 10px 12px calc(14px + env(safe-area-inset-bottom, 0px));
    border: 0; border-radius: 20px 20px 0 0 }
  .gx-altro::backdrop { background: rgba(13, 30, 36, .5) }
  .gx-altro a { min-height: 50px }
  .gx-altro .gx-chiudi { display: flex; margin-top: 8px; width: 100% }
  .gx h1 { font-size: 1.3rem }
}

/* ------------------------------------------------------------------------------------------------ page head */
.gx .page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 20px }
.gx .page-head h1 { margin: 0 }
.gx .page-head p { margin: 4px 0 0; color: var(--ink-3); font-size: 14.7px }
.gx .page-head .muted a { font-weight: 600 }
@media (max-width: 47.99rem) { .gx .page-head { margin-bottom: 14px } .gx .page-head > form, .gx .page-head > .btn, .gx .page-head > a.btn { width: 100% } .gx .page-head > form .btn { width: 100% } }

/* ------------------------------------------------------------------------------------------------ surfaces */
.gx .card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 17.6px; box-shadow: var(--shadow) }
.gx .card + .card { margin-top: 16px }
.gx .card > h2:first-child, .gx section.card > h2 { margin-top: 0 }
.gx .muted { color: var(--ink-3) }
.gx .empty { color: var(--ink-3); text-align: center; padding: 28px 12px }
.gx .cols { gap: 16px }
@media (max-width: 47.99rem) { .gx .card { padding: 14px } }

/* ------------------------------------------------------------------------------------------------ controls */
/* one primary in the gym's colour; the others white with a border; disabled ones dashed, with their reason beside */
.gx .btn { min-height: 44px; padding: 8px 16px; border-radius: var(--radius); border: 1px solid transparent; background: var(--primary); color: var(--on-primary);
  font: 650 16px/1.2 var(--font); gap: 7.2px; box-shadow: none; transition: filter .15s, background .15s, border-color .15s; text-decoration: none !important }
.gx .btn:hover { filter: brightness(1.08) }
.gx .btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2) }
.gx .btn.ghost:hover { border-color: var(--ink-3); filter: none }
.gx .btn.accent { background: var(--accent); color: var(--on-accent) }
.gx .btn.danger { background: var(--surface); color: var(--ko); border-color: #f1c2bd }
.gx .btn.danger:hover { border-color: var(--ko); filter: none }
.gx .btn.small { min-height: 44px; padding: 5.6px 12.8px; font-size: 14.7px }
.gx .btn.block { width: 100% }
.gx .btn[disabled], .gx .btn[aria-disabled="true"] { opacity: 1; background: #f1f3f5; color: #6b7480; border: 1px dashed #b5bcc6; cursor: not-allowed; filter: none }
.gx label { font-weight: 650; font-size: 14.4px; color: var(--ink); margin: 14px 0 4.8px }
.gx input[type=text], .gx input[type=email], .gx input[type=search], .gx input[type=number], .gx input[type=tel], .gx input[type=date],
.gx input[type=time], .gx input[type=password], .gx input:not([type]), .gx select, .gx textarea {
  width: 100%; min-height: 44px; border: 1px solid #c3c8d0; border-radius: var(--radius); background: var(--surface); color: var(--ink); font: 400 16px/1.3 var(--font);
  padding: 8px 12px; box-sizing: border-box; transition: border-color .15s, box-shadow .15s }
.gx textarea { line-height: 1.45 }
.gx input:focus, .gx select:focus, .gx textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent) }
.gx input:focus-visible, .gx select:focus-visible, .gx textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: none }
.gx input::placeholder, .gx textarea::placeholder { color: #8a919c }
.gx .field-err { color: var(--ko); font-size: 13.6px; margin-top: 4px }
@media (max-width: 47.99rem) { .gx .form-grid { grid-template-columns: minmax(0, 1fr) } .gx .form-grid .span2 { grid-column: auto } }

/* ------------------------------------------------------------------------------------------------ feedback */
.gx .flash { border-radius: 12px; padding: 11.2px 13.6px; margin-bottom: 16px; font-weight: 600; font-size: 14.9px; border: 0 }
.gx .flash.errore { background: var(--ko-soft); color: var(--ko) }
.gx .pill { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: .8px 8.8px; border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.3;
  background: var(--brand-soft); color: var(--primary) }
.gx .pill.ok { background: var(--ok-soft); color: var(--ok) }
.gx .pill.ko { background: var(--ko-soft); color: var(--ko) }
.gx .pill.warn { background: var(--warn-soft); color: var(--warn) }
.gx .pill.spento { background: #eceef1; color: var(--ink-2) }
.gx .verdict { border-radius: 12px; padding: 12px 16px }

/* filter chips: white pills, the chosen one in ink (the prototype's «filtri») */
.gx .sl-chips { display: flex; gap: 6.4px; flex-wrap: wrap }
.gx .sl-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 13.6px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--ink-2) !important; font: 600 14.4px/1 var(--font); text-decoration: none !important; cursor: pointer; white-space: nowrap }
.gx .sl-chip:hover { border-color: var(--ink-3) }
.gx .sl-chip.on, .gx .sl-chip[aria-pressed="true"], .gx .sl-chip[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff !important }
.gx .sl-chip .muted { color: inherit; opacity: .75 }

/* ------------------------------------------------------------------------------------------------ lists and tables */
.gx .list > li { padding: 12px 0; border-top-color: var(--line) }
.gx table.data { font-size: 15.2px }
.gx table.data th { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: var(--ink-3); padding: 10px 12px; background: #fafbfc; border-bottom: 1px solid var(--line) }
.gx table.data td { padding: 12px; border-bottom-color: var(--line) }
.gx table.data tbody tr { transition: background .12s }
.gx table.data tbody tr:hover { background: #fafbfc }
.gx table.data td a b, .gx table.data td a { font-weight: 600 }
.gx .card.table-wrap { padding: 0; overflow: hidden }
.gx .card.table-wrap > table.data th:first-child, .gx .card.table-wrap > table.data td:first-child { padding-left: 17.6px }
.gx .card.table-wrap > table.data th:last-child, .gx .card.table-wrap > table.data td:last-child { padding-right: 17.6px }
/* tables become cards on phones: each cell shows its column name (data-label, set by tonus.js from the header) */
@media (max-width: 899px) {
  .gx table.data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }
  .gx table.data, .gx table.data tbody, .gx table.data tr, .gx table.data td { display: block; width: 100% }
  .gx table.data tr { padding: 12px 16px; border-bottom: 1px solid var(--line) }
  .gx table.data tr:last-child { border-bottom: 0 }
  .gx table.data td { border: 0; padding: 3px 0 !important; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: right }
  .gx table.data td:first-child { text-align: left; display: block; padding-bottom: 6px !important }
  .gx table.data td[data-label]:not(:first-child)::before { content: attr(data-label); color: var(--ink-3); font-size: 13.5px; text-align: left }
  .gx table.data td.empty { display: block; text-align: center }
}

/* ------------------------------------------------------------------------------------------------ numbers */
/* quiet: the same face as the text, the gym's colour only on the figure */
.gx .kpis { gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)) }
@media (min-width: 900px) { .gx .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)) } }
@media (min-width: 1180px) { .gx .kpis { grid-template-columns: repeat(6, minmax(0, 1fr)) } }
.gx .kpi { border-radius: 14px; padding: 14px 16px; border-color: var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px }
.gx .kpi b { font: 700 25.6px/1 var(--font); letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--ink) }
.gx .kpi span { font-size: 13.8px; line-height: 1.3; color: var(--ink-3) }
.gx a.kpi { text-decoration: none !important; color: inherit; transition: border-color .15s }
.gx a.kpi:hover { border-color: var(--brand) }
.gx .kpi em { font-style: normal; color: var(--ko); font-weight: 600 }
.gx .kpi.is-due b { color: var(--ko) }

/* ------------------------------------------------------------------------------------------------ help popovers */
.gx .aiuto { border-color: var(--line-2); color: var(--ink-2); background: #fff }
.gx .aiuto:hover { border-color: var(--brand); color: var(--brand) }

/* ------------------------------------------------------------------------------------------------ notices on the home */
.gx .db-avvisi { display: grid; gap: 12px; margin-bottom: 20px }
.gx .db-avvisi:empty { display: none }
.gx .db-avvisi > * { margin: 0 }
.gx .db-trial { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px 12px 18px;
  border-radius: 14px; background: var(--brand); color: var(--on-brand) }
.gx .db-trial b { font-size: 16px }
.gx .db-trial .aiuto { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 35%, transparent) }
.gx .db-next { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 16px }
.gx .db-next small { display: block; color: var(--ink-3); font-size: 13px }
.gx .db-next b { font-size: 16px }
.gx .db-ring { --p: 0; width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--brand-soft) 0) }
.gx .db-ring span { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; font: 700 13px/1 var(--font) }
.gx .db-steps { flex-basis: 100%; border-top: 1px solid var(--line); padding-top: 8px }
.gx .db-steps summary { cursor: pointer; color: var(--ink-3); font-weight: 600; font-size: 14px; padding: 6px 0; min-height: 44px; display: flex; align-items: center }
.gx .db-steps ol { margin: 6px 0 4px; padding-left: 22px; display: grid; gap: 6px }
.gx .db-steps li.is-done a { color: var(--ink-3); text-decoration: line-through }
@media (max-width: 47.99rem) { .gx .db-next .btn, .gx .db-trial .btn { width: 100% } }

/* ------------------------------------------------------------------------------------------------ «Marchio» */
.gx .mk { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start }
.gx .mk-main > .card + .card, .gx .mk-main > form.card { margin-top: 16px }
.gx .mk-main > .card:first-child { margin-top: 0 }
.gx .mk-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px }
.gx .mk-tile { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 140px; padding: 16px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff }
.gx .mk-tile img { max-width: 100%; max-height: 72px; width: auto; height: auto }
.gx .mk-tile.is-dark { background: #0a0b12; border-color: #0a0b12 }
.gx .mk-tile.is-dark figcaption { color: #a9adbb }
.gx .mk-tile.is-icon { background: var(--bg) }
.gx .mk-tile.is-icon img { border-radius: 16px; box-shadow: 0 4px 12px rgba(20,22,31,.18) }
.gx .mk-tile figcaption { font-size: 13px; color: var(--ink-3) }
.gx .mk-empty { color: var(--ink-3); margin: 0 0 14px }
.gx .mk-photo { height: 170px; border-radius: 12px; background: var(--cover) center 30% / cover no-repeat; margin-bottom: 14px }
.gx .mk-row { display: flex; gap: 10px; flex-wrap: wrap }
.gx .mk-up label.btn { margin: 0; cursor: pointer; color: var(--brand-on-primary) }
.gx .mk-up:focus-within label.btn { outline: 3px solid color-mix(in srgb, var(--brand-primary) 55%, white); outline-offset: 2px }
.gx .mk-colors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 18px }
.gx .mk-color { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; color: var(--ink) }
.gx .mk-color input[type=color] { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer }
.gx .mk-color input[type=color]::-webkit-color-swatch-wrapper { padding: 0 }
.gx .mk-color input[type=color]::-webkit-color-swatch { border: 1px solid rgba(0,0,0,.12); border-radius: 10px }
.gx .mk-preview { position: sticky; top: 24px }
.gx .mk-phone { width: 280px; margin: 0 auto; border-radius: 34px; border: 9px solid #0a0b12; background: #0a0b12; overflow: hidden; box-shadow: 0 20px 50px rgba(20,22,31,.25) }
.gx .mk-hero { height: 400px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px 16px 20px;
  background: linear-gradient(180deg, rgba(10,11,18,.3) 0%, rgba(10,11,18,.1) 35%, #0a0b12 92%), var(--cover, linear-gradient(160deg, var(--brand-primary), #0a0b12)) center 25% / cover }
.gx .mk-hero img { max-height: 30px; max-width: 150px; width: auto; align-self: flex-start }
.gx .mk-name { color: #fff; font: 700 17px/1 'Oswald', sans-serif; text-transform: uppercase }
.gx .mk-h { margin: 0 0 14px; font: 700 32px/.95 'Oswald', sans-serif; text-transform: uppercase; color: #f2f2f6 }
.gx .mk-h span { display: block }
.gx .mk-acc { color: var(--brand-accent-on-dark, var(--brand-accent)) }
.gx .mk-cta { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 12px; background: var(--brand-accent-on-dark, var(--brand-accent));
  color: var(--brand-on-accent-dark, var(--brand-on-accent)); font: 700 16px 'Oswald', sans-serif; letter-spacing: .06em; text-transform: uppercase }
.gx .mk-home { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 0 18px; background: linear-gradient(160deg, #3b4256, #1b1f2b) }
.gx .mk-home img { border-radius: 14px; box-shadow: 0 4px 10px rgba(0,0,0,.35) }
.gx .mk-home small { color: #fff; font-size: 12px }
.gx .mk-note { text-align: center; font-size: 13px; margin-top: 10px }
@media (max-width: 1099px) { .gx .mk { grid-template-columns: minmax(0, 1fr) } .gx .mk-preview { position: static; order: -1 } }
@media (max-width: 899px) { .gx .mk-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px } .gx .mk-tile { min-height: 110px; padding: 10px } .gx .mk-colors { grid-template-columns: minmax(0, 1fr) } .gx .mk-row > form, .gx .mk-row .btn { flex: 1 } .gx .mk-up label.btn { width: 100% } }
.gx [hidden] { display: none !important }

/* ------------------------------------------------------------------------------------------------ entrance tablet */
/* green in, blue out, red refused: readable from across the room; the camera keeps reading while a result shows */
body.vx-body { overflow: hidden }
.vx [hidden] { display: none !important }
.vx { min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; background: var(--ferro); color: var(--testo); transition: background .25s }
.vx[data-stato="ok"] { background: #0f7a4a }
.vx[data-stato="out"] { background: #1f4fd1 }
.vx[data-stato="ko"] { background: #b3261e }
/* the member chooses the subscription (Access::sceltaIngresso): big buttons, the camera paused */
.vx[data-stato="scelta"] .vx-icon, .vx[data-stato="scelta"] .vx-camrow { display: none }
.vx-scelte { display: grid; gap: 14px; width: min(640px, 100%); margin: 26px auto 0 }
.vx-scelta { display: grid; gap: 4px; min-height: 84px; padding: 16px 24px; border-radius: 20px; border: 2px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.08); color: #fff; text-align: left; cursor: pointer; transition: background .15s, border-color .15s, transform .12s var(--ease-out) }
.vx-scelta b { font: 700 clamp(24px, 3.4vw, 34px)/1.05 'Oswald', sans-serif; text-transform: uppercase }
.vx-scelta small { font-size: clamp(15px, 2vw, 19px); color: rgba(255,255,255,.8) }
.vx-scelta:hover, .vx-scelta:focus-visible { border-color: #fff; background: rgba(255,255,255,.16); outline: none }
.vx-scelta:active { transform: scale(.98) }
.vx-annulla { margin-top: 18px; min-height: 48px; padding: 0 22px; border: 0; background: none; color: rgba(255,255,255,.75); font-family: inherit; font-size: 17px; font-weight: 600; text-decoration: underline; cursor: pointer }
.vx-top { display: flex; align-items: center; gap: 18px; padding: calc(18px + env(safe-area-inset-top, 0px)) 28px 0 }
.vx-top img { height: 40px; width: auto }
.vx-name { font: 700 24px/1 'Oswald', sans-serif; text-transform: uppercase; color: #fff }
.vx-in { margin-left: auto; display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 15px; color: rgba(255,255,255,.8) }
.vx-in b { font: 700 22px/1 'Oswald', sans-serif; color: #fff; font-variant-numeric: tabular-nums }
.vx-clock { font: 600 28px/1 'Oswald', sans-serif; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.85) }
.vx-ico { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer }
.vx-ico .off, .vx-ico[aria-pressed="false"] .on { display: none }
.vx-ico[aria-pressed="false"] .off { display: inline }
.vx-close { color: rgba(255,255,255,.65) !important; font-weight: 600; padding: 10px; text-decoration: none }
.vx-stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 20px; text-align: center; min-height: 0 }
.vx-icon { width: 128px; height: 128px; border-radius: 36px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: var(--acc); flex: none }
.vx-icon svg { width: 76px; height: 76px }
.vx-i-ok, .vx-i-ko, .vx-i-out { display: none }
.vx[data-stato="ok"] .vx-icon, .vx[data-stato="ko"] .vx-icon, .vx[data-stato="out"] .vx-icon { background: rgba(255,255,255,.16); color: #fff; animation: vx-pop .35s var(--ease-spring) }
.vx[data-stato="ok"] .vx-i-idle, .vx[data-stato="ko"] .vx-i-idle, .vx[data-stato="out"] .vx-i-idle { display: none }
.vx[data-stato="ok"] .vx-i-ok, .vx[data-stato="ko"] .vx-i-ko, .vx[data-stato="out"] .vx-i-out { display: block }
.vx[data-stato=""] .vx-icon { animation: vx-breathe 2.6s ease-in-out infinite }
.vx-result { width: min(900px, 100%) }
.vx-result h1 { margin: 0; font: 700 clamp(44px, 8vw, 92px)/.95 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .005em; color: #fff }
.vx-result p { margin: 14px 0 0; font-size: clamp(18px, 2.4vw, 26px); color: rgba(255,255,255,.86) }
.vx-result .vx-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px }
.vx-chip { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px; background: rgba(0,0,0,.22); color: #fff; font-size: clamp(16px, 2vw, 21px); font-weight: 600 }
.vx-chip.warn { background: #FFD25A; color: #3A2A00 }
/* the camera: a large viewfinder while waiting, small and dim while a result is on screen (it keeps reading) */
.vx-view { position: relative; width: min(640px, 92vw); aspect-ratio: 4 / 3; max-height: 52vh; border-radius: 24px; overflow: hidden; background: #000; box-shadow: 0 24px 60px rgba(0,0,0,.5); transition: transform .3s var(--ease-out), opacity .3s }
.vx-view video { width: 100%; height: 100%; object-fit: cover; display: block }
.vx-view video.mirror { transform: scaleX(-1) }
.vx-frame { position: absolute; inset: 14%; pointer-events: none }
.vx-frame i { position: absolute; width: 42px; height: 42px; border: 5px solid var(--acc); border-radius: 6px }
.vx-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0 }
.vx-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0 }
.vx-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0 }
.vx-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0 }
.vx-line { position: absolute; left: 16%; right: 16%; top: 16%; height: 2px; background: var(--acc); box-shadow: 0 0 14px var(--acc); animation: vx-scan 2.2s ease-in-out infinite alternate }
.vx[data-cam] .vx-icon { display: none }
.vx[data-cam][data-stato="ok"] .vx-icon, .vx[data-cam][data-stato="ko"] .vx-icon, .vx[data-cam][data-stato="out"] .vx-icon { display: grid }
.vx[data-cam][data-stato=""] .vx-result h1 { font-size: clamp(34px, 5vw, 56px) }
.vx[data-cam]:not([data-stato=""]) .vx-view { position: absolute; right: 24px; bottom: 16px; width: 168px; max-height: none; border-radius: 16px; opacity: .55; box-shadow: none }
.vx[data-cam]:not([data-stato=""]) .vx-frame, .vx[data-cam]:not([data-stato=""]) .vx-line { display: none }
.vx-camrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px }
.vx[data-cam]:not([data-stato=""]) .vx-camrow { visibility: hidden }
.vx-cam { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; border: 1.5px solid rgba(255,255,255,.2); border-radius: 14px; background: rgba(255,255,255,.06);
  color: #fff; font: 600 16px 'Archivo', sans-serif; cursor: pointer }
.vx-cam:disabled { opacity: .55; cursor: default }
.vx-timer { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; visibility: hidden }
.vx-timer i { display: block; height: 100%; background: rgba(255,255,255,.75); transform-origin: left }
.vx:not([data-stato=""]) .vx-timer { visibility: visible }
.vx:not([data-stato=""]) .vx-timer i { animation: vx-timer var(--vx-t, 4s) linear both }
.vx-foot { padding: 0 28px calc(22px + env(safe-area-inset-bottom, 0px)) }
.vx-foot form { display: flex; gap: 10px; max-width: 560px; margin: 0 auto; opacity: .7; transition: opacity .2s }
.vx-foot form:focus-within { opacity: 1 }
.vx-foot input { flex: 1; height: 48px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; padding: 0 14px; font: 15px 'Archivo', sans-serif }
.vx-foot input::placeholder { color: rgba(255,255,255,.5) }
.vx-check { height: 48px; padding: 0 18px; border: 0; border-radius: 12px; background: rgba(255,255,255,.14); color: #fff; font: 600 15px 'Archivo', sans-serif; cursor: pointer }
@keyframes vx-pop { from { transform: scale(.6); opacity: 0 } }
@keyframes vx-breathe { 50% { transform: scale(1.05); box-shadow: 0 0 0 14px rgba(255,255,255,.03) } }
@keyframes vx-scan { to { top: 84% } }
@keyframes vx-timer { from { transform: scaleX(1) } to { transform: scaleX(0) } }
@media (max-width: 700px) { .vx-top { gap: 10px; padding-left: 16px; padding-right: 16px } .vx-clock { display: none } .vx-in { font-size: 13px } .vx-close { padding: 6px } }
@media (prefers-reduced-motion: reduce) { .vx-icon, .vx-line { animation: none !important } .vx, .vx-view { transition: none } }
.gx .rg-azione { font: 600 15.5px/1.3 var(--font); color: var(--ink) } .gx .rg-ico { color: var(--brand-primary) }
.gx .db-lessons li.is-off a { opacity: .5 } .gx .db-lessons li.is-off b { text-decoration: line-through }

/* «Cosa è incluso» */
.gx .fz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px }
.gx .fz-grid > .card + .card { margin-top: 0 }
.gx .fz-item { display: flex; gap: 14px; align-items: flex-start; color: var(--ink) !important; text-decoration: none !important; transition: border-color .15s }
.gx .fz-item:hover { border-color: color-mix(in srgb, var(--brand-primary) 40%, var(--line)) }
.gx .fz-item b { display: block; font-size: 16px }
.gx .fz-item small { display: block; color: var(--ink-3); font-size: 14px; margin-top: 2px }
.gx .fz-item em { display: inline-block; margin-top: 6px; font-style: normal; font-size: 12.5px; color: var(--ink-3) }
.gx .fz-check { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok) }
.gx .fz-item.is-off .fz-check { background: var(--bg); color: var(--ink-3) }

/* ------------------------------------------------------------------------------------------------ one face (wave 6)
   The photo popup is shared with the members' app (app-foto.css): in the management app its initials take the text
   face. The members' app (.ma), its previews (Marchio, «Regala l'app») and the entrance tablet keep their athletic face. */
body.gx .foto-big { font-family: var(--font); font-weight: 700 }
