/* IA WhatsApp · mismo lenguaje visual que el TPV (verde petróleo + ámbar, tarjetas redondeadas, botones grandes) */
:root {
  --bg: #e7ebef; --surface: #fff; --surface-2: #f2f5f8; --ink: #0e1b2c; --muted: #5d6d7e; --line: #d2dae2;
  --brand: #0d5c63; --brand-d: #0a474d; --brand-soft: #d9edeb; --amber: #f1a33b; --amber-d: #d98d24;
  --danger: #b4341f; --danger-soft: #f8e0db; --ok: #1f7a4d; --ok-soft: #dcf0e5; --warn: #9a6200; --warn-soft: #fbecd0;
  --radius: 1rem; --shadow: 0 2px 8px rgba(14, 27, 44, .08);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.4 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.1rem; margin-bottom: .6rem; }
a { color: var(--brand); }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }
.hint, small.hint { color: var(--muted); font-size: .92rem; }
small { font-size: .85rem; }
.num { font-variant-numeric: tabular-nums; }
.grow { flex: 1; } .row { display: flex; align-items: center; } .row.gap, .gap { gap: .6rem; } .wrap { flex-wrap: wrap; }
svg.i { width: 1.35em; height: 1.35em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.big { width: 2.6rem; height: 2.6rem; stroke-width: 2.6; }

/* estructura */
.shell { display: grid; grid-template-columns: 15rem minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--brand); color: #fff; padding: 1.2rem .8rem; display: flex; flex-direction: column; gap: .3rem; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: .7rem; padding: .3rem .6rem 1.2rem; font-weight: 700; font-size: 1.05rem; line-height: 1.15; }
.brand svg { width: 2rem; height: 2rem; padding: .4rem; background: rgba(255, 255, 255, .16); border-radius: .7rem; stroke-width: 2.2; }
.brand small { display: block; font-weight: 500; font-size: .75rem; opacity: .7; letter-spacing: .06em; text-transform: uppercase; margin-top: .15rem; }
.nav { display: flex; align-items: center; gap: .75rem; padding: .8rem .9rem; border-radius: .8rem; color: rgba(255, 255, 255, .82); text-decoration: none; font-weight: 600; }
.nav:hover { background: rgba(255, 255, 255, .1); }
.nav.on { background: #fff; color: var(--brand-d); }
.nav.out { margin-top: auto; opacity: .8; }
main { padding: 1.4rem 1.8rem 3rem; min-width: 0; max-width: 78rem; width: 100%; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.content { display: flex; flex-direction: column; gap: 1.1rem; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem; min-width: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; align-items: start; }
.col { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); gap: 1.1rem; }
.stack { display: flex; flex-direction: column; gap: .9rem; }
.empty { color: var(--muted); text-align: center; padding: 2rem 1rem; }

/* estado */
.pill { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem .95rem; border-radius: 999px; font-weight: 650; font-size: .95rem; text-decoration: none; background: var(--surface); box-shadow: var(--shadow); white-space: nowrap; }
.pill i, .dot { width: .7rem; height: .7rem; border-radius: 50%; background: currentColor; flex: none; }
.pill.ok, .dot.ok { color: var(--ok); } .pill.warn, .dot.warn { color: var(--warn); } .pill.err, .dot.err { color: var(--danger); }
.pill span { color: var(--ink); }
.pill.ok i, .pill.warn i { animation: pulso 2s infinite; }
@keyframes pulso { 50% { opacity: .35; } }
.flash { padding: .85rem 1.1rem; border-radius: .9rem; font-weight: 600; background: var(--ok-soft); color: #14502f; }
.flash.err { background: var(--danger-soft); color: #7d2314; } .flash.warn { background: var(--warn-soft); color: #6b4300; }
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--surface-2); color: var(--muted); margin: .1rem .2rem .1rem 0; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); } .badge.err { background: var(--danger-soft); color: var(--danger); }
.chip { display: inline-block; padding: .18rem .65rem; border-radius: 999px; font-size: .82rem; font-weight: 650; margin: .1rem .25rem .1rem 0; color: var(--c, var(--brand)); background: color-mix(in srgb, var(--c, var(--brand)) 13%, #fff); border: 1px solid color-mix(in srgb, var(--c, var(--brand)) 30%, #fff); }

/* botones y formularios */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.9rem; padding: 0 1.2rem; border-radius: .85rem; font: inherit; font-weight: 650; color: var(--ink); background: var(--surface); border: 2px solid var(--line); cursor: pointer; text-decoration: none; transition: transform .07s, background .12s; }
.btn:hover { background: var(--surface-2); } .btn:active { transform: scale(.975); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; } .btn.primary:hover { background: var(--brand-d); }
.btn.danger { color: var(--danger); } .btn.danger:hover { background: var(--danger-soft); }
.btn.sm { min-height: 2.35rem; padding: 0 .9rem; font-size: .92rem; border-radius: .7rem; }
.btn.block { width: 100%; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .nav:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.fld { display: flex; flex-direction: column; gap: .35rem; } .fld > span { font-weight: 650; font-size: .92rem; } .fld.inl { display: inline-flex; }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: .75rem; padding: .65rem .8rem; width: 100%; min-width: 0; }
input[type=checkbox], input[type=radio] { width: 1.15rem; height: 1.15rem; padding: 0; accent-color: var(--brand); flex: none; }
input[type=color] { width: 2.6rem; height: 2.4rem; padding: .15rem; flex: none; cursor: pointer; }
input[type=number] { width: 5.5rem; } input[type=time] { width: 8rem; }
textarea { resize: vertical; line-height: 1.4; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); }
.chk { display: flex; align-items: flex-start; gap: .6rem; cursor: pointer; } .chk.sm { font-size: .9rem; align-items: center; white-space: nowrap; }
.chk.big > span { display: flex; flex-direction: column; } .chk small { color: var(--muted); font-weight: 400; }
.seg { display: flex; flex-wrap: wrap; gap: .4rem; }
.seg label, .pick { cursor: pointer; } .seg input, .pick input { position: absolute; opacity: 0; pointer-events: none; }
.seg span, .pick span { display: inline-block; padding: .5rem .95rem; border-radius: 999px; border: 2px solid var(--line); font-weight: 650; font-size: .92rem; background: #fff; }
.pick span { color: var(--c, var(--ink)); } .pick small { opacity: .7; margin-left: .2rem; }
.seg input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-d); }
.pick input:checked + span { background: var(--c, var(--brand)); border-color: var(--c, var(--brand)); color: #fff; }
.seg input:focus-visible + span, .pick input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.chips-pick { display: flex; flex-wrap: wrap; gap: .4rem; margin: .1rem 0 .4rem; }
.radios { display: flex; flex-direction: column; gap: .5rem; }
.radio { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem 1rem; border: 2px solid var(--line); border-radius: .9rem; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.radio span { display: flex; flex-direction: column; } .radio small { color: var(--muted); }
.note { background: var(--surface-2); border-radius: .8rem; padding: .8rem 1rem; } .note p { margin: .4rem 0 0; }
.sw { width: 3.1rem; height: 1.8rem; border-radius: 999px; border: 0; background: #b9c3cd; padding: 0; position: relative; cursor: pointer; flex: none; transition: background .15s; }
.sw i { position: absolute; top: .2rem; left: .2rem; width: 1.4rem; height: 1.4rem; background: #fff; border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.sw.on { background: var(--ok); } .sw.on i { transform: translateX(1.3rem); }

/* conexión */
.conn-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.conn-head .dot { width: 1.3rem; height: 1.3rem; } .conn-head h2 { font-size: 1.5rem; }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1.2rem; background: var(--surface-2); border-radius: var(--radius); margin-bottom: 1rem; }
#qr { background: #fff; padding: .9rem; border-radius: 1rem; box-shadow: var(--shadow); line-height: 0; } #qr svg, #qr img { width: min(18rem, 70vw); height: auto; }
.pasos { margin: 0; padding-left: 1.3rem; align-self: flex-start; } .pasos li { margin: .25rem 0; }
.okbox { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: var(--ok-soft); color: var(--ok); border-radius: var(--radius); margin-bottom: 1rem; }
.okbox b { font-size: 1.3rem; color: var(--ink); } .okbox .hint { margin: .1rem 0 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.stat { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.1rem; }
.stat b { display: block; font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--brand-d); } .stat span { color: var(--muted); font-size: .9rem; } .stat.warn b { color: var(--warn); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; margin: 0 0 .8rem; } .dl dt { color: var(--muted); } .dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; } .dl.sm { font-size: .93rem; margin: .4rem 0 .8rem; }
.feed { list-style: none; margin: 0; padding: 0; } .feed li { display: grid; grid-template-columns: 10rem auto 1fr auto; gap: .7rem; align-items: baseline; padding: .6rem 0; border-top: 1px solid var(--line); } .feed li:first-child { border: 0; }
.feed .who { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .feed .tag { font-size: .75rem; font-weight: 700; padding: .1rem .55rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-d); white-space: nowrap; }
.feed li.in .tag { background: var(--surface-2); color: var(--muted); } .feed .txt { color: #2c3e50; min-width: 0; overflow-wrap: anywhere; } .feed time { color: var(--muted); font-size: .85rem; white-space: nowrap; }

/* tablas y tarjetas */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.search { display: flex; gap: .5rem; flex-wrap: wrap; flex: 1; min-width: 16rem; } .search input { flex: 1; min-width: 12rem; } .search select { width: auto; }
.tablecard { padding: 0; overflow: hidden; } .tw { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; } .tbl th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: .8rem .9rem; background: var(--surface-2); white-space: nowrap; }
.tbl td { padding: .65rem .9rem; border-top: 1px solid var(--line); vertical-align: middle; } .tbl tr:hover td { background: #fafcfd; }
.tbl .ck { width: 2.4rem; padding-right: 0; } .tbl .nm { font-weight: 650; } .tbl .act { text-align: right; white-space: nowrap; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: .8rem .9rem; border-top: 1px solid var(--line); flex-wrap: wrap; gap: .5rem; }
.bulk { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; background: var(--brand-soft); border-radius: var(--radius); padding: .6rem .9rem; margin-bottom: .8rem; } .bulk select { width: auto; } .bulk .sep { width: 1px; height: 1.6rem; background: var(--brand); opacity: .3; margin: 0 .3rem; }
.env { display: flex; flex-direction: column; } .env.off { opacity: .6; } .env-h { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .4rem; } .env-h h3 { margin: 0; overflow-wrap: anywhere; }
.env-msg { margin: .2rem 0 .6rem; padding: .7rem .9rem; background: var(--surface-2); border-radius: .8rem; color: #2c3e50; overflow-wrap: anywhere; }
.inl { display: inline; }

/* diálogos */
dialog { border: 0; padding: 0; border-radius: 1.2rem; width: min(40rem, calc(100vw - 1.5rem)); max-height: calc(100vh - 2rem); background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
dialog::backdrop { background: rgba(14, 27, 44, .5); }
.dlg { padding: 1.4rem; display: flex; flex-direction: column; gap: .9rem; } .dlg h2 { margin-bottom: .1rem; }
.dlg-foot { display: flex; gap: .6rem; align-items: center; position: sticky; bottom: -1.4rem; background: var(--surface); padding: .8rem 0 0; margin-top: .3rem; border-top: 1px solid var(--line); }
.etq-list { display: flex; flex-direction: column; gap: .5rem; max-height: 50vh; overflow: auto; } .etq-row { display: flex; align-items: center; gap: .5rem; } .etq-row.new { padding-top: .6rem; border-top: 1px solid var(--line); }

/* conversaciones */
.chats { display: grid; grid-template-columns: 20rem minmax(0, 1fr); gap: 1.1rem; height: calc(100vh - 9rem); min-height: 28rem; }
.chatlist { padding: .4rem; overflow-y: auto; } .ci { display: grid; grid-template-columns: 1fr auto; gap: .1rem .6rem; padding: .7rem .8rem; border-radius: .8rem; text-decoration: none; color: var(--ink); } .ci:hover { background: var(--surface-2); } .ci.on { background: var(--brand-soft); }
.ci b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ci span { grid-column: 1; color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ci time { grid-row: 1; grid-column: 2; color: var(--muted); font-size: .78rem; }
.chatview { display: flex; flex-direction: column; min-height: 0; padding: 0; overflow: hidden; }
.chat-h { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); } .chat-h > div { flex: 1; min-width: 0; } .back { display: none; }
.msgs { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; background: #eef2f0; }
.bub { max-width: 78%; padding: .55rem .8rem; border-radius: 1rem; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); overflow-wrap: anywhere; align-self: flex-start; border-bottom-left-radius: .3rem; }
.bub.out { align-self: flex-end; background: #d6efe6; border-radius: 1rem; border-bottom-right-radius: .3rem; } .bub small { display: block; margin-top: .2rem; color: var(--muted); font-size: .72rem; }
.composer { display: flex; gap: .6rem; padding: .8rem; border-top: 1px solid var(--line); align-items: flex-end; } .composer textarea { flex: 1; }

/* acceso */
.login-body { display: grid; place-items: center; min-height: 100vh; padding: 1rem; }
.login { width: min(24rem, 100%); display: flex; flex-direction: column; gap: 1rem; padding: 1.8rem; }
.login .logo { width: 3.4rem; height: 3.4rem; border-radius: 1rem; background: var(--brand); color: #fff; display: grid; place-items: center; } .login .logo svg { width: 1.8rem; height: 1.8rem; }
.login p { margin: 0; }

@media (max-width: 62rem) { .grid2 { grid-template-columns: 1fr; } .feed li { grid-template-columns: 1fr auto; } .feed .who { grid-column: 1; } .feed time { grid-column: 2; grid-row: 1; } .feed .tag { grid-column: 1; justify-self: start; } .feed .txt { grid-column: 1 / -1; } }
@media (max-width: 52rem) {
  .shell { grid-template-columns: 1fr; padding-bottom: 4.6rem; }
  .rail { position: fixed; inset: auto 0 0 0; top: auto; height: auto; flex-direction: row; padding: .3rem .3rem calc(.3rem + env(safe-area-inset-bottom)); gap: .1rem; z-index: 20; box-shadow: 0 -4px 16px rgba(0, 0, 0, .18); }
  .brand, .nav.out { display: none; }
  .nav { flex: 1; flex-direction: column; gap: .15rem; padding: .45rem .1rem; font-size: .66rem; text-align: center; min-width: 0; } .nav span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  main { padding: 1rem .9rem 2rem; } h1 { font-size: 1.3rem; }
  .cards { grid-template-columns: 1fr; }
  .chats { grid-template-columns: 1fr; height: calc(100vh - 11rem); } .chats.open .chatlist { display: none; } .chats:not(.open) .chatview { display: none; } .back { display: inline-flex; }
  .tbl th:nth-child(4), .tbl td:nth-child(4) { display: none; }
  dialog { width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; } .dlg-foot { bottom: -1.4rem; padding-bottom: 1rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

[hidden] { display: none !important; }
.badge { border-radius: .6rem; }

.radios.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.numlist { list-style: none; margin: .4rem 0; padding: 0; max-height: 26rem; overflow-y: auto; }
.numlist li { display: grid; grid-template-columns: 9.5rem 1fr auto; gap: .6rem; align-items: center; padding: .5rem 0; border-top: 1px solid var(--line); }
.numlist .nm { overflow-wrap: anywhere; }
.lista.inactiva { opacity: .72; }
.lista.activa { outline: 2px solid var(--brand); }
@media (max-width: 62rem) { .radios.three { grid-template-columns: 1fr; } .numlist li { grid-template-columns: 1fr auto; } .numlist .nm { grid-column: 1; grid-row: 2; } .numlist form { grid-row: 1 / span 2; grid-column: 2; } }

/* asistente */
.asist { display: flex; flex-direction: column; height: calc(100vh - 9rem); min-height: 26rem; padding: 0; overflow: hidden; }
.asist .chat-h { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.asist .bub { white-space: pre-wrap; max-width: 85%; }
.asist .bub.err { background: #fde8e6; color: #8a1f17; }
.asist .bub.pensando { color: var(--muted); font-style: italic; }
.asist .empty { margin: auto; text-align: center; }
@media (max-width: 760px) { .asist { height: calc(100vh - 12rem); } .asist .bub { max-width: 92%; } }

.asist .bub.accion { background: #fff8e8; border: 1px solid #f1a33b; white-space: pre-wrap; display: flex; flex-direction: column; gap: .4rem; }
.asist .bub.accion .dest { font-size: .85rem; color: var(--muted); }
.asist .bub.accion .msgprev { background: #fff; border-radius: .6rem; padding: .5rem .7rem; border: 1px solid var(--line); }

/* sin leer */
.nbadge { margin-left: auto; min-width: 1.35rem; padding: .05rem .4rem; border-radius: 999px; background: var(--amber); color: #3b2500; font-size: .74rem; font-weight: 800; text-align: center; line-height: 1.3; }
.nbadge[hidden] { display: none; }
.ci.unread { background: #fff6e3; } .ci.unread b { font-weight: 800; } .ci.unread span { color: var(--ink); font-weight: 600; }
.ci .nuevos { font-style: normal; display: inline-block; min-width: 1.3rem; padding: .02rem .4rem; border-radius: 999px; background: var(--amber); color: #3b2500; font-size: .74rem; font-weight: 800; text-align: center; }
.leer-todo { display: block; padding: .4rem .8rem .6rem; font-size: .82rem; font-weight: 700; color: var(--brand-d); }
@media (max-width: 760px) { .nav { position: relative; } .nbadge { position: absolute; top: .15rem; right: 22%; margin: 0; font-size: .62rem; padding: 0 .3rem; } }

/* consumo */
.consumo { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .7rem; }
.bars { display: flex; align-items: flex-end; gap: .3rem; height: 7rem; padding: .3rem 0; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .2rem; min-width: 0; }
.bar i { display: block; width: 100%; background: var(--brand); border-radius: .25rem .25rem 0 0; min-height: 2px; }
.bar small { font-size: .68rem; color: var(--muted); }
.meter { height: .7rem; border-radius: 999px; background: var(--surface-2); overflow: hidden; } .meter i { display: block; height: 100%; background: var(--brand); }
.meter.warn i { background: var(--amber); } .meter.err i { background: #c0392b; }

/* personalizar menú */
.menu-ed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.menu-ed li { display: flex; align-items: center; gap: .6rem; } .menu-ed li input { flex: 1; min-width: 0; }
.menu-ed .mv { display: flex; gap: .25rem; }

.tokenbox { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.howto summary { cursor: pointer; font-weight: 700; color: var(--brand-d); } .howto ol { padding-left: 1.2rem; display: flex; flex-direction: column; gap: .4rem; } .howto code { background: var(--surface-2); padding: .1rem .4rem; border-radius: .4rem; }

/* presencia y avisos */
.presence { display: flex; align-items: center; gap: .3rem; margin-left: auto; min-width: 0; }
.pchip { width: 2rem; height: 2rem; border-radius: 50%; color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); margin-left: -.35rem; flex: none; }
.pchip:first-child { margin-left: 0; } .pchip.yo { cursor: pointer; box-shadow: 0 0 0 2px var(--brand); } .pchip.edit { box-shadow: 0 0 0 3px var(--amber); animation: pulso 1.6s ease-in-out infinite; }
.ptxt { color: var(--muted); font-size: .85rem; margin-left: .4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 22rem; }
@keyframes pulso { 50% { box-shadow: 0 0 0 5px rgba(241, 163, 59, .35); } }
.toasts { position: fixed; right: 1rem; bottom: 1rem; display: flex; flex-direction: column; gap: .5rem; z-index: 50; max-width: min(26rem, calc(100vw - 2rem)); }
.toast { background: var(--brand-d); color: #fff; padding: .7rem 1rem; border-radius: .9rem; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); transition: opacity .4s, transform .4s; }
.toast.out { opacity: 0; transform: translateY(8px); }
@media (max-width: 760px) { .ptxt { display: none; } .toasts { bottom: 4.6rem; } }
@media (prefers-reduced-motion: reduce) { .pchip.edit { animation: none; } .toast { transition: none; } }
