/* Panel de la agencia y los clientes. */
:root {
  --paper: #F7F5F0;
  --card: #FFFFFF;
  --ink: #1A1916;
  --ink-2: #4A4740;
  --muted: #6F6A60;
  --line: #E4DFD5;
  --line-2: #D3CCBF;
  --brand: #1E4D3B;
  --brand-ink: #FFFFFF;
  --brand-soft: #E5EEE9;
  --danger: #A33A2B;
  --ok: #2E6B45;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(26, 25, 22, .05), 0 8px 24px -12px rgba(26, 25, 22, .12);
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.right { text-align: right; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 5vw, 40px); line-height: 1.05; letter-spacing: -.01em; }
.h2 { font-size: 17px; font-weight: 600; margin-bottom: 14px; }

/* ---------- Botones y formularios ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 16px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
  font: 600 14px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: #163D2E; border-color: #163D2E; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: rgba(26, 25, 22, .05); border-color: transparent; }
.btn-small { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-dashed { border-style: dashed; background: transparent; color: var(--ink-2); min-height: 52px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.danger { color: var(--danger) !important; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 12px; }
input[type=text], input[type=email], input[type=password], input:not([type]), select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px;
  border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); color: var(--ink);
  font: 15px/1.4 var(--sans);
}
textarea { resize: vertical; min-height: 64px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input[type=file] { font: 13px var(--sans); }

.alert { background: #F8E7E3; color: var(--danger); padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; }
.flash { max-width: 1080px; margin: 12px auto 0; padding: 12px 16px; border-radius: 8px; font-size: 14px; }
.flash-ok { background: var(--brand-soft); color: var(--brand); }
.flash-error { background: #F8E7E3; color: var(--danger); }

.badge { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 3px 8px; border-radius: 99px; }
.badge-ok { background: var(--brand-soft); color: var(--brand); }
.badge-off { background: #EFEBE3; color: var(--muted); }

/* ---------- Estructura ---------- */

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--line); background: var(--paper); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--ink); color: var(--paper); font-family: var(--serif); font-size: 19px; }
.topnav { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.topnav a { text-decoration: none; color: var(--muted); }
.topnav a.is-active, .topnav a:hover, .topnav .linklike:hover { color: var(--ink); }
.topnav .linklike { color: var(--muted); }

.page { max-width: 1080px; margin: 0 auto; padding: 36px 24px 80px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); }
.narrow { max-width: 420px; width: 100%; }
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.center-page .panel > * + * { margin-top: 12px; }
.login .display { margin-bottom: 20px; }
.login-body { background: radial-gradient(1200px 600px at 50% -10%, #ECE7DC, var(--paper)); }

/* ---------- Listado de cartas ---------- */

.create { position: relative; }
.create > summary { list-style: none; }
.create > summary::-webkit-details-marker { display: none; }
.create-form { position: absolute; right: 0; top: calc(100% + 8px); width: min(360px, 90vw); z-index: 20; }
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.menu-card { display: flex; align-items: center; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.menu-swatch {
  flex: none; width: 64px; height: 80px; border-radius: 8px; background: var(--sw-bg); color: var(--sw-text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  border: 1px solid rgba(0, 0, 0, .08);
}
.sw-title { font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--sw-accent); }
.sw-lines { display: grid; gap: 4px; width: 34px; }
.sw-lines i { display: block; height: 2px; background: var(--sw-text); opacity: .35; border-radius: 2px; }
.sw-lines i:nth-child(2) { width: 70%; }
.menu-card-body { flex: 1; min-width: 0; }
.menu-card-top { display: flex; align-items: center; gap: 10px; }
.menu-name { font-size: 18px; font-weight: 600; }
.menu-name a { text-decoration: none; }
.menu-url { display: block; margin: 2px 0 4px; color: var(--brand); font-size: 14px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-url:hover { text-decoration: underline; }
.menu-card-actions { display: flex; align-items: center; gap: 4px; }
.empty { text-align: center; padding: 56px 24px; }

.more { position: relative; }
.more > summary { list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 180px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); text-align: left; }
.more-menu.wide { min-width: 300px; padding: 12px; display: grid; gap: 10px; }
.more-menu button:not(.btn) { width: 100%; text-align: left; padding: 9px 10px; border: 0; background: none; border-radius: 6px; font: 14px var(--sans); cursor: pointer; }
.more-menu button:not(.btn):hover { background: var(--paper); }
.inline-form { display: flex; gap: 8px; }
.inline-form select, .inline-form input { min-height: 36px; padding: 6px 10px; font-size: 14px; }

.users-layout { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.table-wrap { padding: 0; overflow: visible; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 14px 18px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }

/* ---------- Editor ---------- */

.editor-body { background: var(--paper); }
.editor { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.ed-top { display: flex; align-items: center; gap: 14px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: var(--card); }
.ed-back { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; text-decoration: none; font-size: 18px; color: var(--ink-2); }
.ed-back:hover { background: var(--paper); }
.ed-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ed-title strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-status { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-status.is-busy { color: var(--ink-2); }
.ed-status.is-ok { color: var(--ok); }
.ed-status.is-error { color: var(--danger); }
.ed-top-actions { display: flex; gap: 8px; }
.ed-preview-toggle { display: none; }

.ed-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 440px; }
.ed-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.ed-tabs { display: flex; gap: 2px; padding: 8px 18px 0; border-bottom: 1px solid var(--line); overflow-x: auto; background: var(--paper); }
.ed-tab { border: 0; background: none; padding: 12px 14px; font: 600 14px var(--sans); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.ed-tab:hover { color: var(--ink); }
.ed-tab.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.spark { color: var(--brand); margin-right: 4px; }
.ed-tab-body { flex: 1; overflow-y: auto; padding: 22px 18px 80px; }
.ed-tab-body > .stack { max-width: 720px; margin: 0 auto; }

.stack { display: grid; gap: 16px; }
.stack-sm { display: grid; gap: 10px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.card-head { margin-bottom: 14px; }
.card-head h2 { font-size: 15px; font-weight: 600; }
.card-head p { margin-top: 2px; }

.ed-preview { min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; background: #ECE8E0; }
.phone { position: relative; width: 375px; max-width: 100%; height: min(760px, calc(100% - 40px)); border-radius: 44px; padding: 12px; background: #151412; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .35); }
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; background: #151412; border-radius: 0 0 16px 16px; z-index: 2; }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 33px; background: #fff; }

/* Secciones e ítems */
.sec { padding: 0; overflow: hidden; }
.sec.is-hidden { opacity: .6; }
.sec-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.sec-toggle { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 14px; color: var(--muted); border-radius: 6px; }
.sec-toggle:hover { background: var(--paper); }
.sec-title-input { flex: 1; min-width: 0; border-color: transparent !important; font-weight: 600; font-size: 16px; padding-left: 6px; background: transparent; }
.sec-title-input:hover { border-color: var(--line) !important; }
.sec-title-input:focus { border-color: var(--brand) !important; background: var(--card); }
.sec-count { white-space: nowrap; }
.sec-actions { display: flex; gap: 2px; }
.sec-body { padding: 0 16px 16px; border-top: 1px solid var(--line); }
.sec-body > textarea { margin: 14px 0 10px; min-height: 44px; font-size: 14px; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 6px; background: none; color: var(--ink-2); cursor: pointer; font-size: 14px; }
.icon-btn:hover:not([disabled]) { background: var(--paper); }
.icon-btn[disabled] { opacity: .3; cursor: default; }
.icon-btn.is-off { color: var(--muted); }

.item-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.item-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto auto; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-bottom: 1px solid var(--line); background: var(--card); }
.item-row:last-child { border-bottom: 0; }
.item-row.kind-heading { background: #FAF8F3; }
.item-row.kind-note { background: #FBFAF7; }
.item-row.is-out .item-name, .item-row.is-out .item-price { opacity: .5; }
.item-thumb { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }
.item-thumb.is-empty { background: repeating-linear-gradient(45deg, #F3F0EA, #F3F0EA 4px, #EEEAE2 4px, #EEEAE2 8px); }
.kind-heading .item-thumb.is-empty, .kind-note .item-thumb.is-empty { background: none; }
.item-main { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 4px 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.item-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.item-main:hover .item-name { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.item-detail { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.kind-badge { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-right: 8px; }
.item-price { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; white-space: nowrap; }
.item-move { display: flex; }
.item-move .icon-btn { width: 28px; height: 28px; }
.add-row { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.empty-items { padding: 14px; text-align: center; border: 1px dashed var(--line-2); border-radius: 10px; }

.switch { position: relative; display: inline-flex; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch-ui { width: 36px; height: 22px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .15s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; }
.switch input:checked + .switch-ui { background: var(--brand); }
.switch input:checked + .switch-ui::after { transform: translateX(14px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--brand); outline-offset: 2px; }
.switch-row { display: flex; align-items: center; gap: 14px; cursor: pointer; }

.img-picker { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px dashed var(--line-2); border-radius: 10px; margin-bottom: 14px; }
.img-picker img, .img-empty { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex: none; }
.img-empty { display: grid; place-items: center; background: var(--paper); color: var(--muted); font-size: 11px; text-align: center; }
.img-picker-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.img-label { width: 100%; font-size: 13px; font-weight: 600; color: var(--ink-2); }

/* Modal */
.modal { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .4); color: var(--ink); }
.modal::backdrop { background: rgba(26, 25, 22, .45); }
.modal-inner { padding: 20px 22px 22px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-head h2 { font-size: 18px; font-weight: 600; }
.segmented { display: inline-flex; padding: 3px; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; margin-bottom: 16px; }
.segmented button { border: 0; background: none; padding: 7px 14px; border-radius: 7px; font: 600 13px var(--sans); color: var(--muted); cursor: pointer; }
.segmented button.is-active { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.modal-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.modal-actions-right { display: flex; gap: 8px; }
.variants { display: grid; gap: 6px; }
.variant-row { display: grid; grid-template-columns: 1fr 120px 32px; gap: 6px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 13px; cursor: pointer; background: var(--card); }
.chip input { margin: 0; accent-color: var(--brand); }
.chip-btn { font: 13px var(--sans); color: var(--ink-2); }
.chip-btn:hover { border-color: var(--ink-2); }
.toggles { display: grid; gap: 8px; margin-bottom: 14px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }

/* Diseño */
.tpl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tpl-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.tpl-card:hover { border-color: var(--ink-2); }
.tpl-card.is-active { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.tpl-mini { display: flex; flex-direction: column; gap: 4px; width: 100%; height: 54px; padding: 8px; margin-bottom: 6px; border-radius: 6px; background: var(--paper); }
.tpl-mini i { display: block; height: 6px; border-radius: 2px; background: var(--line-2); }
.tpl-mini-clasica { align-items: center; }
.tpl-mini-clasica i:first-child { width: 50%; background: var(--ink-2); }
.tpl-mini-clasica i { width: 80%; }
.tpl-mini-editorial i:first-child { width: 70%; height: 9px; background: var(--ink); }
.tpl-mini-editorial i { border-bottom: 1px solid var(--line-2); }
.tpl-mini-moderna { display: grid; grid-template-columns: 1fr 1fr; }
.tpl-mini-moderna i { height: 100%; background: #fff; border: 1px solid var(--line-2); }
.tpl-mini-moderna i:first-child { grid-column: 1 / -1; height: 8px; border: 0; background: var(--ink-2); width: 40%; }
.tpl-mini-minimal { align-items: center; justify-content: center; gap: 8px; }
.tpl-mini-minimal i { width: 40%; height: 3px; }
.pal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.pal { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border: 1px solid transparent; border-radius: 10px; background: none; cursor: pointer; font: inherit; color: var(--ink-2); }
.pal:hover { border-color: var(--line-2); }
.pal.is-active { border-color: var(--brand); }
.pal-swatch { display: grid; place-items: center; width: 100%; height: 44px; border-radius: 7px; background: var(--p-bg); color: var(--p-text); font: 20px var(--serif); box-shadow: inset 0 -6px 0 var(--p-accent), inset 0 0 0 1px rgba(0, 0, 0, .08); }
.color-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.color-field { display: flex; align-items: center; gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; cursor: pointer; }
.color-field input { width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
.contrast-warn { color: var(--danger); margin-top: 10px; }
.contrast-warn:empty { display: none; }
.range { display: flex; align-items: center; gap: 10px; min-height: 42px; }
.range input { flex: 1; accent-color: var(--brand); }
.range output { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); width: 40px; }
.history { display: grid; gap: 8px; margin-bottom: 10px; }
.hist-row { display: flex; align-items: center; gap: 12px; }
.hist-sw { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; border: 2px solid; font: 18px var(--serif); flex: none; }
.hist-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hist-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* IA */
.proposal { margin-top: 16px; padding: 16px; border-radius: 10px; background: var(--brand-soft); border: 1px solid #C9DBD1; }
.proposal p + p { margin-top: 4px; }
.proposal .row { margin-top: 14px; }

/* Compartir */
.url-box input { font-size: 15px; font-weight: 500; color: var(--brand); margin-bottom: 10px; }
.qr-box { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.qr-box img { width: 200px; height: 200px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: #fff; }
.qr-box .btn { justify-content: flex-start; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .ed-main { grid-template-columns: minmax(0, 1fr) 380px; }
  .phone { width: 340px; }
}
@media (max-width: 860px) {
  .users-layout { grid-template-columns: 1fr; }
  .ed-main { grid-template-columns: minmax(0, 1fr); }
  .ed-preview { display: none; }
  .ed-preview-toggle { display: inline-flex; }
  .editor.show-preview .ed-panel { display: none; }
  .editor.show-preview .ed-preview { display: flex; padding: 0; background: var(--card); }
  .editor.show-preview .phone { width: 100%; height: 100%; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .editor.show-preview .phone-notch { display: none; }
  .editor.show-preview .phone iframe { border-radius: 0; }
  .editor.show-preview .ed-preview > p { display: none; }
}
@media (max-width: 600px) {
  .page { padding: 24px 16px 64px; }
  .topbar { padding: 12px 16px; }
  .topnav { gap: 14px; }
  .menu-card { flex-wrap: wrap; }
  .menu-swatch { width: 52px; height: 64px; }
  .menu-card-actions { width: 100%; justify-content: flex-end; }
  .grid-2, .color-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .pal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .item-row { grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 6px; }
  .item-thumb { display: none; }
  .item-move .icon-btn { width: 26px; }
  .ed-tab-body { padding: 16px 12px 80px; }
  .ed-top-actions .btn { padding: 0 10px; }
  .sec-count { display: none; }
}

/* Firma de Bruda */
.credit { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--muted); text-decoration: none; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.credit:hover { color: var(--ink); }
.center-page { align-content: center; }
.bruda-logo { position: relative; display: inline-block; height: 15px; aspect-ratio: 2000 / 475; }
.bruda-logo::before {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  -webkit-mask: url(/static/img/bruda-mask.png) center / contain no-repeat;
  mask: url(/static/img/bruda-mask.png) center / contain no-repeat;
}
.bruda-logo i { position: absolute; left: 0; top: 22.9%; width: 4.2%; height: 17.7%; background: #2B1FFF; }

/* Mostrar / ocultar contraseña */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 48px; }
.pw-toggle {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
  display: grid; place-items: center; width: 40px; height: 36px;
  border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer;
}
.pw-toggle:hover { color: var(--ink); background: rgba(26, 25, 22, .05); }
.pw-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 0; }
