/* Chamba — estilos. Identidad «Impulso» (v1.2): violeta como color de marca, lima para
   la acción principal y los destacados, tinta casi negra para el texto. Pensado primero para móvil.
   Fuentes alojadas en el propio servidor (licencia OFL): no se envía la IP de los visitantes a terceros. */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/space-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/dm-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/dm-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/dm-sans-latin-700-normal.woff2') format('woff2'); }
:root {
  --bg: #F6F4FE;
  --surface: #FFFFFF;
  --ink: #17112E;
  --ink-soft: #4B4566;
  --line: #DDD6F5;
  --violet: #6C2BD9;
  --violet-dark: #5B21B6;
  --violet-tint: #EFE9FD;
  --lime: #C8F25A;
  --lime-deep: #B2DD3E;
  --teal: #10B9A7;
  --wa: #128048;
  --danger: #B3261E;
  /* Alias de versiones anteriores */
  --forest: var(--violet);
  --forest-dark: var(--violet-dark);
  --araguaney: var(--lime);
  --araguaney-deep: var(--lime-deep);
  --radius-s: 10px;
  --radius-m: 18px;
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --wrap: 980px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
}
img { max-width: 100%; }
a { color: var(--violet-dark); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- cabecera ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand {
  font: 700 1.5rem/1 var(--font-display);
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.brand-logo { width: 32px; height: 32px; flex: none; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.header-actions .btn { white-space: nowrap; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 2px solid transparent; border-radius: var(--radius-s);
  font: 600 0.95rem/1 var(--font-body);
  text-decoration: none; cursor: pointer;
  background: var(--forest); color: #fff;
}
.btn:hover { background: var(--forest-dark); }
.btn-ghost { background: transparent; color: var(--violet-dark); border-color: var(--line); }
.btn-ghost:hover { background: var(--violet-tint); }
.btn-yellow { background: var(--araguaney); color: var(--ink); }
.btn-yellow:hover { background: var(--araguaney-deep); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #0E6A3B; }
.btn-danger { background: transparent; color: var(--danger); border-color: #E7C3C0; }
.btn-danger:hover { background: #FBEDEC; }
.btn-small { min-height: 36px; padding: 0 12px; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- portada ---------- */
.hero { background: var(--violet); color: #FFFFFF; padding: 36px 0 32px; }
.hero h1 { font-size: clamp(2rem, 6.5vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; max-width: 16ch; }
.hero p { margin-top: 10px; font-size: 1.075rem; max-width: 46ch; color: #FFFFFF; }
.search {
  margin-top: 24px;
  display: grid; gap: 8px;
  grid-template-columns: 1fr;
  background: var(--surface);
  padding: 8px; border-radius: var(--radius-m);
  box-shadow: 0 10px 30px rgba(23, 17, 46, 0.25);
}
@media (min-width: 720px) {
  .search { grid-template-columns: 1fr 200px 200px auto; }
}
.search input, .search select { border: 1px solid var(--line); }
.search .btn { background: var(--lime); color: var(--ink); }
.search .btn:hover { background: var(--lime-deep); }

/* ---------- formularios ---------- */
label { display: block; font-weight: 600; font-size: 0.925rem; margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; }
input, select, textarea {
  width: 100%; min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #C9BFEA; border-radius: var(--radius-s);
  background: #fff; color: var(--ink);
  font: inherit;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px #DCCDFA; }
.field { margin-bottom: 16px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-error {
  display: none; margin-bottom: 16px; padding: 10px 12px;
  background: #FBEDEC; color: var(--danger); border-radius: var(--radius-s); font-size: 0.925rem;
}
.form-error.show { display: block; }

/* ---------- listado de ofertas ---------- */
.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 28px 0 8px; }
.results-head h2 { font-size: 1.25rem; }
.results-count { color: var(--ink-soft); font-size: 0.925rem; }

.offer-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
.offer-item + .offer-item { border-top: 1px solid var(--line); }
.offer-link {
  display: grid; gap: 4px;
  padding: 16px 18px;
  color: inherit; text-decoration: none;
}
.offer-link:hover { background: #FAF8FF; }
.offer-link:hover .offer-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.offer-title { font: 700 1.125rem/1.3 var(--font-display); color: var(--ink); }
.offer-company { color: var(--violet-dark); font-weight: 700; font-size: 0.95rem; }
.offer-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-soft); font-size: 0.875rem; margin-top: 2px; }
.offer-facts span { display: inline-flex; align-items: center; gap: 5px; }
.offer-facts svg { width: 15px; height: 15px; flex: none; }
.offer-salary { color: var(--ink); font-weight: 700; background: var(--lime); border-radius: 999px; padding: 1px 10px; }

.empty {
  padding: 40px 20px; text-align: center; color: var(--ink-soft);
  background: var(--surface); border: 1px dashed #C9BFEA; border-radius: var(--radius-m);
}
.empty strong { display: block; color: var(--ink); font: 700 1.1rem var(--font-display); margin-bottom: 6px; }

.pager { display: flex; justify-content: center; gap: 8px; margin: 20px 0 8px; }

.employer-strip {
  margin: 40px 0; padding: 22px;
  background: var(--ink); color: #E7E3F5; border-radius: var(--radius-m);
  display: grid; gap: 14px; align-items: center;
}
.employer-strip h2 { color: #fff; font-size: 1.35rem; }
@media (min-width: 720px) { .employer-strip { grid-template-columns: 1fr auto; } }

/* ---------- detalle de oferta ---------- */
.back { display: inline-block; margin: 20px 0 12px; font-weight: 600; text-decoration: none; }
.back:hover { text-decoration: underline; }
.detail {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 22px 18px; margin-bottom: 24px;
}
@media (max-width: 719px) { body.has-apply-bar { padding-bottom: calc(84px + env(safe-area-inset-bottom)); } }
@media (min-width: 720px) { .detail { padding: 32px; margin-bottom: 40px; } }
.detail h1 { font-size: clamp(1.6rem, 5vw, 2.3rem); }
.detail .offer-company { margin-top: 6px; font-size: 1.05rem; }
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px;
  margin: 22px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.facts dt { font-size: 0.825rem; color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 600; }
.detail h2 { font-size: 1.15rem; margin: 22px 0 8px; }
.prose { white-space: pre-line; max-width: 68ch; }
.closed-note { margin-top: 20px; padding: 12px; background: #ECEAF2; border-radius: var(--radius-s); color: var(--ink-soft); }

.apply-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line);
}
.apply-bar .btn { width: 100%; min-height: 52px; font-size: 1rem; }
@media (min-width: 720px) {
  .apply-bar { position: static; padding: 0; border: 0; background: none; margin-top: 26px; }
  .apply-bar .btn { width: auto; }
}

/* ---------- diálogos ---------- */
dialog {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  border: 0; border-radius: var(--radius-m);
  padding: 0; color: var(--ink);
  box-shadow: 0 20px 60px rgba(23, 17, 46, 0.28);
}
dialog.wide { width: min(820px, calc(100% - 24px)); }
dialog::backdrop { background: rgba(23, 17, 46, 0.55); }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 20px 0; }
.dialog-head h2 { font-size: 1.3rem; }
.dialog-body { padding: 16px 20px 20px; }
.dialog-close {
  border: 0; background: none; cursor: pointer; padding: 6px; border-radius: var(--radius-s); color: var(--ink-soft);
  font-size: 1.5rem; line-height: 1;
}
.dialog-close:hover { background: var(--violet-tint); }
.applying-for {
  padding: 10px 12px; background: var(--violet-tint); border-left: 4px solid var(--violet);
  border-radius: var(--radius-s); margin-bottom: 18px; font-size: 0.925rem;
}
.applying-for strong { display: block; font-size: 1rem; }
.fineprint { font-size: 0.825rem; color: var(--ink-soft); margin-top: 12px; }

/* ---------- acceso de empresas ---------- */
.auth { max-width: 520px; margin: 32px auto 48px; }
.auth h1 { font-size: clamp(1.7rem, 5vw, 2.2rem); }
.auth > p { color: var(--ink-soft); margin: 8px 0 20px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: #E7E1F8; padding: 4px; border-radius: var(--radius-m); margin-bottom: 18px; }
.tab {
  min-height: 42px; border: 0; border-radius: 9px; background: none; cursor: pointer;
  font: 600 0.95rem var(--font-body); color: var(--ink-soft);
}
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(23, 17, 46, 0.12); }
.panel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px 18px; }

/* ---------- panel de la empresa ---------- */
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 28px 0 18px; }
.dash-head h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
.dash-head p { color: var(--ink-soft); margin-top: 4px; }
.my-offers { display: grid; gap: 12px; margin-bottom: 48px; }
.my-offer {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 16px 18px; display: grid; gap: 12px;
}
@media (min-width: 720px) { .my-offer { grid-template-columns: 1fr auto; align-items: center; } }
.my-offer.is-closed { background: #F9F8FC; }
.my-offer.is-closed .offer-title { color: var(--ink-soft); }
.status {
  display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: #D6F5EE; color: #0A5C52; margin-left: 6px; vertical-align: middle;
}
.status.closed { background: #ECEAF2; color: var(--ink-soft); }
.my-offer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.applicants-btn { font-weight: 700; }
.applicants-btn .count {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: 999px; background: var(--araguaney); color: var(--ink); font-size: 0.8rem;
}

table { width: 100%; border-collapse: collapse; font-size: 0.925rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--ink-soft); font-size: 0.825rem; }
.table-scroll { overflow-x: auto; }
.wa-link { white-space: nowrap; font-weight: 600; color: var(--wa); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius-s);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50;
  max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.site-footer { border-top: 1px solid var(--line); padding: 22px 0 40px; color: var(--ink-soft); font-size: 0.875rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

.loading { padding: 40px 0; text-align: center; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
.pager-label { align-self: center; }
.lbl-short { display: none; }
@media (max-width: 420px) {
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
  .brand { font-size: 1.3rem; }
  .brand-logo { width: 28px; height: 28px; }
  .site-header .header-actions .btn { padding: 0 10px; }
}

/* ---------- buscadores de candidatos y administración ---------- */
.dash-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-search { display: flex; gap: 8px; margin-bottom: 14px; }
.inline-search input { flex: 1; min-width: 0; }
.more { text-align: center; margin: 14px 0 0; }
.admin-filters { display: grid; gap: 8px; margin-bottom: 16px; }
@media (min-width: 720px) { .admin-filters { grid-template-columns: 1fr 190px 190px auto auto; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 14px 16px; }
.stat strong { display: block; font: 800 1.8rem/1.1 var(--font-display); }
.stat span { color: var(--ink-soft); font-size: 0.9rem; }
.data-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px 18px; margin-bottom: 48px; }

/* ---------- consentimiento, cierre de ofertas y contratados ---------- */
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.875rem; color: var(--ink-soft); margin: 4px 0 16px; cursor: pointer; }
.consent input, .check-inline input, .choice input, .hire-option input {
  width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; padding: 0; flex: none; accent-color: var(--violet);
}
.check-inline { display: inline-flex; gap: 8px; align-items: center; font-weight: 400; font-size: 0.9rem; margin: 0 0 14px; cursor: pointer; }
.admin-hired { grid-column: 1 / -1; margin: 0; }

fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.choice-group { display: grid; gap: 8px; }
.choice, .hire-option {
  display: flex; gap: 12px; align-items: center; font-weight: 400; margin: 0;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); cursor: pointer; background: #fff;
}
.choice:has(input:checked), .hire-option:has(input:checked) { border-color: var(--violet); background: var(--violet-tint); }
.hire-list #hire-options { display: grid; gap: 8px; max-height: 45vh; overflow-y: auto; }
.hire-option > span { display: grid; gap: 2px; }
.hire-option .hint { font-size: 0.85rem; }

.badge-hired {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
  background: var(--araguaney); color: var(--ink); font-size: 0.75rem; font-weight: 700; vertical-align: 1px;
}
.badge-optout {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
  background: #E6E9E8; color: var(--ink-soft); font-size: 0.75rem; font-weight: 700; vertical-align: 1px;
}
tr.is-hired td { background: #F7FDE6; }
.hired-fact { color: var(--violet-dark); font-weight: 700; }
.row-actions { text-align: right; white-space: nowrap; }
.row-actions .btn + .btn { margin-left: 6px; }

/* ---------- aviso de privacidad ---------- */
.legal {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 24px 18px; margin: 24px 0 40px;
}
@media (min-width: 720px) { .legal { padding: 36px 40px; } }
.legal > * { max-width: 68ch; }
.legal h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
.legal h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.legal h3 { font-size: 1rem; margin: 18px 0 6px; font-family: var(--font-body); }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; margin: 8px 0 0; }
.legal li + li { margin-top: 6px; }
.legal-updated { color: var(--ink-soft); font-size: 0.875rem; margin-top: 6px; }
.legal-lead { font-size: 1.075rem; margin-top: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* ---------- móvil ---------- */
@media (max-width: 640px) {
  /* Las tablas de candidatos se muestran como fichas: una por persona. */
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px; margin-bottom: 10px; background: #fff; }
  table.stack tr.is-hired { background: #F7FDE6; border-color: #B2DD3E; }
  table.stack tr.is-hired td { background: none; }
  table.stack td { border: 0; padding: 3px 0; display: grid; grid-template-columns: 84px 1fr; gap: 8px; }
  table.stack td::before { content: attr(data-label); color: var(--ink-soft); font-size: 0.8rem; padding-top: 2px; }
  table.stack td:first-child { display: block; font-size: 1.05rem; padding-bottom: 6px; }
  table.stack td:first-child::before { display: none; }
  table.stack td.row-actions { display: flex; flex-wrap: wrap; gap: 8px; text-align: left; padding-top: 8px; white-space: normal; }
  table.stack td.row-actions::before { display: none; }
  table.stack td.row-actions .btn { flex: 1 1 auto; margin: 0; }
  .table-scroll { overflow: visible; }

  /* Los diálogos ocupan la pantalla completa para escribir cómodo con el teclado abierto. */
  dialog, dialog.wide {
    width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; border-radius: 0;
  }
  .dialog-head { position: sticky; top: 0; background: #fff; z-index: 1; padding-bottom: 12px; border-bottom: 1px solid var(--line); }

  .my-offer-actions .btn { flex: 1 1 auto; }
  .dash-actions { width: 100%; }
  .dash-actions .btn { flex: 1 1 auto; }
  .inline-search { flex-wrap: wrap; }
  .inline-search .btn { width: 100%; }
  .detail h1 { overflow-wrap: anywhere; }
}

input[type=checkbox]:focus, input[type=radio]:focus { box-shadow: none; }
input[type=checkbox]:focus-visible, input[type=radio]:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.legal ul + p { margin-top: 12px; }

/* ---------- seguimiento de candidatos (v1.3) ---------- */
.st {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700;
  white-space: nowrap; vertical-align: 1px;
}
.st-nuevo { background: var(--lime); color: var(--ink); }
.st-contactado { background: var(--violet-tint); color: var(--violet-dark); }
.st-no_responde { background: #FDE8D4; color: #7A3E00; }
.st-entrevista { background: #D6F5EE; color: #0A5C52; }
.st-contratado { background: var(--violet); color: #FFFFFF; }
.st-descartado { background: #ECEAF2; color: var(--ink-soft); }
.status-select { min-height: 36px; padding: 4px 8px; font-size: 0.875rem; font-weight: 700; border-radius: 999px; width: auto; max-width: 100%; }
.status-select.st-nuevo, .status-select.st-contactado, .status-select.st-no_responde, .status-select.st-entrevista,
.status-select.st-contratado, .status-select.st-descartado { border: 0; padding-right: 28px; }
.new-fact { font-weight: 700; color: var(--ink); background: var(--lime); border-radius: 999px; padding: 0 8px; }
.cand-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cand-meta { display: block; margin-top: 4px; }
.status-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.status-filter select { width: auto; min-width: 200px; }
.pipeline { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }

/* Éxito tras postularse */
.apply-done { display: grid; gap: 14px; }
.apply-done h3 { font-size: 1.25rem; }
.track-box { background: var(--violet-tint); border-radius: var(--radius-s); padding: 12px; display: grid; gap: 8px; }
.track-link { font-weight: 700; word-break: break-all; }

/* Página de seguimiento del candidato */
.track { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px 18px; margin: 20px 0 40px; display: grid; gap: 18px; }
@media (min-width: 720px) { .track { padding: 32px; } }
.track-status { display: grid; gap: 6px; padding: 16px; border-radius: var(--radius-s); background: var(--violet-tint); }
.track-status strong { font: 700 1.5rem/1.2 var(--font-display); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-bottom: 16px; position: relative; }
.steps li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--line); margin: 5px 0 0 7px; }
.steps li.done::before { background: var(--violet); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.steps .step-date { color: var(--ink-soft); font-size: 0.875rem; }
.my-app { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px 18px; display: grid; gap: 6px; }
.my-apps { display: grid; gap: 12px; margin-bottom: 40px; }
.saved-banner { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 12px 16px; margin-top: 20px; }
.mt-4 { margin-top: 4px; } .mt-6 { margin-top: 6px; } .mt-12 { margin-top: 12px; } .mt-18 { margin-top: 18px; } .mt-24 { margin-top: 24px; } .m-0 { margin: 0; }
.hist-title { font-weight: 700; margin-bottom: 8px; }
.track-title { font-size: clamp(1.5rem, 5vw, 2.1rem); margin-top: 4px; }
table.stack td .st, td .st { justify-self: start; }
