/* ════════════════════════════════════════════════════
   PHSICO STUDIOS — god.css
   Panel de administración (/god): Projects y Clients.
   Diseño: Illustrator "Admin.ai" (God/desk 1440 y God/mobile 390).
   Tipografía y colores salen de style.css; acá solo está la maqueta de God.
   Lo que en el diseño difiere del sistema general (tamaño de las etiquetas, alto de los botones, peso del título)
   está en las variables --gd-* de abajo: un solo lugar para ajustar.
════════════════════════════════════════════════════ */

/* ─── Modo God: fondo oscuro ─── */
html.god, html.god body { background: var(--black); }
html.god #page { background: var(--black); }
html.god #roadmap { display: none; }                 /* el contenedor del Roadmap no se usa en God (y taparía los clics) */
html.god #header-box { background-color: var(--black); }   /* el cuadro de las rayitas es #header-box (capa propia) */
html.god .bar { background-color: var(--middle-1); }
html.god #header.hovered .bar, html.god #header.menu-open .bar { background-color: var(--white); }
html.god #header.menu-open.hovered #bar-1, html.god #header.menu-open.hovered #bar-3 { background-color: #ffd876; }

#god { display: none; }
html.god #god {
  display: flex; flex-direction: column; position: absolute; inset: 0; z-index: 100;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  opacity: 0; transition: opacity 0.01s linear;   /* sin fade del contenedor: los títulos entran solos (fade-up) mientras sube la página */
  color: var(--middle-0); font-family: "panel-mono", monospace;
}
html.god #god::-webkit-scrollbar { display: none; }
html.god #god.ready { opacity: 1; }

#god {
  --gd-w: 460px;
  --gd-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --gd-grow: 400ms;
  /* tipografía */
  --gd-title: 34px; --gd-title-lh: 40px; --gd-title-ls: -2px; --gd-title-w: 400;
  --gd-text: 15px;  --gd-text-lh: 22px;  --gd-text-ls: 1.5px;   /* = p */
  --gd-lab: 10px;   --gd-lab-lh: 12px;   --gd-lab-ls: 2px;   /* = .label del sistema (botones, etiquetas, tags) */
  /* medidas */
  --gd-row: 35px; --gd-btn-h: 20px; --gd-in-x: 10px;
  --gd-red: var(--special-2);
}
#god *, #god *::before, #god *::after { box-sizing: border-box; }   /* (los resets de abajo usan :where para no pisar las clases) */
:where(#god) button { font: inherit; letter-spacing: inherit; color: inherit; border: 0; background: none; margin: 0; padding: 0; border-radius: 0; -webkit-appearance: none; appearance: none; outline: none; cursor: pointer; -webkit-tap-highlight-color: transparent; text-align: left; }
:where(#god) input { font: inherit; letter-spacing: inherit; color: inherit; border: 0; background: none; margin: 0; padding: 0; border-radius: 0; outline: none; -webkit-appearance: none; appearance: none; width: 100%; min-width: 0; }
:where(#god) textarea { font: inherit; letter-spacing: inherit; color: inherit; border: 0; background: none; margin: 0; padding: 0; border-radius: 0; outline: none; -webkit-appearance: none; appearance: none; width: 100%; min-width: 0; resize: none; overflow: hidden; display: block; }
:where(#god) a { color: inherit; text-decoration: none; }
#god ::selection { background: var(--special-1); color: var(--middle-2); }
#god ::placeholder { color: var(--middle-0); opacity: 1; }

.gd-wrap { position: relative; width: var(--gd-w); max-width: 100%; margin: 0 auto; padding: 116px 0 160px; }

/* ═════════ Tipos de texto ═════════ */
.gd-text, .gd-nm, .gd-in { font-size: var(--gd-text); line-height: var(--gd-text-lh); letter-spacing: var(--gd-text-ls); font-weight: 400; }
.gd-lab, .gd-btn, .gd-gl, .gd-tz, .gd-tg, .gd-fl { font-size: var(--gd-lab); line-height: var(--gd-lab-lh); letter-spacing: var(--gd-lab-ls); font-weight: 400; text-transform: uppercase; white-space: pre; }

/* ═════════ Sección (— projects / — clients) ═════════ */
.gd-sec + .gd-sec { margin-top: 63px; }
.gd-head { position: relative; display: flex; align-items: center; justify-content: space-between; width: 100%; height: var(--gd-title-lh); }
.gd-title { font-weight: 400; color: var(--middle-0);   /* Regular: sobre fondo oscuro el Medium se ve más pesado que en projects/<slug> */   /* tamaño, peso e interletra: los de .h1 (style.css), igual que el título del proyecto en el Roadmap */ transition: color 0.3s ease-out; white-space: nowrap; }
.gd-sec.open .gd-title { color: var(--middle-1); }
.gd-ico { position: relative; flex: none; width: 20px; height: 20px; margin-right: 0; }
.gd-ico svg { position: absolute; left: 0; top: 0; width: 20px; height: 20px; overflow: visible; }
.gd-ico path { fill: none; stroke: var(--middle-3); stroke-width: 1; stroke-dasharray: 1 1; transition: stroke-dashoffset 0.35s var(--gd-ease), stroke 0.2s ease; }
.gd-ico .i-plus path { stroke-dashoffset: 0; }
.gd-ico .i-up path { stroke-dashoffset: 1; }
.gd-sec.open .gd-ico .i-plus path { stroke-dashoffset: 1; }
.gd-sec.open .gd-ico .i-up path { stroke-dashoffset: 0; transition-delay: 0.1s; }
.gd-sec:not(.open) .gd-ico .i-plus path { transition-delay: 0.1s; }
.gd-sec-body { margin-top: 23px; }

/* ═════════ Contenedores que crecen (sin saltos) ═════════ */
.gd-c { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--gd-grow) var(--gd-ease); }
.gd-c > .gd-ci { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear var(--gd-grow); }
.gd-c.open { grid-template-rows: 1fr; }
.gd-c.open > .gd-ci { visibility: visible; transition-delay: 0s; }
.gd-c.instant, .gd-c.instant > .gd-ci { transition: none; }
.gd-c.no-clip > .gd-ci { overflow: visible; }

/* ═════════ Filas (proyecto / cliente) ═════════ */
.gd-r { position: relative; }
.gd-rl { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-top: 0.5px solid var(--middle-0); pointer-events: none; }   /* la línea de cada fila es un elemento propio para poder dibujarla de izquierda a derecha */
.gd-rh { position: relative; display: flex; align-items: center; justify-content: space-between; height: var(--gd-row); padding: 0 var(--gd-in-x) 0 10px; cursor: pointer; user-select: none; -webkit-user-select: none; }
.gd-rh .gd-nm { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--middle-3); padding-top: 3px; transition: color 0.25s ease-out; }
.gd-rh .gd-btn { flex: none; margin-left: 16px; padding-right: 0; color: var(--middle-0); }
.gd-rh .gd-go { margin-left: 15px; text-decoration: none; }   /* GO (solo proyectos): igual que MORE, a 15px a su derecha */
.gd-r.open > .gd-rh .gd-nm { color: var(--special-1); }
@media (hover: hover) and (pointer: fine) {
  .gd-rh:hover .gd-nm { color: var(--special-1); }
  .gd-rh:hover .gd-more { color: var(--white); }
  .gd-rh:hover .gd-more .c, .gd-btn:hover .c, .gd-btn:focus-visible .c { max-width: 1.2em; opacity: 1; }
  .gd-rh .gd-go:hover, .gd-rh .gd-go:focus-visible, .gd-rh .gd-go:active, .gd-rh .gd-go.busy { color: var(--special-1); }   /* tap en touch: queda amarillo */   /* GO se pinta de amarillo (MORE de blanco) */
  .gd-rh:has(.gd-go:hover) .gd-more { color: var(--middle-0); }
  .gd-rh:has(.gd-go:hover) .gd-more .c { max-width: 0; opacity: 0; }
}
.gd-rh:focus-visible .gd-nm { color: var(--special-1); }
.gd-rh:focus-visible .gd-more { color: var(--white); }
.gd-rh:focus-visible .gd-more .c { max-width: 1.2em; opacity: 1; }
.gd-rh .gd-go:focus-visible, .gd-rh .gd-go:active, .gd-rh .gd-go.busy { color: var(--special-1); }   /* tap en touch: queda amarillo */
.gd-r.leaving { overflow: hidden; }

/* ═════════ Botones: texto + [ ] que se abre con el carácter ═════════ */
.gd-btn { display: inline-block; height: var(--gd-btn-h); line-height: var(--gd-btn-h); vertical-align: top; cursor: pointer; transition: color 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out; }
.gd-btn .c { position: relative; }
.gd-btn .c { display: inline-block; max-width: 0; opacity: 0; overflow: hidden; vertical-align: top; transition: max-width 0.25s ease-out, opacity 0.2s ease-out; }
@media (hover: none) { .gd-btn.show-c .c { max-width: 1.2em; opacity: 1; } }
/* REGLA del sitio: sin hover (touch) el carácter entre [ ] de todo botón queda siempre visible */
@media (hover: none) { .gd-btn .c, .gd-hold .lb .c { max-width: 1.2em; opacity: 1; } }
.gd-btn.probe .c { max-width: 1.2em; opacity: 1; transition: none; }
.gd-btn.keep .c { max-width: 1.2em; opacity: 1; }

/* amarillo (NEW PROJECT, GO, OK, ADD) */
.gd-y { background: var(--special-1); color: var(--middle-0); padding: 0 6px; }
.gd-y:hover, .gd-y:focus-visible { color: var(--middle-2); }
.gd-y:hover .c, .gd-y:focus-visible .c { max-width: 1.2em; opacity: 1; }
/* NEW … mientras el formulario está abierto: gris con [↓] */
.gd-y.is-on { background: var(--middle-0); color: var(--middle-2); }
.gd-y.is-on .c { max-width: 1.2em; opacity: 1; }
.gd-y.busy { pointer-events: none; opacity: 0.6; }

/* ═════════ Árbol (líneas) ═════════ */
.gd-tree { position: relative; padding-top: 2px; }
.gd-ln { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.gd-ln path { fill: none; stroke-width: 1; stroke-linecap: butt; }
.gd-ln .base { stroke: var(--middle-0); }
.gd-ln .reach { stroke: var(--white); stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.4s var(--gd-ease); }
.gd-g, .gd-lf, .gd-gl { position: relative; z-index: 1; }
.gd-g + .gd-g { margin-top: 7px; }
.gd-gl { display: flex; align-items: center; height: 32px; margin-left: 52px; color: var(--middle-0); transition: color 0.3s ease-out; }
.gd-g.hot > .gd-gl { color: var(--middle-1); }
.gd-lv { position: relative; }
.gd-lf { display: block; height: var(--gd-row); padding: 2px 0 3px; margin-left: 90px; }
.gd-li { position: relative; display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 0 4px 0 10px; background: transparent; transition: background-color 0.2s ease-out; }
.gd-li .gd-nm { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--middle-3); padding-top: 3px; transition: color 0.2s ease-out; }
.gd-li .gd-btn { flex: none; margin-left: 12px; color: var(--white); opacity: 0; visibility: hidden; transition: opacity 0.2s ease-out, visibility 0s linear 0.2s; }
.gd-lf.sel .gd-li { background: var(--middle-2); }
.gd-lf.sel .gd-li .gd-nm { color: var(--middle-1); }
.gd-lf.sel .gd-li .gd-btn { opacity: 1; visibility: visible; transition-delay: 0s; }
.gd-lf.sel .gd-li .gd-btn .c { max-width: 1.2em; opacity: 1; }
.gd-lf.info .gd-nm { color: var(--middle-3); }
.gd-lf.info.dim .gd-nm { color: var(--middle-0); }
.gd-empty .gd-gl { color: var(--middle-0); }

/* regla punteada + pie del proyecto */
.gd-rule { height: 0; margin: 16px 0 0; border: 0; border-top: 0.5px dotted var(--middle-0); background: none; }
.gd-rule.tight { margin-top: 0; }
.gd-ft { display: flex; align-items: flex-start; justify-content: flex-start; gap: 10px; margin-top: 7px; padding: 0 10px 17px 12px; }
.gd-ft .gd-tz { margin-left: 10px;   /* + gap 10 px = 20 px del botón DELETE (2 Nov) */ padding-top: 2px; color: var(--middle-2); text-align: right; }
.gd-ft-x { display: contents; }

/* ═════════ Botón de borrar con "mantener apretado" ═════════ */
.gd-hold { position: relative; display: inline-block; height: var(--gd-btn-h); padding: 0 6px; border: 1px solid var(--middle-0); color: var(--middle-0); overflow: hidden; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation; transition: color 0.2s ease-out, border-color 0.2s ease-out, transform 160ms var(--gd-ease); }
.gd-hold .gd-fl { display: block; line-height: calc(var(--gd-btn-h) - 2px); }
.gd-hold .c { display: inline-block; max-width: 0; opacity: 0; overflow: hidden; vertical-align: top; transition: max-width 0.25s ease-out, opacity 0.2s ease-out; }
.gd-hold .t2 { position: absolute; left: 6px; top: 0; right: auto; color: var(--black); pointer-events: none; }
.gd-hold .clip { position: absolute; left: -1px; top: -1px; bottom: -1px; width: calc(100% + 2px); background: var(--gd-red); clip-path: inset(0 calc((1 - var(--hp, 0)) * 100%) 0 0); pointer-events: none; }
.gd-hold .clip .gd-fl { position: absolute; left: 7px; top: 1px; color: var(--white); white-space: pre; }
.gd-hold .clip .gd-fl .c { max-width: 1.2em; opacity: 1; }
.gd-hold .lb { position: relative; z-index: 1; }
@media (hover: hover) and (pointer: fine) {
  .gd-hold:hover { border-color: var(--gd-red); color: var(--white); }
  .gd-hold:hover .lb .c { max-width: 1.2em; opacity: 1; }
}
.gd-hold:focus-visible { border-color: var(--gd-red); color: var(--white); }
.gd-hold:focus-visible .lb .c { max-width: 1.2em; opacity: 1; }
.gd-hold[data-ph="hold"] { border-color: var(--gd-red); color: var(--white); transform: scale(0.97); }
.gd-hold[data-ph="hold"] .lb .c, .gd-hold[data-ph="done"] .lb .c { max-width: 1.2em; opacity: 1; }
.gd-hold[data-ph="done"] { border-color: var(--gd-red); }
.gd-hold[data-ph="done"] .clip { clip-path: inset(0); }
.gd-hold.busy { pointer-events: none; }

/* ═════════ Cliente: campos ═════════ */
.gd-fields { position: relative; padding-top: 2px; }
.gd-fld { position: relative; z-index: 1; display: block; height: 35px; padding: 2px 0 3px; margin-left: 39px; }
.gd-fld .gd-li { height: 30px; padding: 0 4px 0 12px; justify-content: flex-start; cursor: pointer; border: 0 solid transparent; }
.gd-fld .gd-li .gd-fl { flex: none; color: var(--middle-0); margin-right: 8px; padding-top: 2px; transition: color 0.2s ease-out; }
.gd-fld .gd-li .gd-val { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--gd-text); line-height: var(--gd-text-lh); letter-spacing: var(--gd-text-ls); color: var(--middle-3); padding-top: 3px; transition: color 0.2s ease-out; }
.gd-fld .gd-li .gd-val.ph { color: var(--middle-3); }
.gd-fld .gd-li .gd-btn { margin-left: auto; padding-right: 0; }
.gd-fld.sel .gd-li { background: var(--middle-2); }
.gd-fld.sel .gd-li .gd-val { color: var(--middle-1); }
.gd-fld.sel .gd-li .gd-btn { opacity: 1; visibility: visible; transition-delay: 0s; }
.gd-fld.sel .gd-li .gd-btn .c { max-width: 1.2em; opacity: 1; }
/* edición */
.gd-fld.ed .gd-li { background: var(--black); padding-right: 6px; }
.gd-fld.ed .gd-li .gd-val { color: var(--white); padding-top: 0; }
.gd-fld.ed .gd-li .gd-fl { color: var(--middle-0); }
.gd-fld.ed .gd-li .gd-btn { opacity: 1; visibility: visible; }
.gd-fld.ed .gd-in { height: 22px; color: var(--white); caret-color: var(--special-1); flex: 1 1 auto; margin-top: 1px; }
.gd-fld .gd-in::placeholder { color: var(--middle-0); }
.gd-fld.err .gd-li, .gd-fr.err { background: var(--gd-red) !important; }
.gd-fld.err .gd-li *, .gd-fr.err * { color: var(--white) !important; }

/* anillo de foco: amarillo, se dibuja */
.gd-ring { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 3; }
.gd-ring path { fill: none; stroke: var(--special-1); stroke-width: 1; stroke-dasharray: 1.02 1.02; stroke-dashoffset: 1.02; }

/* contraseña: el ojo */
.gd-eye { position: relative; flex: none; width: 20px; height: 20px; margin-left: 8px; margin-right: 0; }
.gd-eye svg { position: absolute; left: 0; top: 4px; width: 20px; height: 14px; overflow: visible; transition: opacity 0.2s ease-out; }
.gd-eye .e-open { opacity: 0; }
.gd-eye.on .e-open { opacity: 1; }
.gd-eye.on .e-close { opacity: 0; }
.gd-eye .e-close * { fill: none; stroke: var(--middle-0); stroke-width: 1; stroke-linecap: butt; }
.gd-eye .e-open circle.o { fill: none; stroke: var(--middle-1); stroke-width: 1; }
.gd-eye .e-open circle.d { fill: var(--middle-1); stroke: none; }

/* PROJECT: sugerencias del autocompletado */
.gd-sg { position: relative; z-index: 4; margin-left: 39px; background: var(--middle-2); }
.gd-sg .s { display: flex; align-items: center; height: 28px; padding: 0 12px; font-size: var(--gd-lab); letter-spacing: var(--gd-lab-ls); line-height: var(--gd-lab-lh); text-transform: uppercase; color: var(--middle-1); cursor: pointer; transition: color 0.15s ease-out; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-sg .s.on { color: var(--special-1); }
@media (hover: hover) and (pointer: fine) { .gd-sg .s:hover { color: var(--special-1); } }
.gd-sg .s.new { color: var(--middle-0); }

/* etiquetas (tags) de proyectos del cliente / personas del form */
.gd-tgs { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 0 10px 0 12px; }
.gd-tgrow { padding: 7px 10px 7px 12px; }
.gd-tg { position: relative; display: inline-flex; align-items: center; justify-content: center; height: var(--gd-btn-h); padding: 0 5px; border: 1px solid var(--middle-0); color: var(--middle-0); cursor: pointer; transition: background-color 0.18s ease-out, border-color 0.18s ease-out; }
.gd-tg .t { transition: opacity 0.15s ease-out; }
.gd-tg .x { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; color: var(--white); opacity: 0; transition: opacity 0.15s ease-out; }
.gd-tg .x path { fill: none; stroke: currentColor; stroke-width: 1; }
.gd-tg.armed { background: var(--middle-2); border-color: var(--middle-2); }
.gd-tg.armed .t { opacity: 0; }
.gd-tg.armed .x { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .gd-tg:hover { background: var(--middle-2); border-color: var(--middle-2); }
  .gd-tg:hover .t { opacity: 0; }
  .gd-tg:hover .x { opacity: 1; }
}
.gd-tg.pending { border-style: dashed; }

/* ═════════ Formularios nuevos (NEW PROJECT / NEW USER) ═════════ */
.gd-new { padding-top: 10px; padding-left: 11px; }
.gd-new .gd-y { margin-left: 0; }
.gd-form { position: relative; padding-top: 16px; }
.gd-fr { position: relative; display: flex; align-items: center; height: 30px; padding: 0 10px 0 10px; border-bottom: 0.5px solid var(--middle-0); }
.gd-fr .gd-fl { flex: none; color: var(--middle-0); margin-right: 10px; padding-top: 2px; transition: color 0.2s ease-out; }
.gd-fr .gd-in { flex: 1 1 auto; height: 22px; color: var(--white); caret-color: var(--special-1); margin-top: 1px; }
.gd-fr.foc .gd-fl { color: var(--white); }
.gd-fr .gd-btn { flex: none; margin-left: 8px; }
.gd-fr .gd-btn.gd-y { height: var(--gd-btn-h); }
.gd-fr .ok { display: none; }
.gd-fr.has .ok { display: inline-block; }
.gd-fr.tags { padding: 0 10px 0 12px; }
.gd-frow-sg { position: relative; z-index: 5; }
.gd-frow-sg .gd-sg { margin-left: 0; }
.gd-fa { display: flex; align-items: flex-start; justify-content: space-between; padding: 11px 10px 0 11px; }
.gd-fa .gd-tz { margin-left: auto; padding-top: 2px; color: var(--middle-2); text-align: right; }

/* ═════════ Mobile ═════════ */
@media (max-width: 768px) {
  #god {
    --gd-w: 346px;
    --gd-title: 24px; --gd-title-lh: 30px; --gd-title-ls: 0px;
    --gd-text: 14px;  --gd-text-lh: 21px;  --gd-text-ls: 0.8px;
    --gd-lab: 9px;    --gd-lab-lh: 12px;   --gd-lab-ls: 2px;
    --gd-btn-h: 20px;
  }
  .gd-wrap { width: calc(100% - 44px); max-width: 346px; padding-top: 66px; padding-bottom: 120px; }
  .gd-sec-body { margin-top: 24px; }
  .gd-gl { margin-left: 40px; }
  .gd-lf { margin-left: 56px; }
  .gd-li { padding-left: 10px; }
  .gd-fld { margin-left: 26px; }
  .gd-sg { margin-left: 26px; }
  .gd-ft { flex-wrap: wrap; row-gap: 3px; }
  .gd-ft .gd-tz { flex: 0 0 100%; margin-left: 0; text-align: left; padding-top: 0; }
  .gd-ft { padding-left: 9px; }
  .gd-ft-x { display: contents; }
}
@media (hover: none) { .gd-rh { -webkit-tap-highlight-color: transparent; } }

@media (prefers-reduced-motion: reduce) {
  .gd-c, .gd-c > .gd-ci, .gd-ln .reach, .gd-ico path { transition: none !important; }
}

/* ═════════ Ajustes (hover de hojas y campos, ojo, reglas, listas) ═════════ */
.gd-rule { height: 1px; border: 0; background: repeating-linear-gradient(90deg, rgba(105, 103, 101, 0.75) 0 1px, transparent 1px 5px); }
.gd-eye svg { top: 2px; height: 16px; }
.gd-eye .e-close path { fill: none; stroke: var(--middle-0); stroke-width: 1; }
.gd-hint { padding: 0 10px 0 10px; margin-top: 3px; font-size: var(--gd-lab); line-height: var(--gd-lab-lh); letter-spacing: var(--gd-lab-ls); color: var(--middle-2); padding-left: 80px; }
.gd-new { padding-top: 9px; }
.gd-tcs .gd-ci, .gd-tc .gd-ci { overflow: hidden; }
.gd-fld.has .gd-li .gd-btn { opacity: 1; visibility: visible; }
.gd-fld.ed .gd-li .gd-nm { display: none; }
.gd-fld.ed .gd-btn.gd-y { color: var(--middle-0); }
.gd-lf.empty .gd-nm { color: var(--middle-0); }
@media (hover: hover) and (pointer: fine) {
  .gd-lf:not(.info):hover .gd-li { background: var(--middle-2); }
  .gd-lf:not(.info):hover .gd-li .gd-nm { color: var(--middle-1); }
  .gd-lf:not(.info):hover .gd-li .gd-btn { opacity: 1; visibility: visible; transition-delay: 0s; }
  .gd-lf:not(.info):hover .gd-li .gd-btn .c { max-width: 1.2em; opacity: 1; }
  .gd-fld:not(.ed):hover .gd-li { background: var(--middle-2); }
  .gd-fld:not(.ed):hover .gd-li .gd-val { color: var(--middle-1); }
  .gd-fld:not(.ed):hover .gd-li .gd-btn { opacity: 1; visibility: visible; transition-delay: 0s; }
  .gd-fld:not(.ed):hover .gd-li .gd-btn .c { max-width: 1.2em; opacity: 1; }
}
.gd-li .gd-btn { color: var(--white); }
.gd-fld .gd-li .gd-btn { opacity: 0; visibility: hidden; }
.gd-fld.ed .gd-li .gd-btn.gd-y { opacity: 1; visibility: visible; color: var(--middle-0); }
.gd-fr.foc { border-bottom-color: var(--middle-1); }
.gd-fr.tags { border-bottom: 0; }
.gd-fa { padding-bottom: 0; }
.gd-sec-body { padding-bottom: 0; }
.gd-ft .gd-y { align-self: flex-start; }
.gd-ft a.gd-btn { text-decoration: none; }
.gd-btn.busy, .gd-hold.busy { pointer-events: none; }

/* ═════════ Contenedor base de cada sección (Admin.ai: capas, 20 oct) ═════════
   Fondo black (tapa la grilla de puntos). Va siempre, abierta o cerrada.
   Desktop: 500 de ancho (20px de aire a cada lado), cerrada 70 de alto, abierta termina 27px después del último elemento.
   Mobile: 100% − 18 px (372 sobre 390), 12px de aire a cada lado, título a 21.6px del borde de arriba. */
.gd-wrap { padding-top: 101px; }
.gd-sec { margin-left: -20px; margin-right: -20px; padding: 15px 20px 15px; background-color: var(--black); transition: padding-bottom var(--gd-grow) var(--gd-ease); }
.gd-sec.open { padding-bottom: 0; }
.gd-sec + .gd-sec { margin-top: 30px; }
.gd-sec-body { padding-bottom: 27px; }
.gd-fa { padding-bottom: 4px; }
@media (max-width: 768px) {
  .gd-wrap { width: calc(100% - 18px); max-width: none; padding-top: 48px; }
  .gd-sec { margin-left: 0; margin-right: 0; padding: 22px 12px 18px; }
  .gd-sec.open { padding-bottom: 0; }
  .gd-sec-body { padding-bottom: 27px; }
}

/* botones del pie: nunca se achican (el texto de la zona horaria no los pisa) */
.gd-ft > .gd-hold, .gd-ft > .gd-btn { flex: none; }
.gd-eye svg { height: 16px; top: 2px; }
.gd-eye .e-close path { fill: none; stroke: var(--middle-0); stroke-width: 1; }

/* Los dos contenedores siempre centrados en la página (horizontal y vertical); si el contenido es más alto que la pantalla, se desplaza desde arriba */
.gd-wrap { margin: auto; flex: none; padding-bottom: 101px; }
@media (max-width: 768px) { .gd-wrap { padding-bottom: 48px; } }

/* INFO (Open / Progress): en hover quedan seleccionadas como las personas (fondo + letra middle-1 + línea blanca) */
@media (hover: hover) and (pointer: fine) {
  .gd-lf.info:not(.empty):hover .gd-li { background: var(--middle-2); }
  .gd-lf.info:not(.empty):hover .gd-li .gd-nm { color: var(--middle-1); }
}

/* ═════════ Descripción del proyecto (Phsico, 20 oct 2026) ═════════ */
.gd-desc { position: relative; padding: 8px 10px 0 12px; }
.gd-dh { display: flex; align-items: center; justify-content: space-between; height: var(--gd-btn-h); cursor: pointer; }
.gd-dh .gd-fl { color: var(--middle-0); }
.gd-dh .gd-btn { flex: none; margin-left: 12px; color: var(--white); opacity: 0; visibility: hidden; transition: opacity 0.2s ease-out, visibility 0s linear 0.2s; }
.gd-dt { font-size: var(--gd-text); line-height: var(--gd-text-lh); letter-spacing: var(--gd-text-ls); font-weight: 400; color: var(--middle-0); cursor: pointer; overflow-wrap: anywhere; transition: color 0.2s ease-out; }
.gd-dt.ph { color: var(--middle-0); }
.gd-desc .gd-ta { color: var(--white); caret-color: var(--special-1); font-size: var(--gd-text); line-height: var(--gd-text-lh); letter-spacing: var(--gd-text-ls); font-weight: 400; overflow-wrap: anywhere; }
.gd-desc.ed { padding-bottom: 14px; }
.gd-desc.ed .gd-fl { color: var(--white); }
.gd-desc.ed .gd-dh { cursor: default; }
.gd-desc.ed.has .gd-dh .gd-btn, .gd-desc.sel .gd-dh .gd-btn { opacity: 1; visibility: visible; transition-delay: 0s; }
.gd-desc.sel .gd-dh .gd-btn .c, .gd-desc.ed .gd-dh .gd-btn .c { max-width: 1.2em; opacity: 1; }
.gd-desc.ed .gd-dh .gd-btn.gd-y { color: var(--middle-0); }
.gd-desc.sel .gd-dt { color: var(--middle-1); }
.gd-desc.err .gd-dh .gd-btn { opacity: 1; visibility: visible; }
.gd-desc.err { background: var(--gd-red); }
.gd-desc.err * { color: var(--white) !important; }
.gd-rule-d { margin-top: 12px; }
@media (hover: hover) and (pointer: fine) {
  .gd-desc:not(.ed):hover .gd-dh .gd-btn { opacity: 1; visibility: visible; transition-delay: 0s; }
  .gd-desc:not(.ed):hover .gd-dh .gd-btn .c { max-width: 1.2em; opacity: 1; }
  .gd-desc:not(.ed):hover .gd-dt { color: var(--middle-1); }
}
/* NEW PROJECT: bloque de descripción (label arriba, texto abajo, crece con lo escrito) */
.gd-form.pj .gd-fr.tags { border-bottom: 0.5px solid var(--middle-0); }
.gd-fr.dsc { display: block; height: auto; padding: 8px 10px 9px 10px; }
.gd-fr.dsc .gd-fl { display: block; margin: 0; padding: 0; height: var(--gd-btn-h); line-height: var(--gd-btn-h); }
.gd-fr.dsc .gd-in, .gd-fr.dsc .gd-ta { display: block; width: 100%; height: auto; margin: 0; flex: none; }

/* PUBLIC? y THUMBNAIL (5-6 nov 2026): según el diseño de Phsico. Filas estándar; la casilla y el tilde son los del SAVE? del Login */
.gd-fr.pub { gap: 0; }
.gd-fr.pub .gd-fl { margin-right: 14px; }
.gd-ck { display: inline-flex; align-items: center; height: 22px; padding: 0; background: none; border: 0; cursor: pointer; color: var(--middle-0); transition: color 0.2s ease-out; }
.gd-ck .bx { position: relative; flex: none; width: 12px; height: 12px; border: 0.5px solid var(--middle-0); transition: border-color 0.2s ease-out, border-width 0.2s ease-out; }
.gd-ck .bx svg { position: absolute; left: -0.5px; top: -0.5px; width: 12px; height: 12px; overflow: visible; }
.gd-ck .bx polyline { fill: none; stroke: var(--special-1); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.22s ease-out; }
.gd-ck .tx { margin-left: 10px; font-size: var(--gd-text); line-height: var(--gd-text-lh); letter-spacing: var(--gd-text-ls); padding-top: 2px; }
.gd-ck[aria-checked="true"] { color: var(--special-1); }
.gd-ck[aria-checked="true"] .bx { border: 1px solid var(--special-1); }
.gd-ck[aria-checked="true"] .bx svg { left: -1px; top: -1px; }
.gd-ck[aria-checked="true"] .bx polyline { stroke-dashoffset: 0; }
.gd-ck:hover, .gd-ck:focus-visible { outline: none; }
.gd-ck:not([aria-checked="true"]):hover { color: var(--white); }
.gd-ck:not([aria-checked="true"]):hover .bx { border-color: var(--white); }
.gd-ckv { flex: none; width: 0; height: 20px; margin: 0 16px; border-left: 0.5px solid var(--middle-0); }
.gd-th { background: var(--middle-2); color: var(--middle-0); padding: 0 6px; margin-left: 0; }
.gd-th:hover, .gd-th:focus-visible { background: var(--special-1); color: var(--middle-2); }
.gd-th:hover .c, .gd-th:focus-visible .c { max-width: 1.2em; opacity: 1; }
.gd-fr.thm .gd-btn { margin-left: 0; }
.gd-fr.thm .gd-tv { flex: 1 1 auto; min-width: 0; margin-left: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--gd-text); line-height: var(--gd-text-lh); letter-spacing: var(--gd-text-ls); color: var(--middle-0); padding-top: 1px; }
.gd-fr.thm.busy { opacity: 0.6; pointer-events: none; }
@media (hover: none) { .gd-th { background: var(--special-1); color: var(--middle-2); } }   /* en touch no hay hover: el botón se ve amarillo, como en el diseño mobile */

/* Proyecto ya creado (6 nov 2026): fila PUBLIC? entre reglas punteadas y hoja «Thumb:» dentro de INFO */
.gd-fr.pub.plain { border-bottom: 0; height: 40px; }
.gd-lf.thmb .gd-nm { text-overflow: clip; padding-right: 4px; transition: color 0.2s ease-out, -webkit-mask-size 0.2s; }
.gd-lf.thmb .gd-btn { position: absolute; right: 4px; top: 5px; margin-left: 0; }   /* el botón no le quita ancho al nombre: sin hover se ve entero y, si llega al borde, se corta */
@media (hover: hover) { .gd-lf.thmb:hover .gd-nm { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--bw, 100px) - 28px), transparent calc(100% - var(--bw, 100px))); mask-image: linear-gradient(to right, #000 calc(100% - var(--bw, 100px) - 28px), transparent calc(100% - var(--bw, 100px))); } }
.gd-lf.thmb.sel .gd-nm { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--bw, 100px) - 28px), transparent calc(100% - var(--bw, 100px))); mask-image: linear-gradient(to right, #000 calc(100% - var(--bw, 100px) - 28px), transparent calc(100% - var(--bw, 100px))); }
.gd-lf.thmb.busy { opacity: 0.6; pointer-events: none; }
/* Thumb: en desktop el contenido de [ ] aparece solo con hover sobre el botón mismo (no al pasar por la hoja); en touch está siempre visible */
@media (hover: hover) {
  .gd-lf.thmb:hover .gd-li .gd-btn .c { max-width: 0; opacity: 0; }
  .gd-lf.thmb:hover .gd-li .gd-btn:hover .c, .gd-lf.thmb:hover .gd-li .gd-btn:focus-visible .c { max-width: 1.2em; opacity: 1; }
}
/* Thumb: cuando el botón crece al aparecer el signo, el desvanecido crece con él (en touch el signo ya está medido) */
@media (hover: hover) {
  .gd-lf.thmb:has(.gd-btn:hover) .gd-nm { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--bw, 100px) - 1.2em - 28px), transparent calc(100% - var(--bw, 100px) - 1.2em)); mask-image: linear-gradient(to right, #000 calc(100% - var(--bw, 100px) - 1.2em - 28px), transparent calc(100% - var(--bw, 100px) - 1.2em)); }
}
