/* CowFace — app.css: cuentas, formularios de publicación, paneles, chat, pedidos y admin. */

/* ---------- Cuentas y formularios ---------- */
.auth { max-width: 440px; margin: 3rem auto; padding: 2rem; border: 1px solid var(--line); }
.auth-wide { max-width: 640px; }
.auth h1 { text-transform: uppercase; font-weight: 900; letter-spacing: -.02em; }
.form-page { max-width: 860px; margin: 2rem auto; padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid var(--line); }
.form-page h1 { text-transform: uppercase; font-weight: 900; }
.form-actions { display: flex; justify-content: flex-end; gap: .5rem; }
.photo-preview, .current-photos { display: flex; flex-wrap: wrap; gap: 6px; }
.current-photos { margin-bottom: 1rem; }
.legal { max-width: 760px; margin: 2rem auto; }
.legal h1 { text-transform: uppercase; font-weight: 900; }
.legal h2 { margin-top: 2rem; }
.legal li { margin-bottom: .4rem; }

/* ---------- Paneles (Mi cuenta / Admin) ---------- */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--ink); }
.page-head h1 { margin: 0; text-transform: uppercase; font-weight: 900; }
.page-head p { margin: .3rem 0 0; }
.page-head p a { text-decoration: underline; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; margin-top: 1.5rem; background: var(--line); border: 1px solid var(--line); }
.stat { background: #fff; padding: 1rem; display: flex; flex-direction: column; font-size: .78rem; }
a.stat:hover { text-decoration: none; background: var(--soft); }
.stat-n { font-size: 1.45rem; font-weight: 800; color: var(--text); }
.stat-accent { background: var(--ok-soft); }
.stat-warn { background: var(--warn-soft); }
.rate-form label { flex-direction: row; align-items: center; gap: .4rem; }
.rate-form input { width: 5.5rem; }
.commission-form { margin-top: 1rem; display: flex; align-items: center; gap: .5rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; background: var(--soft); }
tr:last-child td { border-bottom: 0; }
.row-off { opacity: .45; }
.actions { white-space: nowrap; }
.list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.list-row { display: flex; gap: .9rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.list-row img { width: 64px; height: 64px; object-fit: cover; }
.list-main { flex: 1; min-width: 0; }
.list-main a { font-weight: 700; }
.list-actions { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }

/* Estados */
.status { display: inline-block; padding: .15rem .5rem; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: var(--soft); color: var(--muted); }
.status-disponible, .status-completado, .status-reservado, .status-aceptada { background: var(--ok-soft); color: var(--ok); }
.status-por_pagar, .status-pendiente, .status-pausado, .status-en_disputa, .status-reembolso_pendiente { background: var(--warn-soft); color: var(--warn); }
.status-pagado, .status-enviado { background: var(--info-soft); color: var(--info); }
.status-vendido { background: var(--ink); color: #fff; }

/* ---------- Bandeja de mensajes ---------- */
.inbox { display: flex; flex-direction: column; margin: 1rem 0; border-top: 1px solid var(--line); }
.inbox-row { display: flex; gap: .9rem; align-items: center; padding: .8rem .4rem; border-bottom: 1px solid var(--line); color: var(--text); }
.inbox-row:hover { background: var(--soft); text-decoration: none; }
.inbox-row img { width: 56px; height: 56px; object-fit: cover; flex-shrink: 0; }
.inbox-main { flex: 1; min-width: 0; }
.inbox-top { display: flex; justify-content: space-between; gap: .5rem; }
.inbox-last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .88rem; }
.inbox-row.unread .inbox-last { color: var(--text); font-weight: 700; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ---------- Conversación ---------- */
.chat { max-width: 780px; margin: 1.5rem auto; border: 1px solid var(--line); display: flex; flex-direction: column; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); font-size: .9rem; }
.chat-head a { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.deal-panel { padding: .9rem 1rem; border-bottom: 1px solid var(--line); background: var(--soft); display: flex; flex-direction: column; gap: .8rem; }
.deal-product { display: flex; gap: .8rem; align-items: center; color: var(--text); }
.deal-product:hover { text-decoration: none; }
.deal-product img { width: 56px; height: 56px; object-fit: cover; }
/* Burbujas tipo chat: compactas, redondeadas, el texto a la izquierda y la hora pequeña abajo. */
.messages { display: flex; flex-direction: column; gap: .35rem; padding: 1rem .9rem; height: min(58vh, 560px); overflow-y: auto; background: #fafaf8; }
.msg-row { display: flex; }
.msg-row.mine { justify-content: flex-end; }
.bubble { display: flex; flex-direction: column; gap: .1rem; max-width: 78%; padding: .5rem .8rem .4rem; background: #fff; border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; font-size: .95rem; line-height: 1.35; text-align: left; }
.mine .bubble { background: var(--ink); border-color: var(--ink); color: #fff; border-radius: 18px 18px 6px 18px; }
.bubble-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble-time { align-self: flex-end; font-size: .66rem; opacity: .6; line-height: 1; margin-top: .1rem; }
.msg-system { align-self: center; text-align: center; font-size: .8rem; color: var(--muted); padding: .4rem .9rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; max-width: 92%; margin: .3rem 0; }
.offer-card { min-width: 220px; max-width: 80%; padding: .9rem 1rem; border: 2px solid var(--ink); border-radius: 16px; background: #fff; }
.offer-card.offer-rechazada, .offer-card.offer-retirada, .offer-card.offer-expirada, .offer-card.offer-reemplazada { border-color: var(--line); opacity: .7; }
.offer-label { font-size: .68rem; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.offer-amount { font-size: 1.6rem; font-weight: 900; margin: .1rem 0 .35rem; letter-spacing: -.02em; }
.inline-actions { display: inline-flex; gap: .35rem; flex-wrap: wrap; margin-top: .5rem; }
.composer { padding: .8rem 1rem 1rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .5rem; }
.composer .alert { margin: 0; }
.composer-text { display: flex; gap: .5rem; align-items: flex-end; }
.composer-text textarea { resize: none; min-height: 46px; max-height: 140px; }
.composer-text input { flex: 1; }
.composer-offer summary { cursor: pointer; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.composer-offer .composer-text { margin-top: .5rem; }

/* ---------- Recuadro del pedido ---------- */
.order-box { background: #fff; border: 1px solid var(--ink); padding: .9rem 1rem; }
.order-box p { margin: .4rem 0 0; font-size: .9rem; }
.order-box form { margin-top: .5rem; }
.order-box-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.order-price { font-size: 1.25rem; font-weight: 800; margin-top: .2rem; }
.order-box.order-en_disputa, .order-box.order-reembolso_pendiente { border-color: var(--warn); }
.order-box.order-cancelado, .order-box.order-reembolsado { border-color: var(--line); opacity: .8; }
.pay-steps p { margin: .7rem 0 .3rem; }
.pay-card { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; background: var(--soft); padding: .9rem; }
.pay-card div { display: flex; flex-direction: column; }
.copy { cursor: copy; text-decoration: underline dotted; text-underline-offset: 3px; }
.copy[data-copied]::after { content: ' ✓ copiado'; font-weight: 500; font-size: .75rem; color: var(--ok); }
.delivery { display: grid; gap: .35rem; margin: .5rem 0; background: var(--soft); padding: .8rem .9rem; }
.delivery div { display: grid; grid-template-columns: 90px 1fr; gap: .5rem; }
.delivery dt { color: var(--muted); font-size: .8rem; }
.delivery dd { margin: 0; overflow-wrap: anywhere; }
.dispute summary { list-style: none; margin-top: .5rem; }
.dispute summary::-webkit-details-marker { display: none; }

/* ---------- Admin ---------- */
#pagos h3 { display: flex; align-items: center; gap: .5rem; margin-top: 1.4rem; text-transform: uppercase; font-size: .85rem; letter-spacing: .06em; }
.task-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-bottom: 1.5rem; }
.task { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.task-main { flex: 1; min-width: 240px; }
.task form { margin: 0; }
.admin-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; }
.admin-split textarea { font-family: ui-monospace, Consolas, monospace; }
.flag-list { display: flex; flex-direction: column; max-height: 520px; overflow-y: auto; border-top: 1px solid var(--line); }
.flag { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.flag-body { margin: .3rem 0; font-style: italic; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .admin-split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .chat { margin: .5rem -16px; border-left: 0; border-right: 0; }
  .messages { height: 52vh; }
  .bubble, .offer-card { max-width: 88%; }
  .pay-card { grid-template-columns: 1fr; }
  .auth, .form-page { padding: 1.25rem; margin: 1.25rem auto; }
  .list-row { flex-wrap: wrap; }
  .list-actions { width: 100%; justify-content: flex-start; }
}

/* ---------- Perfil público, reseñas, bloqueos y acceso con Google/Facebook ---------- */
.head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.head-actions .btn + .btn { margin-left: 0; }
.account-links { margin: .8rem 0 0; }
.account-links a { text-decoration: underline; }
.stars { color: var(--ink); letter-spacing: .05em; }
.profile-head { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; padding-bottom: 1.5rem; border-bottom: 1px solid var(--ink); }
.avatar-lg { width: 84px; height: 84px; font-size: 2rem; }
.profile-main { flex: 1; min-width: 220px; }
.profile-main h1 { margin: 0 0 .3rem; text-transform: uppercase; font-weight: 900; }
.profile-rating { display: flex; align-items: center; gap: .4rem; }
.profile-rating .stars { font-size: 1.1rem; }
.profile-facts { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .4rem; }
.rating-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 1.5rem; }
.rating-split div { background: #fff; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .2rem; }
.review-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.review { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.review p { margin: .4rem 0; }
.review-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
a.seller-box { color: var(--text); }
a.seller-box:hover { text-decoration: none; background: var(--soft); }
.seller-main { flex: 1; }
.seller-arrow { font-size: 1.2rem; padding-right: .5rem; }
.chat-who { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.chat-head form { margin: 0; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .15rem; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 1.7rem; color: var(--line); cursor: pointer; text-transform: none; letter-spacing: 0; line-height: 1; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--ink); }
.star-input input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.review-form { border-top: 1px solid var(--line); padding-top: .6rem; margin-top: .8rem; }
.social-login { display: flex; flex-direction: column; gap: .5rem; margin: 1rem 0; }
.btn-social { gap: .6rem; }
.btn-social:hover svg path { filter: brightness(1.2); }
.divider { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; margin-top: .5rem; }
.divider::before, .divider::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
label.check { flex-direction: row; align-items: flex-start; gap: .6rem; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .88rem; }
label.check a { text-decoration: underline; }
@media (max-width: 640px) {
  .rating-split { grid-template-columns: 1fr; }
}

/* Recuperar contraseña */
.forgot-link { align-self: flex-end; margin-top: -.5rem; text-decoration: underline; text-underline-offset: 3px; }
.spaced { margin-top: 1.5rem; }
.pay-card.single { grid-template-columns: 1fr; }
.break { overflow-wrap: anywhere; }

/* ---------- Fotos al publicar ---------- */
.photo-tile { position: relative; width: 104px; }
.photo-tile img { width: 104px; height: 104px; object-fit: cover; display: block; }
.photo-tile.is-cover img { outline: 2px solid var(--ink); outline-offset: -2px; }
.photo-tile form { margin: 0; }
.cover-badge, .cover-btn { position: absolute; left: 0; right: 0; bottom: 0; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; text-align: center; padding: .25rem 0; }
.cover-badge { background: var(--ink); color: #fff; }
.cover-btn { border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; width: 100%; }
.cover-btn:hover { background: #fff; text-decoration: underline; }
.remove-btn { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; background: var(--ink); color: #fff; cursor: pointer; line-height: 1; }
.photo-preview figure { margin: 0; position: relative; }
.photo-preview img { width: 104px; height: 104px; object-fit: cover; display: block; }
.photo-preview figcaption { position: absolute; left: 0; right: 0; bottom: 0; background: var(--ink); color: #fff; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; text-align: center; padding: .25rem 0; }
.photo-preview, .current-photos { gap: 8px; }

/* ---------- Publicar (experiencia del vendedor) ---------- */
.listing-page { max-width: 1180px; margin: 2rem auto; }
.listing-head h1 { text-transform: uppercase; font-weight: 900; margin-bottom: .3rem; }
.listing-form { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start; margin-top: 1rem; }
.listing-main { display: flex; flex-direction: column; gap: 1.25rem; }
.listing-step { border: 1px solid var(--line); padding: 1.25rem; display: flex; flex-direction: column; gap: .9rem; margin: 0; min-width: 0; }
.listing-step h2 { display: flex; align-items: center; gap: .6rem; margin: 0; font-size: .95rem; }
.step-n { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-grid; place-items: center; font-size: .8rem; }
.listing-guide { position: sticky; top: 130px; border: 1px solid var(--line); padding: 1.25rem; background: var(--soft); }
.listing-guide h3 { text-transform: uppercase; font-size: .82rem; letter-spacing: .08em; }
.guide-list { padding-left: 1.1rem; margin: .5rem 0 1rem; display: flex; flex-direction: column; gap: .45rem; font-size: .88rem; }
.listing-actions { position: sticky; bottom: 0; background: #fff; padding: .9rem 0; border-top: 1px solid var(--line); z-index: 5; }
.sr-label { font-size: 0; gap: 0; }
.sr-label textarea { font-size: .95rem; }

.dropzone { border: 2px dashed var(--line); padding: 1.5rem; text-align: center; transition: border-color .15s, background .15s; }
.dropzone.dragging { border-color: var(--ink); background: var(--soft); }
.dropzone-inner { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.dropzone-actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-top: .4rem; }
.dropzone-actions .btn + .btn { margin-left: 0; }
.visually-hidden-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.visually-hidden-input:focus-visible + .dropzone-inner { outline: 2px solid var(--ink); outline-offset: 4px; }
.photo-preview .photo-tile { margin: 0; }
.tile-tools { position: absolute; top: 4px; left: 4px; display: flex; gap: 2px; }
.tile-tools button { width: 22px; height: 22px; border: 0; background: rgba(255, 255, 255, .92); cursor: pointer; font-weight: 800; line-height: 1; }

.pdf-pages { border: 1px solid var(--ink); padding: 1rem; display: flex; flex-direction: column; gap: .8rem; }
.pdf-pages-head { display: flex; flex-direction: column; }
.pdf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; max-height: 420px; overflow-y: auto; }
.pdf-page { position: relative; display: flex; flex-direction: column; gap: .2rem; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .75rem; cursor: pointer; }
.pdf-page img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: var(--soft); border: 1px solid var(--line); }
.pdf-page input { position: absolute; top: 6px; left: 6px; width: 18px; height: 18px; }
.pdf-pages-actions { display: flex; gap: .5rem; }
.pdf-pages-actions .btn + .btn { margin-left: 0; }

.measure-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; }
.earnings { background: var(--soft); padding: 1rem; display: flex; flex-direction: column; gap: .4rem; }
.earnings div { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.earnings-total { border-top: 1px solid var(--line); padding-top: .5rem; font-size: 1.05rem !important; }
.earnings-total strong { font-size: 1.25rem; }
.upload-progress { display: flex; flex-direction: column; gap: .35rem; }
.upload-bar { height: 8px; background: var(--soft); overflow: hidden; }
.upload-bar span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .2s; }

@media (max-width: 900px) {
  .listing-form { grid-template-columns: minmax(0, 1fr); }
  .listing-guide { position: static; order: -1; }
}

/* ---------- Adjuntos en el chat ---------- */
.attach-btn { display: grid; place-items: center; width: 44px; height: 46px; border: 1px solid var(--line); cursor: pointer; font-size: 1.15rem; flex-shrink: 0; text-transform: none; }
.attach-btn:hover { border-color: var(--ink); }
.attach-form { border: 1px solid var(--line); padding: .7rem; display: flex; flex-direction: column; gap: .5rem; }
.attach-form[hidden] { display: none; }
.attach-preview img { max-height: 160px; max-width: 100%; object-fit: contain; }
.attach-pdf { font-weight: 600; font-size: .9rem; }
.attach-actions { display: flex; gap: .4rem; }
.attach-actions .btn + .btn { margin-left: 0; }
.bubble-file { display: flex; flex-direction: column; gap: .35rem; }
.chat-photo img { max-width: min(260px, 100%); max-height: 300px; object-fit: cover; display: block; border-radius: 12px; }
.chat-pdf { font-weight: 700; text-decoration: underline; }
.mine .chat-pdf { color: #fff; }
.file-link { font-weight: 700; text-decoration: underline; white-space: nowrap; }

/* ---------- Pedido: montos y entrega ---------- */
.order-lines { display: flex; flex-direction: column; gap: .2rem; margin-top: .4rem; font-size: .9rem; }
.order-lines div { display: flex; justify-content: space-between; gap: 1rem; }
.order-total { font-weight: 800; font-size: 1.05rem; border-top: 1px solid var(--line); padding-top: .3rem; margin-top: .2rem; }
.method-options { display: flex; flex-direction: column; gap: .4rem; }
.method-option { flex-direction: row; align-items: center; gap: .6rem; padding: .6rem .7rem; border: 1px solid var(--line); cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .9rem; }
.method-option:has(input:checked) { border-color: var(--ink); background: var(--soft); }
.method-option > span { display: flex; flex-direction: column; }
.method-option input { width: auto; }

/* Edición rápida en "Mi cuenta" */
.quick-edit { display: flex; align-items: flex-end; gap: .4rem; margin-top: .45rem; flex-wrap: wrap; }
.quick-edit label { flex-direction: row; align-items: center; gap: .3rem; font-size: .7rem; }
.quick-edit input { width: 6.5rem; padding: .35rem .5rem; font-size: .85rem; }
.quick-edit input[type="number"] { width: 4.5rem; }
.status-borrador { background: #eee; color: #444; }

/* Admin: lectura de conversación */
.admin-thread { display: flex; flex-direction: column; gap: .6rem; margin: 1.5rem 0; max-width: 760px; }
.admin-msg { border-left: 3px solid var(--line); padding: .4rem .8rem; }
.admin-msg.from-seller { border-color: var(--ink); }
.admin-msg.from-buyer { border-color: var(--info); }
.admin-msg.from-system { border-color: var(--warn); background: var(--soft); }
.admin-msg-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-msg-img { max-width: 280px; max-height: 280px; object-fit: contain; margin: .3rem 0; }

/* Cómo funciona */
.how-page .lead { font-size: 1.05rem; }
.how-steps { display: flex; flex-direction: column; gap: .8rem; padding-left: 1.3rem; margin: 1.5rem 0; }
.how-steps li { padding-left: .3rem; }
.faq dt { font-weight: 800; margin-top: 1rem; }
.faq dd { margin: .25rem 0 0; color: #333; }

/* ---------- Admin: ganancias, tiendas destacadas y notificaciones ---------- */
.admin-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.admin-links .btn + .btn { margin-left: 0; }
.earn-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.earn-years { display: flex; gap: .3rem; flex-wrap: wrap; }
.earn-years a { padding: .3rem .7rem; border: 1px solid var(--line); font-size: .8rem; font-weight: 700; }
.earn-years a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.earn-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 220px; margin: 1rem 0 1.5rem; padding-top: 1.2rem; border-bottom: 1px solid var(--ink); }
.earn-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; position: relative; }
.earn-bar { width: 100%; min-height: 2px; background: var(--ink); }
.earn-val { font-size: .62rem; font-weight: 700; white-space: nowrap; margin-bottom: .2rem; }
.earn-label { position: absolute; bottom: -1.4rem; font-size: .68rem; color: var(--muted); white-space: nowrap; }
.feature-form { display: flex; gap: .3rem; align-items: center; }
.feature-form select { padding: .3rem; font-size: .8rem; width: auto; }
.notify-form { max-width: 620px; }
.notify-events { border: 1px solid var(--line); padding: 1rem; display: flex; flex-direction: column; gap: .55rem; margin: 0; }
@media (max-width: 640px) {
  .earn-val { display: none; }
  .earn-label { font-size: .55rem; }
}

/* ---------- Notificaciones en el celular ---------- */
.push-panel { border: 1px solid var(--line); padding: 1.1rem 1.2rem; margin-top: 2rem; }
.push-panel h2 { margin-top: 0; }
.push-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.push-actions .btn + .btn { margin-left: 0; }
.push-steps { padding-left: 1.2rem; display: flex; flex-direction: column; gap: .35rem; }
.push-cta { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .7rem .9rem; margin: .8rem 0; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; font-size: .9rem; }
.composer .push-cta { margin: 0; }

/* ---------- Carga rápida ---------- */
.bulk-form { max-width: 640px; }
.bulk-help { display: flex; flex-direction: column; gap: .5rem; }
.bulk-help details { border: 1px solid var(--line); padding: .6rem .9rem; }
.bulk-help p { margin: .4rem 0; font-size: .88rem; }
.notice-ok { background: var(--ok-soft); border-color: var(--ok); }
