:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff5ff;
  --blue-ink: #1e40af;
  --text: #172033;
  --text-strong: #111827;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --border: #d7dde8;
  --soft-border: #edf0f4;
  --card: #ffffff;
  --danger: #dc3d4d;
  --danger-soft: #fff0f2;
  --success: #11966d;
  --success-soft: #eafaf4;
  --warning: #b06a18;
  --warning-soft: #fff6e8;
  --sidebar-width: 256px;
  --topbar-height: 56px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 16px 38px rgba(36, 62, 111, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 1080px;
  min-height: 100%;
  font-family: "HarmonyOS Sans", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #eff4ff;
}

body {
  min-width: 1080px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(78% 66% at 96% 4%, rgba(212, 229, 255, 0.76) 0%, rgba(230, 239, 255, 0.26) 50%, transparent 78%),
    radial-gradient(86% 78% at 10% 94%, rgba(239, 231, 255, 0.68) 0%, rgba(239, 236, 255, 0.28) 54%, transparent 82%),
    linear-gradient(125deg, #f7faff 0%, #edf5ff 48%, #eff0ff 100%);
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

.topbar {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  display: flex;
  align-items: stretch;
  height: var(--topbar-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.04);
  background: rgba(239, 246, 255, 0.32);
  backdrop-filter: blur(7px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: var(--sidebar-width);
  padding-left: 20px;
  color: var(--text-strong);
}

.brand-mark {
  width: 24px;
  height: 32px;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.top-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: var(--topbar-height);
  padding: 0 21px;
  border-bottom: 2px solid var(--primary);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  padding-right: 18px;
}

.channel-button,
.profile-button,
.side-section,
.page-button,
.clear-button,
.icon-button,
.modal-close,
.text-button {
  border: 0;
  background: transparent;
}

.channel-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-strong);
  font-size: 13px;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.channel-button:hover {
  border-color: #b4c1d6;
  background: #ffffff;
}

.top-divider {
  width: 1px;
  height: 28px;
  background: rgba(148, 163, 184, 0.25);
}

.profile-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  background: #050505;
  color: #ffffff;
}

.profile-icon {
  width: 21px;
  height: 21px;
}

.sidebar {
  position: fixed;
  z-index: 5;
  top: var(--topbar-height);
  bottom: 0;
  left: 0;
  width: var(--sidebar-width);
  padding-top: 16px;
  color: #1e293b;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  margin: 0 22px 4px 24px;
  padding: 0;
  color: var(--primary);
  font-size: 14px;
  text-align: left;
}

.side-section:not(.marketing-section) {
  color: #1e293b;
}

.side-section.marketing-section {
  margin-top: 10px;
}

.side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin: 0 12px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #1e293b;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.side-item:hover {
  background: rgba(255, 255, 255, 0.48);
}

.side-item.active {
  position: relative;
  border-color: #ccd5e3;
  background: rgba(255, 255, 255, 0.96);
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.side-item.active::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: -1px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--primary);
  content: "";
}

.nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.42;
}

.side-item.active .nav-dot {
  opacity: 1;
}

.sidebar-footer {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  color: #94a3b8;
  font-size: 12px;
}

.main-content {
  min-height: 100vh;
  padding: calc(var(--topbar-height) + 20px) 40px 32px calc(var(--sidebar-width) + 40px);
}

.page-card {
  max-width: 1640px;
  min-height: 560px;
  margin: 0 auto;
  padding: 18px 16px 16px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.018);
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  margin-bottom: 17px;
}

.heading-copy h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #1f2937;
  font-size: 16px;
  font-weight: 650;
}

.heading-copy > p {
  margin: 7px 0 0 30px;
  color: #7a879b;
  font-size: 12px;
}

.heading-caption {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 4px;
  background: #f4f7fb;
  color: #77859a;
  font-size: 11px;
  font-weight: 500;
}

.heading-icon-box {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.heading-icon-box .icon {
  width: 17px;
  height: 17px;
}

.activity-icon-box {
  background: #eaf1ff;
  color: var(--primary);
}

.hotel-icon-box {
  background: #fff1e7;
  color: #d87935;
}

.card-actions,
.hotel-panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 13px;
  border-radius: 5px;
  font-size: 13px;
  white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, opacity 140ms ease, transform 140ms ease;
}

.button:active:not(:disabled) {
  transform: translateY(1px);
}

.button-primary {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #ffffff;
}

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

.button-outline {
  border: 1px solid #c8d2e1;
  background: #ffffff;
  color: var(--primary);
}

.button-outline:hover {
  border-color: #91a4c3;
  background: #f8fbff;
}

.button-danger {
  border: 1px solid var(--danger);
  background: var(--danger);
  color: #ffffff;
}

.button-danger:hover {
  border-color: #bb2b3c;
  background: #bb2b3c;
}

.button-small {
  height: 31px;
  padding: 0 10px;
  font-size: 12px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.metric-card {
  position: relative;
  min-height: 76px;
  padding: 13px 14px 11px;
  overflow: hidden;
  border: 1px solid #e5eaf2;
  border-radius: 7px;
  background: linear-gradient(135deg, #ffffff 0%, #fbfcfe 100%);
}

.metric-card::after {
  position: absolute;
  right: -15px;
  bottom: -21px;
  width: 75px;
  height: 75px;
  border: 1px solid rgba(148, 163, 184, 0.11);
  border-radius: 50%;
  content: "";
}

.metric-card-blue {
  border-color: #d8e4ff;
  background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
}

.metric-card > span {
  display: block;
  color: #64748b;
  font-size: 12px;
}

.metric-card strong {
  display: inline-block;
  margin-top: 5px;
  color: #182337;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.metric-card em {
  display: inline-block;
  margin-left: 6px;
  color: #9aa7b9;
  font-size: 10px;
  font-style: normal;
  vertical-align: 2px;
}

.metric-card em.metric-positive {
  color: var(--success);
}

.filter-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 14px 0 13px;
  border-top: 1px solid var(--soft-border);
  border-bottom: 1px solid var(--soft-border);
}

.filter-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #475569;
  font-size: 13px;
  white-space: nowrap;
}

.filter-label {
  flex: 0 0 auto;
}

.select-wrap,
.search-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
  border: 1px solid #d6dce6;
  border-radius: 4px;
  background: #ffffff;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.select-wrap:focus-within,
.search-wrap:focus-within,
.field-group input:focus,
.tag-editor:focus-within {
  border-color: #8eace8;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.compact-select {
  width: 142px;
}

.select-wrap select {
  width: 100%;
  height: 100%;
  padding: 0 32px 0 11px;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: #334155;
  font-size: 13px;
}

.select-arrow {
  position: absolute;
  right: 10px;
  pointer-events: none;
  color: #111827;
}

.search-group {
  flex: 1 1 310px;
}

.activity-search-wrap {
  width: min(390px, 100%);
}

.search-icon {
  margin-left: 11px;
  color: #111827;
}

.search-wrap input {
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0 30px 0 8px;
  border: 0;
  outline: 0;
  color: #1f2937;
  font-size: 13px;
}

.search-wrap input::placeholder,
.field-group input::placeholder,
.tag-editor input::placeholder {
  color: #9aa3af;
}

.clear-button {
  position: absolute;
  right: 6px;
  display: none;
  width: 22px;
  height: 22px;
  padding: 0;
  color: #64748b;
  font-size: 20px;
  line-height: 18px;
}

.clear-button.visible {
  display: block;
}

.filter-submit,
.filter-reset {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 14px;
}

.table-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 47px;
  color: #475569;
  font-size: 12px;
}

.table-meta-row strong {
  color: #1f2937;
  font-weight: 650;
}

.table-sort-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8190a4;
  font-size: 11px;
}

.table-sort-hint .icon {
  width: 14px;
  height: 14px;
  color: #9aa8ba;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 1180px;
  border-spacing: 0;
  border-collapse: separate;
  color: #0f172a;
  font-size: 13px;
  table-layout: fixed;
}

.activity-col-preview { width: 16%; }
.activity-col-info { width: 23%; }
.activity-col-online { width: 11%; }
.activity-col-visibility { width: 17%; }
.activity-col-start { width: 12%; }
.activity-col-end { width: 12%; }
.activity-col-action { width: 9%; }

.hotel-table {
  min-width: 760px;
}

.hotel-col-sort { width: 10%; }
.hotel-col-image { width: 14%; }
.hotel-col-info { width: 29%; }
.hotel-col-rating { width: 17%; }
.hotel-col-location { width: 19%; }
.hotel-col-action { width: 11%; }

.data-table thead th {
  height: 46px;
  padding: 0 14px;
  background: #f0f2f6;
  color: #111827;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
}

.data-table thead th:first-child {
  border-radius: 4px 0 0 4px;
}

.data-table thead th:last-child {
  border-radius: 0 4px 4px 0;
}

.data-table tbody td {
  min-height: 76px;
  padding: 10px 14px;
  border-bottom: 1px solid #edf0f4;
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background-color 140ms ease;
}

.data-table tbody tr:hover {
  background: #fbfdff;
}

.activity-thumb {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 108px;
  height: 50px;
  overflow: hidden;
  padding: 7px 9px;
  border-radius: 5px;
  isolation: isolate;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.activity-preview-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.activity-drag-handle {
  display: grid;
  flex: 0 0 14px;
  place-items: center;
  color: #a7b3c2;
  cursor: grab;
  transition: color 140ms ease;
}

.activity-drag-handle:hover {
  color: #6484ba;
}

.activity-drag-handle .icon {
  width: 14px;
  height: 14px;
}

.activity-table tbody tr[draggable="true"] {
  cursor: grab;
}

.activity-table tbody tr[draggable="true"]:active {
  cursor: grabbing;
}

.activity-table tbody tr.dragging {
  opacity: 0.45;
}

.activity-table tbody tr.drag-over {
  box-shadow: inset 0 2px 0 var(--primary);
}

.activity-thumb::before,
.activity-thumb::after,
.hotel-image::before,
.hotel-image::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.activity-thumb::before {
  top: -24px;
  right: -12px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.activity-thumb::after {
  right: -5px;
  bottom: -28px;
  width: 110px;
  height: 52px;
  border-radius: 50% 50% 0 0;
  background: rgba(16, 73, 157, 0.23);
  transform: rotate(-7deg);
}

.art-sea {
  background: linear-gradient(130deg, #1e73bd 0%, #3eb8c0 57%, #ffc77c 100%);
}

.art-city {
  background: linear-gradient(130deg, #5e4ab2 0%, #b86eae 55%, #f4ae80 100%);
}

.art-members {
  background: linear-gradient(130deg, #10294a 0%, #246393 58%, #5fd0c4 100%);
}

.art-autumn {
  background: linear-gradient(130deg, #a64831 0%, #d98445 55%, #f6c27d 100%);
}

.art-winter {
  background: linear-gradient(130deg, #4e668e 0%, #7d9fbe 55%, #d9edf4 100%);
}

.art-custom {
  background: linear-gradient(130deg, #7657b9 0%, #bb81d6 52%, #f1b3aa 100%);
}

.thumb-kicker,
.thumb-title {
  position: relative;
  z-index: 1;
  display: block;
  text-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
}

.thumb-kicker {
  position: absolute;
  top: 7px;
  left: 9px;
  opacity: 0.78;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.thumb-title {
  max-width: 78px;
  overflow: hidden;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-info {
  min-width: 0;
}

.activity-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #1f2937;
  font-weight: 650;
}

.activity-name span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sample-mark {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 3px;
  background: #f0f4fb;
  color: #8b9ab0;
  font-size: 9px;
  font-weight: 500;
}

.url-line {
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  margin-top: 7px;
  color: #7d8ba0;
  font-size: 11px;
}

.url-line .icon {
  width: 13px;
  height: 13px;
  color: #97a8bf;
}

.url-line span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 38px;
  height: 22px;
  padding: 2px;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background-color 150ms ease;
}

.switch.is-on {
  background: var(--primary);
}

.switch-thumb {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.16);
  transform: translateX(0);
  transition: transform 150ms ease;
}

.switch.is-on .switch-thumb {
  transform: translateX(16px);
}

.switch-label {
  display: inline-block;
  margin-left: 7px;
  color: #64748b;
  font-size: 11px;
  vertical-align: 5px;
}

.switch-label.is-on {
  color: var(--primary);
}

.visibility-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.range-badge,
.status-badge,
.list-count {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.range-badge.global {
  background: #edf3ff;
  color: #396bd1;
}

.range-badge.global-with-blacklist {
  background: #eef7f0;
  color: #39825c;
}

.range-badge.targeted {
  background: #fff5e8;
  color: #af6b1b;
}

.range-note {
  color: #9aa7b9;
  font-size: 10px;
}

.status-badge.status-showing {
  background: var(--success-soft);
  color: var(--success);
}

.status-badge.status-targeted {
  background: #fff5e8;
  color: #b16a1b;
}

.status-badge.status-hidden {
  background: #f1f3f6;
  color: #778397;
}

.status-badge.status-upcoming {
  background: #edf3ff;
  color: #4f73b5;
}

.status-badge.status-expired {
  background: #fff0f2;
  color: #c85260;
}

.time-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #53627a;
  font-size: 11px;
  line-height: 1.35;
}

.time-cell span:first-child {
  color: #8b98ab;
}

.list-counts {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 5px;
}

.list-count {
  min-height: 22px;
  background: #f5f7fa;
  color: #6e7c90;
  font-size: 10px;
  font-weight: 500;
}

.list-count.white {
  border: 1px solid #e3eaf4;
  background: #f7faff;
  color: #5777ad;
}

.list-count.black {
  border: 1px solid #f0dddd;
  background: #fff8f8;
  color: #a9757d;
}

.action-cell {
  display: flex;
  align-items: center;
  gap: 3px;
}

.text-button {
  padding: 4px;
  color: var(--primary);
  font-size: 12px;
  white-space: nowrap;
}

.text-button:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.text-button.danger-text {
  color: #c75361;
}

.text-button.danger-text:hover {
  color: #a93141;
}

.empty-cell {
  height: 230px;
  padding: 0 !important;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 230px;
  color: #64748b;
  font-size: 13px;
}

.empty-state strong {
  color: #334155;
  font-size: 14px;
}

.empty-illustration,
.empty-glyph {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid #dce7f7;
  border-radius: 50%;
  background: #f5f8ff;
  color: #82a2dc;
}

.empty-illustration::before,
.empty-illustration::after {
  display: block;
  width: 20px;
  height: 3px;
  border-radius: 4px;
  background: currentColor;
  content: "";
  opacity: 0.55;
}

.empty-illustration::after {
  width: 13px;
  margin-top: 5px;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  height: 48px;
  min-height: 48px;
  margin-top: 9px;
  color: #475569;
  font-size: 12px;
}

.total-count {
  margin-right: 2px;
  white-space: nowrap;
}

.total-count strong {
  font-weight: 400;
}

.pagination {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.page-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 4px;
  color: #94a3b8;
  font-size: 13px;
}

.page-button.current {
  background: #f4f5f7;
  color: #94a3b8;
}

.page-size-select,
.jump-input {
  height: 32px;
  border: 1px solid #dfe4eb;
  border-radius: 4px;
  background: #f8fafc;
  color: #94a3b8;
}

.page-size-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  white-space: nowrap;
}

.jump-label {
  color: #334155;
  white-space: nowrap;
}

.jump-input {
  width: 52px;
}

.channel-menu {
  position: fixed;
  z-index: 30;
  top: 48px;
  right: 64px;
  width: 160px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.menu-title {
  padding: 4px 8px 6px;
  color: #9ca3af;
  font-size: 12px;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #334155;
  font-size: 13px;
  text-align: left;
}

.menu-item:hover,
.menu-item.selected {
  background: #f1f5f9;
}

.menu-item.selected span {
  color: var(--primary);
}

/* Hotel management */

.hotel-heading {
  margin-bottom: 14px;
}

.module-config {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(500px, 1fr);
  column-gap: 26px;
  padding: 16px 17px 14px;
  border: 1px solid #e1e8f3;
  border-radius: 8px;
  background: linear-gradient(110deg, #f8fbff 0%, #ffffff 64%);
}

.module-config-copy {
  padding-top: 1px;
}

.section-kicker,
.subpanel-eyebrow,
.modal-eyebrow,
.lookup-kicker {
  color: #8290a4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-config-copy h3 {
  margin: 5px 0 5px;
  color: #243149;
  font-size: 14px;
  font-weight: 700;
}

.module-config-copy p {
  max-width: 205px;
  margin: 0;
  color: #8090a6;
  font-size: 11px;
  line-height: 1.6;
}

.module-config-fields {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  color: #475569;
  font-size: 12px;
}

.field-group > label,
.field-group > span:first-child,
.field-group > span:not(.field-error):first-child {
  color: #4b5b70;
  font-size: 12px;
  font-weight: 600;
}

.field-group input {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d6dce6;
  border-radius: 4px;
  outline: 0;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field-group small {
  color: #9aa7b9;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.45;
}

.compact-field {
  gap: 6px;
}

.module-online-control {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding-bottom: 1px;
  color: #4b5b70;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.module-online-control em {
  color: var(--success);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}

.module-config-lists {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(200px, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 14px;
}

.module-list-field {
  min-width: 0;
}

.field-label {
  display: block;
  margin-bottom: 7px;
  color: #4b5b70;
  font-size: 12px;
  font-weight: 600;
}

.tag-editor {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 36px;
  padding: 5px 7px;
  border: 1px solid #d6dce6;
  border-radius: 4px;
  background: #ffffff;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.tag-editor input {
  flex: 1 1 100px;
  min-width: 90px;
  height: 23px;
  padding: 0 3px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #334155;
  font-size: 11px;
}

.tag-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 22px;
  padding: 0 5px 0 7px;
  border: 1px solid #dce6f5;
  border-radius: 4px;
  background: #f5f8ff;
  color: #5573a8;
  font-size: 10px;
  white-space: nowrap;
}

.tag.black-tag {
  border-color: #f0dede;
  background: #fff8f8;
  color: #a6747c;
}

.tag-remove {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: currentColor;
  font-size: 13px;
  line-height: 1;
}

.tag-remove:hover {
  background: rgba(100, 116, 139, 0.12);
}

.module-config-lists .tag-editor {
  min-height: 36px;
}

.save-config-button {
  height: 36px;
  margin-bottom: 0;
}

.inline-error,
.field-error {
  display: block;
  min-height: 15px;
  margin: 0;
  color: var(--danger);
  font-size: 11px;
  line-height: 1.4;
}

.module-config > .inline-error {
  grid-column: 2;
  margin-top: 4px;
}

.hotel-workspace {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  min-height: 510px;
  margin-top: 17px;
  border: 1px solid #e2e8f1;
  border-radius: 8px;
  overflow: hidden;
}

.category-panel {
  padding: 16px 12px 14px;
  border-right: 1px solid #e3e8f0;
  background: #fbfcfe;
}

.subpanel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0 6px 13px;
  border-bottom: 1px solid #edf0f4;
}

.subpanel-heading h3,
.hotel-panel-heading h3 {
  margin: 0;
  color: #27344a;
  font-size: 14px;
  font-weight: 700;
}

.panel-caption {
  display: block;
  margin-top: 5px;
  color: #94a0b2;
  font-size: 10px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #d7e0ee;
  border-radius: 5px;
  background: #ffffff;
  color: var(--primary);
  transition: background-color 140ms ease, border-color 140ms ease;
}

.icon-button:hover {
  border-color: #a9bde2;
  background: #f5f8ff;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.category-item {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  min-height: 71px;
  padding: 9px 8px 9px 4px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: grab;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.category-item:active {
  cursor: grabbing;
}

.category-item:hover {
  background: #f4f7fb;
}

.category-item.selected {
  border-color: #cfdcf1;
  background: #f1f6ff;
}

.category-item.dragging,
.hotel-card.dragging,
.hotel-table-row.dragging {
  opacity: 0.45;
  transform: scale(0.99);
}

.drag-handle {
  display: grid;
  place-items: center;
  color: #a7b3c2;
}

.drag-handle .icon {
  width: 15px;
  height: 15px;
}

.category-copy {
  min-width: 0;
}

.category-name {
  display: block;
  overflow: hidden;
  color: #334155;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  color: #8c99ab;
  font-size: 10px;
}

.category-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #8e9caf;
}

.category-status::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b9c3d0;
  content: "";
}

.category-status.online {
  color: var(--success);
}

.category-status.online::before {
  background: var(--success);
}

.category-default {
  padding: 2px 4px;
  border-radius: 3px;
  background: #eaf1ff;
  color: #5d7dbd;
  font-size: 9px;
}

.category-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  transition: opacity 140ms ease;
}

.category-item:hover .category-actions,
.category-item.selected .category-actions {
  opacity: 1;
}

.mini-icon-button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #8190a4;
}

.mini-icon-button:hover {
  background: #ffffff;
  color: var(--primary);
}

.mini-icon-button.danger:hover {
  color: var(--danger);
}

.category-item .category-actions .icon {
  width: 14px;
  height: 14px;
}

.hotel-panel {
  min-width: 0;
  padding: 18px 19px 18px;
  background: #ffffff;
}

.hotel-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.hotel-panel-heading h3 {
  margin-top: 5px;
  font-size: 17px;
}

.hotel-panel-heading p {
  margin: 6px 0 0;
  color: #8a97aa;
  font-size: 11px;
}

.hotel-panel-actions {
  align-items: center;
}

.category-online-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #718096;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.category-online-control .switch:disabled {
  opacity: 0.42;
}

.hotel-rule-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  margin: 16px 0 14px;
  padding: 0 10px;
  border: 1px solid #e2eaff;
  border-radius: 5px;
  background: #f6f9ff;
  color: #6d7f9d;
  font-size: 11px;
}

.hotel-rule-strip > .icon {
  color: #7c9bdb;
}

.rule-tag {
  margin-left: auto;
  padding: 4px 7px;
  border-radius: 4px;
  background: #ffffff;
  color: #7a8cae;
  font-size: 10px;
  white-space: nowrap;
}

.hotel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.hotel-card {
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 11px;
  min-height: 132px;
  padding: 9px;
  border: 1px solid #e2e8f1;
  border-radius: 7px;
  background: #ffffff;
  cursor: grab;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.hotel-card:hover {
  border-color: #c7d5ea;
  box-shadow: 0 5px 16px rgba(46, 76, 128, 0.08);
}

.hotel-card:active {
  cursor: grabbing;
}

.hotel-image {
  position: relative;
  width: 78px;
  height: 108px;
  overflow: hidden;
  border-radius: 5px;
  isolation: isolate;
}

.hotel-image::before {
  top: -20px;
  right: -17px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.hotel-image::after {
  right: -16px;
  bottom: -24px;
  width: 105px;
  height: 66px;
  border-radius: 50% 50% 0 0;
  background: rgba(12, 47, 89, 0.24);
  transform: rotate(-6deg);
}

.hotel-art-coast {
  background: linear-gradient(168deg, #75cce4 0%, #2470b0 45%, #1a496d 100%);
}

.hotel-art-city {
  background: linear-gradient(168deg, #c5b4a1 0%, #756b82 46%, #283954 100%);
}

.hotel-art-harbour {
  background: linear-gradient(168deg, #9bd5ce 0%, #3c758c 49%, #2c3f5b 100%);
}

.hotel-art-garden {
  background: linear-gradient(168deg, #bdd9a9 0%, #5c916b 45%, #244f55 100%);
}

.hotel-art-sand {
  background: linear-gradient(168deg, #eac28d 0%, #b86c51 50%, #5b4050 100%);
}

.hotel-art-snow {
  background: linear-gradient(168deg, #e8f3f7 0%, #8fb4ca 44%, #526e97 100%);
}

.hotel-art-urban {
  background: linear-gradient(168deg, #b2b7d4 0%, #6573aa 47%, #2c365e 100%);
}

.hotel-art-lake {
  background: linear-gradient(168deg, #b1d6db 0%, #5a9ba9 49%, #31516f 100%);
}

.hotel-art-retro {
  background: linear-gradient(168deg, #e8b98d 0%, #bd6f6d 49%, #503f67 100%);
}

.hotel-image-caption {
  position: absolute;
  z-index: 1;
  right: 4px;
  bottom: 4px;
  left: 4px;
  padding: 3px 4px;
  border-radius: 3px;
  background: rgba(17, 24, 39, 0.25);
  color: #ffffff;
  font-size: 8px;
  text-align: center;
  letter-spacing: 0.02em;
}

.hotel-card-copy {
  min-width: 0;
  padding-top: 2px;
}

.hotel-card-topline {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.hotel-card-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #27344a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hotel-card-id {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #a0aaba;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hotel-rating-line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
  color: #60708a;
  font-size: 10px;
}

.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #d99837;
}

.star-rating .icon {
  width: 11px;
  height: 11px;
}

.rating-score {
  color: #c17b2b;
  font-weight: 700;
}

.hotel-location {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-top: 8px;
  color: #7e8ca0;
  font-size: 10px;
  line-height: 1.35;
}

.hotel-location .icon {
  width: 12px;
  height: 12px;
  margin-top: 1px;
  color: #9daabd;
}

.hotel-card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
}

.hotel-card-actions .text-button {
  padding: 2px 0;
  font-size: 10px;
}

.hotel-card-drag {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.78);
  color: #8491a5;
}

.hotel-card-drag .icon {
  width: 12px;
  height: 12px;
}

.hotel-table-wrap {
  margin-top: 2px;
}

.hotel-table tbody td {
  height: 74px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.hotel-table-row {
  cursor: grab;
  transition: background-color 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.hotel-table-row:active {
  cursor: grabbing;
}

.hotel-table-row.drag-over {
  box-shadow: inset 0 2px 0 var(--primary);
}

.hotel-sort-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hotel-sort-handle {
  display: grid;
  place-items: center;
  color: #a7b3c2;
  cursor: grab;
}

.hotel-sort-handle:hover {
  color: #6484ba;
}

.hotel-sort-handle .icon {
  width: 14px;
  height: 14px;
}

.hotel-order-number {
  min-width: 14px;
  color: #8190a4;
  font-size: 11px;
  text-align: center;
}

.hotel-table .hotel-table-image {
  width: 56px;
  height: 58px;
}

.hotel-table .hotel-image-caption {
  right: 3px;
  bottom: 3px;
  left: 3px;
  padding: 2px 3px;
  font-size: 7px;
}

.hotel-info-cell {
  min-width: 0;
}

.hotel-table-name {
  overflow: hidden;
  color: #27344a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hotel-table-id {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #a0aaba;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hotel-star-count {
  display: block;
  margin-top: 5px;
  color: #8a97aa;
  font-size: 10px;
}

.hotel-table .hotel-rating-line,
.hotel-table .hotel-location {
  margin-top: 0;
}

.empty-panel-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  gap: 8px;
  padding: 24px 12px;
  color: #8b98ab;
  font-size: 11px;
  text-align: center;
}

.empty-panel-state strong {
  color: #52627a;
  font-size: 13px;
}

.empty-panel-state .empty-glyph {
  width: 46px;
  height: 46px;
  margin-bottom: 3px;
}

.category-panel > .empty-panel-state {
  min-height: 240px;
}

/* Modal */

.modal-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(21, 35, 62, 0.35);
  backdrop-filter: blur(2px);
}

.modal {
  width: min(100%, 540px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid #dce3ee;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow-md);
  animation: modal-in 180ms ease both;
}

.modal-wide {
  width: min(100%, 900px);
}

.modal-small {
  width: min(100%, 430px);
}

.modal-confirm {
  width: min(100%, 410px);
  padding: 28px 28px 22px;
  text-align: center;
}

.modal-rules {
  width: min(100%, 630px);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(7px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 24px 16px;
  border-bottom: 1px solid #edf0f4;
}

.modal-heading h2 {
  margin: 6px 0 0;
  color: #1d2a40;
  font-size: 18px;
  font-weight: 700;
}

.modal-heading p {
  max-width: 660px;
  margin: 7px 0 0;
  color: #8794a7;
  font-size: 11px;
  line-height: 1.5;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 5px;
  color: #8592a5;
}

.modal-close:hover {
  background: #f2f5f9;
  color: #334155;
}

.modal-form {
  padding: 0 24px 21px;
}

.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form-column {
  min-width: 0;
}

.form-section {
  padding: 18px 0 17px;
  border-bottom: 1px solid #edf0f4;
}

.form-section:last-child {
  border-bottom: 0;
}

.form-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.form-section-heading h3 {
  margin: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.form-section-heading > span {
  color: #a0aaba;
  font-size: 10px;
}

.required-mark {
  color: var(--danger);
}

.upload-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-height: 105px;
  padding: 10px;
  border: 1px dashed #bccce5;
  border-radius: 6px;
  background: #fbfdff;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.upload-card.drag-over {
  border-color: var(--primary);
  background: #f1f6ff;
}

.upload-preview {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 82px;
  overflow: hidden;
  padding: 8px;
  border-radius: 5px;
  isolation: isolate;
  color: #ffffff;
}

.upload-preview::before,
.upload-preview::after {
  position: absolute;
  content: "";
}

.upload-preview::before {
  top: -21px;
  right: -9px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
}

.upload-preview::after {
  right: -10px;
  bottom: -29px;
  width: 200px;
  height: 62px;
  border-radius: 50% 50% 0 0;
  background: rgba(14, 49, 100, 0.24);
  transform: rotate(-6deg);
}

.upload-preview-label,
.upload-preview-title {
  position: relative;
  z-index: 1;
}

.upload-preview-label {
  position: absolute;
  top: 7px;
  left: 8px;
  opacity: 0.8;
  font-size: 9px;
}

.upload-preview-title {
  max-width: 135px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.upload-copy strong {
  overflow: hidden;
  max-width: 100%;
  color: #43536b;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-copy > span {
  color: #9aa7b9;
  font-size: 10px;
  line-height: 1.4;
}

.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.switch-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 9px 0;
  border-bottom: 1px solid #f1f3f6;
}

.switch-field:last-of-type {
  border-bottom: 0;
}

.switch-field strong,
.switch-field span {
  display: block;
}

.switch-field strong {
  color: #334155;
  font-size: 12px;
}

.switch-field span {
  margin-top: 4px;
  color: #9aa7b9;
  font-size: 10px;
  line-height: 1.45;
}

.switch-hint,
.modal-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 10px 0 0;
  padding: 8px 9px;
  border-radius: 4px;
  background: #f7f9fc;
  color: #7d8da5;
  font-size: 10px;
  line-height: 1.45;
}

.switch-hint .icon,
.modal-note .icon {
  margin-top: 1px;
  color: #87a0cf;
}

.access-form-section {
  padding-bottom: 0;
}

.access-form-section .field-group + .field-group {
  margin-top: 13px;
}

.tag-editor.disabled {
  border-color: #e6eaf0;
  background: #f7f8fa;
}

.tag-editor.disabled input {
  cursor: not-allowed;
}

.tag.disabled-tag {
  border-color: #e3e7ed;
  background: #f0f2f5;
  color: #a6afbc;
}

.tag.disabled-tag .tag-remove {
  display: none;
}

.modal-note {
  margin-top: 14px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 16px;
}

.modal-confirm .confirm-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--danger-soft);
  color: var(--danger);
}

.modal-confirm h2 {
  margin: 0;
  color: #29364c;
  font-size: 18px;
}

.modal-confirm p {
  margin: 9px 0 0;
  color: #8490a2;
  font-size: 12px;
  line-height: 1.55;
}

.modal-confirm .modal-footer {
  padding-top: 20px;
}

.hotel-query-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding-top: 18px;
}

.hotel-query-button {
  height: 36px;
  margin-bottom: 15px;
}

.query-feedback {
  min-height: 16px;
  margin-top: 3px;
  color: #8090a5;
  font-size: 11px;
}

.query-feedback.loading {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #6685c0;
}

.query-feedback.loading::before {
  width: 12px;
  height: 12px;
  border: 2px solid #d7e4fb;
  border-top-color: var(--primary);
  border-radius: 50%;
  content: "";
  animation: spin 800ms linear infinite;
}

.query-feedback.error {
  color: var(--danger);
}

.query-feedback.success {
  color: var(--success);
}

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

.hotel-details {
  padding-top: 2px;
}

.lookup-summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 78px 78px;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid #e1e8f3;
  border-radius: 6px;
  background: #f8fbff;
}

.lookup-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(145deg, #77b4eb, #3765ba);
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
}

.lookup-summary > div:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.lookup-summary strong {
  overflow: hidden;
  color: #30405a;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lookup-summary > div:nth-child(2) > span:last-child {
  overflow: hidden;
  color: #8694a7;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lookup-readonly {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 12px;
  border-left: 1px solid #e2e9f2;
}

.lookup-readonly span,
.read-only-fields span {
  color: #99a5b6;
  font-size: 10px;
}

.lookup-readonly strong {
  color: #bf7b2c;
  font-size: 13px;
}

.hotel-edit-columns {
  margin-top: 4px;
}

.hotel-edit-columns .form-section {
  min-height: 210px;
}

.read-only-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 13px;
}

.read-only-fields > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid #edf0f4;
  border-radius: 4px;
  background: #fafbfc;
}

.read-only-fields strong {
  color: #53637a;
  font-size: 11px;
}

.image-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.image-choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.image-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.image-choice-visual {
  position: relative;
  display: block;
  height: 132px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 5px;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.image-choice-visual::after {
  position: absolute;
  right: 5px;
  bottom: 5px;
  left: 5px;
  padding: 4px 3px;
  border-radius: 3px;
  background: rgba(17, 24, 39, 0.25);
  color: #ffffff;
  content: "277 × 300";
  font-size: 8px;
  text-align: center;
}

.image-choice input:checked + .image-choice-visual {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.image-choice-label {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: #718096;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-choice input:focus-visible + .image-choice-visual {
  outline: 2px solid rgba(37, 99, 235, 0.4);
  outline-offset: 2px;
}

.image-choice-check {
  position: absolute;
  z-index: 2;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: transparent;
}

.image-choice input:checked ~ .image-choice-check {
  background: var(--primary);
  color: #ffffff;
}

.image-choice-check .icon {
  width: 12px;
  height: 12px;
}

.rule-flow {
  padding: 21px 24px 5px;
}

.rule-flow-item {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 11px;
  border: 1px solid #e5eaf2;
  border-radius: 7px;
  background: #fbfcfe;
}

.rule-flow-item.rule-flow-priority {
  border-color: #f0dddd;
  background: #fffafa;
}

.rule-index {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #edf3ff;
  color: #5b7bc1;
  font-size: 10px;
  font-weight: 700;
}

.rule-flow-priority .rule-index {
  background: #fff0f2;
  color: #c85260;
}

.rule-flow-item strong,
.rule-flow-item span:not(.rule-index):not(.rule-outcome) {
  display: block;
}

.rule-flow-item strong {
  color: #344258;
  font-size: 12px;
}

.rule-flow-item div > span {
  margin-top: 4px;
  color: #8d9aad;
  font-size: 10px;
  line-height: 1.45;
}

.rule-outcome {
  padding: 5px 7px;
  border-radius: 4px;
  background: #f0f4fb;
  color: #7184a8;
  font-size: 10px;
  white-space: nowrap;
}

.rule-outcome.outcome-stop {
  background: var(--danger-soft);
  color: #c85260;
}

.rule-outcome.outcome-show {
  background: var(--success-soft);
  color: var(--success);
}

.rule-connector {
  width: 1px;
  height: 14px;
  margin: 0 0 0 26px;
  border-left: 1px dashed #c5d0df;
}

.rule-preview-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 17px 0 0;
  padding: 10px 11px;
  border-radius: 5px;
  background: #f7f9fc;
  color: #8492a6;
  font-size: 10px;
  line-height: 1.5;
}

.rule-preview-note .icon {
  color: #81a1da;
}

.modal-rules .modal-footer {
  padding: 12px 24px 21px;
}

.toast {
  position: fixed;
  z-index: 80;
  right: 28px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 390px;
  padding: 11px 14px;
  border: 1px solid #dbe5f5;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.97);
  color: #334155;
  font-size: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.toast::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  content: "";
}

.toast.is-success {
  border-color: #ccecdf;
}

.toast.is-success::before {
  background: var(--success);
}

.toast.is-error {
  border-color: #f1d2d6;
}

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

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

@media (max-width: 1400px) {
  .main-content {
    padding-right: 24px;
  }

  .page-card {
    max-width: none;
  }

  .activity-col-preview { width: 14%; }
  .activity-col-info { width: 20%; }
  .activity-col-online { width: 10%; }
  .activity-col-visibility { width: 17%; }
  .activity-col-start { width: 14%; }
  .activity-col-end { width: 14%; }
  .activity-col-action { width: 11%; }

  .module-config {
    grid-template-columns: 190px minmax(460px, 1fr);
  }
}

@media (max-width: 1200px) {
  html,
  body {
    min-width: 960px;
  }

  .main-content {
    padding-right: 18px;
    padding-left: calc(var(--sidebar-width) + 22px);
  }

  .metric-strip {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
  }

  .module-config {
    grid-template-columns: 1fr;
    row-gap: 15px;
  }

  .module-config-copy p {
    max-width: 520px;
  }

  .module-config-fields,
  .module-config-lists {
    grid-column: 1;
  }

  .hotel-workspace {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

@media (max-width: 1060px) {
  .topbar-actions {
    padding-right: 14px;
  }

  .main-content {
    padding-left: calc(var(--sidebar-width) + 16px);
  }

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

  .form-column + .form-column {
    border-top: 1px solid #edf0f4;
  }

  .hotel-workspace {
    grid-template-columns: 1fr;
  }

  .category-panel {
    border-right: 0;
    border-bottom: 1px solid #e3e8f0;
  }

  .category-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
