/* Clients — plantilla de Greener (la de archive, stock y backroom): barra de 64 px, buscador arriba, mosaico, ficha a pantalla completa. Un solo tema claro. */
:root {
  --bg: #ffffff;
  --fg: #111111;
  --line: #e5e5e5;
  --tile: #f4f4f4;
  --field: #efefef;
  --muted: #6b6b6b;
  --blue: #2440ec;
  --blue-press: #1a31c4;
  --red: #eb4626;
  --green: #5bc656;
  --pink: #fd97e3;
  --radius: 18px;
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --gap: 12px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); }
body { font-family: var(--font); font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
svg { display: block; }

/* boot / login */
.center { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.login { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.login .g { width: 34px; color: var(--pink); }
.login h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.login p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 34ch; }
.login p em { font-style: normal; color: var(--fg); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 12px; font-size: 15px; font-weight: 700; white-space: nowrap; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-press); }
.btn.ghost { background: var(--field); }
.btn.ghost:hover { background: var(--line); }
.btn.small { height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
.btn:disabled { opacity: .4; cursor: default; }
.btn.danger { color: var(--red); }

/* shell */
.shell { display: grid; grid-template-columns: 64px minmax(0, 1fr); min-height: 100%; }
.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  padding: 16px 0; border-right: 1px solid var(--line); background: var(--bg); z-index: 20;
}
.logo { display: flex; align-items: center; justify-content: center; width: 40px; height: 50px; color: var(--pink); }
.logo svg { width: 22px; height: auto; }
.logo:hover { opacity: .75; }
.navgroup { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.navgroup.bottom { margin-top: auto; }
.iconlink { position: relative; width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: background-color .15s; }
.iconlink:hover { background: var(--tile); }
.iconlink[aria-current="true"] { background: var(--field); }
.iconlink svg { width: 22px; height: 22px; }
.iconlink img { width: 28px; height: 28px; object-fit: contain; }
.iconlink .ini { font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.iconlink .av { --s: 26px; }
.tip {
  position: fixed; white-space: nowrap; background: var(--fg); color: var(--bg); font-size: 12px; padding: 4.8px 12px; border-radius: 999px;
  pointer-events: none; z-index: 90; transform: translateY(-50%);
}

/* avatars */
.av { --s: 24px; width: var(--s); height: var(--s); border-radius: 50%; overflow: hidden; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff; font-size: calc(var(--s) * .42); font-weight: 700; line-height: 1; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* content */
.content { min-width: 0; padding: 16px 16px 48px; }
.topbar { position: sticky; top: 0; z-index: 10; background: var(--bg); margin-top: -16px; padding: 16px 0 4px; }
.search { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px; border-radius: 16px; background: var(--field); }
.search svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 16px; outline: none; }
.search input::placeholder { color: var(--muted); }
.search .clear { flex: none; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.search .clear:hover { background: var(--line); }
.search .clear svg { width: 14px; height: 14px; color: var(--fg); }
.bar { display: flex; align-items: center; gap: 16px; margin: 12px 0 20px; min-height: 26px; font-size: 14px; }
.bar .mode { padding: 4px 0; border-bottom: 2px solid var(--fg); font-weight: 700; }
.bar .switch { color: var(--muted); padding: 4px 0; border-bottom: 2px solid transparent; }
.bar .switch:hover { color: var(--fg); border-bottom-color: var(--line); }
.bar .brandtag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--field); }
.bar .brandtag svg { width: 12px; height: 12px; }

/* mosaic */
.grid { display: flex; gap: var(--gap); align-items: flex-start; }
.col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.card { display: block; cursor: pointer; position: relative; }
/* the image carries its own rounded corners and the tile clips them too: some browsers drop the overflow clip once the image is painted */
.media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--tile); isolation: isolate; clip-path: inset(0 round var(--radius)); }
.media img, .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
/* a hairline inside the corner, so the rounding still shows when the piece itself is white (most PSD previews) */
.media::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(17,17,17,.09); pointer-events: none; z-index: 1; }
.media .acts, .media .info, .media .badge { z-index: 2; }
/* and the white buttons and labels keep a soft edge over white pieces */
.media .act, .media .info, .media .badge { box-shadow: 0 1px 4px rgba(17,17,17,.14); }
.media video { opacity: 0; transition: opacity .2s; }
.card.playing .media video { opacity: 1; }
.badge { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 4px; background: var(--bg); color: var(--fg);
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.badge svg { width: 10px; height: 10px; }
.card .by { position: absolute; left: 8px; top: 8px; --s: 26px; box-shadow: 0 0 0 2px var(--bg); }
.acts { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }
.act { width: 36px; height: 36px; border-radius: 12px; background: var(--bg); color: var(--fg); display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(-2px); transition: opacity .15s, transform .15s, background-color .15s; }
/* the actions show on hover; a saved piece keeps its bookmark visible in the corner */
.card:hover .act, .card:focus-within .act, .act.bm.saved { opacity: 1; transform: none; }
@media (hover: none) { .act { opacity: 1; transform: none; } }
.act svg { width: 18px; height: 18px; }
.act:hover { background: var(--field); }
.act.on { background: var(--blue); color: #fff; }
.act.on:hover { background: var(--blue-press); }
.act.del.armed { background: var(--red); color: #fff; }
.card .sel { position: absolute; right: 10px; bottom: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px var(--bg); }
.label { padding: 0 12px; margin-top: 8px; font-size: 12.8px; line-height: 1.3; }
.label .n { font-weight: 700; }
.label .d { color: var(--muted); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.more { height: 1px; }
.empty { padding: 64px 0; max-width: 46ch; }
.empty h2 { font-size: 18px; margin: 0 0 8px; }
.empty p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.logo[aria-current="true"] { color: var(--pink); }
.iconlink.lang { font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.bar .count { color: var(--muted); }

/* archive cards: the title below and, under it, brand · kind of piece · year */
.label .n { font-weight: 400; color: var(--fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.label .d { -webkit-line-clamp: 1; }
.act.drive { background: var(--blue); color: #fff; }
.act.drive:hover { background: var(--blue-press); }
.act.hide.armed { background: var(--red); color: #fff; }
.card .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--line); }
.card .ph svg { width: 34px; height: 34px; }
.bar { flex-wrap: wrap; row-gap: 6px; }
.bar .brandbtn { display: inline-flex; align-items: center; gap: 4px; }
.bar .brandbtn svg { width: 14px; height: 14px; }
.bar .brandbtn.on { color: var(--fg); font-weight: 700; border-bottom-color: var(--fg); }
.bar .pend { color: var(--muted); font-size: 12.8px; margin-left: auto; }
.bar .ktabs { display: flex; gap: 16px; margin-right: 8px; }
.bar .ktabs a { padding: 4px 0; border-bottom: 2px solid transparent; color: var(--muted); }
.bar .ktabs a:hover { color: var(--fg); border-bottom-color: var(--line); }
.bar .ktabs a[aria-current="true"] { color: var(--fg); font-weight: 700; border-bottom-color: var(--fg); }
.bar .mode:empty { display: none; }
/* weight and real size of the file, on hover */
.info { position: absolute; left: 12px; bottom: 12px; background: var(--bg); color: var(--fg); font-size: 11px; font-weight: 700; padding: 6px 11px; line-height: 1;
  border-radius: 999px; font-variant-numeric: tabular-nums; opacity: 0; transform: translateY(2px); transition: opacity .15s, transform .15s; pointer-events: none; }
.card:hover .info, .card:focus-within .info { opacity: 1; transform: none; }
@media (hover: none) { .info { opacity: 1; transform: none; } }
.act.bm svg { width: 19px; height: 19px; }
.dbtns { display: flex; gap: 8px; }
.dbtns .btn { flex: 1; }
.dbtns .btn svg { width: 18px; height: 18px; }
.dbtns .btn { min-width: 0; padding: 0 14px; font-size: 14px; }
.dbtns .btn.sq { flex: none; width: 44px; padding: 0; }
.dpath { overflow-wrap: anywhere; }

/* download formats */
.menu { position: fixed; z-index: 92; min-width: 180px; background: var(--bg); border-radius: 12px; padding: 6px; box-shadow: 0 6px 24px rgba(0,0,0,.14); }
.menu button { display: flex; width: 100%; justify-content: space-between; gap: 18px; padding: 9px 10px; border-radius: 8px; font-size: 13px; }
.menu button:hover { background: var(--field); }
.menu button b { font-weight: 700; }
.menu button span { color: var(--muted); font-variant-numeric: tabular-nums; }

.toast { position: fixed; left: calc(50% + 32px); bottom: 24px; transform: translateX(-50%); background: var(--fg); color: var(--bg);
  font-size: 13px; padding: 10px 16px; border-radius: 999px; z-index: 95; display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 120px); }
.toast.err { background: var(--red); }
.toast .spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* brand list */
.menu.scroll { max-height: min(60vh, 520px); overflow-y: auto; min-width: 220px; }
.menu button.on { background: var(--field); }

/* detail */
body.noscroll { overflow: hidden; }
.detail { position: fixed; inset: 0; z-index: 80; background: rgba(255,255,255,.97); }
.dwrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; height: 100%; }
.dmedia { display: flex; align-items: center; justify-content: center; padding: 28px; min-height: 0; cursor: zoom-out; }
/* the large image, in a frame with the piece's own proportions (Drive's white margin left outside) */
.dframe { position: relative; overflow: hidden; border-radius: var(--radius); clip-path: inset(0 round var(--radius)); background: var(--tile); cursor: default;
  aspect-ratio: var(--r); width: min(100%, calc((100dvh - 56px) * var(--r))); box-shadow: 0 0 0 1px rgba(17,17,17,.09); }
.dframe img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dinfo { border-left: 1px solid var(--line); background: var(--bg); overflow-y: auto; padding: 14px 22px 40px; }
.dtop { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 10px; }
.dtop .iconlink:disabled { opacity: .3; cursor: default; }
.dtop .iconlink svg { width: 20px; height: 20px; }
.dinfo h2 { font-size: 20px; line-height: 1.25; margin: 0 0 10px; letter-spacing: -.01em; }
.ddesc { margin: 0 0 18px; font-size: 14px; line-height: 1.5; }
.muted { color: var(--muted); }
.dnote { margin: 8px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 14px; margin: 0 0 20px; font-size: 13px; line-height: 1.4; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; overflow-wrap: anywhere; }
.lk { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.lk:hover { text-decoration-color: var(--fg); }
.dtags { margin-bottom: 18px; }
.dtags button:hover { background: var(--line); }
.dfile { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; margin: 0; }
@media (max-width: 900px) {
  .dwrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); overflow-y: auto; }
  .dmedia { padding: 16px; max-height: 62vh; }
  .dframe { width: min(100%, calc((62vh - 32px) * var(--r))); }
  .dinfo { border-left: 0; overflow: visible; }
}

/* admin */
.admin { max-width: 1120px; }
.admin h1 { font-size: 24px; margin: 6px 0 4px; }
.tabs { list-style: none; display: flex; gap: 24px; margin: 12px 0 24px; padding: 0; overflow-x: auto; scrollbar-width: none; }
.tabs button { font-size: 14px; padding: 4px 0; white-space: nowrap; border-bottom: 2px solid transparent; }
.tabs button[aria-pressed="true"] { font-weight: 700; border-bottom-color: var(--fg); }
.tabs button:hover { border-bottom-color: var(--line); }
.rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.row { display: grid; gap: 16px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.row.a { grid-template-columns: minmax(220px, 1fr) auto; }
.rows.dim { margin-top: 28px; opacity: .7; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who .av { --s: 32px; }
.who > div > b { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who > div > span { display: block; color: var(--muted); font-size: 12.8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.seg { display: inline-flex; gap: 3px; }
.seg button { font-size: 12px; padding: 4px 8px; border-radius: 8px; background: var(--field); white-space: nowrap; }
.seg button:hover { background: var(--line); }
.seg button.on { background: var(--blue); color: #fff; }
.seg button:disabled { opacity: .45; cursor: default; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button, .chips span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--field); }
.chips button.on { background: var(--fg); color: #fff; }
.chips .none { background: none; color: var(--muted); padding-left: 0; }
.addrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 18px; }
.field { height: 40px; border: 0; border-radius: 10px; background: var(--field); padding: 0 12px; font-size: 14px; outline: none; min-width: 0; }
textarea.field { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.4; }
.note { color: var(--muted); font-size: 13px; line-height: 1.5; max-width: 70ch; }
.num { font-variant-numeric: tabular-nums; }

.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.hgrid .media { margin-bottom: 8px; }
.hgrid .label { padding: 0 4px; margin: 0 0 8px; }
@media (max-width: 640px) { .row.a { grid-template-columns: 1fr; gap: 10px; } }

@media (max-width: 640px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; justify-content: flex-start; gap: 6px;
    padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px)); border-right: 0; border-top: 1px solid var(--line); }
  .logo { height: 40px; }
  .logo svg { width: auto; height: 30px; }
  .navgroup { flex-direction: row; gap: 4px; }
  .navgroup.bottom { margin-top: 0; margin-left: auto; }
  .tip { display: none; }
  .content { padding-bottom: 96px; }
  .toast { left: 50%; bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
/* vídeos: el chip lleva la duración; al pasar el ratón, también el peso y la resolución (y se mueve la vista previa) */
.badge.vid { font-variant-numeric: tabular-nums; white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
.badge.vid .mo { display: none; }
.card:hover .badge.vid .mo, .card:focus-within .badge.vid .mo { display: inline; }
@media (hover: none) { .badge.vid .mo { display: inline; } }
/* Administración › Acceso: solo se lee (los accesos se dan en Usuarios de Get it done!) */
.rolechip { display: inline-block; padding: 5px 11px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; }
.rolechip.u { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
/* tomas: la tarjeta de un grupo lleva «N tomas» arriba a la izquierda; abierta, las tomas en muro con sus datos */
.tkpill { position: absolute; left: 12px; top: 12px; z-index: 2; display: flex; align-items: center; gap: 5px; background: var(--bg); color: var(--fg);
  font-size: 11px; font-weight: 700; padding: 4px 9px 4px 7px; border-radius: 999px; box-shadow: 0 1px 4px rgba(17,17,17,.14); }
.tkpill svg { width: 13px; height: 13px; }
.takesview .badge.vid .mo { display: inline; }
.bar .mode .back { display: inline-flex; vertical-align: -3px; margin-right: 6px; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 6px; }
.bar .mode .back:hover { background: var(--field); }
.bar .mode .back svg { width: 16px; height: 16px; }

/* ===== Clients ===== */

/* entrada: formulario de email y código */
.login { width: min(100%, 340px); }
.login form { display: grid; gap: 10px; width: 100%; }
.login .field { width: 100%; height: 44px; font-size: 15px; text-align: left; }
.login .field.code { text-align: center; letter-spacing: .35em; font-size: 18px; }
.login .btn { width: 100%; }
.login .links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.linkbtn { font-size: 13px; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.linkbtn:hover { color: var(--fg); text-decoration-color: var(--fg); }
.login .msg { font-size: 13px; color: var(--muted); }
.login .msg.err { color: var(--red); }
.login .msg:empty { display: none; }
.notice { text-align: left; background: var(--tile); border-radius: 16px; padding: 18px 20px; display: grid; gap: 10px; font-size: 13.5px; line-height: 1.5; max-height: 46vh; overflow: auto; }
.notice b { font-weight: 700; }
.login.wide { width: min(100%, 520px); }

/* barra: espacio cerrado, selectores, recuento */
.bar .closed { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.bar .count { margin-left: auto; font-variant-numeric: tabular-nums; }
.menu .sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu .clr { color: var(--muted); }

/* tarjetas */
.card .media { aspect-ratio: var(--r, 1); }
.card .media img { opacity: 0; transition: opacity .25s; }
.card .media img.in { opacity: 1; }
.label .d { color: var(--muted); }

/* ficha */
.dmedia { flex-direction: column; gap: 14px; }
.dframe video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #000; }
.dframe .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--line); }
.dframe .ph svg { width: 48px; height: 48px; }
.strip { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; padding: 2px; scrollbar-width: thin; cursor: default; }
.strip button { flex: none; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--tile); box-shadow: inset 0 0 0 1px rgba(17,17,17,.09); }
.strip button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.strip button[aria-current="true"] { box-shadow: 0 0 0 2px var(--blue); }
.dsec { margin: 22px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.vers { display: flex; flex-direction: column; gap: 2px; margin: 0 -8px; }
.ver { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; text-align: left; width: 100%; }
.ver:hover { background: var(--tile); }
.ver[aria-current="true"] { background: var(--field); }
.ver .th { width: 44px; height: 44px; border-radius: 9px; overflow: hidden; background: var(--tile); }
.ver .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ver .vl { font-size: 13.5px; font-weight: 700; display: block; }
.ver .vm { font-size: 12px; color: var(--muted); display: block; font-variant-numeric: tabular-nums; }
.ver .dl { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--field); }
.ver .dl svg { width: 17px; height: 17px; }
.ver .dl:disabled { opacity: .45; cursor: default; }
.soon { margin-top: 14px; font-size: 12px; color: var(--muted); line-height: 1.45; }

/* panel */
.admin h1 { font-size: 24px; letter-spacing: -.01em; }
.admin .sub { color: var(--muted); font-size: 14px; margin: 0 0 22px; line-height: 1.5; max-width: 70ch; }
.spaces { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.space { border-radius: var(--radius); background: var(--tile); padding: 18px 20px; display: grid; gap: 12px; }
.space h2 { margin: 0; font-size: 18px; }
.space .host { color: var(--muted); font-size: 13px; }
.space .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.space .stats b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.space .stats span { font-size: 11.5px; color: var(--muted); }
.space .acts2 { display: flex; gap: 8px; flex-wrap: wrap; }
.state { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--fg); color: #fff; }
.state.open { background: var(--green); }
.row.d { grid-template-columns: minmax(180px, 1.2fr) minmax(120px, 1fr) minmax(120px, 1fr) auto; }
.row.u { grid-template-columns: minmax(220px, 1.4fr) minmax(110px, .8fr) minmax(110px, .8fr) minmax(110px, .8fr) auto; }
.row.p { grid-template-columns: 52px minmax(200px, 1.6fr) minmax(90px, .6fr) minmax(90px, .6fr) auto; }
.row.b { grid-template-columns: minmax(160px, 1fr) minmax(120px, 1fr) auto; }
.row.h { color: var(--muted); font-size: 12px; padding-top: 0; }
.row .pth { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--tile); }
.row .pth img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row b { font-weight: 700; }
.row .m { color: var(--muted); font-size: 12.8px; }
.cpick { display: inline-flex; gap: 6px; margin: 0 0 18px; flex-wrap: wrap; }
.cpick button { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--field); }
.cpick button.on { background: var(--fg); color: #fff; }
@media (max-width: 760px) {
  .row.d, .row.u, .row.p, .row.b { grid-template-columns: 1fr; gap: 6px; }
  .row.h { display: none; }
}

.sprite { position: absolute; }

/* módulos del espacio (p. ej. Social Ranking): botón destacado en la barra y la página dentro, a todo el alto */
.navsep { width: 24px; height: 1px; background: var(--line); margin: 6px 0; list-style: none; }
.iconlink.hl { background: var(--blue); color: #fff; }
.iconlink.hl:hover { background: var(--blue-press); }
.iconlink.hl[aria-current="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--blue); }
.modview { margin: -16px -16px -48px; }
.modview iframe { display: block; width: 100%; height: 100vh; height: 100dvh; border: 0; background: var(--bg); }
@media (max-width: 640px) {
  .navsep { width: 1px; height: 24px; margin: 0 6px; }
  .modview { margin-bottom: -96px; }
  .modview iframe { height: calc(100dvh - 60px); }
}

/* Clients: la g en azul Greener y la barra en celeste Greener */
:root { --gblue: #1941f5; --celeste: #58c0f7; }
.logo, .logo[aria-current="true"], .login .g { color: var(--gblue); }
.sidebar { background: var(--celeste); border-right-color: transparent; }
.sidebar .iconlink, .sidebar .iconlink.hl { color: var(--gblue); background: transparent; box-shadow: none; }
.sidebar .iconlink:hover, .sidebar .iconlink.hl:hover { background: transparent; opacity: .7; }
.sidebar .iconlink[aria-current="true"], .sidebar .iconlink.hl[aria-current="true"] { color: #fff; background: transparent; opacity: 1; }
.sidebar .navsep { background: rgba(255, 255, 255, .7); }
@media (max-width: 640px) { .sidebar { border-top-color: transparent; } }

/* la vista previa grande nunca se deforma */
.dframe img { object-fit: contain; }

/* Color de barra por espacio. RovensaNext: verde Greener. */
[data-space="rovensanext"] { --side: #5bc656; }
[data-space="rovensanext"] .sidebar { background: var(--side); }
