:root {
  color-scheme: light;
  --page: #eef3f8;
  --page-2: #f8fbff;
  --ink: #172033;
  --ink-soft: #3d4657;
  --muted: #718093;
  --muted-2: #98a3b3;
  --line: rgba(142, 160, 180, 0.24);
  --line-strong: rgba(110, 128, 150, 0.32);
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-dim: rgba(248, 251, 255, 0.54);
  --accent: #86206b;
  --accent-2: #a33a84;
  --accent-soft: rgba(134, 32, 107, 0.09);
  --accent-line: rgba(134, 32, 107, 0.18);
  --success: #30d158;
  --violet: #86206b;
  --shadow: 0 22px 70px rgba(32, 52, 78, 0.13);
  --shadow-soft: 0 12px 34px rgba(32, 52, 78, 0.09);
  --shadow-hairline: 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 2px rgba(32, 52, 78, 0.04);
  --radius-lg: 26px;
  --radius: 18px;
  --radius-sm: 12px;
  --blur: saturate(180%) blur(24px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(238, 244, 251, 0.72) 42%, rgba(226, 235, 244, 0.78) 100%),
    linear-gradient(90deg, rgba(134, 32, 107, 0.045), rgba(163, 58, 132, 0.035) 46%, rgba(248, 251, 255, 0.08));
  background-attachment: fixed;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.44) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.38), transparent 70%);
}

::selection {
  color: #2f1027;
  background: rgba(134, 32, 107, 0.16);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.32);
}

::-webkit-scrollbar-thumb {
  background: rgba(120, 136, 156, 0.34);
  border: 3px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(134, 32, 107, 0.32);
}

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

button,
input,
select,
textarea,
.panel,
.editor,
.card,
.asset-panel,
.asset-card,
.logo-preview,
.template-preview,
.pending-files,
.toast {
  -webkit-font-smoothing: antialiased;
}

.sidebar {
  position: fixed;
  inset: 18px auto 18px 18px;
  width: 248px;
  padding: 18px 14px;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(245, 249, 255, 0.52)),
    rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  scrollbar-width: none;
}

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

.sidebar::before {
  display: block;
  width: 54px;
  height: 6px;
  margin: 0 auto 14px;
  content: "";
  background: linear-gradient(90deg, rgba(134, 32, 107, 0.12), rgba(134, 32, 107, 0.28), rgba(134, 32, 107, 0.12));
  border-radius: 999px;
}

.brand {
  display: flex;
  min-height: 54px;
  margin: 0 4px 18px;
  padding: 2px 8px 0;
  letter-spacing: 0;
  color: var(--ink);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  white-space: nowrap;
}

.brand-title {
  font-size: 22px;
  font-weight: 790;
  line-height: 1.12;
  color: var(--ink);
}

.brand-subtitle {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 640;
  line-height: 1.2;
  color: rgba(134, 32, 107, 0.82);
}

.engine-group {
  display: grid;
  gap: 8px;
}

.engine-trigger {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 50px;
  align-items: center;
  grid-template-columns: 28px minmax(0, 1fr) 16px;
  column-gap: 10px;
  padding: 0 14px;
  color: #321326;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.58)),
    rgba(134, 32, 107, 0.085);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 12px 30px rgba(134, 32, 107, 0.12);
}

.engine-trigger::before {
  display: block;
  width: 28px;
  height: 28px;
  content: "";
  background:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='white'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m12%203%201.7%205.3L19%2010l-5.3%201.7L12%2017l-1.7-5.3L5%2010l5.3-1.7L12%203Z'/%3E%3Cpath%20d='M19%203v4M21%205h-4M5%2017v3M6.5%2018.5h-3'/%3E%3C/svg%3E") center / 17px 17px no-repeat,
    linear-gradient(135deg, rgba(163, 58, 132, 0.98), rgba(134, 32, 107, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 9px 18px rgba(134, 32, 107, 0.18);
}

.engine-trigger::after {
  position: static;
  justify-self: center;
  width: 8px;
  height: 8px;
  content: "";
  border-right: 2px solid rgba(50, 19, 38, 0.58);
  border-bottom: 2px solid rgba(50, 19, 38, 0.58);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.engine-group.expanded .engine-trigger::after {
  transform: translateY(2px) rotate(225deg);
}

.engine-trigger span {
  overflow: hidden;
  font-size: 15px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.engine-subnav {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 2px 0 0 8px;
  margin-left: 7px;
}

.engine-subnav::before {
  position: absolute;
  top: 4px;
  bottom: 8px;
  left: 0;
  width: 1px;
  content: "";
  background: linear-gradient(180deg, rgba(134, 32, 107, 0.3), rgba(134, 32, 107, 0.04));
}

.engine-group:not(.expanded) .engine-subnav {
  display: none;
}

.operator-mode .poster-product-items .nav:not([data-tab="manual"]),
.operator-mode .ota-nav,
.operator-mode .franchise-nav,
.operator-mode #posterEngineActions,
.operator-mode #candidatePanel,
.operator-mode #refreshManualHotelsBtn {
  display: none !important;
}

.operator-mode .engine-subnav::before {
  display: none;
}

.operator-mode .poster-product-items {
  padding-left: 0;
}

.poster-product {
  display: grid;
  gap: 6px;
}

.poster-product-trigger {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 40px;
  align-items: center;
  grid-template-columns: 8px minmax(0, 1fr) 14px;
  column-gap: 10px;
  padding: 0 10px 0 9px;
  color: rgba(50, 19, 38, 0.82);
  text-align: left;
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.poster-product-trigger::before {
  width: 4px;
  height: 20px;
  content: "";
  background: rgba(134, 32, 107, 0.62);
  border: 0;
  border-radius: 999px;
  box-shadow: none;
}

.poster-product-trigger::after {
  width: 7px;
  height: 7px;
  justify-self: center;
  content: "";
  border-right: 2px solid rgba(50, 19, 38, 0.48);
  border-bottom: 2px solid rgba(50, 19, 38, 0.48);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.poster-product.expanded .poster-product-trigger::after {
  transform: translateY(2px) rotate(225deg);
}

.poster-product-trigger span {
  overflow: hidden;
  font-size: 14px;
  font-weight: 740;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poster-product-trigger.active {
  color: #321326;
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.58);
}

.poster-product-items {
  position: relative;
  display: grid;
  gap: 3px;
  padding-left: 10px;
  margin-left: 4px;
}

.poster-product-items::before {
  position: absolute;
  top: 4px;
  bottom: 8px;
  left: 0;
  width: 1px;
  content: "";
  background: linear-gradient(180deg, rgba(134, 32, 107, 0.22), rgba(134, 32, 107, 0.03));
}

.poster-product:not(.expanded) .poster-product-items {
  display: none;
}

.nav.primary-nav {
  display: grid;
  min-height: 50px;
  margin-top: 8px;
  align-items: center;
  grid-template-columns: 28px minmax(0, 1fr) 16px;
  column-gap: 10px;
  padding: 0 14px;
  color: #321326;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.58)),
    rgba(134, 32, 107, 0.085);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 12px 30px rgba(134, 32, 107, 0.12);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.2;
}

.nav.primary-nav::before {
  position: static;
  width: 28px;
  height: 28px;
  background:
    var(--nav-icon) center / 17px 17px no-repeat,
    var(--nav-icon-bg);
  border-color: rgba(255, 255, 255, 0.58);
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 9px 18px rgba(134, 32, 107, 0.18);
  transform: none;
}

.nav.primary-nav:hover::before {
  transform: scale(1.04);
}

.nav.primary-nav::after {
  position: static;
  display: block;
  width: 8px;
  height: 8px;
  justify-self: center;
  content: "";
  background: transparent;
  border-right: 2px solid rgba(50, 19, 38, 0.42);
  border-bottom: 2px solid rgba(50, 19, 38, 0.42);
  border-radius: 0;
  transform: rotate(-45deg);
  box-shadow: none;
}

.nav.primary-nav.active {
  color: #321326;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.58)),
    rgba(134, 32, 107, 0.085);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 12px 30px rgba(134, 32, 107, 0.12);
}

.nav.primary-nav span {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-bottom: 0;
  padding: 0 12px 0 48px;
  color: var(--ink-soft);
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  position: relative;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
  --nav-icon-bg: linear-gradient(135deg, #a33a84, #86206b);
  --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='white'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2015.5a3.5%203.5%200%201%200%200-7%203.5%203.5%200%200%200%200%207Z'/%3E%3Cpath%20d='M19.4%2015a1.65%201.65%200%200%200%20.33%201.82l.06.06a2%202%200%200%201%200%202.83%202%202%200%200%201-2.83%200l-.06-.06a1.65%201.65%200%200%200-1.82-.33%201.65%201.65%200%200%200-1%201.51V21a2%202%200%200%201-4%200v-.09a1.65%201.65%200%200%200-1-1.51%201.65%201.65%200%200%200-1.82.33l-.06.06a2%202%200%200%201-2.83%200%202%202%200%200%201%200-2.83l.06-.06A1.65%201.65%200%200%200%204.6%2015a1.65%201.65%200%200%200-1.51-1H3a2%202%200%200%201%200-4h.09A1.65%201.65%200%200%200%204.6%208a1.65%201.65%200%200%200-.33-1.82l-.06-.06a2%202%200%200%201%200-2.83%202%202%200%200%201%202.83%200l.06.06A1.65%201.65%200%200%200%208.9%204.6a1.65%201.65%200%200%200%201-1.51V3a2%202%200%200%201%204%200v.09a1.65%201.65%200%200%200%201%201.51%201.65%201.65%200%200%200%201.82-.33l.06-.06a2%202%200%200%201%202.83%200%202%202%200%200%201%200%202.83l-.06.06A1.65%201.65%200%200%200%2019.4%208c.14.31.22.65.22%201H21a2%202%200%200%201%200%204h-.09a1.65%201.65%200%200%200-1.51%201Z'/%3E%3C/svg%3E");
}

.nav::before {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 24px;
  height: 24px;
  content: "";
  background:
    var(--nav-icon) center / 15px 15px no-repeat,
    var(--nav-icon-bg);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 8px 16px rgba(32, 52, 78, 0.12);
  transform: translateY(-50%);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.nav::after {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 5px;
  width: 3px;
  content: "";
  background: transparent;
  border-radius: 999px;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.nav:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.48);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 22px rgba(32, 52, 78, 0.08);
  transform: translateX(1px);
}

.nav:hover::before {
  filter: brightness(1.04) saturate(1.04);
  transform: translateY(-50%) scale(1.04);
}

.nav.active {
  color: #321326;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.56)),
    rgba(134, 32, 107, 0.085);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 12px 30px rgba(134, 32, 107, 0.12);
}

.nav.active::before {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 10px 20px rgba(134, 32, 107, 0.2);
}

.nav.active::after {
  background: linear-gradient(180deg, rgba(163, 58, 132, 0.92), rgba(134, 32, 107, 0.92));
  box-shadow: 0 0 12px rgba(134, 32, 107, 0.26);
}

.nav.primary-nav.active::after {
  background: transparent;
  border-right-color: rgba(50, 19, 38, 0.5);
  border-bottom-color: rgba(50, 19, 38, 0.5);
  box-shadow: none;
}

.poster-product-items .nav {
  min-height: 34px;
  padding: 0 10px 0 14px;
  font-size: 13px;
  font-weight: 620;
  color: rgba(61, 70, 87, 0.9);
  background: transparent;
  border-color: transparent;
  border-radius: 10px;
  box-shadow: none;
}

.poster-product-items .nav::before {
  display: none;
}

.poster-product-items .nav::after {
  top: 9px;
  bottom: 9px;
  left: 3px;
  width: 2px;
}

.poster-product-items .nav:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.34);
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.poster-product-items .nav.active {
  color: #321326;
  background: rgba(134, 32, 107, 0.075);
  border-color: transparent;
  box-shadow: none;
}

.nav[data-tab="settings"] {
  --nav-icon-bg: linear-gradient(135deg, #9aa0aa, #707680);
  --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='white'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2015.5a3.5%203.5%200%201%200%200-7%203.5%203.5%200%200%200%200%207Z'/%3E%3Cpath%20d='M19.4%2015a1.65%201.65%200%200%200%20.33%201.82l.06.06a2%202%200%200%201%200%202.83%202%202%200%200%201-2.83%200l-.06-.06a1.65%201.65%200%200%200-1.82-.33%201.65%201.65%200%200%200-1%201.51V21a2%202%200%200%201-4%200v-.09a1.65%201.65%200%200%200-1-1.51%201.65%201.65%200%200%200-1.82.33l-.06.06a2%202%200%200%201-2.83%200%202%202%200%200%201%200-2.83l.06-.06A1.65%201.65%200%200%200%204.6%2015a1.65%201.65%200%200%200-1.51-1H3a2%202%200%200%201%200-4h.09A1.65%201.65%200%200%200%204.6%208a1.65%201.65%200%200%200-.33-1.82l-.06-.06a2%202%200%200%201%200-2.83%202%202%200%200%201%202.83%200l.06.06A1.65%201.65%200%200%200%208.9%204.6a1.65%201.65%200%200%200%201-1.51V3a2%202%200%200%201%204%200v.09a1.65%201.65%200%200%200%201%201.51%201.65%201.65%200%200%200%201.82-.33l.06-.06a2%202%200%200%201%202.83%200%202%202%200%200%201%200%202.83l-.06.06A1.65%201.65%200%200%200%2019.4%208c.14.31.22.65.22%201H21a2%202%200%200%201%200%204h-.09a1.65%201.65%200%200%200-1.51%201Z'/%3E%3C/svg%3E");
}

.nav[data-tab="brands"] {
  --nav-icon-bg: linear-gradient(135deg, #3a7cff, #1aa7ff);
  --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='white'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='3'%20y='5'%20width='18'%20height='14'%20rx='2.5'/%3E%3Ccircle%20cx='8.5'%20cy='10'%20r='1.5'/%3E%3Cpath%20d='m21%2015-5-5L5%2021'/%3E%3C/svg%3E");
}

.nav[data-tab="styles"] {
  --nav-icon-bg: linear-gradient(135deg, #a33a84, #86206b);
  --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='white'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='13.5'%20cy='6.5'%20r='1.2'/%3E%3Ccircle%20cx='17.5'%20cy='10.5'%20r='1.2'/%3E%3Ccircle%20cx='8'%20cy='9'%20r='1.2'/%3E%3Cpath%20d='M12%203C7%203%203%206.7%203%2011.3S6.7%2020%2011.3%2020H13a2%202%200%200%200%201.4-3.4%201.2%201.2%200%200%201%20.8-2.1H17c2.2%200%204-1.8%204-4C21%206.4%2017%203%2012%203Z'/%3E%3C/svg%3E");
}

.nav[data-tab="hotels"] {
  --nav-icon-bg: linear-gradient(135deg, #34c759, #20b15a);
  --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='white'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3%2021h18'/%3E%3Cpath%20d='M5%2021V7l7-4%207%204v14'/%3E%3Cpath%20d='M9%2021v-6h6v6'/%3E%3Cpath%20d='M9%209h.01M15%209h.01'/%3E%3C/svg%3E");
}

.nav[data-tab="manual"] {
  --nav-icon-bg: linear-gradient(135deg, #ffb13b, #ff7a30);
  --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='white'%3E%3Cpath%20d='M8%205.8c0-1.2%201.3-1.9%202.3-1.3l8.8%205.4c1%20.6%201%202%200%202.6l-8.8%205.4c-1%20.6-2.3-.1-2.3-1.3V5.8Z'/%3E%3C/svg%3E");
}

.nav[data-tab="logs"] {
  --nav-icon-bg: linear-gradient(135deg, #23c4d8, #1687ff);
  --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='white'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M8%206h13M8%2012h13M8%2018h13'/%3E%3Cpath%20d='M3%206h.01M3%2012h.01M3%2018h.01'/%3E%3C/svg%3E");
}

.ota-nav {
  --nav-icon-bg: linear-gradient(135deg, rgba(163, 58, 132, 0.98), rgba(134, 32, 107, 0.98));
  --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='white'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3%2019h18'/%3E%3Cpath%20d='M7%2015l3.5-3.5%203%203L20%208'/%3E%3Cpath%20d='M16%208h4v4'/%3E%3C/svg%3E");
}

.franchise-nav {
  --nav-icon-bg: linear-gradient(135deg, rgba(163, 58, 132, 0.98), rgba(134, 32, 107, 0.98));
  --nav-icon: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='white'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M16%2021v-2a4%204%200%200%200-4-4H6a4%204%200%200%200-4%204v2'/%3E%3Ccircle%20cx='9'%20cy='7'%20r='4'/%3E%3Cpath%20d='M22%2021v-2a4%204%200%200%200-3-3.87'/%3E%3Cpath%20d='M16%203.13a4%204%200%200%201%200%207.75'/%3E%3C/svg%3E");
}

.engine-subnav .nav {
  min-height: 40px;
  padding-left: 18px;
}

.engine-subnav .nav::before {
  display: none;
}

.main {
  min-height: 100vh;
  margin-left: 284px;
  padding: 22px 30px 42px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
  padding: 22px 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.46)),
    rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  position: sticky;
  top: 18px;
  z-index: 5;
}

.topbar .actions {
  padding: 6px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 22px rgba(32, 52, 78, 0.07);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

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

h1 {
  margin-bottom: 4px;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 780;
  line-height: 1.1;
  letter-spacing: 0;
  color: #101828;
}

h2 {
  margin-bottom: 16px;
  font-size: 21px;
  font-weight: 720;
  line-height: 1.2;
  letter-spacing: 0;
}

h2::after {
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 10px;
  content: "";
  background: linear-gradient(90deg, rgba(134, 32, 107, 0.42), rgba(134, 32, 107, 0));
  border-radius: 999px;
}

.section-head h2::after {
  margin-top: 8px;
}

h3 {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.topbar p,
.hint {
  color: var(--muted);
}

.topbar p {
  max-width: 720px;
  margin-bottom: 0;
  font-size: 14px;
}

.panel {
  position: relative;
  padding: 22px;
  margin-bottom: 18px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(250, 253, 255, 0.58)),
    var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.panel::before,
.topbar::before,
.sidebar::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), inset 0 -1px 0 rgba(255, 255, 255, 0.26);
}

.panel:hover {
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 42px rgba(32, 52, 78, 0.1);
}

.tab {
  display: none;
}

.tab.active {
  display: block;
}

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

.public-api-settings {
  padding-top: 22px;
  margin-top: 24px;
  border-top: 1px solid rgba(142, 160, 180, 0.2);
}

.public-api-settings .section-head {
  margin-bottom: 16px;
}

.public-api-settings .section-head h3,
.public-api-settings .section-head p {
  margin-bottom: 0;
}

.public-api-key-actions {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.public-api-token {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(142, 160, 180, 0.22);
  border-radius: var(--radius-sm);
}

.public-api-token code {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-size: 13px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 620;
  color: var(--ink-soft);
}

label:focus-within {
  color: #3c1430;
}

label.full {
  display: block;
  margin-top: 16px;
}

label.full textarea {
  margin-top: 8px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(250, 252, 255, 0.72)),
    rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 1px 2px rgba(32, 52, 78, 0.04);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

textarea {
  min-height: 118px;
  line-height: 1.55;
  resize: vertical;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #667085 50%),
    linear-gradient(135deg, #667085 50%, transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(250, 252, 255, 0.72));
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 13px) 18px,
    0 0;
  background-size: 5px 5px, 5px 5px, 100% 100%;
  background-repeat: no-repeat;
  padding-right: 36px;
}

input:focus,
select:focus,
textarea:focus {
  background-color: rgba(255, 255, 255, 0.92);
  border-color: rgba(134, 32, 107, 0.55);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    0 0 0 4px rgba(134, 32, 107, 0.11),
    0 8px 20px rgba(134, 32, 107, 0.07);
  transform: translateY(-1px);
}

input[type="file"] {
  min-height: 44px;
  padding: 8px;
  color: var(--muted);
}

.search-combobox {
  position: relative;
  width: 100%;
}

.search-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 30;
  max-height: 286px;
  padding: 8px;
  overflow: auto;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.78)),
    rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(32, 52, 78, 0.16);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.search-option {
  display: flex;
  width: 100%;
  min-height: 48px;
  padding: 8px 10px;
  margin: 0;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}

.search-option:hover {
  color: #321326;
  background: rgba(134, 32, 107, 0.08);
  box-shadow: none;
  transform: none;
}

.search-option span {
  width: 100%;
  overflow: hidden;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-option small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
}

.search-option.empty {
  color: var(--muted);
  cursor: default;
}

button {
  min-height: 40px;
  padding: 9px 15px;
  color: #fff;
  font-weight: 690;
  letter-spacing: 0;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(163, 58, 132, 0.98), rgba(134, 32, 107, 0.98)),
    var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 10px 22px rgba(134, 32, 107, 0.19);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    filter 150ms ease,
    background 150ms ease;
  outline: none;
}

button:hover {
  filter: brightness(1.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 13px 28px rgba(134, 32, 107, 0.23);
  transform: translateY(-1px);
}

button:active {
  filter: brightness(0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 6px 16px rgba(134, 32, 107, 0.16);
  transform: translateY(0);
}

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

button:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 0 0 4px rgba(134, 32, 107, 0.14),
    0 10px 22px rgba(134, 32, 107, 0.18);
}

button.secondary {
  color: #4d1a3f;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 249, 255, 0.68)),
    rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 9px 20px rgba(32, 52, 78, 0.1);
}

button.secondary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 11px 24px rgba(32, 52, 78, 0.13);
}

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

.inline-actions {
  margin-top: 14px;
}

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

.section-head h2,
.section-head h3 {
  margin-bottom: 0;
}

.editor {
  padding: 18px;
  margin-bottom: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(248, 251, 255, 0.52)),
    var(--glass-dim);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 10px 26px rgba(32, 52, 78, 0.07);
}

.hidden {
  display: none !important;
}

.list {
  display: grid;
  gap: 12px;
}

.card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 15px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(248, 251, 255, 0.58)),
    rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(32, 52, 78, 0.08);
  transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 15px 34px rgba(32, 52, 78, 0.11);
  transform: translateY(-1px);
}

.card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  color: var(--ink);
}

.meta {
  color: var(--muted);
  font-size: 13px;
}

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

.card-actions button {
  min-height: 34px;
  padding: 7px 11px;
  white-space: nowrap;
}

.table {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 12px 11px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(142, 160, 180, 0.16);
}

th {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 720;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(250, 252, 255, 0.48)),
    rgba(255, 255, 255, 0.5);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
}

td {
  color: #2f3747;
}

tbody tr {
  transition: background 140ms ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.38);
}

tr:last-child td {
  border-bottom: 0;
}

.hotels-table {
  table-layout: fixed;
}

.hotels-table th,
.hotels-table td {
  vertical-align: middle;
}

.hotels-table th:nth-child(1),
.hotels-table td:nth-child(1) {
  width: 46%;
}

.hotels-table th:nth-child(2),
.hotels-table td:nth-child(2) {
  width: 16%;
}

.hotels-table th:nth-child(3),
.hotels-table td:nth-child(3) {
  width: 12%;
}

.hotels-table th:nth-child(4),
.hotels-table td:nth-child(4) {
  width: 14%;
}

.hotels-table th:nth-child(5),
.hotels-table td:nth-child(5) {
  width: 12%;
  text-align: center;
}

.hotels-table td:nth-child(1) {
  color: var(--ink);
  font-weight: 620;
  line-height: 1.35;
}

.hotels-table td:nth-child(3) {
  font-variant-numeric: tabular-nums;
}

.hotels-table select {
  min-height: 38px;
  width: 100%;
}

.hotels-table button {
  min-height: 36px;
  padding-inline: 14px;
  white-space: nowrap;
}

.hotel-action-cell {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
}

.hotels-table .hotel-save-btn {
  width: 64px;
  min-width: 64px;
  padding-inline: 0;
}

.log-table {
  min-width: 920px;
  table-layout: fixed;
}

.log-table th,
.log-table td {
  vertical-align: middle;
}

.log-table th,
.log-table td:not(:last-child) {
  white-space: nowrap;
}

.log-table td {
  line-height: 1.42;
}

.jobs-table th:nth-child(1),
.jobs-table td:nth-child(1),
.events-table th:nth-child(1),
.events-table td:nth-child(1) {
  width: 172px;
  padding-right: 32px;
}

.jobs-table th:nth-child(2),
.jobs-table td:nth-child(2),
.events-table th:nth-child(2),
.events-table td:nth-child(2) {
  width: 88px;
  padding-left: 20px;
}

.jobs-table th:nth-child(3),
.jobs-table td:nth-child(3) {
  width: 236px;
}

.jobs-table th:nth-child(4),
.jobs-table td:nth-child(4) {
  width: 72px;
}

.jobs-table th:nth-child(5),
.jobs-table td:nth-child(5),
.events-table th:nth-child(4),
.events-table td:nth-child(4) {
  width: 74px;
  text-align: center;
}

.jobs-table th:nth-child(6),
.jobs-table td:nth-child(6) {
  width: 60px;
}

.events-table th:nth-child(3),
.events-table td:nth-child(3) {
  width: 82px;
}

.events-table th:nth-child(5),
.events-table td:nth-child(5) {
  width: 226px;
}

.log-table td:nth-child(3),
.events-table td:nth-child(5) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-pill {
  display: inline-flex;
  min-width: 42px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  color: #435066;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(142, 160, 180, 0.24);
  border-radius: 999px;
}

.status-done,
.status-success,
.status-succeeded {
  color: #177245;
  background: rgba(48, 209, 88, 0.12);
  border-color: rgba(48, 209, 88, 0.24);
}

.status-warning,
.status-done_with_warning,
.status-pending,
.status-queued,
.status-processing,
.status-info {
  color: #8a5a00;
  background: rgba(255, 204, 0, 0.14);
  border-color: rgba(255, 204, 0, 0.24);
}

.status-failed,
.status-error {
  color: #b42318;
  background: rgba(255, 69, 58, 0.12);
  border-color: rgba(255, 69, 58, 0.24);
}

.table-link {
  color: #86206b;
  font-weight: 700;
  text-decoration: none;
}

.table-link:hover {
  text-decoration: underline;
}

.log-message {
  display: block;
  max-height: 4.4em;
  overflow: auto;
  color: var(--ink-soft);
  white-space: normal;
  word-break: break-word;
}

.log-message:empty::before {
  color: var(--muted-2);
  content: "-";
}

.result {
  margin-top: 16px;
}

.result-message {
  max-width: 720px;
  padding: 14px 16px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
}

.result-message strong,
.result-message p {
  margin: 0;
}

.result-message p {
  margin-top: 6px;
  line-height: 1.6;
}

.result-error {
  color: #7f1d1d;
  background: rgba(254, 242, 242, 0.82);
  border-color: rgba(248, 113, 113, 0.28);
}

.result img {
  max-width: 260px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(32, 52, 78, 0.16);
}

.asset-panel {
  padding: 16px;
  margin-top: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(248, 251, 255, 0.5)),
    rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 10px 26px rgba(32, 52, 78, 0.07);
}

.asset-panel h3 {
  margin-bottom: 4px;
}

.logo-preview,
.template-preview,
.pending-files {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.66), rgba(249, 252, 255, 0.48)),
    rgba(255, 255, 255, 0.46);
  border: 1px dashed rgba(110, 128, 150, 0.32);
  border-radius: 18px;
}

.logo-preview {
  display: flex;
  min-height: 96px;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.logo-preview img {
  max-width: 220px;
  max-height: 72px;
  padding: 8px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
}

.template-preview {
  display: flex;
  min-height: 170px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  margin-top: 14px;
}

.template-preview img {
  max-width: 130px;
  max-height: 150px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.asset-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  color: var(--ink-soft);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(248, 251, 255, 0.5)),
    rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(32, 52, 78, 0.06);
  transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.asset-card.selectable {
  position: relative;
  cursor: pointer;
}

.asset-card.selectable:hover {
  border-color: rgba(134, 32, 107, 0.24);
  box-shadow: 0 12px 26px rgba(134, 32, 107, 0.09);
  transform: translateY(-1px);
}

.asset-card.selectable::after {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 22px;
  height: 22px;
  content: "";
  background:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='white'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m5%2012%204%204L19%206'/%3E%3C/svg%3E") center / 14px 14px no-repeat,
    linear-gradient(135deg, rgba(163, 58, 132, 0.98), rgba(134, 32, 107, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(134, 32, 107, 0.22);
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 160ms ease, transform 160ms ease;
}

.asset-card.selectable.selected {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 248, 253, 0.68)),
    rgba(134, 32, 107, 0.055);
  border-color: rgba(134, 32, 107, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 14px 32px rgba(134, 32, 107, 0.12);
}

.asset-card.selectable.selected::after {
  opacity: 1 !important;
  transform: scale(1) !important;
}

.asset-card input.manual_asset_id {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  appearance: none;
}

.asset-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
}

.empty-thumb {
  display: flex;
  width: 100%;
  aspect-ratio: 4 / 3;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px dashed rgba(110, 128, 150, 0.32);
  border-radius: 12px;
}

.pending-files {
  padding: 11px;
  margin-top: 12px;
}

.pending-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.pending-file-list span {
  padding: 4px 9px;
  color: var(--ink-soft);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
}

.asset-card span,
.asset-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: min(420px, calc(100vw - 48px));
  padding: 13px 16px;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(248, 251, 255, 0.66)),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  padding: 24px;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(238, 244, 251, 0.72)),
    rgba(238, 243, 248, 0.78);
  backdrop-filter: saturate(180%) blur(26px);
  -webkit-backdrop-filter: saturate(180%) blur(26px);
}

.auth-card {
  width: min(420px, 100%);
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(248, 251, 255, 0.58)),
    rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.auth-kicker {
  display: inline-flex;
  margin-bottom: 16px;
  color: rgba(134, 32, 107, 0.86);
  font-size: 13px;
  font-weight: 760;
}

.auth-card h1 {
  margin-bottom: 8px;
}

.auth-card p {
  margin-bottom: 22px;
  color: var(--muted);
}

.auth-login-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: white;
  font-weight: 760;
  text-decoration: none;
  background: linear-gradient(135deg, #a33a84, #86206b);
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(134, 32, 107, 0.26);
}

.auth-mock-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-left: 10px;
}

.auth-mock-button {
  color: rgba(134, 32, 107, 0.96);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(134, 32, 107, 0.18);
  box-shadow: 0 12px 26px rgba(134, 32, 107, 0.14);
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 6px 6px 6px 12px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.user-badge span {
  max-width: 180px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-badge button {
  min-height: 30px;
  padding: 0 10px;
}

.empty-state {
  max-width: 640px;
  padding: 18px;
  color: var(--ink-soft);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(248, 251, 255, 0.48)),
    rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 16px;
}

.empty-state p {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .sidebar {
    position: sticky;
    top: 0;
    inset: auto;
    z-index: 10;
    display: flex;
    width: 100%;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
    border-radius: 0 0 24px 24px;
  }

  .brand {
    min-width: 174px;
    margin: 0 8px 0 0;
  }

  .engine-group {
    display: flex;
    gap: 8px;
    min-width: max-content;
  }

  .engine-trigger {
    min-width: 168px;
  }

  .engine-subnav {
    display: flex;
    gap: 8px;
    padding-left: 0;
    margin-left: 0;
  }

  .engine-subnav::before {
    display: none;
  }

  .nav {
    min-width: 128px;
    padding: 0 14px 0 44px;
    text-align: left;
  }

  .engine-subnav .nav {
    min-width: 104px;
    padding: 0 14px;
    text-align: center;
  }

  .nav::after {
    display: none;
  }

  .poster-product {
    min-width: 146px;
  }

  .poster-product-trigger {
    min-height: 40px;
  }

  .poster-product-items {
    padding-left: 8px;
    margin-left: 4px;
  }

  .engine-subnav .poster-product-items .nav {
    min-width: 0;
    min-height: 34px;
    padding: 0 10px 0 14px;
    text-align: left;
  }

  .poster-product-items .nav::after {
    display: block;
  }

  .nav::before {
    left: 12px;
  }

  .main {
    margin-left: 0;
    padding: 16px;
  }

  .topbar {
    position: relative;
    top: auto;
  }

  .topbar,
  .section-head,
  .card {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-actions {
    justify-content: flex-start;
  }

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

@media (max-width: 560px) {
  .topbar,
  .panel {
    padding: 18px;
    border-radius: 22px;
  }

  .actions,
  .card-actions {
    width: 100%;
  }

  .actions button,
  .card-actions button {
    flex: 1 1 auto;
  }

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

  .public-api-key-actions,
  .public-api-token {
    align-items: stretch;
    flex-direction: column;
  }
}

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

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .sidebar,
  .topbar,
  .panel,
  .toast {
    background: rgba(255, 255, 255, 0.94);
  }
}
