/* Panel de Sitio. Sin librerías: tokens en :root, componentes debajo.
   La marca a volumen bajo («la casa»): papel cálido, línea fina, tinta para lo activo y el
   amarillo solo como señal (Publicar, dónde estás). Anybody para el logo y los títulos,
   Public Sans para el texto. Las fuentes las sirve la aplicación en /panel/fonts/. */
@font-face { font-family: Anybody; src: url(/panel/fonts/anybody.woff2) format("woff2"); font-weight: 400 900; font-stretch: 50% 150%; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(/panel/fonts/public-sans.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
:root {
  --bg: #F6F4EE; --surface: #fff; --sunken: #EFECE4; --side: #EFECE4; --ink: #101820; --muted: #555B63; --line: #E4E0D6; --line-strong: #C9C3B5; --input: #9A9487;
  --brand: #101820; --brand-ink: #F2B705; --brand-soft: #fdf1c4; --yellow: #F2B705;
  --ok: #2b8a57; --warn: #a86d12; --danger: #b23b2e;
  --radius: 12px; --radius-sm: 8px;
  --shadow: none;
  /* Lo que te habla (avisos flotantes, el alta, los cuadros): sombra suave, nunca borde negro */
  --pop: 0 18px 50px rgb(16 24 32 / 0.14);
  --focus: 0 0 0 3px color-mix(in srgb, var(--brand) 35%, transparent);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e141b; --surface: #17212b; --sunken: #121a22; --side: #121a22; --ink: #f3f1ea; --muted: #aeb4be; --line: #2c3642; --line-strong: #3a4552; --input: #5b6673;
    --brand: #F2B705; --brand-ink: #101820; --brand-soft: #2e2a14;
    --ok: #66c792; --warn: #e3ae4d; --danger: #ec7a6c;
    --shadow: none; --pop: 0 18px 50px rgb(0 0 0 / 0.45);
  }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1 { font-family: Anybody, "Arial Narrow", sans-serif; font-weight: 800; font-stretch: 88%; font-size: 2.35rem; line-height: 1.05; margin: 0; }
h2 { font-size: 1.05rem; margin: 0; }
h3 { font-size: 0.95rem; margin: 1.5rem 0 0.5rem; }
p { margin: 0 0 0.75rem; }
code, pre { font: 0.86em/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }
code { overflow-wrap: anywhere; }
pre { background: var(--sunken); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.75rem; overflow-x: auto; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--muted); font-weight: 400; }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 0.5rem; top: -3rem; background: var(--surface); padding: 0.5rem 0.8rem; border-radius: var(--radius-sm); z-index: 10; }
.skip:focus { top: 0.5rem; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
a .icon:last-of-type:not(:first-child) { width: 0.85em; height: 0.85em; margin-left: 0.2em; opacity: 0.7; }

/* ---------- barra superior ---------- */
.topbar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 1rem; height: 3.5rem; padding: 0 1.25rem; background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; font-size: 1.45rem; line-height: 0; color: var(--ink); text-decoration: none; } /* SVG en línea (Host.logo) */
.logo svg { display: block; }
/* Sitio solo: el nombre de la web en lugar del logo */
.logo-text { font-family: Anybody, "Arial Narrow", sans-serif; font-weight: 900; font-stretch: 70%; font-size: 1.5rem; line-height: 1; }
.top-links { display: flex; gap: 1.1rem; align-items: center; font-size: 0.92rem; }
.top-links a, .top-links .link { color: var(--ink); font-weight: 600; text-decoration: none; }
.top-links a:hover, .top-links .link:hover { text-decoration: underline; }

@media (max-width: 40rem) { .top-links .hide-sm { display: none; } }

.wrap { max-width: 64rem; margin: 0 auto; padding: 1.75rem 1rem 4rem; }
.main-wide { padding: 0; }

/* ---------- panel de una web: barra lateral + contenido ----------
   El menú, a toda la altura y en papel más oscuro, con el logo arriba y «Salir» al pie; el
   contenido, sobre papel. «Editar sobre la web», lo más usado, en tinta. */
.shell { display: grid; grid-template-columns: 16.5rem minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; background: linear-gradient(to right, var(--side) 16.5rem, transparent 16.5rem); }
.side { position: sticky; top: 0; align-self: start; max-height: 100vh; max-height: 100dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 1.1rem; padding: 1.4rem 1rem 1.1rem; }
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 0.5rem; }
.side-logo { display: inline-flex; font-size: 1.3rem; line-height: 0; color: var(--ink); text-decoration: none; }
.side-logo svg { display: block; }
.side-logo .logo-text { font-size: 1.3rem; }
.side-back { display: inline-block; font-size: 0.88rem; padding: 0 0.5rem; text-decoration: none; }
.side-site { display: flex; gap: 0.7rem; align-items: center; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--surface) 55%, var(--side)); }
.side-site > div { display: flex; flex-direction: column; min-width: 0; }
.side-site strong { line-height: 1.25; font-size: 0.95rem; }
.side-site .avatar { width: 2.1rem; height: 2.1rem; border-radius: 50%; font-size: 0.82rem; }
.side .side-edit { min-height: 2.9rem; background: var(--ink); color: var(--bg); border-color: var(--ink); font-family: Anybody, "Arial Narrow", sans-serif; font-weight: 800; font-stretch: 92%; font-size: 1rem; }
.side-edit .icon { color: var(--yellow); }
.side-url { font-size: 0.8rem; color: var(--muted); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-group { margin: 0.9rem 0 0.3rem 0.75rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav a { display: flex; align-items: center; gap: 0.65rem; min-height: 2.4rem; padding: 0.4rem 0.75rem; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-weight: 500; }
.side-nav a:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.side-nav a[aria-current="page"] { background: var(--surface); font-weight: 650; }
.side-nav a[aria-current="page"]::after { content: ""; flex: none; width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: var(--yellow); }
.side-nav a[aria-current="page"] .count { margin-left: 0; }
.side-nav .icon { color: var(--muted); }
.side-nav a[aria-current="page"] .icon { color: var(--ink); }
.side-foot:empty { display: none; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; padding: 0.9rem 0.75rem 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.side-links { display: flex; flex-direction: column; gap: 0.35rem; }
.side-links a, .side-out .link { color: var(--ink); font-weight: 600; text-decoration: none; }
.side-links a:hover, .side-out .link:hover { text-decoration: underline; }
.side-out .link { font-size: 0.9rem; }
.side-links .hide-sm { display: inline; }
.count { margin-left: auto; min-width: 1.4rem; padding: 0 0.4rem; border-radius: 999px; background: var(--warn); color: #fff; font-size: 0.75rem; font-weight: 700; text-align: center; line-height: 1.4rem; }
/* Crece con la ventana hasta un máximo cómodo, centrado en su espacio: sin hueco a la derecha */
.content { min-width: 0; width: 100%; max-width: 92rem; margin: 0 auto; box-sizing: border-box; padding: 2.5rem clamp(1rem, 4vw, 3.5rem) 4rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.lead { color: var(--muted); margin: 0.4rem 0 0; max-width: 42rem; }
.head-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

@media (max-width: 56rem) {
  .shell { grid-template-columns: minmax(0, 1fr); min-height: 0; background: none; }
  .side { position: static; max-height: none; overflow: visible; gap: 0.8rem; padding: 1rem 1rem 0.5rem; background: var(--side); }
  .side-foot { display: none; }
  .side-group { display: none; }
  .side-nav { display: flex; gap: 0.25rem; overflow-x: auto; margin: 0 -1rem; padding: 0 1rem 0.5rem; scrollbar-width: none; }
  .side-nav ul { display: flex; gap: 0.25rem; }
  .side-nav ul + p + ul { padding-left: 0.6rem; margin-left: 0.35rem; border-left: 1px solid var(--line); }
  .side-nav a { white-space: nowrap; padding: 0.45rem 0.65rem; }
  .side-nav a[aria-current="page"]::after { display: none; }
  .count { margin-left: 0.2rem; }
  .content { padding: 1.5rem 1rem 4rem; }
}

/* ---------- tarjetas y avisos ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.35rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.card > h2, .card-head h2 { font-family: Anybody, "Arial Narrow", sans-serif; font-weight: 800; font-stretch: 88%; font-size: 1.3rem; line-height: 1.1; }
/* Lo que puede esperar: sin fondo, con línea discontinua */
.card.card-calm { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.9rem; }
.card-head a { font-size: 0.9rem; }
.card .intro { margin-top: -0.4rem; }
.card-foot { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
details.card > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: ""; margin-left: auto; width: 0.5rem; height: 0.5rem; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.15s; }
details.card[open] > summary { margin-bottom: 0.9rem; }
details.card[open] > summary::after { transform: rotate(-135deg); }
details.composer-toggle > summary::after { display: none; }
details.composer-toggle:not([open]) { padding: 0; border: 0; background: none; box-shadow: none; }
details.composer-toggle[open] > summary { display: none; }
details:not(.card) > summary { cursor: pointer; color: var(--brand); font-weight: 600; margin: 0.6rem 0; width: fit-content; }
details:not(.card)[open] > summary { margin-bottom: 0.9rem; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.grid-cards .card h2 { margin-bottom: 0.8rem; }

.flash { display: flex; gap: 0.6rem; align-items: center; background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ok) 35%, var(--line)); padding: 0.7rem 1rem; border-radius: var(--radius-sm); margin: 0 0 1rem; }
.flash::before { content: "✓"; font-weight: 800; color: var(--ok); }
.flash.warn { background: color-mix(in srgb, var(--warn) 14%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.flash.warn::before { content: "!"; color: var(--warn); }
.errors { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--danger) 55%, var(--line)); border-radius: var(--radius-sm); padding: 0.7rem 1rem; margin-bottom: 1rem; }
.errors p { margin: 0; }
.errors ul { margin: 0.3rem 0 0; padding-left: 1.2rem; }
.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; background: color-mix(in srgb, var(--warn) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 40%, var(--line)); padding: 0.8rem 1rem; border-radius: var(--radius); margin-bottom: 1.25rem; }
.notice p { margin: 0; }
.blank { text-align: center; padding: 1.5rem 1rem; }
.ok-line::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.notes { color: var(--muted); font-size: 0.9rem; padding-left: 1.2rem; }
.howto { padding-left: 1.2rem; color: var(--muted); font-size: 0.92rem; }
.howto li { margin-bottom: 0.2rem; }
.badge { display: inline-block; font-size: 0.74rem; font-weight: 600; padding: 0.05rem 0.5rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); text-decoration: none; white-space: nowrap; }
.badge.todo { border-color: var(--warn); color: var(--warn); }
.avatar { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 10px; background: var(--accent, var(--brand)); color: var(--on-accent, #fff); font-weight: 700; font-size: 0.9rem; }

/* Estado: punto de color + texto */
.status { display: flex; gap: 0.65rem; align-items: flex-start; margin: 0 0 0.9rem; }
.status p { margin: 0.1rem 0 0; color: var(--muted); overflow-wrap: anywhere; }
.status strong + p { margin-top: 0.1rem; }
.status > div > p:first-child { margin-top: 0; color: var(--ink); }
.dot { flex: none; width: 0.7rem; height: 0.7rem; margin-top: 0.42rem; border-radius: 50%; border: 2px solid var(--muted); }
.status.ok .dot { background: var(--ok); border-color: var(--ok); }
.status.todo .dot { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 25%, transparent); }
.status.off { opacity: 0.75; }
.status .inline-form { margin-top: 0.5rem; }
.status-list .status { padding-bottom: 0.8rem; border-bottom: 1px solid var(--line); }

/* ---------- inicio ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
.stat { display: flex; flex-direction: column; padding: 0.9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.stat:hover { border-color: var(--line-strong); }
.stat strong { font-size: 1.6rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 0.88rem; }
.home { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1rem; align-items: start; }
@media (max-width: 68rem) { .home { grid-template-columns: 1fr; } }
.visits-chart { display: block; width: 100%; height: auto; fill: var(--ink); }
.visits-chart .hit { fill: transparent; }
.visits-chart g:hover path { fill: var(--muted); }
.visits-chart line { stroke: var(--line-strong); stroke-width: 1; }
.visits-axis { display: flex; justify-content: space-between; margin: 0.35rem 0 0.75rem; }
.visits { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.visits th { text-align: left; font-weight: 600; color: var(--muted); }
.visits th, .visits td { padding: 0.3rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.visits .num { text-align: right; font-variant-numeric: tabular-nums; padding-left: 1rem; }
@media (max-width: 30rem) { .stats { gap: 0.5rem; } .stat { padding: 0.7rem; } .stat strong { font-size: 1.3rem; } }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li + li { border-top: 1px solid var(--line); }
.link-list a { display: flex; flex-direction: column; padding: 0.6rem 0.2rem; text-decoration: none; color: var(--ink); }
.link-list a:hover strong { color: var(--brand); }
.link-list small { color: var(--muted); }
.link-list.attention strong::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--warn); margin-right: 0.45rem; vertical-align: 0.1em; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li + li { border-top: 1px solid var(--line); }
.plain-list a { display: block; padding: 0.55rem 0; color: var(--ink); text-decoration: none; }
.plain-list a:hover { color: var(--brand); }

/* ---------- listas de publicaciones ---------- */
.items { list-style: none; margin: 0; padding: 0; }
.item { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; padding-top: 0.2rem; }
.item:last-child { padding-bottom: 0; }
.item-main { min-width: 0; flex: 1; }
.item-main > p { margin: 0 0 0.2rem; overflow-wrap: anywhere; }
.item-title { font-weight: 650; }
.item-meta { color: var(--muted); font-size: 0.85rem; }
.item-actions { display: flex; gap: 0.9rem; align-items: flex-start; flex-shrink: 0; font-size: 0.92rem; }
@media (max-width: 36rem) { .item { flex-direction: column; gap: 0.5rem; } }
.mention.pending { border-left: 3px solid var(--warn); padding-left: 0.8rem; }
.mention.rejected .item-main { opacity: 0.6; }
.mention .item-actions { align-items: center; }
.thumbs { display: flex; gap: 0.35rem; margin: 0.4rem 0 0; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; background: var(--line); }
.chips { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem; }
.chip { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.1rem 0.55rem; border-radius: 999px; border: 1px solid var(--line); background: var(--sunken); color: var(--muted); font: inherit; font-size: 0.8rem; text-decoration: none; }
.chip.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); background: color-mix(in srgb, var(--ok) 8%, var(--surface)); }
.chip.ok::before { content: "✓"; font-weight: 700; }
.chip.error { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); background: color-mix(in srgb, var(--danger) 7%, var(--surface)); }
.chip.action { color: var(--brand); background: var(--surface); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); cursor: pointer; }
.chip.action:hover { background: var(--brand-soft); }
.photo-edit { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 0.9rem; }
.photo-edit img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; background: var(--line); flex-shrink: 0; }
.photo-edit > div { flex: 1; }

/* ---------- botones ---------- */
/* El botón principal es el de Publicar: amarillo, Anybody, 8 px. Los demás, en papel */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 2.75rem; background: var(--yellow); color: #101820; border: 1px solid var(--yellow); border-radius: var(--radius-sm); padding: 0.45rem 1.15rem; font: inherit; font-family: Anybody, "Arial Narrow", sans-serif; font-weight: 800; font-stretch: 92%; font-size: 1rem; text-decoration: none; cursor: pointer; transition: filter 0.12s, background 0.12s; }
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); font-family: inherit; font-weight: 600; font-stretch: 100%; font-size: 0.95rem; }
.btn.ghost:hover { background: var(--brand-soft); filter: none; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.small { min-height: 2.25rem; padding: 0.2rem 0.8rem; font-size: 0.9rem; }
.btn.block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; display: inline-flex; align-items: center; gap: 0.3rem; }
.link.danger, a.danger { color: var(--danger); }
.inline-form { display: inline; margin: 0; }
.actions-row, .row { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin-top: 0.5rem; }

/* ---------- formularios ---------- */
.form fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
.form fieldset + fieldset { margin-top: 1.6rem; }
.form legend { font-weight: 700; margin-bottom: 0.7rem; padding: 0; }
.form label { display: block; margin-bottom: 0.9rem; }
.form label > span { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.form label abbr { text-decoration: none; color: var(--muted); }
.form small, .form .hint { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 0.3rem; }
.form .hint { margin: -0.4rem 0 0.9rem; }
.form input:not([type=color], [type=checkbox], [type=radio], [type=file]), .form textarea, .form select {
  width: 100%; min-height: 2.75rem; padding: 0.5rem 0.75rem; border: 1px solid var(--input); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; transition: border-color 0.12s, box-shadow 0.12s;
}
.form textarea { resize: vertical; line-height: 1.5; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.form input[readonly] { background: var(--sunken); }
.form input[type=file] { font: inherit; max-width: 100%; }
.form input[type=checkbox], .form input[type=radio] { width: 1.1rem; height: 1.1rem; margin: 0.2rem 0 0; accent-color: var(--brand); flex: none; }
.form label.check { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.6rem; }
.form label.check > span { font-weight: 500; margin: 0; }
.form label.check small { margin-top: 0.15rem; }
.form .color-field { display: flex; align-items: center; gap: 0.75rem; }
.form .color-field span { margin: 0; }
.form input[type=color] { width: 3rem; height: 2.2rem; padding: 0.15rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.9rem; }
@media (max-width: 34rem) { .grid2 { grid-template-columns: 1fr; } }
.choices { display: grid; gap: 0.5rem; }
.form label.choice { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.7rem 0.85rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); margin: 0; cursor: pointer; transition: border-color 0.12s, background 0.12s; }
.form label.choice:hover { border-color: var(--brand); }
.form label.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.form label.choice > span { margin: 0; font-weight: 400; }
.form label.choice small { margin-top: 0.1rem; }
.composer textarea { font-size: 1.02rem; }
/* La forma rápida del inicio: la nota en su tarjeta y la vista previa al margen, fuera */
.composer-margin { display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: 1.25rem 1.75rem; align-items: start; margin-bottom: 1rem; }
.composer-card { margin: 0; }
.composer.is-quick label[for="content"] { margin-bottom: 0.4rem; }
.composer.is-quick textarea#content { min-height: 5.5rem; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 1.15rem; line-height: 1.5; }
.composer.is-quick textarea#content:focus { box-shadow: none; }
.composer.is-quick textarea#content::placeholder { color: #8A8F96; }
.quick-extra { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 1.5rem; }
.quick-extra details { margin: 0; }
.quick-extra details > summary { font-weight: 600; font-size: 0.92rem; }
.quick-extra details[open] { flex-basis: 100%; }
.quick-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; margin-top: 0.5rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.quick-bar .also { margin: 0 !important; }
.quick-bar .also legend { float: left; margin: 0 0.9rem 0 0; font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.quick-bar .also .row { display: inline-flex; }
.quick-bar .btn { margin-left: auto; }
/* La vista previa, como una nota al margen: sin tarjeta, con una línea a su izquierda */
.composer-margin > .note-preview { padding: 0.25rem 0 0.25rem 1.1rem; border-left: 2px solid var(--line-strong); font-size: 0.88rem; }
.composer-margin > .note-preview > header { flex-wrap: wrap; }
.composer-margin > .note-preview > header strong { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.composer-margin .sp-post { font-size: 0.86rem; padding: 0.7rem; }
.note-preview.is-reminder p { margin: 0 0 0.5rem; color: var(--muted); font-size: 0.9rem; }
.note-preview.is-reminder a { font-weight: 600; }
.composer-margin .sp-avatar { width: 2.2rem; height: 2.2rem; }
@media (max-width: 68rem) { .composer-margin { grid-template-columns: minmax(0, 1fr); } }
/* Vista previa de la nota: al lado si cabe. Cada red lleva sus colores, también con el panel oscuro */
.composer-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); gap: 1rem 1.25rem; align-items: start; }
.note-preview > header { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.6rem; }
.note-preview > .muted { margin: 0.5rem 0 0; }
.sp-post { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 0.65rem; padding: 0.8rem; border: 1px solid; font: 0.93rem/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-wrap: anywhere; }
.sp-avatar { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; color: #fff; font-weight: 700; }
.sp-head { margin: 0; align-self: center; min-width: 0; }
.sp-head span, .sp-head time { font-weight: 400; }
.sp-head time::before { content: " · "; }
.sp-body { grid-column: 2; min-width: 0; }
.sp-text { margin: 0.1rem 0 0; white-space: pre-wrap; }
.sp-text.is-empty::before { content: "Tu nota aparecerá aquí"; opacity: 0.6; }
.sp-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; margin-top: 0.6rem; border-radius: 10px; overflow: hidden; }
.sp-photos[data-n="1"] { grid-template-columns: 1fr; }
.sp-photos img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.sp-photos[hidden], .sp-card[hidden] { display: none; }
.sp-card { display: grid; gap: 0.1rem; margin-top: 0.6rem; padding: 0.6rem 0.7rem; border: 1px solid; border-radius: 10px; }
.sp-card span { font-size: 0.85rem; }
.sp-actions { display: flex; justify-content: space-between; max-width: 15rem; margin-top: 0.6rem; }
.sp-actions svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sp-post.is-bluesky { background: #fff; color: #0b0f14; border-color: #d4dbe2; border-radius: 0; }
.sp-post.is-bluesky .sp-avatar { background: #1083fe; border-radius: 50%; }
.sp-post.is-bluesky :is(.sp-head span, .sp-head time, .sp-card small, .sp-card span, .sp-actions) { color: #5b6b7b; }
.sp-post.is-bluesky .sp-card { border-color: #d4dbe2; }
.sp-post.is-bluesky .sp-link { color: #1083fe; }
.sp-post.is-mastodon { position: relative; background: #282c37; color: #fff; border-color: #393f4f; border-radius: 8px; }
.sp-post.is-mastodon .sp-avatar { background: #6364ff; border-radius: 8px; }
.sp-post.is-mastodon .sp-body { grid-column: 1 / -1; margin-top: 0.5rem; }
.sp-post.is-mastodon .sp-head { padding-right: 2.6rem; }
.sp-post.is-mastodon .sp-head span { display: block; }
.sp-post.is-mastodon :is(.sp-head span, .sp-head time, .sp-actions) { color: #9baec8; }
.sp-post.is-mastodon .sp-head time::before { content: none; }
.sp-post.is-mastodon .sp-head time { position: absolute; top: 0.8rem; right: 0.8rem; }
.sp-post.is-mastodon .sp-link { color: #a5a6ff; }
.sp-notes p { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--warn); }
.also { margin: 0.4rem 0 0.6rem !important; }
.also legend { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.also .row { gap: 1.2rem; margin: 0; }
.also label.check { margin: 0; }
details.photos { margin: 0 0 0.8rem; }
details.reveal { margin: 0.4rem 0 0.8rem; }
details.reveal > summary { list-style: none; width: fit-content; margin: 0; }
details.reveal > summary::-webkit-details-marker { display: none; }
details.reveal[open] > summary { display: none; }
.form .copy input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; }
.inline-fields { display: flex; gap: 0.6rem; align-items: flex-end; flex-wrap: wrap; }
.inline-fields label { flex: 1 1 16rem; margin: 0; }
.inline-fields .btn { margin-bottom: 0.05rem; }
.affix { display: flex; align-items: center; gap: 0.3rem; color: var(--muted); }
.affix input { flex: 1; min-width: 6rem; }
.affix > span { white-space: nowrap; font-size: 0.85rem; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }

/* ---------- acceso y alta ---------- */
.auth { max-width: 27rem; margin: 1.5rem auto 0; }
.auth-wide { max-width: 40rem; }
.auth > h1 { text-align: center; margin-bottom: 1rem; }
.auth > .card { padding: 1.5rem; }
/* ---------- alta guiada (la pone quien aloja la web: PlazanomiaWeb.AltaLive) ----------
   Dos volúmenes de la marca. La noche (pasos 1 y 2): tinta, una pregunta y una línea, el
   amarillo como única luz. Encima de la web (3 a 6): la portada detrás, más nítida en cada
   paso, y la pregunta en un cuadro con sombra suave. Un solo contador para todo. */
.alta-night { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: #101820; color: #F3F1EA; }
.alta-night :focus-visible { outline: 2px solid #F2B705; outline-offset: 4px; box-shadow: none; }
.night-head { padding: 1.75rem clamp(1rem, 4vw, 2.5rem) 0; }
.night-logo { display: inline-flex; font-size: 1.2rem; line-height: 0; color: #F2B705; }
.night-logo svg { display: block; }
.night-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem clamp(1rem, 4vw, 2.5rem); }
.night-form { width: min(37.5rem, 100%); display: flex; flex-direction: column; gap: 1.9rem; margin: 0; }
.night-q h1 { margin: 0 0 0.9rem; color: #F3F1EA; font-weight: 800; font-stretch: 80%; font-size: clamp(2.2rem, 5vw, 3.1rem); line-height: 1.02; }
.night-q p { margin: 0; font-size: 1.2rem; font-weight: 300; line-height: 1.5; color: #AEB4BE; }
.night-pair { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.75rem; }
@media (max-width: 40rem) { .night-pair { grid-template-columns: minmax(0, 1fr); } }
.night-field { display: flex; flex-direction: column; gap: 0.6rem; margin: 0; }
.night-field > span:first-child { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8C939B; }
.night-field input { width: 100%; padding: 0.6rem 0; border: 0; border-bottom: 2px solid #3A4552; border-radius: 0; background: transparent; color: #F3F1EA; font: inherit; font-size: 1.5rem; font-weight: 300; }
.night-field input:focus { outline: none; border-bottom-color: #F2B705; }
.night-field input:focus-visible { outline: none; }
.night-field input::placeholder { color: #F3F1EA; opacity: 0.3; }
.night-big input { font-size: 1.9rem; border-bottom-color: #F2B705; }
.night-affix { display: flex; align-items: baseline; gap: 0.3rem; }
.night-affix input { flex: 1; min-width: 0; font-size: 1.15rem; }
.night-affix > span { color: #8C939B; white-space: nowrap; }
.night-hint { margin: -0.9rem 0 0; font-size: 0.9rem; color: #8C939B; }
.night-hint strong { color: #F3F1EA; font-weight: 600; }
.night-more { margin: -0.5rem 0 0; }
.alta-night .night-more > summary { width: fit-content; margin: 0; cursor: pointer; color: #AEB4BE; font-size: 0.95rem; font-weight: 400; }
.alta-night .night-more[open] > summary { margin-bottom: 1rem; }
.night-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.night-back { color: #AEB4BE; }
.night-back:hover { color: #F3F1EA; }
.night-errors { padding: 0.75rem 1rem; border-radius: 8px; background: #3a1f1c; color: #ffd9d3; }
.night-errors p { margin: 0; }
.night-btn, .alta-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: 0 1.75rem; border: 0; border-radius: 8px; background: #F2B705; color: #101820; font-family: Anybody, "Arial Narrow", sans-serif; font-weight: 800; font-stretch: 92%; font-size: 1.05rem; text-decoration: none; cursor: pointer; }
.night-btn:hover, .alta-btn:hover { background: #ffc61a; }

.alta-count { display: flex; align-items: center; gap: 0.75rem; width: max-content; white-space: nowrap; margin: 0 auto 1.75rem; padding: 0.45rem 0.9rem; border: 1px solid #DDD8CC; border-radius: 999px; background: #fff; color: #4F5663; font-size: 0.8rem; }
.alta-count.is-night { border-color: #2C3742; background: transparent; color: #AEB4BE; }
.alta-marks { display: flex; gap: 5px; }
.alta-marks i { width: 8px; height: 4px; border-radius: 2px; background: #D3CEC2; }
.alta-marks i.done { background: #101820; }
.alta-marks i.now { width: 22px; background: #F2B705; }
.is-night .alta-marks i { background: #3A4552; }
.is-night .alta-marks i.done { background: #8C939B; }
.is-night .alta-marks i.now { background: #F2B705; }

/* Encima de la web: siempre en claro, también con el sistema en oscuro (la web es la suya) */
.alta { --bg: #F6F4EE; --surface: #fff; --sunken: #EFECE4; --ink: #101820; --muted: #555B63; --line: #E4E0D6; --line-strong: #C9C3B5; --input: #9A9487; --brand: #101820; --brand-ink: #F2B705; --brand-soft: #fdf1c4;
  position: relative; min-height: 100vh; min-height: 100dvh; color-scheme: light; color: #101820; }
.alta-web { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; background: #FBFAF7; pointer-events: none; transition: filter 1.2s ease, opacity 1.2s ease; }
/* Lo que se pregunta, enmarcado en amarillo (medido en la web: SitioHooks.FrameAnchor) */
.alta-hl { display: none; position: absolute; z-index: 1; pointer-events: none; border-radius: 8px; box-shadow: 0 0 0 4px #F2B705; transition: top 0.35s ease, left 0.35s ease, width 0.35s ease, height 0.35s ease; }
@media (min-width: 40.01rem) {
  html[data-fa-hl] .alta-hl { display: block; top: var(--fa-hl-y); left: var(--fa-hl-x); width: var(--fa-hl-w); height: var(--fa-hl-h); }
}
.alta-pop { position: absolute; z-index: 2; transition: top 0.35s ease, left 0.35s ease; width: min(34rem, calc(100% - 2rem)); padding: 1.6rem 1.75rem 1.5rem; border: 1px solid #E4E0D6; border-radius: 12px; background: #fff; color: #101820; box-shadow: 0 18px 50px rgb(16 24 32 / 0.16); }
.alta-pop.at-top { top: 1rem; left: 50%; transform: translateX(-50%); }
.alta-pop.at-left { top: 1.5rem; left: clamp(1rem, 4vw, 3rem); }
.alta-pop.at-right { top: 1.5rem; right: clamp(1rem, 4vw, 3rem); width: min(28rem, calc(100% - 2rem)); }
/* La flecha. La dirección apunta arriba, a la barra del navegador (que no se toca); las demás,
   a lo que preguntan en la web de detrás, medido allí (SitioHooks.FrameAnchor, en <html>) */
.alta-arrow { display: none; position: absolute; top: -9px; left: 50%; width: 16px; height: 16px; margin-left: -8px; background: #fff; border-left: 1px solid #E4E0D6; border-top: 1px solid #E4E0D6; transform: rotate(45deg); }
.at-top > .alta-arrow { display: block; }
@media (min-width: 40.01rem) {
  html[data-fa-side] .alta-pop.at-anchor { top: var(--fa-top); left: var(--fa-left); right: auto; transform: none; }
  html[data-fa-side] .at-anchor > .alta-arrow { display: block; left: var(--fa-arrow); }
  html[data-fa-side="above"] .at-anchor > .alta-arrow { top: auto; bottom: -9px; transform: rotate(225deg); }
  html[data-fa-side="right"] .at-anchor > .alta-arrow { top: var(--fa-arrow); left: -9px; margin: -8px 0 0; transform: rotate(-45deg); }
  html[data-fa-side="left"] .at-anchor > .alta-arrow { top: var(--fa-arrow); left: auto; right: -9px; margin: -8px 0 0; transform: rotate(135deg); }
}
.alta-pop h2 { margin: 0 0 0.6rem; font-family: Anybody, "Arial Narrow", sans-serif; font-weight: 800; font-stretch: 88%; font-size: 1.85rem; line-height: 1.05; }
.alta-pop > p, .alta-pop .form > p { margin: 0 0 1rem; color: #4F5663; }
.alta-pop .flash, .alta-pop .errors { margin-bottom: 0.9rem; }
.alta-url { margin: 0 0 0.9rem !important; padding: 0.7rem 0.9rem; border-radius: 10px; background: #F6F4EE; font-size: 1.15rem; overflow-wrap: anywhere; }
.alta-url a { color: #101820; font-weight: 650; text-decoration: none; }
.alta-pop .choices { margin-bottom: 1rem; }
.alta-kinds, .alta-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 1.25rem !important; }
.form label.alta-kind { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; margin: 0; padding: 0 1rem; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; }
.form label.alta-kind > span { margin: 0; font-weight: 500; }
.form label.alta-kind:has(input:checked) { border-color: #101820; background: #FDF1C4; box-shadow: inset 0 0 0 0.5px #101820; }
.form label.alta-kind:has(input:checked) > span { font-weight: 650; }
.alta-colors { gap: 0.75rem; }
.form label.alta-swatch { position: relative; width: 2.75rem; height: 2.75rem; margin: 0; border: 1.5px solid rgb(16 24 32 / 0.3); border-radius: 50%; background: var(--c); cursor: pointer; }
.form .alta-swatch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.form label.alta-swatch:has(input:checked) { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #101820; }
.form label.alta-swatch:has(input:focus-visible) { outline: 2px solid #101820; outline-offset: 6px; }
.form label.alta-other { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0 0 0.25rem; }
.form label.alta-other > span { margin: 0; font-weight: 600; }
.form .alta-other.is-on input { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #101820; }
.alta-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.25rem; }
.alta-actions-end { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-left: auto; }
.launch { margin: 0 0 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.alta-later, .alta-back { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0; border: 0; background: none; color: #101820; font: inherit; font-size: 0.95rem; text-decoration: underline 2px #F2B705; text-underline-offset: 5px; cursor: pointer; }
.alta-note { margin: 0 0 1rem; padding: 0.75rem 0.9rem; border-radius: 8px; background: #F6F4EE; color: #4F5663; font-size: 0.9rem; }
.alta-note p { margin: 0; }
.alta-note p + p { margin-top: 0.4rem; }
.alta > .alta-count { position: fixed; z-index: 2; left: 50%; bottom: 1.25rem; margin: 0; transform: translateX(-50%); }

/* Al llegar de la noche, la noche se retira desde el nombre, con un borde de luz */
@property --r { syntax: "<length>"; inherits: false; initial-value: -180px; }
.alta-veil { position: fixed; inset: 0; z-index: 3; display: flex; align-items: flex-end; justify-content: flex-end; padding: clamp(1.5rem, 5vw, 4rem); pointer-events: none;
  background: radial-gradient(circle at var(--fa-name-x, 45%) var(--fa-name-y, 18%), rgb(242 183 5 / 0.55) var(--r), #101820 calc(var(--r) + 180px));
  -webkit-mask-image: radial-gradient(circle at var(--fa-name-x, 45%) var(--fa-name-y, 18%), transparent var(--r), #000 calc(var(--r) + 180px));
  mask-image: radial-gradient(circle at var(--fa-name-x, 45%) var(--fa-name-y, 18%), transparent var(--r), #000 calc(var(--r) + 180px));
  animation: alta-luz 2s cubic-bezier(0.6, 0, 0.9, 0.45) 0.15s both; }
/* El texto va fuera de la máscara: se lee mientras la noche se abre */
.alta-veil-text { position: fixed; z-index: 4; right: clamp(1.5rem, 5vw, 4rem); bottom: clamp(4rem, 9vh, 6rem); max-width: 24rem; margin: 0; text-align: right; color: #F3F1EA; font-family: Anybody, "Arial Narrow", sans-serif; font-weight: 800; font-stretch: 80%; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.02; pointer-events: none; animation: alta-out 2.1s ease forwards; }
.is-luz .alta-pop, .is-luz > .alta-count, .is-luz > .alta-hl { animation: alta-in 0.4s ease 1.9s both; }
/* Una sola apertura de 2 s: despacio al principio y rápida al final, sin pasarse ni volver */
/* Desde -180 px (el ancho del borde difuminado): la luz nace de un punto, no de golpe */
@keyframes alta-luz { from { --r: -180px; } 80% { opacity: 1; } to { --r: 150vmax; opacity: 0; visibility: hidden; } }
/* De noche hasta saber dónde está el nombre: tinta lisa, sin halo ni transparencia (el halo
   con radio 0 ya se ve), para que la luz no aparezca en otro sitio y salte */
html:not([data-fa-name]) .alta-veil { background: #101820; -webkit-mask-image: none; mask-image: none; }
html:not([data-fa-name]) .alta-veil, html:not([data-fa-name]) .alta-veil-text, html:not([data-fa-name]) .is-luz .alta-pop, html:not([data-fa-name]) .is-luz > .alta-count, html:not([data-fa-name]) .is-luz > .alta-hl { animation-play-state: paused; }
@keyframes alta-out { 0%, 55% { opacity: 1; } to { opacity: 0; visibility: hidden; } }
@keyframes alta-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .alta-veil, .alta-veil-text { display: none; }
  .is-luz .alta-pop, .is-luz > .alta-count, .is-luz > .alta-hl { animation: none; }
}

/* En el móvil, la pregunta sube desde abajo, sobre la web */
@media (max-width: 40rem) {
  .alta-pop, .alta-pop.at-top, .alta-pop.at-left, .alta-pop.at-right { position: relative; top: auto; left: auto; right: auto; transform: none; width: auto; margin: 38vh 0 0; padding: 1.4rem 1.1rem 5.5rem; border-radius: 18px 18px 0 0; border-bottom: 0; }
  .alta-arrow { display: none; }
  .alta { display: flow-root; }
  /* La dirección: una tarjeta con la flecha hacia la barra del navegador, arriba o abajo */
  .alta-pop.at-bar { margin: 1.1rem 0.75rem 5rem; padding-bottom: 1.4rem; border-bottom: 1px solid #E4E0D6; border-radius: 14px; }
  .alta-pop.at-bar > .alta-arrow { display: block; top: -9px; bottom: auto; left: 50%; transform: rotate(45deg); }
  html[data-fa-bar="bottom"] .alta-pop.at-bar { margin: 30vh 0.75rem 1.25rem; padding-bottom: 1.4rem; }
  html[data-fa-bar="bottom"] .alta-pop.at-bar > .alta-arrow { top: auto; bottom: -9px; transform: rotate(225deg); }
  html[data-fa-bar="bottom"] .is-step-3 > .alta-count { top: calc(0.75rem + env(safe-area-inset-top)); bottom: auto; }
  .alta > .alta-count { bottom: calc(1rem + env(safe-area-inset-bottom)); }
}


/* ---------- administrador ---------- */
.filter { padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); }
.filter input { width: 100%; min-height: 2.4rem; padding: 0.4rem 0.7rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; }
.site-list { list-style: none; margin: 0; padding: 0; }
.site-list li { display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 1rem; border-top: 1px solid var(--line); }
.site-list li:first-child { border-top: 0; }
.site-list li:hover { background: var(--sunken); }
.site-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.site-name { font-weight: 650; color: var(--ink); text-decoration: none; }
.site-name::after { content: ""; position: absolute; inset: 0; }
.site-list li { position: relative; }
.site-list .badges, .site-list .ext { position: relative; z-index: 1; }
.badges { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-top: 0.25rem; }
.badges:empty { display: none; }
.ext { white-space: nowrap; font-size: 0.9rem; }

/* ---------- tablas ---------- */
.table-scroll { overflow-x: auto; }
.dns, .diff { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin: 0.5rem 0 0.8rem; }
.dns th, .dns td, .diff th, .diff td { text-align: left; padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.dns th, .diff th { color: var(--muted); font-weight: 600; }
.diff tr.add td:last-child { background: color-mix(in srgb, var(--ok) 14%, transparent); }
.diff tr.change td:last-child { background: color-mix(in srgb, var(--warn) 18%, transparent); }
.diff tr.remove td:last-child { background: color-mix(in srgb, var(--danger) 14%, transparent); }
.diff tr.same { color: var(--muted); }

/* ---------- OpenStreetMap ---------- */
.osm-map { position: relative; height: 20rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #e8e4da; touch-action: none; cursor: grab; margin-bottom: 0.8rem; user-select: none; }
.osm-map[data-editable="1"] { cursor: crosshair; }
.osm-map .tiles { position: absolute; inset: 0; }
.osm-map .tiles img { position: absolute; width: 256px; height: 256px; max-width: none; }
.osm-map .pin { position: absolute; width: 18px; height: 18px; margin: -18px 0 0 -9px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--danger); border: 2px solid #fff; box-shadow: 0 1px 3px #0006; }
.osm-map .pin.other { width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; transform: none; background: #3b6fb6; }
.osm-map .map-ui { position: absolute; top: 0.5rem; left: 0.5rem; display: flex; flex-direction: column; gap: 2px; }
.osm-map .map-ui button { width: 2rem; height: 2rem; border: 1px solid #0003; border-radius: 4px; background: #fff; color: #222; font: 700 1.1rem/1 system-ui, sans-serif; cursor: pointer; }
.osm-map .map-attr { position: absolute; right: 0; bottom: 0; background: #fffc; color: #333; font-size: 0.7rem; padding: 0 0.3rem; }
.osm-map .map-attr a { color: #2a5db0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- horario ---------- */
.hours-grid .grid-tools { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.7rem; }
.hours-grid .grid { display: grid; grid-template-columns: 3rem repeat(7, minmax(0, 1fr)); grid-auto-rows: 0.8rem; user-select: none; -webkit-user-select: none; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hours-grid .head { grid-row: span 2; display: grid; place-items: center; font-size: 0.82rem; font-weight: 700; border-left: 1px solid var(--line); }
.hours-grid .time { font-size: 0.72rem; color: var(--muted); line-height: 1; transform: translateY(-0.35rem); padding-right: 0.4rem; text-align: right; }
.hours-grid .c { border-left: 1px solid var(--line); cursor: pointer; touch-action: none; }
.hours-grid .c.hour { border-top: 1px solid var(--line); }
.hours-grid .c:hover { background: var(--brand-soft); }
.hours-grid .c.on { background: var(--yellow); border-left-color: color-mix(in srgb, var(--yellow) 75%, var(--ink)); }
.hours-grid .c.on.hour { border-top-color: color-mix(in srgb, var(--yellow) 75%, var(--ink)); }
.form .day-fields { margin-top: 1rem; }
.form .day-fields summary { cursor: pointer; font-weight: 600; margin-bottom: 0.6rem; }
.form .day-fields .hint { margin: 0 0 0.7rem; }
.form label.day-field { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.form label.day-field > span { margin: 0; }
.form .special-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.4fr); gap: 0 0.7rem; padding-top: 0.6rem; border-top: 1px solid var(--line); }
.form .special-row label { margin-bottom: 0.6rem; }
.form .special-row label > span:first-child { font-size: 0.85rem; }
.form .special-row small { display: inline; margin: 0; }
@media (max-width: 52rem) {
  .form .special-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Tipos de publicación (pestañas del compositor) y editor de páginas */
.tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 1rem; }
.tabs button { background: none; font: inherit; cursor: pointer; }
.tabs a, .tabs button { padding: 0.3rem 0.8rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 0.9rem; }
.tabs a:hover, .tabs button:hover { background: var(--sunken); }
.tabs a[aria-current], .tabs button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
.chip.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); background: color-mix(in srgb, var(--warn) 8%, var(--surface)); }
p.chip { margin: 0 0 0.6rem; }
.form fieldset.block, .form fieldset.add-block { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.9rem 1rem 0.6rem; margin: 0 0 1rem; }
.form fieldset.block + fieldset.block { margin-top: 0; }
.form fieldset.block > legend, .form fieldset.add-block > legend { font-weight: 700; padding: 0 0.35rem; }
.form fieldset.block:target { border-color: var(--brand); box-shadow: var(--focus); }
.block-actions { justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 0.5rem; }
.add-block { background: var(--sunken); }

.md-editor { margin: 0 0 1.25rem; font-size: 1rem; }

/* Galería de temas: cada tarjeta enseña la web de verdad, a escala, en un iframe */
.theme-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, 244px); gap: 1.25rem 1rem; justify-content: center; }
.theme-card { position: relative; display: flex; flex-direction: column; width: 244px; padding: 0.45rem 0.45rem 0.6rem; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.theme-card.is-current { border-color: var(--ink); }
.theme-card:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 3px var(--yellow); }
.theme-card:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.theme-card label { display: block; flex: 1; cursor: pointer; }
.theme-thumb { display: block; width: 226px; height: 170px; overflow: hidden; border-radius: 6px; border: 1px solid var(--line); background: #fff; pointer-events: none; }
.theme-thumb iframe { width: 1130px; height: 850px; border: 0; transform: scale(0.2); transform-origin: 0 0; }
.theme-name { display: flex; align-items: center; flex-wrap: wrap; gap: 0.2rem 0.5rem; margin-top: 0.6rem; }
.theme-name input { margin: 0; }
.theme-now { font-style: normal; font-size: 0.72rem; font-weight: 650; padding: 0.05rem 0.5rem; border-radius: 999px; background: var(--ink); color: var(--surface); }
.theme-desc { display: block; margin-top: 0.2rem; font-size: 0.85rem; color: var(--muted); }
.theme-credit { display: block; margin-top: 0.4rem; font-size: 0.75rem; color: var(--muted); }
.theme-big { display: inline-block; margin-top: 0.4rem; font-size: 0.82rem; }
/* El botón de guardar va siempre a la vista, aunque la galería sea larga */
.form:has(.theme-gallery) .actions-row { position: sticky; bottom: 0; margin-top: 1rem; padding: 0.75rem 0; background: var(--surface); border-top: 1px solid var(--line); }

/* ---------- calendario de publicaciones ---------- */
.cal-nav { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.8rem; }
.cal-nav strong { flex: 1; }
.cal-views { margin: 0; flex-wrap: nowrap; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.cal-dow { background: var(--sunken); padding: 0.3rem; text-align: center; font-size: 0.8rem; color: var(--muted); }
.cal-day { background: var(--surface); min-height: 5.2rem; padding: 0.25rem; display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.cal-day.is-empty { background: var(--sunken); }
.cal-day.is-past { background: var(--sunken); }
.cal-day.is-today .cal-num { font-weight: 700; color: var(--brand); }
.cal-num { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--muted); }
.cal-add { text-decoration: none; padding: 0 0.35rem; border-radius: 6px; font-weight: 700; }
.cal-add:hover { background: var(--brand-soft); }
.cal-item { font-size: 0.75rem; line-height: 1.25; padding: 0.1rem 0.3rem; border-radius: 4px; background: var(--sunken); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.cal-item.is-scheduled { background: var(--brand-soft); color: var(--ink); font-weight: 600; }
button.cal-item { display: block; width: 100%; border: 0; text-align: left; font: inherit; font-size: 0.75rem; cursor: pointer; }
.cal-item[draggable="true"] { cursor: grab; }
.cal-item.is-new { background: var(--surface); color: var(--ink); font-weight: 600; outline: 1.5px dashed var(--brand); outline-offset: -1.5px; }
.cal-item.is-dragging { opacity: 0.45; }
.cal-day.is-over { outline: 2px dashed var(--brand); outline-offset: -2px; background: var(--brand-soft); }
.cal-nav button.link { border: 0; background: none; font: inherit; color: var(--link, inherit); cursor: pointer; }
.calendar.is-week .cal-day { min-height: 11rem; }
.calendar.is-week .cal-item { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .cal-day { min-height: 3.6rem; }
  .cal-item time { display: none; }
  .calendar.is-week { grid-template-columns: minmax(0, 1fr); }
  .calendar.is-week .cal-day { min-height: 2.6rem; }
  .calendar.is-week .cal-item time { display: inline; }
}

/* ---------- editor de la web (SitioWeb.Panel.EditorLive) ----------
   A pantalla completa: la barra (papel y línea fina: la herramienta no compite con la web),
   la web en un iframe y, en Diseñar, el panel lateral (abajo, como una hoja, en el móvil). */
.ed-main { margin: 0; }
.ed { height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: #e9e6df; }
.ed-bar { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; padding: 0.55rem 1.25rem; background: #F6F4EE; color: #101820; border-bottom: 1px solid #DDD8CC; }
.ed-logo { display: inline-flex; align-items: center; color: #101820; }
.ed-logo svg { height: 1.25rem; width: auto; }
.ed-modes { display: inline-flex; gap: 2px; padding: 3px; background: #ECE9E1; border-radius: 10px; }
.ed-modes button { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.4rem; padding: 0 1rem; border: 1.5px solid transparent; border-radius: 8px; background: transparent; color: #4F5663; font: inherit; font-weight: 600; cursor: pointer; }
.ed-modes button[aria-pressed="true"] { background: #fff; color: #101820; border-color: #101820; }
.ed-modes .icon { width: 1rem; height: 1rem; }
.ed-gap { flex: 1 1 0; }
.ed-ghost { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 0.85rem; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #101820; font: inherit; font-size: 0.93rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.ed-ghost:hover { background: #ECE9E1; }
.ed-ghost[aria-pressed="true"] { background: #fff; border-color: #101820; }
.ed-count { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.93rem; color: #4F5663; white-space: nowrap; }
.ed-dot { width: 8px; height: 8px; border-radius: 50%; background: #2b8a57; }
.ed-dot.is-pending { background: #F2B705; }
.ed-publish { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1.4rem; border: 0; border-radius: 8px; background: #F2B705; color: #101820; font-family: Anybody, "Arial Narrow", sans-serif; font-stretch: 92%; font-weight: 800; font-size: 1.05rem; cursor: pointer; }
.ed-publish:disabled { background: #E4E0D6; color: #6B7079; cursor: not-allowed; }
.ed-bar :focus-visible, .ed-dialog :focus-visible, .ed-mobbar :focus-visible { outline: 2px solid #101820; outline-offset: 2px; box-shadow: none; }
.ed-hint { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin: 0; padding: 0.5rem 1.25rem; background: #FBFAF7; color: #4F5663; border-bottom: 1px solid #ECE9E1; font-size: 0.9rem; }
.ed-hint strong { color: #101820; }
/* La bienvenida al llegar del alta: una vez, flotando con sombra suave junto a la barra */
.ed-welcome { position: fixed; z-index: 30; top: 4.6rem; right: 1.5rem; width: min(22rem, calc(100% - 2rem)); display: flex; flex-direction: column; gap: 0.5rem; padding: 1.1rem 1.25rem; border: 1px solid #E4E0D6; border-radius: 12px; background: #fff; color: #101820; box-shadow: 0 18px 50px rgb(16 24 32 / 0.16); }
.ed-welcome strong { font-family: Anybody, "Arial Narrow", sans-serif; font-weight: 800; font-stretch: 88%; font-size: 1.4rem; line-height: 1.1; }
.ed-welcome span { font-size: 0.92rem; line-height: 1.55; color: #4F5663; }
.ed-publish-wrap { position: relative; display: inline-flex; }
/* Con la bienvenida, «Publicar» enmarcado en amarillo y la flecha del cuadro hacia él */
.ed-publish.is-pointed { box-shadow: 0 0 0 3px #F6F4EE, 0 0 0 7px #F2B705; }
.ed-welcome-arrow { position: absolute; z-index: 31; top: calc(100% + 13px); left: 50%; width: 16px; height: 16px; margin-left: -8px; background: #fff; border-left: 1px solid #E4E0D6; border-top: 1px solid #E4E0D6; transform: rotate(45deg); }
.ed-welcome button { align-self: flex-end; min-height: 2.5rem; padding: 0; border: 0; background: none; color: #101820; font: inherit; font-weight: 600; text-decoration: underline 2px #F2B705; text-underline-offset: 4px; cursor: pointer; }
.ed > .flash { margin: 0.5rem 1.25rem 0; }
.ed-body { flex: 1 1 auto; min-height: 0; display: flex; }
.ed-frame { flex: 1 1 auto; min-width: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.ed-drawer { flex: 0 0 20rem; overflow-y: auto; padding: 1.25rem; background: #fff; color: #101820; border-left: 1px solid #d9d4c7; }
.ed-drawer h2 { font-family: Anybody, "Arial Narrow", sans-serif; font-weight: 900; font-stretch: 88%; font-size: 1.7rem; margin-bottom: 1rem; }
.ed-overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgb(16 24 32 / 0.55); }
.ed-dialog { width: 100%; max-width: 38rem; max-height: calc(100vh - 2rem); overflow-y: auto; padding: 1.5rem; border-radius: 16px; background: #fff; color: #101820; box-shadow: 0 20px 50px rgb(16 24 32 / 0.35); }
.ed-dialog.ed-small { max-width: 28rem; }
.ed-dialog h2 { font-family: Anybody, "Arial Narrow", sans-serif; font-weight: 900; font-stretch: 88%; font-size: 1.8rem; line-height: 1.1; margin-bottom: 0.4rem; }
.ed-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.ed-close { flex: 0 0 auto; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 10px; background: #f1eee6; color: #101820; font-size: 1.5rem; cursor: pointer; }
.ed-changes { list-style: none; margin: 1rem 0; padding: 0; border: 1px solid #e4ded2; border-radius: 12px; }
.ed-changes li { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem 0.9rem; border-bottom: 1px solid #efebe2; }
.ed-changes li:last-child { border-bottom: 0; }
.ed-change { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; overflow-wrap: anywhere; }
.ed-change .small { color: #555c66; }
.ed-change .ed-warn { color: #9a3412; }
.ed-tag { flex: 0 0 auto; min-width: 4.5rem; text-align: center; margin-top: 2px; padding: 3px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.ed-tag.is-new { background: #dff3e6; color: #14532d; }
.ed-tag.is-edit { background: #FFF1C2; color: #5c4300; }
.ed-tag.is-removed { background: #fde2df; color: #8a1c12; }
.ed-tag.is-design { background: #ece9f6; color: #3b2f6b; }
.ed-history { display: inline-flex; gap: 2px; }
.ed-ghost .icon { width: 1.05rem; height: 1.05rem; }
.ed-ghost .ed-label { margin-left: 0.4rem; }
/* La barra en una línea: por debajo de 1400 px, Calendario y Ver como visitante solo con su
   icono (con title y su nombre para lectores), y sin el contador, que ya
   está en Publicar */
@media (max-width: 1400px) { .ed-ghost .ed-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; } }
@media (max-width: 1400px) { .ed-count { display: none; } }
.ed-dialog.ed-wide { max-width: 60rem; }
.ed-resched { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.9rem 0 0; padding: 0.7rem; border-radius: 10px; background: #f1eee6; }
.ed-resched label { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0; font-weight: 600; }
.ed-resched input { min-height: 2.25rem; padding: 0 0.5rem; border: 1px solid #c6cbd3; border-radius: 8px; font: inherit; }
.ed-cal-legend { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.9rem 0 0; }
.ed-cal-legend .cal-item { display: inline-block; }
.ed-drawer .grid2 { grid-template-columns: minmax(0, 1fr); }
.ed-drawer .theme-gallery { grid-template-columns: minmax(0, 1fr); }
.ed-sub { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin: 1.25rem 0 0.5rem; }
.ed-sections { list-style: none; margin: 0 0 0.75rem; padding: 0; border: 1px solid #e4ded2; border-radius: 10px; }
.ed-sections li { display: flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.4rem 0.3rem 0.7rem; border-bottom: 1px solid #efebe2; }
.ed-sections li:last-child { border-bottom: 0; }
.ed-sections label { flex: 1 1 auto; display: flex; align-items: center; gap: 0.5rem; min-height: 2.5rem; margin: 0; font-weight: 600; }
.ed-sections label small { display: block; color: #555c66; font-weight: 400; font-size: 0.78rem; }
.ed-sections li.is-off label { color: #6b7079; text-decoration: line-through; }
.ed-mini { width: 2.25rem; height: 2.25rem; border: 0; border-radius: 8px; background: #f1eee6; color: #101820; font-size: 1rem; cursor: pointer; }
.ed-mini:disabled { opacity: 0.35; cursor: default; }
.ed-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 8px; background: transparent; color: #101820; cursor: pointer; }
.ed-icon:not(:disabled):hover { background: #ECE9E1; }
.ed-icon:disabled { opacity: 0.4; cursor: default; }
.ed-mobbar { display: none; }
.ed-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.4rem; height: 1.4rem; padding: 0 0.35rem; border-radius: 999px; background: #101820; color: #F2B705; font-family: "Public Sans", sans-serif; font-size: 0.8rem; font-weight: 700; }
.ed-tag.is-scheduled { background: #dbe6f7; color: #1e3a6b; }
/* El + flotante (una nota nueva) y el aviso al publicar */
.ed-fab { position: fixed; right: 24px; bottom: 24px; z-index: 25; width: 64px; height: 64px; border-radius: 50%; border: 0; background: #F2B705; color: #101820; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgb(16 24 32 / 0.28); cursor: pointer; }
.ed-fab:hover { background: #ffc61a; }
.ed-fab:focus-visible { outline: 3px solid #101820; outline-offset: 3px; }
.ed-fab svg { transition: transform 0.15s ease; }
.ed-fab.is-open svg { transform: rotate(45deg); }
.ed-fab-menu { position: fixed; right: 24px; bottom: 100px; z-index: 26; margin: 0; padding: 6px; list-style: none; min-width: 11rem; border-radius: 12px; background: #fff; box-shadow: 0 10px 30px rgb(16 24 32 / 0.25); }
.ed-fab-menu button { display: block; width: 100%; min-height: 2.75rem; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: #101820; font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.ed-fab-menu button:hover { background: #F6F4EE; }
.ed-fab-menu button:focus-visible { outline: 3px solid #F2B705; outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) { .ed-fab svg { transition: none; } }
.ed-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 40; max-width: calc(100% - 32px); box-sizing: border-box; display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 12px; background: #101820; color: #fff; box-shadow: 0 10px 30px rgb(16 24 32 / 0.35); }
.ed-toast > div { display: flex; flex-direction: column; gap: 2px; }
.ed-toast strong { font-size: 0.95rem; }
.ed-toast span { font-size: 0.9rem; color: #c9cfd6; }
.ed-toast .ed-toast-ok { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: #F2B705; color: #101820; display: inline-flex; align-items: center; justify-content: center; }
.ed-dialog .ed-warn { color: #9a3412; }
@media (max-width: 720px) {
  /* Abajo, al alcance del pulgar: los modos, deshacer y Publicar */
  .ed-desk { display: none !important; }
  .ed-mobbar { display: flex; align-items: center; gap: 0.4rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 32; padding: 0.5rem 0.6rem calc(0.5rem + env(safe-area-inset-bottom)); background: #F6F4EE; border-top: 1px solid #DDD8CC; }
  .ed-welcome { top: auto; bottom: calc(4.6rem + env(safe-area-inset-bottom)); right: 1rem; }
  .ed-body { padding-bottom: 3.6rem; }
  .ed.is-design .ed-drawer { bottom: 3.6rem; }
  /* Una barra compacta: el nombre ya está en la web, y la pantalla es para ella */
  .ed-bar { padding: 0.5rem 0.75rem; gap: 0.4rem; }
  .ed-logo, .ed-bar .ed-gap { display: none; }
  .ed-modes button { min-height: 2.25rem; padding: 0 0.8rem; }
  .ed-ghost { min-height: 2.25rem; padding: 0 0.6rem; font-size: 0.85rem; }
  .ed-publish { min-height: 2.25rem; padding: 0 0.9rem; font-size: 0.95rem; }
  .ed-hint { font-size: 0.85rem; padding: 0.5rem 1rem; }
  .ed-count { display: none; }
  .ed-drawer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; max-height: 55vh; border-left: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px rgb(16 24 32 / 0.25); }
  .ed-overlay { align-items: flex-end; padding: 0; }
  .ed-dialog { max-width: none; border-radius: 18px 18px 0 0; max-height: 88vh; }
  /* Abajo, los modos solo con su icono (el nombre, para lectores de pantalla), como en el diseño */
  .ed-mobbar .ed-mode-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ed-mobbar .ed-modes button { min-width: 2.75rem; justify-content: center; }
  .ed-fab { right: 16px; bottom: calc(4.4rem + env(safe-area-inset-bottom)); width: 58px; height: 58px; }
  .ed-fab-menu { right: 16px; bottom: calc(8.6rem + env(safe-area-inset-bottom)); }
  .ed-toast { bottom: calc(4.4rem + env(safe-area-inset-bottom)); }
}
