/* ── Menu Customizations (Customizations view) ─────────────────────── */
/* A responsive card grid of the per-concept overlay slices. Wide cards
   (special rules, intent-action table) span the full width. */
.cust-head h1 { margin: .2rem 0 .3rem; }
.cust-head p { margin: 0 0 1.25rem; }

/* Only the active section's panel is visible; which one is driven by the
   Menu sub-nav (see nav.js), not an in-view tab bar. */
.cust-panel { display: none; }
.cust-panel.active { display: block; }

.cust-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  align-items: start;
}
.cust-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1rem 1.25rem 1.15rem;
}
.cust-wide { grid-column: 1 / -1; }
.cust-card-title {
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted);
  margin: 0 0 .7rem;
}

/* Chip rows (occasions, alias/upsell values, payment fields). */
.cust-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.cust-chip {
  font-size: .8rem; padding: .18rem .55rem; border-radius: 999px;
  background: rgba(124,58,237,.14); color: var(--purple-lite);
  border: 1px solid var(--border-soft);
}

/* Badges: handler / payments state. */
.cust-badge {
  display: inline-block; font-size: .72rem; font-weight: 600;
  padding: .1rem .5rem; border-radius: .4rem;
  background: rgba(124,58,237,.18); color: var(--purple-lite);
}
.cust-badge.cust-on { background: rgba(34,197,94,.18); color: #4ade80; }
.cust-badge.cust-off { background: rgba(148,163,184,.16); color: var(--muted); }

/* Alias / upsell rows: a canonical key above the surface forms. */
.cust-alias { padding: .35rem 0; border-top: 1px solid var(--border-soft); }
.cust-alias:first-child { border-top: none; padding-top: 0; }
.cust-alias-key { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .3rem; }

/* Check-in key/value list. */
.cust-kv { display: flex; gap: .75rem; padding: .28rem 0; font-size: .85rem; }
.cust-kv + .cust-kv { border-top: 1px solid var(--border-soft); }
.cust-kv-key { flex: 0 0 8rem; color: var(--muted); }
.cust-kv-val { flex: 1 1 auto; min-width: 0; word-break: break-word; }

/* Special-rules prose: preserve authored whitespace, wrap softly. */
.cust-pre {
  margin: 0; white-space: pre-wrap; word-break: break-word;
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: .82rem; line-height: 1.5; color: var(--text);
}

/* Intent-action table. */
.cust-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.cust-table th {
  text-align: left; font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; color: var(--muted);
  padding: .3rem .6rem .45rem; border-bottom: 1px solid var(--border);
}
.cust-table td {
  padding: .4rem .6rem; border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.cust-table td:first-child { font-weight: 600; white-space: nowrap; }
