/* ===== Páginas responsivas 2026-11-16 (docs/AUDITORIA_RESPONSIVE.md, hallazgos 7, 9 y 10) =====
   Inicio, Dependencias, Compartir, login y error. Nada de aquí alcanza la cabecera ni los paneles del IDE. */

/* Login: centred on tall screens instead of floating near the top. */

/* Error pages: the message is a centred card, not a header over an empty page. */
.page-error { min-height:100vh; display:grid; place-items:center; padding:16px; }

.page-error .home-header__inner { flex-direction:column; align-items:flex-start; gap:20px; padding:32px; }

/* Dependencias: a short card no longer stretches to its neighbour's height; prose keeps a readable measure. */
.page-deps .home-actions { align-items:start; }

/* Compartir: the list keeps its distance from the card heading. */

/* Wide screens: the index uses the width for the tree and the preview; Dependencias widens a little for its
   tables and chips; Compartir keeps 960px (a one-field form gains nothing from more width). */
@media (min-width: 1600px) {
  .page-index .home-header__inner,
.page-index .home-main { max-width:var(--page-max-wide); }
  .page-deps .home-header__inner,
.page-deps .home-main { max-width:1240px; }
  .page-deps .home-actions { grid-template-columns:minmax(0, 3fr) minmax(0, 2fr); }
}
@media (min-width: 2200px) {
  .page-index .home-header__inner,
.page-index .home-main { max-width:var(--page-max-xwide); }
}

/* Phones: a tighter header; the session name drops under the buttons so the actions share one row. */
@media (max-width: 640px) {
  .page-home .home-header__inner { padding:20px 16px 16px; gap:14px; }
  .page-home .home-main { padding:28px 16px; }

  .page-error .home-header__inner { padding:24px 20px; }
}

/* Touch: every control of these pages reaches 40–44px; the mouse layout is untouched. */
@media (pointer: coarse) {
  .page-home .nav-action,
.page-home .project-tree-action { min-height:var(--tap-min); }.page-home .members-form select,
.page-home .members-form input,
.page-home .users-form input:not([type="checkbox"]),
.page-home .users-form select { min-height:var(--tap-min); }
  .page-home .nav-action,
.page-home .project-tree-action { height:var(--tap-min); }


  /* Inline padding grows the tap area to 40px without moving the surrounding lines. */
  .deps-workflow a,
.deps-empty a,
.page-deps .pkg-requests a { padding-block:12px; }
  .page-deps .pkg-requests__reject input { min-height:var(--tap-min-dense); }
  .page-deps .pkg-requests__history summary { padding-block:10px; }



   /* 40px pager buttons: «Ver PDF» drops a line on a phone instead of being cut */

}
