@font-face {
  font-family: "Unbounded";
  src: url("/static/fonts/unbounded/Unbounded.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

@font-face {
  font-family: "LINE Seed JP";
  src: url("/static/fonts/line-seed-jp/LINESeedJP_OTF_Bd.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: block;
}

@font-face {
  font-family: "LINE Seed JP";
  src: url("/static/fonts/line-seed-jp/LINESeedJP_OTF_Eb.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: block;
}

:root {
  --bg0: #0b0c10;
  --bg1: #0e1017;
  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.66);
  --muted2: rgba(255, 255, 255, 0.52);
  --accent: #7c5cff;
  --accent2: #33d6a6;
  --danger: #ff5c7c;
  --panelBg: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.045));
  --radius: 18px;
  --radius2: 14px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  --ctaGradient: linear-gradient(112deg, #cfb2ff 4.94%, #4d09b2 127.67%);
  --scrollbarSize: 8px;
  --scrollbarTrack: transparent;
  --scrollbarThumb: rgba(115, 115, 115, 0.76);
  --scrollbarThumbHover: rgba(163, 163, 163, 0.88);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol";
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbarThumb) var(--scrollbarTrack);
}

*::-webkit-scrollbar {
  width: var(--scrollbarSize);
  height: var(--scrollbarSize);
}

*::-webkit-scrollbar-track {
  background: var(--scrollbarTrack);
}

*::-webkit-scrollbar-thumb {
  min-width: 40px;
  min-height: 40px;
  border: 2px solid transparent;
  border-radius: 999px;
  background-color: var(--scrollbarThumb);
  background-clip: content-box;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbarThumbHover);
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

html,
body {
  height: 100%;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: none;
  overflow-x: hidden;
}

body:not(.pageLanding) {
  --bg0: #171717;
  --bg1: #171717;
  --card: #171717;
  --card2: #262626;
  --border: #404040;
  --text: #e5e5e5;
  --muted: #a3a3a3;
  --muted2: #737373;
  --accent: #7c3aed;
  --accent2: #33d6a6;
  --panelBg: #262626;
  --radius: 14px;
  --radius2: 10px;
  --shadow: none;
}

.pageSearch,
.pageGeneration,
.pageProfile {
  height: 100vh;
  --workspaceMinW: 960px;
  --workspace-panel-radius: 10px;
  --search-holder-bg: #262626;
  --search-control-bg: #171717;
  --search-control-border: #404040;
  --search-selected-border: #7c3aed;
  --search-holder-radius: var(--workspace-panel-radius);
  --workspace-sidebar-expanded-w: 280px;
  --workspace-sidebar-collapsed-w: 64px;
  --search-project-hover-bg: #525252;
  --search-project-radius: 8px;
  min-width: var(--workspaceMinW);
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
}

.pageSearch {
  --search-page-bg: #171717;
  --selBarH: 0px;
  --footerGap: 12px;
  --footerLine: 14px;
  --footerReserve: calc(var(--footerGap) * 2 + var(--footerLine));
  --contentBottomPad: var(--footerReserve);
  --dateColW: 112px;
}

.pageGeneration {
  --workspace-top-nav-offset: 3px;
}

.pageProfile {
  --workspace-top-nav-offset: 3px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(1200px 700px at 15% 10%, rgba(124, 92, 255, 0.18), transparent 55%),
    radial-gradient(900px 600px at 85% 15%, rgba(51, 214, 166, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  transform: translateZ(0);
}

.pageSearch::before {
  background: var(--search-page-bg);
}

body:not(.pageLanding):not(.pageSearch)::before {
  background: #171717;
}

.pageLanding::before {
  background: #171717;
}

.pageLanding {
  min-height: 100vh;
  --landingTopbarScrollOffset: 88px;
  overflow-x: hidden;
}

.landingBoot {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: radial-gradient(1200px 700px at 15% 10%, rgba(124, 92, 255, 0.18), transparent 55%),
    radial-gradient(900px 600px at 85% 15%, rgba(51, 214, 166, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

.landingBootInner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.landingBootBrand {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fafafa;
}

.landingBrandIcon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  object-fit: contain;
}

.landingBrandWordmark {
  color: #fafafa;
  font-family: "LINE Seed JP", var(--sans);
  display: inline-flex;
  align-items: center;
  height: 100%;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.landingTopbar {
  position: sticky;
  top: 0;
  z-index: 8;
  background: transparent;
}

.landingTopbarInner {
  max-width: none;
  margin: 0;
  padding: 0;
}

.pageLanding .landingHeader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 70px;
  padding: 16px 90px;
  margin-bottom: 0;
  border-radius: 0;
  background: #171717;
}

.landingBrandCluster {
  flex: 1 1 0;
  min-width: 0;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
}

.landingBrandLink {
  flex: 0 0 auto;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.landingBrandLink:hover {
  opacity: 0.95;
}

.landingBrandLink:focus-visible,
.landingNavLink:focus-visible,
.landingLoginButton:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(250, 250, 250, 0.18);
}

.landingHeaderBrandMark {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fafafa;
}

.landingSkolkovoLogo {
  width: 129.495px;
  height: 38px;
  object-fit: contain;
  align-self: stretch;
}

.landingNav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.landingNavLink {
  display: flex;
  min-height: 38px;
  padding: 4px 10px;
  align-items: center;
  justify-content: center;
  color: #fafafa;
  font-family: Unbounded, var(--sans);
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.landingNavLink:hover {
  color: #ffffff;
}

.landingHeaderActions {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.landingLoginButton {
  display: flex;
  min-height: 40px;
  padding: 6px 15px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #fafafa;
  border-radius: 8px;
  background: transparent;
  color: #fafafa;
  text-align: center;
  font-family: Unbounded, var(--sans);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(7px);
}

.landingLoginButton:hover {
  background: rgba(255, 255, 255, 0.08);
}

.landingLoginIcon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 auto;
}

.pageLanding .landingMain {
  position: relative;
  z-index: 2;
}

.landingHero {
  position: relative;
  overflow: hidden;
  padding: 48px 24px 88px;
  background: #02040f url("/static/landing/index-bg.png") center top / cover no-repeat;
}

.landingHeroInner {
  position: relative;
  z-index: 1;
  max-width: 1284px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.landingH1 {
  margin: 0;
  color: #ffffff;
  font-family: Unbounded, var(--sans);
  font-size: 58px;
  font-style: normal;
  font-weight: 500;
  line-height: 62px;
  letter-spacing: 0;
  text-align: center;
}

.landingH1Line {
  display: block;
  white-space: nowrap;
}

.landingH1Accent {
  background: linear-gradient(177deg, #b6c5ff 8%, #8896f2 92%);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landingLead {
  margin: 24px 0 0;
  background: linear-gradient(177deg, #ffffff 50%, #8896f2 97.5%);
  background-clip: text;
  color: transparent;
  font-family: Unbounded, var(--sans);
  font-size: 30px;
  font-style: normal;
  font-weight: 300;
  line-height: 40px;
  letter-spacing: 0;
  text-align: center;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landingCtas {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
}

.landingDemoButton {
  display: flex;
  min-width: 190px;
  min-height: 41px;
  padding: 5px 15px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: #0090ff;
  color: #fafafa;
  font-family: Unbounded, var(--sans);
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  line-height: 31px;
  letter-spacing: -0.151px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.landingDemoButton:hover,
.landingDemoButton:focus-visible {
  background: #148fff;
  color: #fafafa;
}

.landingDemoButton:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 144, 255, 0.28);
}

.landingHeroBubble,
.landingVisualDecor {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  user-select: none;
}

.landingHeroBubbleLeft {
  left: max(92px, calc(50% - 628px));
  top: 312px;
  width: 129.024px;
  height: 140.004px;
}

.landingHeroBubbleRight {
  right: max(27.624px, calc(50% - 692.376px));
  top: 214px;
  width: 200.78px;
  height: 217.17px;
}

.landingVisual {
  position: relative;
  width: 830px;
  height: auto;
  aspect-ratio: 830 / 718;
  margin-top: 48px;
}

.landingCentralImage {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 830 / 718;
  object-fit: cover;
  object-position: center;
}

.landingVisualDecorLeft {
  left: -138px;
  top: 84px;
  width: 218px;
  height: auto;
}

.landingVisualDecorLeftSecond {
  left: -260px;
  top: 392px;
  width: 520px;
  height: auto;
}

.landingVisualDecorRight {
  right: -188px;
  top: 120px;
  width: 311px;
  height: auto;
}

.landingPricing {
  width: min(1284px, calc(100% - 80px));
  margin: 72px auto 96px;
  padding: 0;
  scroll-margin-top: var(--landingTopbarScrollOffset);
}

.landingSectionHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.landingH2 {
  font-weight: 900;
  letter-spacing: 0.2px;
}

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

.landingPeriodSelector {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  width: min(100%, 560px);
  margin: -2px auto 18px;
  padding: 5px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 20, 29, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.landingPeriodOption {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-height: 0;
  padding: 0 10px;
  border-radius: 13px;
  border-color: transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.landingPeriodOption:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.055);
}

.landingPeriodOption[aria-pressed="true"] {
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.075));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 22px rgba(0, 0, 0, 0.16);
}

.landingPriceCard {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.landingPriceCard.disabled {
  opacity: 0.68;
}

.landingPriceHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.landingPriceName {
  font-weight: 950;
  letter-spacing: 0.2px;
  font-size: 20px;
}

.landingPriceValue {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 10px;
}

.landingPriceAmount {
  font-size: 34px;
  font-weight: 950;
  letter-spacing: 0.15px;
  color: rgba(255, 255, 255, 0.94);
}

.landingPriceUnit {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15px;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
}

.landingList {
  margin: 0 0 12px;
  padding: 0 0 0 18px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.4;
}

.landingList li {
  margin: 0 0 8px;
}

.landingPriceLead {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.45;
  max-width: 42ch;
}

.pageLanding .landingPricingTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.pageLanding .landingH2 {
  margin: 0;
  color: #ffffff;
  font-family: Unbounded, var(--sans);
  font-size: 48px;
  font-style: normal;
  font-weight: 500;
  line-height: 48px;
  letter-spacing: 0;
  text-align: center;
}

.pageLanding .landingPeriodSelector {
  display: grid;
  grid-template-columns: repeat(4, 124px);
  flex: 0 0 auto;
  width: max-content;
  height: 36px;
  margin: 0;
  padding: 3px;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 0;
  border-radius: 10px;
  background: #262626;
  box-shadow: none;
}

.pageLanding .landingPeriodOption {
  display: flex;
  width: 100%;
  height: 29px;
  min-height: 0;
  padding: 4px 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: rgba(250, 250, 250, 0.76);
  font-family: Unbounded, var(--sans);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
}

.pageLanding .landingPeriodOption:hover {
  background: transparent;
  color: #fafafa;
}

.pageLanding .landingPeriodOption[aria-pressed="true"] {
  border-color: #404040;
  background: #171717;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  color: #fafafa;
}

.pageLanding .landingPricingGrid {
  display: flex;
  grid-template-columns: none;
  gap: 16px;
  align-items: flex-end;
}

.pageLanding .landingPriceCard {
  position: relative;
  min-height: 354px;
  padding: 16px;
  flex: 1 0 0;
  align-self: stretch;
  border-radius: 10px;
  box-shadow: none;
  opacity: 1;
}

.pageLanding .landingPriceCardBasic {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  border: 1px solid #0090ff;
  overflow: hidden;
  background:
    url("/static/landing/holder-grid.png") -496.774px -0.379px / 267.297% 142.076% no-repeat,
    linear-gradient(180deg, #010002 0%, #213e99 100%),
    rgba(0, 0, 0, 0.06);
  background-blend-mode: soft-light, normal, normal;
}

.pageLanding .landingPriceCardAdvanced {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
}

.pageLanding .landingPriceCardAdvanced .landingPriceName {
  color: #404040;
  font-family: "Unbounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0;
}

.pageLanding .landingPriceCardAdvanced .landingPriceAmount,
.pageLanding .landingPriceCardAdvanced .landingPriceUnit,
.pageLanding .landingPriceCardAdvanced .landingList {
  color: #404040;
}

.pageLanding .landingPriceHead {
  align-self: stretch;
  margin: 0;
}

.pageLanding .landingBasicStatusIcon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 60.429px;
  height: 66px;
  object-fit: contain;
}

.pageLanding .landingPriceBody {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.pageLanding .landingPriceCardAdvanced .landingPriceBody {
  width: 100%;
  padding-top: 0;
}

.pageLanding .landingPriceName {
  max-width: calc(100% - 86px);
}

.pageLanding .landingPriceValue {
  margin: 8px 0 0;
}

.pageLanding .landingPriceDivider {
  width: min(593px, 100%);
  height: 1px;
  margin: 16px 0 18px;
  background: #282729;
}

.pageLanding .landingList {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pageLanding .landingList li {
  position: relative;
  margin: 0;
  padding-left: 24px;
}

.pageLanding .landingList li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  background: url("/static/landing/line-ok-valid.png") center / contain no-repeat;
}

.pageLanding .landingPriceCardAdvanced .landingList li::before {
  background-image: url("/static/landing/line-ok-not-valid.png");
}

.pageLanding .landingPriceLead {
  align-self: stretch;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  box-sizing: border-box;
  max-width: none;
  margin: 0 0 14px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(34, 197, 94, 0.42);
  background: rgba(34, 197, 94, 0.045);
  color: #22c55e;
  font-family: "Unbounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0;
}

.pageLanding .landingPriceLeadIcon {
  flex: 0 0 auto;
  width: 20.007px;
  height: 22.005px;
  margin-top: 1px;
  object-fit: contain;
}

.pageLanding .landingPriceActions {
  align-self: stretch;
  width: 100%;
  margin-top: auto;
  padding-top: 18px;
}

.pageLanding .landingPriceButton {
  display: flex;
  width: 100%;
  padding: 6px 15px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  border: 0;
  appearance: none;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  font-family: "Unbounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: -0.001px;
  text-align: center;
}

.pageLanding .landingPriceButtonDemo {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0090ff;
  color: #fff;
  cursor: pointer;
}

.pageLanding .landingPriceButtonDemo:hover,
.pageLanding .landingPriceButtonDemo:focus-visible {
  background: #0a96ff;
}

.pageLanding .landingPriceButtonDisabled {
  background: #262626;
  color: #404040;
  -webkit-text-fill-color: #404040;
  cursor: not-allowed;
  opacity: 1;
}

.pageLanding .landingPriceSoonBadge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  padding: 4px 8px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 8px;
  background: #262626;
  color: #fafafa;
  font-family: Unbounded, var(--sans);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
  text-align: center;
}

.pageLanding .landingPriceSoonIcon {
  width: 12px;
  height: 14.667px;
  object-fit: contain;
}

.landingFooter {
  width: 100%;
  padding-bottom: 24px;
}

.landingFooterDivider {
  width: 100%;
  height: 1px;
  background: #404040;
}

.landingFooterInner {
  width: min(1284px, calc(100% - 80px));
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.landingFooterBrandCluster {
  flex: 0 0 auto;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.landingFooterBrandMark {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fafafa;
}

.landingFooterSkolkovoLogo {
  width: 129.495px;
  height: 38px;
  object-fit: contain;
}

.landingFooterText {
  margin: 0;
  color: rgba(250, 250, 250, 0.72);
  font-family: Unbounded, var(--sans);
  font-size: 12px;
  font-style: normal;
  font-weight: 300;
  line-height: 20px;
  letter-spacing: 0;
}

.landingFooterLink {
  color: #fafafa;
  text-decoration: underline;
  text-decoration-color: rgba(250, 250, 250, 0.42);
  text-underline-offset: 3px;
}

.landingFooterLink:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

@media (max-width: 1267px) {
  .landingH1 {
    max-width: calc(100vw - 64px);
    font-size: 48px;
    line-height: 54px;
  }
}

@media (max-width: 1180px) {
  .pageLanding .landingHeader {
    padding: 16px 48px;
  }

  .landingHero {
    min-height: auto;
  }

  .landingH1Line {
    white-space: normal;
  }

  .landingH1Accent {
    white-space: nowrap;
  }

  .landingLead {
    max-width: min(600px, calc(100vw - 64px));
    font-size: 26px;
    line-height: 36px;
  }

  .landingHeroBubbleLeft {
    left: 42px;
  }

  .landingHeroBubbleRight {
    right: 32px;
  }

  .landingPricing,
  .landingFooterInner {
    width: min(1284px, calc(100% - 64px));
  }
}

@media (max-width: 980px) {
  .pageLanding .landingHeader {
    gap: 18px;
    padding: 14px 32px;
  }

  .landingBrandCluster,
  .landingBrandLink,
  .landingHeaderBrandMark {
    height: 34px;
  }

  .landingHeaderBrandMark .landingBrandIcon {
    width: 34px;
    height: 34px;
  }

  .landingSkolkovoLogo {
    height: 34px;
    width: 116px;
  }

  .landingNav {
    gap: 20px;
  }

  .landingNavLink {
    font-size: 14px;
  }

  .landingLead {
    max-width: 600px;
    font-size: 26px;
    line-height: 36px;
  }

  .landingVisual {
    width: min(830px, calc(100vw - 96px));
  }

  .landingVisualDecorLeft {
    left: -6%;
    top: 11.7%;
    width: 26.3%;
  }

  .landingVisualDecorLeftSecond {
    left: -6%;
    top: 54.6%;
    width: 62.7%;
  }

  .landingVisualDecorRight {
    right: -6%;
    top: 16.7%;
    width: 37.5%;
  }

  .landingPricing {
    margin-top: 64px;
  }
}

@media (max-width: 950px) {
  .landingHeroBubble {
    display: none;
  }
}

@media (max-width: 820px) {
  .pageLanding .landingHeader {
    justify-content: space-between;
    min-height: 62px;
    padding: 12px 20px;
  }

  .landingBrandCluster {
    flex: 1 1 auto;
    gap: 14px;
  }

  .landingHeaderActions {
    flex: 0 0 auto;
  }

  .landingNav {
    display: none;
  }

  .landingLoginButton {
    min-height: 38px;
    padding: 6px 13px;
  }

  .landingHero {
    padding: 40px 20px 68px;
    background-position: center top;
  }

  .landingHeroInner {
    max-width: 100%;
  }

  .landingH1 {
    max-width: 620px;
    font-size: 34px;
    line-height: 42px;
  }

  .landingH1Line {
    white-space: normal;
  }

  .landingH1Accent {
    white-space: nowrap;
  }

  .landingLead {
    max-width: 460px;
    margin-top: 18px;
    font-size: 22px;
    line-height: 32px;
  }

  .landingCtas {
    margin-top: 20px;
  }

  .landingVisual {
    width: min(100%, calc(100vw - 40px));
    margin-top: 38px;
  }

  .landingVisualDecorLeft {
    left: 0;
    top: 12%;
    width: 32%;
  }

  .landingVisualDecorLeftSecond {
    left: 0;
    top: 58%;
    width: 58%;
  }

  .landingVisualDecorRight {
    right: 0;
    top: 18%;
    width: 36%;
  }

  .landingPricing {
    width: calc(100% - 40px);
    margin: 54px auto 72px;
  }

  .pageLanding .landingPricingTop {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 18px;
  }

  .pageLanding .landingH2 {
    font-size: 40px;
    line-height: 44px;
    text-align: left;
  }

  .pageLanding .landingPeriodSelector {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    height: auto;
  }

  .pageLanding .landingPeriodOption {
    min-width: 0;
    font-size: 13px;
  }

  .pageLanding .landingPricingGrid {
    flex-direction: column;
  }

  .pageLanding .landingPriceCard {
    min-height: auto;
    flex: 0 0 auto;
  }

  .landingFooterInner {
    width: calc(100% - 40px);
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .landingFooterBrandCluster {
    width: 100%;
    justify-content: flex-start;
    gap: 14px;
  }

  .landingFooterBrandMark {
    max-width: min(156px, 48vw);
    height: 34px;
  }

  .landingFooterBrandMark .landingBrandIcon {
    width: 34px;
    height: 34px;
  }

  .landingFooterBrandMark .landingBrandWordmark {
    font-size: 16px;
  }

  .landingFooterSkolkovoLogo {
    width: min(126px, 38vw);
    height: auto;
  }

  .landingFooterText {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .pageLanding .landingHeader {
    padding: 12px 16px;
  }

  .landingBrandCluster {
    gap: 12px;
  }

  .landingHeaderBrandMark {
    width: 38px;
  }

  .landingHeaderBrandMark .landingBrandWordmark {
    display: none;
  }

  .landingSkolkovoLogo {
    width: 112px;
  }

  .landingLoginButton {
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    gap: 0;
  }

  .landingLoginButton span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .landingHero {
    padding: 36px 16px 58px;
  }

  .landingH1 {
    font-size: 28px;
    line-height: 36px;
  }

  .landingLead {
    max-width: 360px;
    font-size: 18px;
    line-height: 28px;
  }

  .landingDemoButton {
    width: min(100%, 220px);
  }

  .landingVisual {
    width: min(100%, calc(100vw - 32px));
    margin-top: 32px;
  }

  .landingPricing {
    width: calc(100% - 32px);
    margin: 44px auto 60px;
  }

  .pageLanding .landingH2 {
    font-size: 34px;
    line-height: 40px;
  }

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

  .pageLanding .landingPriceAmount {
    font-size: 30px;
  }

  .pageLanding .landingPriceLead {
    font-size: 14px;
    line-height: 22px;
  }

  .landingFooterInner {
    width: calc(100% - 32px);
    align-items: center;
  }

  .landingFooterBrandCluster {
    justify-content: center;
    gap: 14px;
  }

  .landingFooterText {
    font-size: 11px;
    line-height: 18px;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .landingSkolkovoLogo {
    width: 98px;
  }

  .landingH1 {
    font-size: 26px;
    line-height: 34px;
  }

  .landingLead {
    font-size: 17px;
    line-height: 26px;
  }

  .landingDemoButton {
    min-width: 174px;
    font-size: 14px;
  }

  .pageLanding .landingPeriodOption {
    font-size: 12px;
  }

  .pageLanding .landingPriceAmount {
    font-size: 28px;
  }
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 18px 48px;
  position: relative;
  z-index: 2;
}

.pageSearch .container {
  max-width: none;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 24px;
}

.pageSearch .selBar {
  padding-left: 24px;
  padding-right: 24px;
}

.pageSearch .selBarInner {
  width: fit-content;
  max-width: calc(100vw - 48px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--search-control-border);
  background: var(--search-control-border);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.pageSearch #selAnalyze {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: auto;
  min-height: 52px;
  padding: 16px;
  border: 0;
  border-radius: 10px;
  background: var(--ctaGradient);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0;
  white-space: nowrap;
}

.pageSearch .selBarCount {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0;
}

.pageSearch #selAnalyze::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  background: url("/static/theme-icons/dark/create-card-sparkles.png") center / contain no-repeat;
}

.pageSearch #selAnalyze:hover,
.pageSearch #selAnalyze:focus-visible {
  filter: brightness(1.04);
}

.pageSearch .panel,
.pageGeneration .panel,
.pageProfile .panel {
  margin-bottom: 0;
  background: var(--search-holder-bg);
  border: none;
  border-radius: var(--search-holder-radius);
  box-shadow: none;
  backdrop-filter: none;
}

.pageSearch #searchPanel {
  position: relative;
  z-index: 25;
  margin-top: 6px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.pageSearch #searchPanel.isHistoryOpen {
  z-index: 90;
}

.pageSearch .searchMain {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  gap: 14px;
  align-items: stretch;
}

.pageSearch::after,
.pageGeneration::after,
.pageProfile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  aspect-ratio: 1297 / 309;
  background: url("/static/theme-images/dark/workspace-bottom-glow.png") center bottom / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 1;
}

.pageSearch .projectsPanel,
.pageGeneration .projectsPanel,
.pageProfile .projectsPanel {
  flex: 0 0 var(--workspace-sidebar-expanded-w);
  min-height: 0;
  min-width: var(--workspace-sidebar-expanded-w);
  max-width: var(--workspace-sidebar-expanded-w);
  padding: 14px 10px 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.workspaceSidebar {
  --workspace-sidebar-pad-x: 6px;
  --workspace-sidebar-project-inset-x: 6px;
  --workspace-sidebar-hover-bg: #525252;
  display: flex;
  flex-direction: column;
}

.workspaceSidebarHeader {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 var(--workspace-sidebar-pad-x);
}

.workspaceSidebarBrand,
.workspaceSidebarProfile {
  min-width: 0;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  border-radius: 8px;
}

.workspaceSidebarBrand {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  margin-left: var(--workspace-sidebar-project-inset-x);
}

.workspaceSidebarLogo {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  object-fit: contain;
}

.workspaceSidebarBrandText {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  align-self: stretch;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-family: "LINE Seed JP", var(--sans);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.workspaceSidebarSectionHead {
  flex: 0 0 auto;
  margin-top: 14px;
  padding: 0 var(--workspace-sidebar-pad-x) 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.workspaceSidebarSectionTitle {
  min-width: 0;
  color: #e5e5e5;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  min-height: 16px;
  letter-spacing: 0;
  white-space: nowrap;
}

.workspaceSidebarSectionAction {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(229, 229, 229, 0.82);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.92;
}

.workspaceSidebarSectionAction:hover,
.workspaceSidebarSectionAction:focus-visible {
  color: rgba(255, 255, 255, 0.98);
}

.workspaceSidebarSectionAction:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.18);
  outline-offset: 3px;
  border-radius: 6px;
}

.workspaceSidebarPlusIcon {
  position: relative;
  width: 14px;
  height: 14px;
  display: block;
}

.workspaceSidebarPlusLine {
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.workspaceSidebarPlusLine.isHorizontal {
  width: 14px;
  height: 1.5px;
}

.workspaceSidebarPlusLine.isVertical {
  width: 1.5px;
  height: 14px;
}

.workspaceSidebarIconBtn {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.workspaceSidebarIconBtn:hover,
.workspaceSidebarIconBtn:focus-visible {
  border-color: rgba(255, 255, 255, 0.1);
  background: var(--workspace-sidebar-hover-bg);
}

.workspaceSidebarIconBtn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.workspaceSidebarExpandBtn {
  display: none;
  margin-left: var(--workspace-sidebar-pad-x);
  margin-top: 14px;
}

.workspaceSidebarBody {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.workspaceSidebarFooter {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px var(--workspace-sidebar-pad-x) 0;
}

.workspaceSidebarProfile {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px;
}

.workspaceSidebarProfile:hover,
.workspaceSidebarProfile:focus-visible {
  background: var(--workspace-sidebar-hover-bg);
}

.workspaceSidebarUserpic {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--avatarText, #f5f5f5);
  background: var(--avatarBg, #404040);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.workspaceSidebarUserpic.tone0 {
  --avatarBg: #3b2f68;
  --avatarText: #f2eaff;
}

.workspaceSidebarUserpic.tone1 {
  --avatarBg: #1f4d47;
  --avatarText: #ddfff7;
}

.workspaceSidebarUserpic.tone2 {
  --avatarBg: #57364b;
  --avatarText: #ffe8f5;
}

.workspaceSidebarUserpic.tone3 {
  --avatarBg: #274566;
  --avatarText: #e4f2ff;
}

.workspaceSidebarUserpic.tone4 {
  --avatarBg: #514326;
  --avatarText: #fff3d6;
}

.workspaceSidebarUserpic.tone5 {
  --avatarBg: #493851;
  --avatarText: #f9e9ff;
}

.workspaceSidebarUserInitials {
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.workspaceSidebarUserText {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.workspaceSidebarUserName,
.workspaceSidebarUserEmail {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspaceSidebarUserName {
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.15;
}

.workspaceSidebarUserEmail {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  line-height: 1.15;
}

.workspaceSidebarFeedbackBtn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  min-height: 0;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid #404040;
  background: #171717;
  color: rgba(255, 255, 255, 0.88);
  box-shadow: none;
}

.workspaceSidebarFeedbackInner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-height: 32px;
  border-radius: 8px;
}

.workspaceSidebarFeedbackBtn img {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  object-fit: contain;
}

.workspaceSidebarFeedbackBtn:hover,
.workspaceSidebarFeedbackBtn:focus-visible {
  border-color: #525252;
  background: #262626;
}

.workspaceSidebar.isCollapsed.projectsPanel {
  flex: 0 0 var(--workspace-sidebar-collapsed-w);
  min-width: var(--workspace-sidebar-collapsed-w);
  max-width: var(--workspace-sidebar-collapsed-w);
  align-items: center;
  padding: 14px 8px 8px;
}

.workspaceSidebar.isCollapsed .workspaceSidebarHeader,
.workspaceSidebar.isCollapsed .workspaceSidebarBody,
.workspaceSidebar.isCollapsed .workspaceSidebarFooter,
.workspaceSidebar.isCollapsed .workspaceSidebarProfile {
  width: 100%;
}

.workspaceSidebar.isCollapsed .workspaceSidebarHeader {
  justify-content: center;
  padding: 0;
}

.workspaceSidebar.isCollapsed .workspaceSidebarBrand {
  justify-content: center;
  width: 100%;
  margin-left: 0;
}

.workspaceSidebar.isCollapsed .workspaceSidebarBrandText,
.workspaceSidebar.isCollapsed .workspaceSidebarCollapseBtn,
.workspaceSidebar.isCollapsed .workspaceSidebarUserText,
.workspaceSidebar.isCollapsed .projectsItemText,
.workspaceSidebar.isCollapsed .projectsItemMenuWrap,
.workspaceSidebar.isCollapsed .projectsEmptyTitle,
.workspaceSidebar.isCollapsed .projectsEmptyText,
.workspaceSidebar.isCollapsed .projectsListLoader span:not(.sidebarSparklesLoader) {
  display: none;
}

.workspaceSidebar.isCollapsed .workspaceSidebarExpandBtn {
  order: 1;
  display: inline-flex;
  margin-left: 0;
  margin-top: 0;
}

.workspaceSidebar.isCollapsed .workspaceSidebarSectionHead {
  order: 2;
  width: 100%;
  margin-top: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.workspaceSidebar.isCollapsed .workspaceSidebarSectionTitle {
  display: none;
}

.workspaceSidebar.isCollapsed .workspaceSidebarSectionAction {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  box-shadow: none;
  transition: none;
}

.workspaceSidebar.isCollapsed .workspaceSidebarSectionAction:hover,
.workspaceSidebar.isCollapsed .workspaceSidebarSectionAction:focus-visible {
  background: transparent;
}

.workspaceSidebar.isCollapsed .workspaceSidebarSectionAction:focus-visible {
  outline: none;
  box-shadow: none;
}

.workspaceSidebar.isCollapsed .workspaceSidebarBody {
  order: 3;
}

.workspaceSidebar.isCollapsed .workspaceSidebarFooter {
  flex-direction: column-reverse;
  justify-content: center;
  order: 4;
  padding: 2px 0 0;
}

.workspaceSidebar.isCollapsed .workspaceSidebarProfile {
  justify-content: center;
  padding: 0;
}

.workspaceSidebar.isCollapsed .projectsEmpty {
  min-height: 42px;
  border: none;
  background: transparent;
  padding: 0;
}

.workspaceSidebar .projectsList {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 0;
  margin-right: -10px;
}

.workspaceSidebar .projectsListInner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: var(--workspace-sidebar-pad-x);
  padding-right: 11px;
}

.workspaceSidebar.isCollapsed .projectsList {
  margin-right: 0;
  scrollbar-gutter: auto;
}

.workspaceSidebar.isCollapsed .projectsListInner {
  align-items: center;
  padding-left: 0;
  padding-right: 0;
}

.workspaceSidebar .projectsItemBtn {
  width: 100%;
  min-width: 0;
  text-align: left;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  border-radius: var(--search-project-radius);
  padding: 3px 28px 3px var(--workspace-sidebar-project-inset-x);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  flex-shrink: 0;
}

.workspaceSidebar.isCollapsed .projectsItemBtn {
  justify-content: center;
  min-height: 48px;
  padding: 3px 0;
}

.workspaceSidebar .projectsThumb {
  flex: 0 0 auto;
  width: 36px;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
}

.workspaceSidebar .projectsThumb.noGen {
  border-color: rgba(255, 92, 124, 0.38);
}

.workspaceSidebar .projectsThumbEmpty {
  display: grid;
  place-items: center;
}

.workspaceSidebar .projectsThumbMark {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18px;
  color: rgba(255, 255, 255, 0.72);
}

.workspaceSidebar .projectsItemText {
  min-width: 0;
  display: flex;
  align-items: center;
  min-height: 100%;
}

.workspaceSidebar .projectsItem {
  position: relative;
  flex: 0 0 auto;
  border: none;
  background: transparent;
  border-radius: var(--search-project-radius);
  overflow: visible;
}

.workspaceSidebar .projectsItem:hover,
.workspaceSidebar .projectsItem.isActive {
  background: var(--search-project-hover-bg);
}

.workspaceSidebar .projectsItemTitle {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workspaceSidebar .projectsItemMenuWrap {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  z-index: 2;
}

.workspaceSidebar .projectsItemMenuBtn {
  width: 24px;
  height: 24px;
  background: transparent;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.workspaceSidebar .projectsItemMenuBtn img {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
  opacity: 0.78;
}

.workspaceSidebar .projectsItemMenuBtn:hover,
.workspaceSidebar .projectsItemMenuBtn:focus-visible,
.workspaceSidebar .projectsItemMenuWrap.isOpen .projectsItemMenuBtn {
  background: transparent;
}

.workspaceSidebar .projectsItemMenuBtn:hover img,
.workspaceSidebar .projectsItemMenuBtn:focus-visible img,
.workspaceSidebar .projectsItemMenuWrap.isOpen .projectsItemMenuBtn img {
  opacity: 0.92;
}

.workspaceSidebar .projectsItemMenuBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.workspaceSidebar .projectsItemMenuWrap.isOpen .projectsItemMenuBtn img,
.workspaceSidebar .projectsItemMenuBtn[aria-expanded="true"] img {
  opacity: 0.92;
}

.projectsItemMenuDropdown {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1200;
  width: 146px;
  padding: 5px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #171717;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  display: grid;
  gap: 2px;
}

.projectsItemMenuDropdown[hidden] {
  display: none;
}

.projectsItemMenuAction {
  width: 100%;
  min-height: 26px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 760;
  text-align: left;
  cursor: pointer;
}

.projectsItemMenuAction:hover:not(:disabled),
.projectsItemMenuAction:focus-visible:not(:disabled) {
  background: #262626;
  border-color: var(--border);
}

.projectsItemMenuAction:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.workspaceSidebar .projectsListLoader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 760;
}

.workspaceSidebar .projectsListLoader .sidebarSparklesLoader {
  width: 16px;
  height: 16px;
}

.workspaceSidebar .projectsEmpty {
  min-height: 140px;
  flex: 1 1 auto;
  border: none;
  background: transparent;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 14px;
  text-align: center;
}

.workspaceSidebar .projectsEmptyTitle {
  font-size: 14px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.88);
}

.workspaceSidebar .projectsEmptyText {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.62);
  max-width: 220px;
}

.workspaceSidebar .projectsEmpty > .sidebarSparklesLoader {
  width: 24px;
  height: 24px;
}

.pageSearch .searchRight {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pageSearch .resultsFixed {
  flex: 0 0 auto;
}

.pageSearch .resultsScroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--selBarH) + 8px);
}

.pageSearch.isEmpty .resultsScroll {
  overflow-y: hidden;
  padding-bottom: 0;
}

.pageSearch.isCreatingProject #searchPanel,
.pageSearch.isCreatingProject #searchMain,
.pageSearch.isCreatingProject #selBar,
.pageSearch.isCreatingProject #backTopBtn {
  display: none !important;
}

.pageSearch .resultsToolsPanel {
  margin-bottom: 8px;
}

.pageSearch .resultsPanel {
  margin-top: 6px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.pageSearch .emptyWrap {
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0;
  flex: 1 1 auto;
}

.pageSearch.isEmpty .emptyWrap {
  place-items: center;
  padding: 0;
}

.pageSearch .emptyStage {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.pageSearch.isEmpty .emptyStage {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
}

.pageSearch .emptyChat {
  flex: 1 1 auto;
  margin: 0;
  align-self: stretch;
  width: 100%;
  box-shadow: none;
}

.pageSearch.isEmpty .emptyChat {
  width: 100%;
  margin: 0;
}

.pageSearch .pageFooter.pageFooterInScroll {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  height: auto;
  line-height: 14px;
  margin: 0;
  padding: 10px 0 6px;
  margin-top: auto;
}

.pageSearch .pageFooter.pageFooterInEmpty {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  height: auto;
  line-height: 14px;
  margin: 0;
  padding: 18px 0 22px;
  margin-top: auto;
}

.pageSearch.isEmpty .pageFooter.pageFooterInScroll {
  display: none;
}

.pageSearch:not(.isEmpty) .pageFooter.pageFooterInEmpty {
  display: none;
}

.pageSearch .backTopBtn {
  right: 34px;
  font-weight: 950;
  font-size: 22px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.pageLoader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 0 18px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: auto;
  background: rgba(23, 23, 23, 0.94);
  backdrop-filter: none;
}

.pageLoader.hide {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

.pageLoaderText {
  max-width: min(320px, calc(100vw - 56px));
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.pageLoaderIcon {
  width: 48px;
  height: 48px;
  display: block;
  background: url("/static/theme-icons/dark/create-card-sparkles.png") center / contain no-repeat;
  animation: pageLoaderIconPulse 3.2s ease-in-out infinite;
}

.sidebarSparklesLoader {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: block;
  background: url("/static/theme-icons/dark/create-card-sparkles.png") center / contain no-repeat;
  animation: pageLoaderIconPulse 3.2s ease-in-out infinite;
}

@keyframes pageLoaderIconPulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.96);
  }

  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pageLoaderIcon {
    animation: none;
  }
}

.spinnerLg {
  width: 68px;
  height: 68px;
  border-width: 5px;
}

.pageAuth .container {
  max-width: 560px;
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 16px;
}

.authBrand {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  padding: 8px 12px;
  border-radius: 10px;
}

.authBrandStacked {
  flex-direction: column;
  gap: 8px;
  padding: 0;
  text-align: center;
}

.authBrand:hover {
  opacity: 0.95;
}

.authBrand:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.16);
}

.authBrandLogo {
  width: 46px;
  height: 46px;
}

.authBrandName {
  font-family: "LINE Seed JP", var(--sans);
  display: inline-flex;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.86);
}

.authBrandStacked .authBrandLogo {
  width: 56px;
  height: 56px;
}

.authBrandStacked .authBrandName {
  color: #fafafa;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.pageProfile .container {
  max-width: none;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px 24px;
}

.pageProjects .container {
  max-width: 1360px;
}

.profileShell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: stretch;
  gap: 14px;
}

.profileMain {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profileTopBar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: var(--workspace-top-nav-offset, 0) 0 14px;
  border-bottom: 1px solid #404040;
}

.profileTopActions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.profileTopAction {
  min-width: 86px;
  justify-content: center;
}

.profileContent {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 4px 28px 0;
}

.profileSettingsTitle {
  max-width: 100%;
  margin: 0 0 14px;
  overflow: hidden;
  color: #e5e5e5;
  text-overflow: ellipsis;
  font-family: Inter, var(--sans);
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 0;
  white-space: nowrap;
}

.profileTabs {
  width: fit-content;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 112px);
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  border-radius: 10px;
  background: #262626;
  overflow-x: auto;
}

.profileTabsRow {
  width: min(100%, 720px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.profileTabsRow .profileTabs {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.profileCancelSubscriptionBtn {
  display: inline-flex;
  min-width: 176px;
  min-height: 40px;
  padding: 6px 15px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  border: 0;
  background: #262626;
  color: #e5e5e5;
  font-family: Inter, var(--sans);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0;
  cursor: pointer;
}

.profileCancelSubscriptionBtn:hover,
.profileCancelSubscriptionBtn:focus-visible {
  background: #303030;
  outline: none;
}

.profileCancelSubscriptionBtn:disabled {
  cursor: wait;
  opacity: 0.66;
}

.profileTab {
  display: flex;
  width: 100%;
  min-height: 32px;
  padding: 6px 8px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #a3a3a3;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0;
  white-space: nowrap;
}

.profileTab:hover,
.profileTab:focus-visible {
  background: #303030;
  color: #e5e5e5;
  outline: none;
}

.profileTab.isActive {
  background: #171717;
  color: #e5e5e5;
}

.profileTabPanel {
  width: min(100%, 720px);
}

.profileLegalBlock {
  margin-top: 16px;
  padding-top: 4px;
}

.profileLegalTitle {
  margin-bottom: 4px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brandLink {
  text-decoration: none;
  color: inherit;
}

.brandLink:hover {
  opacity: 0.95;
}

.brandLink:focus-visible {
  outline: none;
  border-radius: 10px;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

.brandLogo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex: 0 0 auto;
}

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

.headerRight .a {
  min-width: 104px;
  justify-content: center;
}

.title {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subtitle {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.3;
}

.panel {
  background: var(--panelBg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  backdrop-filter: none;
  margin-bottom: 14px;
}

.pageAuth .panel,
.pageAnalysis .panel,
.pageProjects .panel {
  border: 0;
  background: #262626;
  box-shadow: none;
}

.authStack {
  display: grid;
  gap: 14px;
}

.authModeTabs {
  display: flex;
  padding: 3px;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  border-radius: 10px;
  background: #404040;
}

.authModeTab {
  display: flex;
  min-width: 0;
  min-height: 36px;
  padding: 8px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex: 1 0 0;
  border-radius: 8px;
  color: #d4d4d4;
  text-decoration: none;
  font-family: Inter, var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0;
  white-space: nowrap;
}

.authModeTab:hover,
.authModeTab:focus-visible {
  color: #fafafa;
  outline: none;
}

.authModeTab.isActive {
  background: #171717;
  color: #fafafa;
}

.authPanel {
  margin-bottom: 0;
}

.authTitle {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-bottom: 4px;
}

.authRecoveryPanel .authTitle {
  margin-bottom: 12px;
}

.authSub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
  margin-bottom: 12px;
}

.authFormNote {
  color: #a3a3a3;
  font-size: 13px;
  line-height: 1.35;
}

.authInlineLink {
  justify-self: start;
  width: max-content;
  margin: -8px 0 -9px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
}

.formStack .authInlineLink + .btnPrimary {
  margin-top: 0;
}

.authInlineLink:hover {
  color: rgba(255, 255, 255, 0.96);
}

.authInlineLink:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.authInlineLink:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.14);
}

.inlineTextAction {
  display: inline;
  margin: 0 0 0 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font: inherit;
  font-weight: 800;
  line-height: inherit;
  text-decoration: none;
  cursor: pointer;
}

.inlineTextAction:hover {
  color: rgba(255, 255, 255, 0.98);
}

.inlineTextAction:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.14);
}

.authCenterPanel {
  text-align: center;
}

.authCenterLoader {
  display: grid;
  place-items: center;
  min-height: 70px;
  margin: 8px 0 14px;
}

form {
  margin: 0;
}

.formStack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: end;
}

.formStack .btnPrimary {
  margin-top: 10px;
}

.legalConsents {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px;
}

.legalConsent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.35;
}

.legalCheck {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: rgba(124, 92, 255, 0.95);
}

.legalConsentText {
  min-width: 0;
}

.legalLink {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-bottom: 1px dashed #525252;
}

.legalLink:hover {
  border-bottom-color: rgba(255, 255, 255, 0.78);
}

.formStack .a {
  justify-self: start;
}

label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

input,
select,
button {
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 0 40px 0 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%270 0 24 24%27%3E%3Cpath fill=%27%23ffffff%27 fill-opacity=%270.68%27 d=%27M7 10l5 5 5-5z%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 12px;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

input[readonly] {
  opacity: 0.86;
  cursor: default;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text) !important;
  transition: background-color 9999s ease-out 0s;
  -webkit-box-shadow: 0 0 0 1000px var(--card) inset !important;
  box-shadow: 0 0 0 1000px var(--card) inset !important;
  border: 1px solid var(--border);
}

input:focus,
select:focus,
button:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

button {
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.15s ease, border-color 0.12s ease;
}

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

button[disabled] {
  cursor: not-allowed;
  filter: grayscale(0.3) brightness(0.9);
}

.btnPrimary {
  border: 0;
  background: #262626;
  font-weight: 800;
  letter-spacing: 0;
  padding: 0 16px;
}

.btnDanger {
  border: 1px solid rgba(255, 92, 124, 0.42);
  background: #3a1f27;
  font-weight: 850;
  letter-spacing: 0;
  padding: 0 16px;
}

.btnChip {
  border: 1px solid var(--border);
  background: var(--card);
  font-weight: 800;
  letter-spacing: 0;
  padding: 0 16px;
}

.btnSecondary {
  border: 1px solid var(--border);
  background: var(--card);
  font-weight: 750;
  padding: 0 16px;
}

.btnPrimary,
.btnDanger,
.btnSecondary,
.btnChip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}

.btnPrimary:hover {
  background: #303030;
}

.authSubmitLight {
  display: flex;
  height: auto;
  min-height: 40px;
  padding: 10px 16px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  align-self: stretch;
  border: 0;
  border-radius: 10px;
  background: #e5e5e5;
  box-shadow: none;
  color: #171717;
  font-family: Inter, var(--sans);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0;
}

.authSubmitLight:hover,
.authSubmitLight:focus-visible {
  background: #f5f5f5;
  color: #171717;
  filter: none;
}

.authSubmitLight .spinner {
  border-color: rgba(23, 23, 23, 0.2);
  border-top-color: rgba(23, 23, 23, 0.82);
  border-right-color: rgba(23, 23, 23, 0.55);
}

.btnPrimaryCta {
  border: 0;
  background: var(--ctaGradient);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.btnPrimaryCta:hover,
.btnPrimaryCta:focus-visible {
  background: linear-gradient(112deg, #d7beff 4.94%, #5a14c2 127.67%);
  color: #ffffff;
}

#payBtn,
#generateBtn,
#startBtn,
.pageProjects .projectsEmpty .btnPrimary {
  border: 0;
  background: var(--ctaGradient);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0;
}

#payBtn:hover,
#payBtn:focus-visible,
#generateBtn:hover,
#generateBtn:focus-visible,
#startBtn:hover,
#startBtn:focus-visible,
.pageProjects .projectsEmpty .btnPrimary:hover,
.pageProjects .projectsEmpty .btnPrimary:focus-visible {
  background: var(--ctaGradient);
  filter: brightness(1.04);
}

.btnSecondary:hover {
  border-color: #525252;
  background: #262626;
}

.btnDanger:hover {
  border-color: rgba(255, 92, 124, 0.75);
}

.btnChip:hover {
  border-color: #525252;
  background: #262626;
}

.btnBlock {
  width: 100%;
}

.subscriptionCalc {
  margin: 16px 0 10px;
  text-align: center;
}

.subscriptionCalcTitle {
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 900;
}

.subscriptionCalcValue {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.paymentSuccessPanel {
  text-align: center;
}

.paymentSuccessMark {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 4px auto 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #262626;
  color: rgba(226, 221, 255, 0.98);
  font-size: 30px;
  font-weight: 950;
}

.paymentSuccessInfo {
  display: grid;
  gap: 10px;
  margin: 18px 0 16px;
  text-align: left;
}

.paymentSuccessInfo > div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
}

.paymentSuccessInfo span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}

.paymentSuccessInfo strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
}

.pageSubscriptions .subscriptionsPricing {
  border: 0;
  background: #262626;
  box-shadow: none;
  padding: 16px;
  width: min(100%, 1284px);
}

.pageSubscriptions .profileTabsRow {
  width: min(100%, 1284px);
}

.subscriptionTariffHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.subscriptionCurrentInfo {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.subscriptionCurrentTitle {
  max-width: 100%;
  overflow: hidden;
  color: #e5e5e5;
  text-overflow: ellipsis;
  font-family: Inter, var(--sans);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0;
  white-space: nowrap;
}

.subscriptionCurrentText {
  max-width: 100%;
  overflow: hidden;
  color: #a3a3a3;
  text-overflow: ellipsis;
  font-family: Inter, var(--sans);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
  white-space: nowrap;
}

.pageSubscriptions .landingPeriodSelector {
  display: grid;
  grid-template-columns: repeat(4, 124px);
  flex: 0 0 auto;
  width: max-content;
  height: 36px;
  margin: 0;
  padding: 3px;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: 10px;
  border: 0;
  background: #171717;
  box-shadow: none;
}

.pageSubscriptions .landingPeriodOption {
  display: flex;
  width: 100%;
  height: 29px;
  min-height: 0;
  padding: 4px 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  border-color: transparent;
  background: transparent;
  color: rgba(250, 250, 250, 0.76);
  font-family: Unbounded, var(--sans);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
}

.pageSubscriptions .landingPeriodOption:hover {
  background: transparent;
  color: #fafafa;
}

.pageSubscriptions .landingPeriodOption[aria-pressed="true"] {
  border-color: #404040;
  background: #262626;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  color: #fafafa;
}

.pageSubscriptions .landingPricingGrid {
  display: flex;
  grid-template-columns: none;
  gap: 16px;
  align-items: stretch;
}

.pageSubscriptions .landingPriceCard {
  position: relative;
  min-height: 354px;
  padding: 16px;
  flex: 1 0 0;
  align-self: stretch;
  border-radius: 10px;
  box-shadow: none;
  opacity: 1;
  cursor: pointer;
}

.pageSubscriptions .landingPriceCardBasic {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  border: 1px solid #0090ff;
  overflow: hidden;
  background:
    url("/static/landing/holder-grid.png") -496.774px -0.379px / 267.297% 142.076% no-repeat,
    linear-gradient(180deg, #010002 0%, #213e99 100%),
    rgba(0, 0, 0, 0.06);
  background-blend-mode: soft-light, normal, normal;
}

.pageSubscriptions .landingPriceCardAdvanced {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
}

.pageSubscriptions .landingPriceCardAdvanced .landingPriceName {
  color: #404040;
  font-family: "Unbounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0;
}

.pageSubscriptions .landingPriceCardAdvanced .landingPriceAmount,
.pageSubscriptions .landingPriceCardAdvanced .landingPriceUnit,
.pageSubscriptions .landingPriceCardAdvanced .landingList {
  color: #404040;
}

.pageSubscriptions .landingBasicStatusIcon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 60.429px;
  height: 66px;
  object-fit: contain;
}

.pageSubscriptions .landingPriceBody {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.pageSubscriptions .landingPriceCardAdvanced .landingPriceBody {
  width: 100%;
  padding-top: 0;
}

.pageSubscriptions .landingPriceName {
  max-width: calc(100% - 86px);
}

.pageSubscriptions .landingPriceValue {
  margin: 8px 0 0;
}

.pageSubscriptions .landingPriceDivider {
  width: min(593px, 100%);
  height: 1px;
  margin: 16px 0 18px;
  background: #282729;
}

.pageSubscriptions .landingList {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pageSubscriptions .landingList li {
  position: relative;
  margin: 0;
  padding-left: 24px;
}

.pageSubscriptions .landingList li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  background: url("/static/landing/line-ok-valid.png") center / contain no-repeat;
}

.pageSubscriptions .landingPriceCardAdvanced .landingList li::before {
  background-image: url("/static/landing/line-ok-not-valid.png");
}

.pageSubscriptions .landingPriceLead {
  align-self: stretch;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  box-sizing: border-box;
  max-width: none;
  margin: 0 0 14px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(34, 197, 94, 0.42);
  background: rgba(34, 197, 94, 0.045);
  color: #22c55e;
  font-family: "Unbounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0;
}

.pageSubscriptions .landingPriceLeadIcon {
  flex: 0 0 auto;
  width: 20.007px;
  height: 22.005px;
  margin-top: 1px;
  object-fit: contain;
}

.pageSubscriptions .landingPriceSoonBadge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  padding: 4px 8px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 8px;
  background: #262626;
  color: #fafafa;
  font-family: Unbounded, var(--sans);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
  text-align: center;
}

.pageSubscriptions .landingPriceSoonIcon {
  width: 12px;
  height: 14.667px;
  object-fit: contain;
}

.pageSubscriptions .subscriptionCalc {
  margin: 14px 0 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 0;
  background: #171717;
}

.subscriptionConsent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #171717;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.4;
}

.subscriptionConsent .legalCheck {
  flex: 0 0 auto;
}

#payBtn:disabled,
#payBtn:disabled:hover,
#payBtn:disabled:focus-visible {
  background: #404040;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.5);
  filter: none;
  transform: none;
}

.subscriptionsPricing .landingPriceCard.disabled {
  cursor: not-allowed;
}

.a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #262626;
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  cursor: pointer;
}

.a:hover {
  border-color: #525252;
  background: #303030;
}

.a.profileTopAction,
.a.profileTopAction:hover,
.a.profileTopAction:focus-visible {
  border: 0;
}

.pageProfile #profileBtn,
.pageProfile #pwBtn {
  border: 0;
  background: var(--ctaGradient);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0;
}

.pageProfile #profileBtn:hover,
.pageProfile #profileBtn:focus-visible,
.pageProfile #pwBtn:hover,
.pageProfile #pwBtn:focus-visible {
  border: 0;
  background: var(--ctaGradient);
  filter: brightness(1.04);
}

.msg {
  display: none;
  margin-bottom: 12px;
  padding: 11px 12px 11px 42px;
  position: relative;
  border-radius: 10px;
  border: 1px solid rgba(51, 214, 166, 0.3);
  background: #262626;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.35;
}

.msg::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(51, 214, 166, 0.9);
  box-shadow: 0 0 0 4px rgba(51, 214, 166, 0.12);
}

.msg.warn {
  border-color: rgba(255, 92, 124, 0.36);
  background: #262626;
}

.msg.warn::before {
  background: rgba(255, 92, 124, 0.9);
  box-shadow: 0 0 0 4px rgba(255, 92, 124, 0.12);
}

.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.mpPanel {
  position: relative;
  z-index: 20;
}

.mpWrap {
  position: relative;
}

.mpSelect {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}

.mpSelect #mpSelectText {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mpSelect:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
  outline: none;
}

.mpIcon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}

.mpChev {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

.mpMenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 200;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: none;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
}

.mpOpt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
}

.mpOpt:hover {
  background: #262626;
}

.pageSearch .mpOpt {
  border-radius: 8px;
}

.pageSearch .mpOpt:hover {
  background: var(--search-holder-bg);
}

.mpOpt.disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.mpOpt.disabled:hover {
  background: transparent;
}

.mpBadge {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted2);
}

.dateWrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
}

.dateWrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

.dateWrap.isInvalid {
  border-color: rgba(255, 92, 124, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 92, 124, 0.14);
}

.dateText {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 12px;
  outline: none;
}

.dateText:focus {
  border: 0;
  box-shadow: none;
}

.dateCal {
  flex: 0 0 auto;
  width: 42px;
  height: 100%;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  border-left: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dateCal:hover {
  background: #262626;
}

.dateCal::before {
  content: "";
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2716%27 height=%2716%27 viewBox=%270 0 24 24%27%3E%3Cpath fill=%27%23ffffff%27 fill-opacity=%270.78%27 d=%27M7 2a1 1 0 0 1 1 1v1h8V3a1 1 0 1 1 2 0v1h1a3 3 0 0 1 3 3v13a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h1V3a1 1 0 0 1 1-1zm12 6H5v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V8z%27/%3E%3C/svg%3E");
}

.dateNative {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.searchDatePicker {
  position: fixed;
  z-index: 320;
  width: min(280px, calc(100vw - 24px));
  padding: 12px;
  border: 1px solid var(--search-control-border);
  border-radius: 14px;
  background: var(--search-holder-bg);
  color: var(--text);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.58);
}

.searchDatePicker button {
  font: inherit;
}

.searchDatePickerHeader {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.searchDatePickerTitle {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 28px;
  text-align: center;
}

.searchDatePickerNav {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.searchDatePickerNav::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--text);
  border-bottom: 1.5px solid var(--text);
  transform: rotate(135deg);
}

.searchDatePickerNav.isNext::before {
  left: 8px;
  transform: rotate(-45deg);
}

.searchDatePickerNav:hover:not(:disabled) {
  background: var(--search-control-border);
}

.searchDatePickerNav:disabled {
  opacity: 0.28;
  cursor: default;
}

.searchDatePickerWeekdays,
.searchDatePickerGrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.searchDatePickerWeekdays {
  margin-bottom: 4px;
}

.searchDatePickerWeekdays span {
  color: var(--muted2);
  font-size: 10px;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
}

.searchDatePickerDay {
  min-width: 0;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
}

.searchDatePickerDay:hover:not(:disabled) {
  background: var(--search-control-border);
}

.searchDatePickerDay.isToday {
  border-color: #737373;
}

.searchDatePickerDay.isSelected {
  border-color: #7c3aed;
  background: #7c3aed;
  color: #171717;
}

.searchDatePickerDay:disabled {
  color: var(--muted2);
  opacity: 0.34;
  cursor: default;
}

.qInputWrap {
  position: relative;
  display: block;
}

.qInputWrap > input {
  width: 100%;
}

.pageSearch #searchForm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content auto;
  gap: 10px;
  align-items: center;
}

.pageSearch .searchQueryGroup {
  min-width: 0;
  height: 40px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  border: 1px solid var(--search-control-border, rgba(255, 255, 255, 0.14));
  background: var(--search-control-bg, rgba(255, 255, 255, 0.06));
}

.pageSearch .searchMarketplaceWrap {
  flex: 0 0 52px;
  align-self: stretch;
}

.pageSearch .searchMarketplaceWrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: var(--search-control-border);
}

.pageSearch .searchQueryGroup .mpSelect {
  width: 52px;
  height: 100%;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 0;
  border-radius: 8px 0 0 8px;
  background: transparent;
}

.pageSearch .searchQueryGroup .mpSelect:focus-visible {
  box-shadow: none;
}

.pageSearch .searchQueryGroup #mpSelectText {
  display: none;
}

.pageSearch .searchQueryGroup .mpChev {
  display: inline-flex;
  margin-left: 0;
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
}

.pageSearch .searchMarketplaceWrap .mpMenu {
  right: auto;
  width: 230px;
  border-color: var(--search-control-border);
  border-radius: 8px;
  background: var(--search-control-bg);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.45);
  backdrop-filter: none;
}

.pageSearch .searchQueryInputWrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.pageSearch .searchQueryInputWrap.isHistoryOpen {
  z-index: 90;
}

.pageSearch .searchQueryInputWrap > input {
  height: 38px;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: transparent;
  padding: 0 12px;
}

.pageSearch .searchQueryInputWrap > input:focus {
  border: 0;
  box-shadow: none;
}

.pageSearch .searchDateGroup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pageSearch .searchDateGroup .dateWrap {
  width: var(--dateColW);
  height: 40px;
  gap: 2px;
  padding: 8px 4px 8px 8px;
  border-radius: 8px;
  border: 1px solid var(--search-control-border);
  background: var(--search-control-bg);
}

.pageSearch .searchDateGroup .dateWrap:focus-within {
  border-color: var(--search-control-border);
  box-shadow: none;
}

.pageSearch .searchDateGroup .dateText {
  flex: 0 0 78px;
  width: 78px;
  padding: 0;
}

.pageSearch .searchDateGroup .dateCal {
  width: 16px;
  border-left: 0;
}

.pageSearch .searchDateDash {
  color: #ffffff;
  line-height: 1;
}

.pageSearch #btn {
  min-height: 40px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--search-holder-bg);
  box-shadow: none;
  letter-spacing: 0;
  font-weight: 800;
}

.pageSearch #btn:hover {
  background: #303030;
}

.qSuggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 60;
  border-radius: 8px;
  border: 1px solid var(--search-control-border);
  background: var(--search-control-bg);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.qSuggestInner {
  max-height: 320px;
  overflow: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.qSuggestItem {
  border-radius: 0;
  border: none;
  background: transparent;
}

.qSuggestItem:hover {
  background: var(--search-holder-bg);
}

.qSuggestBtn {
  width: 100%;
  text-align: left;
  height: auto;
  min-height: 54px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  border-radius: 0;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.qSuggestTitle {
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qSuggestMeta {
  font-size: 11px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qSuggestEmpty {
  padding: 10px 10px;
  font-size: 12px;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.62);
}

.qSuggestFooter {
  border-top: 1px solid var(--search-control-border);
  padding: 10px 10px;
  display: flex;
  justify-content: flex-end;
}

.qSuggestClearBtn {
  border: none;
  background: transparent;
  height: auto;
  min-height: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 8px;
  border-radius: 8px;
}

.qSuggestClearBtn:hover {
  color: rgba(255, 255, 255, 0.9);
  background: var(--search-holder-bg);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
  box-shadow: none;
}

.pill b {
  color: var(--text);
  font-weight: 700;
}

.pill.warn {
  border-color: rgba(255, 92, 124, 0.35);
  background: rgba(255, 92, 124, 0.08);
  color: rgba(255, 255, 255, 0.78);
}

.pageSearch .pill {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 8px;
  border-color: var(--search-control-border);
  background: var(--search-control-bg);
  box-shadow: none;
}

.pageSearch .pill.warn {
  border-color: rgba(255, 92, 124, 0.38);
  background: rgba(255, 92, 124, 0.08);
}

.searchStatusRow {
  display: flex;
  justify-content: center;
}

.resultsPanel {
  padding: 14px;
  overflow: visible;
  flex: 0 0 auto;
  min-height: 0;
}

.resultsToolsPanel {
  padding: 0;
}

.resultsToolsInner {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.pageSearch .resultsToolsInner {
  width: 100%;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}

.btnTool {
  width: 100%;
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
}

.pageSearch .resultsToolsInner .btnTool {
  width: auto;
  flex: 0 0 auto;
  height: 32px;
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid var(--search-control-border);
  background: var(--search-control-bg);
  gap: 6px;
  letter-spacing: 0;
  box-shadow: none;
}

.pageSearch .resultsToolsInner .btnTool:hover,
.pageSearch .resultsToolsInner .btnTool:focus-visible {
  border-color: #525252;
  background: var(--search-holder-bg);
}

.pageSearch .resultsToolsInner .cardSettingsBtn {
  width: 32px;
  min-width: 32px;
  padding: 0;
}

.pageSearch .resultsToolsInner .cardSettingsBtn img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
}

.pageSearch .searchToolsGroup {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.pageSearch .searchToolsGroupRight {
  margin-left: auto;
  justify-content: flex-end;
}

.selectionToggleBtn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-weight: 600;
}

.selectionToggleBtn.isActive,
.selectionToggleBtn.isActive:hover,
.selectionToggleBtn.isActive:focus-visible {
  border-color: var(--accent);
  background: var(--card);
}

.selectionToggleText {
  white-space: nowrap;
}

.selectionToggleCheck {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  padding: 2px;
  border-radius: 6px;
  border: 1px solid #404040;
  background: #171717;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.selectionToggleCheck::after {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 2px solid #171717;
  border-bottom: 2px solid #171717;
  transform: rotate(-45deg);
  opacity: 0;
  transition: opacity 140ms ease;
}

.selectionToggleBtn.isActive .selectionToggleCheck {
  border-color: var(--accent);
  background: var(--accent);
}

.selectionToggleBtn.isActive .selectionToggleCheck::after {
  opacity: 1;
}

.pageSearch .searchTopSelectBtn {
  min-width: 184px;
}

:is(.pageSearch, .refsPickerTopControls) .searchToolsFilters {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

:is(.pageSearch, .refsPickerTopControls) .searchPicker,
:is(.pageSearch, .refsPickerTopControls) .searchSortPicker {
  position: relative;
  z-index: 40;
}

:is(.pageSearch, .refsPickerTopControls) .searchPicker.isOpen .searchPickerBtn,
:is(.pageSearch, .refsPickerTopControls) .searchPicker.isOpen .searchPickerBtn:hover,
:is(.pageSearch, .refsPickerTopControls) .searchPicker.isOpen .searchPickerBtn:focus-visible {
  background: #404040;
}

:is(.pageSearch, .refsPickerTopControls) .searchPickerBtn,
:is(.pageSearch, .refsPickerTopControls) .searchSortBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

:is(.pageSearch, .refsPickerTopControls) .searchSortLeadIcon,
:is(.pageSearch, .refsPickerTopControls) .searchPickerChevron {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

:is(.pageSearch, .refsPickerTopControls) .searchSortLeadIcon img,
:is(.pageSearch, .refsPickerTopControls) .searchPickerChevron img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

:is(.pageSearch, .refsPickerTopControls) .searchSortBtnText {
  white-space: nowrap;
}

:is(.pageSearch, .refsPickerTopControls) .searchPickerChevron img {
  transition: transform 160ms ease;
}

:is(.pageSearch, .refsPickerTopControls) .searchPicker.isOpen .searchPickerChevron img {
  transform: rotate(180deg);
}

:is(.pageSearch, .refsPickerTopControls) .searchPickerPanel {
  position: absolute;
  top: calc(100% + 8px);
  z-index: 50;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #262626;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

:is(.pageSearch, .refsPickerTopControls) .searchPickerPanel[hidden] {
  display: none;
}

:is(.pageSearch, .refsPickerTopControls) .searchSortMenu {
  right: 0;
  min-width: 238px;
  padding: 5px;
  display: grid;
  gap: 2px;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterPicker {
  width: fit-content;
  max-width: 100%;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterBtn {
  min-width: 0;
  width: auto;
  justify-content: flex-start;
  gap: 6px;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterBtnText {
  white-space: nowrap;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterPicker.isActiveFilter .searchFilterBtn,
:is(.pageSearch, .refsPickerTopControls) .searchFilterPicker.isActiveFilter .searchFilterBtn:hover,
:is(.pageSearch, .refsPickerTopControls) .searchFilterPicker.isActiveFilter .searchFilterBtn:focus-visible {
  background: #262626;
  border-color: #525252;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterPicker.isOpen.isActiveFilter .searchFilterBtn,
:is(.pageSearch, .refsPickerTopControls) .searchFilterPicker.isOpen.isActiveFilter .searchFilterBtn:hover,
:is(.pageSearch, .refsPickerTopControls) .searchFilterPicker.isOpen.isActiveFilter .searchFilterBtn:focus-visible {
  background: #404040;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterPanel {
  left: 0;
  width: min(424px, calc(100vw - 156px));
  padding: 14px;
  border-radius: 14px;
  border-color: #404040;
  background: #171717;
  display: grid;
  gap: 14px;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterFields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterField {
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--search-control-border);
  background: var(--search-control-bg);
  display: flex;
  align-items: center;
  gap: 8px;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterField:focus-within {
  border-color: #525252;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterFieldLabel,
:is(.pageSearch, .refsPickerTopControls) .searchFilterFieldSuffix {
  color: #a3a3a3;
  font-size: 14px;
  line-height: 1;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterFieldInput {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #ffffff;
  font: inherit;
  text-align: right;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterFieldInput::placeholder {
  color: #737373;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterDash {
  color: #ffffff;
  line-height: 1;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterSlider {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
  --search-filter-thumb-size: 20px;
  --search-filter-thumb-radius: calc(var(--search-filter-thumb-size) / 2);
  --search-filter-track-height: 4px;
  --search-filter-start-ratio: 0;
  --search-filter-end-ratio: 1;
  --search-filter-track-top: calc(50% + 1px);
  -webkit-tap-highlight-color: transparent;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterSliderTrack,
:is(.pageSearch, .refsPickerTopControls) .searchFilterSliderRange {
  position: absolute;
  top: var(--search-filter-track-top);
  height: var(--search-filter-track-height);
  transform: translateY(-50%);
  border-radius: 999px;
  pointer-events: none;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterSliderTrack {
  left: var(--search-filter-thumb-radius);
  width: calc(100% - var(--search-filter-thumb-size));
  background: #404040;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterSliderRange {
  left: calc(var(--search-filter-thumb-radius) + (100% - var(--search-filter-thumb-size)) * var(--search-filter-start-ratio));
  width: calc((100% - var(--search-filter-thumb-size)) * (var(--search-filter-end-ratio) - var(--search-filter-start-ratio)));
  background: #e5e5e5;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterSliderInput {
  position: absolute;
  top: 0;
  left: var(--search-filter-thumb-radius);
  width: calc(100% - var(--search-filter-thumb-size));
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  box-shadow: none;
  pointer-events: none;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterSliderInput::-webkit-slider-container {
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterSliderInput::-webkit-slider-runnable-track {
  height: var(--search-filter-track-height);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterSliderInput::-webkit-slider-thumb {
  width: var(--search-filter-thumb-size);
  height: var(--search-filter-thumb-size);
  margin-top: calc((var(--search-filter-track-height) - var(--search-filter-thumb-size)) / 2);
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: #171717;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  cursor: pointer;
  pointer-events: auto;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterSliderInput::-moz-range-track {
  height: var(--search-filter-track-height);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterSliderInput::-moz-range-thumb {
  width: var(--search-filter-thumb-size);
  height: var(--search-filter-thumb-size);
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: #171717;
  box-shadow: none;
  cursor: pointer;
  pointer-events: auto;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterSliderInput::-moz-range-progress {
  background: transparent;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterSliderInput::-moz-focus-outer {
  border: 0;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterSliderInput:focus,
:is(.pageSearch, .refsPickerTopControls) .searchFilterSliderInput:focus-visible {
  outline: none;
  box-shadow: none;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterSliderInput:disabled::-webkit-slider-thumb,
:is(.pageSearch, .refsPickerTopControls) .searchFilterSliderInput:disabled::-moz-range-thumb {
  opacity: 0.45;
  cursor: default;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterActions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterResetBtn,
:is(.pageSearch, .refsPickerTopControls) .searchFilterApplyBtn {
  width: 112px;
  min-width: 112px;
  height: 36px;
  padding: 0 12px;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterResetBtn {
  border: 0;
  border-radius: 10px;
  background: var(--search-holder-bg);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterResetBtn:hover,
:is(.pageSearch, .refsPickerTopControls) .searchFilterResetBtn:focus-visible {
  border-color: transparent;
  background: #303030;
  color: #ffffff;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterApplyBtn {
  border: 0;
  border-radius: 10px;
  background: #e5e5e5;
  color: #171717;
  font-size: 12px;
  font-weight: 850;
}

:is(.pageSearch, .refsPickerTopControls) .searchFilterApplyBtn:hover,
:is(.pageSearch, .refsPickerTopControls) .searchFilterApplyBtn:focus-visible {
  border-color: transparent;
  background: #f5f5f5;
  color: #171717;
}

:is(.pageSearch, .refsPickerTopControls) .searchSortOption {
  width: 100%;
  min-height: 36px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

:is(.pageSearch, .refsPickerTopControls) .searchSortOption:hover,
:is(.pageSearch, .refsPickerTopControls) .searchSortOption:focus-visible {
  background: #303030;
}

:is(.pageSearch, .refsPickerTopControls) .searchSortOption.isActive,
:is(.pageSearch, .refsPickerTopControls) .searchSortOption.isActive:hover,
:is(.pageSearch, .refsPickerTopControls) .searchSortOption.isActive:focus-visible {
  background: #171717;
}

:is(.pageSearch, .refsPickerTopControls) .searchSortOptionIcon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

:is(.pageSearch, .refsPickerTopControls) .searchSortOptionIcon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

:is(.pageSearch, .refsPickerTopControls) .searchSortOptionText {
  line-height: 1.2;
  white-space: nowrap;
}

.pageFooter {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--footerGap);
  z-index: 10;
  height: var(--footerLine);
  line-height: var(--footerLine);
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  pointer-events: none;
}

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

@media (min-width: 1180px) {
  .productGrid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.productCard {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  padding: 0 0 16px;
  border-radius: 14px;
  border: 1px solid var(--search-control-border);
  background: var(--search-control-bg);
  overflow: hidden;
  transition: border-color 140ms ease, background 140ms ease, transform 100ms ease;
}

.productCard:hover {
  border-color: #525252;
  background: var(--search-control-bg);
}

.productCard.isSelected {
  border-color: var(--search-selected-border);
  background: var(--search-control-bg);
}

.productPhotoWrap {
  position: relative;
  width: 100%;
  aspect-ratio: 516 / 688;
  border-radius: 13px 13px 0 0;
  overflow: hidden;
}

.productPhotoBtn {
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  border-radius: 13px 13px 0 0;
  background: transparent;
  display: block;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.productPhotoBtn {
  pointer-events: auto;
}

.productPhotoBtn:focus-visible {
  outline: none;
}

.productPhotoBtn:focus-visible .productPhoto {
  box-shadow: 0 0 0 4px rgba(74, 144, 255, 0.22);
}

.productPhoto {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: 0;
}

.productPhoto.loaded:not(.error) {
  background: #e3e6eb;
  border: none;
}

.productPhoto .imgFill {
  object-fit: contain;
}

.darkCheckWrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  pointer-events: auto;
}

.darkCheckInput {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.darkCheckBox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #404040;
  background: #171717;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.darkCheckBox::after {
  content: "";
  transform: rotate(-45deg);
  opacity: 0;
  transition: opacity 140ms ease;
}

.darkCheckWrap:hover .darkCheckBox {
  border-color: #525252;
}

.darkCheckInput:focus-visible + .darkCheckBox {
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.16);
}

.darkCheckInput:checked + .darkCheckBox {
  border-color: var(--accent);
  background: var(--accent);
}

.darkCheckInput:checked + .darkCheckBox::after {
  opacity: 1;
}

.darkCheckBoxMd {
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 6px;
}

.darkCheckBoxMd::after {
  width: 8px;
  height: 5px;
  border-left: 2px solid #171717;
  border-bottom: 2px solid #171717;
}

.darkCheckBoxSm {
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 6px;
}

.darkCheckBoxSm::after {
  width: 8px;
  height: 5px;
  border-left: 2px solid #171717;
  border-bottom: 2px solid #171717;
}

.darkCheckBoxLg {
  width: 28px;
  height: 28px;
  padding: 4px;
  border-radius: 8px;
}

.darkCheckBoxLg::after {
  width: 10px;
  height: 6px;
  border-left: 3px solid #171717;
  border-bottom: 3px solid #171717;
}

.productSelect.darkCheckWrap {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 3;
}

.productSelect.darkCheckWrap .darkCheckInput {
  width: 28px;
  height: 28px;
}

.productViewBtn {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  height: 36px;
  padding: 8px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--search-holder-bg);
  color: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: none;
}

.productViewBtn:hover,
.productViewBtn:focus-visible {
  background: #303030;
  box-shadow: none;
}

.productTitle {
  padding: 0 12px;
  min-height: 36px;
  font-size: 13.5px;
  font-weight: 850;
  line-height: 1.32;
  color: rgba(255, 255, 255, 0.92);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pageSearch .productTitle[data-tooltip],
.pageSearch .productAttrValue[data-tooltip] {
  cursor: help;
}

.pageSearch .productAttrValue[data-tooltip] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.productTitleSku {
  color: rgba(255, 255, 255, 0.66);
  font-weight: 750;
  text-decoration: none;
}

.productTitleSep {
  color: rgba(255, 255, 255, 0.66);
}

a.productTitleSku:hover {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

.productAttrs {
  width: 100%;
  padding: 0 12px;
  display: grid;
  gap: 7px;
}

.productAttr {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(74px, 0.8fr) minmax(0, 1.2fr);
  gap: 8px;
  align-items: baseline;
  font-size: 12px;
  line-height: 1.25;
}

.productAttrCompact {
  grid-template-columns: minmax(70px, 0.85fr) minmax(0, 1.15fr);
}

.productAttrLabel {
  min-width: 0;
  color: var(--muted2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.productAttrValue {
  min-width: 0;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.productAttrLink {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.productAttrLink:hover {
  text-decoration: underline;
}

.productCardFooter {
  min-height: 0;
  margin-top: auto;
  padding: 0 12px;
  display: flex;
  justify-content: flex-end;
}

.productMiniBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid var(--search-control-border);
  background: var(--search-control-bg);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.productMiniBtn:hover {
  border-color: #525252;
  background: var(--search-holder-bg);
}

.productMiniBtn.ok {
  border-color: rgba(51, 214, 166, 0.55);
}

.backTopBtn {
  position: fixed;
  right: 20px;
  bottom: calc(var(--selBarH) + 28px);
  z-index: 28;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(15, 17, 25, 0.88);
  color: rgba(255, 255, 255, 0.94);
  font-size: 20px;
  font-weight: 850;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.backTopBtn:hover {
  border-color: rgba(124, 92, 255, 0.58);
}

.imgFill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.browserSafeImage {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.imgbox {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.imgbox > .imgFill {
  opacity: 0;
  transition: opacity 0.16s ease;
}

.imgbox.loaded:not(.error) > .imgFill {
  opacity: 1;
}

.imgbox::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.09) 35%, rgba(255, 255, 255, 0.03) 70%);
  background-size: 250% 100%;
  animation: shimmer 1.1s ease-in-out infinite;
}

.imgbox.loaded::before {
  opacity: 0;
  animation: none;
}

.imgbox.error::before {
  opacity: 0.35;
  animation: none;
}

.imgbox.error::after {
  content: "нет изображения";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted2);
  font-size: 12px;
  letter-spacing: 0.2px;
}

@keyframes shimmer {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.cfgModal {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 22px 18px;
}

.cfgModalOverlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: none;
}

.cfgModalBox {
  position: relative;
  z-index: 1;
  width: min(880px, 94vw);
  max-height: min(86vh, 880px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #171717;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.58);
}

.confirmModalBox {
  width: min(520px, 94vw);
  max-height: min(72vh, 620px);
}

.confirmModalBody {
  padding: 12px 14px 10px;
}

.confirmModalBox .cfgModalHeader {
  justify-content: center;
  border-bottom: 0;
}

.confirmModalBox .cfgModalTitle {
  width: 100%;
  text-align: center;
}

.confirmModalText {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
  white-space: pre-wrap;
  text-align: center;
}

.confirmModalBox .cfgModalFooter {
  justify-content: center;
  border-top: 0;
}

.confirmModalBox.isCompactInfo {
  width: min(460px, calc(100vw - 24px));
}

.confirmModalBox.isCompactInfo .confirmModalBody {
  padding: 18px 18px 0;
}

.confirmModalBox.isCompactInfo .cfgModalFooter {
  padding: 18px;
  border-top: 0;
}

.confirmModalText.isCompactInfoText {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.demoModalBox {
  width: min(814px, calc(100vw - 32px));
  max-height: min(88vh, 920px);
  padding: 8px;
  gap: 8px;
  align-items: flex-end;
  border: 0;
  border-radius: 14px;
  background: #171717;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.demoModalBox .cfgModalHeader {
  width: 100%;
  padding: 0;
  border-bottom: 0;
}

.demoModalBox .cfgModalTitle {
  color: #fafafa;
  font-family: Unbounded, var(--sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0;
}

.demoModalBox .cfgModalClose {
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #ffffff;
  --closeIconSize: 16px;
  --closeIconStroke: 2px;
}

.demoModalBox .cfgModalClose:hover {
  border-color: transparent;
  background: transparent;
  color: #ffffff;
  filter: brightness(1.12);
}

.demoModalBox .cfgModalClose:focus-visible {
  border-color: transparent;
  background: transparent;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.demoModalBox .cfgModalBody {
  width: 100%;
  padding: 0;
  overflow: auto;
}

.cfgModalHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--border);
}

.cfgModalTitle {
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.15px;
  color: rgba(255, 255, 255, 0.92);
}

.cfgModalClose {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #262626;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.cfgModalClose,
.imgModalClose,
.editAnchorClose,
.attributeDeleteBtn {
  --closeIconSize: 14px;
  --closeIconStroke: 2px;
  font-size: 0;
  line-height: 0;
}

.cfgModalClose::before,
.cfgModalClose::after,
.imgModalClose::before,
.imgModalClose::after,
.editAnchorClose::before,
.editAnchorClose::after,
.attributeDeleteBtn::before,
.attributeDeleteBtn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--closeIconSize);
  height: var(--closeIconStroke);
  border-radius: 999px;
  background: currentColor;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(45deg);
  transform-origin: center;
}

.cfgModalClose::after,
.imgModalClose::after,
.editAnchorClose::after,
.attributeDeleteBtn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.cfgModalClose:hover {
  border-color: #525252;
  background: #303030;
}

.cfgModalBody {
  padding: 12px 14px 14px;
  overflow: auto;
}

.feedbackModalBox {
  width: min(396px, calc(100vw - 24px));
  max-height: min(86vh, 620px);
  border: 0;
  border-radius: 8px;
  background: #262626;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.feedbackModalBox .cfgModalHeader {
  padding: 8px 8px 0;
  border-bottom: 0;
}

.feedbackModalBox .cfgModalTitle {
  font-size: 14px;
  font-weight: 700;
}

.feedbackModalBox .cfgModalClose {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #171717;
}

.feedbackModalBody {
  padding: 8px;
  overflow: auto;
}

.feedbackForm {
  display: grid;
  gap: 8px;
}

.feedbackField {
  display: grid;
  gap: 6px;
}

.feedbackField > span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

.feedbackForm input,
.feedbackForm textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #404040;
  background: #171717;
  color: #e5e5e5;
  font: inherit;
  font-size: 13px;
  outline: none;
}

.feedbackForm input {
  height: 40px;
  padding: 0 12px;
}

.feedbackForm textarea {
  height: 92px;
  min-height: 92px;
  max-height: 92px;
  padding: 8px 12px;
  line-height: 1.35;
  resize: none;
}

.feedbackForm input::placeholder,
.feedbackForm textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.feedbackForm input:focus,
.feedbackForm textarea:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

.feedbackForm input[aria-invalid="true"],
.feedbackForm textarea[aria-invalid="true"] {
  border-color: rgba(255, 92, 124, 0.72);
}

.feedbackMessageWrap {
  display: grid;
  gap: 5px;
}

.feedbackHint,
.feedbackFileName {
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  line-height: 1.3;
}

.feedbackStatus.msg {
  margin: 0;
  padding: 10px 12px 10px 36px;
  font-size: 12px;
}

.feedbackStatus.msg::before {
  left: 13px;
  width: 9px;
  height: 9px;
}

.feedbackAttachRow {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.feedbackAttachBtn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid #404040;
  background: #171717;
  color: rgba(255, 255, 255, 0.86);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feedbackAttachBtn:hover,
.feedbackAttachBtn:focus-visible {
  border-color: #525252;
  background: #303030;
}

.feedbackAttachIcon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  background: url("/static/theme-icons/dark/prompt-paperclip.png") center / contain no-repeat;
}

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

.feedbackActions {
  display: flex;
  justify-content: flex-end;
}

.feedbackSubmitBtn {
  height: 36px;
  min-width: 96px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #e5e5e5;
  color: #171717;
  font-size: 13px;
  font-weight: 700;
}

.feedbackSubmitBtn:hover,
.feedbackSubmitBtn:focus-visible {
  background: #f5f5f5;
}

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

.demoLeft {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-width: 0;
  min-height: 100%;
  gap: 12px;
  color: #fafafa;
}

.demoTitle {
  margin: 0;
  color: #fafafa;
  font-family: Unbounded, var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0;
  text-align: left;
}

.demoImage {
  display: block;
  width: 100%;
  height: auto;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
}

.demoSub {
  margin: 0;
  max-width: none;
  color: #fafafa;
  font-family: Unbounded, var(--sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
  text-align: left;
}

.fieldError {
  margin-top: 0;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 124, 124, 0.92);
  line-height: 1.25;
  min-height: 14px;
}

.fieldError:empty {
  display: none;
}

.demoRight {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  background: #262626;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.demoForm {
  width: 100%;
  min-height: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.demoForm label {
  gap: 6px;
  color: rgba(250, 250, 250, 0.74);
  font-family: Unbounded, var(--sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0;
}

.demoForm input {
  width: 100%;
  height: 40px;
  border-color: #404040;
  background: #171717;
  color: #fafafa;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0;
}

.demoForm input::placeholder {
  color: #737373;
}

.demoForm input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

.demoForm .legalConsents {
  margin-top: 12px;
  padding-top: 0;
  border-top: 0;
  gap: 6px;
}

.demoForm .legalConsent {
  gap: 8px;
  color: rgba(250, 250, 250, 0.76);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.32;
}

.demoForm .legalCheck {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 0;
  accent-color: #7c3aed;
}

.demoForm .fieldError {
  min-height: 13px;
  color: rgba(255, 124, 124, 0.92);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
}

.demoForm #demoSubmitBtn {
  display: flex;
  height: auto;
  min-height: 40px;
  margin-top: auto;
  padding: 10px 16px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  align-self: stretch;
  border: 0;
  border-radius: 10px;
  background: #e5e5e5;
  box-shadow: none;
  color: #171717;
  font-family: Inter, var(--sans);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0;
}

.demoForm #demoSubmitBtn:hover,
.demoForm #demoSubmitBtn:focus-visible {
  background: #f5f5f5;
  color: #171717;
  filter: none;
}

.demoForm #demoSubmitBtn .spinner {
  border-color: rgba(23, 23, 23, 0.2);
  border-top-color: rgba(23, 23, 23, 0.82);
  border-right-color: rgba(23, 23, 23, 0.55);
}

@media (max-width: 700px) {
  .demoModalBox {
    width: min(814px, calc(100vw - 24px));
    gap: 8px;
  }

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

.cfgGroup + .cfgGroup {
  margin-top: 14px;
}

.cfgGroupTitle {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 8px;
}

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

.cfgItem.darkCheckWrap {
  width: 100%;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
}

.cfgItem.darkCheckWrap:hover {
  border-color: #525252;
  background: #262626;
}

.cfgItem.isLocked {
  opacity: 0.7;
  cursor: default;
}

.cfgItem.isLocked:hover {
  border-color: var(--border);
  background: var(--card);
}

.cfgItemText {
  min-width: 0;
  font-size: 12px;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cfgModalFooter {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.cfgModalFooter .btnTool {
  width: auto;
  min-width: 140px;
}

.pageSearch #cardCfgModal .cfgModalOverlay {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: none;
}

.pageSearch #cardCfgModal .cfgModalBox {
  width: min(var(--cfg-modal-width, 520px), calc(100vw - 24px));
  border-radius: 14px;
  border: 1px solid var(--search-control-border);
  background: var(--search-control-bg);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.58);
}

.pageSearch #cardCfgModal .cfgModalHeader {
  padding: 12px 14px;
  border-bottom: 1px solid var(--search-control-border);
}

.pageSearch #cardCfgModal .cfgModalTitle {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.pageSearch #cardCfgModal .cfgModalClose {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--search-control-border);
  background: var(--search-holder-bg);
  box-shadow: none;
}

.pageSearch #cardCfgModal .cfgModalClose:hover,
.pageSearch #cardCfgModal .cfgModalClose:focus-visible {
  border-color: #525252;
  background: #303030;
}

.pageSearch #cardCfgModal .cfgModalBody {
  padding: 12px 14px;
}

.pageSearch #cardCfgModal .cfgList {
  width: fit-content;
  width: var(--cfg-grid-width, fit-content);
  max-width: 100%;
  grid-template-columns: repeat(2, minmax(0, var(--cfg-item-width, max-content)));
  justify-content: flex-start;
  align-items: start;
  gap: 8px;
}

.pageSearch #cardCfgModal .cfgItem.darkCheckWrap {
  width: 100%;
  min-width: 0;
  gap: 8px;
  justify-content: flex-start;
  place-self: start;
  padding: 8px 12px 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--search-control-border);
  background: var(--search-control-bg);
}

.pageSearch #cardCfgModal .cfgItem.darkCheckWrap:hover {
  border-color: #525252;
  background: var(--search-holder-bg);
}

.pageSearch #cardCfgModal .cfgItem .darkCheckInput {
  width: 20px;
  height: 20px;
}

.pageSearch #cardCfgModal .cfgItem .darkCheckBox {
  border-color: var(--search-control-border);
  background: var(--search-holder-bg);
  box-shadow: none;
}

.pageSearch #cardCfgModal .cfgItem .darkCheckInput:checked + .darkCheckBox {
  border-color: var(--accent);
  background: var(--accent);
}

.pageSearch #cardCfgModal .cfgItem .darkCheckInput:focus-visible + .darkCheckBox {
  border-color: var(--search-selected-border);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

.pageSearch #cardCfgModal .cfgItemText {
  text-align: left;
  font-weight: 700;
  letter-spacing: 0;
}

@media (max-width: 560px) {
  .pageSearch #cardCfgModal .cfgList {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .pageSearch #cardCfgModal .cfgItem.darkCheckWrap {
    width: 100%;
  }
}

.pageSearch #cardCfgModal .cfgModalFooter {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--search-control-border);
}

.pageSearch #cardCfgModal .cfgModalFooter .btnTool {
  min-width: 128px;
  height: 36px;
  min-height: 36px;
  border-radius: 10px;
  letter-spacing: 0;
  box-shadow: none;
}

.pageSearch #cardCfgModal #cardCfgSave {
  border: 0;
  background: var(--search-holder-bg);
}

.pageSearch #cardCfgModal #cardCfgSave:hover,
.pageSearch #cardCfgModal #cardCfgSave:focus-visible {
  background: #303030;
}

.pageSearch #cardCfgModal #cardCfgCancel {
  border: 1px solid var(--search-control-border);
  background: var(--search-control-bg);
}

.pageSearch #cardCfgModal #cardCfgCancel:hover,
.pageSearch #cardCfgModal #cardCfgCancel:focus-visible {
  border-color: #525252;
  background: var(--search-holder-bg);
}

.imgModal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 22px 18px;
}

.imgModalOverlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(6px);
}

.imgModalBox {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 36px));
  max-width: 100%;
  max-height: calc(100vh - 44px);
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 17, 25, 0.97);
  box-shadow: 0 22px 68px rgba(0, 0, 0, 0.72);
  padding: 14px;
}

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

.imgModalTitle {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  overflow: hidden;
}

.imgModalTitleName {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.15px;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.imgModalTitleArt {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 750;
  color: var(--muted);
  font-family: var(--mono);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.imgModalTitleArt:hover {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: underline;
}

.imgModalClose {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.imgModalClose:hover {
  border-color: rgba(124, 92, 255, 0.55);
}

.imgModalContent {
  display: grid;
  grid-template-columns: max-content minmax(280px, 1fr);
  gap: 14px;
  min-height: 0;
  align-items: start;
}

.imgModalGrid {
  --heroH: min(76vh, 688px, 133vw);
  --thumbW: 86px;
  display: grid;
  grid-template-columns: var(--thumbW) auto;
  gap: 10px;
  align-items: start;
}

.imgModalHero {
  height: var(--heroH);
  aspect-ratio: 516 / 688;
  justify-self: center;
  border-radius: var(--radius2);
  cursor: zoom-in;
  --zoom-x: 50%;
  --zoom-y: 50%;
}

.imgModalHero.loaded:not(.error),
.imgModalThumbBox.loaded:not(.error) {
  background: #e3e6eb;
  border: none;
}

.imgModalHero .imgFill {
  transform-origin: var(--zoom-x) var(--zoom-y);
  transition: transform 140ms ease;
  will-change: transform;
}

.imgModalHero.isZoom .imgFill {
  transform: scale(1.55);
}

.imgModalThumbs {
  max-height: var(--heroH);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-right: 3px;
}

.imgModalHero .imgFill,
.imgModalThumbBox .imgFill {
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.imgModalThumb {
  height: auto;
  width: 100%;
  display: block;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.imgModalThumbBox {
  width: 100%;
  aspect-ratio: 516 / 688;
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  .imgModalHero .imgFill {
    transition: none;
  }
}

.imgModalThumb.active .imgbox {
  border-color: rgba(124, 92, 255, 0.75);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.16);
}

.imgModalAttrs {
  max-height: min(76vh, 688px);
  overflow: auto;
  display: grid;
  gap: 0;
  padding: 12px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.imgModalAttrs .productAttr {
  grid-template-columns: minmax(116px, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px;
  line-height: 1.15;
}

.imgModalAttrs .productAttr:last-child {
  border-bottom: none;
}

.imgModalAttrs .productAttrValue {
  font-weight: 400;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.imgModalJsonBtn {
  justify-self: end;
  margin-top: 4px;
}

.pageSearch #imgModal .imgModalOverlay {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: none;
}

.pageSearch #imgModal .imgModalBox {
  border-radius: 14px;
  border: 1px solid var(--search-control-border);
  background: var(--search-control-bg);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.58);
  padding: 12px;
}

.pageSearch #imgModal .imgModalHeader {
  margin-bottom: 12px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--search-control-border);
}

.pageSearch #imgModal .imgModalTitleName {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.pageSearch #imgModal .imgModalTitleArt {
  color: rgba(255, 255, 255, 0.58);
}

.pageSearch #imgModal .imgModalClose {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--search-control-border);
  background: var(--search-holder-bg);
  box-shadow: none;
}

.pageSearch #imgModal .imgModalClose:hover,
.pageSearch #imgModal .imgModalClose:focus-visible {
  border-color: #525252;
  background: #303030;
}

.pageSearch #imgModal .imgModalContent {
  gap: 12px;
}

.pageSearch #imgModal.isSingleImage .imgModalBox {
  width: fit-content;
}

.pageSearch #imgModal.isSingleImage .imgModalContent {
  grid-template-columns: max-content minmax(280px, 360px);
}

.pageSearch #imgModal.isSingleImage .imgModalGrid {
  grid-template-columns: auto;
}

.pageSearch #imgModal.isSingleImage .imgModalThumbs {
  display: none;
}

.pageSearch #imgModal .imgModalGrid {
  gap: 8px;
}

.pageSearch #imgModal .imgModalHero {
  border-radius: 10px;
  border: 1px solid var(--search-control-border);
  background: var(--search-control-bg);
}

.pageSearch #imgModal .imgModalThumbBox {
  border-radius: 8px;
  border: 1px solid var(--search-control-border);
  background: var(--search-control-bg);
}

.pageSearch #imgModal .imgModalThumb.active .imgbox {
  border-color: var(--search-selected-border);
  box-shadow: none;
}

.pageSearch #imgModal .imgModalAttrs {
  border-radius: 8px;
  border: 1px solid var(--search-control-border);
  background: var(--search-control-bg);
}

.pageSearch #imgModal .imgModalAttrs .productAttr {
  border-bottom-color: var(--search-control-border);
}

.generationResultPreviewModal {
  padding: 12px;
}

.generationResultPreviewModalBox {
  --generation-preview-screen-gap: 12px;
  --generation-preview-body-pad: 12px;
  --generation-preview-header-height: 58px;
  --generation-preview-image-height: calc(100vh - (var(--generation-preview-screen-gap) * 2) - var(--generation-preview-header-height) - (var(--generation-preview-body-pad) * 2));
  --generation-preview-image-aspect: 0.75;
  width: min(
    calc(var(--generation-preview-image-height) * var(--generation-preview-image-aspect) + (var(--generation-preview-body-pad) * 2)),
    calc(100vw - (var(--generation-preview-screen-gap) * 2))
  );
  max-width: calc(100vw - (var(--generation-preview-screen-gap) * 2));
  max-height: calc(100vh - (var(--generation-preview-screen-gap) * 2));
  border-radius: 14px;
  border: 1px solid #404040;
  background: #171717;
}

.generationResultPreviewModal .cfgModalHeader {
  padding: 12px 12px 10px;
}

.generationResultPreviewModal .cfgModalTitle {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.generationResultPreviewModalBody {
  padding: 12px;
}

.generationResultPreviewViewport {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.generationResultPreviewFrame {
  position: relative;
  width: min(100%, calc(var(--generation-preview-image-height) * var(--generation-preview-image-aspect)));
  aspect-ratio: var(--generation-preview-image-aspect, 0.75);
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
}

.generationResultPreviewImage {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.generationResultPreviewActions {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.generationResultPreviewFrame:hover .generationResultPreviewActions,
.generationResultPreviewFrame:focus-within .generationResultPreviewActions {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.pageAnalysis .container {
  max-width: 1240px;
}

.pageGeneration .container {
  width: 100%;
  max-width: none;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px 24px;
}

.legalMd {
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}

.legalLoading {
  min-height: 180px;
  display: grid;
  place-items: center;
}

.legalMd h1,
.legalMd h2,
.legalMd h3,
.legalMd h4,
.legalMd h5,
.legalMd h6 {
  margin: 12px 0 8px;
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: 0.1px;
  line-height: 1.25;
}

.legalMd h1 {
  font-size: 16px;
  font-weight: 900;
}

.legalMd h2 {
  font-size: 14px;
  font-weight: 880;
}

.legalMd h3 {
  font-size: 13px;
  font-weight: 860;
}

.legalMd p {
  margin: 8px 0;
}

.legalMd ul,
.legalMd ol {
  margin: 8px 0 8px 18px;
  padding: 0;
}

.legalMd li + li {
  margin-top: 6px;
}

.legalMd code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  padding: 1px 5px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.legalMd pre {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  overflow: auto;
}

.legalMd pre code {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre;
}

.legalMd a {
  color: rgba(197, 186, 255, 0.92);
  text-decoration: none;
  border-bottom: 1px dashed rgba(197, 186, 255, 0.38);
}

.legalMd a:hover {
  border-bottom-color: rgba(124, 92, 255, 0.75);
}

.legalMd hr {
  margin: 12px 0;
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.sectionHead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.sectionTitle {
  font-size: 17px;
  font-weight: 850;
  letter-spacing: 0.12px;
  color: rgba(255, 255, 255, 0.94);
}

.sectionSub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.statusBadge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.statusBadge.ok {
  border-color: rgba(51, 214, 166, 0.32);
  background: #262626;
  color: rgba(181, 255, 233, 0.95);
}

.statusBadge.err {
  border-color: rgba(255, 92, 124, 0.38);
  background: #262626;
  color: rgba(255, 197, 211, 0.95);
}

.generationProgressBar {
  position: relative;
  height: 18px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: none;
}

.generationProgressFill {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #525252, #7c3aed);
  box-shadow: none;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 240ms ease-out;
}

.generationProgressBar {
  width: min(520px, 100%);
  height: 16px;
}

.refCard {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.refImageBox {
  aspect-ratio: 516 / 688;
  border-radius: 10px;
}

.refImageBox.loaded:not(.error) {
  background: #e3e6eb;
}
.refTitle {
  min-height: 34px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.generationShell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  gap: 14px;
  align-items: stretch;
}

.generationStagePanel,
.promptComposerPanel {
  margin-bottom: 0;
}

.generationCenter {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.generationFeedHeader {
  flex: 0 0 auto;
  padding: var(--workspace-top-nav-offset, 0) 0 14px;
  border-bottom: 1px solid #404040;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.generationBackLink {
  min-width: 0;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  text-decoration: none;
}

.generationBackLinkIcon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid #404040;
  background: #171717;
}

.generationBackLinkIcon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.generationBackLinkText {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.generationHeaderPeriod {
  min-width: 0;
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.generationHeaderPeriodIcon {
  width: 16px;
  height: var(--h-4, 16px);
  flex: 0 0 16px;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  transform: translateY(-1px);
}

.generationHeaderPeriodLabel {
  color: var(--semantic-border, #535151);
  font-family: var(--sans);
  font-size: 13px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0;
}

.generationHeaderPeriodValue {
  min-width: 0;
  overflow: hidden;
  color: var(--primary, #E5E5E5);
  text-overflow: ellipsis;
  font-family: var(--sans);
  font-size: 13px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0;
}

.generationHeaderMarketplaceIcon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: block;
  object-fit: contain;
}

.generationBackLink:hover .generationBackLinkIcon,
.generationBackLink:focus-visible .generationBackLinkIcon {
  background: #262626;
  border-color: #525252;
}

.generationBackLink:hover .generationBackLinkText,
.generationBackLink:focus-visible .generationBackLinkText {
  color: #ffffff;
}

.generationToolbar {
  position: relative;
  z-index: 6;
  margin-top: -6px;
  margin-bottom: -6px;
}

.generationToolbarRow {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.generationToolbarPicker {
  position: relative;
  width: fit-content;
  max-width: 100%;
}

.generationToolbarBtn {
  min-width: 0;
  max-width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #404040;
  background: #171717;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  cursor: pointer;
}

.generationToolbarPicker.isOpen .generationToolbarBtn {
  background: #404040;
}

.generationToolbarPicker.isOpen .generationToolbarBtn:hover,
.generationToolbarPicker.isOpen .generationToolbarBtn:focus-visible {
  background: #404040;
}

.generationToolbarBtnLabel {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.generationToolbarPreview {
  height: 24px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  isolation: isolate;
}

.generationToolbarPreview[hidden] {
  display: none;
}

.generationToolbarPreviewThumb {
  position: relative;
  width: 18px;
  height: 24px;
  flex: 0 0 18px;
  border-radius: 4px;
  display: block;
  object-fit: cover;
  background: #262626;
}

.generationToolbarPreviewThumb + .generationToolbarPreviewThumb {
  margin-left: -2px;
}

.generationToolbarLabelMuted,
.generationToolbarLabelText {
  color: #a3a3a3;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.generationToolbarLabelCount {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.generationToolbarChevron {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.generationToolbarChevron img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 160ms ease;
}

.generationToolbarBtn:disabled {
  opacity: 0.55;
  cursor: default;
}

.generationToolbarPicker.isOpen .generationToolbarChevron img {
  transform: rotate(180deg);
}

.generationToolbarPanel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  z-index: 20;
  width: min(900px, calc(100vw - 420px));
  min-width: 720px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #404040;
  background: #171717;
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 36px);
  overflow: visible;
}

.generationToolbarPanelWide {
  width: min(900px, calc(100vw - 420px));
  min-width: 720px;
}

.generationToolbarPanelMedium {
  left: 0;
  right: auto;
  width: min(420px, calc(100vw - 24px));
  min-width: 0;
  max-width: calc(100vw - 24px);
}

.generationToolbarPanelMedium .attributeRow:not(.isSingle) {
  grid-template-columns: minmax(56px, 0.48fr) 6px minmax(0, 1fr);
}

@media (max-width: 900px) {
  .pageGeneration .generationToolbarPanelMedium {
    position: fixed;
    left: var(--generation-toolbar-panel-left, 12px);
    right: auto;
    bottom: var(--generation-toolbar-panel-bottom, 12px);
    width: min(420px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }
}

.generationToolbarPanel .searchParams {
  margin: 0;
}

.generationToolbarPanel #refsPickerSummary {
  margin: 0;
}

.refsPickerTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.refsPickerTopInfo {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.refsPickerTopControls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 4;
}

.refsPickerTopControls .searchToolsFilters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.refsPickerGrid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  min-height: 160px;
}

.refsPickerGridWrap {
  min-height: 0;
  max-height: max(180px, min(448px, calc(100vh - 388px)));
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  margin-right: -6px;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}

.refsPickerEmpty {
  grid-column: 1 / -1;
  min-height: 160px;
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #171717;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
}

.generationToolbarPanelActions {
  margin-bottom: 0;
}

.generationToolbarPanelBody {
  max-height: min(420px, 56vh);
  overflow-y: auto;
  overflow-x: hidden;
}

.generationStagePanel {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  --feed-scroll-edge-offset: 10px;
}

.stagePlaceholder {
  align-self: center;
  justify-self: center;
  color: var(--muted2);
  font-size: 14px;
  margin: auto;
}

.generationFeed {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 var(--feed-scroll-edge-offset) 12px 0;
  margin-right: calc(-1 * var(--feed-scroll-edge-offset));
  scrollbar-gutter: stable;
  overflow-anchor: none;
}

.generationFeedBusy {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(23, 23, 23, 0.72);
  backdrop-filter: none;
  z-index: 30;
}

.generationFeedBusyInner {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: #262626;
}

.feedRun {
  display: grid;
  gap: 10px;
}

.feedRun.isJumpFlash .feedMessageResult {
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.12);
}

.feedEditAnchor {
  width: min(520px, 94%);
  align-self: flex-end;
  margin-left: auto;
  margin-right: 5px;
  display: grid;
  padding: 12px 12px 14px;
  height: auto;
  border-radius: 14px;
  border: 1px dashed var(--border);
  background: var(--card);
  cursor: pointer;
  color: inherit;
  text-align: left;
  position: relative;
}

.feedEditAnchor.hasClose {
  padding-right: 46px;
}

.feedEditAnchor:hover {
  background: #262626;
}

.editAnchorRow {
  display: grid;
  grid-template-columns: 22px auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 2px;
}

.editAnchorHead {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.editAnchorThumbWrap {
  width: auto;
  flex: 0 0 auto;
}

.editAnchorIcon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.94);
  opacity: 0.92;
  margin-top: 2px;
}

.editAnchorIconSvg {
  width: 22px;
  height: 22px;
}

.editAnchorThumb {
  height: 54px;
  width: auto;
  aspect-ratio: 516 / 688;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #262626;
}

.editAnchorThumbEmpty {
  display: grid;
  place-items: center;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.85);
}

.editAnchorTitle {
  font-size: 13px;
  font-weight: 950;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.editAnchorHint {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
}

.editAnchorClose {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: #262626;
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-size: 15px;
}

.editAnchorClose,
.attributeDeleteBtn {
  --closeIconSize: 13px;
}

.attributeDeleteBtn {
  position: relative;
}

.editAnchorClose:hover {
  border-color: #525252;
  background: #303030;
  color: rgba(255, 255, 255, 0.95);
}

.feedMessage {
  max-width: min(680px, 92%);
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
}

.feedMessageUser {
  justify-self: end;
  margin-right: 5px;
  background: #262626;
  border-color: #525252;
}

.feedUserAttachment {
  width: fit-content;
  max-width: 240px;
  max-height: 280px;
  overflow: hidden;
  border-radius: 10px;
  justify-self: end;
}

.feedUserAttachmentImage {
  display: block;
  width: auto;
  height: auto;
  max-width: 240px;
  max-height: 280px;
  border-radius: 10px;
  object-fit: contain;
}

.feedMessageResult {
  justify-self: start;
  width: fit-content;
  max-width: min(900px, 98%);
  background: var(--card);
}

.feedMessageResult.isComposite {
  --resultImageH: 500px;
  --resultImageAspect: 0.75;
  --resultImageW: calc(var(--resultImageH) * var(--resultImageAspect));
  --resultInfoW: 292px;
  --resultGap: 18px;
  --resultPadY: 12px;
  --resultPadLeft: 12px;
  --resultPadRight: 12px;
  --resultCardW: calc(var(--resultImageW) + var(--resultInfoW) + var(--resultGap) + var(--resultPadLeft) + var(--resultPadRight));
  box-sizing: border-box;
  width: min(var(--resultCardW), 98%);
  max-width: min(var(--resultCardW), 98%);
  padding: var(--resultPadY) var(--resultPadRight) var(--resultPadY) var(--resultPadLeft);
}

.feedPreparationMessage {
  justify-self: start;
  width: min(560px, 94%);
  max-width: min(560px, 94%);
  gap: 12px;
  padding: 16px 18px;
  background: #404040;
  border-color: transparent;
  justify-items: center;
  text-align: center;
}

.feedPreparationLabel {
  width: 100%;
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.3;
  text-align: center;
}

.feedPreparationBar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(23, 23, 23, 0.74);
  justify-self: stretch;
}

.feedResultLayout {
  display: grid;
  grid-template-columns: minmax(0, min(var(--resultImageW), calc(100% - var(--resultInfoW) - var(--resultGap)))) minmax(0, var(--resultInfoW));
  gap: var(--resultGap);
  align-items: start;
  height: auto;
  min-height: 0;
}

.feedRole {
  color: var(--muted2);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.appTooltip {
  --app-tooltip-arrow-left: 50%;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1200;
  display: grid;
  justify-items: center;
  pointer-events: none;
}

.appTooltip[hidden] {
  display: none;
}

.appTooltip[data-side="bottom"] .appTooltipText {
  order: 2;
}

.appTooltip[data-side="bottom"] .appTooltipArrow {
  order: 1;
  margin-top: 0;
  margin-bottom: -5px;
  transform: translateX(-50%) rotate(225deg);
}

.appTooltipText {
  width: max-content;
  max-width: min(320px, 72vw);
  padding: 6px 8px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #171717;
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  white-space: pre-line;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.appTooltipArrow {
  width: 10px;
  height: 10px;
  margin-top: -5px;
  margin-left: var(--app-tooltip-arrow-left);
  border: 1px solid var(--border);
  border-left: 0;
  border-top: 0;
  background: #171717;
  transform: translateX(-50%) rotate(45deg);
}

.pageGeneration .feedEstimatePeriod[data-tooltip] {
  cursor: help;
}

.feedText {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.feedChanges {
  display: grid;
  gap: 8px;
}

.feedText + .feedChanges {
  margin-top: 5px;
}

.feedChangeSection {
  display: grid;
  gap: 5px;
}

.feedChangeSectionTitle {
  color: var(--muted2);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.25;
  text-transform: uppercase;
}

.feedChangesList {
  display: grid;
  gap: 4px;
}

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

.feedChangeMark {
  position: relative;
  width: 18px;
  height: 18px;
  display: block;
  border-radius: 999px;
}

.feedChangeRow.isAdd .feedChangeMark {
  background: rgba(82, 208, 147, 0.16);
}

.feedChangeRow.isRemove .feedChangeMark {
  background: rgba(255, 103, 124, 0.16);
}

.feedChangeMark::before,
.feedChangeMark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.feedChangeRow.isAdd .feedChangeMark::before,
.feedChangeRow.isAdd .feedChangeMark::after {
  background: rgba(142, 240, 185, 0.96);
}

.feedChangeRow.isRemove .feedChangeMark::before {
  background: rgba(255, 174, 187, 0.98);
}

.feedChangeRow.isAdd .feedChangeMark::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.feedChangeRow.isRemove .feedChangeMark::after {
  display: none;
}

.feedChangeText,
.feedChangeMore {
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.feedChangeMore {
  color: var(--muted);
  justify-self: start;
  display: inline-flex;
  align-items: center;
  width: max-content;
  height: 18px;
  min-height: 0;
  padding: 0 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  font-size: 10px;
  font-weight: 780;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}

.feedChangeMore:hover {
  color: rgba(255, 255, 255, 0.88);
  background: #262626;
  border-color: #525252;
}

.feedChangeMore:focus-visible {
  outline: 2px solid rgba(125, 211, 252, 0.75);
  outline-offset: 2px;
  box-shadow: none;
}

.warnText {
  color: rgba(255, 198, 211, 0.95);
}

.feedMeta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.feedImageBox {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: var(--resultImageAspect);
  min-height: 0;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
}

.feedImageBox > .imgFill {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.feedImageBox.loaded:not(.error) > .imgFill {
  opacity: 1;
}

.feedImageOpenBtn {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.feedImageOpenBtn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: -2px;
}

.feedImageQuickActions {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.feedImageBox:hover .feedImageQuickActions,
.feedImageBox:focus-within .feedImageQuickActions {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.feedImageQuickAction {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 0;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(82, 82, 82, 0.76);
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}

.feedImageQuickAction:hover,
.feedImageQuickAction:focus-visible {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(104, 104, 104, 0.9);
  transform: translateY(-1px);
}

.feedImageQuickAction:active {
  transform: translateY(0);
}

.feedImageQuickActionIcon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feedImageQuickActionIcon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.feedImageProgress {
  position: relative;
  display: grid;
  align-items: end;
  padding: 0;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url("/static/theme-images/dark/generation-loader-image.png") center / cover no-repeat;
}

.feedImageProgressRunning::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 48px;
  height: 48px;
  background: url("/static/theme-icons/dark/generation-loader-sparkles.png") center / contain no-repeat;
  transform: translate(-50%, -50%);
  animation: generationLoaderSparklePulse 3.4s ease-in-out infinite;
}

.generationProgressActions {
  width: 100%;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

@keyframes generationLoaderSparklePulse {
  0%,
  100% {
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(0.94);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .feedImageProgressRunning::before {
    animation: none;
  }
}

.generationCancelBtn {
  position: relative;
  width: 24px;
  height: 24px;
  min-width: 0;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(82, 82, 82, 0.92);
  color: #ffffff;
  cursor: pointer;
  transition:
    background 140ms ease,
    transform 140ms ease;
}

.generationCancelBtn::before,
.generationCancelBtn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.7px;
  border-radius: 999px;
  background: currentColor;
}

.generationCancelBtn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.generationCancelBtn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.generationCancelBtn:hover,
.generationCancelBtn:focus-visible {
  background: rgba(115, 115, 115, 0.96);
  transform: translateY(-1px);
}

.generationRetryBtn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

.generationCancelBtn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

.feedImageCancelled {
  align-items: center;
  justify-items: center;
  background: #363636;
}

.generationRetryBtn {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.generationRetryBtn:hover,
.generationRetryBtn:focus-visible {
  opacity: 0.82;
  transform: translate(-50%, -50%) scale(1.06);
}

.generationRefreshIcon {
  width: 30px;
  height: 30px;
  display: block;
  color: #ffffff;
}

.feedImageCancelledStatus {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 17px;
  z-index: 2;
  color: rgba(250, 250, 250, 0.78);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
}

.feedImageProgressInner {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  z-index: 2;
  min-height: 0;
  display: grid;
  gap: 8px;
  align-content: end;
  justify-items: stretch;
  color: rgba(255, 255, 255, 0.84);
  text-align: center;
}

.feedImageProgress .generationProgressBar {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 8px;
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(23, 23, 23, 0.74);
}

.feedResultActions {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: auto;
}

.runActionBar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.feedResultInfo {
  min-width: 0;
  height: auto;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto;
  align-self: stretch;
  gap: 8px;
  overflow: visible;
}

.feedResultInfoTop {
  display: grid;
  grid-template-rows: auto auto;
  gap: 15px;
  min-height: 0;
  overflow: visible;
  align-content: start;
}

.feedResultTextRow {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: start;
  gap: 8px;
}

.feedResultDescriptionRow {
  min-height: 0;
  height: auto;
  overflow: visible;
}

.feedResultTitle {
  color: rgba(255, 255, 255, 0.94);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.28;
  display: block;
  overflow: visible;
  overflow-wrap: anywhere;
}

.feedResultDescription {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
  min-height: 0;
  height: auto;
  display: block;
  overflow: visible;
  overflow-wrap: anywhere;
}

.feedResultDescriptionRow .feedResultDescription {
  height: auto;
}

.feedMarketEstimate {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  align-self: stretch;
  min-height: 214px;
  padding: 12px 12px 14px 14px;
  box-sizing: border-box;
  border-radius: 8px;
  background: #262626;
}

.feedMarketEstimate.isLoading {
  align-items: flex-start;
  justify-content: flex-start;
}

.feedMarketEstimatePlaceholder {
  min-height: 214px;
  border-radius: 8px;
  visibility: hidden;
}

.feedEstimatePeriodRow {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: start;
  gap: 8px;
}

.feedEstimatePeriod {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #fafafa;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.feedEstimatePeriodRow .feedEstimatePeriod {
  max-width: 100%;
}

.feedEstimatePeriodText {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feedEstimateMetric {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.feedEstimateLabel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0;
}

.feedEstimateLabelText {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feedEstimateIcon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.feedEstimateIcon.isCalendar {
  background-image: url("/static/theme-icons/dark/market-estimate-calendar.png");
}

.feedEstimateIcon.isPackage {
  background-image: url("/static/theme-icons/dark/market-estimate-package.png");
}

.feedEstimateIcon.isRuble {
  background-image: url("/static/theme-icons/dark/market-estimate-ruble.png");
}

.feedEstimateValue {
  color: #fafafa;
  font-size: 16px;
  font-weight: 650;
  line-height: 24px;
  letter-spacing: 0;
}

.feedEstimateValueSkeleton {
  width: 128px;
  height: 18px;
  margin-top: 3px;
  border-radius: 999px;
  background: rgba(250, 250, 250, 0.34);
  transform-origin: left center;
  animation: estimateValueBreath 2.8s ease-in-out infinite;
}

.feedEstimateValueSkeleton.isSales {
  width: 112px;
}

.feedEstimateValueSkeleton.isRevenue {
  width: 142px;
  animation-delay: 0.18s;
}

.feedEstimateValueSkeleton.isPrice {
  width: 92px;
  animation-delay: 0.36s;
}

@keyframes estimateValueBreath {
  0%,
  100% {
    opacity: 0.5;
    transform: scaleX(0.82);
  }

  50% {
    opacity: 0.86;
    transform: scaleX(1);
  }
}

.runIconBtn {
  position: relative;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  padding: 0;
  line-height: 0;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    transform 120ms ease;
}

.runIconBtn:hover {
  background: #262626;
  border-color: var(--border);
  transform: translateY(-1px);
}

.runIconBtn:disabled,
.runIconBtn:disabled:hover {
  cursor: not-allowed;
  opacity: 0.42;
  background: transparent;
  border-color: transparent;
  transform: none;
}

.runIconBtn:active {
  transform: translateY(0);
}

.runIconBtn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.imageIconBtn,
.imageIconBtn:hover,
.imageIconBtn:focus-visible {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.imageIconBtn {
  overflow: visible;
}

.imageIconBtn:hover,
.imageIconBtn:focus-visible {
  opacity: 0.78;
}

.imageIconBtnImg {
  width: 16px;
  height: var(--h-4, 16px);
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.resultCopyBtn {
  width: 16px;
  height: var(--h-4, 16px);
  min-width: 16px;
  min-height: 16px;
  padding: 0;
  border-radius: 0;
  aspect-ratio: 1 / 1;
  opacity: 0.82;
}

.resultCopyBtn:hover,
.resultCopyBtn:focus-visible {
  opacity: 1;
  transform: none;
}

.feedMessageResult.isComposite .runIconBtn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 8px;
}

.feedMessageResult.isComposite .runIconBtn svg {
  width: 16px;
  height: 16px;
}

.feedMessageResult.isComposite .runIconBtn.resultCopyBtn {
  width: 16px;
  height: var(--h-4, 16px);
  min-width: 16px;
  min-height: 16px;
}

.promptComposerPanel {
  flex: 0 0 auto;
  z-index: 4;
  padding: 0;
}

.searchParams {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
}

.searchParamMain {
  font-size: 13px;
  font-weight: 850;
  line-height: 1.28;
  color: rgba(255, 255, 255, 0.9);
}

.searchParamSub {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--muted);
}

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

.refsActionsLeft {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.refsActionBtn {
  width: 168px;
  min-width: 168px;
  max-width: 168px;
  min-height: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.1;
  white-space: normal;
  text-align: center;
  background: var(--card);
  border-color: var(--border);
}

.refsSelectionToggleBtn {
  width: auto;
  min-width: 0;
  max-width: none;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.88);
}

.refsClearBtn {
  width: auto;
  min-width: 0;
  max-width: none;
  white-space: nowrap;
}

.refsActionBtn:hover {
  color: rgba(255, 255, 255, 0.9);
  background: #262626;
  border-color: #525252;
}

.refsApplyBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
  border: 0;
  background: #e5e5e5;
  color: #171717;
  font-weight: 850;
}

.refsApplyIcon {
  display: block;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  background: url("/static/theme-icons/dark/generation-loader-sparkles.png") center / contain no-repeat;
  filter: brightness(0) saturate(100%);
}

.refsApplyText {
  display: block;
  line-height: 1;
}

.refsApplyBtn:hover,
.refsApplyBtn:focus-visible {
  color: #171717;
  background: #f5f5f5;
  border-color: transparent;
}

.refChoice {
  position: relative;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.refChoice:hover,
.refChoice.isSelected {
  border-color: rgba(124, 92, 255, 0.68);
}

.refChoice.isSelected {
  background: var(--card);
  box-shadow: none;
}

.refChoice.isSelected .refImageBox {
  border-color: rgba(124, 92, 255, 0.78);
}

.refCheck {
  position: absolute;
  inset: auto;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 22px;
  height: 22px;
}

.refCheckBox {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  pointer-events: none;
}

.refChoice:hover .refCheck:not(:checked) + .refCheckBox {
  border-color: #525252;
}

.refChoice .refImageBox {
  border-radius: 9px;
}

.refGalleryOpenBtn {
  position: absolute;
  right: 5px;
  bottom: 5px;
  z-index: 3;
  min-width: 0;
  width: 26px;
  height: 26px;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid #404040;
  background: #171717;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fafafa;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, background 140ms ease, border-color 140ms ease;
}

.refGalleryOpenBtn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.refImageBox:hover .refGalleryOpenBtn,
.refChoice:focus-visible .refGalleryOpenBtn,
.refChoice:focus-within .refGalleryOpenBtn {
  opacity: 1;
  pointer-events: auto;
}

.refGalleryOpenBtn:hover,
.refGalleryOpenBtn:focus-visible {
  background: #262626;
  border-color: #525252;
}

.refChoice .refTitle {
  min-height: 26px;
  font-size: 10px;
  line-height: 1.3;
}

.referenceGalleryModal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 18px;
}

.referenceGalleryModal.isAnchored {
  display: block;
  padding: 0;
}

.referenceGalleryModal[hidden] {
  display: none;
}

.referenceGalleryOverlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
}

.referenceGalleryModal.isAnchored .referenceGalleryDialog {
  position: absolute;
  left: var(--reference-gallery-left, 18px);
  bottom: var(--reference-gallery-bottom, 18px);
}

.referenceGalleryDialog {
  --reference-gallery-photo-width: 360px;
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: calc(100vw - 36px);
  max-height: min(calc(100vh - 36px), calc(100vh - var(--reference-gallery-bottom, 18px) - 18px));
  box-sizing: border-box;
  padding: 4px 4px 10px;
  border-radius: 14px;
  border: 1px solid #404040;
  background: #171717;
  display: grid;
  justify-items: center;
  gap: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.58);
}

.referenceGalleryPhotoSlot {
  position: relative;
  min-width: 280px;
  display: grid;
  place-items: center;
}

.referenceGalleryPhotoBox {
  border-radius: 10px;
  border-color: transparent;
  background: #171717;
}

.referenceGalleryPhoto {
  display: block;
  width: auto;
  height: auto;
  max-width: min(520px, calc(100vw - 56px));
  max-height: min(74vh, 760px, calc(100vh - var(--reference-gallery-bottom, 18px) - 96px));
  object-fit: contain;
  border-radius: inherit;
}

.referenceGalleryBackBtn {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 3;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid #404040;
  background: #171717;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.referenceGalleryBackBtn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.referenceGalleryBackBtn:hover,
.referenceGalleryBackBtn:focus-visible {
  background: #262626;
  border-color: #525252;
}

.referenceGalleryPrimaryToggle {
  position: absolute;
  right: 8px;
  top: 7px;
  z-index: 3;
  padding: 6px 8px;
  border-radius: 8px;
  background: #171717;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: #fafafa;
  cursor: pointer;
}

.referenceGalleryPrimaryText {
  color: #fafafa;
  font-family: var(--sans);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0;
  white-space: nowrap;
}

.referenceGalleryPrimaryInput {
  width: 20px;
  height: 20px;
}

.referenceGalleryThumbsRow {
  min-width: 0;
  width: min(var(--reference-gallery-photo-width), calc(100vw - 56px));
  max-width: min(var(--reference-gallery-photo-width), calc(100vw - 56px));
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
}

.referenceGalleryStripMask {
  min-width: 0;
  overflow: hidden;
}

.referenceGalleryStrip {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}

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

.referenceGalleryThumb {
  width: 41px;
  height: 54px;
  flex: 0 0 41px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #262626;
  overflow: hidden;
  cursor: pointer;
}

.referenceGalleryThumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.referenceGalleryThumb.isActive {
  border: 2px solid #7c3aed;
}

.referenceGalleryThumb:hover,
.referenceGalleryThumb:focus-visible {
  outline: 1px solid #525252;
  outline-offset: 2px;
}

.referenceGalleryNav {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fafafa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.referenceGalleryNav svg {
  width: 24px;
  height: 24px;
}

.referenceGalleryNav:disabled {
  color: #737373;
  cursor: default;
}

.referenceGalleryNav:not(:disabled):hover,
.referenceGalleryNav:not(:disabled):focus-visible {
  color: #ffffff;
}

.composerRow {
  display: block;
}

.composerBox {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  grid-template-areas: "upload prompt send";
  gap: 8px;
  align-items: end;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
}

.composerBox.hasAttachment {
  grid-template-areas:
    "attachment attachment attachment"
    "upload prompt send";
  row-gap: 8px;
}

.composerBox.isPromptExpanded {
  grid-template-areas:
    "prompt prompt prompt"
    "upload . send";
  row-gap: 4px;
}

.composerBox.hasAttachment.isPromptExpanded {
  grid-template-areas:
    "attachment attachment attachment"
    "prompt prompt prompt"
    "upload . send";
}

.composerAttachmentPreview {
  grid-area: attachment;
  position: relative;
  width: 86px;
  height: 86px;
  align-self: start;
  justify-self: start;
}

.composerAttachmentImage {
  display: block;
  width: 86px;
  height: 86px;
  border-radius: 10px;
  object-fit: cover;
  background: #262626;
}

.composerAttachmentRemove {
  --closeIconSize: 11px;
  --closeIconStroke: 2px;
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f5f5f5;
  color: #171717;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32);
}

.composerAttachmentRemove::before,
.composerAttachmentRemove::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--closeIconSize);
  height: var(--closeIconStroke);
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.composerAttachmentRemove::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.composerAttachmentRemove:hover:not(:disabled),
.composerAttachmentRemove:focus-visible {
  background: #ffffff;
}

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

.composerSend {
  grid-area: send;
  justify-self: end;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 8px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  font-size: 0;
  line-height: 0;
}

.composerSendIcon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  background: url("/static/theme-icons/dark/create-card-sparkles.png") center / contain no-repeat;
}

#generateBtn.composerSend:disabled,
#generateBtn.composerSend:disabled:hover {
  cursor: not-allowed;
  filter: none;
  opacity: 0.58;
}

.composerUploadBtn {
  grid-area: upload;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  align-self: end;
  position: relative;
  padding: 6px 8px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    transform 120ms ease;
}

.composerUploadIcon {
  display: block;
  width: 16px;
  height: 16px;
  background: url("/static/theme-icons/dark/prompt-paperclip.png") center / contain no-repeat;
}

.composerUploadBtn:hover:not(:disabled) {
  border-color: #525252;
  background: #262626;
  transform: translateY(-1px);
}

.composerUploadBtn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.promptTextarea {
  grid-area: prompt;
  width: 100%;
  min-height: 34px;
  max-height: 180px;
  resize: none;
  padding: 8px 10px 6px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 20px;
  overflow-y: auto;
}

.promptTextarea:focus {
  box-shadow: none;
}

.refImageBox .imgFill {
  object-fit: contain;
}

.generationToolbarEditorSection {
  display: grid;
  gap: 10px;
  margin-top: 0;
}

.editorSection {
  display: grid;
  gap: 6px;
  margin-top: 9px;
}

.editorSection + .editorSection {
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.editorSectionHead {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 8px;
}

.recommendationTitle {
  font-size: 15px;
}

.attributeSaveStatus {
  min-height: 14px;
  color: var(--muted2);
  font-size: 10px;
  line-height: 1.25;
}

.attributeSaveStatus.warn {
  color: rgba(255, 198, 111, 0.95);
}

.attributeSaveStatus.ok {
  color: rgba(51, 214, 166, 0.9);
}

.attributeDeleteBtn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

.attributeDeleteBtn:hover {
  border-color: rgba(255, 92, 124, 0.5);
  background: rgba(255, 92, 124, 0.11);
}

.attributeDeleteBtn:disabled {
  opacity: 0.48;
  cursor: default;
}

.attributeGrid {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  align-content: start;
}

#attributeGrid + #cardAttributeGrid {
  margin-top: 4px;
}

.attributeRow {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(72px, 0.72fr) 6px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-height: 31px;
  padding: 2px 4px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
}

.attributeRow.isSingle {
  grid-template-columns: minmax(0, 1fr);
}

.attributeRow.hasToggle {
  grid-template-columns: 16px minmax(72px, 0.72fr) 6px minmax(0, 1fr);
}

.attributeRow.hasDelete {
  grid-template-columns: minmax(72px, 0.72fr) 6px minmax(0, 1fr) 24px;
}

.attributeRow.hasToggle.hasDelete {
  grid-template-columns: 16px minmax(72px, 0.72fr) 6px minmax(0, 1fr) 24px;
}

.attributeRow.isSingle.hasToggle {
  grid-template-columns: 16px minmax(0, 1fr);
}

.attributeRow.isSingle.hasDelete {
  grid-template-columns: minmax(0, 1fr) 24px;
}

.attributeRow.isSingle.hasToggle.hasDelete {
  grid-template-columns: 16px minmax(0, 1fr) 24px;
}

.attributeRow.isSelected {
  border-color: rgba(51, 214, 166, 0.4);
  background: #262626;
}

.generationToolbarPanel .attributeRow.isProductAttribute,
.generationToolbarPanel .attributeRow.isProductAttribute.isSelected {
  background: #2a2a2a;
}

.attributeRow.isInvalid {
  border-color: rgba(255, 198, 111, 0.5);
  background: rgba(255, 198, 111, 0.07);
}

.attributeToggle {
  position: relative;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.attributeCheck {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.attributeCheckmark {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: #262626;
}

.attributeRow.isSelected .attributeCheckmark {
  border-color: rgba(51, 214, 166, 0.7);
  background: rgba(51, 214, 166, 0.26);
}

.attributeRow.isSelected .attributeCheckmark::after {
  content: "✓";
  color: white;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.attributeInput {
  min-width: 0;
  width: 100%;
  height: 24px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  outline: none;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 760;
}

.attributeKeyInput,
.attributeValueInput {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 400;
}

.attributeInput:hover {
  background: #262626;
}

.attributeInput:focus {
  border-color: var(--accent);
  background: #262626;
}

.attributeInput:disabled {
  opacity: 0.62;
}

.attributeColon {
  color: var(--muted2);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.attributeEmpty {
  padding: 10px 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.pageGeneration .generationFeedBusyInner,
.pageGeneration .feedEditAnchor,
.pageGeneration .feedMessage {
  border-radius: 10px;
}

.pageGeneration .generationFeedBusyInner,
.pageGeneration .feedEditAnchor,
.pageGeneration .feedMessage,
.pageGeneration .editAnchorClose,
.pageGeneration .refsActionBtn,
.pageGeneration .composerBox,
.pageGeneration .composerUploadBtn,
.pageGeneration .attributeDeleteBtn,
.pageGeneration .feedChangeMore {
  border: 0;
  box-shadow: none;
}

.pageGeneration .generationStagePanel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.pageGeneration .promptComposerPanel {
  border: 0;
  background: transparent;
  padding: 0;
}

.pageGeneration .composerBox {
  border: 1px solid #404040;
  background: #171717;
}

.pageGeneration .refsActionBtn {
  border: 1px solid #404040;
  background: #171717;
}

.pageGeneration .feedChangeMore {
  background: #525252;
  color: rgba(255, 255, 255, 0.9);
}

.pageGeneration .refsActionBtn:hover,
.pageGeneration .refsActionBtn:focus-visible,
.pageGeneration .generationToolbarBtn:hover,
.pageGeneration .generationToolbarBtn:focus-visible,
.pageGeneration .feedChangeMore:hover,
.pageGeneration .feedChangeMore:focus-visible {
  background: #303030;
  color: rgba(255, 255, 255, 0.95);
}

.pageGeneration .refsApplyBtn,
.pageGeneration .refsApplyBtn:hover,
.pageGeneration .refsApplyBtn:focus-visible {
  border: 0;
  background: #e5e5e5;
  color: #171717;
}

.pageGeneration .composerUploadBtn {
  border: 1px solid #404040;
  background: #171717;
}

.pageGeneration .promptTextarea {
  border: 0;
  background: transparent;
}

.pageGeneration .composerUploadBtn:hover:not(:disabled) {
  border-color: #525252;
  background: #262626;
}

.pageGeneration .feedMessageUser,
.pageGeneration .feedMessageResult,
.pageGeneration .feedMessageAnalysis,
.pageGeneration .feedEditAnchor {
  border: 0;
  background: #404040;
}

.pageGeneration .feedMessageResult.isImage {
  border: 0;
  background: #404040;
}

.pageGeneration .feedMessageResult.isImage .feedImageBox {
  border-color: transparent;
  background: transparent;
}

.pageGeneration .feedMessageResult.isImage .feedImageCancelled {
  background: #363636;
}

.pageGeneration .imgbox,
.pageGeneration .refChoice,
.pageGeneration .attributeRow,
.pageGeneration .generationProgressBar {
  border-color: transparent;
}

.pageGeneration .refChoice {
  border-color: #404040;
  background: #262626;
}

.pageGeneration .refChoice:hover {
  border-color: #404040;
  background: #262626;
}

.pageGeneration .refChoice.isSelected,
.pageGeneration .refChoice.isSelected:hover,
.pageGeneration .refChoice.isSelected .refImageBox {
  border-color: #7c3aed;
}

.pageGeneration .attributeRow,
.pageGeneration .attributeRow.isSelected {
  border-color: #404040;
  background: #262626;
}

.pageGeneration .attributeDeleteBtn {
  border: 1px solid #404040;
  background: #262626;
}

.pageGeneration .attributeDeleteBtn:hover {
  border-color: #525252;
  background: #303030;
}

.pageGeneration .attributeRow.isInvalid {
  border-color: rgba(255, 198, 111, 0.55);
  background: rgba(255, 198, 111, 0.07);
}

.pageGeneration .feedEditAnchor:hover,
.pageGeneration .feedEditAnchor:focus-visible {
  background: #404040;
}

.pageGeneration .feedEditAnchor,
.pageGeneration .feedMessageUser {
  margin-right: 0;
}

.pageGeneration .feedRun.isJumpFlash .feedMessageResult {
  border: 0;
}

.pageGeneration .editorSection + .editorSection {
  border: 0;
}

.pageGeneration .refsActionBtn:hover,
.pageGeneration .refsActionBtn:focus-visible,
.pageGeneration .runIconBtn:hover,
.pageGeneration .feedChangeMore:hover {
  border-color: transparent;
}

.projectsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.projectsHead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin: 2px 0 14px;
}

.projectCard {
  min-width: 0;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: none;
  backdrop-filter: none;
}

.projectPreview {
  width: 100%;
  aspect-ratio: 516 / 688;
  flex: 0 0 auto;
  display: block;
  border: 0;
  border-radius: 0;
  background: #262626;
}

.projectPreviewLink {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.projectPreviewLink:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.projectPreview .imgFill {
  object-fit: cover;
}

.projectPreviewEmpty {
  display: grid;
  place-items: center;
  background: #262626;
}

.projectPreviewMark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: rgba(255, 255, 255, 0.76);
  font-weight: 900;
}

.projectPreviewBadge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #262626;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 800;
}

.projectCardBody {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 13px;
}

.projectTitle {
  min-width: 0;
  min-height: 38px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.28;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.projectMetaLine,
.projectChangedAt {
  min-height: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.projectActions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  padding-top: 3px;
}

.projectActions .btnPrimary,
.projectActions .btnSecondary {
  min-height: 36px;
  border-radius: 10px;
  font-size: 12px;
  padding: 0 12px;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
}

.projectActions .btnPrimary {
  width: 100%;
  white-space: normal;
}

.projectDelete:hover {
  border-color: rgba(255, 92, 124, 0.55);
}

.projectsEmpty {
  max-width: 520px;
}

@media (max-width: 720px) {
  body:not(.pageGeneration):not(.pageLanding) header {
    align-items: flex-start;
    flex-direction: column;
  }

  body:not(.pageGeneration):not(.pageLanding) .headerRight {
    width: 100%;
    flex-wrap: wrap;
  }

  body:not(.pageGeneration):not(.pageLanding) .headerRight .a {
    min-width: 0;
    flex: 1 1 auto;
  }
}

body.modalOpen {
  overflow: hidden;
}

@media (max-width: 720px) {
  .resultsToolsInner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .productAttr {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .productAttrValue {
    text-align: left;
  }

  .imgModalContent {
    grid-template-columns: 1fr;
    overflow: auto;
    max-height: calc(100vh - 110px);
  }

  .imgModalGrid {
    --heroH: min(62vh, 640px, 133vw);
    --thumbW: 68px;
    grid-template-columns: 1fr;
  }
  .imgModalThumbs {
    max-height: none;
    overflow-y: hidden;
    overflow-x: auto;
    flex-direction: row;
  }

  .imgModalAttrs {
    max-height: none;
  }

  .pageSearch #imgModal.isSingleImage .imgModalBox {
    width: min(calc(100vw - 36px), 100%);
  }

  .pageSearch #imgModal.isSingleImage .imgModalContent {
    grid-template-columns: 1fr;
  }
}

.selBar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 6px 14px calc(12px + env(safe-area-inset-bottom));
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 220ms ease;
}

.selBar.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: none;
}

.selBarInner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 17, 25, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
}

.selBarCount {
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .selBarInner {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  .pageSearch .selBarInner {
    width: calc(100vw - 28px);
    max-width: none;
    align-items: stretch;
  }

  .pageSearch .selBarCount {
    text-align: center;
  }

  .pageSearch #selAnalyze {
    width: 100%;
  }
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
}

.strike {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.empty {
  margin-top: 0;
  padding: 0;
  border: 0;
  color: var(--muted);
}

.pageSearch .empty {
  margin-top: 0;
  align-self: stretch;
  width: 100%;
  flex: 1 1 auto;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
}

.pageSearch.isEmpty .empty {
  margin-top: 0;
  align-self: stretch;
  width: 100%;
  max-width: none;
  padding: 0;
  margin-bottom: 0;
}

.emptyIntro {
  display: grid;
  min-height: 100%;
  place-items: center;
}

.emptyWelcomeImage {
  width: min(727px, 88%);
  height: auto;
  aspect-ratio: 115 / 87;
  object-fit: contain;
}

.emptyMsg {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
  white-space: pre-wrap;
}

.spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 255, 255, 0.92);
  border-right-color: rgba(124, 58, 237, 0.9);
  animation: spin 0.8s linear infinite;
}

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