/* landing-tour.css — product tour (navigator rail + app window mockup + callouts).
   Moved out of landing.ejs unchanged in behaviour. .mk-* = tour shell, .mka-* = app chrome inside
   the mockup, .mkv-* = view content. Light surfaces only; uses the app theme variables (--color-*). */

/* --- product tour: navigator rail + app mockup stage + callouts --- */
.mk-tour { padding: 52px 0 72px; overflow-x: clip; /* pulsing dot rings must not widen the page */ }
.mk-tour-in { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.mk-tour-head { text-align: center; margin-bottom: 26px; }
.mk-tour-head .ld-lede { margin: .6rem auto 0; }
.mk-tour-grid { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 20px; align-items: start; }
.mk-rail-wrap { min-width: 0; }
.mk-rail-cue { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 11.5px; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase; color: var(--color-primary); }
.mk-rail-cue svg { width: 14px; height: 14px; animation: mkNudge 1.8s ease-in-out infinite; }
@keyframes mkNudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
.mk-rail { position: relative; display: grid; gap: 6px; }
.mk-tab { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; font: inherit; text-align: left; cursor: pointer;
  -webkit-appearance: none; appearance: none; color: var(--color-text); background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: 12px;
  transition: transform .18s cubic-bezier(0.4,0,0.2,1), border-color .18s, background-color .18s, box-shadow .18s; }
.mk-tab:hover { transform: translateX(3px); border-color: rgba(11,126,115,.5); box-shadow: var(--shadow-card); }
.mk-tab:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.mk-tab-ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: var(--color-primary-soft); color: var(--color-primary); transition: background-color .18s, color .18s; }
.mk-tab-ic svg { width: 17px; height: 17px; }
.mk-tab-label { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.mk-tab-title { font-size: 13.5px; font-weight: 650; line-height: 1.25; }
.mk-tab-soon { font-size: 9.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; line-height: 1.5;
  color: #92400E; background: var(--color-warning-soft); border-radius: 999px; padding: 0 7px; }
.mk-tab-go { flex: none; width: 16px; height: 16px; color: var(--color-muted); opacity: .6; transition: transform .18s, opacity .18s, color .18s; }
.mk-tab:hover .mk-tab-go { opacity: 1; transform: translateX(2px); }
.mk-tab[aria-selected="true"] { background: var(--color-primary-soft); border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(11,126,115,.14); }
.mk-tab[aria-selected="true"] .mk-tab-ic { background: var(--color-primary); color: var(--color-primary-text); }
.mk-tab[aria-selected="true"] .mk-tab-go { color: var(--color-primary); opacity: 1; }
.mk-rail-desc { margin-top: 12px; min-height: 4.8em; font-size: 13px; line-height: 1.55; color: var(--color-text-subtle); }

/* stage: the app window + a gutter on the right where the callout bubbles live */
.mk-stagewrap { position: relative; min-width: 0; padding-right: 230px; }
.mk-demo-note { margin-top: 10px; font-size: 12px; color: var(--color-muted); text-align: center; }
.mk-lines, .mk-dots { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mk-lines { overflow: visible; }
.mk-lines path { fill: none; stroke: var(--color-primary); stroke-opacity: .6; stroke-width: 1.25; stroke-dasharray: 3 3;
  animation: mkFade .3s ease-out both; animation-delay: var(--d, 0s); }
@keyframes mkFade { from { opacity: 0; } to { opacity: 1; } }
.mkd { position: absolute; display: grid; place-items: center; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%;
  background: var(--color-primary); color: #fff; font-size: 11px; font-weight: 800; line-height: 1;
  box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(30,42,54,.3); animation: mkPop .26s cubic-bezier(.16,1,.3,1) both; animation-delay: var(--d, 0s); }
.mkd::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--color-primary);
  animation: mkRing 2.4s ease-out infinite; animation-delay: calc(var(--d, 0s) + .4s); }
@keyframes mkRing { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes mkPop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.mk-bubbles { position: absolute; top: 0; right: 0; bottom: 0; width: 214px; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.mkb { position: absolute; left: 0; right: 0; display: flex; gap: 8px; align-items: flex-start; padding: 9px 11px;
  font-size: 12.5px; line-height: 1.4; color: var(--color-text); background: var(--color-surface);
  border: 1px solid var(--color-border); border-left: 3px solid var(--color-primary); border-radius: 12px;
  box-shadow: var(--shadow-floating); pointer-events: auto;
  animation: mkSlide .32s cubic-bezier(.16,1,.3,1) both; animation-delay: var(--d, 0s); }
@keyframes mkSlide { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.mkb-n { flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%;
  background: var(--color-primary); color: #fff; font-size: 10.5px; font-weight: 800; }
.mk-bubbles:has(.mkb:hover) .mkb:not(:hover) { opacity: .65; }
.mk-notes { display: none; margin: 14px 0 0; padding: 0; list-style: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mk-notes li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; font-size: 13.5px; line-height: 1.45;
  color: var(--color-text); background: var(--color-surface); border: 1px solid var(--color-border-soft); border-radius: 12px; }
.mk-notes .mkb-n { width: 20px; height: 20px; font-size: 11px; }

/* below 1180px: navigator becomes a snap-scrolling chip row, callouts become dots + a list */
@media (max-width: 1179px) {
  .mk-tour-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .mk-rail { display: flex; gap: 8px; overflow-x: auto; margin: 0 -24px; padding: 3px 24px 8px;
    scroll-snap-type: x proximity; scroll-padding: 0 24px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .mk-tab { width: auto; flex: none; scroll-snap-align: start; padding: 6px 12px 6px 7px; }
  .mk-tab:hover { transform: translateY(-1px); }
  .mk-tab-go { display: none; }
  .mk-tab-title { white-space: nowrap; }
  .mk-rail-desc { min-height: 0; margin-top: 2px; }
  .mk-stagewrap { padding-right: 0; }
  .mk-bubbles, .mk-lines { display: none; }
  .mk-notes { display: grid; }
}
@media (max-width: 640px) {
  .mk-tour { padding: 36px 0 52px; }
  .mk-tour-in { padding: 0 16px; }
  .mk-rail { margin: 0 -16px; padding: 3px 16px 8px; scroll-padding: 0 16px; }
  .mk-notes { grid-template-columns: minmax(0, 1fr); }
}


/* --- browser frame around the app mockup --- */
.mk-window { margin: 0; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: 14px; overflow: hidden; box-shadow: 0 24px 56px -16px rgba(30,42,54,.25);
  container: mkw / inline-size; }
.mk-window-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px;
  border-bottom: 1px solid var(--color-border-soft); background: var(--color-surface-soft); }
.mk-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--color-border); }
.mk-window-bar span { margin-left: 10px; font-size: 12px; color: var(--color-text-subtle); }

/* --- app mockup (HTML/CSS panes from _landing_mockups.ejs) ---
   .mka-* = app chrome (nav), .mkv-* = view content. Reuses the app's own
   .status-badge--* and .timeline-block--* classes from app.css. */
.mk-app { background: var(--color-bg); color: var(--color-text); font-size: 13px; line-height: 1.4; text-align: left; }
.mka-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mka-ic { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mkv-ic-sm { width: 13px; height: 13px; }
.mka-nav { display: flex; align-items: center; gap: 10px; padding: 10px 18px; background: var(--color-surface);
  border-bottom: 1px solid var(--color-border); }
.mka-logo { display: inline-flex; align-items: center; gap: 6px; color: var(--color-primary); }
.mka-logo svg { width: 17px; height: 17px; }
.mka-logo b { color: var(--color-text); font-weight: 700; letter-spacing: -.01em; font-size: 14px; }
.mka-sep { width: 1px; height: 20px; background: var(--color-border); }
.mka-chips { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; overflow: hidden; }
.mka-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px; border-radius: var(--radius-btn);
  font-size: 12.5px; font-weight: 500; color: var(--color-text-subtle); white-space: nowrap;
  transition: background-color .18s cubic-bezier(0.4,0,0.2,1), color .18s cubic-bezier(0.4,0,0.2,1); }
.mka-chip > span { display: none; }
.mka-chip--wide > span { display: none; }
.mka-chip--wide[data-active="true"] > span { display: inline; }
.mka-chip[data-active="true"] { background: var(--color-primary); color: var(--color-primary-text); font-weight: 600; }
.mka-right { display: flex; align-items: center; gap: 8px; flex: none; }
.mka-search { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--color-border);
  border-radius: var(--radius-btn); color: var(--color-text-subtle); font-size: 11.5px; }
.mka-newbtn { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: var(--radius-btn);
  background: var(--color-primary); color: var(--color-primary-text); font-weight: 600; font-size: 12.5px; }
.mka-user { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; font-size: 12.5px; }
.mka-user i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-style: normal;
  background: var(--color-primary-soft); color: var(--color-primary); font-size: 11px; font-weight: 700; }

/* All panes share ONE grid cell => frame height = tallest pane, so swapping never shifts layout. */
.mkv-stage { display: grid; padding: 20px 26px 24px; }
.mkv-pane { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s cubic-bezier(0.4,0,0.2,1), transform .22s cubic-bezier(0.4,0,0.2,1), visibility 0s linear .22s; }
.mkv-pane[data-active="true"] { opacity: 1; visibility: visible; transform: none;
  transition: opacity .22s cubic-bezier(0.4,0,0.2,1), transform .22s cubic-bezier(0.4,0,0.2,1), visibility 0s; }

.mkv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.mkv-head-right { display: flex; align-items: center; gap: 8px; }
.mkv-title { font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--color-text); }
.mkv-titlebar { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mkv-crumbs { font-size: 12px; color: var(--color-text-subtle); margin-bottom: 4px; }
.mkv-crumbs span { margin: 0 3px; opacity: .6; }
.mkv-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm); padding: 14px 16px; min-width: 0; }
.mkv-card.mkv-table-wrap { padding: 0; overflow-x: auto; }
.mkv-card-title { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--color-text); display: flex; align-items: center; gap: 6px; }
.mkv-card-title em { font-style: normal; font-weight: 600; font-size: 11px; color: var(--color-text-subtle);
  background: var(--color-surface-soft); border-radius: 999px; padding: 0 7px; }
.mkv-muted { color: var(--color-text-subtle); }
.mkv-strong { color: var(--color-text); font-weight: 500; }

/* segmented control (calendar view switch; also the Lista/Calendario toggle) */
.mkv-seg { display: inline-flex; padding: 2px; gap: 2px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-btn); }
.mkv-seg button, .mkv-seg > span { font: inherit; font-size: 12px; font-weight: 500; padding: 4px 11px; border-radius: 8px;
  color: var(--color-text-subtle); background: transparent; border: 0; cursor: pointer; }
.mkv-seg > span { cursor: default; }
.mkv-seg button:hover { color: var(--color-text); background: var(--color-surface-soft); }
.mkv-seg button[aria-pressed="true"], .mkv-seg > span.is-on { background: var(--color-primary); color: var(--color-primary-text); font-weight: 600; }
.mkv-seg button:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.mkv-select { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; font-size: 12px; color: var(--color-text-subtle);
  background: var(--color-surface-soft); border: 1px solid var(--color-border); border-radius: var(--radius-btn); }
.mkv-search { padding: 8px 12px; margin-bottom: 10px; font-size: 12.5px; color: var(--color-muted);
  background: var(--color-surface-soft); border: 1px solid var(--color-border-soft); border-radius: var(--radius-btn); }
.mkv-btn { display: inline-flex; align-items: center; padding: 6px 13px; border-radius: var(--radius-btn); font-size: 12.5px; font-weight: 600; }
.mkv-btn--primary { background: var(--color-primary); color: var(--color-primary-text); }
.mkv-btn--ghost { background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); font-weight: 500; }

/* tables */
.mkv-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mkv-table th { text-align: left; font-weight: 500; color: var(--color-text-subtle); padding: 9px 14px; border-bottom: 1px solid var(--color-border); white-space: nowrap; }
.mkv-table td { padding: 8px 14px; border-bottom: 1px solid var(--color-border-soft); color: var(--color-text-subtle); white-space: nowrap; }
.mkv-table tr:last-child td { border-bottom: 0; }
.mkv-date { color: var(--color-primary) !important; font-weight: 500; }
.mkv-table .status-badge { font-size: 11px; }

/* calendario (week) */
.mkv-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.mkv-legend--states { gap: 12px; margin-bottom: 10px; }
.mkv-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; font-size: 12px; color: var(--color-text);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 999px; }
.mkv-pill i { width: 8px; height: 8px; border-radius: 50%; }
.mkv-pill--on { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-primary-text); font-weight: 600; }
.mkv-key { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--color-text-subtle); }
.mkv-key i { width: 12px; height: 12px; border-radius: 4px; border-left: 4px solid; box-shadow: inset 0 0 0 1px var(--color-border-soft); }
.mkv-key--pending i { border-color: var(--color-warning); background: var(--color-warning-soft); }
.mkv-key--confirmed i { border-color: var(--color-success); background: var(--color-success-soft); }
.mkv-key--completed i { border-color: var(--color-primary); background: var(--color-primary-soft); }
.mkv-key--cancelled i { border-color: var(--color-muted); background: var(--color-surface-soft); }
.mkv-key--no_show i { border-color: var(--color-danger); background: var(--color-danger-soft); }
.mkv-week { display: grid; grid-template-columns: 46px repeat(5, minmax(0, 1fr)); padding: 0; overflow: hidden; }
.mkv-week-corner { display: block; height: 30px; }
.mkv-week-hours span:not(.mkv-week-corner) { display: block; font-size: 10.5px; color: var(--color-muted); text-align: right; padding-right: 8px; transform: translateY(-7px); }
.mkv-week-dayname { display: flex; align-items: center; justify-content: center; height: 30px; font-size: 11.5px; font-weight: 600;
  color: var(--color-text-subtle); border-bottom: 1px solid var(--color-border); }
.mkv-week-day { border-left: 1px solid var(--color-border-soft); min-width: 0; }
.mkv-week-col { position: relative;
  background-image: repeating-linear-gradient(to bottom, var(--color-border-soft) 0, var(--color-border-soft) 1px, transparent 1px, transparent var(--hour-px)); }
.mkv-appt { position: absolute; left: 3px; right: 3px; overflow: hidden; border-left: 3px solid; border-radius: 8px; padding: 3px 6px; }
.mkv-appt span { display: block; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkv-appt-time { font-size: 10.5px; font-weight: 600; color: var(--color-muted); }
.mkv-appt-name { font-size: 12px; font-weight: 500; color: var(--color-text); }
.mkv-appt-reason { font-size: 10.5px; color: var(--color-muted); }

/* two-column layouts + tiles (pacientes, recordatorios, usuarios) */
.mkv-dl > div { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; border-bottom: 1px solid var(--color-border-soft); font-size: 12.5px; }
.mkv-dl > div:last-child { border-bottom: 0; }
.mkv-dl dt { color: var(--color-text-subtle); }
.mkv-dl dd { color: var(--color-text); text-align: right; }
.mkv-ok { display: inline-flex; align-items: center; gap: 4px; color: var(--color-success); font-weight: 500; }
.mkv-tiles { display: grid; gap: 8px; }
.mkv-tiles--3 { grid-template-columns: repeat(3, 1fr); }
.mkv-tiles--4 { grid-template-columns: repeat(4, 1fr); margin-bottom: 12px; }
.mkv-tile { background: var(--color-surface); border: 1px solid var(--color-border-soft); border-radius: var(--radius-btn); padding: 8px 10px; text-align: center; min-width: 0; }
.mkv-tile small { display: block; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-subtle); }
.mkv-tile b { display: block; font-size: 15px; font-weight: 700; color: var(--color-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mkv-tile b.is-ok { color: var(--color-success); }
.mkv-tile--warn { background: var(--color-warning-soft); border-color: rgba(217,119,6,.35); }
.mkv-tile--warn b { color: var(--color-warning); }

/* tratamientos */
.mkv-st-progress { background: var(--color-primary-soft); color: var(--color-primary); }
.mkv-sess { font-size: 12.5px; font-weight: 600; color: var(--color-primary); background: var(--color-primary-soft); padding: 4px 11px; border-radius: 999px; }
.mkv-table--sess td { padding-top: 12px; padding-bottom: 12px; }
.mkv-pay { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--color-text-subtle); }
.mkv-pay.is-ok { color: var(--color-success); font-weight: 500; }
.mkv-pay.is-warn { color: var(--color-warning); font-weight: 500; }
.mkv-note { margin-top: 10px; font-size: 12px; color: var(--color-text-subtle); }

.mkv-steps { display: flex; gap: 4px; margin-bottom: 12px; }
.mkv-steps i { flex: 1; height: 6px; border-radius: 999px; background: var(--color-border); }
.mkv-steps i.is-done { background: var(--color-primary); }
.mkv-steps i.is-now { background: linear-gradient(90deg, var(--color-primary) 45%, var(--color-border) 45%); }

/* odontograma */
.mkv-legend--odo { margin-bottom: 10px; }
.mkv-odo { padding: 12px 14px 10px; margin-bottom: 12px; }
.mkv-odo-row { display: flex; align-items: flex-start; gap: 3px; }
.mkv-odo-mid { flex: none; width: 1px; align-self: stretch; background: var(--color-border); margin: 0 5px; }
.mkv-odo-line { display: flex; justify-content: center; margin: 8px 0; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-muted); }
.mkv-tooth { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mkv-odo-row--up .mkv-tooth { flex-direction: column-reverse; }
.mkv-tooth svg { width: 100%; max-width: 44px; height: auto; display: block; }
.mkv-tooth path, .mkv-tooth circle { stroke: #8C8368; stroke-width: 1.1; stroke-linejoin: round; }
.mkv-tooth b { font-size: 10.5px; font-weight: 600; color: var(--color-text-subtle); font-variant-numeric: tabular-nums; }
.mkv-tiles--odo .mkv-tile b { font-size: 18px; }
.mkv-tiles--odo .mkv-tile { padding: 6px 10px; }

/* settings tabs + recordatorios */
.mkv-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--color-border); margin-bottom: 12px; overflow: hidden; }
.mkv-tabs span { padding: 7px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 12.5px; font-weight: 500; color: var(--color-text-subtle); white-space: nowrap; }
.mkv-tabs span.is-on { border-color: var(--color-primary); color: var(--color-primary); }
.mkv-form { display: grid; gap: 12px; }
.mkv-form-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mkv-form-head p { font-size: 12px; color: var(--color-text-subtle); }
.mkv-form-head .mkv-card-title { margin-bottom: 1px; }
.mkv-toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; flex: none; }
.mkv-switch { position: relative; width: 30px; height: 17px; border-radius: 999px; background: var(--color-primary); }
.mkv-switch::after { content: ''; position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; }
.mkv-field label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 4px; }
.mkv-field small { display: block; margin-top: 4px; font-size: 11px; color: var(--color-muted); }
.mkv-input { display: block; padding: 7px 11px; font-size: 12.5px; color: var(--color-text); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-btn); }
.mkv-input--area { line-height: 1.5; min-height: 54px; }
.mkv-vars code { font-family: inherit; font-size: 10.5px; background: var(--color-surface-soft); padding: 0 5px; border-radius: 4px; color: var(--color-text-subtle); }
.mkv-preview { display: grid; gap: 8px; align-content: start; padding: 14px; background: var(--color-surface-soft); border: 1px solid var(--color-border-soft); border-radius: var(--radius-card); }
.mkv-preview-label { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-subtle); }
.mkv-bubble { padding: 10px 12px 6px; font-size: 12.5px; line-height: 1.5; color: var(--color-text); background: var(--color-success-soft);
  border-radius: 12px 12px 12px 3px; }

/* usuarios y roles */
.mkv-table--roles th { text-align: center; }
.mkv-table--roles th:first-child { text-align: left; }
.mkv-table--roles td { text-align: center; padding: 7px 8px; white-space: normal; }
.mkv-table--roles td:first-child { text-align: left; padding-left: 14px; }
.mkv-lvl { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.35; }
.mkv-lvl--full { background: var(--color-primary-soft); color: var(--color-primary); }
.mkv-lvl--edit { background: var(--color-info-soft); color: var(--color-info); }
.mkv-lvl--view { background: var(--color-surface-soft); color: var(--color-text-subtle); }
.mkv-lvl--none { color: var(--color-muted); font-weight: 500; }

.mkv-gap { margin-top: 10px; }
.mkv-dl--2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.mkv-dl--2 > div:nth-last-child(-n+2) { border-bottom: 0; }
.mkv-files { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mkv-files li { display: flex; align-items: center; gap: 7px; padding: 5px 11px; font-size: 12.5px; color: var(--color-text);
  background: var(--color-surface-soft); border: 1px solid var(--color-border-soft); border-radius: 10px; }
.mkv-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; align-items: start; }
.mkv-vars { display: block; margin-top: 12px; }
.mkv-when { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: baseline; padding: 10px 12px;
  background: var(--color-surface-soft); border: 1px solid var(--color-border-soft); border-radius: var(--radius-btn); }
.mkv-when small { font-size: 11px; color: var(--color-text-subtle); }
.mkv-when b { font-size: 12.5px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.mkv-team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.mkv-team li.mkv-card { display: flex; align-items: center; gap: 9px; padding: 8px 10px; }
.mkv-team i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-style: normal; font-size: 11px; font-weight: 700;
  background: var(--color-primary-soft); color: var(--color-primary); }
.mkv-team span { min-width: 0; }
.mkv-team b { display: block; font-size: 12.5px; font-weight: 600; color: var(--color-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkv-team small { display: block; font-size: 11px; color: var(--color-text-subtle); }

/* dictado por voz — PRÓXIMAMENTE (prototype only navigates; odontogram dictation is an idea) */
.mkv-soon { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; line-height: 1.6;
  color: #92400E; background: var(--color-warning-soft); border-radius: 999px; padding: 0 9px; white-space: nowrap; }
.mkv-voice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 10px; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-card); box-shadow: var(--shadow-floating); }
.mkv-voice b { display: block; font-size: 13.5px; font-weight: 700; color: var(--color-text); }
.mkv-voice small { display: block; font-size: 12px; color: var(--color-text-subtle); }
.mkv-voice-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--color-primary-soft); color: var(--color-primary); }
.mkv-voice-ic .mka-ic { width: 17px; height: 17px; }
.mkv-wave { margin-left: auto; display: flex; align-items: center; gap: 3px; height: 22px; }
.mkv-wave i { width: 3px; height: 100%; border-radius: 2px; background: var(--color-primary); transform: scaleY(.3);
  animation: mkWave 1s ease-in-out infinite; }
.mkv-wave i:nth-child(2) { animation-delay: .15s; } .mkv-wave i:nth-child(3) { animation-delay: .3s; }
.mkv-wave i:nth-child(4) { animation-delay: .45s; } .mkv-wave i:nth-child(5) { animation-delay: .6s; }
@keyframes mkWave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.mkv-voice--review { justify-content: space-between; align-items: flex-end; }
.mkv-voice-body { display: grid; gap: 2px; min-width: 0; }
.mkv-heard { font-size: 13px; color: var(--color-text-subtle); }
.mkv-action { font-size: 15px; font-weight: 700; color: var(--color-text); }
.mkv-voice-btns { display: flex; gap: 8px; flex: none; }
.mkv-btn kbd { margin-left: 6px; padding: 0 5px; font: inherit; font-size: 10.5px; border: 1px solid currentColor; border-radius: 5px; opacity: .7; }
.mkv-idea { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; background: var(--color-surface-soft);
  border: 1.5px dashed var(--color-border); border-radius: var(--radius-card); }
.mkv-idea b { display: block; font-size: 13.5px; font-weight: 700; }
.mkv-idea small { display: block; margin-top: 2px; font-size: 12px; color: var(--color-text-subtle); }
.mkv-idea .mkv-heard { display: block; }
.mka-mic { display: none; order: 9; align-items: center; height: 30px; padding: 0 9px; border-radius: var(--radius-btn);
  background: var(--color-primary-soft); color: var(--color-primary); box-shadow: 0 0 0 2px rgba(11,126,115,.28); }
.mk-app[data-view="voz"] .mka-mic { display: inline-flex; }
.mk-app[data-view="voz"] .mka-newbtn { display: none; }

/* window width decides density (container queries; the page viewport does not matter here) */
@container mkw (min-width: 940px) {
  .mka-chip--wide > span { display: inline; }
}
@container mkw (max-width: 860px) {
  .mkv-hide-md { display: none !important; }
}
@container mkw (max-width: 760px) {
  .mka-search span { display: none; }
  .mkv-stage { padding: 16px 14px 18px; }
}
@container mkw (max-width: 640px) {
  .mka-nav { padding: 8px 12px; gap: 8px; }
  .mka-logo b, .mka-sep, .mka-newbtn span, .mka-user, .mka-search { display: none; }
  .mka-newbtn { padding: 0 8px; }
  .mka-chip { padding: 0 9px; }
  .mka-chip--opt { display: none; }
  .mkv-hide-sm, .mkv-hide-xs { display: none !important; }
  .mkv-title { font-size: 16px; }
  .mkv-table th, .mkv-table td { padding: 8px 8px; }
  .mkv-table--sess th:first-child, .mkv-table--sess td:first-child { display: none; }
  .mkv-table--sess td { white-space: normal; padding-top: 9px; padding-bottom: 9px; }
  .mkv-pay { font-size: 11px; }
  .mkv-week { grid-template-columns: 34px repeat(3, minmax(0, 1fr)); }
  .mkv-week-day:nth-of-type(-n+3) { display: none; } /* phones: show Mié-Vie so the right-edge anchors stay visible */
  .mkv-week-hours span:not(.mkv-week-corner) { padding-right: 5px; font-size: 10px; }
  .mkv-appt { left: 2px; right: 2px; padding: 3px 4px; }
  .mkv-appt-reason { display: none; }
  .mkv-dl--2, .mkv-form-grid { grid-template-columns: 1fr; }
  .mkv-dl--2 > div:nth-last-child(2) { border-bottom: 1px solid var(--color-border-soft); }
  .mkv-tiles--4 { grid-template-columns: repeat(2, 1fr); }
  .mkv-tile b { font-size: 13.5px; }
  .mkv-tile small { font-size: 9.5px; letter-spacing: 0; }
  .mkv-tiles--odo { grid-template-columns: repeat(4, 1fr); }
  .mkv-odo { padding: 10px 8px 8px; }
  .mkv-odo-row { gap: 1px; }
  .mkv-odo-mid { margin: 0 3px; }
  .mkv-tooth b { font-size: 9.5px; }
  .mkv-tabs span { padding: 7px 9px; font-size: 12px; }
  .mkv-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mkv-table--roles th, .mkv-table--roles td { padding: 6px 3px; font-size: 10.5px; }
  .mkv-table--roles td:first-child { padding-left: 8px; }
  .mkv-lvl { padding: 1px 5px; font-size: 10px; }
  .mkv-voice { padding: 10px 12px; }
  .mkv-voice--review { flex-direction: column; align-items: stretch; }
  .mkv-voice-btns { justify-content: flex-end; }
  .mkv-idea { flex-direction: column; gap: 6px; }
  .mkv-wave { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mkv-pane, .mkv-pane[data-active="true"], .mka-chip, .mk-tab, .mk-tab-ic, .mk-tab-go { transition: none; }
  .mkd, .mkd::after, .mkb, .mk-lines path, .mk-rail-cue svg, .mkv-wave i { animation: none !important; }
  .mkv-wave i { transform: scaleY(.7); }
  .mkd::after { display: none; }
}

