
/* ── MagicPath migrated: Home ── */
.page-home { background:var(--bg); }

.home-header__inner {
  max-width:960px;
  margin:0 auto;
  padding:28px 24px;
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  align-items:center;
  justify-content:space-between;
}

.home-kicker {
  margin:0 0 6px;
  font-size:var(--text-11);
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--primary);
  overflow-wrap:anywhere; /* "Proyecto <id>" kickers carry long ids */
}

.home-header__text { min-width:0; }

/* Every light page keeps its navigation top-right: the text wraps instead of pushing the buttons below. */

.home-lead {
  margin:6px 0 0;
  font-size:var(--text-15);
  color:var(--muted);
  max-width:420px;
}

.home-main {
  max-width:960px;
  margin:0 auto;
  padding:40px 24px;
}

.section-label {
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:20px;
}

.section-label span:first-child {
  font-size:var(--text-11);
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
  white-space:nowrap;
}

.section-label hr {
  flex:1;
  margin:0;
  border:none;
  border-top:1px solid var(--line);
}

.section-label__count {
  font-size:var(--text-11);
  font-weight:600;
  padding:2px 10px;
  border-radius:var(--radius-pill);
  background:var(--bg);
  border:1px solid var(--line);
  color:var(--muted);
}

.section-label--compact { margin:16px 0 12px; }

.home-activity-link {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  min-height:36px;
  padding:6px 12px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
  color:var(--ink);
  font-size:var(--text-13);
  font-weight:500;
  letter-spacing:normal;
  text-transform:none;
  text-decoration:none;
  white-space:nowrap;
}

.home-activity-link:hover { background:var(--bg); border-color:var(--primary); }
.home-activity-link:focus-visible { outline:2px solid var(--primary-dark); outline-offset:2px; }
@media (pointer: coarse) {
  .home-activity-link { min-height:44px; }
}

.flow-steps--warm li {
  flex-direction:row;
  align-items:center;
  text-align:left;
  padding:12px 16px;
  background:var(--surface);
  border-radius:var(--radius);
}

.flow-steps--warm li span {
  font-size:var(--text-13);
  font-weight:500;
  color:var(--ink);
}



.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0, 0, 0, 0);
  white-space:nowrap;
  border:0;
}

/* Admin's directory choice on the create/import forms: it spans the form's row grid. */
.node-picker {
  grid-column:1 / -1;
  display:grid;
  gap:6px;
  min-width:0;
  margin:0;
  padding:0;
  border:0;
}

.node-picker__group { display:grid; gap:6px; min-width:0; }
.node-picker__route {
  display:grid;
  gap:4px;
  margin:0;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface-soft);
  color:var(--ink);
  font-size:var(--text-14);
  overflow-wrap:anywhere;
}
.node-picker__group[hidden] { display:none; }

.zip-import-actions {
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px;
}

.zip-import-actions button { width:auto; min-height:44px; }
.zip-import-actions [hidden] { display:none; }

.zip-import-actions [data-zip-clear] {
  border:1px solid var(--line);
  background:var(--surface);
  color:var(--ink);
}

.zip-import-actions [data-zip-clear]:hover { background:var(--bg); }

.project-tree {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
}

.project-tree__parent + .project-tree__parent {
  border-top:1px solid var(--line);
}

.project-tree__branch {
  border-top:1px solid var(--alpha-surface-70);
}

.project-tree__branches,
.project-tree__projects {
  background:var(--color-neutral-50);
}

.project-tree__projects {
  border-left:1px dashed var(--color-earth-650);
  margin-left:34px;
}

.project-tree__summary {
  display:flex;
  align-items:center;
  gap:10px;
  list-style:none;
  cursor:pointer;
  transition:background .15s;
}

.project-tree__summary::-webkit-details-marker {
  display:none;
}

.project-tree__summary--parent {
  padding:14px 20px;
  background:var(--color-earth-100);
}

.project-tree__summary:hover {
  background:var(--color-neutral-100);
}

.project-tree__summary strong {
  flex:1;
  min-width:0;
  font-size:var(--text-13);
  font-weight:700;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.project-tree__chevron {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  color:var(--muted);
  transform:rotate(90deg);
  transition:transform .15s;
}

.project-tree__parent:not([open]) > .project-tree__summary .project-tree__chevron,
.project-tree__branch:not([open]) > .project-tree__summary .project-tree__chevron {
  transform:rotate(0deg);
}

.project-tree__folder {
  width:18px;
  color:var(--primary);
  font-size:var(--text-12);
  text-align:center;
}

.project-tree__actions {
  display:flex;
  align-items:center;
  gap:6px;
  opacity:0;
  transform:translateX(4px);
  transition:opacity .15s, transform .15s;
}

.project-tree__summary:hover .project-tree__actions,
.project-tree__summary:focus-within .project-tree__actions {
  opacity:1;
  transform:translateX(0);
}

.project-tree__project {
  padding-left:18px;
}

.project-tree__empty-branch {
  margin:0;
  padding:14px 18px;
  font-size:var(--text-12);
  color:var(--muted);
}

.project-table__row {
  display:flex;
  align-items:center;
  gap:16px;
  padding:16px 20px;
  border-top:1px solid var(--line);
  transition:background .15s;
}

.project-table__row:first-child { border-top:none; }
.project-table__row:hover { background:var(--color-neutral-100); }

.project-table__link {
  flex:1;
  min-width:0;
  text-decoration:none;
  color:inherit;
}

.project-table__link strong {
  display:block;
  font-size:var(--text-14);
  font-weight:600;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.project-table__badge {
  flex-shrink:0;
  font-size:var(--text-11);
  font-weight:500;
  padding:2px 10px;
  border-radius:var(--radius-pill);
  background:var(--bg);
  border:1px solid var(--line);
  color:var(--muted);
  white-space:nowrap;
}

.project-table__delete { margin:0; flex-shrink:0; }

.project-table__empty {
  padding:40px 20px;
  text-align:center;
  color:var(--muted);
  margin:0;
}

.home-footnote {
  margin:12px 0 0;
  font-size:var(--text-12);
  color:var(--muted);
}

/* Shared selectors and responsive variants, in original cascade order. */
@media (max-width: 760px) {
.home-actions { grid-template-columns:1fr; }
}

.flow-steps--warm strong {
  width:24px;
  height:24px;
  font-size:var(--text-11);
  background:var(--bg);

  border:1px solid var(--line);
}

.home-actions {
  display:grid;
  grid-template-columns:1fr 1fr;

}

.project-tree-toolbar {
  display:flex;

  justify-content:space-between;
  gap:10px;
  padding:14px 16px;
  margin-bottom:12px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:linear-gradient(135deg, var(--alpha-warm-8), var(--alpha-surface-70)),
    var(--surface);
  box-shadow:0 10px 30px var(--alpha-brand-6-5);
}

.project-tree-toolbar__hint {

  font-size:var(--text-12);
  color:var(--muted);
}

.project-tree__summary--branch {
  padding:12px 20px 12px 42px;
  background:var(--color-neutral-50);
}





.project-table__link span {
  display:block;

  font-size:var(--text-12);
  color:var(--muted);
}

.flow-steps--warm strong { color:var(--primary-dark); }

.home-actions { gap:16px; }

.project-tree-toolbar { align-items:flex-start; flex-wrap:wrap; }

.project-tree-toolbar__hint { margin:0; }

.project-table__link span { margin-top:1px; }

@media (max-width: 640px) {
.home-actions { grid-template-columns:1fr; }
}

@media (max-width: 640px) {
.project-tree-toolbar { flex-direction:column; align-items:stretch; }
}

.project-tree-action {
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  width:auto;
  height:var(--ctl-h);
  min-height:var(--ctl-h);
  margin:0;

  white-space:nowrap;

  transform:none;

}

.project-tree-action:hover {

  transform:none;
}

.project-tree__actions .project-tree-action {
  height:var(--ctl-h-sm);
  min-height:var(--ctl-h-sm);

}

.project-tree__summary--branch { padding-left:calc(42px + (var(--depth, 1) - 1) * 22px); }

@media (pointer: coarse) {
.project-tree__actions .project-tree-action { height:var(--tap-min-dense); min-height:var(--tap-min-dense); }
}
