/* Alef Mabrouk — brand tokens (see docs/Alef_Mabrouk_Brand_Guidelines.md) */
:root {
  --color-silver: #B8B8B8;
  --color-charcoal: #2E2E33;
  --color-pearl: #F7F6F3;
  --color-lavender: #C6C3D9;
  --color-plum: #4B2E39;
  --color-gold: #D8C89A;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --container-width: 1120px;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-pearl);
  color: var(--color-charcoal);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3rem; }

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  opacity: 0.85;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn:disabled:hover {
  opacity: 0.55;
}

.btn--primary {
  background: var(--color-charcoal);
  color: var(--color-pearl);
}

.btn--ghost {
  background: transparent;
  border-color: var(--color-silver);
  color: var(--color-charcoal);
}

.btn--small {
  padding: 6px 14px;
  font-size: 0.82rem;
}

/* Header */
.site-header {
  background: var(--color-pearl);
  border-bottom: 1px solid var(--color-silver);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
}

.wordmark--small {
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.25em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-charcoal);
}

/* Hero */
.hero {
  padding: 72px 0 56px;
}

.hero__inner {
  max-width: 640px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-plum);
  margin-bottom: 12px;
}

.hero__lead {
  font-size: 1.1rem;
  color: var(--color-charcoal);
  max-width: 55ch;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section--muted {
  background: #EFEEEA;
}

.grid {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--color-pearl);
  border: 1px solid var(--color-silver);
  border-radius: var(--radius);
  padding: 24px;
}

.card--plain {
  background: transparent;
  border: none;
  padding: 0;
}

.card__step {
  display: inline-block;
  font-family: var(--font-display);
  color: var(--color-gold);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Nav logout (inline form, styled to look like a link) */
.nav-logout {
  display: inline;
  margin: 0;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 500;
  color: inherit;
  cursor: pointer;
}

.link-button:hover {
  opacity: 0.75;
}

/* Alerts / flash messages */
.flash-container {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alert {
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.alert--error {
  background: #FBEAEA;
  border-color: #D98C8C;
  color: #6B2020;
}

.alert--info {
  background: #EFEEEA;
  border-color: var(--color-silver);
  color: var(--color-charcoal);
}

.alert--credentials {
  background: #FBF6E9;
  border-color: var(--color-gold);
  color: var(--color-charcoal);
  font-weight: 500;
}

.alert--warning {
  background: #FBF6E9;
  border-color: var(--color-gold);
  color: var(--color-charcoal);
}

.inactive-account-notice {
  margin-bottom: 16px;
}

.alert a {
  color: var(--color-plum);
  font-weight: 600;
}

/* Forms */
.auth-container {
  max-width: 480px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.label {
  font-size: 0.85rem;
  font-weight: 500;
}

.radio-group {
  display: flex;
  gap: 20px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  cursor: pointer;
}

.input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 14px;
  border: 1px solid var(--color-silver);
  border-radius: var(--radius);
  background: var(--color-pearl);
  color: var(--color-charcoal);
}

.input:focus {
  outline: 2px solid var(--color-charcoal);
  outline-offset: 1px;
}

.input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--color-silver);
}

.map-field-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.map-field-input {
  flex: 1;
  /* Without this, a <select> (e.g. the Kids Note field) refuses to shrink
     below the width of its widest <option> — flex items default to
     min-width: auto, not 0 — and forces the whole row (and page) to
     overflow horizontally instead of sharing space with the checkbox. */
  min-width: 0;
}

.map-field-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #6b6b6b;
  white-space: nowrap;
  cursor: pointer;
}

/* Below ~480px, sharing one line between the input/select and the
   nowrap "Show on invitation" checkbox leaves the input barely wide
   enough to see, let alone use — give the input its own full-width
   line and drop the checkbox to the line below. */
@media (max-width: 480px) {
  .map-field-input {
    flex-basis: 100%;
  }
}

.payment-toggle-group {
  border: 1px solid var(--color-silver);
  border-radius: var(--radius);
  padding: 14px;
}

.payment-toggle-group .field:last-child {
  margin-bottom: 0;
}

/* Visually inert (not the disabled attribute — a disabled <select> would
   be dropped from the form submission entirely, see the JS in
   invitation/info_form.html / templates/edit_demo.html). */
.payment-toggle-input.is-toggled-off {
  opacity: 0.5;
  pointer-events: none;
}

.card-note-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-note-form .input {
  padding: 6px 10px;
  font-size: 0.85rem;
  max-width: 220px;
}

.card-note-form .btn:hover {
  background: var(--color-charcoal);
  border-color: var(--color-charcoal);
  color: var(--color-pearl);
  opacity: 1;
}

.card-note-save-msg {
  font-size: 0.8rem;
  color: var(--color-gold);
  opacity: 0;
}

.card-note-save-msg.is-visible {
  animation: card-note-save-fade 2s ease forwards;
}

@keyframes card-note-save-fade {
  0% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; }
}

.field-error {
  font-size: 0.8rem;
  color: #B23A3A;
}

.form .btn {
  align-self: flex-start;
  cursor: pointer;
}

/* Page header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.page-header h1 {
  margin: 0;
}

.page-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.finance-filter-form {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.finance-filter-form__dates {
  display: flex;
  gap: 12px;
  flex: 1 1 260px;
  min-width: 0;
}

.finance-filter-form__dates .field {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}

.finance-filter-form__dates .input {
  width: 100%;
  min-width: 0;
  max-width: 220px;
}

.finance-filter-form__actions {
  display: flex;
  gap: 12px;
  flex: none;
}

.commission-filter-form {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.commission-filter-form__status {
  margin: 0;
}

.commission-filter-form__dates {
  display: flex;
  gap: 12px;
  flex: 1 1 260px;
  min-width: 0;
}

.commission-filter-form__dates .field {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}

.commission-filter-form__dates .input {
  width: 100%;
  min-width: 0;
  max-width: 220px;
}

.commission-filter-form__actions {
  display: flex;
  gap: 12px;
  flex: none;
}

@media (max-width: 480px) {
  .commission-filter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .commission-filter-form__status,
  .commission-filter-form__dates,
  .commission-filter-form__actions {
    flex: none;
    width: 100%;
  }

  .commission-filter-form__dates .input {
    max-width: none;
  }
}

.users-filter-form {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.users-filter-form .field {
  flex: 1 1 180px;
  min-width: 0;
  margin: 0;
}

.users-filter-form .field .input {
  width: 100%;
  min-width: 0;
}

.users-filter-form__actions {
  display: flex;
  gap: 12px;
  flex: none;
}

@media (max-width: 480px) {
  .users-filter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .users-filter-form .field,
  .users-filter-form__actions {
    flex: none;
    width: 100%;
  }
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin-top: 24px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th,
.table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-silver);
  white-space: nowrap;
}

.table th {
  font-weight: 600;
  color: var(--color-plum);
}

/* An <input> inside a table cell has no flex/grid parent to stretch it,
   so it falls back to the browser's default ~20ch intrinsic width no
   matter how narrow the column actually needs to be (e.g. Manage
   Invitees' inline name/phone editors) — this shrinks it to whatever
   the column's other content actually requires instead. */
.table input.input {
  width: 100%;
  min-width: 90px;
}

/* Manage Invitees' name/phone editors specifically — wider than the
   generic table-input floor above so more of the value is visible
   without scrolling/clicking in, at the cost of a bit more horizontal
   scroll on narrow phones. */
.table input[name="invitee_name"].input {
  min-width: 220px;
}

.table input[name="invitee_phone"].input {
  min-width: 170px;
}

.table__actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.table__actions form {
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--color-charcoal);
  color: var(--color-pearl);
}

.site-footer__inner {
  padding: 32px 20px;
}

.site-footer .wordmark--small {
  color: var(--color-pearl);
}

.site-footer p {
  color: var(--color-silver);
  margin: 0;
  font-size: 0.9rem;
}

/* Tablet */
@media (max-width: 900px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 640px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }

  .hero {
    padding: 48px 0 40px;
  }

  .grid--3 {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-pearl);
    border-bottom: 1px solid var(--color-silver);
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }
}

/* App shell (sidebar + authenticated pages) */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--color-charcoal);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 12px;
  transition: width 0.2s ease;
}

.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--color-pearl);
  border-radius: var(--radius);
  cursor: pointer;
  margin-bottom: 8px;
}

.sidebar-toggle:hover {
  background: rgba(247, 246, 243, 0.12);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--color-pearl);
  font-weight: 500;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-link:hover {
  background: rgba(247, 246, 243, 0.12);
}

.sidebar-link.is-active {
  background: var(--color-gold);
  color: var(--color-charcoal);
}

.sidebar-icon {
  flex-shrink: 0;
  display: flex;
}

.sidebar-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

html.sidebar-collapsed .sidebar {
  width: 64px;
}

html.sidebar-collapsed .sidebar-label {
  display: none;
}

/* App main content */
.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-pearl);
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-silver);
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}

.topbar-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--color-silver);
  color: var(--color-charcoal);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.topbar-help:hover {
  background: var(--color-charcoal);
  border-color: var(--color-charcoal);
  color: var(--color-pearl);
}

.topbar-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-lavender);
  color: var(--color-plum);
  flex: none;
  overflow: hidden;
}

a.topbar-avatar:hover {
  opacity: 0.85;
}

.topbar-avatar__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topbar-welcome {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-charcoal);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-content {
  flex: 1;
  padding: 32px 24px;
}

.app-content .flash-container {
  padding-top: 0;
  margin-bottom: 20px;
}

.coming-soon {
  padding: 48px 0;
}

.coming-soon__badge {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 18px;
  border-radius: var(--radius);
  background: var(--color-gold);
  color: var(--color-plum);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}

/* Wedding Day checklist */
.wedding-day-hero {
  text-align: center;
  padding: 24px 0 8px;
}

.wedding-day-hero h1 {
  margin-bottom: 6px;
}

.wedding-day-hero__date {
  font-family: var(--font-display);
  color: var(--color-plum);
  font-size: 1.1rem;
  margin: 0;
}

.todo-column__title {
  text-align: center;
}

.todo-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-silver);
}

.todo-item__check-form {
  margin: 0;
  display: flex;
}

.todo-item__check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.todo-item__check--static {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--color-gold);
  font-weight: 700;
}

.todo-item__time {
  color: var(--color-plum);
  min-width: 56px;
  flex-shrink: 0;
}

.todo-item__desc {
  flex: 1;
}

.todo-item.is-checked .todo-item__desc {
  text-decoration: line-through;
  color: #9a9a9a;
}

.todo-add-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
}

.todo-add-row .field {
  margin: 0;
}

.todo-add-row__time {
  flex: 0 0 130px;
}

.todo-add-row__desc {
  flex: 1;
  /* Without this, the description field's default intrinsic width
     refuses to shrink and forces the whole row (time input + button)
     to overflow on narrow phones instead of wrapping onto its own line. */
  min-width: 120px;
}

.todo-add-row__btn {
  flex-shrink: 0;
  padding: 0 16px;
  align-self: stretch;
}

/* Template catalog */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.template-card {
  background: var(--color-pearl);
  border: 1px solid var(--color-silver);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.template-card__thumb {
  position: relative;
  width: 100%;
  padding-top: 65%;
  overflow: hidden;
  background: var(--color-charcoal);
  border-bottom: 1px solid var(--color-silver);
}

.template-card__thumb iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 400%;
  height: 400%;
  border: 0;
  transform: scale(0.25);
  transform-origin: top left;
  pointer-events: none;
}

.template-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.template-card__title {
  margin: 0;
  font-size: 1.2rem;
}

.template-card__category {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--color-lavender);
  color: var(--color-plum);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.template-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.template-card__actions form {
  margin: 0;
}

.template-toggle-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.template-card.is-moving {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.template-empty-msg[hidden] {
  display: none;
}

.inline-success-msg {
  font-size: 0.78rem;
  color: var(--color-gold);
  opacity: 0;
  white-space: nowrap;
}

.inline-success-msg.is-visible {
  animation: inline-success-fade 2s ease forwards;
}

@keyframes inline-success-fade {
  0% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; }
}

/* My Invitation Card hub: 50/50 split on desktop, stacked (card first) on mobile */
.hub-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 32px;
}

/* Grid tracks default to minmax(auto, 1fr) — "auto" is the max-content
   width of whatever's inside, so without this a column can refuse to
   shrink below its content's natural width (same pitfall as a flex
   item's default min-width: auto) and force the whole grid, and the
   page, to overflow horizontally on narrow screens. */
.hub-layout > * {
  min-width: 0;
}

@media (max-width: 900px) {
  .hub-layout {
    grid-template-columns: 1fr;
  }
}

/* Card Customization (background/music upload) */
.customization-card {
  margin-top: 20px;
}

.customization-hint {
  margin: 0;
  color: #6b6b6b;
  font-size: 0.88rem;
}

.customization-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--color-silver);
}

.customization-row--wrap {
  flex-direction: column;
  align-items: stretch;
}

.customization-row__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.asset-thumb {
  margin-top: 10px;
  width: 100%;
  max-width: 260px;
  max-height: 140px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--color-silver);
}

.asset-thumb--circle {
  width: 96px;
  height: 96px;
  max-width: 96px;
  max-height: 96px;
  border-radius: 50%;
}

.asset-audio {
  margin-top: 10px;
  width: 100%;
  max-width: 320px;
}

.customization-row__label {
  font-weight: 600;
  font-size: 0.92rem;
}

.customization-row__status {
  font-size: 0.8rem;
  color: #6b6b6b;
  margin-top: 2px;
}

.customization-row__status.is-active {
  color: var(--color-plum);
  font-weight: 500;
}

.customization-row__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.customization-row--save {
  justify-content: flex-end;
}

.file-input {
  max-width: 190px;
  font-size: 0.82rem;
}

.color-input {
  width: 48px;
  height: 34px;
  padding: 2px;
  border: 1px solid var(--color-silver);
  border-radius: var(--radius);
  cursor: pointer;
  background: none;
}

.reset-inline-form {
  display: inline-flex;
}

/* Card Theme palette picker */
.theme-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.theme-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--color-silver);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.theme-swatch:hover {
  border-color: var(--color-plum);
}

.theme-swatch.is-selected {
  border-color: var(--color-plum);
  box-shadow: 0 0 0 1px var(--color-plum);
}

.theme-swatch__radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-swatch__colors {
  display: flex;
}

.theme-swatch__color {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.theme-swatch__color:not(:first-child) {
  margin-left: -4px;
}

.theme-swatch__name {
  font-size: 0.78rem;
  text-align: center;
  white-space: nowrap;
}

.theme-custom-pickers {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

.theme-custom-pickers[hidden] {
  display: none;
}

.theme-custom-picker {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
}

/* Attending Invitees */
.invitee-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.sortable-th {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.sortable-th:hover {
  color: var(--color-plum);
}

.sort-arrow-icon {
  opacity: 0.35;
  transition: transform 0.15s ease;
}

.sort-arrow-icon.is-active {
  opacity: 1;
}

.sort-arrow-icon.is-desc {
  transform: rotate(180deg);
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge--yes {
  background: #E6F4EA;
  color: #2F7A4D;
}

.status-badge--no {
  background: #FBEAEA;
  color: #B23A3A;
}

.status-badge--pending {
  background: var(--color-gold);
  color: var(--color-plum);
}

/* Dashboard */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.stat-tile {
  background: var(--color-pearl);
  border: 1px solid var(--color-silver);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.stat-tile__value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-plum);
  line-height: 1.1;
}

.stat-tile__label {
  margin-top: 4px;
  font-size: 0.82rem;
  color: #6b6b6b;
}

a.stat-tile {
  display: block;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

a.stat-tile:hover {
  border-color: var(--color-plum);
  transform: translateY(-2px);
}

/* Manager dashboard — its own card treatment (soft elevation + a gold
   top accent instead of the flat bordered look used elsewhere, e.g. the
   customer dashboard) so this page reads as a distinct, richer surface. */
.manager-dashboard .stat-tile,
.manager-dashboard .card {
  position: relative;
  overflow: hidden;
  border-color: transparent;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(46, 46, 51, 0.05), 0 10px 24px rgba(46, 46, 51, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.manager-dashboard .stat-tile::before,
.manager-dashboard .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-plum));
}

.manager-dashboard .stat-tile:hover,
.manager-dashboard .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(46, 46, 51, 0.06), 0 18px 32px rgba(46, 46, 51, 0.1);
}

.manager-dashboard a.stat-tile:hover {
  border-color: transparent;
}

.manager-dashboard .stat-tile__value {
  font-weight: 600;
}

.dashboard-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}

@media (max-width: 800px) {
  .dashboard-charts { grid-template-columns: 1fr; }
}

.donut-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.donut-chart {
  width: 160px;
  height: 160px;
  flex: none;
}

.donut-chart circle {
  transition: stroke-dasharray 0.3s ease;
}

.donut-legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.donut-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}

.donut-legend__swatch {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: none;
}

.bar-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bar-row__top {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: var(--color-pearl);
  border: 1px solid var(--color-silver);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
}

.progress-bar {
  margin-top: 6px;
}

/* Testimonials */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}

.star-rating input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.star-rating label {
  font-size: 2.1rem;
  line-height: 1;
  color: var(--color-silver);
  cursor: pointer;
  transition: color 0.15s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: var(--color-gold);
}

.star-display {
  display: inline-flex;
  gap: 2px;
  font-size: 1.1rem;
}

.star-display span {
  color: var(--color-silver);
}

.star-display span.is-filled {
  color: var(--color-gold);
}

.feedback-average {
  text-align: center;
  margin-top: 20px;
}

.feedback-average__value {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--color-plum);
  line-height: 1;
}

.testimonial-slider {
  position: relative;
  max-width: 560px;
  margin: 24px auto 0;
  text-align: center;
  background: var(--color-pearl);
  border: 1px solid var(--color-silver);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.testimonial-slide {
  display: none;
}

.testimonial-slide.is-active {
  display: block;
}

.testimonial-slide__text {
  font-style: italic;
  color: var(--color-charcoal);
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.6;
}

.testimonial-slider__nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

/* Generate Links */
.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.row-actions form {
  display: inline-flex;
}

.user-toggle-form {
  margin-left: 12px;
}

.row-actions__date {
  color: #6b6b6b;
  font-size: 0.82rem;
  white-space: nowrap;
}

.row-actions__icons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 32px;
}

.row-actions--stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.row-actions--stacked .row-actions__row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.row-actions__row--secondary .icon-btn {
  background: #d8c89a;
}

.user-name-cell__name {
  margin-bottom: 2px;
}

.row-actions--stacked .user-toggle-form {
  margin-left: 0;
}

.user-section {
  margin-top: 24px;
  border: 1px solid var(--color-silver);
  border-radius: var(--radius);
  padding: 4px 18px;
}

.user-section + .user-section {
  margin-top: 16px;
}

.user-section summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  color: var(--color-plum);
  font-size: 1.05rem;
}

.user-section .table-wrap {
  margin-top: 0;
  margin-bottom: 12px;
}

.user-section .template-grid {
  margin-bottom: 16px;
}

.link-input {
  min-width: 260px;
  font-size: 0.85rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 8px;
  border: 1px solid var(--color-silver);
  background: transparent;
  color: var(--color-charcoal);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.icon-btn:hover {
  background: var(--color-pearl);
  border-color: var(--color-plum);
  color: var(--color-plum);
}

.icon-btn--danger:hover {
  background: #FBEAEA;
  border-color: #B23A3A;
  color: #B23A3A;
}

.copy-wrap {
  position: relative;
  display: inline-flex;
}

.copy-feedback {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  margin-bottom: 6px;
  background: var(--color-charcoal);
  color: var(--color-pearl);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.copy-feedback.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Guest-count checklist (option1 Generate Links) */
.guest-count-form {
  background: #fff;
  border: 1px solid var(--color-silver);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 24px;
  max-width: 640px;
}

.guest-count-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
}

.guest-count-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--color-silver);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  user-select: none;
}

.guest-count-choice:has(input:checked) {
  background: var(--color-charcoal);
  border-color: var(--color-charcoal);
  color: var(--color-pearl);
}

/* Floor Plan */
.floorplan-empty-state {
  background: #fff;
  border: 1px dashed var(--color-silver);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 20px;
  max-width: 520px;
  text-align: center;
}

.floorplan-empty-state form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.floorplan-empty-state__divider {
  margin-top: 16px;
  color: #6b6b6b;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.floorplan-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 20px;
}

@media (max-width: 1000px) {
  .floorplan-layout {
    grid-template-columns: 1fr;
  }
}

.floorplan-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.floorplan-toolbar .btn.is-armed {
  background: var(--color-charcoal);
  color: var(--color-pearl);
  border-color: var(--color-charcoal);
}

.floorplan-toolbar__spacer {
  flex: 1;
}

.floorplan-zoom-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.floorplan-zoom-controls #zoomLevelLabel {
  min-width: 40px;
  text-align: center;
}

.floorplan-opacity-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.floorplan-opacity-control input[type="range"] {
  flex: 1;
  max-width: 240px;
}

.floorplan-canvas-scroll {
  overflow: auto;
  border-radius: var(--radius);
  max-height: 75vh;
}

.floorplan-canvas {
  position: relative;
  width: 100%;
  border: 1px solid var(--color-silver);
  border-radius: var(--radius);
  overflow: hidden;
  /* White, not charcoal — a lowered image opacity should fade toward a
     light backdrop, not go dark/gray. (.floorplan-canvas__blank still
     paints its own charcoal grid on top when there's no image.) */
  background: #fff;
  user-select: none;
  transform-origin: top left;
}

.floorplan-canvas.is-drawing {
  cursor: crosshair;
}

.floorplan-canvas__image {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.floorplan-canvas__blank {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 40px),
    var(--color-charcoal);
  pointer-events: none;
}

.floorplan-draw-preview {
  position: absolute;
  border: 2px dashed var(--color-gold);
  background: rgba(216, 200, 154, 0.2);
  pointer-events: none;
}

.floorplan-draw-preview--circle {
  border-radius: 50%;
}

.floorplan-table {
  position: absolute;
  border: 2px solid var(--color-plum);
  background: rgba(198, 195, 217, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.15s ease;
  /* No overflow:hidden here — the resize handle is deliberately positioned
     just outside this box (bottom-right corner), and overflow:hidden would
     clip it away entirely (worse for circles, where it also clips to the
     rounded shape). The label text is clipped by its own inner wrapper
     instead, below. */
}

.floorplan-table__label {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-charcoal);
  padding: 4px;
  overflow: hidden;
  pointer-events: none;
}

.floorplan-table:hover {
  box-shadow: 0 0 0 2px var(--color-gold);
}

.floorplan-table--circle {
  border-radius: 50%;
}

.floorplan-table.is-drag-over {
  background: rgba(216, 200, 154, 0.85);
}

.floorplan-table.is-over-capacity {
  border-color: #B23A3A;
}

.floorplan-table.is-selected {
  box-shadow: 0 0 0 2px var(--color-charcoal);
}

.floorplan-table.is-moving {
  cursor: grabbing;
  opacity: 0.85;
  transition: none;
}

.supplier-card {
  background: var(--color-pearl);
  border: 1px solid var(--color-silver);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.supplier-card__thumb {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background: var(--color-charcoal);
  border-bottom: 1px solid var(--color-silver);
}

.supplier-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.supplier-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.supplier-card__title {
  margin: 0;
  font-size: 1.1rem;
}

.supplier-card__count {
  font-weight: 400;
  color: var(--color-charcoal);
  opacity: 0.65;
  font-size: 0.9rem;
}

.supplier-card__category {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--color-lavender);
  color: var(--color-plum);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.supplier-card__meta {
  font-size: 0.85rem;
  color: var(--color-charcoal);
  opacity: 0.8;
}

.supplier-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.supplier-card__actions form {
  margin: 0;
}

.icon-btn.is-favorited {
  background: var(--color-lavender);
  border-color: var(--color-plum);
  color: var(--color-plum);
}

.icon-btn.is-agreed {
  background: var(--color-gold);
  border-color: var(--color-plum);
  color: var(--color-plum);
}

.floorplan-resize-handle {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: var(--color-charcoal);
  border: 2px solid #fff;
  border-radius: 3px;
  cursor: nwse-resize;
  z-index: 5;
}

.floorplan-tooltip {
  position: absolute;
  background: var(--color-charcoal);
  color: var(--color-pearl);
  font-size: 0.75rem;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: pre-line;
  pointer-events: none;
  z-index: 20;
  max-width: 220px;
  transform: translate(-50%, -100%);
  margin-top: -10px;
}

.floorplan-image-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.floorplan-image-actions form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.floorplan-guest-panel {
  background: #fff;
  border: 1px solid var(--color-silver);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.floorplan-guest-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  cursor: pointer;
}

.floorplan-guest-section {
  margin-top: 16px;
}

.floorplan-guest-section h3 {
  font-size: 0.95rem;
  margin: 0 0 8px;
}

.floorplan-guest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 40px;
  border-radius: 8px;
}

.floorplan-drop-target.is-drag-over {
  background: var(--color-pearl);
  outline: 2px dashed var(--color-silver);
}

.floorplan-guest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--color-silver);
  border-radius: 8px;
  background: var(--color-pearl);
  font-size: 0.85rem;
  cursor: grab;
}

.floorplan-guest-row.is-dragging {
  opacity: 0.4;
}

.floorplan-edit-panel {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-silver);
}

.floorplan-edit-panel__field {
  margin-bottom: 12px;
}

.floorplan-edit-panel__field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.floorplan-edit-panel__field input[type="text"],
.floorplan-edit-panel__field input[type="number"],
.floorplan-edit-panel__field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--color-silver);
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}

.floorplan-edit-panel__field input[type="color"] {
  width: 48px;
  height: 32px;
  padding: 2px;
  border: 1px solid var(--color-silver);
  border-radius: 8px;
  cursor: pointer;
}

.floorplan-edit-panel__seats {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.floorplan-edit-panel__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.floorplan-status-line {
  font-size: 0.8rem;
  color: #B23A3A;
  margin-top: 8px;
}

@media (max-width: 768px) {
  html.sidebar-collapsed .sidebar,
  .sidebar {
    width: 64px;
  }

  .sidebar-label,
  .sidebar-toggle {
    display: none;
  }

  .app-topbar {
    padding: 12px 14px;
  }

  .app-content {
    padding: 20px 14px;
  }

  .dash-countdown {
    padding: 20px;
    gap: 16px;
  }
}

/* Dashboard — countdown, quick actions, mini testimonial cards */
.dash-countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--color-charcoal);
  color: var(--color-pearl);
}

.dash-countdown__label {
  font-size: 0.85rem;
  color: #C9C7C3;
}

.dash-countdown__date {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  margin-top: 2px;
}

.dash-countdown__units {
  display: flex;
  gap: 22px;
}

.dash-countdown__unit {
  text-align: center;
  min-width: 52px;
  flex: none;
}

.dash-countdown__value {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--color-gold);
  line-height: 1;
}

.dash-countdown__unit-label {
  margin-top: 4px;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a97a3;
}

/* Narrow phones — shrink the countdown units instead of letting them wrap,
   so Days/Hours/Minutes/Seconds always stay on one line. */
@media (max-width: 400px) {
  .dash-countdown__units {
    gap: 6px;
  }

  .dash-countdown__unit {
    min-width: 38px;
  }

  .dash-countdown__value {
    font-size: 1.3rem;
  }

  .dash-countdown__unit-label {
    font-size: 0.52rem;
    letter-spacing: 0.04em;
  }
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--color-pearl);
  border: 1px solid var(--color-silver);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.quick-action:hover {
  transform: translateY(-3px);
  border-color: var(--color-plum);
  box-shadow: 0 10px 22px rgba(46, 46, 51, 0.1);
}

.quick-action__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(216, 200, 154, 0.22);
  color: var(--color-plum);
  flex-shrink: 0;
}

.quick-action__label {
  font-size: 0.88rem;
  font-weight: 500;
}

.testimonial-mini-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.testimonial-mini {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--color-pearl);
  border: 1px solid var(--color-silver);
  border-radius: var(--radius);
}

.testimonial-mini.is-hidden {
  opacity: 0.6;
}

.testimonial-mini__stars {
  color: var(--color-gold);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.testimonial-mini__text {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: #57565c;
}

.testimonial-mini__meta {
  font-size: 0.75rem;
  color: #9a97a3;
  margin-top: 6px;
}

.supplier-row-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.supplier-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: var(--color-pearl);
  border: 1px solid var(--color-silver);
  border-radius: var(--radius);
}

.supplier-row__thumb {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-charcoal);
}

.supplier-row__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.supplier-row__name {
  flex: 1;
  min-width: 0;
  font-weight: 500;
}

.supplier-row__category {
  font-weight: 400;
  color: #6b6b6b;
}

.supplier-row__actions {
  display: flex;
  gap: 8px;
  flex: none;
}

/* Below ~480px the name+category text has too little room next to the
   thumb and both action icons on one line (measured ~46px available,
   wrapping even a short name mid-word) — drop the actions to their own
   full-width row instead of squeezing them all onto one line. */
@media (max-width: 480px) {
  .supplier-row {
    flex-wrap: wrap;
  }

  .supplier-row__actions {
    flex-basis: 100%;
    justify-content: flex-end;
  }
}
