/* ==========================================================================
   Portal de socios + panel de administración (usa los tokens de styles.css)
   ========================================================================== */

body.app { background: var(--cream); min-height: 100svh; }
.ico { width: 20px; height: 20px; flex: none; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--cream); color: var(--forest); cursor: pointer; transition: background-color .3s, transform .3s var(--ease); }
.icon-btn:hover { background: var(--stone); transform: rotate(90deg); }
.demo-banner { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 40; display: flex; gap: 8px; align-items: center; background: rgba(9,48,38,.92); color: var(--on-dark); font-size: .8rem; padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(8px); box-shadow: var(--shadow-2); white-space: nowrap; }
.demo-banner b { color: var(--gold); }
.demo-banner button { border: 0; background: rgba(255,255,255,.12); color: #fff; border-radius: 999px; padding: 4px 10px; cursor: pointer; font: inherit; font-weight: 700; }

/* ---------- Login ---------- */
.auth { min-height: 100svh; display: grid; }
@media (min-width: 960px) { .auth { grid-template-columns: 1.05fr 1fr; } }
.auth__visual { position: relative; isolation: isolate; overflow: hidden; background: var(--forest); color: var(--on-dark); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; min-height: 260px; }
.auth__visual img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.auth__visual::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9,48,38,.55), rgba(9,48,38,.95)); }
.auth__visual::before { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .1; mix-blend-mode: overlay; z-index: 0; pointer-events: none; }
.auth__visual h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.6rem); margin: 0; max-width: 12ch; }
.auth__visual .serif { color: var(--lichen); }
.auth__back { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); text-decoration: none; font-weight: 700; font-size: .95rem; }
.auth__back:hover { color: #fff; }
.auth__back .ico { transform: rotate(180deg); }
.auth__features { display: none; list-style: none; padding: 0; margin: 28px 0 0; gap: 10px; }
@media (min-width: 960px) { .auth__visual { padding: 48px; } .auth__features { display: grid; } }
.auth__features li { display: flex; gap: 12px; align-items: center; color: var(--on-dark); }
.auth__features .ico { color: var(--gold); }
.auth__panel { display: grid; place-items: center; padding: 32px 16px 80px; }
.auth__card { width: min(100%, 440px); }
.auth__card h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: .3em; }
.auth__tabs { display: flex; gap: 4px; background: #fff; border: 1px solid var(--stone); padding: 4px; border-radius: 999px; margin-bottom: 24px; }
.auth__tabs a { flex: 1; text-align: center; padding: 10px; border-radius: 999px; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--forest); }
.auth__tabs a[aria-current="page"] { background: var(--forest); color: #fff; }
.demo-hint { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; border: 1.5px dashed var(--gold); background: var(--gold-soft); color: #4d3b12; border-radius: 16px; padding: 12px 14px; cursor: pointer; font: inherit; font-size: .92rem; transition: transform .3s var(--ease); }
.demo-hint:hover { transform: translateY(-2px); }
.demo-hint b { color: #3b2c0b; }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 56px; }
.pass-wrap .icon-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; background: transparent; }
.pass-wrap .icon-btn:hover { transform: translateY(-50%); background: var(--cream); }

/* ---------- Shell ---------- */
.shell { min-height: 100svh; display: grid; }
@media (min-width: 1000px) { .shell { grid-template-columns: 272px 1fr; } }
.side { display: none; }
@media (min-width: 1000px) {
  .side { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100svh; padding: 24px 16px; background: var(--forest); color: var(--on-dark); isolation: isolate; overflow: hidden; }
  .side::before { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .08; mix-blend-mode: overlay; z-index: -1; }
  .side::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; left: -120px; bottom: -120px; background: rgba(195,151,69,.25); filter: blur(60px); z-index: -1; }
}
.side__brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 22px; text-decoration: none; color: #fff; font-family: var(--font-head); font-weight: 700; line-height: 1.1; }
.side__brand img { width: 44px; background: #fff; border-radius: 50%; padding: 2px; }
.side__brand small { display: block; color: var(--lichen); font-weight: 600; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.side__nav { display: grid; gap: 4px; position: relative; }
.side__link { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; color: var(--on-dark-soft); text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: .95rem; transition: color .3s; }
.side__link:hover { color: #fff; }
.side__link[aria-current="page"] { color: var(--forest); }
.side__link .count { margin-left: auto; background: var(--gold); color: var(--forest); font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.side__indicator { position: absolute; left: 0; right: 0; top: 0; height: 48px; border-radius: 14px; background: var(--lichen); z-index: 0; transition: transform .55s var(--ease), height .55s var(--ease); }
.side__user { margin-top: auto; display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.side__user b { color: #fff; font-family: var(--font-head); font-size: .92rem; display: block; line-height: 1.2; }
.side__user small { color: var(--on-dark-soft); font-size: .78rem; }
.side__user .icon-btn { margin-left: auto; background: rgba(255,255,255,.08); color: #fff; }
.avatar-sm { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--forest); font-family: var(--font-head); font-weight: 700; font-size: .9rem; }

.topnav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: rgba(242,239,226,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--stone); }
@media (min-width: 1000px) { .topnav { display: none; } }
.topnav .side__brand { color: var(--forest); padding: 0; }
.topnav .side__brand small { color: var(--olive); }
.tabbar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 35; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 6px; background: var(--forest); border-radius: 22px; box-shadow: var(--shadow-3); padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
@media (min-width: 1000px) { .tabbar { display: none; } }
.tabbar a { display: grid; justify-items: center; gap: 2px; padding: 8px 2px; border-radius: 16px; color: var(--on-dark-soft); text-decoration: none; font-size: .68rem; font-weight: 700; transition: background-color .3s, color .3s; position: relative; }
.tabbar a[aria-current="page"] { background: var(--lichen); color: var(--forest); }
.tabbar .count { position: absolute; top: 4px; right: 18%; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.main { padding: 24px 16px 130px; min-width: 0; }
@media (min-width: 1000px) { .main { padding: 40px 48px 80px; } }
.view { max-width: 1180px; margin: 0 auto; display: grid; gap: 20px; }
.view-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.view-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0; }
.view-head p { margin: 4px 0 0; color: var(--ink-soft); }
.view-head .serif { color: var(--gold); }

/* ---------- Bloques ---------- */
.panel { background: #fff; border: 1px solid var(--stone); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow-1); min-width: 0; }
.panel h2 { font-size: 1.25rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.panel h2 .ico { color: var(--gold); }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel__head h2 { margin: 0; }
.panel--dark { background: var(--forest); color: var(--on-dark); border-color: transparent; position: relative; overflow: hidden; isolation: isolate; }
.panel--dark h2 { color: #fff; }
.panel--dark::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; right: -80px; top: -100px; background: rgba(195,151,69,.3); filter: blur(50px); z-index: -1; }
.cols { display: grid; gap: 20px; }
@media (min-width: 900px) { .cols--2 { grid-template-columns: 1fr 1fr; } .cols--3-1 { grid-template-columns: 1.6fr 1fr; } }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 1100px) { .kpis { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.kpi { background: #fff; border: 1px solid var(--stone); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-1); display: grid; gap: 6px; position: relative; overflow: hidden; }
.kpi__label { padding-right: 30px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--olive); }
.kpi__value { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 3.5vw, 2.3rem); color: var(--forest); letter-spacing: -.03em; line-height: 1.1; }
.kpi__sub { font-size: .88rem; color: var(--ink-soft); }
.kpi .ico { position: absolute; right: 16px; top: 16px; width: 22px; height: 22px; color: var(--gold); }
.kpi--accent { background: var(--forest); border-color: transparent; }
.kpi--accent .kpi__value { color: var(--lichen); } .kpi--accent .kpi__label { color: var(--gold-2); } .kpi--accent .kpi__sub { color: var(--on-dark-soft); }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--ok { background: #e3eedb; color: var(--moss); }
.pill--warn { background: var(--gold-soft); color: #8a6420; }
.pill--bad { background: #f6dfda; color: var(--danger); }
.pill--neutral { background: var(--cream); color: var(--ink-soft); }

.status-card { display: grid; gap: 14px; }
.status-card__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.status-big { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--forest); letter-spacing: -.03em; line-height: 1.1; }
.panel--dark .status-big { color: #fff; }
.alert { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: var(--gold-soft); border: 1px solid #e3cf9f; color: #4d3b12; }
.alert .ico { color: #9a7428; }
.alert--bad { background: #f6dfda; border-color: #ebc0b6; color: #6e2418; }
.alert--bad .ico { color: var(--danger); }
.alert .btn { margin-left: auto; }

.ring { position: relative; width: 120px; height: 120px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.ring .track { stroke: rgba(9,48,38,.08); }
.panel--dark .ring .track { stroke: rgba(255,255,255,.1); }
.ring .bar { stroke: var(--gold); stroke-dasharray: 100; transition: stroke-dashoffset 1.6s var(--ease); }
.ring__label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: inherit; line-height: 1; }
.ring__label small { display: block; font-size: .62rem; letter-spacing: .1em; font-weight: 700; text-transform: uppercase; opacity: .7; margin-top: 4px; }

.list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.list-item { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--stone); }
.list-item__main { min-width: 0; flex: 1; }
.list-item__main b { display: block; color: var(--forest); font-family: var(--font-head); font-size: .98rem; }
.list-item__main small { color: var(--ink-soft); font-size: .86rem; }
.date-chip { flex: none; width: 56px; text-align: center; border-radius: 14px; background: var(--forest); color: #fff; padding: 8px 0; font-family: var(--font-head); line-height: 1; }
.date-chip b { display: block; font-size: 1.35rem; }
.date-chip small { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lichen); }
.empty { text-align: center; padding: 28px 16px; color: var(--ink-soft); }
.empty .ico { width: 34px; height: 34px; margin: 0 auto 10px; color: var(--sage); }

/* ---------- Tabla responsive ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl th { text-align: left; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--olive); padding: 10px 12px; border-bottom: 2px solid var(--stone); white-space: nowrap; }
.tbl td { padding: 14px 12px; border-bottom: 1px solid var(--stone); vertical-align: middle; }
.tbl tbody tr { transition: background-color .25s; }
.tbl tbody tr.is-click { cursor: pointer; }
.tbl tbody tr.is-click:hover { background: var(--paper); }
.who { display: flex; align-items: center; gap: 12px; }
.who b { display: block; color: var(--forest); font-family: var(--font-head); font-size: .95rem; line-height: 1.2; }
.who small { color: var(--ink-soft); font-size: .82rem; }
.num { font-family: var(--font-head); font-weight: 700; white-space: nowrap; }
@media (max-width: 760px) {
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { border: 1px solid var(--stone); border-radius: 16px; padding: 6px 14px; margin-bottom: 10px; background: #fff; }
  .tbl td { border: 0; padding: 8px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .tbl td::before { content: attr(data-label); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--olive); }
  .tbl td.td-main::before { display: none; }
}

/* ---------- Toolbar / filtros ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.search { position: relative; flex: 1 1 240px; }
.search .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); }
.search input { width: 100%; min-height: 50px; padding: 0 16px 0 46px; border-radius: 999px; border: 2px solid var(--stone); background: var(--paper); font: inherit; }
.search input:focus { outline: none; border-color: var(--sage); background: #fff; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--stone); background: #fff; font: inherit; font-weight: 700; font-size: .88rem; color: var(--forest); cursor: pointer; transition: all .3s var(--ease); }
.filter[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }
.filter span { opacity: .65; margin-left: 4px; }

/* ---------- Gráfico de barras ---------- */
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 240px; margin-top: 12px; overflow: hidden; }
.bar { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; height: 100%; text-align: center; min-width: 0; }
.bar__fill { flex: none; border-radius: 12px 12px 6px 6px; background: linear-gradient(180deg, var(--lichen), var(--sage)); min-height: 4px; transform-origin: bottom; position: relative; }
.bar:last-child .bar__fill { background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.bar__val { font-size: .72rem; font-weight: 700; color: var(--forest); }
.bar__lbl { font-size: .74rem; color: var(--ink-soft); text-transform: capitalize; }

/* ---------- Carnet digital ---------- */
.member { perspective: 1400px; width: min(100%, 520px); margin: 0 auto; }
.member__inner { position: relative; aspect-ratio: 1.586; transform-style: preserve-3d; transition: transform 1s var(--ease); cursor: pointer; }
.member.is-flipped .member__inner { transform: rotateY(180deg); }
.member__face { position: absolute; inset: 0; border-radius: 26px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; padding: clamp(18px, 4.5vw, 30px); color: var(--on-dark); background: linear-gradient(135deg, #165040, #06261e 70%); box-shadow: var(--shadow-3); isolation: isolate; display: flex; flex-direction: column; }
.member__face::before { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .14; mix-blend-mode: overlay; z-index: -1; }
.member__face::after { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; right: -18%; top: -40%; background: radial-gradient(circle, rgba(195,151,69,.5), transparent 70%); z-index: -1; }
.member__face--back { transform: rotateY(180deg); background: linear-gradient(135deg, #0d3a2e, #031a14); justify-content: space-between; }
.member__shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.18) 45%, transparent 60%); background-size: 250% 100%; background-position: var(--shine, 100%) 0; pointer-events: none; z-index: 2; }
.member__top { display: flex; justify-content: space-between; align-items: flex-start; }
.member__org { font-family: var(--font-head); line-height: 1.1; }
.member__org small { display: block; font-size: clamp(.55rem, 1.6vw, .7rem); letter-spacing: .14em; color: var(--lichen); font-weight: 700; }
.member__org b { color: #fff; font-size: clamp(1rem, 3vw, 1.35rem); }
.member__logo { width: clamp(48px, 13vw, 72px); background: #fff; border-radius: 50%; padding: 2px; }
.member__chip { width: clamp(38px, 10vw, 52px); aspect-ratio: 1.3; border-radius: 8px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); margin: auto 0 10px; position: relative; overflow: hidden; }
.member__chip::before { content: ""; position: absolute; inset: 30% 0; border-top: 1px solid rgba(9,48,38,.35); border-bottom: 1px solid rgba(9,48,38,.35); }
.member__name { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.05rem, 4vw, 1.6rem); color: #fff; letter-spacing: -.02em; line-height: 1.1; }
.member__meta { display: flex; gap: clamp(10px, 3vw, 22px); margin-top: 8px; flex-wrap: wrap; }
.member__meta span { font-size: clamp(.6rem, 1.8vw, .74rem); color: var(--on-dark-soft); letter-spacing: .06em; }
.member__meta b { display: block; color: #fff; font-family: var(--font-head); font-size: clamp(.78rem, 2.4vw, .95rem); letter-spacing: 0; }
.member__code { display: grid; grid-template-columns: repeat(13, 1fr); width: clamp(84px, 24vw, 120px); aspect-ratio: 1; background: #fff; padding: 6px; border-radius: 10px; }
.member__code i { background: transparent; }
.member__code i.on { background: var(--forest); }
.member__back-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; }
.member__legal { font-size: clamp(.58rem, 1.7vw, .72rem); color: var(--on-dark-soft); max-width: 28ch; margin: 0; }
.member__stripe { height: clamp(26px, 7vw, 40px); margin: 0 calc(-1 * clamp(18px, 4.5vw, 30px)); background: #02130e; }
.member-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(5,26,20,.5); backdrop-filter: blur(6px); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(100%, 520px); background: var(--paper); display: flex; flex-direction: column; box-shadow: var(--shadow-3); }
.drawer__panel--wide { width: min(100%, 680px); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--stone); }
.drawer__head h2 { margin: 0; font-size: 1.35rem; }
.drawer__body { padding: 22px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.drawer__body > div { display: grid; gap: 18px; }
body.has-drawer { overflow: hidden; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.kv div { background: #fff; border: 1px solid var(--stone); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.kv dt { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--olive); }
.kv dd { margin: 2px 0 0; font-weight: 700; color: var(--forest); word-break: break-word; }
.section-label { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--olive); margin: 6px 0 -6px; }
.secret { font-family: ui-monospace, Consolas, monospace; font-size: 1.3rem; font-weight: 700; background: var(--forest); color: var(--lichen); padding: 12px 16px; border-radius: 12px; text-align: center; letter-spacing: .08em; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 120; left: 50%; bottom: 96px; transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 420px); }
@media (min-width: 1000px) { .toasts { bottom: 28px; left: auto; right: 28px; transform: none; } }
.toast { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-radius: 16px; background: var(--forest); color: #fff; font-weight: 700; box-shadow: var(--shadow-3); }
.toast .ico { color: var(--lichen); }
.toast--bad { background: var(--danger); }
.toast--bad .ico { color: #fff; }

@media (max-width: 999px) { .demo-banner { bottom: calc(92px + env(safe-area-inset-bottom)); font-size: .72rem; } }
.pay-data .copy-btn { flex: none; white-space: nowrap; }

/* ---------- Portal conectado a la API (reemplazan estilos en línea) ---------- */
.noscript { padding: 24px; }
.auth__logo { margin-bottom: 18px; }
.auth__lead { font-size: 1.05rem; margin-bottom: 22px; }
.auth__alt { text-align: center; margin: 0; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--forest); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--moss); }
.form-status.is-ok { color: var(--moss); }
.panel--link { text-decoration: none; display: grid; gap: 12px; align-content: center; text-align: center; }
.panel--link .icon { margin: 0 auto; }
.panel--link b { font-family: var(--font-head); color: var(--forest); font-size: 1.15rem; }
.panel--link span:last-child { color: var(--ink-soft); font-size: .95rem; }
.panel--carnet { padding-block: 40px; }
.panel--center { display: grid; justify-items: center; gap: 14px; text-align: center; }
.periodo { color: var(--forest); text-transform: capitalize; }
.empty[aria-busy="true"] { opacity: .7; }
button[aria-busy="true"] { cursor: progress; opacity: .7; }

/* ---------- Gestión ---------- */
.capitalize { text-transform: capitalize; }
.table-wrap { margin-top: 16px; overflow-x: auto; }
.field--mes { flex: 0 1 260px; }
.list-item--btn { width: 100%; text-align: left; cursor: pointer; font: inherit; }
.list-item--wrap { flex-wrap: wrap; }
.list-item--dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); text-decoration: none; }
.list-item--dark b { color: #fff; }
.list-item--dark small { color: var(--on-dark-soft); }
.who--lg .avatar-sm { width: 56px; height: 56px; font-size: 1.1rem; }
.who--lg b { font-size: 1.2rem; }
.sol-comentario { color: var(--ink-soft); font-style: italic; }
.steps-list { margin: 0; padding-left: 20px; color: var(--ink-soft); display: grid; gap: 6px; }
.totp-qr { width: 200px; max-width: 100%; margin: 4px auto; background: #fff; border-radius: 12px; padding: 8px; }
.totp-qr svg { display: block; width: 100%; height: auto; }
.secret--sm { font-size: 1rem; word-break: break-all; }
.totp-link { justify-self: start; }
.code-input { font-family: ui-monospace, Consolas, monospace; font-size: 1.3rem; letter-spacing: .2em; text-align: center; }
.codes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.codes li { font-family: ui-monospace, Consolas, monospace; font-weight: 700; background: var(--paper); border: 1px solid var(--stone); border-radius: 10px; padding: 10px; text-align: center; color: var(--forest); }
.check-row { display: flex; gap: 10px; align-items: center; font-size: .95rem; cursor: pointer; }
.check-row input { width: 20px; height: 20px; accent-color: var(--forest); }
.enlace-acceso { display: grid; gap: 10px; justify-items: start; margin-top: 14px; padding: 14px; border: 1px dashed var(--stone); border-radius: 12px; background: var(--paper); }
.enlace-acceso input { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; padding: 10px 12px; border: 1px solid var(--stone); border-radius: 10px; background: #fff; color: var(--forest); }
