:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-2: #eef4f0;
  --ink: #17211e;
  --muted: #66736d;
  --line: #d9ded7;
  --primary: #176b5b;
  --primary-2: #0f4f45;
  --accent: #f05a42;
  --blue: #3867d6;
  --gold: #c28a1d;
  --danger: #b42318;
  --shadow: 0 14px 38px rgba(24, 34, 30, 0.1);
  font-family:
    Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(23, 107, 91, 0.06), transparent 260px),
    var(--bg);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

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

h1 {
  font-size: 28px;
  line-height: 1.15;
}

h2 {
  font-size: 22px;
  line-height: 1.18;
}

h3 {
  font-size: 16px;
  line-height: 1.25;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

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

.topbar {
  grid-area: topbar;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 245, 239, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 0;
  color: var(--ink);
  background: transparent;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--primary);
  font-weight: 800;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
}

.topbar-spacer {
  flex: 1;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(23, 33, 30, 0.42);
}

.drawer {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 31;
  width: min(320px, 92vw);
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-right: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateX(-104%);
  transition: transform 0.18s ease;
}

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

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 72px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.drawer-bottom {
  padding: 14px;
  border-top: 1px solid var(--line);
}

.sidebar-nav {
  display: grid;
  gap: 6px;
  padding: 18px 14px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  text-align: left;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

.workspace {
  min-width: 0;
  padding: 26px clamp(16px, 3vw, 38px) 56px;
}

.workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.button,
.icon-button,
.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.button {
  padding: 10px 14px;
  font-weight: 700;
}

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

.button-primary:hover {
  background: var(--primary-2);
}

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

.button-secondary:hover {
  border-color: var(--primary);
}

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

.icon-button:hover,
.icon-button.active {
  color: var(--accent);
  border-color: rgba(240, 90, 66, 0.44);
}

.status-chip {
  min-width: 46px;
  padding: 8px 10px;
  color: var(--primary);
  border-color: rgba(23, 107, 91, 0.24);
  background: #edf8f4;
  font-weight: 800;
}

.city-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #254b46;
  border: 1px solid rgba(23, 107, 91, 0.22);
  background: #edf8f4;
  font-size: 14px;
  font-weight: 700;
}

.city-pill .icon {
  width: 16px;
  height: 16px;
}

.avatar-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  background: var(--primary);
  font-weight: 900;
}

.head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.full {
  width: 100%;
}

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

.filter-surface {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.filter-surface .button-primary {
  align-self: end;
}

.amenity-filter {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
}

.check-pill input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea,
.chat-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ink);
  background: var(--surface);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.chat-form input:focus {
  outline: 2px solid rgba(23, 107, 91, 0.18);
  border-color: var(--primary);
}

.field input[type="range"] {
  padding: 0;
  accent-color: var(--primary);
}

.input-icon {
  position: relative;
}

.input-icon .icon {
  position: absolute;
  left: 11px;
  top: 11px;
  color: var(--muted);
}

.input-icon input {
  padding-left: 40px;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: var(--ink);
  font-weight: 700;
}

.switch-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.catalog-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.quick-posters {
  display: flex;
  gap: 10px;
  overflow: auto;
}

.poster-mini {
  display: grid;
  grid-template-columns: 54px 170px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 10px 4px 4px;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  font-weight: 700;
}

.poster-mini img {
  width: 54px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
}

.venue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(286px, 1fr));
  gap: 18px;
}

.venue-card,
.reward-card,
.poster-card,
.stat-card,
.panel,
.list-row,
.auth-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(24, 34, 30, 0.07);
}

.venue-card {
  overflow: hidden;
  min-width: 0;
}

.venue-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 0;
  background: var(--surface-2);
}

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

.image-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 6px 9px;
  border-radius: 8px;
  color: #fff;
  background: rgba(23, 33, 30, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.venue-card-body {
  display: grid;
  gap: 13px;
  padding: 14px;
}

.card-title-row,
.detail-title-row,
.row-main,
.row-meta,
.row-actions,
.card-actions,
.booking-controls,
.summary-line,
.compact-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-title-row,
.detail-title-row,
.summary-line,
.compact-row {
  justify-content: space-between;
}

.venue-card h2 {
  margin-bottom: 4px;
}

.venue-card p,
.detail-title-row p,
.booking-venue p,
.poster-card p,
.muted {
  color: var(--muted);
}

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

.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 14px;
}

.meta-row .icon {
  color: var(--gold);
}

.tag-row span {
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--primary-2);
  background: #e9f5f0;
  font-size: 13px;
  font-weight: 700;
}

.card-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(290px, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}

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

.detail-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.detail-media .main-photo {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}

.detail-main {
  display: grid;
  gap: 18px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric-strip div {
  display: grid;
  gap: 4px;
  min-height: 76px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metric-strip span {
  font-size: 22px;
  font-weight: 900;
}

.metric-strip small {
  color: var(--muted);
}

.lead {
  color: #32413b;
  line-height: 1.6;
}

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

.panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.slot-preview,
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 8px;
}

.slot-preview span,
.slot-button {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface-2);
  font-weight: 800;
}

.slot-preview span {
  display: grid;
  gap: 2px;
  padding: 6px;
  text-align: center;
}

.slot-preview small,
.slot-button small {
  color: inherit;
  opacity: 0.72;
  font-size: 11px;
}

.slot-busy {
  opacity: 0.52;
  text-decoration: line-through;
}

.slot-button.selected {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

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

.payment-option {
  display: grid;
  gap: 6px;
  min-height: 90px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.payment-option.active {
  border-color: var(--primary);
  background: #f2fbf7;
}

.payment-option input {
  accent-color: var(--primary);
}

.banner {
  padding: 10px 12px;
  border: 1px solid rgba(23, 107, 91, 0.2);
  border-radius: 8px;
  color: var(--primary-2);
  background: #edf8f4;
}

.banner-warning {
  color: #6f4d00;
  border-color: #efd28b;
  background: #fff6d9;
}

.banner button {
  border: 0;
  color: inherit;
  background: transparent;
  font-weight: 900;
}

.map-band {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(56, 103, 214, 0.18) 1px, transparent 1px),
    linear-gradient(0deg, rgba(56, 103, 214, 0.18) 1px, transparent 1px),
    #edf1f5;
  background-size: 34px 34px;
  color: #26364f;
  font-weight: 800;
}

.map-pin {
  position: absolute;
  left: 54%;
  top: 42%;
  width: 20px;
  height: 20px;
  border: 5px solid var(--accent);
  border-radius: 50%;
  background: #fff;
}

.sticky-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

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

.booking-venue {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.booking-venue img {
  width: 150px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}

.booking-picker {
  min-width: 0;
}

.booking-controls {
  align-items: end;
}

.booking-summary {
  position: sticky;
  top: 94px;
}

.summary-total {
  display: flex;
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 28px;
  font-weight: 900;
}

.table-layout {
  display: grid;
  gap: 12px;
}

.list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.list-row.unread {
  border-color: rgba(23, 107, 91, 0.44);
  background: #f4fbf8;
}

.row-main {
  min-width: 0;
  justify-content: flex-start;
}

.row-main p {
  color: var(--muted);
}

.row-icon,
.stat-icon,
.reward-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: var(--primary);
  background: #e9f5f0;
}

.row-meta {
  justify-content: flex-end;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.status.PENDING_PAYMENT,
.status.awaiting_payment,
.status.neutral {
  color: #6f4d00;
  background: #fff0c7;
}

.status.CONFIRMED,
.status.paid {
  color: var(--primary-2);
  background: #dff4ed;
}

.status.CANCELLED,
.status.NO_SHOW,
.status.cancelled {
  color: var(--danger);
  background: #fee8e5;
}

.section-band {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

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

.deal-strip,
.review-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.deal-card,
.review-card {
  display: grid;
  gap: 10px;
  min-height: 180px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(24, 34, 30, 0.07);
}

.deal-card {
  position: relative;
  cursor: pointer;
}

.deal-card h3 {
  font-size: 18px;
}

.deal-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 8px;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
}

.deal-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.deal-prices del {
  color: var(--muted);
}

.sport-cloud {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sport-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
}

.sport-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.review-card p {
  line-height: 1.5;
}

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

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

.stat-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 16px;
}

.stat-card.large {
  min-height: 260px;
}

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

.stat-card strong {
  font-size: 30px;
  line-height: 1.1;
}

.panel-span {
  grid-column: span 2;
}

.compact-row {
  min-height: 42px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.compact-row:last-child {
  border-bottom: 0;
}

.positive {
  color: var(--primary);
}

.negative {
  color: var(--danger);
}

.reward-grid,
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.reward-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.reward-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.reward-card strong {
  font-size: 22px;
}

.poster-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: 180px 1fr;
}

.poster-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.poster-card div {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.chat-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 640px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.chat-list {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 12px;
  border-right: 1px solid var(--line);
  background: #fafafa;
}

.chat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.chat-item.active,
.chat-item:hover {
  border-color: var(--line);
  background: var(--surface);
}

.chat-item strong {
  display: grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
}

.chat-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 16px;
}

.message-list {
  display: grid;
  align-content: end;
  gap: 10px;
  min-height: 0;
  overflow: auto;
}

.message {
  max-width: min(560px, 82%);
  display: grid;
  gap: 6px;
  justify-self: start;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-2);
}

.message.mine {
  justify-self: end;
  color: #fff;
  background: var(--primary);
}

.message span {
  color: inherit;
  opacity: 0.72;
  font-size: 12px;
}

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

.profile-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(280px, 1fr);
  gap: 16px;
}

.profile-summary {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-large {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--primary);
  font-size: 28px;
  font-weight: 900;
}

.token-box {
  overflow-wrap: anywhere;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
}

.subnav {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  overflow: auto;
}

.subnav button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
  white-space: nowrap;
}

.subnav button.active,
.subnav button:hover {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.empty-state,
.error-state {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  min-height: 260px;
  place-items: center;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.62);
}

.centered-panel {
  place-items: center;
  text-align: center;
}

.empty-state .icon {
  width: 44px;
  height: 44px;
}

.error-state strong {
  font-size: 58px;
  color: var(--accent);
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(23, 107, 91, 0.15), transparent 42%),
    linear-gradient(315deg, rgba(240, 90, 66, 0.13), transparent 38%),
    var(--bg);
}

.auth-panel {
  width: min(100%, 440px);
  display: grid;
  gap: 22px;
  padding: 22px;
}

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

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form h1 {
  margin-top: 5px;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.auth-links button {
  border: 0;
  color: var(--primary);
  background: transparent;
  font-weight: 800;
}

.locked-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  color: var(--danger);
  background: #fee8e5;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  background: #17211e;
  box-shadow: var(--shadow);
}

.toast-error {
  background: var(--danger);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(23, 33, 30, 0.5);
}

.modal {
  width: min(460px, 100%);
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

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

.danger-panel {
  border-color: rgba(180, 35, 24, 0.35);
}

.detail-card {
  max-width: 920px;
}

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

.form-grid h3,
.form-grid .field-wide {
  grid-column: 1 / -1;
}

code {
  padding: 3px 6px;
  border-radius: 6px;
  color: var(--primary-2);
  background: #e9f5f0;
}

@media (max-width: 1180px) {
  .filter-surface {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 860px) {
  .drawer {
    width: min(320px, 92vw);
  }

  .topbar {
    padding: 12px 14px;
    gap: 8px;
  }

  .brand-name,
  .city-pill span {
    display: none;
  }

  .workspace {
    padding: 20px 14px 42px;
  }

  .workspace-head {
    align-items: flex-start;
  }

  .filter-surface,
  .detail-layout,
  .booking-layout,
  .split-panels,
  .chat-layout,
  .profile-layout,
  .payment-options,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .booking-summary {
    position: static;
  }

  .list-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .row-meta,
  .row-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

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

  .panel-span {
    grid-column: auto;
  }

  .chat-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 24px;
  }

  .status-chip span {
    display: none;
  }

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

  .catalog-summary {
    display: grid;
  }

  .quick-posters {
    width: 100%;
  }

  .poster-mini {
    grid-template-columns: 48px 150px;
  }

  .booking-venue {
    grid-template-columns: 1fr;
  }

  .booking-venue img {
    width: 100%;
  }

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

  .auth-layout {
    padding: 12px;
  }

  .auth-panel {
    padding: 16px;
  }
}
