/* ==========================================================================
   Easy2Give Module Lab — Custom Stylesheet
   Brand tokens sourced from docs/brandbook.md
   All layouts are RTL-first (dir="rtl", lang="he-IL")
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Google Fonts
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Calistoga&family=Rubik:wght@300;400;500;600;700&display=swap');


/* --------------------------------------------------------------------------
   2. CSS Custom Properties (Brand Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Colors — see brandbook.md §Color System */
  --color-brand:           #FFCB00;
  --color-brand-hover:     #f0c000;
  --color-brand-muted:     rgba(255, 203, 0, 0.12);
  --color-brand-subtle:    rgba(255, 203, 0, 0.08);
  --color-accent:          #b39d72;
  --color-accent-muted:    rgba(179, 157, 114, 0.2);
  --color-text-dark:       #393939;
  --color-text-black:      #1a1a1a;
  --color-bg:              #ffffff;
  --color-bg-subtle:       #f5f5f7;
  --color-border:          #e6e6e6;
  --color-white:           #ffffff;

  /* Status pills — brandbook.md §Module Status Pills */
  --color-status-soon-bg:  rgba(179, 157, 114, 0.2);
  --color-status-soon-fg:  #b39d72;
  --color-status-dev-bg:   rgba(255, 203, 0, 0.15);
  --color-status-dev-fg:   #a07800;
  --color-status-active-bg: rgba(0, 180, 80, 0.1);
  --color-status-active-fg: #00963e;

  /* Typography */
  --font-display:  'Calistoga', serif;
  --font-body:     'Rubik', sans-serif;

  /* Spacing */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   32px;
  --space-2xl:  48px;
  --space-3xl:  64px;

  /* Radius */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-card:  0 2px 12px rgba(0, 0, 0, 0.07);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.11);

  /* Layout */
  --sidebar-width:  260px;
  --header-height:  64px;
}


/* --------------------------------------------------------------------------
   3. Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-dark);
  background: var(--color-bg);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

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

ul, ol {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}


/* --------------------------------------------------------------------------
   4. Skip to content (accessibility)
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  right: var(--space-md);
  background: var(--color-brand);
  color: var(--color-text-black);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 9999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: var(--space-sm);
}


/* --------------------------------------------------------------------------
   5. Shell Layout
   -------------------------------------------------------------------------- */
.shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  background: var(--color-text-black);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 var(--space-xl);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header__logo {
  height: 36px;
  width: auto;
}

.header__wordmark {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  border-inline-start: 1px solid rgba(255,255,255,0.15);
  padding-inline-start: var(--space-md);
}

.header__badge {
  background: var(--color-brand);
  color: var(--color-text-black);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* Mobile menu toggle — hidden on desktop */
.header__menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  color: var(--color-white);
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.header__menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Body below fixed header */
.body-wrap {
  display: flex;
  flex: 1;
  margin-top: var(--header-height);
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: var(--header-height);
  right: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  background: var(--color-bg-subtle);
  border-inline-start: 1px solid var(--color-border);
  overflow-y: auto;
  padding: var(--space-xl) 0 var(--space-2xl);
  z-index: 90;
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.sidebar__section {
  padding: 0 var(--space-lg);
  margin-bottom: var(--space-lg);
}

.sidebar__section-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.sidebar__nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 10px var(--space-md);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-text-dark);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  border-inline-start: 3px solid transparent;
  text-decoration: none;
}

.sidebar__nav-item:hover {
  background: var(--color-brand-subtle);
}

.sidebar__nav-item--active {
  background: var(--color-brand-muted);
  border-inline-start-color: var(--color-brand);
  color: var(--color-text-black);
  font-weight: 600;
}


.sidebar__nav-item-label {
  flex: 1;
}

/* Status pills */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.6875rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.pill--soon {
  background: var(--color-status-soon-bg);
  color: var(--color-status-soon-fg);
}

.pill--dev {
  background: var(--color-status-dev-bg);
  color: var(--color-status-dev-fg);
}

.pill--active {
  background: var(--color-status-active-bg);
  color: var(--color-status-active-fg);
}

/* Sidebar bottom section pinned to bottom */
.sidebar__section--bottom {
  margin-top: auto;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.sidebar__logout-form {
  margin: 0;
}

.sidebar__logout {
  width: 100%;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px var(--space-md);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-text-dark);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.sidebar__logout:hover {
  background: var(--color-text-black);
  color: var(--color-white);
  border-color: var(--color-text-black);
}

/* Sidebar decorative add hint */
.sidebar__add-hint {
  padding: var(--space-sm) var(--space-md);
  margin: 0 var(--space-lg);
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--color-border);
  text-align: center;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: default;
  user-select: none;
}

/* Main content area */
.main-content {
  flex: 1;
  margin-inline-start: var(--sidebar-width);
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
}

.content-wrap {
  flex: 1;
  padding: var(--space-2xl) var(--space-2xl);
  max-width: 960px;
}


/* --------------------------------------------------------------------------
   6. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-text-black);
  padding: var(--space-md) var(--space-xl);
  margin-inline-start: var(--sidebar-width);
}

.site-footer p {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}


/* --------------------------------------------------------------------------
   7. Page — Index (Landing)
   -------------------------------------------------------------------------- */
.page-hero {
  margin-bottom: var(--space-2xl);
}

.page-hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1.15;
  color: var(--color-text-black);
  margin-bottom: var(--space-md);
}

.page-hero__subtitle {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--color-text-dark);
  max-width: 560px;
  line-height: 1.7;
  opacity: 0.85;
}

/* Stat cards row */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.stat-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow-hover);
}

.stat-card__label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

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

.stat-card__note {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-accent);
  margin-top: var(--space-xs);
}

/* About section */
.about-section {
  background: var(--color-bg-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
}

.about-section__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--color-text-black);
  margin-bottom: var(--space-md);
}

.about-section__body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-dark);
  opacity: 0.9;
}

.about-section__body p + p {
  margin-top: var(--space-md);
}


/* --------------------------------------------------------------------------
   8. Page — Module placeholder
   -------------------------------------------------------------------------- */
.module-header {
  margin-bottom: var(--space-xl);
}

.module-header__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
  transition: color 0.2s ease;
}

.module-header__back:hover {
  color: var(--color-text-dark);
}

.module-header__title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--color-text-black);
  line-height: 1.15;
  margin-bottom: var(--space-sm);
}

.module-header__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Status banner */
.status-banner {
  background: var(--color-bg-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
  border-inline-start: 4px solid var(--color-accent);
  margin-bottom: var(--space-xl);
}

.status-banner--dev {
  background: var(--color-brand-muted);
  border-color: var(--color-border);
  border-inline-start-color: var(--color-brand);
}

.status-banner__icon {
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
}

.status-banner__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-text-black);
  margin-bottom: var(--space-sm);
}

.status-banner__body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-dark);
  opacity: 0.9;
}


/* --------------------------------------------------------------------------
   9. Responsive — Mobile (< 900px)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {

  :root {
    --header-height: 56px;
  }

  .header__menu-toggle {
    display: flex;
  }

  .header__wordmark {
    display: none;
  }

  /* Sidebar slides in from right when .is-open */
  .sidebar {
    transform: translateX(100%);
    box-shadow: var(--shadow-hover);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  /* Overlay behind open sidebar */
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 26, 0.4);
    z-index: 85;
  }

  .sidebar-overlay.is-visible {
    display: block;
  }

  .main-content {
    margin-inline-start: 0;
  }

  .site-footer {
    margin-inline-start: 0;
  }

  .content-wrap {
    padding: var(--space-xl) var(--space-md);
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .page-hero__title {
    font-size: 1.875rem;
  }

  .stat-card__value {
    font-size: 1.75rem;
  }

  .site-header {
    padding: 0 var(--space-md);
  }
}

@media (max-width: 480px) {
  .page-hero__title {
    font-size: 1.625rem;
  }

  .module-header__title {
    font-size: 1.75rem;
  }
}


/* --------------------------------------------------------------------------
   10. Login Page
   -------------------------------------------------------------------------- */
.login-body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top right, rgba(255, 203, 0, 0.08), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(179, 157, 114, 0.10), transparent 50%),
    var(--color-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  font-family: var(--font-body);
  color: var(--color-text-dark);
}

.login-shell {
  width: 100%;
  max-width: 440px;
}

.login-card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 48px rgba(26, 26, 26, 0.12), 0 2px 8px rgba(26, 26, 26, 0.04);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.login-card__brand {
  background: var(--color-text-black);
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.login-card__logo {
  width: auto;
  display: block;
}

.login-card__logo--primary {
  height: 38px;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.15));
}

.login-card__logo--secondary {
  height: 26px;
  opacity: 0.7;
}

.login-card__partnership {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1;
  user-select: none;
}

.login-card__body {
  padding: var(--space-2xl) var(--space-xl) var(--space-xl);
}

.login-card__eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.login-card__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--color-text-black);
  margin-bottom: var(--space-sm);
}

.login-card__subtitle {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-dark);
  opacity: 0.75;
  margin-bottom: var(--space-xl);
}

.login-card__error {
  background: rgba(226, 27, 36, 0.08);
  color: #c41f25;
  border: 1px solid rgba(226, 27, 36, 0.18);
  border-radius: var(--radius-sm);
  padding: 10px var(--space-md);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-lg);
  text-align: center;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

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

.login-form__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--color-text-dark);
  letter-spacing: 0.02em;
}

.login-form__input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text-black);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  width: 100%;
}

.login-form__input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px var(--color-brand-muted);
}

.login-form__submit {
  margin-top: var(--space-sm);
  background: var(--color-brand);
  color: var(--color-text-black);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  padding: 13px var(--space-lg);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.06s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 8px rgba(255, 203, 0, 0.25);
}

.login-form__submit:hover {
  background: var(--color-brand-hover);
  box-shadow: 0 4px 14px rgba(255, 203, 0, 0.35);
}

.login-form__submit:active {
  transform: translateY(1px);
}

.login-form__submit:focus-visible {
  outline: 2px solid var(--color-text-black);
  outline-offset: 2px;
}

.login-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-xl);
  background: var(--color-bg-subtle);
  border-top: 1px solid var(--color-border);
  font-size: 0.75rem;
  color: var(--color-text-dark);
}

.login-card__badge {
  background: var(--color-brand);
  color: var(--color-text-black);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.login-card__link {
  color: var(--color-text-black);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--color-brand);
  transition: color 0.18s ease;
}

.login-card__link:hover {
  color: var(--color-accent);
}

@media (max-width: 480px) {
  .login-card__brand,
  .login-card__body,
  .login-card__footer {
    padding-inline: var(--space-lg);
  }
  .login-card__title {
    font-size: 1.625rem;
  }
}


/* ============================================================
   Invitations Dev Sandbox  — module-invitations / .dev-sandbox
   All classes scoped to .dev-sandbox or .module-invitations
   References: brandbook.md §Color System, §Spacing, §Components
   ============================================================ */

/* ── Utility ── */
.dsb-hidden { display: none !important; }

/* ── Page header ── */
.dsb-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.dsb-page-header__left {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.dsb-page-header__title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-text-black);
  line-height: 1.15;
}

.dsb-page-header__sub {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dsb-page-header__right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.dsb-api-pill {
  background: var(--color-text-black);
  color: var(--color-brand);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.dsb-endpoint-hint {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  color: var(--color-accent);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

/* ── Three-column layout ── */
.dsb-layout {
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  gap: var(--space-lg);
  align-items: start;
}

/* ── Shared panel header ── */
.dsb-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.dsb-panel-header__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* ── Jobs sidebar (left column) ── */
.dsb-jobs-sidebar {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  position: sticky;
  top: calc(var(--header-height) + var(--space-md));
  max-height: calc(100vh - var(--header-height) - var(--space-3xl));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.dsb-jobs-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
  min-height: 80px;
}

.dsb-jobs-empty {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-accent);
  text-align: center;
}

.dsb-jobs-empty__hint {
  font-size: 0.75rem;
  opacity: 0.7;
}

.dsb-job-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  text-align: start;
  width: 100%;
  font-family: var(--font-body);
}

.dsb-job-item:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--color-accent);
}

.dsb-job-item--active {
  border-color: var(--color-brand);
  background: var(--color-brand-muted);
}

.dsb-job-thumb {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-bg-subtle);
}

.dsb-job-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: var(--color-border);
}

.dsb-job-item__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.dsb-job-item__style {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--color-text-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dsb-job-item__time {
  font-size: 0.75rem;
  color: var(--color-accent);
}

.dsb-job-item__id {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.6875rem;
  color: var(--color-accent);
  opacity: 0.7;
}

/* ── Center form panel ── */
.dsb-form-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  min-width: 0;
}

.dsb-form-section {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
}

.dsb-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.dsb-section-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-text-black);
  color: var(--color-brand);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dsb-section-title {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-black);
  flex: 1;
}

.dsb-subsection-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: var(--space-md) 0 var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-border);
}

/* ── Style picker grid ── */
.dsb-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-sm);
}

.dsb-style-card {
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.dsb-style-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-card);
}

.dsb-style-card--active {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px var(--color-brand-muted);
}

.dsb-style-card__swatch {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  position: relative;
  overflow: hidden;
}

.dsb-style-card__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* When the swatch image 404s the onerror handler adds this class,
   hiding the broken-image icon and letting the CSS gradient show through. */
.dsb-style-card__preview--failed {
  display: none !important;
}

/* Swatch label — shown as a centred text overlay on the gradient when
   the image is absent or has failed. Hidden once a real image loads
   successfully (the image covers it via position:absolute). */
.dsb-style-card__swatch-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xs);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.55),
    0 0 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  /* Shown by default; the loaded <img> sits on top and covers it. */
  z-index: 0;
}

/* Once the image loads successfully it stacks above the label (z-index 1). */
.dsb-style-card__preview:not(.dsb-style-card__preview--failed) {
  z-index: 1;
}

.dsb-style-card__body {
  padding: var(--space-xs) var(--space-sm) var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dsb-style-card__name-he {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--color-text-black);
  display: block;
}

.dsb-style-card__name-en {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.625rem;
  color: var(--color-accent);
  display: block;
}

.dsb-style-card__desc {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  color: var(--color-accent);
  display: block;
  margin-top: 2px;
}

/* ── Segmented control ── */
.dsb-segmented {
  display: flex;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg-subtle);
}

.dsb-segmented__btn {
  flex: 1;
  background: transparent;
  border: none;
  border-inline-start: 1px solid var(--color-border);
  padding: 9px var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-dark);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  text-align: center;
}

.dsb-segmented__btn:first-child {
  border-inline-start: none;
}

.dsb-segmented__btn:hover {
  background: var(--color-brand-subtle);
}

.dsb-segmented__btn--active {
  background: var(--color-text-black);
  color: var(--color-brand);
  font-weight: 700;
}

.dsb-segmented__btn--active:hover {
  background: var(--color-text-black);
}

.dsb-segmented__btn code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.625rem;
  display: block;
  opacity: 0.65;
  margin-top: 2px;
}

/* ── Card pickers (layout / pose) ── */
.dsb-card-picker {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.dsb-pick-card {
  flex: 1;
  min-width: 90px;
  background: var(--color-bg-subtle);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
}

.dsb-pick-card:hover {
  border-color: var(--color-accent);
  background: var(--color-bg);
}

.dsb-pick-card--active {
  border-color: var(--color-brand);
  background: var(--color-brand-muted);
}

.dsb-pick-card__icon {
  font-size: 1.25rem;
}

.dsb-pick-card__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-black);
}

.dsb-pick-card__key {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.625rem;
  color: var(--color-accent);
}

/* ── Fields ── */
.dsb-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: var(--space-sm);
}

.dsb-field-group--sm {
  flex: 0 0 140px;
}

.dsb-field-row {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.dsb-field-row .dsb-field-group {
  flex: 1;
  min-width: 140px;
}

.dsb-field-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--color-text-dark);
}

.dsb-field-label code,
.dsb-api-key {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.6875rem;
  color: var(--color-accent);
  font-weight: 400;
  background: var(--color-bg-subtle);
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid var(--color-border);
}

.dsb-field-hint {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-accent);
}

.dsb-input {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text-black);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  width: 100%;
  direction: rtl;
}

.dsb-input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px var(--color-brand-muted);
}

.dsb-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

/* ── Photo uploads ── */
.dsb-photos-row {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.dsb-upload-zone {
  flex: 1;
  min-width: 160px;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, background 0.2s ease;
  overflow: hidden;
  cursor: pointer;
}

.dsb-upload-zone:hover,
.dsb-upload-zone--dragover {
  border-color: var(--color-brand);
  background: var(--color-brand-muted);
}

.dsb-upload-inner {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dsb-upload-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-lg);
  text-align: center;
  width: 100%;
  position: relative;
}

.dsb-upload-icon {
  font-size: 1.75rem;
}

.dsb-upload-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text-black);
}

.dsb-upload-hint {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-accent);
  line-height: 1.5;
}

.dsb-upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.dsb-upload-preview {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-sm);
}

.dsb-preview-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.dsb-preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.dsb-preview-url {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.6875rem;
  color: var(--color-accent);
  word-break: break-all;
  flex: 1;
}

/* ── Action row ── */
.dsb-actions-row {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  align-items: center;
}

.dsb-btn-primary {
  background: var(--color-brand);
  color: var(--color-text-black);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 11px var(--space-xl);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 8px rgba(255, 203, 0, 0.25);
}

.dsb-btn-primary:hover {
  background: var(--color-brand-hover);
  box-shadow: 0 4px 14px rgba(255, 203, 0, 0.35);
}

.dsb-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.dsb-btn-secondary {
  background: transparent;
  color: var(--color-text-dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 10px var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.dsb-btn-secondary:hover {
  background: var(--color-bg-subtle);
  border-color: var(--color-accent);
}

.dsb-ghost-btn {
  background: transparent;
  border: none;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px var(--space-sm);
  border-radius: var(--radius-sm);
  transition: color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.dsb-ghost-btn:hover {
  color: var(--color-text-black);
  background: var(--color-bg-subtle);
}

.dsb-icon-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--color-text-dark);
  transition: background 0.18s ease;
  line-height: 1;
}

.dsb-icon-btn:hover {
  background: var(--color-bg-subtle);
}

.dsb-panel-header__actions {
  display: flex;
  gap: 4px;
}

.dsb-icon-btn--danger:hover {
  background: #fdecea;
  border-color: #c0392b;
  color: #c0392b;
}

/* ── JSON viewers ── */
.dsb-json-viewer {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.dsb-json-viewer--response {
  border-color: var(--color-accent);
}

.dsb-json-viewer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-bg-subtle);
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.dsb-json-viewer__title {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-dark);
}

.dsb-json-pre {
  margin: 0;
  padding: var(--space-md);
  background: var(--color-text-black);
  overflow-x: auto;
  max-height: 300px;
  overflow-y: auto;
}

.dsb-json-pre code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  color: #e8e8e8;
  line-height: 1.6;
  white-space: pre;
  display: block;
  direction: ltr;   /* JSON is LTR even inside RTL page */
  text-align: left;
  unicode-bidi: embed;
}

/* JSON syntax highlighting */
.dsb-json-code .dsb-j-key  { color: #79c0ff; }   /* keys: light blue */
.dsb-json-code .dsb-j-str  { color: #ffd086; }   /* strings: warm gold */
.dsb-json-code .dsb-j-num  { color: #a5d6ff; }   /* numbers: pale blue */
.dsb-json-code .dsb-j-bool { color: #ff7b72; }   /* true/false: red */
.dsb-json-code .dsb-j-null { color: #8b949e; }   /* null: grey */

/* Collapse/expand */
.dsb-json-viewer--collapsed .dsb-json-pre { display: none; }
.dsb-json-viewer__hint {
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--color-text-muted, #6a6a6a);
  margin-inline-start: 6px;
}
.dsb-json-viewer__actions { display: flex; gap: 4px; }

/* Swagger / API Reference link in page header */
.dsb-swagger-link {
  display: inline-flex; align-items: center; gap: 4px;
  background: #1a1a1a; color: #ffcb00;
  text-decoration: none;
  padding: 4px 10px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 600;
  border: 1px solid #ffcb00;
  transition: all 0.15s ease;
}
.dsb-swagger-link:hover {
  background: #ffcb00; color: #1a1a1a;
}
.dsb-postman-link {
  background: #fff; color: #ff6c37; border-color: #ff6c37;
}
.dsb-postman-link:hover {
  background: #ff6c37; color: #fff;
}

/* ── Output panel (right column) ── */
.dsb-output-panel {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
  position: sticky;
  top: calc(var(--header-height) + var(--space-md));
  max-height: calc(100vh - var(--header-height) - var(--space-3xl));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Status badge */
.dsb-status-badge {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.6875rem;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-subtle);
  color: var(--color-accent);
  white-space: nowrap;
}

.dsb-status--queued  { background: var(--color-brand-muted); color: var(--color-status-dev-fg); }
.dsb-status--running { background: rgba(0,120,255,0.1); color: #0066cc; }
.dsb-status--complete{ background: var(--color-status-active-bg); color: var(--color-status-active-fg); }
.dsb-status--partial { background: var(--color-brand-muted); color: var(--color-status-dev-fg); }
.dsb-status--failed  { background: rgba(220,38,38,0.1); color: #b91c1c; }

/* Idle state */
.dsb-output-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
  min-height: 200px;
}

.dsb-output-idle__icon {
  font-size: 2.5rem;
  opacity: 0.4;
}

.dsb-output-idle__text {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-text-dark);
  opacity: 0.7;
  line-height: 1.6;
}

.dsb-output-idle__hint {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-accent);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-xs) var(--space-sm);
}

/* Progress state */
.dsb-output-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xl) var(--space-md);
}

.dsb-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-brand);
  border-radius: 50%;
  animation: dsb-spin 0.9s linear infinite;
}

@keyframes dsb-spin {
  to { transform: rotate(360deg); }
}

.dsb-progress-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-dark);
}

.dsb-progress-track {
  width: 100%;
  height: 6px;
  background: var(--color-bg-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.dsb-progress-bar {
  height: 100%;
  background: var(--color-brand);
  border-radius: var(--radius-pill);
  transition: width 0.4s ease;
}

.dsb-progress-count {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-accent);
}

.dsb-job-id-display {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.6875rem;
  color: var(--color-accent);
  opacity: 0.7;
}

/* Results grid */
.dsb-output-results {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.dsb-variants-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.dsb-variant-card {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dsb-variant-card__img-wrap {
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--color-border);
  max-height: 140px;
}

.dsb-variant-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.dsb-variant-img:hover {
  opacity: 0.9;
}

.dsb-variant-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-border);
  background: var(--color-bg-subtle);
}

.dsb-variant-card__meta {
  padding: var(--space-xs) var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dsb-variant-meta-item {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  color: var(--color-accent);
}

.dsb-variant-meta-item code {
  font-family: 'Courier New', Courier, monospace;
  color: var(--color-text-dark);
}

.dsb-variant-card__actions {
  display: flex;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.dsb-refined-divider {
  grid-column: 1 / -1;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-accent);
  padding: var(--space-xs) 0;
  border-top: 1px dashed var(--color-border);
  text-align: center;
}

/* ── Loading placeholder ── */
.dsb-loading-placeholder {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-accent);
  padding: var(--space-lg);
  text-align: center;
  opacity: 0.7;
}

/* ── Modals ── */
.dsb-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.dsb-modal {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 12px 48px rgba(26, 26, 26, 0.2);
  overflow: hidden;
}

.dsb-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-subtle);
  border-bottom: 1px solid var(--color-border);
}

.dsb-modal__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text-black);
}

.dsb-modal__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.dsb-modal__footer {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-subtle);
  border-top: 1px solid var(--color-border);
}

/* ── Lightbox ── */
.dsb-lightbox {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dsb-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  display: block;
}

.dsb-lightbox-close {
  position: absolute;
  top: -12px;
  left: -12px;
  background: var(--color-text-black);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease;
}

.dsb-lightbox-close:hover {
  background: var(--color-accent);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .dsb-layout {
    grid-template-columns: 200px 1fr 240px;
  }
}

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

  .dsb-jobs-sidebar,
  .dsb-output-panel {
    position: static;
    max-height: none;
  }

  .dsb-jobs-sidebar {
    max-height: 220px;
  }

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

@media (max-width: 600px) {
  .dsb-style-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .dsb-field-group--sm {
    flex: 1 1 100%;
  }

  .dsb-variants-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dsb-actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  .dsb-btn-primary,
  .dsb-btn-secondary {
    width: 100%;
    text-align: center;
  }
}
