/* =====================================================================
   DSI Citas · panel del negocio (PWA) · v4
   ===================================================================== */

:root { --acc: #D6B274; --acc-ink: #1B1407; --side-w: 288px; --drawer-w: 460px; --ppm: 1.6px; }

/* La app ocupa exactamente la pantalla visible (dvh sigue a la barra del
   navegador en móvil) y solo scrollean sus paneles internos. */
html, body { height: 100%; }
body { overflow: hidden; overscroll-behavior: none; }
@supports (height: 100dvh) { html, body { height: 100dvh; } }
body.is-booting > :not(.boot):not(svg):not(script) { visibility: hidden; }

/* ---------------------------------------------------------------- boot */
.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--paper); z-index: 200; transition: opacity .35s var(--ease); }
body:not(.is-booting) .boot { opacity: 0; pointer-events: none; }
.boot .brand__mark { width: 56px; height: 56px; border-radius: 16px; animation: boot 1.2s var(--ease) infinite alternate; }
.boot .brand__mark svg { width: 38px; height: 38px; }
@keyframes boot { from { transform: scale(.94); opacity: .7; } to { transform: scale(1); opacity: 1; } }

/* shared brand */
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand__mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--ink); color: var(--paper); flex: none; }
.brand__mark svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand__mark .brand__tick { stroke: var(--tick); }
.brand__txt { font-family: var(--f-display); font-size: 1.18rem; letter-spacing: -.02em; font-weight: 500; }
.brand__txt b { font-weight: 800; }

.linkbtn { background: none; border: 0; padding: 0; color: var(--pen); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.linkbtn:hover { text-decoration-thickness: 2px; }
.linkbtn:focus-visible { outline: 3px solid var(--tick); outline-offset: 2px; border-radius: 4px; }
.linkbtn--sm { font-size: .82rem; }
.linkbtn--center { justify-self: center; font-size: .9rem; margin-top: .2rem; }
.btn--block { width: 100%; }

/* ---------------------------------------------------------------- forms */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field > label, .field__label { font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.field__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.field__row label { font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.field__hint { font-size: .8rem; color: var(--ink-3); }
.field__err { font-size: .82rem; color: var(--bad); font-weight: 500; }
.input, .field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font-size: 1rem; transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 84px; resize: vertical; line-height: 1.45; }
.field select {
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23676E8E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pen); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pen) 22%, transparent); }
.field.has-err input, .field.has-err select { border-color: var(--bad); }
.form__err { background: var(--bad-soft); color: var(--bad); padding: .7rem .9rem; border-radius: 12px; font-size: .9rem; font-weight: 500; }
.form__ok { background: var(--ok-soft); color: var(--ok); padding: .7rem .9rem; border-radius: 12px; font-size: .9rem; font-weight: 500; }
.pass { position: relative; }
.pass input { padding-right: 3.2rem; }
.pass__eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; background: none; border-radius: 10px; color: var(--ink-3); display: grid; place-items: center; }
.pass__eye[aria-pressed="true"] { color: var(--pen); }
.otp { font-family: var(--f-time) !important; font-weight: 700; font-size: 1.9rem !important; letter-spacing: .5em; text-align: center; padding-left: 1.2rem !important; }

/* medidor de fuerza de la contraseña */
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: .2rem; }
.meter i { height: 4px; border-radius: 99px; background: var(--line); transition: background-color .2s; }
.meter[data-n="1"] i:nth-child(-n+1) { background: var(--bad); }
.meter[data-n="2"] i:nth-child(-n+2) { background: var(--warn); }
.meter[data-n="3"] i:nth-child(-n+3) { background: var(--ok); }
.meter[data-n="4"] i { background: var(--ok); }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: none; }
.is-busy .spinner { display: inline-block; }
.is-busy .btn__label { opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- login */
.login { height: 100%; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); background: var(--paper); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.login__art {
  position: relative; overflow: hidden; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(28px, 5vw, 64px);
}
:root[data-theme="dark"] .login__art { background: #050817; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .login__art { background: #050817; } }
.login__times {
  position: absolute; inset: -2rem -1rem auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .2rem 1.4rem; font-size: clamp(3rem, 7vw, 6.4rem); line-height: 1.02; color: rgba(241, 242, 238, .07);
  animation: drift 40s linear infinite alternate; will-change: transform;
}
.login__times .is-on { color: rgba(92, 196, 242, .85); }
@keyframes drift { to { transform: translateY(-8%); } }
.login__quote { position: relative; font-family: var(--f-display); font-size: clamp(1.6rem, 2.8vw, 2.5rem); line-height: 1.1; font-weight: 600; letter-spacing: -.025em; max-width: 15em; text-wrap: balance; }
.login__box { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: clamp(24px, 5vw, 64px); padding-top: calc(clamp(24px, 5vw, 64px) + env(safe-area-inset-top, 0px)); padding-bottom: calc(clamp(24px, 5vw, 64px) + env(safe-area-inset-bottom, 0px)); }
.login__form-wrap { width: 100%; max-width: 400px; margin: 0 auto; display: grid; gap: 1rem; }
.login__biz { display: inline-flex; align-items: center; gap: .6rem; justify-self: start; padding: .35rem .8rem .35rem .35rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; }
.pane { display: grid; gap: 1rem; animation: pane-in .4s var(--ease-out) both; }
@keyframes pane-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.login h1 { font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 700; letter-spacing: -.03em; }
.login__sub { color: var(--ink-2); margin-bottom: .6rem; }
.login__hint { font-size: .86rem; color: var(--ink-3); }
.login__alt { display: flex; flex-wrap: wrap; gap: .4rem .6rem; font-size: .92rem; color: var(--ink-3); padding-top: 1rem; border-top: 1px solid var(--line); margin-top: .6rem; }
.login__foot { font-size: .84rem; color: var(--ink-3); text-align: center; }
.back { display: inline-flex; align-items: center; gap: .3rem; justify-self: start; text-decoration: none; font-size: .9rem; color: var(--ink-2); }
.back:hover { color: var(--ink); }
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login__art { min-height: 150px; padding: 20px 20px 18px; padding-top: calc(20px + env(safe-area-inset-top, 0px)); }
  .login__times { font-size: 3.4rem; }
  .login__quote { font-size: 1.25rem; max-width: 20em; }
  .login__box { padding-top: 24px; }
}

/* ---------------------------------------------------------------- shell */
.shell { height: 100%; display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); }

.avatar { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--acc); color: var(--acc-ink); font-family: var(--f-display); font-weight: 800; font-size: .95rem; flex: none; letter-spacing: -.01em; }
.avatar--sm { width: 32px; height: 32px; border-radius: 10px; font-size: .74rem; }

.side {
  display: flex; flex-direction: column; gap: 1.4rem; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 20px calc(18px + env(safe-area-inset-bottom, 0px));
  background: var(--surface-2); border-right: 1px solid var(--line);
}
.side__biz { display: flex; align-items: center; gap: .8rem; }
.side__new { min-height: 48px; font-size: 1rem; margin-top: -.2rem; }
.side__bizt { min-width: 0; }
.side__bizt b { display: block; font-family: var(--f-display); font-size: 1.12rem; line-height: 1.15; letter-spacing: -.015em; }
.side__bizt small { display: block; color: var(--ink-3); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* mini calendar */
.minical { display: grid; gap: .5rem; }
.minical__head { display: flex; align-items: center; justify-content: space-between; }
.minical__head b { font-family: var(--f-display); font-size: .98rem; text-transform: capitalize; }
.minical__nav { display: flex; gap: 2px; }
.minical__nav button { width: 32px; height: 32px; border: 0; background: none; border-radius: 8px; color: var(--ink-2); display: grid; place-items: center; }
.minical__nav button:hover { background: var(--paper-2); }
.minical__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.minical__dow { font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding-bottom: .2rem; }
.mc {
  position: relative; aspect-ratio: 1; max-width: 100%; border: 0; background: none; border-radius: 9px;
  font-size: .82rem; font-variant-numeric: tabular-nums; color: var(--ink); display: grid; place-items: center;
}
.mc:hover { background: var(--paper-2); }
.mc--out { color: var(--ink-3); opacity: .55; }
.mc--today { font-weight: 800; color: var(--pen); }
.mc--sel { background: var(--ink); color: var(--paper); font-weight: 700; }
.mc--sel:hover { background: var(--ink); }
.mc--week:not(.mc--sel) { background: color-mix(in srgb, var(--pen) 8%, transparent); }
.mc i { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--tick); }
.mc--sel i { background: var(--paper); }
.mc:focus-visible { outline: 2px solid var(--tick); outline-offset: 1px; }

.today { border-top: 1px solid var(--line); padding-top: 1rem; display: grid; gap: .7rem; }
.today__stats { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 0; }
.today__stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .7rem .8rem .6rem; }
.today__stats dt { font-size: .74rem; color: var(--ink-3); }
.today__stats dd { margin: 0; font-size: 2.3rem; line-height: 1; }
.today__next { font-size: .86rem; color: var(--ink-2); line-height: 1.4; min-height: 2.8em; }
.today__next b { font-family: var(--f-time); font-size: 1.15rem; color: var(--ink); }

/* enlace de reservas online */
.share { border-top: 1px solid var(--line); padding-top: 1rem; display: grid; gap: .55rem; }
.share p { font-size: .84rem; color: var(--ink-2); line-height: 1.4; }
.share__url { display: block; font: 600 .78rem ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .55rem .7rem; overflow-wrap: anywhere; text-decoration: none; }
.share__url:hover { border-color: var(--pen); }
.share__btns { display: flex; gap: 6px; flex-wrap: wrap; }

.side__foot { margin-top: auto; display: grid; gap: .8rem; }
.side__btns { display: flex; gap: 0; flex-wrap: wrap; margin-inline: -.5rem; }
.side__btns .btn { padding: 0 .55rem; }
.sync { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--ink-3); }
.sync__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.sync.is-loading .sync__dot { background: var(--tick); animation: blink 1s ease-in-out infinite; }
.sync.is-error .sync__dot { background: var(--bad); }
@keyframes blink { 50% { opacity: .35; } }

/* ---------------------------------------------------------------- work */
.work { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--paper); }
.demo-banner { display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem .8rem; padding: .45rem 1rem; line-height: 1.35; background: var(--tick-soft); color: var(--ink); font-size: .86rem; text-align: center; }

.top { padding: calc(14px + env(safe-area-inset-top, 0px)) clamp(16px, 2.4vw, 32px) 12px; border-bottom: 1px solid var(--line); background: var(--paper); display: grid; gap: 12px; flex: none; }
.demo-banner:not([hidden]) + .top { padding-top: 14px; }
.top__row { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; }
.top__row--mobile { display: none; }
.top__date { margin-right: auto; min-width: 0; }
.top__title { font-size: clamp(1.45rem, 2.1vw, 1.95rem); font-weight: 700; letter-spacing: -.028em; line-height: 1.05; text-transform: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top__title::first-letter { text-transform: uppercase; }
.top__sub { font-size: .86rem; color: var(--ink-3); margin-top: .15rem; height: 1.35em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top__nav { display: flex; gap: 6px; }
.seg { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 3px; border: 1px solid var(--line); position: relative; }
.seg__b { position: relative; z-index: 1; border: 0; background: none; padding: 0 .95rem; min-height: 34px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--ink-3); white-space: nowrap; transition: color .2s var(--ease); }
.seg__b[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.seg__b:hover:not([aria-selected="true"]) { color: var(--ink-2); }
.seg__b:focus-visible { outline: 2px solid var(--tick); outline-offset: 1px; }
.search { display: flex; align-items: center; gap: .5rem; min-height: 38px; padding: 0 .8rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-3); width: min(280px, 100%); }
.search:focus-within { border-color: var(--pen); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pen) 18%, transparent); }
.search input { border: 0; outline: none; background: transparent; min-width: 0; flex: 1; font-size: 16px; color: var(--ink); }
.top__refresh.is-spinning .icon { animation: spin .8s linear infinite; }

/* week strip (mobile, vista Día) */
.strip { display: none; }

/* ---------------------------------------------------------------- main */
/* Sin scroll-behavior: smooth aquí: al repintar la agenda la posición se
   restaura al instante y no hay desplazamientos animados inesperados. */
.main { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; position: relative; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; overflow-anchor: none; }
.main:focus { outline: none; }
.view-in { animation: view-in .38s var(--ease-out) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.allday { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px clamp(16px, 2.4vw, 32px) 0 calc(clamp(16px, 2.4vw, 32px) + 56px); }
.allday span { font-size: .8rem; padding: .3rem .7rem; border-radius: 999px; background: var(--paper-2); border: 1px dashed var(--line-2); color: var(--ink-2); }

/* timeline */
.tl { --cols: 1; display: grid; grid-template-columns: 56px repeat(var(--cols), minmax(0, 1fr)); padding: 0 clamp(16px, 2.4vw, 32px) 96px 0; position: relative; }
.tl__dh {
  position: sticky; top: 0; z-index: 6; background: var(--paper);
  border-bottom: 1px solid var(--line); padding: .6rem .4rem .5rem; text-align: left; border-left: 1px solid transparent;
  display: grid; gap: 0; cursor: pointer; border-top: 0; border-right: 0; font: inherit; color: inherit;
}
.tl__dh small { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.tl__dh b { font-family: var(--f-time); font-size: 1.7rem; line-height: 1; font-weight: 700; }
.tl__dh em { font-style: normal; font-size: .72rem; color: var(--ink-3); }
.tl__dh.is-today small, .tl__dh.is-today b { color: var(--pen); }
.tl__dh:hover { background: var(--paper-2); }
.tl__dh--corner { cursor: default; }
.tl__dh--corner:hover { background: var(--paper); }
.tl__hours { position: relative; }
.tl__h { position: absolute; right: 10px; transform: translateY(-.55em); font-family: var(--f-time); font-weight: 600; font-size: 1rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tl__col { position: relative; border-left: 1px solid var(--line); min-width: 0; }
.tl__col--closed-day { background: repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in srgb, var(--ink) 4%, transparent) 7px 8px); }
.tl__col--today { background: color-mix(in srgb, var(--pen) 3%, transparent); }
.tl__line { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); pointer-events: none; }
.tl__line--half { border-top-style: dashed; opacity: .6; }
.tl__closed { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in srgb, var(--ink) 5%, transparent) 7px 8px); pointer-events: none; }
.tl__slot { position: absolute; left: 0; right: 0; border: 0; padding: 0; background: transparent; cursor: copy; }
@media (hover: hover) {
  .tl__slot:hover { background: color-mix(in srgb, var(--pen) 7%, transparent); }
  .tl__slot:hover::after { content: attr(data-t); position: absolute; left: 8px; top: 2px; font-size: .74rem; font-weight: 600; color: var(--pen); }
}
.tl__slot:focus-visible { outline: 2px solid var(--tick); outline-offset: -2px; }
.tl__now { position: absolute; left: -6px; right: 0; top: 0; border-top: 2px solid var(--tick); z-index: 4; pointer-events: none; will-change: transform; }
.tl__now::before { content: ""; position: absolute; left: 0; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--tick); }

.ev {
  --c: var(--ink-3); --bg: var(--surface);
  position: absolute; z-index: 2; border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line)); border-radius: 10px;
  background: var(--bg); box-shadow: inset 3px 0 0 var(--c);
  padding: .3rem .55rem .3rem .7rem; text-align: left; overflow: hidden; color: var(--ink);
  display: flex; flex-direction: column; gap: 1px; line-height: 1.2; font-size: .82rem;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), opacity .2s;
}
@media (hover: hover) { .ev:hover { transform: translateY(-1px); box-shadow: inset 3px 0 0 var(--c), var(--shadow-1); z-index: 3; } }
.ev:focus-visible { outline: 3px solid var(--tick); outline-offset: 1px; z-index: 3; }
.ev__top { display: flex; align-items: baseline; gap: .45rem; min-width: 0; }
.ev__t { font-family: var(--f-time); font-weight: 700; font-size: .98rem; flex: none; }
.ev__n { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ev__s { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .78rem; }
.ev__o { position: absolute; right: 6px; top: 6px; width: 13px; height: 13px; color: var(--wa); opacity: .8; }
.ev--confirmada { --c: var(--ok); --bg: var(--ok-soft); }
.ev--pendiente { --c: var(--warn); --bg: var(--warn-soft); }
.ev--sel { --bg: var(--ink); color: var(--paper); box-shadow: 0 10px 28px -10px rgba(13, 20, 51, .6); border-color: var(--ink); }
.ev--sel .ev__s { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.ev--dim { opacity: .28; }
.ev--flash { animation: flash 1.6s var(--ease-out) 2; }
.ev--compact .ev__s { display: none; }
@keyframes flash { 0%, 100% { box-shadow: inset 3px 0 0 var(--c); } 40% { box-shadow: inset 3px 0 0 var(--c), 0 0 0 4px color-mix(in srgb, var(--tick) 55%, transparent); } }

/* empty */
.empty { margin: clamp(24px, 6vh, 72px) auto; max-width: 30rem; text-align: center; display: grid; gap: .8rem; justify-items: center; padding: 0 16px; }
.empty__t { font-family: var(--f-time); font-size: 4rem; line-height: 1; color: var(--line-2); }
.empty h2 { font-size: 1.4rem; font-weight: 700; }
.empty p { color: var(--ink-2); }
.day-empty { position: absolute; left: 50%; top: 34%; transform: translateX(-50%); z-index: 3; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.3rem; text-align: center; display: grid; gap: .6rem; justify-items: center; box-shadow: var(--shadow-1); width: min(320px, 86%); }
.day-empty b { font-family: var(--f-display); font-size: 1.1rem; }
.day-empty p { font-size: .88rem; color: var(--ink-3); }

/* list (resultados de búsqueda y agenda bajo el mes) */
.list { padding: 8px clamp(16px, 2.4vw, 32px) 110px; max-width: 980px; }
.list__day { margin-top: 1.4rem; }
.list__dh {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: baseline; gap: .7rem; padding: .7rem 0 .5rem;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.list__dh b { font-family: var(--f-display); font-size: 1.12rem; letter-spacing: -.015em; }
.list__dh b::first-letter { text-transform: uppercase; }
.list__dh span { font-size: .8rem; color: var(--ink-3); }
.list__dh.is-today b { color: var(--pen); }
.li {
  display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) auto; align-items: center; gap: .9rem;
  padding: .75rem .4rem; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 12px; transition: background-color .15s;
}
@media (hover: hover) { .li:hover { background: var(--surface); } }
.li:focus-visible { outline: 3px solid var(--tick); outline-offset: -3px; }
.li__t { font-family: var(--f-time); font-weight: 700; font-size: 1.7rem; line-height: 1; }
.li__t small { display: block; font-family: var(--f-body); font-weight: 500; font-size: .72rem; color: var(--ink-3); margin-top: .25rem; }
.li__main { min-width: 0; display: grid; gap: .15rem; }
.li__n { font-weight: 700; display: flex; align-items: center; gap: .5rem; min-width: 0; }
.li__n span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li__s { font-size: .86rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li__side { display: flex; align-items: center; gap: .5rem; }
.li--past { opacity: .55; }
.li.is-sel { background: var(--surface); box-shadow: inset 3px 0 0 var(--ink); }

.wa-mini { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--wa); flex: none; text-decoration: none; }
.wa-mini .icon { width: 20px; height: 20px; }
.wa-mini:focus-visible { outline: 3px solid var(--tick); outline-offset: 2px; }

.pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .28rem .55rem; border-radius: 999px; white-space: nowrap; background: var(--paper-2); color: var(--ink-3); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--confirmada { background: var(--ok-soft); color: var(--ok); }
.pill--pendiente { background: var(--warn-soft); color: var(--warn); }
.pill--cancelada { background: var(--bad-soft); color: var(--bad); }
.pill--plain::before { display: none; }

/* ============================================================== MES */
.mes { padding: 14px clamp(12px, 2.4vw, 32px) 110px; display: grid; gap: 16px; align-content: start; }
.mes__cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-1); }
.mes__dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.mes__dow span { padding: .55rem .75rem; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.mes__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(116px, auto); }
.md {
  --c: var(--ink-3);
  position: relative; min-width: 0; padding: 6px 6px 8px; display: flex; flex-direction: column; gap: 3px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; transition: background-color .15s;
}
.md:nth-child(7n) { border-right: 0; }
.md:nth-last-child(-n+7) { border-bottom: 0; }
@media (hover: hover) { .md:hover { background: color-mix(in srgb, var(--pen) 4%, transparent); } }
.md--out { background: color-mix(in srgb, var(--paper) 55%, transparent); }
.md--out .md__n { opacity: .4; }
.md--closed { background-image: repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in srgb, var(--ink) 4%, transparent) 7px 8px); }
.md--sel { box-shadow: inset 0 0 0 2px var(--ink); z-index: 1; }
.md:focus-visible { outline: 3px solid var(--tick); outline-offset: -3px; }
.md__head { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.md__n { font-family: var(--f-time); font-weight: 700; font-size: 1.2rem; line-height: 1; min-width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; border: 0; background: none; color: var(--ink); padding: 0 4px; }
.md__n:hover { background: var(--paper-2); }
.md--today .md__n { background: var(--pen); color: #fff; }
.md__c { font-size: .7rem; color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.mev {
  --c: var(--ink-3); --bg: var(--surface-2);
  display: flex; align-items: baseline; gap: .35rem; width: 100%; min-width: 0; border: 0; border-radius: 6px; padding: 2px 6px;
  background: var(--bg); box-shadow: inset 2px 0 0 var(--c); font-size: .74rem; line-height: 1.35; text-align: left; color: var(--ink);
}
.mev b { font-family: var(--f-time); font-size: .84rem; flex: none; }
.mev span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mev--confirmada { --c: var(--ok); --bg: var(--ok-soft); }
.mev--pendiente { --c: var(--warn); --bg: var(--warn-soft); }
.mev:focus-visible { outline: 2px solid var(--tick); }
.md__more { border: 0; background: none; padding: 1px 6px; font-size: .72rem; font-weight: 700; color: var(--pen); text-align: left; }
.md__dots { display: none; }
.md__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.md__dots i.c { --c: var(--ok); }
.md__dots i.p { --c: var(--warn); }

.mes__agenda { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 4px 14px 8px; }
.mes__agenda .list__dh { position: static; background: none; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.mes__agenda .li:last-child { border-bottom: 0; }
.mes__agenda .li { padding-inline: .2rem; }
.mes__vacio { padding: 1rem .2rem 1.2rem; color: var(--ink-3); font-size: .92rem; }

/* ---------------------------------------------------------------- FAB */
.fab {
  display: none; position: fixed; z-index: 30; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 60px; height: 60px; border-radius: 20px; border: 0; background: var(--ink); color: var(--paper);
  box-shadow: 0 14px 30px -10px rgba(13, 20, 51, .55); place-items: center;
  transition: transform .2s var(--ease), background-color .2s;
}
.fab .icon { width: 26px; height: 26px; stroke-width: 2.2; }
.fab:active { transform: scale(.94); }
.fab:focus-visible { outline: 3px solid var(--tick); outline-offset: 3px; }

/* ---------------------------------------------------------------- drawer */
.scrim { position: fixed; inset: 0; z-index: 60; background: var(--scrim); opacity: 0; transition: opacity .25s var(--ease); touch-action: none; }
.scrim.is-open { opacity: 1; }
.drawer {
  position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(var(--drawer-w), 100%);
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; transform: translateX(104%); transition: transform .38s var(--ease-out);
  padding-top: env(safe-area-inset-top, 0px); will-change: transform;
}
.drawer.is-open { transform: none; }
.drawer__grab { display: none; }
.drawer__in { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; }
.dr__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: .6rem; padding: 14px 16px 12px 22px; background: var(--surface); border-bottom: 1px solid var(--line); }
.dr__head h2 { font-size: 1.05rem; font-weight: 700; margin-right: auto; letter-spacing: -.01em; }
.dr__body { padding: 20px 22px 24px; display: grid; gap: 1.2rem; align-content: start; }
.dr__foot {
  position: sticky; bottom: 0; margin-top: auto; display: flex; flex-wrap: wrap; gap: .6rem; padding: 14px 22px calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-top: 1px solid var(--line);
}
.dr__foot .btn--primary { flex: 1; }

/* detail */
.det__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.det__name { font-size: clamp(1.8rem, 4vw, 2.3rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.02; overflow-wrap: anywhere; }
.det__by { color: var(--ink-3); font-size: .9rem; margin-top: .3rem; }
.det__when { display: grid; grid-template-columns: auto 1fr; gap: .1rem 1rem; align-items: baseline; padding: 1rem 0; border-block: 1px solid var(--line); }
.det__range { font-family: var(--f-time); font-weight: 700; font-size: 2.6rem; line-height: 1; grid-row: span 2; }
.det__date { font-weight: 600; }
.det__date::first-letter { text-transform: uppercase; }
.det__dur { color: var(--ink-3); font-size: .88rem; }
.det__svc { display: grid; gap: .2rem; }
.det__svc b { font-size: 1.08rem; }
.det__svc small { color: var(--ink-3); }
.det__contact { display: grid; gap: .7rem; padding: 1rem; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.det__phone { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.det__phone b { font-size: 1.15rem; font-variant-numeric: tabular-nums; letter-spacing: .01em; user-select: all; }
.det__phone div { display: flex; gap: .3rem; }
.det__contact .btn--wa { width: 100%; min-height: 50px; font-size: 1rem; }
.det__nophone { color: var(--ink-3); font-size: .9rem; }
.det__rows { display: grid; gap: 0; }
.det__row { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.det__row span:first-child { color: var(--ink-3); }
.det__row span:last-child { text-align: right; font-weight: 500; }
.det__notes { background: var(--warn-soft); border-radius: 12px; padding: .8rem .9rem; font-size: .92rem; white-space: pre-wrap; }
.confirm { display: grid; gap: .9rem; padding: 1rem; border-radius: 16px; background: var(--bad-soft); }
.confirm b { color: var(--bad); }
.confirm--warn { background: var(--warn-soft); }
.confirm--warn b { color: var(--warn); }
.confirm ul { margin: 0; padding-left: 1.1rem; font-size: .9rem; }
.confirm__btns { display: flex; flex-wrap: wrap; gap: .5rem; }

/* toggle switch */
.switch { display: flex; align-items: center; gap: .8rem; cursor: pointer; font-size: .92rem; font-weight: 500; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__ui { width: 46px; height: 28px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; transition: background-color .2s; }
.switch__ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .22s var(--ease-out); }
.switch input:checked + .switch__ui { background: var(--wa); }
.switch input:checked + .switch__ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__ui { outline: 3px solid var(--tick); outline-offset: 2px; }
.switch input:disabled + .switch__ui { opacity: .45; }
.switch small { display: block; color: var(--ink-3); font-weight: 400; font-size: .8rem; }

/* create / edit form */
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .8rem; }
.stepper { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--surface); min-height: 48px; }
.stepper button { width: 44px; border: 0; background: var(--surface-2); color: var(--ink-2); font-size: 1.2rem; }
.stepper button:hover { background: var(--paper-2); }
.stepper input { border: 0 !important; border-radius: 0 !important; text-align: center; min-height: 0 !important; box-shadow: none !important; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.slots { display: grid; gap: .7rem; }
.slots__g { display: grid; gap: .4rem; }
.slots__g > span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.slots__list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  min-width: 4.3rem; min-height: 40px; padding: 0 .6rem; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface);
  font-family: var(--f-time); font-weight: 700; font-size: 1.15rem; color: var(--ink); transition: background-color .12s, border-color .12s, color .12s;
  touch-action: manipulation;
}
.chip:hover { border-color: var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip--busy { color: var(--ink-3); border-style: dashed; background: transparent; text-decoration: line-through; text-decoration-thickness: 1px; }
.chip--busy[aria-pressed="true"] { text-decoration: none; background: var(--warn); border-color: var(--warn); color: #fff; border-style: solid; }
.chip:focus-visible { outline: 3px solid var(--tick); outline-offset: 1px; }
.slots__none { font-size: .9rem; color: var(--ink-3); padding: .6rem .8rem; background: var(--surface-2); border-radius: 10px; }
.note { font-size: .86rem; padding: .7rem .85rem; border-radius: 12px; background: var(--tick-soft); color: var(--ink); display: flex; gap: .6rem; align-items: flex-start; }
.note .icon { color: var(--tick); margin-top: .1rem; }
.note--warn { background: var(--warn-soft); }
.note--warn .icon { color: var(--warn); }

/* ---------------------------------------------------------------- toasts */
.toasts { position: fixed; z-index: 90; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: grid; gap: 8px; width: min(480px, calc(100% - 32px)); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: .8rem; padding: .8rem .9rem .8rem 1rem;
  background: var(--ink); color: var(--paper); border-radius: 16px; box-shadow: var(--shadow-2); font-size: .92rem;
  animation: toast-in .4s var(--ease-out) both;
}
:root[data-theme="dark"] .toast { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-2); } }
.toast__ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--ok); color: #fff; }
.toast--warn .toast__ic { background: var(--warn); }
.toast--bad .toast__ic { background: var(--bad); }
.toast--info .toast__ic { background: var(--tick); }
.toast__ic .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.toast__txt { flex: 1; min-width: 0; line-height: 1.35; }
.toast__txt small { display: block; opacity: .72; font-size: .8rem; }
.toast__act { flex: none; color: inherit; font-weight: 700; font-size: .85rem; padding: .45rem .7rem; border-radius: 10px; background: rgba(255,255,255,.12); text-decoration: none; border: 0; }
.toast.is-out { animation: toast-out .25s var(--ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

.offline { position: fixed; z-index: 80; top: calc(10px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border-radius: 999px; background: var(--warn); color: #fff; font-size: .84rem; font-weight: 600; box-shadow: var(--shadow-2); width: max-content; max-width: calc(100% - 32px); }

/* ============================================================ responsive */
@media (max-width: 1240px) {
  .search { width: 190px; }
}
@media (max-width: 1080px) and (min-width: 901px) {
  .search { order: 10; width: 100%; }
}

@media (max-width: 900px) {
  :root { --ppm: 1.45px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side {
    position: fixed; z-index: 62; left: 0; top: 0; bottom: 0; width: min(330px, 88%);
    transform: translateX(-104%); transition: transform .35s var(--ease-out); box-shadow: var(--shadow-2); will-change: transform;
  }
  .side.is-open { transform: none; }
  .top { padding-top: calc(10px + env(safe-area-inset-top, 0px)); gap: 10px; }
  .top__row--mobile { display: flex; flex-wrap: nowrap; }
  .top__biz { display: flex; align-items: center; gap: .55rem; border: 0; background: none; padding: 4px 6px 4px 0; border-radius: 12px; min-width: 0; margin-right: auto; color: var(--ink); }
  .top__bizname { font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sync--mini { padding: 0; width: 36px; height: 36px; justify-content: center; border: 0; background: none; border-radius: 10px; }
  .top__refresh { display: none; }
  .side__new { display: none; }
  .search { display: none; order: 10; width: 100%; }
  .search.is-open { display: flex; }
  .fab { display: grid; }
  .strip {
    display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px;
  }
  .strip__d {
    border: 0; background: none; border-radius: 14px; padding: .4rem 0 .45rem; display: grid; justify-items: center; gap: 2px; color: var(--ink-2);
    font: inherit; position: relative; touch-action: manipulation;
  }
  .strip__d small { font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
  .strip__d b { font-family: var(--f-time); font-size: 1.45rem; line-height: 1; font-weight: 700; }
  .strip__d i { width: 5px; height: 5px; border-radius: 50%; background: var(--tick); opacity: 0; }
  .strip__d.has i { opacity: 1; }
  .strip__d.is-today b, .strip__d.is-today small { color: var(--pen); }
  .strip__d[aria-selected="true"] { background: var(--ink); color: var(--paper); }
  .strip__d[aria-selected="true"] small, .strip__d[aria-selected="true"] b { color: var(--paper); }
  .strip__d[aria-selected="true"] i { background: var(--paper); }
  .strip__d:focus-visible { outline: 2px solid var(--tick); outline-offset: 1px; }
  .top__title { font-size: 1.35rem; }
  .toasts { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }

  /* Semana en móvil: siete columnas estrechas, como un calendario de bolsillo */
  .tl--semana { grid-template-columns: 38px repeat(var(--cols), minmax(0, 1fr)); padding-right: 6px; }
  .tl--semana .tl__dh { padding: .45rem 0 .4rem; justify-items: center; text-align: center; border-left: 1px solid var(--line); }
  .tl--semana .tl__dh--corner { border-left: 0; }
  .tl--semana .tl__dh small { font-size: .58rem; letter-spacing: .04em; }
  .tl--semana .tl__dh b { font-size: 1.28rem; }
  .tl--semana .tl__dh em { width: 5px; height: 5px; border-radius: 50%; font-size: 0; margin-top: 3px; background: transparent; }
  .tl--semana .tl__dh.has em { background: var(--tick); }
  .tl--semana .tl__h { font-size: .78rem; right: 5px; }
  .tl--semana .ev { padding: .18rem .2rem .18rem .3rem; border-radius: 6px; font-size: .64rem; box-shadow: inset 2px 0 0 var(--c); }
  .tl--semana .ev__top { flex-direction: column; align-items: flex-start; gap: 0; }
  .tl--semana .ev__t { font-size: .76rem; line-height: 1.05; }
  .tl--semana .ev__n { font-weight: 600; font-size: .62rem; max-width: 100%; }
  .tl--semana .ev__s, .tl--semana .ev__o { display: none; }
  .tl--semana .tl__now { left: 0; }
  .tl--semana .tl__now::before { left: -4px; width: 8px; height: 8px; top: -5px; }
  .tl--semana .tl__slot:hover::after { display: none; }
}

@media (max-width: 700px) {
  .mes { padding-inline: 10px; gap: 12px; }
  .mes__cal { border-radius: 18px; }
  .mes__dow span { text-align: center; padding: .45rem 0; font-size: .6rem; letter-spacing: .06em; }
  .mes__grid { grid-auto-rows: 58px; }
  .md { padding: 5px 2px; align-items: center; gap: 4px; }
  .md__head { justify-content: center; }
  .md__n { font-size: 1.05rem; min-width: 32px; height: 32px; }
  .md__c, .mev, .md__more { display: none; }
  .md__dots { display: flex; gap: 3px; justify-content: center; }
  .md--sel { box-shadow: none; }
  .md--sel .md__n { background: var(--ink); color: var(--paper); }
  .md--sel.md--today .md__n { background: var(--pen); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
  .mes__agenda { padding: 2px 10px 6px; border-radius: 18px; }
}

@media (max-width: 640px) {
  .top__row:not(.top__row--mobile) { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .top__date { grid-column: 1 / -1; }
  .top__nav { grid-column: 1; }
  .seg { grid-column: 2; }
  .seg__b { padding: 0 .68rem; font-size: .84rem; }
  .tl { grid-template-columns: 46px repeat(var(--cols), minmax(0, 1fr)); }
  .tl.tl--semana { grid-template-columns: 34px repeat(var(--cols), minmax(0, 1fr)); padding-right: 4px; }
  .tl__h { right: 6px; font-size: .86rem; }
  .li { grid-template-columns: 3.9rem minmax(0, 1fr) auto; gap: .7rem; }
  .li__t { font-size: 1.5rem; }
  .li .pill { display: none; }
  .drawer {
    top: auto; left: 0; right: 0; width: 100%; max-height: calc(100% - 28px - env(safe-area-inset-top, 0px));
    border-left: 0; border-top: 1px solid var(--line); border-radius: 24px 24px 0 0;
    transform: translateY(104%); padding-top: 0;
  }
  .drawer.is-open { transform: none; }
  .drawer__grab { display: block; width: 44px; height: 5px; border-radius: 999px; background: var(--line-2); margin: 8px auto 0; flex: none; }
  .dr__head { padding-left: 18px; border-radius: 24px 24px 0 0; }
  .dr__body { padding: 16px 18px 22px; }
  .dr__foot { padding-inline: 18px; }
  .row2 { grid-template-columns: 1fr; }
  /* 16px en los campos evita el zoom automático de iOS al enfocarlos */
  .field input:not([type="checkbox"]), .field select, .field textarea { font-size: 16px; }
}
@media (max-width: 360px) {
  .seg__b { padding: 0 .5rem; }
  .top__nav { gap: 4px; }
}

/* ajustes finales */
.confirm .btn--danger { --btn-bg: var(--bad); --btn-fg: #fff; --btn-bd: var(--bad); }
.confirm .btn--danger:hover { filter: brightness(1.08); }
@media (min-width: 901px) {
  .toasts { left: calc(var(--side-w) + 24px); transform: none; }
}

/* ------------------------------------------- v4.1 · modo supervisión */
.sup-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: .5rem 1rem;
  background: var(--warn-soft); color: var(--warn);
  border-bottom: 1px solid color-mix(in srgb, var(--warn) 35%, transparent);
  font-size: .86rem; font-weight: 600; line-height: 1.35;
}
.sup-banner .icon { flex: none; }
.sup-banner span { flex: 1; min-width: 12rem; }
.sup-banner b { color: var(--ink); }
.sup-banner .linkbtn { color: inherit; flex: none; }
/* Igual que el banner de demo: si está visible, la cabecera no dobla el hueco */
.sup-banner:not([hidden]) + .demo-banner[hidden] + .top { padding-top: 14px; }

/* ---------------- v4.3 · enlace a la explicación (portada) desde el panel */
.help-link { display: flex; align-items: flex-start; gap: .7rem; padding: .8rem .9rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.help-link:hover { border-color: var(--pen); }
.help-link:focus-visible { outline: 3px solid var(--tick); outline-offset: 2px; }
.help-link .icon { width: 1.4em; height: 1.4em; color: var(--pen); flex: none; margin-top: .05rem; }
.help-link b { display: block; font-size: .92rem; }
.help-link small { display: block; font-size: .8rem; color: var(--ink-3); line-height: 1.35; margin-top: .1rem; }
.login .help-link { margin-top: 1rem; }
.help-link--side { background: transparent; }
