:root {
  --black: #000000;
  --ink: #171717;
  --muted: #5e5e5e;
  --subtle: #767676;
  --line: #e2e2e2;
  --soft: #f6f6f6;
  --white: #ffffff;
  --green: #111111;
  --green-dark: #000000;
  --danger: #c5331e;
  --focus: #276ef1;
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
  --header-height: 72px;
  --cart-width: 390px;
  color-scheme: light;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, sans-serif;
  font-synthesis: none;
}

/* ----- Professional monochrome interface ----- */
:root {
  --green: #111111;
  --green-dark: #000000;
  --danger: #111111;
  --ink: #111111;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --surface: #ffffff;
  --soft: #f6f6f6;
  --radius: 20px;
  --shadow: 0 18px 60px rgb(0 0 0 / 10%);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Manrope", "Noto Sans Georgian", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  letter-spacing: -.012em;
}

body[data-language="ka"] {
  font-family: "Noto Sans Georgian", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

strong, b, h1, h2, h3, h4, h5, h6 { font-weight: 500; }

button, input, select, textarea {
  font: inherit;
  font-weight: 400;
}

button { -webkit-tap-highlight-color: transparent; }

.topbar {
  min-height: 72px;
  padding: 12px clamp(16px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 94%);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.brand img { height: 38px; width: auto; }
.brand span { font-size: 14px; font-weight: 500; }

.mode-switch {
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
}

.mode-btn {
  min-height: 36px;
  padding: 7px 16px;
  border: 0;
  border-radius: 999px;
  color: #6b6b6b;
  background: transparent;
}

.mode-btn.active {
  color: #fff;
  background: #111;
  box-shadow: none;
}

.top-actions { gap: 8px; }
.saved-status { color: #777; font-size: 12px; }

.text-action,
.start-over-action,
.danger-link {
  color: #333;
  background: transparent;
  text-decoration: none;
}

.text-action:hover,
.start-over-action:hover,
.danger-link:hover { color: #000; background: #f3f3f3; }

.language-toggle {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  overflow: hidden;
  place-items: center;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
}

.language-toggle img { width: 30px; height: 30px; border-radius: 50%; }

.cart-button,
.primary-btn,
.add-card-btn,
.round-action.add {
  color: #fff;
  border-color: #111;
  background: #111;
  box-shadow: none;
}

.cart-button:hover,
.primary-btn:hover,
.add-card-btn:hover,
.round-action.add:hover { color: #fff; background: #000; }

.app-shell {
  display: block;
  width: min(1520px, 100%);
  margin: 0 auto;
}

.workspace {
  width: 100%;
  max-width: none;
  padding: 22px clamp(16px, 3vw, 42px) 72px;
}

.summary-strip {
  display: grid;
  grid-template-columns: minmax(96px, .7fr) minmax(130px, .9fr) minmax(220px, 1.35fr);
  max-width: 760px;
  margin: 0 auto 22px;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgb(0 0 0 / 5%);
}

.summary-strip > div,
.summary-strip > div:first-child,
.summary-strip > div:nth-child(2) {
  display: flex;
  min-width: 0;
  min-height: 72px;
  padding: 13px 18px;
  flex-direction: column;
  justify-content: center;
  border: 0;
  border-right: 1px solid var(--line);
}

.summary-strip > div:last-child { border-right: 0; }
.summary-label { color: #777; font-size: 11px; letter-spacing: .02em; text-transform: none; }
.summary-strip strong { margin-top: 3px; font-size: 17px; font-weight: 500; }

.currency-summary select {
  width: 100%;
  height: 34px;
  margin: 3px 0 0;
  padding: 0 28px 0 0;
  border: 0;
  outline: 0;
  color: #111;
  background-color: transparent;
  font-size: 13px;
}

.currency-summary small {
  min-height: 15px;
  color: #777;
  font-size: 10px;
  line-height: 1.4;
}

.currency-summary strong[hidden],
[hidden] { display: none !important; }

.swipe-toolbar,
.catalog-header {
  align-items: center;
  margin-bottom: 14px;
}

.swipe-toolbar h1,
.catalog-header h1 {
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
}

.secondary-btn,
.text-btn {
  color: #222;
  border: 1px solid #ddd;
  background: #fff;
  box-shadow: none;
}

.secondary-btn:hover,
.text-btn:hover { border-color: #bbb; background: #f7f7f7; }

.progress-track { height: 3px; border-radius: 999px; background: #ececec; }
#progressFill { background: #111; }

.swipe-direction-hint { color: #777; font-size: 12px; }

.swipe-stage { min-height: min(570px, calc(100dvh - 300px)); }
.swipe-stack { width: min(440px, calc(100vw - 32px)); }

.swipe-card {
  overflow: hidden;
  border: 1px solid #e4e4e4;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgb(0 0 0 / 14%);
  will-change: transform, opacity;
}

.swipe-card .card-image-wrap { background: #f2f2f2; }
.swipe-card-body { padding: 18px 20px 20px; }
.swipe-card-body h2 { margin: 0; font-size: clamp(20px, 4vw, 27px); line-height: 1.22; }
.product-description, .additional-info, .card-topline { display: none !important; }

.price-row { margin-top: 10px; gap: 20px; }
.price-row > div { padding: 0; border: 0; background: none; }
.price-row span { color: #777; font-size: 10px; }
.price-row strong { font-size: 15px; }

.swipe-badge {
  color: #111;
  border-color: #111;
  background: rgb(255 255 255 / 90%);
}

.add-badge,
.skip-badge { color: #111; border-color: #111; }

.swipe-actions {
  gap: 10px;
  margin-top: 16px;
}

.round-action {
  min-width: 88px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  color: #222;
  background: #fff;
  box-shadow: 0 7px 20px rgb(0 0 0 / 7%);
}

.round-action.skip,
.round-action.undo { color: #222; border-color: #d8d8d8; background: #fff; }
.round-action.intent { transform: translateY(-2px); box-shadow: 0 10px 25px rgb(0 0 0 / 12%); }

.filters-bar {
  display: grid;
  grid-template-columns: minmax(210px, 1.5fr) repeat(3, minmax(150px, .7fr));
  gap: 10px;
  margin-bottom: 22px;
  padding: 0;
  border: 0;
  background: transparent;
}

.filters-bar input,
.filters-bar select {
  width: 100%;
  height: 46px;
  border: 1px solid #ddd;
  border-radius: 14px;
  color: #222;
  background-color: #fff;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 16px;
  align-items: stretch;
}

.product-card {
  display: flex;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: #d3d3d3;
  box-shadow: 0 16px 40px rgb(0 0 0 / 8%);
}

.product-card.selected { border-color: #111; box-shadow: inset 0 0 0 1px #111; }
.product-card-image { aspect-ratio: 4 / 3; background: #f2f2f2; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }

.product-card-body {
  display: flex;
  min-height: 164px;
  padding: 15px;
  flex: 1;
  flex-direction: column;
}

.product-card h3 {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 8px;
  overflow: hidden;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-prices { min-height: 42px; }
.card-prices strong { font-size: 14px; font-weight: 500; }
.card-prices span { color: #777; font-size: 12px; }
.product-card-actions { min-height: 42px; margin-top: auto; }
.add-card-btn { width: 100%; min-height: 42px; border-radius: 12px; }

.quantity-control {
  display: grid;
  width: 100%;
  height: 42px;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 12px;
  background: #fff;
}

.quantity-control button,
.cart-mini-controls button {
  color: #111;
  border: 0;
  background: transparent;
}

.quantity-control span { text-align: center; font-weight: 500; }
.card-edit-btn { display: none !important; }

.cart-panel {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, calc(100vw - 18px));
  max-height: none;
  padding: 20px;
  overflow: auto;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  box-shadow: -24px 0 70px rgb(0 0 0 / 14%);
  transform: translate3d(105%, 0, 0);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}

.cart-panel.open { transform: translate3d(0, 0, 0); }

.cart-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgb(0 0 0 / 28%);
  backdrop-filter: blur(2px);
}

.cart-header { margin-bottom: 16px; }
.cart-header .mobile-only { display: block; }
.people-control { border: 0; border-radius: 14px; background: #f5f5f5; }
.cart-item { grid-template-columns: 52px minmax(0, 1fr); border-bottom: 1px solid #eee; }
.cart-item img { width: 52px; height: 52px; border-radius: 12px; }
.cart-item-actions { grid-column: 2; align-items: center; }
.cart-mini-controls { border-color: #ddd; }
.mini-link { color: #333; }
.cart-footer { background: #fff; }
.danger-btn { color: #fff; border-color: #111; background: #111; }
.danger-link { width: 100%; padding: 10px; border-radius: 10px; }
.backup-tools { display: none !important; }

.modal-card,
.list-drawer { border-radius: 22px; box-shadow: var(--shadow); }
.warning-item.ok { color: #222; border-color: #ddd; background: #f7f7f7; }
.warning-item.error { color: #222; border-color: #ddd; background: #f7f7f7; }

@media (max-width: 1080px) {
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    min-height: auto;
    gap: 10px;
    padding: 10px 14px;
  }

  .brand span, .saved-status, .start-over-action { display: none; }
  .brand img { height: 34px; }
  .top-actions { grid-column: 2; grid-row: 1; }
  .mode-switch { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .mode-btn { flex: 1; }
  .cart-button { min-height: 38px; padding: 8px 12px; }
  .workspace { padding: 14px 12px 88px; }

  .summary-strip {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 14px;
    border-radius: 16px;
  }

  .summary-strip > div,
  .summary-strip > div:first-child,
  .summary-strip > div:nth-child(2) {
    min-height: 62px;
    padding: 10px 13px;
  }

  .summary-strip > div:nth-child(2) { border-right: 0; }
  .summary-strip > .currency-summary {
    grid-column: 1 / -1;
    min-height: 60px;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .swipe-toolbar { align-items: flex-start; gap: 8px; }
  .toolbar-actions { gap: 6px; }
  .toolbar-actions .secondary-btn { min-height: 34px; padding: 6px 9px; font-size: 11px; }
  .swipe-stage { min-height: min(520px, calc(100dvh - 345px)); }
  .swipe-card { border-radius: 23px; }
  .swipe-card-body { padding: 14px 16px 16px; }
  .swipe-actions { position: relative; z-index: 3; }
  .round-action { min-width: 82px; min-height: 44px; padding: 9px 14px; font-size: 12px; }

  .catalog-header { margin: 4px 0 12px; }
  .catalog-header .primary-btn { display: none; }
  .filters-bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
  .filters-bar::-webkit-scrollbar { display: none; }
  .filters-bar > * { flex: 0 0 172px; }
  .filters-bar .search-field { flex-basis: 220px; }
  .filters-bar input, .filters-bar select { height: 42px; border-radius: 12px; font-size: 12px; }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 9px;
  }

  .product-card { border-radius: 16px; }
  .product-card:hover { transform: none; box-shadow: none; }
  .product-card-body { min-height: 160px; padding: 11px; }
  .product-card h3 {
    min-height: 58px;
    font-size: 13px;
    line-height: 1.48;
    -webkit-line-clamp: 3;
  }
  .card-prices { min-height: 39px; }
  .card-prices strong { font-size: 13px; }
  .card-prices span { font-size: 10px; }
  .product-card-actions, .quantity-control, .add-card-btn { min-height: 40px; height: 40px; }
  .quantity-control { grid-template-columns: 38px 1fr 38px; }
  .cart-panel { width: min(370px, calc(100vw - 10px)); padding: 16px; }
}

@media (max-width: 380px) {
  .workspace { padding-inline: 9px; }
  .catalog-grid { gap: 9px 7px; }
  .product-card-body { padding: 9px; }
  .product-card h3 { font-size: 12px; }
  .round-action { min-width: 76px; padding-inline: 11px; }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  overscroll-behavior: contain;
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

button,
select,
summary,
.file-label {
  cursor: pointer;
}

button,
input,
select,
textarea {
  border-radius: 0;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

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

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
strong {
  letter-spacing: -0.02em;
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--black);
  color: var(--white);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  background: var(--white);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.loading-screen.hidden {
  display: grid !important;
  opacity: 0;
  visibility: hidden;
}

.loading-screen p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.loader {
  width: 36px;
  height: 36px;
  border: 3px solid var(--line);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto minmax(360px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--black);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

.brand img {
  width: 76px;
  height: 34px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.5) brightness(0.35);
}

.brand span {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.mode-switch {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  gap: 28px;
}

.mode-btn {
  min-width: 72px;
  padding: 0;
  background: transparent;
  color: var(--subtle);
  border: 0;
  border-bottom: 3px solid transparent;
  font-size: 15px;
  font-weight: 700;
  transition: color 160ms ease, border-color 160ms ease;
}

.mode-btn:hover {
  color: var(--black);
}

.mode-btn.active {
  color: var(--black);
  border-bottom-color: var(--black);
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.saved-status {
  margin-right: 8px;
  color: var(--subtle);
  font-size: 12px;
  white-space: nowrap;
}

.text-action,
.text-btn,
.mini-link,
.danger-link {
  min-height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.text-action:hover,
.text-btn:hover,
.mini-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.start-over-action,
.danger-link {
  color: var(--danger);
}

.cart-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  margin-left: 6px;
  background: var(--black);
  color: var(--white);
  border: 0;
  font-weight: 700;
  transition: background 160ms ease;
}

.cart-button:hover {
  background: #282828;
}

.cart-count {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--green);
  color: var(--black);
  font-size: 12px;
  font-weight: 800;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--cart-width);
  min-height: calc(100vh - var(--header-height));
}

.workspace {
  min-width: 0;
  padding: 0 32px 72px;
}

.summary-strip {
  min-height: 92px;
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr)) minmax(230px, auto);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.summary-strip > div {
  min-width: 0;
  padding: 0 24px;
  border-left: 1px solid var(--line);
}

.summary-strip > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.summary-label,
.eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.summary-strip strong {
  display: block;
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fx-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 13px;
}

.fx-control label {
  color: var(--subtle);
  font-weight: 700;
}

.fx-control input {
  width: 84px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.mode-panel {
  display: none;
}

.mode-panel.active {
  display: block;
}

.swipe-toolbar,
.catalog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 18px;
}

.swipe-toolbar h1,
.catalog-header h1 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.05;
}

.toolbar-actions,
.empty-actions,
.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-btn,
.secondary-btn,
.danger-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.primary-btn {
  background: var(--black);
  color: var(--white);
}

.primary-btn:hover {
  background: #282828;
}

.secondary-btn {
  gap: 8px;
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.secondary-btn:hover {
  border-color: var(--black);
}

.danger-btn {
  background: var(--danger);
  color: var(--white);
}

.danger-btn:hover {
  background: #9f2515;
}

.full {
  width: 100%;
}

.progress-track {
  height: 3px;
  overflow: hidden;
  background: var(--line);
}

#progressFill {
  height: 100%;
  width: 0;
  background: var(--green);
  transition: width 260ms ease;
}

.swipe-stage {
  min-height: 650px;
  display: grid;
  place-items: center;
  padding: 28px 0 18px;
  overflow: hidden;
  perspective: 1100px;
}

.swipe-card {
  width: min(100%, 520px);
  overflow: hidden;
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  touch-action: pan-y;
  user-select: none;
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 180ms ease;
  will-change: transform;
}

.swipe-card.dragging {
  transition: none;
  cursor: grabbing;
}

.swipe-card.fly-right {
  transform: translateX(130%) rotate(10deg) !important;
  opacity: 0;
}

.swipe-card.fly-left {
  transform: translateX(-130%) rotate(-10deg) !important;
  opacity: 0;
}

.swipe-badge {
  position: absolute;
  top: 24px;
  z-index: 3;
  display: none;
  padding: 9px 13px;
  border: 2px solid currentColor;
  background: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.add-badge {
  left: 24px;
  color: var(--green-dark);
  transform: rotate(-5deg);
}

.skip-badge {
  right: 24px;
  color: var(--danger);
  transform: rotate(5deg);
}

.card-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--soft);
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-source-pill,
.product-status-chip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 7px 10px;
  background: rgba(0, 0, 0, 0.84);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
}

.swipe-card-body {
  padding: 24px;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.category-pill,
.availability-pill {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.availability-pill {
  color: var(--green-dark);
}

.availability-pill.unavailable {
  color: var(--danger);
}

.swipe-card h2 {
  margin: 12px 0 8px;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.08;
}

.product-description,
.additional-info {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.price-row span {
  display: block;
  margin-bottom: 2px;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.price-row strong {
  font-size: 21px;
}

.swipe-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.round-action {
  min-width: 88px;
  height: 48px;
  padding: 0 18px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.round-action:hover {
  border-color: var(--black);
}

.round-action.skip {
  color: var(--danger);
}

.round-action.add {
  min-width: 112px;
  background: var(--green);
  color: var(--black);
  border-color: var(--green);
}

.round-action.add:hover {
  background: #05a85a;
  border-color: #05a85a;
}

.empty-state {
  width: min(100%, 540px);
  padding: 64px 24px;
  margin: auto;
  text-align: center;
}

.empty-state h2 {
  margin-bottom: 8px;
  font-size: 26px;
}

.empty-state p {
  color: var(--muted);
}

.empty-actions {
  justify-content: center;
  margin-top: 24px;
}

.filters-bar {
  position: sticky;
  top: var(--header-height);
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, auto));
  gap: 8px;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.search-field input,
.filters-bar select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: var(--soft);
  color: var(--ink);
  border: 1px solid transparent;
}

.search-field input:hover,
.filters-bar select:hover {
  border-color: #c8c8c8;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 40px;
  padding: 28px 0 16px;
}

.product-card {
  min-width: 0;
}

.product-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--soft);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.025);
}

.product-card .product-status-chip {
  top: 12px;
  right: 12px;
  bottom: auto;
  left: auto;
  background: var(--black);
}

.product-card.selected .product-status-chip {
  background: var(--green);
  color: var(--black);
}

.product-card-body {
  padding: 14px 0 0;
}

.product-card h3 {
  min-height: 48px;
  margin: 7px 0 5px;
  font-size: 18px;
  line-height: 1.28;
}

.product-card .product-description {
  min-height: 40px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 12px;
}

.card-prices strong {
  font-size: 15px;
}

.card-prices span {
  color: var(--subtle);
  font-size: 12px;
}

.product-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.add-card-btn {
  min-width: 96px;
  background: var(--green);
  color: var(--black);
}

.add-card-btn:hover {
  background: #05a85a;
}

.card-edit-btn {
  min-height: 44px;
  padding: 0 12px;
  background: transparent;
  color: var(--ink);
  border: 0;
  font-size: 13px;
  font-weight: 700;
}

.card-edit-btn:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.quantity-control,
.cart-mini-controls {
  height: 44px;
  display: inline-grid;
  grid-template-columns: 44px 34px 44px;
  align-items: center;
  background: var(--soft);
}

.quantity-control button,
.cart-mini-controls button {
  width: 44px;
  height: 44px;
  background: transparent;
  color: var(--black);
  border: 0;
  font-size: 20px;
}

.quantity-control button:hover,
.cart-mini-controls button:hover {
  background: #e8e8e8;
}

.quantity-control span,
.cart-mini-controls span {
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.cart-panel {
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-left: 1px solid var(--line);
}

.cart-header,
.drawer-header,
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.cart-header {
  padding: 28px 24px 18px;
}

.cart-header h2,
.drawer-header h2,
.modal-header h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.people-control {
  display: grid;
  grid-template-columns: auto 74px 1fr;
  align-items: center;
  gap: 12px;
  margin: 0 24px 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.people-control label {
  font-size: 13px;
  font-weight: 800;
}

.people-control input {
  width: 74px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
}

.people-control span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.cart-items {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 24px;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item > img {
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.cart-item h4 {
  margin: 1px 0 3px;
  font-size: 14px;
  line-height: 1.3;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.cart-item-actions {
  grid-column: 2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: -6px;
}

.cart-mini-controls {
  height: 44px;
  grid-template-columns: 44px 32px 44px;
}

.cart-mini-controls button {
  width: 44px;
  height: 44px;
}

.cart-empty {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 32px;
  color: var(--muted);
}

.cart-footer {
  padding: 18px 24px 22px;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.cart-total-row strong {
  font-size: 18px;
}

.cart-footer > .primary-btn {
  margin-top: 14px;
}

.backup-tools {
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.backup-tools summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

.backup-tools summary::-webkit-details-marker {
  display: none;
}

.backup-tools summary::after {
  content: "+";
  margin-left: auto;
  color: var(--ink);
  font-size: 18px;
}

.backup-tools[open] summary::after {
  content: "−";
}

.backup-tools > div {
  display: grid;
  gap: 8px;
  padding-bottom: 10px;
}

.file-label {
  position: relative;
  overflow: hidden;
}

.file-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.danger-link {
  width: 100%;
  min-height: 44px;
  text-align: left;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(0, 0, 0, 0.48);
}

.list-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  width: min(100%, 480px);
  overflow-y: auto;
  padding: 24px;
  background: var(--white);
  transform: translateX(105%);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.list-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  position: sticky;
  top: -24px;
  z-index: 2;
  padding: 24px 0 18px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.drawer-list {
  padding-top: 8px;
}

.drawer-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.drawer-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
}

.drawer-item h4 {
  margin: 0 0 4px;
  font-size: 14px;
}

.drawer-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.drawer-item-actions {
  display: grid;
  gap: 4px;
}

.drawer-item-actions button {
  min-height: 44px;
  padding: 0 10px;
  background: transparent;
  color: var(--ink);
  border: 0;
  font-size: 12px;
  font-weight: 800;
}

.drawer-item-actions button:hover {
  text-decoration: underline;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.56);
  overflow-y: auto;
}

.modal-card {
  width: min(100%, 920px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.modal-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.edit-form {
  padding-top: 22px;
}

.image-editor {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(220px, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.image-editor > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--soft);
}

.image-editor > div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.image-editor label,
.form-grid label,
.export-options label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid .span-2 {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.image-editor input,
.export-options input {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}

.form-grid textarea {
  resize: vertical;
}

.modal-actions {
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.review-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.review-kpis > div {
  padding: 0 18px;
  border-left: 1px solid var(--line);
}

.review-kpis > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.review-kpis span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.review-kpis strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
}

.review-columns {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  padding: 24px 0;
}

.review-columns h3 {
  margin-bottom: 14px;
  font-size: 17px;
}

.review-group {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.review-group-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
}

.review-group ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
}

.warning-list {
  display: grid;
  gap: 10px;
}

.warning-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.warning-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.warning-item.ok span {
  color: var(--green-dark);
}

.warning-item.error span {
  color: var(--danger);
}

.warning-item p {
  margin: 0;
  font-size: 13px;
}

.export-options {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.source-note {
  color: var(--muted);
  font-size: 12px;
}

.confirm-card {
  width: min(100%, 480px);
}

.confirm-card h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.confirm-card p {
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 300;
  max-width: min(90vw, 520px);
  padding: 13px 18px;
  background: var(--black);
  color: var(--white);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transform: translate(-50%, 24px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.mobile-only {
  display: none;
}

@media (max-width: 1240px) {
  :root {
    --cart-width: 360px;
  }

  .topbar {
    grid-template-columns: minmax(180px, 1fr) auto minmax(300px, 1fr);
    padding: 0 20px;
  }

  .saved-status {
    display: none;
  }

  .workspace {
    padding-right: 24px;
    padding-left: 24px;
  }

  .summary-strip {
    grid-template-columns: repeat(3, minmax(110px, 1fr));
  }

  .summary-strip .fx-control {
    grid-column: 1 / -1;
    justify-content: flex-start;
    min-height: 54px;
    padding: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters-bar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
    gap: 14px;
  }

  .brand span,
  .top-actions .text-action,
  .start-over-action {
    display: none;
  }

  .mode-switch {
    justify-self: center;
  }

  .app-shell {
    display: block;
  }

  .workspace {
    padding-bottom: 100px;
  }

  .cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 130;
    width: min(100%, 440px);
    height: 100dvh;
    box-shadow: var(--shadow);
    transform: translateX(105%);
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .cart-panel.open {
    transform: translateX(0);
  }

  .mobile-only {
    display: inline-flex;
  }

  .swipe-stage {
    min-height: 620px;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 64px;
  }

  body {
    font-size: 15px;
  }

  .topbar {
    min-height: var(--header-height);
    padding: 0 14px;
  }

  .brand img {
    width: 60px;
  }

  .mode-switch {
    gap: 18px;
  }

  .mode-btn {
    min-width: 54px;
    font-size: 14px;
  }

  .cart-button {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
  }

  .cart-button > span:first-child {
    display: none;
  }

  .workspace {
    padding: 0 16px 90px;
  }

  .summary-strip {
    min-height: 0;
    grid-template-columns: 1fr 1fr;
  }

  .summary-strip > div {
    min-height: 62px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 14px;
  }

  .summary-strip > div:first-child {
    grid-column: 1 / -1;
    min-height: 54px;
    padding-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .summary-strip > div:nth-child(2) {
    padding-left: 0;
    border-left: 0;
  }

  .summary-strip strong {
    font-size: 14px;
  }

  .summary-label {
    font-size: 9px;
  }

  .summary-strip .fx-control {
    min-height: 52px;
    flex-direction: row;
    }

  .swipe-toolbar,
  .catalog-header {
    align-items: flex-start;
    padding-top: 24px;
  }

  .swipe-toolbar {
    display: grid;
  }

  .swipe-toolbar h1,
  .catalog-header h1 {
    font-size: 30px;
  }

  .toolbar-actions {
    width: 100%;
  }

  .toolbar-actions .secondary-btn {
    flex: 1;
  }

  .swipe-stage {
    min-height: 0;
    padding: 20px 0 14px;
  }

  .swipe-card {
    width: 100%;
  }

  .card-image-wrap {
    aspect-ratio: 1 / 0.82;
  }

  .swipe-card-body {
    padding: 20px;
  }

  .swipe-card h2 {
    font-size: 28px;
  }

  .swipe-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .round-action,
  .round-action.add {
    min-width: 0;
    width: 100%;
    padding: 0 8px;
  }

  .catalog-header .primary-btn {
    min-height: 44px;
    padding: 0 12px;
  }

  .filters-bar {
    top: var(--header-height);
    grid-template-columns: 1fr 1fr;
    margin: 0 -16px;
    padding: 10px 16px;
  }

  .search-field {
    grid-column: 1 / -1;
  }

  .filters-bar select:last-child {
    grid-column: 1 / -1;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
    row-gap: 34px;
  }

  .product-card h3,
  .product-card .product-description {
    min-height: 0;
  }

  .cart-header,
  .cart-footer,
  .cart-items {
    padding-right: 18px;
    padding-left: 18px;
  }

  .people-control {
    margin-right: 18px;
    margin-left: 18px;
  }

  .modal {
    align-items: end;
    padding: 0;
  }

  .modal-card {
    width: 100%;
    max-height: 92dvh;
    padding: 22px 18px;
  }

  .image-editor,
  .review-columns,
  .export-options {
    grid-template-columns: 1fr;
  }

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

  .form-grid .span-2 {
    grid-column: auto;
  }

  .review-kpis {
    grid-template-columns: 1fr 1fr;
    row-gap: 18px;
  }

  .review-kpis > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .drawer-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .drawer-item img {
    width: 64px;
    height: 64px;
  }

  .drawer-item-actions {
    grid-column: 2;
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .swipe-stack .swipe-card,
  .swipe-stack .swipe-card.returning,
  .swipe-underlay,
  .round-action,
  .swipe-badge,
  .card-image-wrap::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Final cascade: restrained monochrome product system. */
:root {
  --green: #111;
  --green-dark: #000;
  --danger: #111;
  --ink: #111;
  --muted: #707070;
  --line: #e5e5e5;
}

body {
  color: #111;
  background: #fff;
  font-family: "Manrope", "Noto Sans Georgian", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
}
body[data-language="ka"] { font-family: "Noto Sans Georgian", "Manrope", sans-serif; }
strong, b, h1, h2, h3, h4, button { font-weight: 500; }

.topbar {
  min-height: 72px;
  padding: 12px clamp(16px, 3vw, 40px);
  border-bottom: 1px solid #e5e5e5;
  background: rgb(255 255 255 / 95%);
  box-shadow: none;
  backdrop-filter: blur(18px);
}
.mode-switch { padding: 4px; border: 1px solid #e2e2e2; border-radius: 999px; background: #f5f5f5; }
.mode-btn { min-height: 36px; padding: 7px 16px; border: 0; border-radius: 999px; color: #666; background: transparent; }
.mode-btn.active { color: #fff; background: #111; box-shadow: none; }
.top-actions { gap: 8px; }
.text-action, .start-over-action, .danger-link { color: #333; background: transparent; text-decoration: none; }
.text-action:hover, .start-over-action:hover, .danger-link:hover { color: #000; background: #f3f3f3; }
.language-toggle { display: grid; width: 38px; height: 38px; padding: 0; overflow: hidden; place-items: center; border: 1px solid #ddd; border-radius: 50%; background: #fff; }
.language-toggle img { width: 30px; height: 30px; border-radius: 50%; }
.cart-button, .primary-btn, .add-card-btn, .round-action.add, .danger-btn {
  color: #fff;
  border-color: #111;
  background: #111;
  box-shadow: none;
}
.cart-button:hover, .primary-btn:hover, .add-card-btn:hover, .round-action.add:hover { color: #fff; background: #000; }

.app-shell { display: block; width: min(1520px, 100%); margin: 0 auto; }
.workspace { width: 100%; max-width: none; padding: 22px clamp(16px, 3vw, 42px) 72px; }
.summary-strip {
  display: grid;
  grid-template-columns: minmax(96px, .7fr) minmax(130px, .9fr) minmax(220px, 1.35fr);
  max-width: 760px;
  margin: 0 auto 22px;
  overflow: visible;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgb(0 0 0 / 5%);
}
.summary-strip > div,
.summary-strip > div:first-child,
.summary-strip > div:nth-child(2) {
  display: flex;
  min-width: 0;
  min-height: 72px;
  padding: 13px 18px;
  flex-direction: column;
  justify-content: center;
  border: 0;
  border-right: 1px solid #e5e5e5;
}
.summary-strip > div:last-child { border-right: 0; }
.summary-label { color: #777; font-size: 11px; letter-spacing: .02em; text-transform: none; }
.summary-strip strong { margin-top: 3px; color: #111; font-size: 17px; font-weight: 500; }
.currency-summary select { width: 100%; height: 32px; margin-top: 2px; padding: 0 24px 0 0; border: 0; outline: 0; color: #111; background-color: transparent; font-size: 13px; }
.currency-summary small { min-height: 14px; color: #777; font-size: 10px; }

.progress-track { height: 3px; background: #ececec; }
#progressFill { background: #111; }
.swipe-card { overflow: hidden; border: 1px solid #e4e4e4; border-radius: 28px; background: #fff; box-shadow: 0 24px 70px rgb(0 0 0 / 14%); }
.swipe-card-body { padding: 18px 20px 20px; }
.swipe-card-body h2 { margin: 0; font-size: clamp(20px, 4vw, 27px); font-weight: 500; line-height: 1.22; }
.product-description, .additional-info, .card-topline { display: none !important; }
.price-row > div { padding: 0; border: 0; background: transparent; }
.price-row span { color: #777; font-size: 10px; }
.price-row strong { color: #111; font-size: 15px; }
.swipe-badge, .add-badge, .skip-badge { color: #111; border-color: #111; background: rgb(255 255 255 / 90%); }
.swipe-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.round-action, .round-action.skip, .round-action.undo {
  min-width: 88px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  color: #222;
  background: #fff;
  box-shadow: 0 7px 20px rgb(0 0 0 / 7%);
}
.round-action.add { min-width: 112px; color: #fff; background: #111; }

.filters-bar { display: grid; grid-template-columns: minmax(210px, 1.5fr) repeat(3, minmax(150px, .7fr)); gap: 10px; margin-bottom: 22px; padding: 0; border: 0; background: transparent; }
.filters-bar input, .filters-bar select { width: 100%; height: 46px; border: 1px solid #ddd; border-radius: 14px; color: #222; background-color: #fff; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; align-items: stretch; }
.product-card {
  display: flex;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card:hover { transform: translateY(-2px); border-color: #d3d3d3; box-shadow: 0 16px 40px rgb(0 0 0 / 8%); }
.product-card.selected { border-color: #111; box-shadow: inset 0 0 0 1px #111; }
.product-card-image { aspect-ratio: 4 / 3; background: #f2f2f2; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { display: flex; min-height: 164px; padding: 15px; flex: 1; flex-direction: column; }
.product-card h3 {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 8px;
  overflow: hidden;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.card-prices { min-height: 42px; }
.card-prices strong { color: #111; font-size: 14px; font-weight: 500; }
.card-prices span { color: #777; font-size: 12px; }
.product-card-actions { min-height: 42px; margin-top: auto; }
.add-card-btn { width: 100%; min-height: 42px; border-radius: 12px; }
.quantity-control { display: grid; width: 100%; height: 42px; grid-template-columns: 42px 1fr 42px; align-items: center; overflow: hidden; border: 1px solid #ccc; border-radius: 12px; background: #fff; }
.quantity-control button, .cart-mini-controls button { color: #111; border: 0; background: transparent; }
.quantity-control span { text-align: center; font-weight: 500; }
.card-edit-btn { display: none !important; }

.cart-panel {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, calc(100vw - 18px));
  max-height: none;
  padding: 20px;
  overflow: auto;
  border: 0;
  border-left: 1px solid #e5e5e5;
  border-radius: 0;
  background: #fff;
  box-shadow: -24px 0 70px rgb(0 0 0 / 14%);
  transform: translate3d(105%, 0, 0);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}
.cart-panel.open { transform: translate3d(0, 0, 0); }
.cart-backdrop { position: fixed; z-index: 80; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgb(0 0 0 / 28%); backdrop-filter: blur(2px); }
.cart-header .mobile-only { display: block; }
.people-control { border: 0; border-radius: 14px; background: #f5f5f5; }
.cart-item { grid-template-columns: 52px minmax(0, 1fr); border-bottom: 1px solid #eee; }
.cart-item img { width: 52px; height: 52px; border-radius: 12px; }
.cart-item-actions { grid-column: 2; }
.backup-tools { display: none !important; }
.danger-link { width: 100%; padding: 10px; border-radius: 10px; color: #333; }
.warning-item.ok, .warning-item.error { color: #222; border-color: #ddd; background: #f7f7f7; }

@media (max-width: 1080px) {
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .topbar { display: grid; grid-template-columns: 1fr auto; min-height: auto; gap: 10px; padding: 10px 14px; }
  .brand span, .saved-status, .start-over-action { display: none; }
  .brand img { height: 34px; }
  .top-actions { grid-column: 2; grid-row: 1; }
  .mode-switch { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .mode-btn { flex: 1; }
  .cart-button { min-height: 38px; padding: 8px 12px; }
  .workspace { padding: 14px 12px 88px; }
  .summary-strip { grid-template-columns: 1fr 1fr; margin-bottom: 14px; border-radius: 16px; }
  .summary-strip > div,
  .summary-strip > div:first-child,
  .summary-strip > div:nth-child(2) { min-height: 62px; padding: 10px 13px; }
  .summary-strip > div:nth-child(2) { border-right: 0; }
  .summary-strip > .currency-summary { grid-column: 1 / -1; min-height: 60px; border-top: 1px solid #e5e5e5; border-right: 0; }
  .swipe-stage { min-height: min(520px, calc(100dvh - 345px)); }
  .swipe-card { border-radius: 23px; }
  .swipe-card-body { padding: 14px 16px 16px; }
  .round-action { min-width: 82px; min-height: 44px; padding: 9px 14px; font-size: 12px; }
  .catalog-header .primary-btn { display: none; }
  .filters-bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
  .filters-bar::-webkit-scrollbar { display: none; }
  .filters-bar > * { flex: 0 0 172px; }
  .filters-bar .search-field { flex-basis: 220px; }
  .filters-bar input, .filters-bar select { height: 42px; border-radius: 12px; font-size: 12px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 9px; }
  .product-card { border-radius: 16px; }
  .product-card:hover { transform: none; box-shadow: none; }
  .product-card-body { min-height: 160px; padding: 11px; }
  .product-card h3 { min-height: 58px; font-size: 13px; line-height: 1.48; -webkit-line-clamp: 3; }
  .card-prices { min-height: 39px; }
  .card-prices strong { font-size: 13px; }
  .card-prices span { font-size: 10px; }
  .product-card-actions, .quantity-control, .add-card-btn { min-height: 40px; height: 40px; }
  .quantity-control { grid-template-columns: 38px 1fr 38px; }
  .cart-panel { width: min(370px, calc(100vw - 10px)); padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Premium swipe interaction */
.swipe-direction-hint {
  width: min(100%, 500px);
  display: flex;
  justify-content: space-between;
  margin: 12px auto -5px;
  padding: 0 10px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 800;
}

.swipe-direction-hint span:first-child {
  color: var(--danger);
}

.swipe-direction-hint span:last-child {
  color: var(--green-dark);
}

.swipe-stack {
  --swipe-force: 0;
  width: min(100%, 500px);
  display: grid;
  isolation: isolate;
}

.swipe-stack > * {
  grid-area: 1 / 1;
}

.swipe-underlay {
  pointer-events: none;
  border: 1px solid rgba(0, 0, 0, 0.035);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-small);
  transform-origin: 50% 100%;
  transition: transform 220ms cubic-bezier(.16, 1, .3, 1);
}

.swipe-underlay-back {
  z-index: 0;
  transform: translateY(calc(20px - var(--swipe-force) * 4px)) scale(calc(.93 + var(--swipe-force) * .015));
  opacity: .5;
}

.swipe-underlay-front {
  z-index: 1;
  transform: translateY(calc(11px - var(--swipe-force) * 5px)) scale(calc(.965 + var(--swipe-force) * .02));
  opacity: .78;
}

.swipe-stack .swipe-card {
  z-index: 2;
  width: 100%;
  cursor: grab;
  transition:
    transform 420ms cubic-bezier(.16, 1, .3, 1),
    opacity 220ms ease,
    box-shadow 220ms ease;
  will-change: transform;
}

.swipe-card img {
  -webkit-user-drag: none;
  user-select: none;
}

.swipe-stack .swipe-card.dragging {
  cursor: grabbing;
  transition: box-shadow 160ms ease;
}

.swipe-stack .swipe-card.returning {
  transition:
    transform 440ms cubic-bezier(.2, .9, .24, 1.12),
    opacity 220ms ease,
    box-shadow 220ms ease;
}

.swipe-card[data-decision="right"] {
  box-shadow: 0 22px 64px rgba(0, 0, 0, .12);
}

.swipe-card[data-decision="left"] {
  box-shadow: 0 22px 64px rgba(179, 38, 30, .16);
}

.card-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.swipe-card[data-decision="right"] .card-image-wrap::after {
  background: linear-gradient(120deg, transparent 48%, rgba(0, 0, 0, .18));
  opacity: .28;
}

.swipe-card[data-decision="left"] .card-image-wrap::after {
  background: linear-gradient(240deg, transparent 48%, rgba(179, 38, 30, .48));
  opacity: .26;
}

.swipe-badge {
  top: 20px;
  bottom: auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
  opacity: 0;
  transform: scale(.86);
  transition: transform 120ms ease, opacity 120ms ease;
}

.add-badge {
  left: 20px;
  background: var(--green-dark);
}

.skip-badge {
  right: 20px;
  background: var(--danger);
}

.swipe-card[data-decision="right"] .add-badge,
.swipe-card[data-decision="left"] .skip-badge {
  transform: scale(1);
}

.swipe-actions {
  width: min(100%, 500px);
  margin: 16px auto 0;
}

.round-action {
  border: 0;
  box-shadow: none;
  transition:
    transform 180ms cubic-bezier(.16, 1, .3, 1),
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.round-action.undo,
.round-action.edit {
  min-width: 64px;
  background: var(--soft);
}

.round-action.skip {
  min-width: 122px;
  background: #fff2f0;
  color: var(--danger);
}

.round-action.add {
  min-width: 132px;
}

.round-action.intent {
  transform: translateY(-2px) scale(1.035);
}

.round-action.skip.intent {
  background: var(--danger);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(179, 38, 30, .22);
}

.round-action.add.intent {
  background: var(--green-dark);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
}

@media (max-width: 680px) {
  .swipe-direction-hint {
    margin-top: 9px;
    margin-bottom: -8px;
    padding-inline: 6px;
    font-size: 11px;
  }

  .swipe-underlay {
    border-radius: 22px;
  }

  .swipe-underlay-back {
    transform: translateY(calc(14px - var(--swipe-force) * 3px)) scale(calc(.94 + var(--swipe-force) * .015));
  }

  .swipe-underlay-front {
    transform: translateY(calc(8px - var(--swipe-force) * 4px)) scale(calc(.97 + var(--swipe-force) * .018));
  }

  .swipe-actions {
    grid-template-columns: 48px minmax(88px, 1fr) 48px minmax(98px, 1fr);
    margin-top: 13px;
  }

  .round-action,
  .round-action.add,
  .round-action.skip,
  .round-action.undo,
  .round-action.edit {
    min-width: 0;
    padding-inline: 8px;
  }
}

/* Rounded, content-first interface */
:root {
  --ink: #101010;
  --muted: #5b5b5b;
  --subtle: #717171;
  --line: #e9e9e9;
  --soft: #f4f4f4;
  --canvas: #f7f7f7;
  --green: #111111;
  --green-dark: #000000;
  --danger: #b3261e;
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.08);
  --shadow-small: 0 6px 20px rgba(0, 0, 0, 0.06);
  --radius-small: 12px;
  --radius-medium: 18px;
  --radius-large: 24px;
}

body {
  background: var(--canvas);
}

button,
input,
select,
textarea,
.file-label {
  border-radius: var(--radius-small);
  touch-action: manipulation;
}

.topbar {
  min-height: 78px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(22px) saturate(1.4);
}

.brand img {
  width: 72px;
}

.mode-switch {
  align-self: center;
  align-items: center;
  gap: 4px;
  height: 48px;
  padding: 4px;
  border-radius: 999px;
  background: var(--soft);
}

.mode-btn {
  min-width: 84px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
}

.mode-btn.active {
  background: var(--white);
  border: 0;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

.text-action,
.text-btn,
.mini-link,
.danger-link {
  border-radius: 999px;
}

.cart-button {
  border-radius: 999px;
  padding-inline: 20px;
}

.app-shell {
  gap: 18px;
  padding: 18px;
}

.workspace {
  padding: 0 24px 64px;
  overflow: hidden;
  border-radius: var(--radius-large);
  background: var(--white);
}

.summary-strip {
  min-height: 84px;
  margin-top: 14px;
  padding: 8px;
  border: 0;
  border-radius: var(--radius-medium);
  background: var(--soft);
}

.summary-strip > div {
  border-left-color: #dddddd;
}

.summary-strip strong {
  font-size: 17px;
}

.fx-control input {
  border-radius: 10px;
}

.swipe-toolbar,
.catalog-header {
  padding-top: 30px;
}

.swipe-toolbar h1,
.catalog-header h1 {
  font-size: clamp(26px, 3vw, 40px);
}

.primary-btn,
.secondary-btn,
.danger-btn,
.round-action {
  border-radius: 999px;
}

.primary-btn,
.cart-button {
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.12);
}

.secondary-btn {
  background: var(--soft);
  border-color: transparent;
}

.secondary-btn:hover {
  background: #eaeaea;
  border-color: transparent;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
}

.swipe-stage {
  min-height: 620px;
  padding-top: 24px;
}

.swipe-card {
  width: min(100%, 500px);
  border: 0;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.card-image-wrap {
  aspect-ratio: 1 / 0.9;
  background: var(--soft);
}

.swipe-card-body {
  padding: 22px 24px 24px;
}

.card-topline,
.image-source-pill,
.swipe-card .product-description,
.swipe-card .additional-info {
  display: none !important;
}

.swipe-card h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.14;
}

.price-row {
  gap: 18px;
  margin-top: 18px;
  padding-top: 16px;
}

.price-row strong {
  font-size: 20px;
}

.swipe-badge {
  border: 0;
  border-radius: 999px;
  box-shadow: var(--shadow-small);
}

.round-action {
  min-width: 92px;
  border: 0;
  background: var(--soft);
}

.round-action.add {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.filters-bar {
  top: 78px;
  gap: 10px;
  padding: 12px 0 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  backdrop-filter: blur(18px) saturate(1.3);
}

.search-field input,
.filters-bar select {
  height: 50px;
  border-radius: 14px;
  background: var(--soft);
}

.catalog-grid {
  gap: 22px;
  padding-top: 16px;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.035);
  border-radius: var(--radius-medium);
  background: var(--white);
  box-shadow: var(--shadow-small);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
}

.product-card-image {
  aspect-ratio: 1 / 0.82;
  margin: 8px 8px 0;
  border-radius: 14px;
}

.product-card-body {
  padding: 14px 16px 16px;
}

.product-card h3 {
  min-height: 46px;
  margin: 0;
  font-size: 17px;
  line-height: 1.32;
}

.card-prices {
  min-height: 28px;
  margin-top: 7px;
}

.card-prices strong {
  font-size: 16px;
}

.card-prices span {
  font-size: 13px;
}

.product-card-actions {
  justify-content: space-between;
  margin-top: 14px;
}

.add-card-btn {
  min-width: 88px;
  min-height: 44px;
  padding-inline: 18px;
  box-shadow: none;
}

.card-edit-btn {
  min-width: 56px;
  border-radius: 999px;
}

.quantity-control,
.cart-mini-controls {
  overflow: hidden;
  border-radius: 999px;
}

.cart-panel {
  top: 96px;
  height: calc(100vh - 114px);
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-small);
}

.cart-header {
  padding-top: 24px;
}

.cart-header .eyebrow {
  display: none;
}

.cart-header h2 {
  font-size: 25px;
}

.cart-items {
  padding-inline: 16px;
}

.cart-item {
  margin-bottom: 10px;
  padding: 10px;
  border: 0;
  border-radius: 16px;
  background: var(--soft);
}

.cart-item img {
  border-radius: 12px;
}

.cart-footer {
  background: var(--white);
}

.modal-card,
.list-drawer {
  border-radius: 26px;
}

.modal-card {
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.drawer-item,
.review-category,
.review-kpis {
  border-radius: var(--radius-medium);
}

@media (max-width: 1240px) {
  .topbar {
    padding-inline: 18px;
  }

  .summary-strip .fx-control {
    padding-top: 8px;
    border-top-color: #dddddd;
  }
}

@media (max-width: 980px) {
  .app-shell {
    display: block;
    padding: 12px;
  }

  .workspace {
    padding-inline: 20px;
  }

  .cart-panel {
    top: 10px;
    right: 10px;
    bottom: 10px;
    height: calc(100dvh - 20px);
    border-radius: 26px;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 64px;
  }

  .topbar {
    min-height: 64px;
    gap: 8px;
    padding: 0 10px;
  }

  .brand img {
    width: 52px;
  }

  .mode-switch {
    height: 50px;
    gap: 2px;
    padding: 3px;
  }

  .mode-btn {
    min-width: 60px;
    height: 44px;
    padding: 0 10px;
    font-size: 13px;
  }

  .cart-button {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .app-shell {
    padding: 8px;
  }

  .workspace {
    padding: 0 10px 88px;
    border-radius: 20px;
  }

  .summary-strip {
    grid-template-columns: repeat(3, 1fr);
    min-height: 66px;
    margin-top: 8px;
    padding: 6px 2px;
    border-radius: 15px;
  }

  .summary-strip > div,
  .summary-strip > div:first-child,
  .summary-strip > div:nth-child(2) {
    grid-column: auto;
    min-height: 54px;
    padding: 0 8px;
    border-bottom: 0;
    border-left: 1px solid #dddddd;
  }

  .summary-strip > div:first-child {
    border-left: 0;
  }

  .summary-strip strong {
    font-size: 13px;
  }

  .summary-label {
    font-size: 8px;
  }

  .summary-strip .fx-control {
    display: none;
  }

  .swipe-toolbar,
  .catalog-header {
    min-height: 76px;
    align-items: center;
    padding: 18px 2px 12px;
  }

  .swipe-toolbar h1,
  .catalog-header h1 {
    font-size: 23px;
  }

  .toolbar-actions {
    gap: 8px;
  }

  .toolbar-actions .secondary-btn,
  .catalog-header .primary-btn {
    min-width: 0;
    min-height: 44px;
    padding: 0 11px;
    font-size: 12px;
  }

  .swipe-stage {
    min-height: 0;
    padding-top: 14px;
  }

  .swipe-card {
    border-radius: 22px;
  }

  .card-image-wrap {
    aspect-ratio: 1 / 0.84;
  }

  .swipe-card-body {
    padding: 18px;
  }

  .swipe-card h2 {
    font-size: 24px;
  }

  .price-row {
    margin-top: 14px;
    padding-top: 13px;
  }

  .price-row strong {
    font-size: 18px;
  }

  .swipe-actions {
    gap: 8px;
    padding: 0 2px;
  }

  .round-action,
  .round-action.add {
    min-height: 46px;
    font-size: 12px;
  }

  .filters-bar {
    top: 64px;
    gap: 8px;
    margin: 0 -10px;
    padding: 10px;
  }

  .search-field input,
  .filters-bar select {
    height: 46px;
    padding-inline: 11px;
    font-size: 13px;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-top: 12px;
  }

  .product-card {
    position: relative;
    border-radius: 15px;
  }

  .product-card:hover {
    transform: none;
  }

  .product-card-image {
    aspect-ratio: 1 / 0.86;
    margin: 5px 5px 0;
    border-radius: 11px;
  }

  .product-card-body {
    padding: 10px 10px 12px;
  }

  .product-card h3 {
    min-height: 38px;
    font-size: 14px;
    line-height: 1.32;
  }

  .card-prices {
    display: grid;
    gap: 0;
    min-height: 36px;
    margin-top: 5px;
  }

  .card-prices strong {
    font-size: 14px;
  }

  .card-prices span {
    font-size: 11px;
  }

  .product-card-actions {
    gap: 8px;
    margin-top: 10px;
  }

  .add-card-btn {
    min-width: 0;
    min-height: 44px;
    flex: 1;
    padding: 0 10px;
    font-size: 13px;
  }

  .card-edit-btn {
    min-width: 44px;
    width: 44px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  .card-edit-btn::after {
    content: "•••";
    font-size: 15px;
    letter-spacing: 2px;
  }

  .quantity-control {
    width: 100%;
    grid-template-columns: 44px 1fr 44px;
    flex: 1;
  }

  .quantity-control button {
    width: 44px;
  }

  .product-card.selected .card-edit-btn {
    position: absolute;
    top: 13px;
    right: 13px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  }

  .cart-panel {
    inset: 8px;
    width: auto;
    height: calc(100dvh - 16px);
    border-radius: 22px;
  }

  .modal-card {
    margin: 8px;
    border-radius: 24px 24px 0 0;
  }
}

/* Final swipe cascade: keep gesture motion and decision controls authoritative. */
.swipe-stack .swipe-card {
  width: 100%;
  transition:
    transform 420ms cubic-bezier(.16, 1, .3, 1),
    opacity 220ms ease,
    box-shadow 220ms ease;
}

.swipe-stack .swipe-card.dragging {
  transition: box-shadow 160ms ease;
}

.swipe-stack .swipe-card.returning {
  transition:
    transform 440ms cubic-bezier(.2, .9, .24, 1.12),
    opacity 220ms ease,
    box-shadow 220ms ease;
}

.round-action.skip {
  min-width: 122px;
  background: #fff2f0;
  color: var(--danger);
}

.round-action.add {
  min-width: 132px;
  background: var(--green);
  color: var(--black);
}

@media (max-width: 680px) {
  .swipe-actions {
    grid-template-columns: 48px minmax(88px, 1fr) 48px minmax(98px, 1fr);
  }

  .round-action,
  .round-action.add,
  .round-action.skip,
  .round-action.undo,
  .round-action.edit {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
