/* APP GYM · estilo Híbrido 1: grafito + lima, tarjetas redondeadas, números en Space Grotesk.
   Layout: riel de navegación a la izquierda en PC, barra inferior en celular. Tema oscuro único (decisión de diseño). */
:root {
  --bg: #111315;
  --surface: #1A1D21;
  --inset: #111315;
  --raise: #23272D;
  --line: #2A2E34;
  --text: #EEF0F3;
  --soft: #CED2D8;
  --muted: #8B919B;
  --accent: #C6FF3D;
  --accent-ink: #111315;
  --ok: #C6FF3D;
  --warn: #FFCF5C;
  --bad: #FF7A7A;
  --info: #A6C0FF;
  --ok-bg: rgba(198,255,61,.12);
  --warn-bg: rgba(255,207,92,.12);
  --bad-bg: rgba(255,107,107,.13);
  --info-bg: rgba(143,176,255,.13);
  --muted-bg: rgba(139,145,155,.14);
  --viz-in: #3987e5;   /* gráfico de finanzas: ingresos (validado contra fondos oscuros) */
  --viz-out: #d95926;  /* egresos */
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; font-weight: 700; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: 28px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.soft { color: var(--soft); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ── Shell ───────────────────────────────────────── */
.shell { display: flex; gap: 16px; min-height: 100%; padding: 16px; }
.rail { position: sticky; top: calc(16px + env(safe-area-inset-top, 0px)); align-self: flex-start; width: 84px; flex-shrink: 0; background: var(--surface); border-radius: 24px; padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 4px; max-height: calc(100vh - 32px); overflow-y: auto; }
.brand { width: 44px; height: 44px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 700 18px var(--font-display); margin-bottom: 12px; }
.rail a { width: 68px; padding: 9px 0 7px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 10.5px; font-weight: 600; text-align: center; line-height: 1.1; }
.rail a:hover { color: var(--text); background: var(--raise); }
.rail a.on { color: var(--accent); background: var(--raise); }
.rail .spacer { flex: 1; }
.rail { overflow: hidden; }
.rail .brand { flex-shrink: 0; }
.rail-scroll { flex: 1 1 auto; min-height: 0; width: 100%; overflow-y: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; scrollbar-width: none; }
.rail-scroll::-webkit-scrollbar { display: none; }
.rail-foot { flex-shrink: 0; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 6px; margin-top: 4px; border-top: 1px solid var(--line); }
.rail a.logout:hover { color: var(--bad); }
.userbar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-bottom: -8px; }
.userbar .btn:hover { color: var(--bad); border-color: var(--bad); }
/* Pantallas bajas (notebooks): riel más compacto para que entren todas las secciones */
@media (max-height: 900px) and (min-width: 761px) {
  .rail { padding: 10px 0; gap: 2px; }
  .rail-scroll, .rail-foot { gap: 2px; }
  .rail .brand { width: 38px; height: 38px; margin-bottom: 6px; }
  .rail a { padding: 6px 0 5px; gap: 2px; font-size: 10px; }
  .rail a svg { width: 18px; height: 18px; }
}
main.view { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding-bottom: 24px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 4px 4px 0; }
.topbar .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rolebox { display: flex; align-items: center; gap: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--raise); display: grid; place-items: center; font: 700 13px var(--font-display); flex-shrink: 0; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.bottomnav { display: none; }
.banner { background: var(--warn-bg); color: var(--warn); border-radius: var(--r-md); padding: 12px 16px; font-weight: 600; font-size: 14px; }
.banner.sa { background: var(--info-bg); color: var(--info); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; border: 1px solid rgba(166,192,255,.35); backdrop-filter: blur(6px); }
.banner.sa span { display: inline-flex; align-items: center; gap: 8px; }
.banner.sa svg { flex-shrink: 0; }

/* ── Cards & grids ───────────────────────────────── */
.card { background: var(--surface); border-radius: var(--r-lg); padding: 20px; min-width: 0; }
.card.tight { padding: 16px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.split-r { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.kpi .label { font-size: 13px; color: var(--muted); }
.kpi .value { font: 700 32px/1.1 var(--font-display); font-variant-numeric: tabular-nums; margin-top: 2px; }
.kpi .note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.bar { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; margin-top: 10px; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.list { display: flex; flex-direction: column; gap: 8px; }
.item { background: var(--inset); border-radius: var(--r-md); padding: 10px 12px; display: flex; align-items: center; gap: 12px; min-width: 0; }
.item .grow { flex: 1; min-width: 0; }
.item .title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.item { color: inherit; }
a.item:hover, button.item:hover { background: var(--raise); }
button.item { border: 0; width: 100%; text-align: left; cursor: pointer; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 14px; border: 1px dashed var(--line); border-radius: var(--r-md); }

/* ── Pills & chips ───────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 99px; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill.muted { background: var(--muted-bg); color: var(--soft); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 34px; padding: 0 13px; border-radius: var(--r-sm); border: 1px solid var(--line); background: transparent; color: var(--soft); font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--muted); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }

/* ── Buttons & forms ─────────────────────────────── */
.btn { height: 44px; padding: 0 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); }
.btn.sm { height: 36px; padding: 0 13px; font-size: 13px; border-radius: var(--r-sm); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.iconbtn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--raise); color: var(--soft); display: inline-grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.iconbtn:hover { color: var(--text); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 12px; color: var(--muted); font-weight: 600; }
.input, select.input, textarea.input { height: 44px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--inset); padding: 0 14px; width: 100%; min-width: 0; }
textarea.input { height: auto; min-height: 84px; padding: 10px 14px; resize: vertical; }
.input:focus { border-color: var(--accent); outline: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.search { position: relative; flex: 1; min-width: 180px; }
.search .input { padding-left: 40px; }
.search svg { position: absolute; left: 14px; top: 13px; color: var(--muted); }

/* ── Tables ──────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 14px; min-width: 560px; }
table.t th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 12px 2px; white-space: nowrap; }
table.t td { background: var(--inset); padding: 11px 12px; white-space: nowrap; }
table.t td:first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
table.t td:last-child { border-radius: 0 var(--r-md) var(--r-md) 0; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--raise); }

/* ── Ejercicios ──────────────────────────────────── */
.ex-img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--raise); flex-shrink: 0; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ex-card { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; border: 0; padding: 0; text-align: left; cursor: pointer; color: inherit; }
.ex-card:hover { background: var(--raise); }
.ex-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; filter: saturate(.85) brightness(.92); }
.ex-card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.hero { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); min-height: 200px; display: flex; align-items: flex-end; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.45) saturate(.8); }
.hero .body { position: relative; padding: 20px; display: flex; flex-direction: column; gap: 4px; width: 100%; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

/* ── Registro de series ──────────────────────────── */
.setrow { display: grid; grid-template-columns: 34px repeat(3, minmax(0, 1fr)) 44px; gap: 8px; align-items: center; }
.setrow .input { height: 42px; text-align: center; padding: 0 6px; font-weight: 700; }
.setrow.head { font-size: 11px; color: var(--muted); }
.done-btn { width: 42px; height: 42px; border-radius: 12px; border: 0; background: var(--raise); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.done-btn.on { background: var(--accent); color: var(--accent-ink); }

/* ── Gráficos ────────────────────────────────────── */
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font: 11px var(--font-body); }
.heat { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; }
.heat i { display: block; height: 22px; border-radius: 5px; background: var(--line); }
.musc { display: grid; grid-template-columns: 96px minmax(0, 1fr) 36px; gap: 10px; align-items: center; font-size: 13px; }

/* ── Ingreso ─────────────────────────────────────── */
.verdict { border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 12px; border: 2px solid var(--line); }
.verdict.ok { border-color: var(--ok); background: var(--ok-bg); }
.verdict.warn { border-color: var(--warn); background: var(--warn-bg); }
.verdict.bad { border-color: var(--bad); background: var(--bad-bg); }
.verdict.info { border-color: var(--info); background: var(--info-bg); }
.verdict.muted { border-color: var(--muted); background: var(--muted-bg); }
.verdict .big { font: 700 34px/1 var(--font-display); }
.verdict.ok .big { color: var(--ok); } .verdict.warn .big { color: var(--warn); } .verdict.bad .big { color: var(--bad); } .verdict.info .big { color: var(--info); }
.qr { width: 200px; max-width: 100%; aspect-ratio: 1; background: #F4F5F2; border-radius: 16px; padding: 14px; display: grid; gap: 3px; }
.qr i { background: transparent; border-radius: 2px; }
.qr i.on { background: #111315; }

/* ── Modal & toast ───────────────────────────────── */
.overlay { position: fixed; inset: 0; background: rgba(5,6,8,.7); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: var(--surface); border-radius: 24px; width: min(560px, 100%); max-height: calc(100% - 32px); overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line); }
.modal .foot { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 14px; z-index: 60; max-width: calc(100% - 32px); box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.toast.err { background: var(--bad); color: #1a0606; }
.loading { padding: 40px; text-align: center; color: var(--muted); }

/* ── Login ───────────────────────────────────────── */
.login { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; padding: 16px; }
.login .art { border-radius: 28px; overflow: hidden; position: relative; background: var(--surface); display: flex; align-items: flex-end; min-height: 280px; }
.login .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.4) saturate(.7); }
.login .art .body { position: relative; padding: 36px; display: flex; flex-direction: column; gap: 10px; }
.login .art h1 { font-size: clamp(34px, 4vw, 54px); line-height: 1; }
.login .panel { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 24px clamp(8px, 4vw, 56px); max-width: 520px; width: 100%; justify-self: center; }
.demo-accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.demo-accounts button { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-md); padding: 10px 12px; cursor: pointer; }
.demo-accounts button:hover { border-color: var(--accent); }

/* ── Marca del gimnasio ──────────────────────────── */
.brand.logo { background: var(--raise); padding: 5px; overflow: hidden; }
.brand.logo.light, .logo-prev.light { background: #F4F5F2; color: #111315; }
.brand.logo.fill, .logo-prev.fill { padding: 0; background: transparent; }
.brand.logo.fill img, .logo-prev.fill img { object-fit: cover; }
.brand img, .logo-prev img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mobilebar { display: flex; align-items: center; gap: 12px; }
.mobilebar .brand { margin: 0; width: 40px; height: 40px; flex-shrink: 0; font-size: 15px; }
.brandgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.logo-prev { width: 76px; height: 76px; border-radius: 18px; background: var(--raise); display: grid; place-items: center; padding: 8px; overflow: hidden; font: 700 24px var(--font-display); flex-shrink: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 34px; height: 34px; border-radius: 10px; border: 0; cursor: pointer; position: relative; overflow: hidden; padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.swatch.custom { background: conic-gradient(#ff5c5c, #ffd23d, #c6ff3d, #2ee6d6, #7aa2ff, #ff7ac6, #ff5c5c); }
.swatch.custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.swatch.custom:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.theme { height: 64px; border-radius: 12px; border: 2px solid; display: flex; align-items: flex-end; gap: 6px; padding: 8px; color: #EEF0F3; cursor: pointer; font: 700 12px var(--font-body); }
.theme i { width: 18px; height: 18px; border-radius: 5px; }
.theme span { margin-left: auto; }
.theme[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── Campanita y novedades ───────────────────────── */
.bell { position: relative; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--soft); display: inline-grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.bell:hover { color: var(--text); border-color: var(--muted); }
.bell-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--bad); color: #1a0606; font: 700 11px/20px var(--font-display); text-align: center; border: 2px solid var(--bg); box-sizing: content-box; }
.bell-badge[hidden] { display: none; }
.evicon { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.evicon.ok { background: var(--ok-bg); color: var(--ok); }
.evicon.warn { background: var(--warn-bg); color: var(--warn); }
.evicon.info { background: var(--info-bg); color: var(--info); }
.evicon.muted { background: var(--muted-bg); color: var(--soft); }
.hint { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--ok-bg); font-size: 13px; flex-wrap: wrap; }
.hint > svg { color: var(--ok); flex-shrink: 0; }
.hint .grow { flex: 1; min-width: 180px; }
.pill svg { flex-shrink: 0; }

/* ── Finanzas ────────────────────────────────────── */
.fchart { position: relative; }
.fchart .b-in { fill: var(--viz-in); }
.fchart .b-out { fill: var(--viz-out); }
.fchart g { transition: opacity .15s; }
.fchart g.dim { opacity: .35; }
.fchart .hit { cursor: pointer; outline: none; }
.fchart .hit:focus-visible { stroke: var(--text); stroke-width: 1.5; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--soft); margin-bottom: 6px; }
.legend span, .ftip div { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.sw.in { background: var(--viz-in); } .sw.out { background: var(--viz-out); }
.ftip { position: absolute; transform: translateY(-100%); background: var(--raise); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 12px; display: flex; flex-direction: column; gap: 4px; pointer-events: none; z-index: 5; min-width: 180px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.ftip[hidden] { display: none; }
.ftip div { justify-content: space-between; gap: 12px; }
.ftip .sw { margin-right: 2px; }
details > summary { list-style: none; } details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: '▸ '; } details[open] > summary::before { content: '▾ '; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brandgrid { grid-template-columns: minmax(0, 1fr); }
  .split, .split-r { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .shell { padding: 14px 14px calc(92px + env(safe-area-inset-bottom, 0px)); }
  .rail { display: none; }
  .bottomnav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); height: 66px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; z-index: 40; }
  .bottomnav a, .bottomnav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 10.5px; font-weight: 700; background: none; border: 0; cursor: pointer; }
  .bottomnav .on { color: var(--accent); }
  .g3, .g2 { grid-template-columns: minmax(0, 1fr); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi .value { font-size: 26px; }
  .card { padding: 16px; }
  h1 { font-size: 24px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .login { grid-template-columns: minmax(0, 1fr); }
  .login .art { min-height: 220px; }
  .login .art .body { padding: 22px; }
  .hide-sm { display: none !important; }
  .topbar .actions .btn { flex: 1; }
  .topbar .actions { width: 100%; }
}
@media (min-width: 761px) { .show-sm { display: none !important; } }

/* Rutinas: la lectura de la última sesión va en su propia línea */
.rt-item { flex-wrap: wrap; }
.rt-item .rhint { flex-basis: 100%; padding-left: 76px; margin-top: -2px; }
@media (max-width: 760px) {
  .rt-item .ex-img { width: 48px; height: 48px; }
  .rt-item .title { white-space: normal; }
  .rt-item .grow { flex-basis: calc(100% - 64px); }
  .rt-item > div[style*="text-align:right"] { margin-left: auto; }
  .rt-item .rhint { padding-left: 0; }
}
