/* ==========================================================
   WodPoint · Portal administrativo (propuesta)
   Misma identidad que la landing y la app: rojo WodPoint sobre negro,
   Barlow Condensed en titulares. Pensado para computadora y tablet,
   con las tareas de recepción usables en celular.
   ========================================================== */

:root {
  --red: #BB1C1B;
  --red-hot: #D9271F;
  --red-deep: #8E1413;
  --red-soft: rgba(187, 28, 27, .16);
  --ink: #0E0E0E;
  --ink-2: #131313;
  --card: #191919;
  --card-2: #212121;
  --card-3: #2a2a2a;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --text: #FFFFFF;
  --text-2: #D6D6D6;
  --muted: #A3A3A3;
  --muted-2: #767676;
  --ok: #3DDC84;
  --ok-soft: rgba(61, 220, 132, .13);
  --amber: #F2A93B;
  --amber-soft: rgba(242, 169, 59, .14);
  --blue: #5AA9F8;
  --blue-soft: rgba(90, 169, 248, .14);
  --violet: #B48CF2;
  --violet-soft: rgba(180, 140, 242, .14);

  --f-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Barlow", system-ui, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --side: 248px;
  --bar: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--f-body); font-size: 14.5px; line-height: 1.5; color: var(--text); background: var(--ink); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
button:disabled { cursor: not-allowed; opacity: .5; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 700; text-transform: uppercase; line-height: 1.05; letter-spacing: .01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--red); color: #fff; }

.ic { width: 20px; height: 20px; flex: none; }
.ic--sm { width: 16px; height: 16px; }
.ic--lg { width: 28px; height: 28px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.ok { color: var(--ok); }
.warn { color: var(--amber); }
.bad { color: var(--red-hot); }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.row-flex { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack { display: grid; gap: 14px; }
.stack-sm { display: grid; gap: 8px; }
.mt { margin-top: 18px; }
.mt-sm { margin-top: 10px; }
.mb { margin-bottom: 18px; }
.eyebrow { font-family: var(--f-display); font-weight: 600; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--red-hot); display: flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 16px; height: 2px; background: currentColor; }
.label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; }
.divider { height: 1px; background: var(--line); margin: 14px 0; border: 0; }
.link { color: var(--red-hot); font-weight: 600; }
.link:hover { text-decoration: underline; }
.kbd { font-size: 11px; padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 5px; color: var(--muted); }

/* ==========================================================
   Shell
   ========================================================== */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px;
  background: var(--ink-2); border-right: 1px solid var(--line); padding: 18px 12px 12px; overflow-y: auto; scrollbar-width: thin;
}
.side__brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 14px; }
.side__brand img { height: 26px; width: auto; }
.side__brand span { font-family: var(--f-display); font-weight: 700; letter-spacing: .18em; font-size: 11px; color: var(--red-hot); text-transform: uppercase; border-left: 1px solid var(--line-2); padding-left: 10px; line-height: 1.2; }
.nav-group { padding: 10px 0 4px; }
.nav-group > p { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; padding: 0 10px 6px; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 10px; border-radius: 9px; color: #cfcfcf; font-weight: 500; transition: background .15s, color .15s; }
.nav-item .ic { width: 19px; height: 19px; color: var(--muted); transition: color .15s; }
.nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-item.is-on { background: var(--red-soft); color: #fff; box-shadow: inset 2px 0 0 var(--red-hot); }
.nav-item.is-on .ic { color: var(--red-hot); }
.nav-item .count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.nav-item .count--muted { background: var(--card-3); color: var(--text-2); }
.side__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.me { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; }
.me b { display: block; font-size: 13.5px; line-height: 1.2; }
.me small { color: var(--muted); font-size: 12px; }
.me .icon-btn { margin-left: auto; }
.side__links { display: grid; gap: 2px; }
.side__links a { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; color: var(--muted); font-size: 13px; }
.side__links a:hover { color: #fff; background: rgba(255,255,255,.04); }
.side__links .ic { width: 17px; height: 17px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.side-back { display: none; }
.bar {
  position: sticky; top: 0; z-index: 20; height: var(--bar); display: flex; align-items: center; gap: 14px; padding: 0 26px;
  background: rgba(14,14,14,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.icon-btn.burger { display: none; }
.search { position: relative; flex: 1; max-width: 460px; }
.search input { width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); padding: 0 12px 0 38px; outline: 0; transition: border-color .15s; }
.search input:focus { border-color: var(--line-2); }
.search > .ic { position: absolute; left: 11px; top: 10px; color: var(--muted); }
.search__res { position: absolute; top: 46px; left: 0; right: 0; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; box-shadow: 0 20px 50px -10px rgba(0,0,0,.7); max-height: 380px; overflow-y: auto; }
.search__res button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 8px; }
.search__res button:hover, .search__res button.is-on { background: rgba(255,255,255,.06); }
.search__res b { display: block; font-size: 13.5px; }
.search__res small { color: var(--muted); font-size: 12px; }
.search__res .b { margin-left: auto; }
.bar__clock { margin-left: auto; text-align: right; line-height: 1.2; }
.bar__clock b { display: block; font-family: var(--f-display); font-size: 18px; font-weight: 700; letter-spacing: .02em; }
.bar__clock small { color: var(--muted); font-size: 12px; }
.bar__actions { display: flex; gap: 8px; align-items: center; }

.page { padding: 26px 26px 60px; max-width: 1480px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; }
.page-head p { color: var(--muted); margin-top: 6px; max-width: 70ch; }
.page-head__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.crumbs button:hover { color: #fff; }
.crumbs .ic { width: 14px; height: 14px; }

.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.g-side { grid-template-columns: minmax(0, 1fr) 340px; }
.span-2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }

/* ==========================================================
   Piezas
   ========================================================== */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.card--pad { padding: 18px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 0; flex-wrap: wrap; }
.card__head h3 { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card__head h3 .ic { color: var(--red-hot); }
.card__head p { color: var(--muted); font-size: 13px; width: 100%; margin-top: -6px; }
.card__body { padding: 14px 18px 18px; }
.card__body--flush { padding: 10px 0 6px; }
.card__foot { border-top: 1px solid var(--line); padding: 12px 18px; display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

.kpi { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; overflow: hidden; display: block; width: 100%; text-align: left; transition: border-color .15s, transform .15s; }
button.kpi:hover { border-color: var(--line-2); transform: translateY(-1px); }
.kpi__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kpi__label { color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi__ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--card-3); color: var(--text-2); }
.kpi__ic .ic { width: 18px; height: 18px; }
.kpi__val { font-family: var(--f-display); font-size: 36px; font-weight: 800; line-height: 1; margin-top: 10px; letter-spacing: .01em; }
.kpi__val small { font-size: 18px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.kpi__sub { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.kpi--red .kpi__ic { background: var(--red-soft); color: var(--red-hot); }
.kpi--amber .kpi__ic { background: var(--amber-soft); color: var(--amber); }
.kpi--ok .kpi__ic { background: var(--ok-soft); color: var(--ok); }
.kpi--blue .kpi__ic { background: var(--blue-soft); color: var(--blue); }
.trend { font-weight: 600; }
.trend--up { color: var(--ok); }
.trend--down { color: var(--red-hot); }

.b { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--card-3); color: var(--text-2); }
.b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.b--plain::before { display: none; }
.b--ok { background: var(--ok-soft); color: var(--ok); }
.b--amber { background: var(--amber-soft); color: var(--amber); }
.b--red { background: var(--red-soft); color: #ff6b62; }
.b--blue { background: var(--blue-soft); color: var(--blue); }
.b--violet { background: var(--violet-soft); color: var(--violet); }
.b--muted { background: rgba(255,255,255,.06); color: var(--muted); }
.b--solid { background: var(--red); color: #fff; }

.avatar { --s: 34px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; font-weight: 700; font-size: calc(var(--s) * .38); color: #fff; background: hsl(var(--h, 0) 30% 28%); letter-spacing: .02em; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; transition: background .15s, border-color .15s, color .15s, transform .1s; white-space: nowrap; border: 1px solid transparent; }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 17px; height: 17px; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-hot); }
.btn--ghost { background: rgba(255,255,255,.06); }
.btn--ghost:hover { background: rgba(255,255,255,.11); }
.btn--outline { border-color: var(--line-2); }
.btn--outline:hover { border-color: #fff; }
.btn--danger { background: transparent; border-color: rgba(217,39,31,.5); color: #ff6b62; }
.btn--danger:hover { background: var(--red-soft); }
.btn--ok { background: var(--ok-soft); color: var(--ok); }
.btn--sm { height: 32px; padding: 0 12px; font-size: 13.5px; }
.btn--xs { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn--block { width: 100%; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; color: var(--text-2); transition: background .15s, color .15s; flex: none; position: relative; }
.icon-btn:hover { background: rgba(255,255,255,.07); color: #fff; }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--red-hot); box-shadow: 0 0 0 2px var(--ink); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--text-2); transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--line-2); }
.chip.is-on { background: #fff; color: var(--ink); border-color: #fff; }
.chip .n { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.chip.is-on .n { color: var(--red); }

.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--card-2); border: 1px solid var(--line); gap: 2px; }
.seg button { height: 32px; padding: 0 14px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); transition: background .15s, color .15s; white-space: nowrap; }
.seg button.is-on { background: var(--card-3); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs button { padding: 10px 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.tabs button:hover { color: #fff; }
.tabs button.is-on { color: #fff; border-color: var(--red-hot); }
.tabs .n { font-size: 11.5px; background: var(--card-3); border-radius: 9px; padding: 0 6px; }

/* Tablas */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--card); position: sticky; top: 0; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr.is-link { cursor: pointer; }
.tbl tbody tr.is-link:hover { background: rgba(255,255,255,.03); }
.tbl .who { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.tbl .who b { display: block; font-weight: 600; line-height: 1.25; }
.tbl .who small { color: var(--muted); font-size: 12px; }
.tbl .acts { display: flex; gap: 4px; justify-content: flex-end; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.pager { display: flex; gap: 4px; }

/* Listas */
.lrow { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; transition: background .12s; }
.lrow:last-child { border-bottom: 0; }
button.lrow:hover { background: rgba(255,255,255,.03); }
.lrow__txt { flex: 1; min-width: 0; }
.lrow__txt b { display: block; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow__txt small { color: var(--muted); font-size: 12.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow__ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--card-3); flex: none; color: var(--text-2); }
.lrow__ic .ic { width: 18px; height: 18px; }
.lrow__ic--red { background: var(--red-soft); color: var(--red-hot); }
.lrow__ic--amber { background: var(--amber-soft); color: var(--amber); }
.lrow__ic--ok { background: var(--ok-soft); color: var(--ok); }
.lrow__ic--blue { background: var(--blue-soft); color: var(--blue); }
.lrow__end { text-align: right; flex: none; }
.lrow__end b { display: block; font-family: var(--f-display); font-size: 17px; }
.lrow__end small { color: var(--muted); font-size: 12px; }

/* Barra de ocupación */
.occ { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.occ__bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.occ__bar i { display: block; height: 100%; border-radius: 3px; background: var(--ok); }
.occ__bar i.mid { background: var(--amber); }
.occ__bar i.full { background: var(--red-hot); }
.occ small { font-size: 12px; color: var(--muted); min-width: 38px; text-align: right; font-variant-numeric: tabular-nums; }

.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); }
.note .ic { color: var(--muted); margin-top: 1px; }
.note--warn { background: var(--amber-soft); border-color: rgba(242,169,59,.25); }
.note--warn .ic { color: var(--amber); }
.note--red { background: var(--red-soft); border-color: rgba(217,39,31,.3); }
.note--red .ic { color: var(--red-hot); }
.note--ok { background: var(--ok-soft); border-color: rgba(61,220,132,.25); }
.note--ok .ic { color: var(--ok); }
.note--blue { background: var(--blue-soft); border-color: rgba(90,169,248,.25); }
.note--blue .ic { color: var(--blue); }

.empty { text-align: center; padding: 34px 20px; color: var(--muted); }
.empty .ic { width: 34px; height: 34px; color: var(--muted-2); margin: 0 auto 10px; }
.empty h4 { color: #fff; font-size: 18px; margin-bottom: 4px; }

.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 13.5px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 500; }

/* Formularios */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.field > small { color: var(--muted-2); font-size: 12px; }
.input, .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
  width: 100%; min-height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--ink-2); padding: 8px 12px; outline: 0; transition: border-color .15s;
}
.field textarea { min-height: 84px; resize: vertical; line-height: 1.45; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: #fff; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A3A3A3' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; padding-right: 34px; }
.field select option { background: var(--card-2); }
.check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--red); }
.switch { appearance: none; width: 40px; height: 23px; border-radius: 12px; background: var(--card-3); position: relative; cursor: pointer; flex: none; transition: background .2s; border: 1px solid var(--line-2); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch:checked { background: var(--red); border-color: var(--red); }
.switch:checked::after { transform: translateX(17px); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row b { display: block; font-weight: 600; }
.toggle-row small { color: var(--muted); font-size: 12.5px; }
.num-input { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.num-input button { width: 34px; height: 36px; display: grid; place-items: center; color: var(--muted); }
.num-input button:hover { background: rgba(255,255,255,.06); color: #fff; }
.num-input input { width: 56px; height: 36px; text-align: center; border: 0; background: transparent; outline: 0; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ==========================================================
   Capas: modal, panel lateral, toasts
   ========================================================== */
.layer-wrap { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.layer-back { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; }
.modal { position: relative; width: min(560px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 30px 80px -10px rgba(0,0,0,.8); opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .25s var(--ease), transform .3s var(--ease); }
.modal--lg { width: min(820px, 100%); }
.modal--xl { width: min(1080px, 100%); }
.modal--sm { width: min(420px, 100%); }
.layer-wrap.is-open .layer-back { opacity: 1; }
.layer-wrap.is-open .modal { opacity: 1; transform: none; }
.modal__head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 0; }
.modal__head h3 { font-size: 24px; font-weight: 800; }
.modal__head p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.modal__head .icon-btn { margin-left: auto; margin-top: -4px; }
.modal__body { padding: 18px 22px; overflow-y: auto; }
.modal__foot { padding: 14px 22px 18px; display: flex; gap: 8px; justify-content: flex-end; border-top: 1px solid var(--line); flex-wrap: wrap; }
.layer-wrap--drawer { place-items: stretch end; padding: 0; }
.layer-wrap--drawer .modal { height: 100vh; max-height: none; width: min(520px, 100%); border-radius: 0; border-width: 0 0 0 1px; transform: translateX(30px); }
.layer-wrap--drawer.is-open .modal { transform: none; }

.toasts { position: fixed; bottom: 22px; left: 50%; translate: -50% 0; z-index: 90; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; box-shadow: 0 16px 40px -8px rgba(0,0,0,.6); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .3s var(--ease); pointer-events: auto; max-width: min(520px, calc(100vw - 32px)); }
.toast.is-in { opacity: 1; transform: none; }
.toast .ic { color: var(--ok); width: 18px; height: 18px; }
.toast--err .ic { color: var(--red); }
.toast--info .ic { color: var(--blue); }
.toast button { color: var(--red); font-weight: 700; margin-left: 6px; }

/* ==========================================================
   Pantallas
   ========================================================== */
/* Acceso */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.login__art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 40px; isolation: isolate; }
.login__art img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(.3) contrast(1.05); }
.login__art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,14,14,.55), rgba(14,14,14,.2) 40%, rgba(14,14,14,.92)), linear-gradient(90deg, rgba(187,28,27,.25), transparent 60%); }
.login__art .logo { height: 34px; width: auto; align-self: flex-start; }
.login__art h2 { font-size: clamp(40px, 5vw, 66px); font-weight: 800; max-width: 12ch; }
.login__art h2 em { font-style: normal; color: var(--red-hot); }
.login__art p { color: var(--text-2); max-width: 46ch; margin-top: 14px; font-size: 15.5px; }
.login__form { display: grid; place-items: center; padding: 40px 24px; }
.login__box { width: min(420px, 100%); }
.login__box h1 { font-size: 34px; font-weight: 800; margin: 10px 0 6px; }
.login__box > p { color: var(--muted); margin-bottom: 22px; }
.who-pick { display: grid; gap: 8px; margin-bottom: 18px; }
.who-pick button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); transition: border-color .15s, background .15s; width: 100%; }
.who-pick button:hover { border-color: var(--line-2); background: rgba(255,255,255,.03); }
.who-pick b { display: block; }
.who-pick small { color: var(--muted); font-size: 12.5px; }
.who-pick .ic { margin-left: auto; color: var(--muted); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: 12px; text-transform: uppercase; letter-spacing: .16em; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Clases de hoy */
.today-list { display: grid; }
.tclass { display: grid; grid-template-columns: 74px minmax(0, 1fr) 160px auto; align-items: center; gap: 14px; padding: 11px 18px; border-bottom: 1px solid var(--line); text-align: left; width: 100%; transition: background .12s; }
.tclass:last-child { border-bottom: 0; }
.tclass:hover { background: rgba(255,255,255,.03); }
.tclass__time b { font-family: var(--f-display); font-size: 20px; font-weight: 700; display: block; line-height: 1; }
.tclass__time small { color: var(--muted); font-size: 12px; }
.tclass__info b { display: block; font-weight: 600; }
.tclass__info small { color: var(--muted); font-size: 12.5px; }
.tclass.is-past { opacity: .55; }
.tclass.is-now { background: linear-gradient(90deg, var(--red-soft), transparent 70%); box-shadow: inset 3px 0 0 var(--red-hot); }

/* Calendario semanal */
.cal { display: grid; grid-template-columns: 64px repeat(5, minmax(150px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.cal-scroll { overflow-x: auto; }
.cal__h { padding: 10px 12px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--card-2); }
.cal__h:first-child { border-left: 0; }
.cal__h b { font-family: var(--f-display); font-size: 17px; display: block; text-transform: uppercase; }
.cal__h small { color: var(--muted); font-size: 12px; }
.cal__h.is-today { background: var(--red-soft); }
.cal__h.is-today b { color: #fff; }
.cal__t { padding: 8px 10px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.cal__c { border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px; min-height: 58px; }
.ev { display: block; width: 100%; text-align: left; padding: 7px 9px; border-radius: 9px; background: var(--card-2); border: 1px solid var(--line); transition: border-color .15s, background .15s; position: relative; overflow: hidden; }
.ev + .ev { margin-top: 4px; }
.ev:hover { border-color: var(--line-2); background: var(--card-3); }
.ev b { display: flex; justify-content: space-between; gap: 6px; font-size: 12.5px; font-weight: 600; }
.ev small { color: var(--muted); font-size: 11.5px; display: block; }
.ev .occ__bar { margin-top: 6px; height: 4px; }
.ev--halter { box-shadow: inset 3px 0 0 var(--violet); }
.ev--open { box-shadow: inset 3px 0 0 var(--blue); }
.ev--crossfit { box-shadow: inset 3px 0 0 var(--red); }
.ev.is-past { opacity: .5; }
.ev.is-now { border-color: var(--red-hot); }
.ev.is-cancel { opacity: .6; background: repeating-linear-gradient(-45deg, var(--card-2), var(--card-2) 6px, #1d1d1d 6px, #1d1d1d 12px); }
.ev.is-cancel b span:first-child { text-decoration: line-through; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }

/* Lista de clase */
.class-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: end; padding: 22px; border-radius: var(--radius); background: linear-gradient(90deg, rgba(14,14,14,.95), rgba(14,14,14,.6)), var(--img) center / cover; border: 1px solid var(--line); margin-bottom: 16px; }
.class-hero h2 { font-size: 34px; font-weight: 800; }
.class-hero p { color: var(--text-2); margin-top: 4px; }
.class-hero__stats { display: flex; gap: 22px; }
.class-hero__stats div { text-align: right; }
.class-hero__stats b { font-family: var(--f-display); font-size: 30px; display: block; line-height: 1; }
.class-hero__stats small { color: var(--muted); font-size: 12px; }
.att { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.att:last-child { border-bottom: 0; }
.att__who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.att__who b { display: block; font-weight: 600; }
.att__who small { color: var(--muted); font-size: 12.5px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.att__btns { display: flex; gap: 6px; }
.att-btn { height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); transition: background .15s, border-color .15s, color .15s; }
.att-btn .ic { width: 16px; height: 16px; }
.att-btn:hover { border-color: #fff; color: #fff; }
.att-btn.is-ok { background: var(--ok-soft); border-color: rgba(61,220,132,.45); color: var(--ok); }
.att-btn.is-no { background: var(--red-soft); border-color: rgba(217,39,31,.5); color: #ff6b62; }
.att.is-ok { background: linear-gradient(90deg, rgba(61,220,132,.06), transparent 60%); }

/* Check-in */
.scan { display: grid; place-items: center; text-align: center; gap: 14px; padding: 26px 18px; }
.scan__frame { position: relative; width: 200px; height: 200px; border-radius: 22px; display: grid; place-items: center; background: radial-gradient(circle, rgba(187,28,27,.12), transparent 70%); }
.scan__frame::before { content: ""; position: absolute; inset: 0; border-radius: 22px; padding: 3px; background: linear-gradient(var(--red-hot), var(--red-hot)) top left / 40px 3px no-repeat, linear-gradient(var(--red-hot), var(--red-hot)) top left / 3px 40px no-repeat, linear-gradient(var(--red-hot), var(--red-hot)) top right / 40px 3px no-repeat, linear-gradient(var(--red-hot), var(--red-hot)) top right / 3px 40px no-repeat, linear-gradient(var(--red-hot), var(--red-hot)) bottom left / 40px 3px no-repeat, linear-gradient(var(--red-hot), var(--red-hot)) bottom left / 3px 40px no-repeat, linear-gradient(var(--red-hot), var(--red-hot)) bottom right / 40px 3px no-repeat, linear-gradient(var(--red-hot), var(--red-hot)) bottom right / 3px 40px no-repeat; }
.scan__frame::after { content: ""; position: absolute; left: 14px; right: 14px; height: 2px; background: var(--red-hot); box-shadow: 0 0 14px var(--red-hot); animation: scanline 2.2s ease-in-out infinite; }
@keyframes scanline { 0%, 100% { top: 18px; } 50% { top: calc(100% - 20px); } }
.scan__frame .ic { width: 64px; height: 64px; color: rgba(255,255,255,.25); }
.ci-result { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; text-align: left; }
.ci-result--ok { background: var(--ok-soft); border: 1px solid rgba(61,220,132,.3); }
.ci-result--bad { background: var(--red-soft); border: 1px solid rgba(217,39,31,.35); }
.ci-result--warn { background: var(--amber-soft); border: 1px solid rgba(242,169,59,.3); }
.ci-result b { display: block; font-size: 16px; }
.ci-result small { color: var(--text-2); }

/* Ficha de socio */
.mhead { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.mhead h1 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; }
.mhead__meta { display: flex; gap: 8px 14px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; margin-top: 6px; align-items: center; }
.mhead__meta span { display: inline-flex; gap: 6px; align-items: center; }
.mhead__meta .ic { width: 15px; height: 15px; }
.mhead__acts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.plan-box { display: grid; gap: 12px; }
.plan-box__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.plan-box h4 { font-size: 24px; font-weight: 800; }
.progress { height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--red-hot)); border-radius: 4px; }
.credits { display: flex; gap: 6px; }
.credits i { flex: 1; height: 26px; border-radius: 7px; background: rgba(255,255,255,.07); border: 1px solid var(--line); }
.credits i.on { background: var(--red); border-color: var(--red); }

.tl { position: relative; display: grid; gap: 0; }
.tl li { position: relative; padding: 0 0 16px 26px; }
.tl li::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: -6px; width: 1px; background: var(--line-2); }
.tl li:last-child::before { display: none; }
.tl li::after { content: ""; position: absolute; left: 2px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--card-3); border: 2px solid var(--muted-2); }
.tl li.is-red::after { border-color: var(--red-hot); background: var(--red); }
.tl li.is-ok::after { border-color: var(--ok); }
.tl b { font-weight: 600; display: block; font-size: 13.5px; }
.tl small { color: var(--muted); font-size: 12.5px; }

/* Prospectos */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.kcol { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-height: 200px; display: flex; flex-direction: column; gap: 8px; }
.kcol__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 6px; }
.kcol__head b { font-family: var(--f-display); text-transform: uppercase; font-size: 15px; letter-spacing: .04em; display: flex; align-items: center; gap: 8px; }
.kcol__head b i { width: 8px; height: 8px; border-radius: 50%; }
.kcol__head span { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.kcard { display: block; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; transition: border-color .15s, transform .15s; }
.kcard:hover { border-color: var(--line-2); transform: translateY(-1px); }
.kcard b { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.kcard small { color: var(--muted); font-size: 12.5px; display: block; margin-top: 2px; }
.kcard .row-flex { margin-top: 8px; gap: 6px; }
.kcard.is-fresh { border-color: rgba(217,39,31,.6); box-shadow: 0 0 0 3px rgba(187,28,27,.12); }
.due { color: var(--amber); font-weight: 600; }
.due.late { color: #ff6b62; }

/* WOD */
.wod-ed { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.sec-ed { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--ink-2); }
.sec-ed + .sec-ed { margin-top: 10px; }
.sec-ed__head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.sec-ed__head input { flex: 1; }
.preview { position: sticky; top: calc(var(--bar) + 16px); }
.phone-prev { border-radius: 28px; padding: 8px; background: linear-gradient(145deg, #2a2a2a, #050505 40%, #111); box-shadow: 0 0 0 1px #333, 0 30px 60px -20px rgba(0,0,0,.9); }
.phone-prev__screen { border-radius: 22px; background: var(--ink); max-height: 640px; overflow-y: auto; padding: 18px 16px; scrollbar-width: none; }
.pw-title { font-size: 26px; font-weight: 800; margin: 6px 0 4px; }
.pw-meta { color: var(--muted); font-size: 12.5px; margin-bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.pw-sec { border-top: 1px solid var(--line); padding: 10px 0; }
.pw-sec h5 { margin: 0 0 6px; font-family: var(--f-display); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--red-hot); }
.pw-sec .big { font-family: var(--f-display); font-weight: 800; font-size: 22px; text-transform: uppercase; margin-bottom: 4px; }
.pw-sec li { font-size: 13.5px; color: var(--text-2); padding: 1px 0; }
.pw-sec .pw-note { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.week-strip { display: flex; gap: 6px; flex-wrap: wrap; }
.week-strip button { min-width: 74px; padding: 8px 10px; border-radius: 11px; border: 1px solid var(--line); text-align: center; transition: border-color .15s, background .15s; }
.week-strip button small { display: block; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; }
.week-strip button b { font-family: var(--f-display); font-size: 20px; display: block; line-height: 1.1; }
.week-strip button i { display: block; margin: 4px auto 0; width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); }
.week-strip button i.pub { background: var(--ok); }
.week-strip button i.draft { background: var(--amber); }
.week-strip button.is-on { background: #fff; color: var(--ink); border-color: #fff; }
.week-strip button.is-on small { color: #555; }

/* Gráficas */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--f-body); }
.chart .v { fill: #fff; font-weight: 600; font-size: 11px; }
.chart .grid-l { stroke: rgba(255,255,255,.06); }
.heat { display: grid; gap: 3px; font-size: 11.5px; }
.heat__c { height: 30px; border-radius: 6px; display: grid; place-items: center; font-weight: 600; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.92); }
.heat__l { color: var(--muted); display: flex; align-items: center; font-variant-numeric: tabular-nums; }
.heat__h { color: var(--muted); text-align: center; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; padding-bottom: 2px; }
.funnel { display: grid; gap: 8px; }
.funnel__row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 60px; gap: 12px; align-items: center; font-size: 13px; }
.funnel__bar { height: 26px; border-radius: 7px; background: linear-gradient(90deg, var(--red), var(--red-hot)); min-width: 4px; display: flex; align-items: center; padding-left: 8px; font-weight: 700; font-size: 12.5px; }
.bars-h { display: grid; gap: 10px; }
.bars-h__row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 80px; gap: 10px; align-items: center; font-size: 13px; }
.bars-h__bar { height: 10px; border-radius: 5px; background: rgba(255,255,255,.07); overflow: hidden; }
.bars-h__bar i { display: block; height: 100%; border-radius: 5px; background: var(--red-hot); }

/* Permisos */
.perm td { text-align: center; }
.perm td:first-child { text-align: left; }
.perm .yes { color: var(--ok); }
.perm .no { color: var(--muted-2); }
.perm .ic { margin: 0 auto; }

/* Importación */
.drop { border: 1.5px dashed var(--line-2); border-radius: var(--radius); padding: 34px 20px; text-align: center; display: grid; gap: 10px; place-items: center; transition: border-color .15s, background .15s; }
.drop.is-over { border-color: var(--red-hot); background: var(--red-soft); }
.drop .ic { width: 40px; height: 40px; color: var(--muted); }
.steps { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.steps span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; color: var(--muted); font-weight: 600; }
.steps span i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--card-3); font-style: normal; font-size: 12px; }
.steps span.is-on { color: #fff; border-color: var(--red); }
.steps span.is-on i { background: var(--red); }
.steps span.is-done i { background: var(--ok); color: var(--ink); }
tr.is-err td { background: rgba(217,39,31,.06); }
tr.is-warn td { background: rgba(242,169,59,.05); }

/* Demo */
.demo-fab { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px; border-radius: 999px; background: #fff; color: var(--ink); font-family: var(--f-display); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 14px 30px -8px rgba(0,0,0,.7); transition: transform .15s; }
.demo-fab:hover { transform: translateY(-2px); }
.demo-fab .ic { color: var(--red); }
.demo-pop { position: fixed; right: 18px; bottom: 72px; z-index: 55; width: min(340px, calc(100vw - 36px)); max-height: calc(100vh - 100px); overflow-y: auto; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 16px; padding: 16px; box-shadow: 0 30px 70px -10px rgba(0,0,0,.85); }
.demo-pop h4 { font-size: 18px; margin-bottom: 2px; }
.demo-pop > p { color: var(--muted); font-size: 12.5px; margin-bottom: 10px; }
.demo-pop .label { margin: 14px 0 6px; display: block; }
.demo-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border-radius: 10px; background: rgba(255,255,255,.05); font-size: 13.5px; transition: background .15s; }
.demo-btn + .demo-btn { margin-top: 5px; }
.demo-btn:hover { background: rgba(187,28,27,.22); }
.demo-btn .ic { width: 17px; height: 17px; color: var(--red-hot); }
.demo-btn.is-on { background: var(--red-soft); box-shadow: inset 0 0 0 1px var(--red); }
.demo-btn small { margin-left: auto; color: var(--muted); font-size: 11.5px; }

/* Destello al sincronizar con la app */
@keyframes flash { from { box-shadow: 0 0 0 2px var(--red-hot); } to { box-shadow: 0 0 0 2px transparent; } }
.is-flash { animation: flash 1.6s ease-out; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.5); } 70% { box-shadow: 0 0 0 7px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }

/* ==========================================================
   Responsivo
   ========================================================== */
@media (max-width: 1280px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wod-ed { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 1080px) {
  .g-main, .g-side { grid-template-columns: minmax(0, 1fr); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wod-ed { grid-template-columns: minmax(0, 1fr); }
  .preview { position: static; max-width: 380px; }
}
@media (max-width: 900px) {
  :root { --bar: 58px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 70; transform: translateX(-100%); transition: transform .3s var(--ease); box-shadow: 20px 0 60px rgba(0,0,0,.6); }
  .shell.is-nav .side { transform: none; }
  .side-back { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .shell.is-nav .side-back { opacity: 1; pointer-events: auto; }
  .icon-btn.burger { display: inline-grid; }
  .bar { padding: 0 12px; gap: 8px; }
  .bar__clock small { display: none; }
  .bar__clock b { font-size: 15px; }
  .page { padding: 18px 16px 90px; }
  .login { grid-template-columns: minmax(0, 1fr); }
  .login__art { min-height: 260px; padding: 24px; }
  .login__art p { display: none; }
  .tclass { grid-template-columns: 62px minmax(0, 1fr) auto; }
  .tclass .occ { display: none; }
  .class-hero { grid-template-columns: minmax(0, 1fr); }
  .class-hero__stats div { text-align: left; }
  .demo-fab span { display: none; }
  .demo-fab { padding: 0 12px; }
}
@media (max-width: 640px) {
  .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); }
  .g-4.g-keep { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .search { max-width: none; }
  .bar__clock { display: none; }
  .att { grid-template-columns: minmax(0, 1fr); }
  .att__btns { justify-content: flex-end; }
  .kpi__val { font-size: 30px; }
  .modal__head h3 { font-size: 21px; }
  .layer-wrap { padding: 10px; place-items: end center; }
  .layer-wrap .modal { max-height: calc(100vh - 20px); }
  .funnel__row { grid-template-columns: 96px minmax(0, 1fr) 46px; }
  .bars-h__row { grid-template-columns: 90px minmax(0, 1fr) 64px; }
  .tbl .hide-sm { display: none; }
  .mhead__acts { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
