:root {
  color-scheme: light;
  --paper: #f7f2e8;
  --surface: #fffaf0;
  --ink: #191814;
  --muted: #676054;
  --line: #ded4c3;
  --sage: #5f7b63;
  --sage-dark: #34543b;
  --brick: #b75238;
  --mustard: #cf9d2d;
  --blue: #315c76;
  --violet: #6b4bb7;
  --shadow: 0 18px 48px rgba(50, 41, 28, 0.12);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  overflow-x: hidden;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(95, 123, 99, 0.08), transparent 32rem),
    linear-gradient(225deg, rgba(183, 82, 56, 0.06), transparent 30rem),
    var(--paper);
}

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

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 3vw, 36px);
  border-bottom: 1px solid rgba(25, 24, 20, 0.1);
  background: rgba(247, 242, 232, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 780;
  letter-spacing: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  overflow: hidden;
  background: var(--sage-dark) url("./icons/icon-192.png") center / cover no-repeat;
  box-shadow: inset 0 -8px 18px rgba(0, 0, 0, 0.14);
}

.food-logo::before {
  display: none;
  position: absolute;
  width: 17px;
  height: 23px;
  border: 3px solid #f7e8b9;
  border-radius: 5px;
  background:
    linear-gradient(155deg, transparent 0 38%, rgba(247, 232, 185, 0.95) 39% 50%, transparent 51%),
    linear-gradient(to bottom, #caa25f 0 25%, transparent 26% 68%, #caa25f 69% 100%);
  clip-path: polygon(12% 0, 88% 0, 60% 48%, 88% 100%, 12% 100%, 40% 52%);
  transform: rotate(11deg);
  content: "";
}

.food-logo::after {
  display: none;
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: rgba(247, 232, 185, 0.75);
  box-shadow: 0 16px 0 rgba(247, 232, 185, 0.75);
  transform: rotate(11deg);
  content: "";
}

.brand small {
  display: block;
  max-width: 42vw;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.account-label {
  display: grid;
  max-width: min(340px, 48vw);
  min-width: 0;
  gap: 1px;
  color: var(--ink);
  line-height: 1.08;
  text-align: right;
}

.account-label small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-label strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mode-switch,
.tabs,
.segmented {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.82);
}

.mode-switch button,
.tabs button,
.segmented button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 720;
}

.mode-switch button.active,
.tabs button.active,
.segmented button.active {
  color: #fff;
  background: var(--ink);
}

.page {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 22px clamp(16px, 3vw, 36px) 40px;
}

.legal-page {
  width: min(920px, 100%);
}

.legal-page .panel {
  display: grid;
  gap: 14px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 22px;
  align-items: stretch;
  min-height: 320px;
  margin-bottom: 20px;
}

.hero > *,
.layout > *,
.catalog-layout > *,
.business-shell > * {
  min-width: 0;
}

.hero-copy {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(18px, 3vw, 30px) 0;
}

.eyebrow {
  color: var(--brick);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-top: 10px;
  font-size: clamp(38px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: 0;
}

.lede {
  max-width: 640px;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 8px;
  font-weight: 780;
}

.button {
  padding: 0 16px;
}

.button.primary {
  color: #fff;
  background: var(--sage-dark);
}

.button.secondary {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--surface);
}

.button.danger {
  color: #fff;
  background: var(--brick);
}

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

.icon-button {
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--surface);
  line-height: 1;
}

.refresh-button {
  width: 38px;
  min-height: 38px;
  font-size: 20px;
  align-self: flex-start;
}

.settings-trigger {
  flex: 0 0 auto;
  font-size: 19px;
}

.hero-photo {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.66)),
    url("./assets/demo-place.jpg")
      center / cover;
}

.hero-photo::after {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  background: rgba(25, 24, 20, 0.42);
  content: "Приятные скидки уже рядом.";
  font-weight: 760;
  overflow-wrap: anywhere;
  backdrop-filter: blur(10px);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(160px, 0.6fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.customer-search-panel,
.discover-controls {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin-bottom: 14px;
}

.customer-search-panel {
  padding-top: 4px;
}

.location-search {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 42px auto;
  gap: 8px;
  align-items: center;
}

.search-surface {
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(50, 41, 28, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 0 10px 24px rgba(50, 41, 28, 0.07);
}

.search-surface .field {
  min-height: 42px;
  border-color: transparent;
  background: transparent;
  font-weight: 720;
}

.search-surface .field:focus {
  border-color: transparent;
  box-shadow: none;
}

.search-icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  min-height: 42px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: var(--ink);
  background: rgba(50, 41, 28, 0.06);
  font-size: 22px;
  font-weight: 850;
  line-height: 1;
}

.button-icon {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button span,
.search-icon-button span {
  display: grid;
  place-items: center;
  line-height: 1;
}

.search-icon-button.locate {
  width: auto;
  min-width: 158px;
  grid-auto-flow: column;
  gap: 8px;
  padding: 0 12px;
  color: #fff;
  background: var(--sage-dark);
  font-size: 14px;
}

.search-icon-button .locate-icon {
  font-size: 20px;
}

.search-icon-button .locate-label {
  white-space: nowrap;
}

.search-icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.location-search .button {
  white-space: nowrap;
}

.feed-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -6px 0 16px;
}

.feed-filter-row.compact {
  align-items: stretch;
  margin: 0;
}

.feed-filter-row .select {
  width: auto;
  min-width: 170px;
}

.radius-slider {
  display: grid;
  flex: 1 1 280px;
  min-width: min(100%, 280px);
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(50, 41, 28, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.78);
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.radius-slider input {
  width: 100%;
  accent-color: var(--sage-dark);
}

.radius-slider b {
  color: var(--ink);
}

.filter-toggle {
  min-width: 116px;
}

.filter-sheet {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(50, 41, 28, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.82);
}

.filter-sheet label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.location-status {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.load-more {
  width: 100%;
  margin-top: 12px;
}

.field,
.textarea,
.select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  outline: none;
}

.field,
.select {
  padding: 0 12px;
}

.textarea {
  min-height: 90px;
  padding: 12px;
  resize: vertical;
}

.field:focus,
.textarea:focus,
.select:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(95, 123, 99, 0.18);
}

.file-field {
  padding-top: 10px;
}

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

.catalog-layout {
  display: grid;
  gap: 18px;
}

.catalog-section {
  min-width: 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 10px 0 12px;
}

.customer-results-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.customer-results-head > div:first-child {
  min-width: 0;
}

.view-switch {
  flex: 0 0 auto;
  max-width: 180px;
}

.view-switch button {
  min-width: 72px;
  padding: 0 10px;
}

.section-head h2 {
  font-size: 22px;
  letter-spacing: 0;
}

.section-head p {
  color: var(--muted);
  font-size: 14px;
}

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

.offer-card,
.panel,
.business-card,
.metric-card,
.template-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 0 12px 28px rgba(50, 41, 28, 0.08);
}

.offer-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.offer-card:hover {
  box-shadow: 0 16px 30px rgba(50, 41, 28, 0.11);
  transform: translateY(-2px);
}

.offer-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 156px;
  min-width: 0;
  background: var(--line) center / cover;
}

.offer-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(25, 24, 20, 0) 48%, rgba(25, 24, 20, 0.22));
  content: "";
  pointer-events: none;
}

.save-heart {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 250, 240, 0.72);
  border-radius: 999px;
  color: #fff;
  background: rgba(25, 24, 20, 0.42);
  box-shadow: 0 8px 20px rgba(25, 24, 20, 0.18);
  font-size: 20px;
  font-weight: 850;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.save-heart.active {
  color: var(--mustard);
  background: rgba(25, 24, 20, 0.62);
}

.offer-discount {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--brick);
  box-shadow: 0 8px 18px rgba(25, 24, 20, 0.18);
  font-size: 13px;
  font-weight: 860;
}

.offer-discount.static {
  position: static;
  min-width: 46px;
  justify-content: center;
}

.offer-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
  padding: 13px;
}

.offer-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.offer-title h3 {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.2;
}

.offer-content p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 38px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--brick);
  font-size: 12px;
  font-weight: 850;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 0 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.offer-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 7px;
  margin-top: auto;
}

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

.offer-actions .button {
  width: 100%;
}

.code {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 9px;
  border: 1px dashed var(--sage);
  border-radius: 7px;
  color: var(--sage-dark);
  background: #f1f7ef;
  font-size: 13px;
  font-weight: 830;
}

.panel {
  padding: 16px;
}

.auth-page {
  display: grid;
  width: min(980px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 420px);
  gap: clamp(22px, 5vw, 64px);
  align-items: center;
  padding: clamp(18px, 4vw, 44px);
}

.auth-hero {
  display: grid;
  place-items: center;
  gap: 18px;
}

.auth-brand {
  align-self: start;
}

.auth-logo-lockup {
  display: grid;
  place-items: center;
  gap: 14px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
}

.auth-logo-large {
  width: clamp(150px, 22vw, 230px);
  height: clamp(150px, 22vw, 230px);
  border-radius: 24px;
}

.auth-card,
.settings-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.96);
  box-shadow: var(--shadow);
}

.auth-card {
  display: grid;
  width: min(420px, calc(100vw - 32px));
  min-width: 0;
  gap: 14px;
  justify-self: center;
  padding: 16px;
}

.admin-auth-page {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
}

.auth-choice {
  width: 100%;
}

.auth-choice button {
  flex: 1 1 0;
}

.auth-action-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.auth-panel {
  display: grid;
  gap: 12px;
}

.auth-steps {
  display: grid;
  gap: 10px;
  max-width: 520px;
}

.auth-steps div,
.settings-application,
.status-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.72);
}

.auth-steps div {
  display: grid;
  gap: 3px;
  padding: 12px;
}

.auth-steps span {
  color: var(--muted);
  line-height: 1.35;
}

.auth-panel h2,
.auth-panel h3 {
  margin: 0;
}

.auth-panel p,
.settings-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.consent-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.consent-line input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: var(--sage);
}

.consent-line a {
  color: var(--sage-dark);
  font-weight: 760;
}

.form-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 10px;
}

.form-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.form-head .button {
  min-height: 36px;
  padding: 0 12px;
}

.auth-divider {
  height: 1px;
  margin: 4px 0;
  background: var(--line);
}

.settings-panel {
  display: grid;
  gap: 14px;
  width: min(460px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
}

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

.settings-role-grid .button,
.settings-business-list .button {
  display: grid;
  min-height: 50px;
  justify-items: start;
  gap: 2px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 250, 240, 0.86);
  text-align: left;
}

.settings-role-grid .button.primary,
.settings-business-list .button.primary {
  border-color: rgba(47, 111, 63, 0.38);
  color: var(--ink);
  background: rgba(241, 247, 239, 0.96);
  box-shadow: inset 0 0 0 1px rgba(47, 111, 63, 0.08);
}

.settings-role-grid .button strong,
.settings-business-list .button span {
  max-width: 100%;
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-role-grid .button span,
.settings-business-list .button small {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-role-grid .button.primary span,
.settings-business-list .button.primary small {
  color: var(--sage-dark);
}

.settings-application {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.settings-application span {
  color: var(--muted);
  line-height: 1.35;
}

.settings-business-list {
  display: grid;
  gap: 8px;
}

.business-owner-controls summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
}

.status-note {
  padding: 12px;
}

.quiet-link {
  justify-self: start;
  color: var(--sage-dark);
  font-weight: 760;
  text-decoration: none;
}

.admin-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 16px;
}

.admin-notice {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(95, 123, 99, 0.35);
  border-radius: 8px;
  color: var(--sage-dark);
  background: #f1f7ef;
  font-weight: 780;
}

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

.admin-list,
.checklist,
.admin-business-grid,
.admin-card,
.admin-business-body {
  display: grid;
  gap: 10px;
}

.admin-card,
.admin-business-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.45);
}

.admin-card {
  padding: 12px;
}

.admin-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-details span,
.checklist span {
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
}

.admin-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 14px;
  align-items: end;
  margin-bottom: 14px;
}

.admin-search-row h2,
.admin-search-row p {
  margin: 0;
}

.admin-search-row p {
  margin-top: 6px;
  color: var(--muted);
}

.admin-business-grid {
  grid-template-columns: 1fr;
}

.admin-business-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  min-height: 250px;
  overflow: hidden;
}

.admin-business-card.is-limited {
  border-color: rgba(183, 82, 56, 0.42);
  background: rgba(183, 82, 56, 0.08);
}

.admin-business-photo {
  background: var(--line) center / cover;
}

.admin-business-body {
  padding: 12px;
}

.admin-period-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-period-card {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.admin-period-card strong {
  color: var(--sage-dark);
}

.admin-period-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-period-card b {
  color: var(--ink);
}

.admin-offer-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-offer-counts span {
  padding: 7px 10px;
  border: 1px dashed var(--sage);
  border-radius: 999px;
  color: var(--sage-dark);
  background: #f1f7ef;
  font-size: 13px;
  font-weight: 800;
}

.panel h2,
.panel h3 {
  font-size: 18px;
}

.panel p {
  color: var(--muted);
  line-height: 1.45;
}

.filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.filters.compact {
  max-width: 100%;
  min-width: 0;
  margin: 0 -2px;
  padding: 0 2px 8px;
  overscroll-behavior-x: contain;
  scrollbar-color: rgba(63, 107, 74, 0.5) transparent;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filters.compact::-webkit-scrollbar {
  display: block;
  height: 6px;
}

.filters.compact::-webkit-scrollbar-track {
  background: transparent;
}

.filters.compact::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(63, 107, 74, 0.35);
}

.chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(50, 41, 28, 0.1);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 250, 240, 0.78);
  font-weight: 720;
}

.chip.active {
  color: #fff;
  border-color: var(--sage-dark);
  background: var(--sage-dark);
}

.map-board {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(49, 92, 118, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 92, 118, 0.14) 1px, transparent 1px),
    linear-gradient(135deg, rgba(95, 123, 99, 0.16), rgba(207, 157, 45, 0.11)),
    var(--surface);
  background-size:
    56px 56px,
    56px 56px,
    auto,
    auto;
}

.real-map-shell {
  display: grid;
  gap: 10px;
}

.map-status {
  min-height: 38px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 250, 240, 0.88);
  font-size: 14px;
  font-weight: 720;
}

.map-coordinate-note {
  padding: 10px 12px;
  border: 1px solid rgba(183, 82, 56, 0.24);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(183, 82, 56, 0.06);
  font-size: 13px;
  font-weight: 740;
}

.coordinate-picker {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(49, 92, 118, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 92, 118, 0.13) 1px, transparent 1px),
    radial-gradient(circle at 52% 46%, rgba(95, 123, 99, 0.22), transparent 32%),
    linear-gradient(135deg, rgba(95, 123, 99, 0.14), rgba(207, 157, 45, 0.1)),
    var(--surface);
  background-size:
    42px 42px,
    42px 42px,
    auto,
    auto,
    auto;
  cursor: default;
  touch-action: none;
}

.profile-coordinate-map {
  display: grid;
  gap: 8px;
}

.business-coordinate-map {
  position: relative;
  z-index: 0;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.profile-coordinate-marker {
  width: 42px;
  height: 42px;
}

.profile-coordinate-marker span {
  display: block;
  width: 40px;
  height: 40px;
  border: 3px solid var(--paper);
  border-radius: 999px 999px 999px 4px;
  background: var(--brick);
  box-shadow: 0 12px 24px rgba(50, 41, 28, 0.26);
  transform: rotate(-45deg);
}

.profile-coordinate-marker span::after {
  display: block;
  width: 12px;
  height: 12px;
  margin: 11px;
  border-radius: 999px;
  background: var(--paper);
  content: "";
}

.coordinate-pin {
  position: absolute;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 3px solid var(--paper);
  border-radius: 999px 999px 999px 4px;
  background: var(--brick);
  box-shadow: 0 12px 24px rgba(50, 41, 28, 0.26);
  transform: translate(-50%, -85%) rotate(-45deg);
  cursor: grab;
}

.coordinate-pin:active {
  cursor: grabbing;
}

.coordinate-pin span {
  display: block;
  width: 12px;
  height: 12px;
  margin: 11px;
  border-radius: 999px;
  background: var(--paper);
}

.coordinate-picker-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.88);
  font-size: 13px;
  font-weight: 760;
  backdrop-filter: blur(8px);
}

.offers-map {
  position: relative;
  z-index: 0;
  width: 100%;
  min-height: 580px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(50, 41, 28, 0.08);
}

.offers-map .leaflet-pane,
.offers-map .leaflet-top,
.offers-map .leaflet-bottom {
  z-index: 1;
}

.offers-map .leaflet-popup-pane {
  z-index: 2;
}

.user-location-marker {
  display: grid;
  place-items: center;
}

.user-location-marker span {
  display: block;
  width: 18px;
  height: 18px;
  border: 3px solid var(--paper);
  border-radius: 999px;
  background: #c34832;
  box-shadow: 0 0 0 5px rgba(195, 72, 50, 0.2), 0 8px 18px rgba(50, 41, 28, 0.24);
}

.offer-map-marker {
  display: grid;
  place-items: center;
}

.offer-map-marker span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 3px solid var(--paper);
  border-radius: 999px;
  color: #fff;
  background: var(--brick);
  box-shadow: 0 10px 20px rgba(50, 41, 28, 0.25);
  font-size: 12px;
  font-weight: 850;
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: rgba(95, 123, 99, 0.24);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  color: #fff;
  background: var(--sage-dark);
  font-weight: 850;
}

.map-popup {
  display: grid;
  gap: 10px;
  width: 280px;
  max-width: min(280px, 78vw);
}

.map-popup strong,
.map-popup span,
.map-popup small {
  overflow-wrap: anywhere;
}

.map-popup span {
  color: var(--ink);
  font-weight: 760;
}

.map-popup small {
  color: var(--muted);
}

.map-popup-photo {
  min-height: 112px;
  border-radius: 8px;
  background: var(--line) center / cover;
}

.map-popup-body {
  display: grid;
  gap: 6px;
}

.map-popup-actions,
.map-selection-card,
.map-selection-card div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-cluster-popup .leaflet-popup-content,
.map-offer-popup .leaflet-popup-content {
  margin: 10px;
}

.map-cluster-list {
  display: grid;
  width: 320px;
  max-width: min(320px, 82vw);
  gap: 10px;
}

.map-cluster-head {
  display: grid;
  gap: 2px;
  padding: 2px 2px 0;
}

.map-cluster-head strong {
  overflow-wrap: anywhere;
  font-size: 16px;
}

.map-cluster-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.map-cluster-scroll {
  display: grid;
  max-height: 280px;
  overflow: auto;
  gap: 8px;
  padding-right: 2px;
}

.map-cluster-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.92);
}

.map-cluster-item .button {
  grid-column: 1 / -1;
  min-height: 34px;
}

.map-cluster-photo {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: var(--line) center / cover;
}

.map-cluster-item div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.map-cluster-item strong,
.map-cluster-item span,
.map-cluster-item small {
  overflow-wrap: anywhere;
}

.map-cluster-item strong {
  font-size: 14px;
}

.map-cluster-item span,
.map-cluster-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.map-selection {
  display: grid;
  gap: 10px;
}

.map-selection:empty {
  display: none;
}

.map-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.map-list-head h3 {
  font-size: 18px;
}

.map-list-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.map-selection-list {
  display: grid;
  gap: 8px;
}

.map-selection-card {
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.92);
}

.map-selection-card div:first-child {
  display: grid;
  min-width: min(360px, 100%);
  gap: 3px;
}

.map-selection-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.map-pin {
  position: absolute;
  display: grid;
  width: 172px;
  min-height: 84px;
  padding: 10px;
  border: 1px solid rgba(25, 24, 20, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.95);
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
}

.map-pin strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.map-pin span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.map-dot {
  position: absolute;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 3px solid var(--paper);
  border-radius: 999px;
  color: #fff;
  background: var(--brick);
  box-shadow: 0 10px 20px rgba(50, 41, 28, 0.25);
  font-size: 12px;
  font-weight: 850;
  transform: translate(-50%, -50%);
}

.business-shell {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
  align-items: start;
}

.business-card {
  padding: 16px;
}

.business-status-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(47, 111, 63, 0.22);
  border-radius: var(--radius);
  background: rgba(241, 247, 239, 0.86);
}

.business-status-card strong {
  font-size: 28px;
  line-height: 1;
}

.business-status-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.business-status-card.is-paused {
  border-color: rgba(154, 106, 0, 0.28);
  background: rgba(255, 245, 221, 0.9);
}

.business-status-card.is-danger {
  border-color: rgba(195, 72, 50, 0.32);
  background: rgba(255, 236, 231, 0.9);
}

.quick-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

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

.form-field {
  display: grid;
  gap: 6px;
}

.form-field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.field-with-action {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
}

.field-with-action .icon-button {
  width: 44px;
  min-height: 44px;
}

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

.offer-time-mode label {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.offer-time-mode label.active {
  border-color: var(--sage-dark);
  background: #f1f7ef;
  box-shadow: 0 0 0 3px rgba(95, 123, 99, 0.12);
}

.offer-time-mode input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.offer-time-mode strong {
  font-size: 16px;
}

.offer-time-mode span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.offer-time-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.55fr);
  gap: 10px;
}

.schedule-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.38);
}

.weekday-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.weekday-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-weight: 780;
  cursor: pointer;
}

.weekday-chip.active {
  color: #fff;
  border-color: var(--sage-dark);
  background: var(--sage-dark);
}

.weekday-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.photo-manager {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.photo-control-card {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.45);
}

.photo-control-thumb {
  min-height: 112px;
  border-radius: 8px;
  background: var(--line) center / cover;
}

.photo-control-body {
  display: grid;
  min-width: 0;
  gap: 10px;
}

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

.template-row,
.active-row {
  display: grid;
  gap: 10px;
}

.template-card,
.active-offer {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.active-offer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.45);
}

.active-offer-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.active-offer-top h3 {
  overflow-wrap: anywhere;
  font-size: 17px;
}

.status {
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

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

.metric-card {
  padding: 13px;
}

.metric-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 24px;
  letter-spacing: 0;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.place-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  align-items: start;
  justify-items: center;
  overflow-y: auto;
  padding: 22px 14px;
  background: rgba(25, 24, 20, 0.5);
}

.place-detail {
  position: relative;
  display: grid;
  width: min(860px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
}

.place-detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  padding: 0;
  background: rgba(255, 250, 240, 0.92);
  line-height: 1;
}

.place-detail-hero {
  display: grid;
  min-height: 260px;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
  padding: 10px;
  background: rgba(25, 24, 20, 0.05);
}

.place-detail-photo {
  min-height: 82px;
  border-radius: 8px;
  background: var(--line) center / cover;
}

.place-detail-photo.primary {
  grid-row: 1 / 4;
}

.place-detail-body {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.place-detail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.place-detail-head h2 {
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
}

.place-detail-head p,
.place-detail-description,
.detail-offer-card span,
.place-detail-section p {
  color: var(--muted);
  line-height: 1.45;
}

.detail-offer-card,
.place-detail-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.74);
}

.detail-offer-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 19px;
}

.place-detail-section h3 {
  font-size: 18px;
}

.detail-offer-list,
.menu-summary-list {
  display: grid;
  gap: 8px;
}

.detail-offer-row,
.menu-summary-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  text-align: left;
}

.detail-offer-row {
  cursor: pointer;
}

.detail-offer-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.place-detail-section.location {
  background: linear-gradient(135deg, rgba(95, 123, 99, 0.1), rgba(207, 157, 45, 0.08)), var(--surface);
}

.bars {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 88px 1fr 34px;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(25, 24, 20, 0.09);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.claim-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(25, 24, 20, 0.48);
}

.claim-screen {
  width: min(460px, 100%);
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--claim-accent, #3f6b4a), #111 35%), #1e261f);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.32);
}

.review-screen {
  display: grid;
  gap: 14px;
  width: min(520px, 100%);
  padding: 18px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.24);
}

.review-head {
  display: grid;
  gap: 8px;
}

.review-head h2 {
  overflow-wrap: anywhere;
  font-size: 24px;
}

.review-head p,
.review-note {
  color: var(--muted);
  line-height: 1.45;
}

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

.review-grid div {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
}

.review-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.review-grid strong {
  overflow-wrap: anywhere;
  font-size: 18px;
}

.review-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 10px;
}

.claim-visual {
  position: relative;
  display: grid;
  min-height: 214px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, color-mix(in srgb, var(--claim-accent, #3f6b4a), transparent 34%) 0, transparent 42%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.55)),
    var(--claim-image) center / cover;
}

.claim-visual::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  height: 92px;
  background: linear-gradient(
    180deg,
    transparent,
    color-mix(in srgb, var(--claim-accent, #3f6b4a), #10130f 50%) 42%,
    color-mix(in srgb, var(--claim-accent, #3f6b4a), #10130f 58%)
  );
  content: "";
  pointer-events: none;
}

.claim-symbols {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.claim-symbols span {
  position: absolute;
  left: calc(14% + var(--i) * 17%);
  top: calc(16% + (var(--i) % 2) * 48%);
  color: rgba(255, 255, 255, 0.86);
  font-size: 24px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  animation: float-symbol 3.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.38s);
}

.pulse-ring {
  position: absolute;
  z-index: 1;
  width: 170px;
  height: 170px;
  border: 2px solid color-mix(in srgb, var(--claim-accent, #3f6b4a), #fff 62%);
  border-radius: 999px;
  box-shadow: 0 0 0 18px color-mix(in srgb, var(--claim-accent, #3f6b4a), transparent 78%);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.34;
    transform: scale(0.84);
  }
  70% {
    opacity: 0.84;
    transform: scale(1.12);
  }
  100% {
    opacity: 0.34;
    transform: scale(0.84);
  }
}

@keyframes float-symbol {
  0%,
  100% {
    opacity: 0.34;
    transform: translateY(8px) rotate(-6deg) scale(0.94);
  }
  50% {
    opacity: 0.9;
    transform: translateY(-10px) rotate(7deg) scale(1.08);
  }
}

.timer {
  position: relative;
  z-index: 1;
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  border: 8px solid color-mix(in srgb, var(--claim-accent, #3f6b4a), #fff 44%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--claim-accent, #3f6b4a), rgba(25, 24, 20, 0.78) 72%);
  font-size: 24px;
  font-weight: 850;
  line-height: 1.08;
  text-align: center;
  backdrop-filter: blur(8px);
}

.claim-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.claim-place {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.claim-place-photo {
  position: relative;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12) center / cover;
}

.claim-place-photo::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 20px;
  background: color-mix(in srgb, var(--claim-accent, #3f6b4a), #10130f 56%);
  content: "";
}

.claim-place div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.claim-place strong,
.claim-place small,
.claim-details strong,
.claim-live-row strong {
  overflow-wrap: anywhere;
}

.claim-place strong {
  font-size: 18px;
}

.claim-place small {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 720;
  line-height: 1.35;
}

.claim-body p {
  color: rgba(255, 255, 255, 0.72);
}

.claim-offer-summary {
  display: grid;
  gap: 4px;
}

.claim-offer-summary h2 {
  overflow-wrap: anywhere;
  font-size: 24px;
  line-height: 1.14;
}

.claim-offer-summary h2 span {
  color: color-mix(in srgb, var(--claim-accent, #3f6b4a), #fff 66%);
}

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

.claim-details div,
.claim-live-row {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.claim-details span,
.claim-live-row span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.claim-details strong,
.claim-live-row strong {
  color: #fff;
  font-size: 15px;
}

.claim-live-row {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
}

.claim-code {
  display: grid;
  min-height: 86px;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-size: clamp(34px, 8vw, 46px);
  font-weight: 900;
  letter-spacing: 0.06em;
}

.claim-description {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.45;
}

.claim-validity {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.35;
}

.claim-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 10px;
}

.claim-actions .button {
  width: 100%;
}

@media (max-width: 420px) {
  .customer-results-head {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .customer-results-head .view-switch {
    width: 100%;
    max-width: none;
  }

  .customer-results-head .view-switch button {
    flex: 1 1 0;
  }

  .claim-details,
  .claim-live-row {
    grid-template-columns: 1fr;
  }

  .claim-place {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .claim-place-photo {
    width: 56px;
    height: 56px;
  }

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

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

  .claim-actions {
    grid-template-columns: 1fr;
  }
}

.empty-state {
  padding: 36px 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.empty-state.compact {
  padding: 16px 12px;
  font-size: 14px;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .hero,
  .layout,
  .business-shell,
  .admin-layout,
  .auth-page {
    grid-template-columns: 1fr;
  }

  .admin-summary,
  .admin-business-grid,
  .admin-period-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .offer-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  }

  .place-detail-hero {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .place-detail-photo.primary {
    min-height: 240px;
    grid-column: 1 / 3;
    grid-row: auto;
  }
}

@media (max-width: 680px) {
  .auth-page {
    width: 100%;
    min-height: auto;
    gap: 24px;
    padding: 28px 16px 40px;
  }

  .auth-card,
  .settings-panel {
    width: 100%;
    min-width: 0;
  }

  .auth-logo-large {
    width: 150px;
    height: 150px;
    border-radius: 18px;
  }

  .topbar {
    align-items: center;
    flex-direction: row;
  }

  .tabs {
    width: 100%;
  }

  .tabs button {
    flex: 1 1 0;
    padding: 0 8px;
  }

  .hero {
    min-height: auto;
  }

  .page,
  .hero-copy,
  .hero-photo {
    max-width: 100%;
  }

  h1,
  .lede {
    max-width: 320px;
  }

  h1 {
    font-size: 32px;
    line-height: 1.08;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

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

  .hero-copy,
  .hero-photo {
    min-height: 260px;
  }

  .hero-photo::after {
    font-size: 14px;
  }

  .toolbar,
  .quick-form,
  .admin-search-row {
    grid-template-columns: 1fr;
  }

  .location-search {
    grid-template-columns: 1fr;
  }

  .search-surface {
    grid-template-columns: minmax(0, 1fr) 42px auto;
  }

  .search-icon-button.locate {
    width: auto;
    min-width: 158px;
    padding: 0 12px;
  }

  .search-icon-button .locate-label {
    display: grid;
  }

  .filter-sheet {
    grid-template-columns: 1fr;
  }

  .customer-results-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .schedule-panel {
    grid-template-columns: 1fr;
  }

  .offer-time-mode,
  .offer-time-panel {
    grid-template-columns: 1fr;
  }

  .offer-card {
    min-height: 0;
  }

  .offer-media {
    min-height: 150px;
  }

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

  .offer-actions .button,
  .offer-actions .code {
    width: 100%;
  }

  .place-detail-backdrop {
    padding: 10px;
  }

  .place-detail-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .place-detail-photo,
  .place-detail-photo.primary {
    min-height: 160px;
    grid-column: auto;
  }

  .place-detail-head,
  .detail-offer-row,
  .menu-summary-list div {
    align-items: stretch;
    flex-direction: column;
  }

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

  .admin-summary,
  .admin-business-grid,
  .admin-period-grid,
  .admin-business-card {
    grid-template-columns: 1fr;
  }

  .admin-business-photo {
    min-height: 140px;
  }

  .photo-control-card {
    grid-template-columns: 1fr;
  }

  .photo-control-thumb {
    min-height: 180px;
  }

  .review-grid,
  .review-actions,
  .settings-role-grid {
    grid-template-columns: 1fr;
  }

  .map-pin {
    width: 138px;
  }
}

@media (max-width: 460px) {
  .search-surface {
    grid-template-columns: minmax(0, 1fr) 42px 42px;
  }

  .search-icon-button.locate {
    width: 42px;
    min-width: 42px;
    padding: 0;
  }

  .search-icon-button .locate-label {
    display: none;
  }
}
