/* Montserrat (texto) y Archivo (títulos y marca), propias; licencias en /licencias. */
/* latin-ext */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/montserrat-9.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* latin */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/montserrat-10.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* latin-ext, cursiva */
@font-face { font-family: 'Montserrat'; font-style: italic; font-weight: 100 900; font-display: swap; src: url(/montserrat-4.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* latin, cursiva */
@font-face { font-family: 'Montserrat'; font-style: italic; font-weight: 100 900; font-display: swap; src: url(/montserrat-5.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(/Archivo-Variable.ttf) format('truetype'); }
/* Colores de Emkubar (los mismos de hub-v2.css). Todo el hex vive aquí; claro por defecto y oscuro según el sistema. */
:root {
  color-scheme: light dark;
  --bg: #FBF4E8; --bg2: #F2E9D9; --card: #FFFFFF; --ink: #12232E; --soft: #4B5E6A; --line: #E6E0D5;
  --pet: #015474; --pet-ink: #013A52; --coral: #FF204E; --teal: #5FACB4; --amber: #F9A318; --amber-ink: #1B2A33; --amber-txt: #7A4500;
  --ok: #1F5E3A; --bad: #A3361A; --chip: #EEF4F6; --coral-txt: #C2103A; --violet: #6A4FB0;
  --edge: color-mix(in srgb, var(--soft) 75%, var(--bg)); --scrim: color-mix(in srgb, var(--ink) 60%, transparent);
  --disp: 'Archivo', Montserrat, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #081C26; --bg2: #0E2A38; --card: #132F40; --ink: #EEF3F5; --soft: #A9BDC7; --line: #244657;
    --pet: #7CC4CB; --pet-ink: #BFE6F0; --amber-txt: #F7C978;
    --ok: #7FD3A0; --bad: #FF9F80; --chip: #1A3D50; --coral-txt: #FF8FA6; --violet: #B9A6F0;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 Montserrat, system-ui, sans-serif; overflow-wrap: anywhere; }
h1, h2, h3, p { margin: 0; }
h1 { font-family: var(--disp); font-stretch: 112%; font-size: 1.75rem; line-height: 1.2; font-weight: 800; } h2 { font-size: 1.05rem; font-weight: 600; } h3 { font-size: .92rem; font-weight: 600; }
a { color: inherit; } .muted { color: var(--soft); } small, .small { font-size: .85rem; }
:focus-visible { outline: 2px solid var(--pet); outline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
.btn { border: 1px solid var(--line); border-radius: 6px; background: none; padding: 6px 14px; min-height: 40px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn:hover { background: var(--bg2); } .btn:disabled { opacity: .5; cursor: wait; }
.btn.main { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); font-weight: 600; } .btn.main:hover { filter: brightness(1.08); }
.btn.sm { min-height: 34px; padding: 2px 10px; font-size: .85rem; } .btn.danger { color: var(--bad); }
.link { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; } .link:hover { text-decoration: underline; }
.row { display: flex; gap: 8px 10px; flex-wrap: wrap; align-items: center; } .between { justify-content: space-between; } .grow { flex: 1; min-width: 0; }
.stack, .part { display: grid; gap: 12px; align-content: start; grid-template-columns: minmax(0, 1fr); } .pre { white-space: pre-wrap; }
label { display: grid; gap: 4px; font-size: .9rem; }
input, select, textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--edge); background: var(--card); border-radius: 6px; }
textarea { min-height: 100px; resize: vertical; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; } .login form { width: min(100%, 340px); display: grid; gap: 16px; }
.logo { display: block; border-radius: 22%; }
.error { color: var(--bad); } .error:empty { display: none; }
.top { display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; padding: 12px clamp(16px, 4vw, 32px); border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 10px; align-items: center; font-family: var(--disp); font-stretch: 112%; font-weight: 800; color: var(--pet-ink); text-decoration: none; }
.top nav { display: flex; gap: 20px; } .top nav a { text-decoration: none; color: var(--soft); padding: 6px 0; border-bottom: 2px solid transparent; } .top nav a.on { color: var(--ink); border-color: var(--pet); }
.me { margin-left: auto; gap: 18px; color: var(--soft); font-size: .9rem; } .me .link { padding: 6px 0; }
main { width: 100%; max-width: 980px; margin: 0 auto; padding: clamp(22px, 4vw, 40px) clamp(16px, 4vw, 32px) 64px; display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.card { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: grid; gap: 10px; align-content: start; text-decoration: none; }
a.card:hover, button.card:hover { border-color: var(--pet); } button.card { text-align: left; cursor: pointer; width: 100%; background: var(--card); }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; } .bar i { display: block; height: 100%; background: var(--pet); } .stack:has(> .bar) { gap: 6px; }
.tag { font-size: .8rem; color: var(--soft); white-space: nowrap; } .t-bad { color: var(--bad); font-weight: 600; }
.who { display: inline-flex; gap: 8px; align-items: center; } .who b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2); font-size: .72rem; font-weight: 600; position: relative; flex: none; }
.who.on b::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; background: var(--ok); border: 2px solid var(--bg); border-radius: 50%; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; margin-top: -12px; } .tabs a { padding: 8px 0; text-decoration: none; color: var(--soft); border-bottom: 2px solid transparent; white-space: nowrap; } .tabs a.on { color: var(--ink); border-color: var(--pet); }
.board { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(200px, 1fr)); overflow-x: auto; } .col { background: var(--bg2); border-radius: 8px; padding: 12px; display: grid; gap: 10px; align-content: start; min-height: 160px; } .col .card { padding: 12px; gap: 6px; }
.col.over, .drop.over { outline: 2px dashed var(--amber); outline-offset: -2px; }
.list > * { padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; } .list > :last-child { border-bottom: 1px solid var(--line); } .list > a:hover { color: var(--pet-ink); }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } .gallery button { border: 0; background: none; padding: 0; cursor: pointer; text-align: left; } .gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: var(--bg2); border-radius: 6px; } .gallery span { display: block; padding: 4px 0; font-size: .82rem; }
.list .link + small { display: block; }
.empty { color: var(--soft); } .drop > .empty { border: 1px dashed var(--edge); border-radius: 8px; padding: 32px 16px; text-align: center; }
summary { cursor: pointer; color: var(--soft); padding: 6px 0; }
dialog { border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: inherit; padding: 24px; width: min(94vw, 520px); max-height: 92vh; overflow: auto; } dialog::backdrop { background: var(--scrim); } dialog.wide { width: min(96vw, 1100px); } dialog img, dialog video { max-width: 100%; max-height: 70vh; display: block; margin: auto; }
#avisos { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 9; max-width: min(380px, 92vw); } #avisos div { background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 6px; }
code.pass { font-size: 1.15rem; background: var(--bg2); padding: 10px; border-radius: 6px; user-select: all; text-align: center; }
@media (max-width: 560px) { .top nav { order: 3; width: 100%; } .me { gap: 14px; } }
@media (max-width: 560px) { .list > .row > .link.grow, .list > .row > a.grow { flex-basis: 100%; } .list > .row > small { flex: 1; } }
.who b img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.big { gap: 18px; } .big .who b { width: 76px; height: 76px; font-size: 1.4rem; } .big .who.on b::after { width: 16px; height: 16px; right: 2px; bottom: 2px; }
.label { width: 96px; } .me a { text-decoration: none; } .me a.on { color: var(--ink); }
@media (max-width: 560px) { .big > .grow { flex-basis: 60%; } }
.people { border: 1px solid var(--edge); border-radius: 6px; padding: 4px 11px; margin: 0; max-height: 230px; overflow: auto; } .people legend { font-size: .9rem; padding: 0 4px; margin-left: -4px; }
.people label { padding: 6px 0; cursor: pointer; } .people input { width: 20px; height: 20px; margin: 0; padding: 0; accent-color: var(--pet); flex: none; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px; background: var(--line); color: var(--ink); font-size: .76rem; font-weight: 600; } .badge.new { background: var(--amber); color: var(--amber-ink); }
.list > .row > a.grow.task { flex: 1 1 0; }
.task { display: grid; text-decoration: none; } .task:hover > span { color: var(--pet-ink); text-decoration: underline; }
@media (max-width: 560px) { .list > .row > a.grow.task { flex-basis: 0; } .list > a.row > .grow { flex-basis: 60%; } }
.none { display: none; } .cap::first-letter { text-transform: uppercase; } .top nav .link { color: var(--soft); padding: 6px 0; } .top nav { white-space: nowrap; }
.money { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } .money > div { display: grid; } .money b { font-size: 1.2rem; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); } .cal .head { padding: 6px 8px; font-size: .82rem; color: var(--soft); } .cal > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.day { min-height: 96px; padding: 6px; display: grid; gap: 4px; align-content: start; } .day .num { font-size: .84rem; color: var(--soft); } .day.now .num { color: var(--pet-ink); font-weight: 700; } .day .wd { display: none; } .day.pad { background: var(--bg2); }
.ev { font-size: .8rem; line-height: 1.3; padding: 2px 6px; border-left: 3px solid var(--edge); background: var(--bg2); text-decoration: none; overflow: hidden; } .ev.reunion { border-color: var(--ink); } .ev.entrega { border-color: var(--bad); color: var(--bad); font-weight: 600; } .ev.done { text-decoration: line-through; color: var(--soft); } .legend { display: flex; gap: 10px; flex-wrap: wrap; }
.results { max-height: 55vh; overflow: auto; } .results > * { width: 100%; }
@media (max-width: 700px) { .cal { display: block; border-left: 0; } .cal .head, .day.pad, .day.bare:not(.now) { display: none; } .day { min-height: 0; border-right: 0 !important; padding: 10px 0; } .day .wd { display: inline; } .ev { padding: 6px 8px; font-size: .9rem; } .top nav { overflow-x: auto; gap: 16px; } }
.top nav, .tabs { scrollbar-width: none; }
.day { cursor: pointer; } .day:hover { background: var(--bg2); } .day.out { background: var(--bg2); } .day.out .num, .day.out .ev { opacity: .75; } .day .ev:hover { text-decoration: underline; } .day .num { justify-self: start; padding: 2px 4px; }
@media (max-width: 700px) { .day.out { background: none; } }
.undo { margin-left: 14px; font-weight: 700; text-decoration: underline; min-height: 32px; }
.chat { display: grid; gap: 12px; } .msgs { height: max(240px, calc(100vh - 440px)); overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; padding: 14px; overflow-wrap: anywhere; } .msg { padding-top: 12px; } .msg.same { padding-top: 2px; } .msg .line { flex-wrap: nowrap; align-items: start; } .msg .del { color: var(--soft); opacity: 0; } .msg:hover .del, .del:focus-visible { opacity: 1; } .msgday { text-align: center; color: var(--soft); font-size: .82rem; padding-top: 12px; } .write { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; } .write textarea { min-height: 56px; max-height: 160px; }
@media (hover: none) { .msg .del { opacity: 1; } }
.hint { display: block; }
.person { text-decoration: none; color: inherit; } .person { cursor: pointer; } .person:hover { text-decoration: underline; } .write[hidden] { display: none; }
.list > .row.dm { flex-wrap: nowrap; text-decoration: none; } .list > .row.dm > .grow { flex: 1 1 0; min-width: 0; } .dm .hint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dm > small { flex: none; } .dm:hover { background: var(--bg2); }
fieldset.checks { max-height: none; overflow: visible; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; } .chips .btn { white-space: nowrap; flex: none; } .chips .on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.crumbs { min-height: 56px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--bg2); border-radius: 6px; padding: 10px 14px; }
.folders { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } .folder { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 8px; padding-right: 8px; } .folder:hover { background: var(--bg2); } .folder a { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; padding: 12px; text-decoration: none; }
.file { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; } .file .grow { min-width: 0; flex: 1; } .file audio { width: 100%; max-width: 420px; height: 40px; margin-top: 6px; display: block; } .dots { font-size: 1.1rem !important; flex: none; }
.fico { flex: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg2); padding: 0; overflow: hidden; display: grid; place-items: center; font-size: .68rem; font-weight: 700; color: var(--soft); cursor: pointer; } .fico img { width: 100%; height: 100%; object-fit: cover; } .fico.aud, .fico.vid { color: var(--coral-txt); } .fico.doc { color: var(--ink); }
.noimg { aspect-ratio: 4/3; display: grid; place-items: center; background: var(--bg2); border-radius: 6px; color: var(--soft); font-weight: 700; }
.stage { background: var(--bg2); border-radius: 6px; padding: 8px; } .stage img { min-height: 40px; } .pdf { width: 100%; height: 68vh; border: 1px solid var(--line); border-radius: 6px; } dialog audio { width: 100%; } .code { margin: 0; max-height: 62vh; overflow: auto; background: var(--bg2); border-radius: 6px; padding: 14px; font: .85rem/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; } .menu .btn { justify-content: center; width: 100%; }
.ico { width: 1.25em; height: 1.25em; flex: none; } .btn .ico { margin-right: 6px; } .folder > a .ico { width: 40px; height: 40px; } .fico .ico { width: 32px; height: 32px; } .noimg .ico { width: 56px; height: 56px; }
.ico.ambar { color: var(--amber); } .ico.rojo { color: var(--coral); } .ico.verde { color: var(--ok); } .ico.azul { color: var(--pet); } .ico.celeste { color: var(--teal); } .ico.morado { color: var(--violet); } .ico.rosa { color: var(--coral-txt); } .ico.naranja { color: var(--amber-txt); } .ico.gris { color: var(--soft); }
.sheet { overflow: auto; max-height: 62vh; border: 1px solid var(--line); border-radius: 6px; } .sheet table { border-collapse: collapse; font-size: .85rem; } .sheet td, .sheet th { border: 1px solid var(--line); padding: 4px 8px; text-align: left; vertical-align: top; min-width: 44px; max-width: 360px; white-space: pre-wrap; } .sheet th { background: var(--bg2); color: var(--soft); font-weight: 500; text-align: center; } .sheet thead th { position: sticky; top: 0; } .sheet .num { text-align: right; white-space: nowrap; }
.word { background: var(--bg2); border-radius: 6px; padding: 20px; max-height: 62vh; overflow: auto; display: grid; gap: 8px; } .word > * { min-width: 0; } .word p, .word h3, .word h4, .word h5, .word h6 { margin: 0; white-space: pre-wrap; } .word h3 { font-size: 1.3rem; } .word h4 { font-size: 1.12rem; } .word h5, .word h6 { font-size: 1rem; } .word .gap { min-height: .6em; } .word .mid { text-align: center; } .word .end { text-align: right; } .word .sheet { max-height: none; background: var(--bg); } .word img { margin: 0; max-height: 420px; }
.word .li { display: flex; gap: 8px; } .word .mk { flex: none; min-width: 1.2em; } .word .l1 { padding-left: 24px; } .word .l2 { padding-left: 48px; } .word :is(.l3, .l4, .l5, .l6, .l7, .l8) { padding-left: 72px; }
.word .slide { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 16px; display: grid; gap: 6px; } .word .slide > * { min-width: 0; }
@media (max-width: 560px) { .list > .row.dm > small { flex: none; } .top .brand { font-size: 0; gap: 0; } }
.wipe { justify-self: end; } .wipe[hidden] { display: none; }
.pic { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; max-width: 100%; margin-top: 4px; } .pic img { height: 200px; max-width: 100%; min-width: 60px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: var(--bg2); display: block; }
.tray { grid-column: 1 / -1; max-height: 190px; overflow-y: auto; } .tray[hidden] { display: none; } .tray .att { display: grid; gap: 2px; justify-items: center; width: 112px; } .tray .att img { height: 56px; max-width: 110px; object-fit: cover; border-radius: 6px; } .tray .ico { width: 40px; height: 40px; } .nm { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip { padding-inline: 12px; } .clip .ico { margin: 0; display: block; } .card2 { display: flex; gap: 12px; align-items: center; text-align: left; max-width: min(420px, 100%); margin-top: 4px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg2); color: inherit; font: inherit; cursor: pointer; } .card2 .ico { width: 32px; height: 32px; } .card2 span { min-width: 0; } .card2 b { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 560px) { .write { grid-template-columns: 1fr; } .write > .row:last-child { justify-content: space-between; } .msgs { height: max(240px, calc(100vh - 470px)); } }
/* Mensaje directo: la conversación llena la pantalla. */
#app > div:has(.chat.full) { display: flex; flex-direction: column; height: 100vh; height: 100dvh; } #app > div:has(.chat.full) > header { flex: none; }
main:has(.chat.full) { flex: 1; min-height: 0; max-width: 1400px; display: flex; flex-direction: column; gap: 12px; padding-block: 16px; } .chat.full { flex: 1; min-height: 0; display: flex; flex-direction: column; } .chat.full .msgs { flex: 1; height: auto; min-height: 80px; padding: 18px; font-size: 1.06rem; } .chat.full .pic img { height: 260px; } .chat.full .write { flex: none; }
.dmhead { flex-wrap: nowrap; } .dmhead h1 { font-size: 1.35rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dmhead > :not(h1) { flex: none; }
@media (max-width: 560px) { main:has(.chat.full) { padding: 10px 12px; } .chat.full .write { grid-template-columns: 1fr auto; } .dmhead h1 { font-size: 1.1rem; } .dmhead { gap: 8px; } }
.quote { display: block; width: fit-content; max-width: min(520px, 100%); margin: 4px 0 2px; padding: 6px 12px; text-align: left; font: inherit; font-size: .9rem; color: inherit; background: var(--bg2); border: 0; border-left: 3px solid var(--pet); border-radius: 4px; } button.quote { cursor: pointer; } .quote b { display: block; font-size: .85rem; color: var(--pet-ink); } .cut { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.replybar { grid-column: 1 / -1; width: 100%; max-width: none; margin: 0; display: flex; gap: 12px; align-items: center; } .replybar[hidden] { display: none; } .replybar .grow { min-width: 0; flex: 1; } .msg { transition: transform .12s; } .msgs { touch-action: pan-y; overflow-x: hidden; } .flash { animation: flash 1.6s; border-radius: 4px; } @keyframes flash { from, 40% { background: var(--bg2); } }
/* Resaltar el mensaje donde está el mouse (o el teclado). */
.msg > .line, .msg > .quote { margin-inline: 0; } .msg { margin-inline: -10px; padding-inline: 10px; border-radius: 6px; }
@media (hover: hover) { .msg:hover { background: color-mix(in srgb, var(--pet) 9%, transparent); box-shadow: inset 3px 0 var(--pet); } .msg:hover .quote, .msg:hover .card2 { background: var(--bg); } } .msg:focus-within { background: color-mix(in srgb, var(--pet) 9%, transparent); }
@media (max-width: 560px) { .write { grid-template-columns: 1fr auto; gap: 8px; } .write > .row:last-child { flex-wrap: nowrap; gap: 6px; } .write .clip { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; } }
.write textarea { resize: none; } .wipe .ico { display: none; }
/* Celular: cualquier chat llena la pantalla. */
@media (max-width: 560px) {
  #app > div:has(.chat) { display: flex; flex-direction: column; height: 100vh; height: var(--alto, 100dvh); overflow: hidden; } #app > div:has(.chat) > header { flex: none; }
  #app > div:has(.chat.full) > header { display: none; }
  main:has(.chat) { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 8px 10px max(8px, env(safe-area-inset-bottom)); }
  main:has(.chat) > :not(.chat) { flex: none; } main:has(.chat) > div:has(> h1) .muted, main:has(.chat) > .row.between > .row:last-child, main:has(.chat) > .row.between .grow > .row { display: none; } main:has(.chat) h1 { font-size: 1.1rem; }
  .chat { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; position: relative; } .chat .msgs, .chat.full .msgs { flex: 1; height: auto; min-height: 60px; padding: 8px 14px; font-size: 1rem; } .chat .pic img, .chat.full .pic img { height: 190px; }
  .wipe .ico { display: block; margin: 0; } .wipe span { display: none; } .wipe { padding: 8px 10px; } .chat > .wipe { position: absolute; top: 6px; right: 6px; z-index: 1; background: var(--bg); } .prof { display: none; }
  .write { flex: none; } .write textarea { min-height: 44px; max-height: 130px; padding: 10px 12px; font-size: 16px; } .write .clip { border-radius: 50%; } .tray { max-height: 120px; flex-wrap: nowrap; overflow-x: auto; } .replybar { padding: 4px 10px; } .msg .del { font-size: .85rem; } .msg [title=Responder] { opacity: .45; }
}
@media (min-width: 561px) { .write textarea { min-height: 70px; } }
@media (max-width: 560px) { .write textarea { min-height: 44px !important; } main:has(.chat) { position: relative; } main .chat { position: static; } main:has(.chat) h1 { padding-right: 50px; } main:has(.dmhead) h1 { padding-right: 0; } .chat > .wipe { top: 6px; right: 10px; } }
.fwd { display: block; } .marks { gap: 4px; padding: 2px 0 4px; } .marks button { display: flex; gap: 5px; align-items: center; padding: 1px 8px; font: inherit; font-size: .88rem; line-height: 1.5; color: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 99px; cursor: pointer; } .marks .on { border-color: var(--pet); background: color-mix(in srgb, var(--pet) 12%, var(--bg)); }
.faces { display: flex; gap: 2px; } .faces button { width: 44px; height: 44px; padding: 0; font-size: 1.45rem; line-height: 1; background: none; border: 0; border-radius: 50%; cursor: pointer; } .faces button:hover, .faces [aria-pressed='true'] { background: color-mix(in srgb, var(--pet) 16%, transparent); } .pop { position: fixed; inset: auto; margin: 0; padding: 4px; background: var(--card); color: inherit; border: 1px solid var(--line); border-radius: 99px; box-shadow: 0 4px 18px rgb(0 0 0 / .18); }
.fwdlist { display: grid; gap: 2px; max-height: 46vh; overflow-y: auto; } .fwdto { flex-wrap: nowrap; padding: 7px 4px; cursor: pointer; } .fwdto[hidden] { display: none; } .fwdto input { width: auto; flex: none; } .tel { display: none; } .msgmenu .faces { justify-content: space-between; } .msgmenu .btn { width: 100%; }
@media (max-width: 560px), (hover: none) { .msg .pc { display: none; } .msg .tel { display: inline-block; padding: 2px 8px; opacity: .55; font-size: 1.1rem; line-height: 1; } }
.msg [title=Reaccionar] { font-size: 1.15rem; line-height: 1; } .msg .tel { opacity: .8; font-size: 1.35rem; }
.msg .del .ico { width: 1.15em; height: 1.15em; display: block; } .msg [title=Responder], .msg [title=Reenviar] { align-self: start; margin-top: 4px; }
.md { max-height: 62vh; overflow: auto; background: var(--bg2); border-radius: 6px; padding: 14px 18px; line-height: 1.55; }
.md > * + *, .md li > * + * { margin-top: .6em; } .md h1, .md h2, .md h3, .md h4, .md h5, .md h6 { margin: 1.1em 0 0; line-height: 1.25; } .md > :first-child { margin-top: 0; }
.md h1 { font-size: 1.5rem; } .md h2 { font-size: 1.25rem; border-bottom: 1px solid var(--line); padding-bottom: .2em; } .md h3 { font-size: 1.08rem; } .md h4, .md h5, .md h6 { font-size: 1rem; }
.md ul, .md ol { margin: 0; padding-left: 1.5em; } .md li + li { margin-top: .2em; } .md li.task { list-style: none; margin-left: -1.2em; }
.md code { font: .88em ui-monospace, Consolas, monospace; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 0 .3em; } .md pre.code { background: var(--bg); border: 1px solid var(--line); max-height: none; }
.md blockquote { margin: 0; padding: .1em 0 .1em 1em; border-left: 3px solid var(--pet); color: var(--soft); } .md hr { border: 0; border-top: 1px solid var(--line); }
.md a { color: var(--pet-ink); } .md-table { overflow-x: auto; } .md table { border-collapse: collapse; } .md th, .md td { border: 1px solid var(--line); padding: 4px 10px; text-align: left; vertical-align: top; } .md th { background: var(--bg); }
.pdf-mobile { padding: 18px; text-align: center; align-items: center; }
