/* Vareoz — estilos fieles al diseño "Vareoz Mail" */
:root { --accent: #3573fc; }
/* ---------- Paleta (claro por defecto; oscuro si el sistema lo pide) ---------- */
:root {
  color-scheme: light;
  --acct0: #1a1a1a;
  --b-0a0a0a: #0a0a0a;
  --b-1a1a1a: #1a1a1a;
  --b-222222: #222222;
  --b-4778ee: #4778ee;
  --b-9dbcff: #9dbcff;
  --b-e2e2e2: #e2e2e2;
  --b-e9e9e9: #e9e9e9;
  --b-eafaee: #eafaee;
  --b-ececec: #ececec;
  --b-efefef: #efefef;
  --b-f0f0f0: #f0f0f0;
  --b-f2f2f2: #f2f2f2;
  --b-f3f3f3: #f3f3f3;
  --b-f4f4f4: #f4f4f4;
  --b-f5f8ff: #f5f8ff;
  --b-f6f6f6: #f6f6f6;
  --b-f8f8f8: #f8f8f8;
  --b-fafafa: #fafafa;
  --b-fbfbfb: #fbfbfb;
  --b-fdecea: #fdecea;
  --b-fff4e5: #fff4e5;
  --b-ffffff: #ffffff;
  --l-cfcfcf: #cfcfcf;
  --l-dcdcdc: #dcdcdc;
  --l-e0e0e0: #e0e0e0;
  --l-e6e6e6: #e6e6e6;
  --l-e8e8e8: #e8e8e8;
  --l-ececec: #ececec;
  --l-ededed: #ededed;
  --l-f1f1f1: #f1f1f1;
  --l-f2f2f2: #f2f2f2;
  --l-f4f4f4: #f4f4f4;
  --l-f6f6f6: #f6f6f6;
  --t-000000: #000000;
  --t-0a0a0a: #0a0a0a;
  --t-111111: #111111;
  --t-141414: #141414;
  --t-1a1a1a: #1a1a1a;
  --t-1f57d6: #1f57d6;
  --t-1f8f39: #1f8f39;
  --t-2a2a2a: #2a2a2a;
  --t-32cb4d: #32cb4d;
  --t-333333: #333333;
  --t-3d3d3d: #3d3d3d;
  --t-4a4a4a: #4a4a4a;
  --t-555555: #555555;
  --t-6b6b6b: #6b6b6b;
  --t-8a8a8a: #8a8a8a;
  --t-999999: #999999;
  --t-9b9b9b: #9b9b9b;
  --t-9dbcff: #9dbcff;
  --t-a52714: #a52714;
  --t-a8a8a8: #a8a8a8;
  --t-b3261e: #b3261e;
  --t-b3b3b3: #b3b3b3;
  --t-b4610b: #b4610b;
  --t-c2410c: #c2410c;
  --t-c2c2c2: #c2c2c2;
  --t-c5221f: #c5221f;
  --t-c8c8c8: #c8c8c8;
  --t-d0d0d0: #d0d0d0;
  --t-d93025: #d93025;
  --t-d9d9d9: #d9d9d9;
  --t-e2e2e2: #e2e2e2;
  --t-f0a020: #f0a020;
  --t-fecb4e: #fecb4e;
  --t-ffffff: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --acct0: #3d3d3d;
    --b-0a0a0a: #2c2c2c;
    --b-1a1a1a: #2e2e2e;
    --b-222222: #3a3a3a;
    --b-4778ee: #4778ee;
    --b-9dbcff: #9dbcff;
    --b-e2e2e2: #363636;
    --b-e9e9e9: #363636;
    --b-eafaee: #16301f;
    --b-ececec: #2f2f2f;
    --b-efefef: #2f2f2f;
    --b-f0f0f0: #2b2b2b;
    --b-f2f2f2: #2b2b2b;
    --b-f3f3f3: #272727;
    --b-f4f4f4: #272727;
    --b-f5f8ff: #1b2436;
    --b-f6f6f6: #222222;
    --b-f8f8f8: #222222;
    --b-fafafa: #1c1c1c;
    --b-fbfbfb: #1c1c1c;
    --b-fdecea: #3a1f1d;
    --b-fff4e5: #3a2c17;
    --b-ffffff: #161616;
    --l-cfcfcf: #4e4e4e;
    --l-dcdcdc: #414141;
    --l-e0e0e0: #3d3d3d;
    --l-e6e6e6: #373737;
    --l-e8e8e8: #353535;
    --l-ececec: #313131;
    --l-ededed: #303030;
    --l-f1f1f1: #2c2c2c;
    --l-f2f2f2: #2b2b2b;
    --l-f4f4f4: #292929;
    --l-f6f6f6: #272727;
    --t-000000: #ffffff;
    --t-0a0a0a: #f7f7f7;
    --t-111111: #f1f1f1;
    --t-141414: #efefef;
    --t-1a1a1a: #eaeaea;
    --t-1f57d6: #1f57d6;
    --t-1f8f39: #5fd27a;
    --t-2a2a2a: #dddddd;
    --t-32cb4d: #32cb4d;
    --t-333333: #d5d5d5;
    --t-3d3d3d: #cdcdcd;
    --t-4a4a4a: #c2c2c2;
    --t-555555: #b9b9b9;
    --t-6b6b6b: #a7a7a7;
    --t-8a8a8a: #8e8e8e;
    --t-999999: #828282;
    --t-9b9b9b: #808080;
    --t-9dbcff: #9dbcff;
    --t-a52714: #ffb4a8;
    --t-a8a8a8: #757575;
    --t-b3261e: #ff8a80;
    --t-b3b3b3: #6c6c6c;
    --t-b4610b: #f3b35a;
    --t-c2410c: #f59e5b;
    --t-c2c2c2: #606060;
    --t-c5221f: #ff7b6e;
    --t-c8c8c8: #5b5b5b;
    --t-d0d0d0: #545454;
    --t-d93025: #ff6b5e;
    --t-d9d9d9: #4d4d4d;
    --t-e2e2e2: #464646;
    --t-f0a020: #f0a020;
    --t-fecb4e: #fecb4e;
    --t-ffffff: #ffffff;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--b-ffffff); overflow: hidden; }
body { font-family: 'Inter', system-ui, sans-serif; font-optical-sizing: none; font-variation-settings: 'opsz' 14; -webkit-font-smoothing: antialiased; color: var(--t-0a0a0a); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--t-1f57d6); }
input::placeholder, textarea::placeholder { color: var(--t-a8a8a8); opacity: 1; }
[hidden] { display: none !important; }
.editor:empty::before { content: attr(data-placeholder); color: var(--t-a8a8a8); pointer-events: none; }

@keyframes am-shimmer { 0% { background-position: 100% 0 } 100% { background-position: -100% 0 } }
@keyframes am-pop { from { opacity: 0; scale: .96; translate: 0 -4px } to { opacity: 1; scale: 1; translate: 0 0 } }
@keyframes am-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes am-rise { from { opacity: 0; translate: 0 8px } to { opacity: 1; translate: 0 0 } }
@keyframes am-row { from { opacity: 0; translate: 0 6px } to { opacity: 1; translate: 0 0 } }
@keyframes am-toast { from { opacity: 0; translate: 0 14px; scale: .98 } to { opacity: 1; translate: 0 0; scale: 1 } }
@keyframes am-compose { from { opacity: 0; translate: 0 18px; scale: .985 } to { opacity: 1; translate: 0 0; scale: 1 } }
@keyframes am-drawer { from { opacity: 0; translate: 24px 0 } to { opacity: 1; translate: 0 0 } }
@keyframes am-modal { from { opacity: 0; scale: .97; translate: 0 8px } to { opacity: 1; scale: 1; translate: 0 0 } }
@keyframes am-check { from { opacity: 0; scale: .4 } to { opacity: 1; scale: 1 } }
@keyframes am-spin { to { rotate: 360deg } }
@keyframes am-bar { 0% { translate: -100% 0 } 100% { translate: 260% 0 } }
@keyframes am-shrink { from { scale: 1 1 } to { scale: 0 1 } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }

/* Utilidades */
.tr { transition: background-color .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease, filter .16s ease, transform .12s ease; }
.pr:active { transform: scale(.985); }
.pb:active { transform: scale(.94); }
.u { all: unset; box-sizing: border-box; cursor: pointer; }
.u:focus-visible, .row:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ib { display: flex; align-items: center; justify-content: center; flex: none; cursor: pointer; }
.sep { width: 1px; height: 18px; background: var(--b-ececec); margin: 0 4px; flex: none; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--l-cfcfcf); background: var(--b-ffffff); display: flex; align-items: center; justify-content: center; color: var(--t-ffffff); flex: none; }
.cb.on { border-color: var(--accent); background: var(--accent); }
.cb i { font-size: 12px; display: inline-block; animation: am-check .18s cubic-bezier(.2,.8,.2,1); }
.skel { background: linear-gradient(90deg, var(--b-f2f2f2) 25%, var(--b-fafafa) 50%, var(--b-f2f2f2) 75%); background-size: 200% 100%; animation: am-shimmer 1.4s ease-in-out infinite; display: block; }
.scroll { overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--l-ececec) transparent; }
.pop { background: var(--b-ffffff); border: 1px solid var(--l-ededed); box-shadow: 0 24px 60px -20px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.04); }
.scrim { position: fixed; inset: 0; z-index: 1; }
.btn-accent { height: 37px; padding: 0 18px; border-radius: 11px; background: var(--accent); color: var(--t-ffffff); font-size: 14px; font-weight: 500; display: flex; align-items: center; }
.btn-accent:hover { filter: brightness(0.94); color: var(--t-ffffff); }

/* ---------- Raíz ---------- */
.root { position: relative; width: 100vw; height: 100vh; padding: 8px; display: flex; background: var(--b-ffffff); overflow: hidden; }

/* ---------- Barra lateral ---------- */
.side { width: 296px; flex: none; padding: 12px 17px 17px 17.5px; display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: none; background: var(--b-ffffff); }
.side::-webkit-scrollbar { display: none; }
.brand { display: flex; align-items: center; gap: 13px; flex: none; }
.brand-mark { width: 30.5px; height: 30.5px; border-radius: 7.5px; background: var(--b-1a1a1a); display: flex; align-items: center; justify-content: center; flex: none; }
.brand-mark img { width: 19px; height: auto; display: block; }
.brand-name { font-size: 20.5px; font-weight: 500; line-height: 1; }

.acct-wrap { margin-top: 15px; position: relative; flex: none; z-index: 5; }
.acct { height: 51.5px; background: var(--b-fbfbfb); border-radius: 12px; padding: 0 7px 0 9.5px; display: flex; align-items: center; gap: 11px; cursor: pointer; }
.acct:hover, .acct.open { background: var(--b-f6f6f6); }
.acct-meta { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.acct-name { font-size: 14.5px; font-weight: 500; line-height: 19px; }
.acct-email { font-size: 14px; line-height: 19px; color: var(--t-3d3d3d); }
.acct > .ph { font-size: 24px; color: var(--t-b3b3b3); flex: none; }
.acct.open > .ph { color: var(--t-555555); }
.av { position: relative; overflow: hidden; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; color: var(--t-ffffff); font-weight: 500; background-size: cover; background-position: center; }
.av-cam { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(10,10,10,0.45); color: var(--t-ffffff); opacity: 0; transition: opacity .16s ease; }
.av-cam:hover { opacity: 1; }
.av-cam i { font-size: 13px; }
.acct-menu { position: absolute; left: 0; right: 0; top: 57.5px; z-index: 2; animation: am-pop .16s cubic-bezier(.2,.8,.2,1); transform-origin: top center; border-radius: 16px; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.menu-head { padding: 8px 10px 6px; font-size: 12px; line-height: 1; color: var(--t-9b9b9b); }
.acct-row { height: 46px; border-radius: 10px; padding: 0 10px 0 8px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.acct-row:hover { background: var(--b-f6f6f6); }
.acct-row.cur { background: var(--b-fbfbfb); }
.acct-row .n { font-size: 14px; font-weight: 500; line-height: 18px; color: var(--t-0a0a0a); }
.acct-row .e { font-size: 13px; line-height: 17px; color: var(--t-8a8a8a); }
.acct-row .ph-check-circle { font-size: 18px; color: var(--accent); flex: none; }
.acct-row .unr { font-size: 12px; line-height: 1; color: var(--t-9b9b9b); flex: none; }
.box-av { background: var(--b-f2f2f2); color: var(--t-333333); border-radius: 50%; }
.box-av i.ph-fill { font-size: 14px; }
.menu-sep { height: 1px; background: var(--b-f2f2f2); margin: 4px 4px; flex: none; }
.acct-act { height: 40px; border-radius: 10px; padding: 0 10px 0 9px; display: flex; align-items: center; gap: 11px; cursor: pointer; color: var(--t-333333); }
.acct-act:hover { background: var(--b-f6f6f6); }
.acct-act i { font-size: 20px; width: 24px; display: flex; justify-content: center; color: var(--t-8a8a8a); }
.acct-act span { font-size: 14px; line-height: 1; }

.side-div { height: 1px; background: var(--b-f2f2f2); flex: none; }
.nav { margin-top: 26px; display: flex; flex-direction: column; gap: 4.6px; flex: none; }
.nav-row { height: 43px; border-radius: 11px; padding: 0 16px 0 11.5px; display: flex; align-items: center; gap: 12.5px; cursor: pointer; background: transparent; color: var(--t-333333); text-decoration: none; }
.nav-row:hover { background: var(--b-f8f8f8); color: var(--t-333333); }
.nav-row > i { font-size: 24px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; color: var(--t-9b9b9b); flex: none; }
.nav-row > i.ph { font-size: 20px; }
.nav-row .lbl { flex: 1; font-size: 16px; line-height: 1; min-width: 0; }
.nav-row .cnt { font-size: 16px; line-height: 1; color: var(--t-999999); }
.nav-row.on, .nav-row.on:hover { background: var(--accent); color: var(--t-ffffff); }
.nav-row.on > i, .nav-row.on .cnt { color: var(--t-ffffff); }
.nav-row .dot { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; flex: none; }
.nav-row .dot span { width: 18px; height: 18px; border-radius: 50%; display: block; }
.labels { margin-top: 12px; display: flex; flex-direction: column; gap: 4.75px; flex: none; }
.new-label { height: 43px; border-radius: 11px; padding: 0 10px 0 11.5px; display: flex; align-items: center; gap: 12.5px; background: var(--b-fbfbfb); animation: am-pop .16s cubic-bezier(.2,.8,.2,1); }
.new-label input { all: unset; flex: 1; min-width: 0; font-family: inherit; font-size: 16px; color: var(--t-1a1a1a); }
.create-label { height: 40px; color: var(--t-8a8a8a); }
.create-label:hover { color: var(--t-333333); }
.create-label .lbl { font-size: 15px; }
.side-foot { margin-top: auto; padding-top: 12px; flex: none; }
.nav-row.settings-on { background: var(--b-f6f6f6); }

/* ---------- Lista ---------- */
.list-sec { margin-left: 24.5px; width: 460px; flex: 0 0 auto; min-width: 0; display: flex; flex-direction: column; padding-top: 10px; min-height: 0; }
.root.nosplit .list-sec { width: auto; flex: 1 1 0; }
.topbar { height: 37px; flex: none; display: flex; align-items: center; gap: 14px; position: relative; z-index: 6; }
.new-msg { display: flex; align-items: center; gap: 2.5px; color: var(--t-2a2a2a); margin-left: -3.5px; flex: none; height: 37px; }
.new-msg:hover { color: var(--t-000000); }
.new-msg i { font-size: 22px; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.new-msg span { font-size: 16px; line-height: 1; white-space: nowrap; }
.hamb { display: none; width: 34px; height: 34px; border-radius: 10px; color: var(--t-333333); margin-left: -4px; }
.hamb:hover { background: var(--b-f6f6f6); }
.hamb i { font-size: 22px; }
.search-wrap { position: relative; flex: 1; min-width: 0; max-width: 520px; }
.search { height: 37px; background: var(--b-fbfbfb); border-radius: 12px; padding: 0 5px 0 8.5px; display: flex; align-items: center; gap: 2.5px; }
.search > i { font-size: 24px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; color: var(--t-1a1a1a); flex: none; }
.search input { all: unset; flex: 1; min-width: 0; font-size: 16px; line-height: 1; color: var(--t-1a1a1a); font-family: inherit; }
.sbtn { width: 28px; height: 28px; border-radius: 8px; color: var(--t-9b9b9b); }
.sbtn:hover, .sbtn.on { background: var(--b-f0f0f0); color: var(--t-333333); }
.sbtn .ph-x { font-size: 16px; }
.sbtn .ph-sliders-horizontal { font-size: 18px; }
.adv { position: absolute; left: 0; top: 43px; z-index: 2; animation: am-pop .16s cubic-bezier(.2,.8,.2,1); transform-origin: top left; width: 100%; min-width: 400px; border-radius: 16px; padding: 8px 20px 16px; display: flex; flex-direction: column; }
.adv-row { height: 44px; display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: center; gap: 12px; border-bottom: 1px solid var(--l-f2f2f2); }
.adv-row > span { font-size: 13px; color: var(--t-8a8a8a); }
.adv-row input { all: unset; min-width: 0; font-family: inherit; font-size: 14px; color: var(--t-1a1a1a); }
.adv-row select { font-family: inherit; font-size: 14px; color: var(--t-1a1a1a); border: none; background: transparent; outline: none; padding: 0; margin-left: -3px; cursor: pointer; }
.adv-check { height: 44px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.adv-check span:last-child { font-size: 14px; color: var(--t-333333); }
.adv-actions { margin-top: 8px; display: flex; justify-content: flex-end; gap: 8px; }
.btn-plain { height: 37px; padding: 0 14px; border-radius: 11px; font-size: 14px; color: var(--t-8a8a8a); display: flex; align-items: center; }
.btn-plain:hover { background: var(--b-f6f6f6); color: var(--t-333333); }

.view-title { margin-top: 23px; height: 26px; flex: none; display: flex; align-items: center; gap: 8px; }
.view-title i { font-size: 26px; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; color: var(--t-333333); margin-left: -3px; }
.view-title span { font-size: 20.5px; font-weight: 500; line-height: 1; color: var(--t-0a0a0a); }
.pills { margin-top: 18.5px; height: 33.5px; flex: none; align-self: flex-start; border: 1px solid var(--l-f2f2f2); border-radius: 10px; display: flex; align-items: stretch; font-size: 16px; color: var(--t-333333); }
.pills span { padding: 0 8.5px; display: flex; align-items: center; white-space: nowrap; }
.pills span + span { border-left: 1px solid var(--l-f2f2f2); }

.card { position: relative; margin-top: 16.5px; flex: 1; min-height: 0; border: 1px solid var(--l-f1f1f1); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; background: var(--b-ffffff); }
.loadbar { position: absolute; left: 0; right: 0; top: 0; height: 2px; overflow: hidden; z-index: 3; pointer-events: none; }
.loadbar div { width: 38%; height: 100%; border-radius: 2px; background: var(--accent); animation: am-bar 1.1s cubic-bezier(.4,0,.2,1) infinite; }
.ltool { height: 49px; flex: none; border-bottom: 1px solid var(--l-f1f1f1); padding: 0 10px 0 18px; display: flex; align-items: center; gap: 2px; }
.selcombo { display: flex; align-items: center; border-radius: 9px; flex: none; }
.selcombo:hover { background: var(--b-f6f6f6); }
.selcombo .box { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.selcombo .car { width: 18px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--t-9b9b9b); margin-left: -6px; }
.selcombo .car i { font-size: 12px; }
.tbtn { width: 32px; height: 32px; border-radius: 9px; color: var(--t-9b9b9b); }
.tbtn:hover { background: var(--b-f6f6f6); color: var(--t-555555); }
.tbtn i { font-size: 18px; }
.tbtn.bulk { color: var(--t-8a8a8a); }
.tbtn.bulk:hover { color: var(--t-333333); }
.spin { animation: am-spin .7s linear infinite; display: inline-block; }
.checked-text { margin-left: 6px; font-size: 13px; line-height: 1; color: var(--t-8a8a8a); white-space: nowrap; }
.pager-text { font-size: 13px; line-height: 1; color: var(--t-9b9b9b); white-space: nowrap; margin-right: 4px; }
.pg { width: 28px; height: 32px; color: var(--t-d0d0d0); border-radius: 8px; }
.pg i { font-size: 16px; }
.pg.en { color: var(--t-555555); }
.pg.en:hover { background: var(--b-f6f6f6); }
.tabs { height: 49px; flex: none; border-bottom: 1px solid var(--l-f1f1f1); padding: 0 8px 0 14px; display: flex; align-items: stretch; gap: 9px; overflow-x: auto; scrollbar-width: none; }
.tab { display: flex; align-items: center; gap: 6px; cursor: pointer; flex: none; color: var(--t-9b9b9b); }
.tab:hover { color: var(--t-111111); }
.tab i { font-size: 21px; width: 21px; height: 24px; display: flex; align-items: center; justify-content: center; color: var(--t-c2c2c2); transform: translateY(1px); }
.tab span { font-size: 14px; line-height: 1; white-space: nowrap; }
.tab.on { color: var(--t-111111); }
.tab.on i { color: var(--t-333333); }
.tab .new { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: var(--t-ffffff); font-size: 10.5px; font-weight: 500; line-height: 1; display: flex; align-items: center; justify-content: center; }
.chips-row { flex: none; animation: am-fade .2s ease; border-bottom: 1px solid var(--l-f1f1f1); padding: 10px 16px 10px 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.schip { height: 30px; padding: 0 11px 0 9px; border-radius: 9px; border: 1px solid var(--l-ececec); background: var(--b-ffffff); color: var(--t-555555); font-size: 13px; line-height: 1; display: flex; align-items: center; gap: 6px; }
.schip:hover { background: var(--b-f8f8f8); }
.schip.on { border-color: var(--accent); background: var(--b-f5f8ff); color: var(--t-111111); }
.schip i { font-size: 14px; }
.adv-link { height: 30px; padding: 0 8px; border-radius: 9px; font-size: 13px; line-height: 1; color: var(--t-8a8a8a); display: flex; align-items: center; }
.adv-link:hover { color: var(--t-333333); background: var(--b-f6f6f6); }
.lbanner { flex: none; border-bottom: 1px solid var(--l-f1f1f1); background: var(--b-fbfbfb); padding: 11px 20px; font-size: 13px; line-height: 19px; color: var(--t-555555); text-wrap: pretty; }
.lbanner a { font-weight: 500; }

.rows { flex: 1; min-height: 0; }
.skrow { padding: 14px 20px 0 28.5px; display: flex; gap: 16.5px; animation: am-fade .2s ease both; }
.skrow > .skel:first-child { width: 29px; height: 29px; border-radius: 50%; flex: none; margin-top: 2px; }
.skrow .b { flex: 1; min-width: 0; padding-bottom: 16px; border-bottom: 1px solid var(--l-f6f6f6); display: flex; flex-direction: column; gap: 10px; }
.row { padding: 12px 20px 13.5px 28.5px; display: flex; gap: 16.5px; cursor: pointer; background: var(--b-ffffff); transition: background-color .15s ease; outline: none; }
.rows.anim .row { animation: am-row .34s cubic-bezier(.2,.8,.2,1) both; }
.row:hover, .row.sel { background: var(--b-fbfbfb); }
.row.chk { background: var(--b-f5f8ff); }
.row .lc { width: 29px; flex: none; padding-top: 3px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.row .slot { width: 29px; height: 29px; display: flex; align-items: center; justify-content: center; position: relative; }
.row .rcheck { width: 29px; height: 29px; display: none; align-items: center; justify-content: center; }
.row:hover .rcheck, .rows.anychk .rcheck { display: flex; }
.row:hover .who, .rows.anychk .who { display: none; }
.who { position: relative; width: 29px; height: 29px; display: flex; align-items: center; justify-content: center; }
.ini { width: 29px; height: 29px; flex: none; border-radius: 50%; background: var(--b-f2f2f2); color: var(--t-333333); font-size: 11.5px; font-weight: 500; display: flex; align-items: center; justify-content: center; }
.logo { position: absolute; inset: 0; margin: auto; width: 29px; height: 29px; border-radius: 7px; object-fit: cover; background: var(--b-ffffff); }
.av-photo { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.udot { width: 6.5px; height: 6.5px; border-radius: 50%; background: var(--b-4778ee); display: block; }
.row .rc { flex: 1; min-width: 0; padding-bottom: 13px; border-bottom: 1px solid var(--l-f2f2f2); display: flex; flex-direction: column; }
.row .l1 { height: 22px; display: flex; align-items: center; gap: 12px; }
.row .snd { flex: 1; min-width: 0; font-size: 18.5px; font-weight: 500; line-height: 22px; color: var(--t-0a0a0a); }
.row .snd .dr { color: var(--t-d93025); }
.row .snd .ct { font-weight: 400; font-size: 14px; color: var(--t-9b9b9b); }
.row .time { flex: none; font-size: 13px; line-height: 1; color: var(--t-9b9b9b); white-space: nowrap; }
.row .time.snz { color: var(--t-c2410c); }
.row .racts { flex: none; display: none; margin-right: -6px; animation: am-fade .14s ease; }
.row:hover .racts { display: flex; }
.row:hover .time { display: none; }
.racts button { width: 28px; height: 28px; border-radius: 8px; color: var(--t-8a8a8a); }
.racts button:hover { background: var(--b-efefef); color: var(--t-333333); }
.racts i { font-size: 17px; }
.row .l2 { margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.row .flag { font-size: 14px; color: var(--t-fecb4e); flex: none; }
.row .subj { flex: 1; min-width: 0; font-size: 16px; line-height: 22px; color: var(--t-141414); }
.row .star { width: 24px; height: 22px; margin-right: -3px; color: var(--t-c8c8c8); display: none; }
.row .star.on { color: var(--t-fecb4e); display: flex; }
.row:hover .star { display: flex; }
.row .star i { font-size: 16px; }
.row .prev { margin-top: 3px; font-size: 14px; line-height: 20px; color: var(--t-4a4a4a); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.row .attc { margin-top: 8px; display: flex; min-width: 0; }
.attchip { height: 28px; max-width: 100%; padding: 0 10px 0 8px; border: 1px solid var(--l-ececec); border-radius: 9px; display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1; color: var(--t-333333); }
.attchip i { font-size: 15px; color: var(--t-9b9b9b); flex: none; }
.dens-compact .row { padding: 8px 20px 8px 28.5px; }
.dens-compact .row .rc { padding-bottom: 8px; }
.dens-compact .row .l2 { margin-top: 3px; }
.dens-compact .row .prev, .dens-compact .row .attc, .dens-comfortable .row .attc { display: none; }
.empty { padding: 72px 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; animation: am-rise .3s cubic-bezier(.2,.8,.2,1); }
.empty i { font-size: 32px; color: var(--t-d9d9d9); }
.empty span { max-width: 280px; font-size: 14px; line-height: 20px; color: var(--t-9b9b9b); text-align: center; text-wrap: pretty; }

.root.nosplit.reading .list-sec { display: none; }
.root.nosplit:not(.reading) .reader { display: none; }

/* ---------- Lector ---------- */
.reader { flex: 1; min-width: 0; margin-left: 16px; display: flex; flex-direction: column; overflow: hidden; background: var(--b-ffffff); }
.root.nosplit .reader { margin-left: 24.5px; }
.rtool { height: 61px; flex: none; border-bottom: 1px solid var(--l-f2f2f2); padding: 0 14px 0 16px; display: flex; align-items: center; gap: 2px; }
.rbtn { width: 36px; height: 36px; border-radius: 10px; color: var(--t-9b9b9b); }
.rbtn:hover { background: var(--b-f6f6f6); color: var(--t-555555); }
.rbtn i { font-size: 20px; }
.rtool .sep { margin: 0 6px; }
.pos { font-size: 13px; line-height: 1; color: var(--t-9b9b9b); margin-right: 6px; white-space: nowrap; }
.nav-arrow { width: 36px; height: 36px; border-radius: 10px; color: var(--t-d0d0d0); }
.nav-arrow.en { color: var(--t-555555); }
.nav-arrow:hover { background: var(--b-f6f6f6); }
.nav-arrow i { font-size: 18px; }
.rscroll { flex: 1; min-height: 0; }
.article { max-width: 780px; padding: 32px 44px 36px; animation: am-rise .28s cubic-bezier(.2,.8,.2,1); }
.mskel { max-width: 780px; padding: 34px 44px 36px; display: flex; flex-direction: column; animation: am-fade .18s ease both; }
.rbanner { margin-bottom: 24px; background: var(--b-fbfbfb); border-radius: 14px; padding: 10px 10px 10px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rbanner > i { font-size: 18px; color: var(--t-8a8a8a); flex: none; }
.rbanner > span { flex: 1; min-width: 200px; font-size: 14px; line-height: 20px; color: var(--t-333333); text-wrap: pretty; }
.btn-out { height: 34px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--l-ececec); background: var(--b-ffffff); font-size: 14px; color: var(--t-333333); display: flex; align-items: center; flex: none; }
.btn-out:hover { background: var(--b-f6f6f6); }
.subj-row { display: flex; align-items: flex-start; gap: 12px; }
.subj-row h1 { flex: 1; min-width: 0; margin: 0; font-size: 26px; font-weight: 500; line-height: 32px; letter-spacing: -0.01em; color: var(--t-0a0a0a); text-wrap: pretty; overflow-wrap: anywhere; }
.subj-row .rbtn { margin-top: -2px; }
.subj-row .ph-printer { font-size: 20px; }
.mchips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.mchip { height: 28px; padding: 0 10px 0 8px; border: 1px solid var(--l-f2f2f2); border-radius: 9px; display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1; color: var(--t-333333); }
.mchip.rm { padding-right: 4px; }
.mchip > i { font-size: 15px; color: var(--t-9b9b9b); }
.mchip .d { width: 9px; height: 9px; border-radius: 50%; display: block; margin: 0 2px; }
.mchip .x { width: 20px; height: 20px; border-radius: 6px; color: var(--t-b3b3b3); }
.mchip .x:hover { background: var(--b-f2f2f2); color: var(--t-333333); }
.mchip .x i { font-size: 11px; }
.mhead { margin-top: 28px; display: flex; align-items: center; gap: 14px; }
.mhead .avbox { width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; position: relative; }
.mhead .ini, .reply .ini { width: 40px; height: 40px; font-size: 15px; }
.mhead .logo, .reply .logo { width: 40px; height: 40px; border-radius: 10px; }
.logo.round { border-radius: 50%; }
.mhead .mm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mhead .nm { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.mhead .nm b { font-size: 16px; font-weight: 500; line-height: 20px; color: var(--t-0a0a0a); }
.mhead .nm .dt { flex: none; font-size: 13px; line-height: 1; color: var(--t-9b9b9b); white-space: nowrap; }
.mhead .nm a { font-size: 13px; line-height: 1; color: var(--t-8a8a8a); text-decoration: underline; flex: none; cursor: pointer; }
.det-btn { align-self: flex-start; max-width: 100%; margin-left: -6px; padding: 1px 4px 1px 6px; border-radius: 7px; display: flex; align-items: center; gap: 4px; color: var(--t-8a8a8a); }
.det-btn:hover, .det-btn.open { background: var(--b-f4f4f4); }
.det-btn:hover { color: var(--t-333333); }
.det-btn span { font-size: 14px; line-height: 18px; min-width: 0; }
.det-btn i { font-size: 13px; flex: none; transition: transform .15s ease; }
.det-btn.open i { transform: rotate(180deg); }
.mhead .acts { display: flex; gap: 2px; flex: none; }
.star-btn { color: var(--t-c8c8c8); }
.star-btn.on { color: var(--t-fecb4e); }
.star-btn:hover { color: var(--t-c8c8c8); }
.star-btn.on:hover { color: var(--t-fecb4e); }
.details { margin-top: 14px; margin-left: 54px; animation: am-pop .16s cubic-bezier(.2,.8,.2,1); transform-origin: top left; border: 1px solid var(--l-f1f1f1); border-radius: 14px; padding: 12px 16px; display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 18px; row-gap: 8px; }
.details .k { font-size: 13px; line-height: 20px; color: var(--t-9b9b9b); text-align: right; }
.details .v { font-size: 13px; line-height: 20px; color: var(--t-333333); display: flex; align-items: center; gap: 6px; min-width: 0; }
.details .v i { font-size: 14px; color: var(--t-9b9b9b); flex: none; }
.details .v span { min-width: 0; overflow-wrap: anywhere; }
.details .v a { flex: none; cursor: pointer; }
.mbody { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.mbody p, .reply-body p { margin: 0; font-size: 15px; line-height: 24px; color: var(--t-333333); text-wrap: pretty; white-space: pre-wrap; overflow-wrap: anywhere; }
.mbody iframe, .reply-body iframe { width: 100%; border: 0; display: block; min-height: 40px; }
.quoted-toggle { width: 30px; height: 18px; border-radius: 6px; background: var(--b-f2f2f2); color: var(--t-8a8a8a); flex: none; }
.quoted-toggle:hover { background: var(--b-e9e9e9); color: var(--t-333333); }
.quoted-toggle i { font-size: 18px; }
.quoted-text { font-size: 14px; line-height: 22px; color: var(--t-8a8a8a); white-space: pre-wrap; overflow-wrap: anywhere; padding-left: 14px; border-left: 2px solid var(--l-e8e8e8); }
.atts { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--l-f2f2f2); }
.atts > span { font-size: 13px; line-height: 1; color: var(--t-8a8a8a); }
.atts .grid { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.att { border: 1px solid var(--l-f1f1f1); border-radius: 14px; padding: 9px; display: flex; align-items: center; gap: 12px; cursor: pointer; color: inherit; max-width: 100%; }
.att:hover { background: var(--b-fbfbfb); color: inherit; }
.att .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--b-f6f6f6) center / cover no-repeat; display: flex; align-items: center; justify-content: center; flex: none; }
.att .ic i { font-size: 22px; color: var(--t-9b9b9b); }
.att .t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.att .t b { font-size: 14px; font-weight: 500; line-height: 18px; color: var(--t-141414); }
.att .t span { font-size: 13px; line-height: 16px; color: var(--t-9b9b9b); }
.att .dl { width: 34px; height: 34px; border-radius: 9px; margin-left: 12px; color: var(--t-9b9b9b); }
.att .dl:hover { background: var(--b-efefef); color: var(--t-333333); }
.att .dl i { font-size: 19px; }
.reply { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--l-f2f2f2); animation: am-rise .3s cubic-bezier(.2,.8,.2,1); }
.reply-h { display: flex; align-items: center; gap: 14px; }
.reply-h .avbox { width: 40px; height: 40px; flex: none; position: relative; display: flex; align-items: center; justify-content: center; }
.reply-h .mm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.reply-h .mm b { font-size: 16px; font-weight: 500; line-height: 20px; color: var(--t-0a0a0a); }
.reply-h .mm span { font-size: 14px; line-height: 18px; color: var(--t-8a8a8a); }
.reply-h .tm { flex: none; font-size: 13px; line-height: 1; color: var(--t-9b9b9b); white-space: nowrap; }
.reply-body { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.smart { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px; animation: am-rise .3s cubic-bezier(.2,.8,.2,1); }
.smart button { height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--l-e6e6e6); background: var(--b-fbfbfb); color: var(--t-333333); font-size: 14px; line-height: 1; display: flex; align-items: center; }
.smart button:hover { background: var(--b-f3f3f3); border-color: var(--l-dcdcdc); }
.ractions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.ractions button { height: 40px; padding: 0 16px 0 13px; border: 1px solid var(--l-ececec); border-radius: 11px; display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1; color: var(--t-333333); }
.ractions button:hover { background: var(--b-fbfbfb); border-color: var(--l-e0e0e0); }
.ractions i { font-size: 18px; color: var(--t-555555); }
.nomail { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.nomail i { font-size: 40px; color: var(--t-e2e2e2); }
.nomail span { font-size: 15px; line-height: 1; color: var(--t-9b9b9b); }

/* Borrador en línea */
.draft { margin-top: 32px; border: 1px solid var(--l-ececec); border-radius: 16px; background: var(--b-ffffff); box-shadow: 0 18px 48px -30px rgba(0,0,0,0.22); animation: am-rise .26s cubic-bezier(.2,.8,.2,1); }
.draft-h { min-height: 47px; padding: 6px 12px 6px 8px; border-bottom: 1px solid var(--l-f2f2f2); display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.mode-btn { height: 32px; padding: 0 6px 0 8px; border-radius: 9px; display: flex; align-items: center; gap: 3px; color: var(--t-555555); flex: none; }
.mode-btn:hover { background: var(--b-f6f6f6); }
.mode-btn i { font-size: 18px; }
.mode-btn i + i { font-size: 12px; color: var(--t-9b9b9b); }
.to-lbl { font-size: 14px; line-height: 1; color: var(--t-9b9b9b); padding: 0 2px 0 4px; }
.chip { animation: am-pop .14s cubic-bezier(.2,.8,.2,1); height: 28px; padding: 0 4px 0 10px; border-radius: 8px; background: var(--b-f6f6f6); display: flex; align-items: center; gap: 4px; font-size: 13px; line-height: 1; color: var(--t-141414); max-width: 100%; }
.chip.bad { background: var(--b-fdecea); color: var(--t-b3261e); }
.chip > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip .x { width: 20px; height: 20px; border-radius: 6px; color: var(--t-9b9b9b); }
.chip .x:hover { background: var(--b-ececec); color: var(--t-333333); }
.chip .x i { font-size: 12px; }
.to-input { all: unset; flex: 1; min-width: 140px; height: 32px; font-family: inherit; font-size: 14px; color: var(--t-1a1a1a); }
.cc-btn { font-size: 13px; line-height: 1; color: var(--t-8a8a8a); padding: 6px 8px; border-radius: 7px; }
.cc-btn:hover { color: var(--t-333333); background: var(--b-f6f6f6); }
.frow { height: 44px; padding: 0 18px; border-bottom: 1px solid var(--l-f2f2f2); display: flex; align-items: center; gap: 10px; }
.frow > span { width: 56px; flex: none; font-size: 14px; color: var(--t-9b9b9b); }
.frow input { all: unset; flex: 1; min-width: 0; font-family: inherit; font-size: 14px; color: var(--t-1a1a1a); }
.cfield.from-row, .frow.from-row { gap: 0; }
.from-row > span { margin-right: 6px; }
.from-row .from-local { flex: 0 1 auto; field-sizing: content; min-width: 3ch; max-width: 60%; text-align: left; }
.from-row .from-local:focus { box-shadow: 0 1px 0 var(--accent); }
.from-dom { display: flex; align-items: center; gap: 4px; height: 30px; padding: 0 8px 0 1px; border-radius: 8px; font-size: 15px; color: var(--t-1a1a1a); white-space: nowrap; }
.frow .from-dom { font-size: 14px; }
.from-dom:hover { background: var(--b-f6f6f6); }
.from-dom i.ph { font-size: 13px; color: var(--t-9b9b9b); }
.draft textarea { display: block; width: 100%; border: none; outline: none; resize: none; background: transparent; font-family: inherit; font-size: 15px; line-height: 24px; color: var(--t-1a1a1a); padding: 16px 18px 8px; min-height: 144px; }
.draft .qt { padding: 0 18px; display: flex; }
.draft .quoted { padding: 14px 18px 0; font-size: 14px; line-height: 22px; color: var(--t-8a8a8a); }
.draft .quoted .qb { margin-top: 10px; padding-left: 14px; border-left: 2px solid var(--l-e8e8e8); display: flex; flex-direction: column; gap: 10px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow: auto; }
.draft-f { padding: 16px 12px 12px 14px; display: flex; align-items: center; gap: 2px; }
.send-btn { height: 37px; padding: 0 16px 0 14px; border-radius: 11px; background: var(--accent); color: var(--t-ffffff); font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; margin-right: 8px; }
.send-btn:hover { filter: brightness(0.94); }
.send-btn i { font-size: 16px; }
.trash-btn { width: 34px; height: 34px; border-radius: 9px; color: var(--t-9b9b9b); }
.trash-btn:hover { background: var(--b-f6f6f6); color: var(--t-d93025); }
.trash-btn i { font-size: 19px; }
.draft .att-chips { padding: 8px 18px 0; }

/* ---------- Redactar ---------- */
.cback { position: absolute; inset: 0; z-index: 30; background: rgba(10,10,10,0.28); animation: am-fade .18s ease; }
.cmin { position: absolute; right: 28px; bottom: 0; z-index: 31; animation: am-compose .22s cubic-bezier(.2,.8,.2,1); width: 320px; height: 48px; background: var(--b-ffffff); border: 1px solid var(--l-ededed); border-bottom: none; border-radius: 16px 16px 0 0; box-shadow: 0 -12px 40px -20px rgba(0,0,0,0.25); padding: 0 8px 0 18px; display: flex; align-items: center; gap: 2px; cursor: pointer; }
.cmin > span { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; }
.cmin button { width: 32px; height: 32px; border-radius: 9px; color: var(--t-8a8a8a); }
.cmin button:hover { background: var(--b-f6f6f6); color: var(--t-333333); }
.cmin button i { font-size: 17px; }
.cwin { position: absolute; z-index: 31; animation: am-compose .24s cubic-bezier(.2,.8,.2,1); transition: width .2s ease, height .2s ease; right: 28px; bottom: 28px; width: 560px; max-width: calc(100% - 56px); max-height: calc(100% - 56px); background: var(--b-ffffff); border: 1px solid var(--l-ededed); border-radius: 25px; box-shadow: 0 30px 80px -24px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.04); display: flex; flex-direction: column; overflow: hidden; }
.cwin.max { left: 50%; top: 50%; right: auto; bottom: auto; width: min(920px, calc(100% - 80px)); height: calc(100% - 80px); transform: translate(-50%, -50%); }
.cwin.drag { box-shadow: 0 0 0 2px var(--accent), 0 30px 80px -24px rgba(0,0,0,0.22); }
.chead { height: 54px; flex: none; padding: 0 10px 0 22px; display: flex; align-items: center; gap: 2px; }
.chead > span { flex: 1; min-width: 0; font-size: 16px; font-weight: 500; line-height: 1; }
.chead button { width: 34px; height: 34px; border-radius: 10px; color: var(--t-8a8a8a); }
.chead button:hover { background: var(--b-f6f6f6); color: var(--t-333333); }
.chead button i { font-size: 18px; }
.cto { min-height: 46px; flex: none; border-top: 1px solid var(--l-f2f2f2); padding: 6px 14px 6px 22px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; position: relative; }
.cto > span:first-child { width: 56px; flex: none; font-size: 14px; color: var(--t-9b9b9b); }
.cto .to-input { font-size: 15px; }
.cfield { height: 46px; flex: none; border-top: 1px solid var(--l-f2f2f2); padding: 0 22px; display: flex; align-items: center; gap: 6px; }
.cfield > span { width: 56px; flex: none; font-size: 14px; color: var(--t-9b9b9b); }
.cfield input { all: unset; flex: 1; min-width: 0; font-family: inherit; font-size: 15px; color: var(--t-1a1a1a); }
.editor { display: block; width: 100%; flex: 0 1 380px; min-height: 140px; border-top: 1px solid var(--l-f2f2f2); outline: none; background: transparent; font-family: inherit; font-size: 15px; line-height: 24px; color: var(--t-1a1a1a); padding: 16px 22px; overflow-y: auto; overflow-wrap: anywhere; }
.cwin.max .editor { flex: 1 1 auto; }
.editor blockquote { margin: 0; padding-left: 14px; border-left: 2px solid var(--l-e8e8e8); color: var(--t-8a8a8a); }
.editor p { margin: 0; }
.editor ul, .editor ol { margin: 0; padding-left: 22px; }
.editor img { max-width: 100%; }
.att-chips { flex: none; padding: 0 22px 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.att-chips:empty { display: none; }
.achip { animation: am-pop .16s cubic-bezier(.2,.8,.2,1); height: 32px; max-width: 100%; padding: 0 4px 0 10px; border: 1px solid var(--l-ececec); border-radius: 10px; display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1; color: var(--t-333333); position: relative; overflow: hidden; }
.achip > i { font-size: 15px; color: var(--t-9b9b9b); flex: none; }
.achip .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.achip .sz { color: var(--t-9b9b9b); white-space: nowrap; }
.achip .sz.err { color: var(--t-d93025); }
.achip .x { width: 22px; height: 22px; border-radius: 6px; color: var(--t-9b9b9b); }
.achip .x:hover { background: var(--b-efefef); color: var(--t-333333); }
.achip .x i { font-size: 12px; }
.achip .bar { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--accent); transition: width .2s ease; }
.fmt { flex: none; animation: am-rise .2s cubic-bezier(.2,.8,.2,1); margin: 0 14px; padding: 3px; border: 1px solid var(--l-f1f1f1); border-radius: 11px; display: flex; align-items: center; gap: 1px; flex-wrap: wrap; }
.fbtn { width: 30px; height: 30px; border-radius: 8px; color: var(--t-8a8a8a); }
.fbtn:hover { background: var(--b-f3f3f3); color: var(--t-333333); }
.fbtn.on { background: var(--b-efefef); color: var(--t-111111); }
.fbtn i { font-size: 17px; }
.fmt .sep { height: 16px; }
.cfoot { flex: none; padding: 10px 12px 14px 14px; display: flex; align-items: center; gap: 2px; }
.split { display: flex; align-items: stretch; border-radius: 11px; overflow: hidden; background: var(--accent); margin-right: 8px; flex: none; }
.split > button { height: 37px; color: var(--t-ffffff); display: flex; align-items: center; justify-content: center; }
.split > button:hover { background: rgba(0,0,0,0.08); }
.split .go { padding: 0 12px 0 14px; font-size: 14px; font-weight: 500; gap: 8px; }
.split .go i { font-size: 16px; }
.split .div { width: 1px; background: rgba(255,255,255,0.4); margin: 9px 0; }
.split .more { width: 30px; }
.split .more i { font-size: 13px; }
.ctool { width: 34px; height: 34px; border-radius: 9px; color: var(--t-8a8a8a); }
.ctool:hover { background: var(--b-f3f3f3); color: var(--t-333333); }
.ctool.on { background: var(--b-efefef); color: var(--t-111111); }
.ctool i { font-size: 19px; }

/* ---------- Menús ---------- */
.mscrim { position: absolute; inset: 0; z-index: 40; }
.menu { position: absolute; z-index: 41; animation: am-pop .14s cubic-bezier(.2,.8,.2,1); min-width: 220px; max-width: 320px; overflow-y: auto; border-radius: 14px; padding: 5px; display: flex; flex-direction: column; gap: 1px; }
.mi { height: 36px; flex: none; border-radius: 9px; padding: 0 10px; display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; line-height: 1; color: var(--t-333333); }
.mi:hover, .mi.kb { background: var(--b-f6f6f6); }
.mi.danger { color: var(--t-d93025); }
.mi > i.ph { font-size: 18px; width: 18px; color: var(--t-8a8a8a); flex: none; }
.mi.danger > i.ph { color: var(--t-d93025); }
.mi .dotw { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; flex: none; }
.mi .dotw span { width: 10px; height: 10px; border-radius: 50%; display: block; }
.mi .mcb { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--l-cfcfcf); background: var(--b-ffffff); display: flex; align-items: center; justify-content: center; color: var(--t-ffffff); flex: none; margin: 0 1px; }
.mi .mcb i { font-size: 11px; display: inline-block; animation: am-check .18s cubic-bezier(.2,.8,.2,1); }
.mi .ml { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi .mh { font-size: 12px; line-height: 1; color: var(--t-9b9b9b); white-space: nowrap; }
.mi .mc { font-size: 16px; color: var(--accent); flex: none; }
.mi small { color: var(--t-9b9b9b); font-size: 12px; }

/* ---------- Ajustes rápidos ---------- */
.dscrim { position: absolute; inset: 0; z-index: 45; background: rgba(10,10,10,0.12); animation: am-fade .2s ease; }
.drawer { position: absolute; z-index: 46; animation: am-drawer .26s cubic-bezier(.2,.8,.2,1); top: 8px; right: 8px; bottom: 8px; width: 340px; max-width: calc(100% - 16px); background: var(--b-ffffff); border: 1px solid var(--l-ededed); border-radius: 25px; box-shadow: 0 30px 80px -24px rgba(0,0,0,0.22); display: flex; flex-direction: column; overflow: hidden; }
.drawer-h { height: 61px; flex: none; border-bottom: 1px solid var(--l-f2f2f2); padding: 0 12px 0 22px; display: flex; align-items: center; }
.drawer-h > span { flex: 1; font-size: 18px; font-weight: 500; line-height: 1; }
.drawer-b { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 14px 24px; display: flex; flex-direction: column; gap: 22px; }
.sec { display: flex; flex-direction: column; gap: 2px; }
.sec-t { padding: 0 8px 8px; font-size: 13px; font-weight: 500; color: var(--t-8a8a8a); }
.opt { border-radius: 12px; padding: 10px; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.opt:hover { background: var(--b-f8f8f8); }
.opt.on { background: var(--b-fbfbfb); }
.ring { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--l-cfcfcf); display: flex; align-items: center; justify-content: center; flex: none; }
.ring span { width: 8px; height: 8px; border-radius: 50%; display: block; }
.opt.on .ring { border-color: var(--accent); }
.opt.on .ring span { background: var(--accent); }
.opt .ot { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.opt .ot b { font-size: 14px; font-weight: 400; line-height: 18px; color: var(--t-141414); }
.opt .ot span { font-size: 12.5px; line-height: 16px; color: var(--t-8a8a8a); }
.tog { height: 44px; border-radius: 12px; padding: 0 10px; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.tog:hover { background: var(--b-f8f8f8); }
.tog > i { font-size: 18px; color: var(--t-9b9b9b); }
.tog > span { flex: 1; font-size: 14px; color: var(--t-141414); }
.sw { width: 36px; height: 22px; border-radius: 11px; padding: 2px; background: var(--b-e2e2e2); display: flex; flex: none; transition: background .15s ease; }
.sw span { width: 18px; height: 18px; border-radius: 50%; background: var(--b-ffffff); box-shadow: 0 1px 2px rgba(0,0,0,0.15); display: block; transition: transform .15s ease; }
.sw.on { background: var(--accent); }
.sw.on span { transform: translateX(14px); }
.linkrow { height: 40px; border-radius: 12px; padding: 0 10px 0 40px; display: flex; align-items: center; cursor: pointer; font-size: 14px; color: var(--accent); }
.linkrow:hover { background: var(--b-f8f8f8); }
.seg-wrap { display: flex; flex-direction: column; gap: 8px; padding: 0 8px; }
.seg-wrap > span { font-size: 13px; font-weight: 500; color: var(--t-8a8a8a); }
.seg { display: flex; padding: 3px; border-radius: 11px; background: var(--b-f4f4f4); }
.seg button { flex: 1; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--t-8a8a8a); }
.seg button.on { background: var(--b-ffffff); color: var(--t-111111); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.field-box { margin: 0 8px; border: 1px solid var(--l-f1f1f1); border-radius: 12px; padding: 4px 12px; display: flex; flex-direction: column; }
.field-box textarea, .field-box input { all: unset; font-family: inherit; font-size: 14px; line-height: 20px; color: var(--t-1a1a1a); padding: 8px 0; white-space: pre-wrap; }
.field-box textarea { min-height: 80px; }
.id-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--l-f2f2f2); }
.id-row:last-child { border-bottom: none; }
.id-row input { flex: 1; min-width: 0; padding: 0 !important; }
.id-row .tbtn { width: 28px; height: 28px; }
.hint { padding: 6px 8px 0; font-size: 12.5px; line-height: 17px; color: var(--t-9b9b9b); }
.err-text { padding: 6px 8px 0; font-size: 12.5px; color: var(--t-d93025); }
.blk { height: 36px; border-radius: 10px; padding: 0 4px 0 10px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--t-333333); }
.blk:hover { background: var(--b-f8f8f8); }
.blk span { flex: 1; min-width: 0; }

/* ---------- Modales ---------- */
.mback { position: absolute; inset: 0; z-index: 50; animation: am-fade .18s ease; background: rgba(10,10,10,0.28); display: flex; align-items: center; justify-content: center; padding: 40px; }
.modal { animation: am-modal .24s cubic-bezier(.2,.8,.2,1); max-width: 100%; max-height: 100%; background: var(--b-ffffff); border-radius: 25px; box-shadow: 0 30px 80px -24px rgba(0,0,0,0.3); }
.kb-modal { width: 640px; overflow-y: auto; padding: 22px 28px 28px; }
.modal-h { display: flex; align-items: center; }
.modal-h > span { flex: 1; font-size: 20px; font-weight: 500; line-height: 1; }
.kb-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.kb-grid div { height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--l-f4f4f4); }
.kb-grid span { font-size: 14px; color: var(--t-333333); }
.kb-grid kbd { font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1; color: var(--t-333333); background: var(--b-f4f4f4); border-radius: 6px; padding: 5px 8px; white-space: nowrap; }
.orig-modal { width: 760px; display: flex; flex-direction: column; overflow: hidden; }
.orig-h { flex: none; padding: 20px 16px 0 28px; display: flex; align-items: center; gap: 8px; }
.orig-h .tt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.orig-h .tt b { font-size: 20px; font-weight: 500; line-height: 24px; }
.orig-h .tt span { font-size: 13px; line-height: 18px; color: var(--t-8a8a8a); }
.btn-txt { height: 36px; padding: 0 12px; border-radius: 10px; font-size: 14px; color: var(--t-333333); display: flex; align-items: center; gap: 6px; }
.btn-txt:hover { background: var(--b-f6f6f6); color: var(--t-333333); }
.btn-txt i { font-size: 17px; }
.auth { flex: none; margin: 16px 28px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.auth span { height: 28px; padding: 0 10px; border: 1px solid var(--l-ececec); border-radius: 9px; display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1; color: var(--t-333333); }
.auth i { font-size: 15px; color: var(--t-32cb4d); }
.auth i.bad { color: var(--t-d93025); }
.auth i.na { color: var(--t-c8c8c8); }
.orig-modal pre { flex: 1; min-height: 0; overflow: auto; margin: 16px 28px 28px; padding: 16px 18px; background: var(--b-fbfbfb); border-radius: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 20px; color: var(--t-333333); white-space: pre-wrap; word-break: break-word; }

/* ---------- Toast ---------- */
.toast { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60; overflow: hidden; animation: am-toast .24s cubic-bezier(.2,.8,.2,1); height: 44px; background: var(--b-0a0a0a); color: var(--t-ffffff); font-size: 14px; line-height: 1; padding: 0 6px 0 16px; border-radius: 12px; display: flex; align-items: center; gap: 10px; box-shadow: 0 12px 32px -12px rgba(0,0,0,0.35); white-space: nowrap; max-width: calc(100% - 32px); }
.toast > span { overflow: hidden; text-overflow: ellipsis; }
.toast .prog { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,0.12); display: block; }
.toast .prog span { display: block; height: 100%; background: var(--b-9dbcff); transform-origin: left center; animation: am-shrink linear forwards; }
.toast .undo { font-weight: 500; color: var(--t-9dbcff); padding: 7px 8px; border-radius: 8px; }
.toast .undo:hover { background: var(--b-222222); }
.toast .close { width: 30px; height: 30px; border-radius: 8px; color: var(--t-9b9b9b); }
.toast .close:hover { background: var(--b-222222); color: var(--t-ffffff); }
.toast .close i { font-size: 14px; }

/* ---------- Login ---------- */
.login { height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-card { width: 360px; max-width: 100%; display: flex; flex-direction: column; gap: 14px; animation: am-rise .3s cubic-bezier(.2,.8,.2,1); }
.login-card .brand { margin-bottom: 18px; }
.login-card h1 { margin: 0; font-size: 26px; font-weight: 500; line-height: 32px; letter-spacing: -0.01em; }
.login-card p { margin: -6px 0 6px; font-size: 15px; line-height: 22px; color: var(--t-8a8a8a); }
.login-card .search { height: 44px; }
.login-card .search i { font-size: 20px; color: var(--t-9b9b9b); }
.login-card .btn-accent { height: 43px; justify-content: center; font-size: 15px; }
.login-err { min-height: 20px; font-size: 13px; color: var(--t-d93025); }

/* ---------- Impresión ---------- */
@media print {
  html, body { overflow: visible; height: auto; }
  .side, .list-sec, .rtool, .ractions, .smart, .draft, .toast, .cwin, .cmin, .subj-row .rbtn, .mhead .acts, .rbanner, .menu, .mscrim { display: none !important; }
  .root { height: auto !important; width: auto !important; zoom: 1 !important; padding: 0; display: block; overflow: visible; }
  .reader { margin: 0 !important; overflow: visible; display: block; }
  .rscroll { overflow: visible !important; }
  .article { padding: 0; max-width: none; animation: none; }
}

/* ---------- Tablet y móvil ---------- */
@media (max-width: 1099px) {
  .root { padding: 0; }
  .side { position: absolute; left: 0; top: 0; bottom: 0; z-index: 35; box-shadow: 0 30px 80px -24px rgba(0,0,0,0.3); transform: translateX(-105%); transition: transform .22s cubic-bezier(.2,.8,.2,1); padding-top: calc(12px + env(safe-area-inset-top)); }
  .root.nav-open .side { transform: none; }
  .side-scrim { position: absolute; inset: 0; z-index: 34; background: rgba(10,10,10,0.18); animation: am-fade .18s ease; }
  .hamb { display: flex; }
  .list-sec { margin-left: 0 !important; width: auto !important; flex: 1 1 0 !important; padding: calc(10px + env(safe-area-inset-top)) 12px 0; }
  .root.reading .list-sec { display: none; }
  .reader { margin-left: 0 !important; display: none; }
  .root.reading .reader { display: flex; }
  .card { margin-left: -12px; margin-right: -12px; border-radius: 16px 16px 0 0; border-bottom: none; }
  .rtool { overflow-x: auto; scrollbar-width: none; padding-top: env(safe-area-inset-top); height: calc(61px + env(safe-area-inset-top)); }
  .rtool::-webkit-scrollbar { display: none; }
  .cwin, .cwin.max { left: 0; top: 0; right: 0; bottom: 0; width: 100%; height: 100%; max-width: none; max-height: none; transform: none; border-radius: 0; border: none; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
  .cwin .editor { flex: 1 1 auto; }
  .cmin { right: 12px; }
  .adv { min-width: 0; }
}
@media (max-width: 640px) {
  .new-msg span { display: none; }
  .new-msg i { font-size: 24px; }
  .topbar { gap: 10px; }
  .view-title { margin-top: 18px; }
  .pills { margin-top: 14px; }
  .row { padding: 12px 14px 13.5px 16px; gap: 12px; }
  .row .snd { font-size: 16.5px; }
  .row .subj { font-size: 15px; }
  .ltool { padding: 0 6px 0 10px; }
  .pager-text { display: none; }
  .article, .mskel { padding: 22px 18px 32px; }
  .subj-row h1 { font-size: 22px; line-height: 28px; }
  .details { margin-left: 0; }
  .mhead { gap: 12px; }
  .mhead .acts .rbtn:not(:last-child) { display: none; }
  .pos, .nav-arrow { display: none; }
  .drawer { top: 0; right: 0; bottom: 0; width: 100%; max-width: none; border-radius: 0; border: none; }
  .mback { padding: 12px; }
  .kb-grid { grid-template-columns: 1fr; }
  .adv-row { grid-template-columns: 96px minmax(0, 1fr); }
  .toast { bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* ---------- Dominios y buzones ---------- */
.dom-modal { width: 800px; display: flex; flex-direction: column; overflow: hidden; }
.dom-h { flex: none; padding: 20px 16px 0 28px; display: flex; align-items: center; gap: 8px; }
.dom-h .tt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dom-h .tt b { font-size: 20px; font-weight: 500; line-height: 24px; }
.dom-h .tt span { font-size: 13px; line-height: 18px; color: var(--t-8a8a8a); }
.dom-b { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 28px 28px; display: flex; flex-direction: column; gap: 14px; }
.dom-b > * { flex-shrink: 0; }
.integr { display: flex; gap: 8px; flex-wrap: wrap; }
.integr span { height: 28px; padding: 0 10px; border: 1px solid var(--l-ececec); border-radius: 9px; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--t-333333); }
.integr i { font-size: 15px; }
.integr .ok { color: var(--t-32cb4d); }
.integr .no { color: var(--t-c8c8c8); }
.dom-add { display: flex; gap: 8px; }
.dom-add .search { flex: 1; }
.dom-add .btn-accent { flex: none; gap: 8px; }
.dom-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dom-mode .seg { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 11px 13px; border: 1px solid var(--l-ececec); border-radius: 12px; text-align: left; }
.dom-mode .seg b { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; color: var(--t-1a1a1a); }
.dom-mode .seg b i { font-size: 16px; color: var(--t-8a8a8a); }
.dom-mode .seg span { font-size: 12.5px; line-height: 17px; color: var(--t-8a8a8a); }
.dom-mode .seg.on { border-color: var(--accent); background: var(--b-f5f8ff); }
.dom-mode .seg.on b i { color: var(--accent); }
.dom-mode .seg:disabled { opacity: .5; cursor: default; }
@media (max-width: 560px) { .dom-mode { grid-template-columns: 1fr; } }
.dom-note { background: var(--b-fbfbfb); border-radius: 14px; padding: 12px 16px; font-size: 13px; line-height: 19px; color: var(--t-555555); text-wrap: pretty; }
.dom-note code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--b-f2f2f2); border-radius: 5px; padding: 1px 5px; }
.dom-card { border: 1px solid var(--l-f1f1f1); border-radius: 16px; overflow: hidden; animation: am-rise .24s cubic-bezier(.2,.8,.2,1); }
.dom-row { min-height: 58px; padding: 0 10px 0 16px; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.dom-row:hover { background: var(--b-fbfbfb); }
.dom-row > i { font-size: 22px; color: var(--t-9b9b9b); flex: none; }
.dom-row .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dom-row .nm b { font-size: 16px; font-weight: 500; line-height: 20px; color: var(--t-0a0a0a); }
.dom-row .nm span { font-size: 13px; line-height: 16px; color: var(--t-8a8a8a); }
.pill { height: 24px; padding: 0 9px; border-radius: 8px; display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500; flex: none; white-space: nowrap; }
.pill i { font-size: 13px; }
.pill.ok { background: var(--b-eafaee); color: var(--t-1f8f39); }
.pill.wait { background: var(--b-fff4e5); color: var(--t-b4610b); }
.pill.err { background: var(--b-fdecea); color: var(--t-c5221f); }
.dom-body { border-top: 1px solid var(--l-f2f2f2); padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 16px; }
.steps { display: flex; flex-direction: column; gap: 2px; }
.step { display: flex; gap: 12px; padding: 8px 4px; }
.step > i { font-size: 20px; flex: none; margin-top: 1px; }
.step > i.ok { color: var(--t-32cb4d); }
.step > i.wait { color: var(--t-f0a020); }
.step > i.off { color: var(--t-c8c8c8); }
.step .st { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.step .st b { font-size: 14px; font-weight: 500; line-height: 20px; color: var(--t-141414); }
.step .st span { font-size: 13px; line-height: 19px; color: var(--t-6b6b6b); text-wrap: pretty; }
.ns-list { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.copyline { height: 34px; padding: 0 4px 0 12px; border: 1px solid var(--l-ececec); border-radius: 10px; display: flex; align-items: center; gap: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--t-141414); max-width: 100%; }
.copyline span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy { width: 28px; height: 28px; border-radius: 8px; color: var(--t-9b9b9b); flex: none; }
.copy:hover { background: var(--b-f2f2f2); color: var(--t-333333); }
.copy i { font-size: 15px; }
.sub-t { font-size: 13px; font-weight: 500; color: var(--t-8a8a8a); display: flex; align-items: center; gap: 8px; }
.sub-t span { font-weight: 400; color: var(--t-9b9b9b); }
.rec-table { border: 1px solid var(--l-f1f1f1); border-radius: 12px; overflow: hidden; }
.rec { display: grid; grid-template-columns: 74px 60px minmax(0, 1fr) minmax(0, 1.6fr) 26px; align-items: center; gap: 10px; padding: 8px 6px 8px 12px; border-top: 1px solid var(--l-f2f2f2); font-size: 12.5px; line-height: 18px; color: var(--t-333333); }
.rec:first-child { border-top: none; }
.rec.head { background: var(--b-fbfbfb); color: var(--t-9b9b9b); font-size: 12px; }
.rec .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.rec .mono span { overflow: hidden; text-overflow: ellipsis; }
.rec .mono .copy { width: 22px; height: 22px; }
.rec .mono .copy i { font-size: 13px; }
.rec .kind { color: var(--t-8a8a8a); }
.rec > i { font-size: 16px; }
.rec > i.ok { color: var(--t-32cb4d); }
.rec > i.wait { color: var(--t-f0a020); }
.dom-err { background: var(--b-fdecea); color: var(--t-a52714); border-radius: 12px; padding: 10px 14px; font-size: 13px; line-height: 19px; white-space: pre-wrap; overflow-wrap: anywhere; }
.boxes { display: flex; flex-direction: column; gap: 6px; }
.box-row { height: 40px; border: 1px solid var(--l-f1f1f1); border-radius: 11px; padding: 0 6px 0 12px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--t-141414); }
.box-row .av { width: 24px; height: 24px; font-size: 10px; }
.box-row .bn { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.box-row .bn span { color: var(--t-8a8a8a); font-size: 13px; }
.box-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.box-add .field-box { margin: 0; flex: 1; min-width: 140px; padding: 0 12px; height: 40px; justify-content: center; }
.box-add .field-box input { padding: 0; }
.box-add .at { display: flex; align-items: center; gap: 6px; flex: 1.4; min-width: 220px; }
.box-add .at > span { font-size: 14px; color: var(--t-8a8a8a); white-space: nowrap; }
.btn-soft { height: 40px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--l-ececec); background: var(--b-ffffff); font-size: 14px; color: var(--t-333333); display: flex; align-items: center; gap: 6px; flex: none; }
.btn-soft:hover { background: var(--b-f6f6f6); }
.btn-soft i { font-size: 16px; }
.btn-soft.danger { color: var(--t-d93025); }
.dom-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: space-between; }
@media (max-width: 640px) {
  .dom-b { padding: 14px 16px 22px; }
  .dom-h { padding: 18px 10px 0 18px; }
  .rec { grid-template-columns: 54px minmax(0, 1fr) 22px; }
  .rec .kind, .rec.head .kind { display: none; }
  .rec .val { grid-column: 1 / 3; }
  .rec.head { display: none; }
}

/* ---------- Ajustes del modo oscuro ---------- */
@media (prefers-color-scheme: dark) {
  /* Los logos de remitentes suelen ser oscuros: se muestran sobre una pastilla clara */
  .logo { background: #ffffff; }
  .brand-mark { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }
  .toast { box-shadow: 0 12px 32px -12px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.06); }
  .pop, .cwin, .drawer, .modal, .cmin { box-shadow: 0 30px 80px -24px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04); }
  .dscrim, .mback, .cback, .side-scrim { background: rgba(0,0,0,0.5); }
}
