:root {
  --bg: #eef6f8;
  --ink: #142c38;
  --muted: #607887;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --line: rgba(20, 44, 56, 0.12);
  --accent: #2f9fbe;
  --accent-dark: #176780;
  --leaf: #6fab4f;
  --sand: #d8a84f;
  --danger: #c84d3f;
  --shadow: 0 24px 70px rgba(47, 97, 118, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(126, 226, 239, 0.28), transparent 32%),
    radial-gradient(circle at 92% 12%, rgba(111, 171, 79, 0.22), transparent 34%),
    linear-gradient(135deg, #f8fbfd, var(--bg));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1320px, calc(100% - 24px));
  min-height: 72px;
  margin: 12px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.52)),
    var(--panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  font-weight: 900;
}

.brand span:last-child {
  display: grid;
  gap: 1px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  border-radius: 17px;
  background:
    radial-gradient(circle at 80% 82%, var(--sand), transparent 28%),
    linear-gradient(145deg, var(--accent), var(--accent-dark));
  box-shadow: 0 14px 24px rgba(47, 159, 190, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.brand-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(47, 97, 118, 0.18));
}

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

.top-actions a,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.54);
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 10px 18px rgba(47, 97, 118, 0.08);
}

.pill.dark,
.pill.primary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, #143345, #111a31);
}

.pill.danger {
  color: #fff;
  background: linear-gradient(135deg, #d96f5a, var(--danger));
}

.shell {
  width: min(1320px, calc(100% - 24px));
  margin: 22px auto 56px;
}

.hero-panel,
.filters-panel,
.panel,
.admin-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.44)),
    var(--panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.4fr);
  gap: 22px;
  align-items: center;
  padding: clamp(24px, 5vw, 44px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 14px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

h3 {
  margin-bottom: 8px;
}

p {
  color: var(--muted);
  line-height: 1.6;
}

.metric-grid {
  display: grid;
  gap: 10px;
}

.metric-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.5);
}

.metric-grid span {
  display: block;
  font-size: 34px;
  font-weight: 950;
}

.metric-grid small {
  color: var(--muted);
  font-weight: 900;
}

.filters-panel {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(180px, 0.7fr) minmax(190px, 0.75fr) minmax(130px, 0.35fr) minmax(150px, 0.4fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
  padding: 14px;
}

.search-box,
.multi-filter {
  position: relative;
}

.suggestions {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 40;
  display: none;
  gap: 6px;
  max-height: 280px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.suggestions.is-visible {
  display: grid;
}

.suggestions button {
  min-height: 38px;
  padding: 0 11px;
  border: 0;
  border-radius: 13px;
  color: var(--ink);
  background: rgba(47, 159, 190, 0.08);
  text-align: left;
  font-weight: 900;
}

.multi-filter {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.check-list {
  display: grid;
  gap: 5px;
  max-height: 138px;
  overflow: auto;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.46);
}

.check-list label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 8px;
  border-radius: 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  text-transform: none;
}

.check-list input {
  width: auto;
  min-height: 0;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  outline: none;
}

input,
select {
  padding: 0 13px;
}

textarea {
  min-height: 110px;
  padding: 13px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(47, 159, 190, 0.48);
  box-shadow: 0 0 0 4px rgba(47, 159, 190, 0.12);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(290px, 0.35fr) minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.panel {
  min-width: 0;
  padding: 18px;
}

.panel-head {
  margin-bottom: 14px;
}

.tree-list {
  display: grid;
  gap: 10px;
  max-height: 760px;
  overflow: auto;
  padding-right: 4px;
}

details {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.46);
  overflow: hidden;
}

summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  cursor: pointer;
  font-weight: 950;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

.tree-body {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.tree-body p,
.category-note {
  margin: 0;
  font-size: 13px;
}

.geo-meta,
.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(47, 159, 190, 0.1);
  font-size: 12px;
  font-weight: 900;
}

.category-node {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.38);
}

.tree-offer {
  display: block;
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
  text-align: left;
  font-weight: 850;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.offer-card {
  display: grid;
  gap: 12px;
  min-height: 280px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
  text-align: left;
  box-shadow: 0 14px 28px rgba(47, 97, 118, 0.09);
}

.offer-card .pill {
  width: 100%;
}

.view-plain-list,
.view-image-list {
  grid-template-columns: 1fr;
}

.view-plain-list .offer-card,
.view-image-list .offer-card {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr) auto;
  align-items: center;
  min-height: auto;
}

.view-image-list .offer-card {
  grid-template-columns: 92px minmax(0, 1fr) minmax(280px, 0.5fr) auto;
}

.view-plain-list .offer-image {
  display: none;
}

.view-image-list .offer-image {
  min-height: 76px;
  height: 76px;
  border-radius: 17px;
  font-size: 22px;
}

.view-plain-list .offer-card .pill,
.view-image-list .offer-card .pill {
  width: auto;
}

.offer-card.is-active,
.tree-offer.is-active {
  border-color: rgba(47, 159, 190, 0.55);
  box-shadow: 0 0 0 4px rgba(47, 159, 190, 0.12), 0 18px 36px rgba(47, 97, 118, 0.13);
}

.offer-image,
.detail-image {
  display: grid;
  place-items: center;
  min-height: 130px;
  overflow: hidden;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 82%, rgba(216, 168, 79, 0.84), transparent 28%),
    linear-gradient(145deg, #62c7d8, #1f7892 58%, #123345);
  font-size: 34px;
  font-weight: 950;
}

.offer-image img,
.detail-image img,
.promo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-card h3 {
  margin: 0;
  font-size: 18px;
}

.offer-card p {
  margin: 0;
  font-size: 14px;
}

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

.offer-meta div,
.detail-stat {
  padding: 10px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.5);
}

.offer-meta small,
.detail-stat small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.offer-meta b,
.detail-stat b {
  display: block;
  margin-top: 3px;
  font-size: 16px;
}

.detail-panel {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 118px);
  overflow: auto;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
  font-weight: 900;
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.detail-panel .empty-state {
  padding: 12px;
}

.detail-card {
  display: grid;
  gap: 14px;
}

.detail-image {
  min-height: 210px;
}

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

.promo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}

.promo-strip a {
  display: block;
  height: 96px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
}

.empty-list {
  grid-column: 1 / -1;
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
  font-weight: 900;
}

.admin-shell {
  display: grid;
  gap: 18px;
  width: min(1220px, calc(100% - 24px));
  margin: 22px auto 60px;
}

.offer-modal {
  width: min(820px, calc(100% - 24px));
  max-height: min(86vh, 900px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
    var(--panel-strong);
  box-shadow: 0 28px 90px rgba(16, 40, 52, 0.28);
}

.offer-modal::backdrop {
  background: rgba(12, 30, 42, 0.42);
  backdrop-filter: blur(8px);
}

.modal-close {
  position: sticky;
  top: 0;
  z-index: 2;
  float: right;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  font-size: 26px;
  line-height: 1;
}

.geo-terms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.detail-stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 850;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-card {
  padding: 18px;
}

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

.form-grid .full,
.full {
  grid-column: 1 / -1;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 7px;
  max-height: 170px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.46);
}

.geo-rate-grid {
  display: grid;
  gap: 8px;
  max-height: 300px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
}

.geo-rate-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(92px, 0.42fr) minmax(92px, 0.42fr) minmax(130px, 0.5fr);
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
}

.geo-rate-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  text-transform: none;
}

.geo-rate-check input {
  width: auto;
  min-height: 0;
}

.geo-rate-check small {
  color: var(--muted);
}

.check-grid label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 8px;
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  text-transform: none;
}

.check-grid input {
  width: auto;
  min-height: 0;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.row-actions button,
.mini-button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  font-weight: 900;
}

.hidden {
  display: none !important;
}

.notice {
  min-height: 42px;
  padding: 11px 14px;
  border-radius: 16px;
  color: var(--accent-dark);
  background: rgba(47, 159, 190, 0.1);
  font-weight: 900;
}

.toast-stack {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 100;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100% - 24px));
}

.toast {
  transform: translateY(-8px);
  opacity: 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  font-weight: 900;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.toast.is-error {
  color: #9b2f25;
  background: rgba(255, 240, 237, 0.94);
}

@media (max-width: 1100px) {
  .hero-panel,
  .dashboard-grid,
  .admin-grid,
  .filters-panel {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 760px) {
  .topbar,
  .shell,
  .admin-shell {
    width: calc(100% - 12px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 22px;
  }

  .top-actions {
    width: 100%;
  }

  .top-actions a,
  .pill {
    flex: 1 1 auto;
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero-panel,
  .panel,
  .admin-card {
    border-radius: 24px;
    padding: 16px;
  }

  h1 {
    font-size: clamp(34px, 13vw, 54px);
  }

  .filters-panel,
  .form-grid,
  .offer-meta,
  .detail-stats,
  .geo-rate-row,
  .view-plain-list .offer-card,
  .view-image-list .offer-card {
    grid-template-columns: 1fr;
  }

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

  .tree-list {
    max-height: none;
  }
}

/* --- Interface polish pass --- */
.topbar {
  top: 10px;
  z-index: 80;
  overflow: visible;
  border-radius: 28px;
  background-clip: padding-box;
  transform: translateZ(0);
}

.filters-panel {
  position: relative;
  z-index: 50;
  grid-template-columns: minmax(260px, 1.35fr) minmax(150px, 0.72fr) minmax(170px, 0.78fr) minmax(130px, 0.5fr) minmax(138px, 0.52fr) auto;
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
  overflow: visible;
}

.filters-panel > * {
  min-width: 0;
}

.search-box input,
.filter-trigger,
.custom-select .filter-trigger {
  min-height: 44px;
}

.suggestions {
  z-index: 180;
}

.dropdown-filter,
.custom-select {
  position: relative;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.filter-trigger {
  width: 100%;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  text-align: left;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 9px 18px rgba(47, 97, 118, 0.08);
}

.filter-trigger::after {
  content: "";
  float: right;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
}

.filter-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 150;
  display: none;
  gap: 8px;
  min-width: 260px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 250, 252, 0.9)),
    var(--panel-strong);
  box-shadow: 0 24px 64px rgba(47, 97, 118, 0.22);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

.dropdown-filter.is-open .filter-menu,
.custom-select.is-open .filter-menu {
  display: grid;
}

.filter-menu .check-list {
  max-height: 240px;
}

.compact-menu {
  min-width: 180px;
}

.compact-menu button {
  min-height: 38px;
  border: 0;
  border-radius: 13px;
  color: var(--ink);
  background: rgba(47, 159, 190, 0.08);
  font-weight: 900;
  text-align: left;
}

.dashboard-grid {
  grid-template-columns: minmax(280px, 0.33fr) minmax(0, 1fr);
}

.detail-panel {
  display: none;
}

.offer-modal {
  width: min(940px, calc(100% - 24px));
}

.iphone-gallery {
  display: grid;
  gap: 12px;
}

.gallery-screen {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border: 10px solid rgba(255, 255, 255, 0.82);
  border-radius: 38px;
  background:
    radial-gradient(circle at 25% 15%, rgba(255, 255, 255, 0.7), transparent 30%),
    linear-gradient(145deg, rgba(232, 248, 251, 0.9), rgba(176, 220, 234, 0.68));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 24px 60px rgba(47, 97, 118, 0.18);
}

.gallery-screen img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 3px 2px 8px;
}

.gallery-thumbs button {
  flex: 0 0 82px;
  height: 82px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 10px 22px rgba(47, 97, 118, 0.1);
}

.gallery-thumbs button.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 159, 190, 0.14);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-strip.is-mini {
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
}

.promo-strip.is-mini a {
  height: 82px;
}

.admin-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  transition: grid-template-columns 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.admin-card {
  transition: transform 300ms ease, opacity 300ms ease, min-height 300ms ease;
}

.offer-editor-card {
  grid-column: span 1;
}

.database-card {
  grid-column: span 2;
}

.admin-grid.is-offer-priority {
  grid-template-columns: 1.35fr 1.35fr 0.9fr;
}

.admin-grid.is-offer-priority .offer-editor-card {
  grid-column: span 2;
}

.admin-grid.is-offer-priority .database-card {
  grid-column: span 1;
}

.compact-admin-card {
  min-height: 100%;
}

.admin-grid.is-compact-priority .compact-admin-card:not(.is-active-admin-card) {
  transform: scale(0.985);
  opacity: 0.74;
}

.admin-grid.is-compact-priority .compact-admin-card.is-active-admin-card {
  grid-column: span 2;
  transform: scale(1);
  opacity: 1;
}

[data-offer-reset],
[data-bulk-reset],
[data-geo-reset],
[data-category-reset] {
  display: none;
}

.admin-grid.is-offer-priority [data-offer-reset],
.is-active-admin-card [data-bulk-reset],
.is-active-admin-card [data-geo-reset],
.is-active-admin-card [data-category-reset] {
  display: inline-flex;
}

.toast-stack {
  top: 96px;
  right: 50%;
  transform: translateX(50%);
  width: min(440px, calc(100% - 24px));
}

.toast {
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(236, 248, 251, 0.88)),
    var(--panel-strong);
}

.confirm-modal {
  width: min(460px, calc(100% - 28px));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(236, 248, 251, 0.88)),
    var(--panel-strong);
  box-shadow: 0 28px 90px rgba(16, 40, 52, 0.28);
}

.confirm-modal::backdrop {
  background: rgba(12, 30, 42, 0.36);
  backdrop-filter: blur(8px);
}

.confirm-box {
  padding: 22px;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 1100px) {
  .filters-panel,
  .dashboard-grid,
  .admin-grid,
  .admin-grid.is-offer-priority,
  .admin-grid.is-compact-priority {
    grid-template-columns: 1fr;
  }

  .offer-editor-card,
  .database-card,
  .admin-grid.is-offer-priority .offer-editor-card,
  .admin-grid.is-offer-priority .database-card,
  .admin-grid.is-compact-priority .compact-admin-card.is-active-admin-card {
    grid-column: span 1;
  }
}

@media (max-width: 760px) {
  .filter-menu {
    min-width: 100%;
  }

  .gallery-screen,
  .gallery-screen img {
    min-height: 260px;
  }
}
