:root {
  --page: var(--vc-bg-page, #06060d);
  --panel: var(--vc-bg-panel, #141414);
  --control: var(--vc-bg-control, #0d0d0e);
  --block: var(--vc-bg-block, #1a2029);
  --canvas: var(--vc-bg-canvas, #262a35);
  --line: var(--vc-border, rgba(255, 255, 255, 0.1));
  --line-strong: var(--vc-border-strong, rgba(255, 255, 255, 0.2));
  --white: var(--vc-text, #fff);
  --muted: var(--vc-text-subtle, #3f4246);
  --label: var(--vc-text-secondary, rgba(255, 255, 255, 0.75));
  --active-bg: var(--vc-selection-bg, #ebf2fa);
  --active-text: var(--vc-selection-text, #2c384c);
  --blue: var(--vc-theme-blue, #0e5ad6);
  --panel-over-background: rgba(20, 20, 20, .82);
  --canvas-over-background: var(--panel-over-background);
  --side: 280px;
  --gap: 16px;
  --down-icon: url("component-library/common/ui/assets/chevron-down.svg");
  --check-icon: url("component-library/common/ui/assets/check.svg");
  --check-icon-alt: url("component-library/common/ui/assets/check.svg");
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--page);
  color: var(--white);
  font-family: var(--vc-font-body);
  font-size: 12px;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.app {
  position: relative;
  isolation: isolate;
  flex: 0 0 auto;
  width: 1440px;
  height: 800px;
  overflow: hidden;
  background: var(--page);
  transform: scale(var(--app-scale, 1));
  transform-origin: center;
}

.app-dot-field {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.app-dot-field__canvas,
.app-dot-field__glow {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.app-dot-field__canvas {
  opacity: .55;
}

.app-dot-field__glow {
  pointer-events: none;
}

.app-dot-field__glow circle {
  opacity: 0;
  will-change: opacity;
}

.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  height: 80px;
  background: var(--panel-over-background);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: inset 0 -2px 8px rgba(255,255,255,.05);
}

.brand {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
}

.brand h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

.brand p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 16px;
}

.theme-picker {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  gap: 4px;
  min-height: 40px;
  height: auto;
  padding: 4px;
  background: var(--control);
  border: 1px solid #333;
  border-radius: 6px;
  transform: translate(-50%, -50%);
}

.theme-picker.vc-theme-picker {
  overflow: hidden;
}

.theme {
  width: 64px;
  height: 32px;
  padding: 6px 0;
  color: rgba(255,255,255,.2);
  background: rgba(14,90,214,.2);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
}

.theme.active {
  color: #fff;
  background: #0e5ad6;
  border: 2px solid #fff;
  padding: 4px;
}

.theme.cyan { background: rgba(8,124,174,.2); }
.theme.green { background: rgba(0,145,99,.2); }
.theme.yellow { background: rgba(190,133,31,.2); }
.theme.red { background: rgba(232,58,30,.2); }
.theme.purple { background: rgba(93,18,168,.2); }

.header-actions {
  position: absolute;
  top: 50%;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 32px;
  transform: translateY(-50%);
}

.inline-control,
.header-actions label,
.row label,
.top-config label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--label);
  white-space: nowrap;
}

.vline {
  width: 1px;
  height: 24px;
  background: #333;
}

.action {
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.action.secondary {
  background: linear-gradient(#414448, #303338);
}

.action.primary {
  background: #0e5ad6;
  box-shadow: 0 0 12px rgba(55,129,255,.45);
}

.workspace {
  position: absolute;
  z-index: 1;
  inset: 80px 0 0;
}

.panel-shell {
  background: var(--panel-over-background);
  border-color: var(--line);
  border-style: solid;
  box-shadow: inset 0 0 8px rgba(255,255,255,.04);
}

.left-panel {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 16px;
  bottom: 0;
  left: 0;
  width: var(--side);
  overflow: hidden;
  border-width: 1px 1px 0 0;
}

.right-panel {
  --layout-header-height: 120px;
  position: absolute;
  top: 16px;
  right: 0;
  bottom: 0;
  width: var(--side);
  overflow: hidden;
  border-width: 1px 0 0 1px;
}

.right-panel.has-title-icon-editor { --layout-header-height: 188px; }

.title-icon-editor {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--label);
}

.title-icon-editor[hidden] { display: none; }
.title-icon-actions { display: flex; align-items: center; gap: 6px; }
.title-icon-actions .vc-button { height: 28px; padding: 0 8px; }
.title-icon-editor p { margin: 6px 0 0; color: rgba(255,255,255,.4); font-size: 9px; line-height: 14px; }

.title-icon-preview {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  background: var(--control);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}

.title-icon-preview img,
.title-icon-preview i {
  width: 16px;
  height: 16px;
  filter: var(--title-icon-filter, hue-rotate(var(--vc-frame-theme-shift, 0deg)));
}

.title-icon-preview i {
  display: none;
  background: linear-gradient(180deg, var(--title-icon-start, #c5ffdf), var(--title-icon-end, #9bffc7));
  -webkit-mask: var(--title-icon-source) center / contain no-repeat;
  mask: var(--title-icon-source) center / contain no-repeat;
}

.title-icon-preview.has-custom-icon img { display: none; }
.title-icon-preview.has-custom-icon i { display: block; }

.right-empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(255, 255, 255, .42);
  text-align: center;
}

.right-empty-state p {
  margin: 0;
  font-size: 12px;
  line-height: 22px;
}

.right-panel:not(.has-title-selection) .right-header,
.right-panel:not(.has-title-selection) .config-list {
  display: none;
}

.right-panel.has-title-selection .right-empty-state {
  display: none;
}

.center-panel {
  --bottom-material-panel-height: 96px;
  --preview-rail-width: 28px;
  position: absolute;
  top: 0;
  right: calc(var(--side) + var(--gap));
  bottom: 0;
  left: calc(var(--side) + var(--gap));
}

.center-top {
  position: absolute;
  inset: 0 0 auto;
  height: 160px;
  border-width: 0 1px 1px;
}

.center-top h2,
.center-bottom h2 {
  position: absolute;
  top: 12px;
  left: 12px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
}

.separator {
  height: 1px;
  background: var(--line-strong);
}

.center-top > .separator,
.center-bottom > .separator {
  position: absolute;
  top: 40px;
  right: 12px;
  left: 12px;
}

.top-config {
  position: absolute;
  top: 56px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-preview-bar {
  position: absolute;
  right: 52px;
  bottom: 20px;
  left: 52px;
  height: 40px;
  background: var(--block);
}

.top-preview-nav {
  position: absolute;
  bottom: 24px;
}

.top-preview-nav--prev {
  left: 12px;
}

.top-preview-nav--next {
  right: 12px;
}

.center-body {
  position: absolute;
  top: 160px;
  right: 0;
  bottom: var(--bottom-material-panel-height);
  left: 0;
  overflow: hidden;
  background: transparent;
}

.side-rail {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: var(--preview-rail-width);
  padding-top: 8px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  box-shadow: inset 0 2px 8px rgba(255,255,255,.1);
}

.side-rail b {
  display: block;
  flex: 0 0 auto;
  width: 12px;
  margin: 0 auto 12px;
  font-size: 9px;
  font-weight: 700;
  line-height: 12px;
}

.rail-fill {
  display: block;
  flex: 1;
  width: 16px;
  height: auto;
  min-height: 180px;
  margin: 0 auto 8px;
  background: var(--block);
}

.screen-side-border {
  position: absolute;
  z-index: 3;
  top: 16px;
  bottom: 12px;
  width: 8px;
  pointer-events: none;
}

.screen-side-border--left {
  left: 0;
}

.screen-side-border--right {
  right: 0;
}

.side-border-style.style-1 {
  background: var(--block);
  border-right: 1px solid rgba(235, 242, 250, .22);
  border-left: 1px solid rgba(235, 242, 250, .1);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin: 4px auto;
  padding: 0;
  background: radial-gradient(circle, #34383f, #2c2d31);
  border: .5px solid var(--line-strong);
  border-radius: 4px;
}

.rail-arrow {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.preview-viewport {
  position: absolute;
  inset: var(--gap) 0 var(--gap) calc(var(--preview-rail-width) + var(--gap));
  min-width: 0;
  min-height: 0;
  contain: layout paint;
  isolation: isolate;
  overflow: hidden;
  touch-action: pan-y;
  outline: 0;
}

.preview-viewport.is-keyboard-focus:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(235, 242, 250, .5);
}

.preview-surface {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
  contain: layout paint;
  overflow: hidden;
}

.preview-zoom {
  position: absolute;
  z-index: 5;
  top: 12px;
  right: 12px;
  max-width: calc(100% - 24px);
  max-height: calc(100% - 24px);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
  padding: 4px;
  color: #ebf2fa;
  background: rgba(20, 24, 31, .96);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .24);
}

.preview-zoom button {
  min-width: 26px;
  height: 26px;
  padding: 0 5px;
  background: transparent;
  border-radius: 3px;
  font-size: 18px;
}

.preview-zoom button:hover:not(:disabled),
.preview-zoom button[aria-pressed="true"] {
  background: rgba(235, 242, 250, .16);
}

.preview-zoom button:disabled { opacity: .3; cursor: default; }
.preview-zoom button:focus-visible { outline: 1px solid #ebf2fa; }
.preview-zoom output { min-width: 42px; text-align: center; font-size: 11px; }
.preview-zoom__divider {
  flex: 0 0 1px;
  height: 18px;
  margin: 0 4px;
  background: var(--line-strong);
  pointer-events: none;
}
.preview-zoom .preview-zoom__fit { font-size: 11px; padding: 0 7px; }
.preview-zoom .preview-zoom__move {
  display: grid;
  place-items: center;
  padding: 0;
  color: #b8c2cf;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.preview-zoom .preview-zoom__move:hover { color: #e1e7ef; }
.preview-zoom.is-moving .preview-zoom__move { cursor: grabbing; }
.preview-zoom.is-moving { user-select: none; }

.preview-viewport.is-pan-mode,
.preview-viewport.is-pan-mode .screen * { cursor: grab; }
.preview-viewport.is-dragging,
.preview-viewport.is-dragging .screen * { cursor: grabbing; user-select: none; }

.screen {
  --screen-theme: #030913;
  --preview-aspect: 16 / 9;
  --screen-native-width: 1920px;
  --screen-native-height: 1080px;
  --screen-side-width: 20%;
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--viewport-fit-width, 100%);
  height: var(--viewport-fit-height, auto);
  aspect-ratio: var(--preview-aspect);
  overflow: hidden;
  background: var(--screen-theme);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: translate(-50%, -50%) translate(var(--viewport-pan-x, 0px), var(--viewport-pan-y, 0px)) scale(var(--viewport-zoom, 1));
  transition: background .2s;
}

.screen-canvas {
  position: absolute;
  top: 0;
  left: 0;
  /* Lay out at the actual resolution, then fit the complete page uniformly.
     Fixed-pixel chart heights and gaps must share the same 1080px basis. */
  width: var(--screen-native-width);
  height: var(--screen-native-height);
  transform: scale(var(--viewport-canvas-scale, 1));
  transform-origin: top left;
}

.screen-side {
  position: absolute;
  z-index: 1;
  top: calc(var(--screen-title-height, 40px) + 4px);
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: var(--screen-side-width);
  align-items: stretch;
  padding: 4px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: auto;
  scrollbar-width: none;
  background: transparent;
  transition: background .2s ease, box-shadow .2s ease;
}

.screen-main-title {
  --main-title-width: 146px;
  --main-title-half-width: 73px;
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 40px;
  overflow: hidden;
  background: var(--block);
}

.screen-main-title__text {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  max-width: 62%;
  padding: 0 14px;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-main-title.align-left .screen-main-title__text {
  left: 0;
}

.screen-main-title.align-center .screen-main-title__text {
  left: 50%;
  transform: translateX(-50%);
}

.screen-main-title.align-right .screen-main-title__text {
  right: 0;
}

.screen-main-title__menus {
  position: absolute;
  top: 8px;
  display: flex;
  gap: 6px;
}

.screen-main-title__menus--left {
  left: 12px;
}

.screen-main-title__menus--right {
  right: 12px;
}

.screen-main-title.align-center .screen-main-title__menus--left {
  right: calc(50% + var(--main-title-half-width) + 12px);
  left: auto;
}

.screen-main-title.align-center .screen-main-title__menus--right {
  right: auto;
  left: calc(50% + var(--main-title-half-width) + 12px);
}

.screen-main-title.align-left .screen-main-title__menus--right {
  right: auto;
  left: calc(var(--main-title-width) + 12px);
}

.screen-main-title.align-right .screen-main-title__menus--left {
  right: calc(var(--main-title-width) + 12px);
  left: auto;
}

.screen-main-title__menus.is-hidden {
  display: none;
}

.screen-main-title__menus span {
  width: 34px;
  height: 24px;
  background: rgba(235, 242, 250, .12);
  border: 1px solid rgba(235, 242, 250, .2);
  border-radius: 3px;
}

.screen-side--left {
  left: 12px;
}

.screen-side--right {
  right: 12px;
}

/* Keep title frames inside the 16px side artwork and its inward glow. */
.screen.has-side-borders .screen-side--left {
  left: 16px;
}

.screen.has-side-borders .screen-side--right {
  right: 16px;
}

/* Slightly shorten the frame region; frames may cover the decoration below. */
.screen.has-bottom-border .screen-side {
  bottom: 16px;
}

.screen-side.is-empty {
  display: none;
}

.screen-side.has-overflow {
  overscroll-behavior: contain;
}

.screen-side::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.screen.side-panel-background-on .screen-side {
  background: var(--vc-side-panel-background-fill, var(--screen-theme));
  box-shadow: none;
}

.screen-title-panel {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  width: 100%;
  min-height: 10%;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: rgba(7, 9, 13, .24);
  border: 1px solid rgba(235, 242, 250, .42);
  cursor: pointer;
  text-align: left;
  transition: flex-basis .2s ease, border-color .15s ease, box-shadow .15s ease;
}

.screen-title-panel.is-auto-height {
  min-height: 0;
  max-height: 100%;
}

.screen-title-panel:hover {
  border-color: rgba(235, 242, 250, .72);
}

.screen-title-panel.is-selected {
  box-shadow: 0 0 0 2px #ebf2fa;
  outline: 0;
}

.screen-title-panel:focus-visible {
  outline: 2px solid #ebf2fa;
  outline-offset: 1px;
}

.screen-title-panel__title {
  flex: 0 0 22px;
  padding: 0 8px;
  overflow: hidden;
  color: #ebf2fa;
  background: rgba(18, 25, 35, .88);
  font-size: 10px;
  font-weight: 700;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-title-panel__body {
  display: grid;
  gap: 6px;
  align-content: stretch;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  padding: 3px;
  overflow-x: auto;
  overflow-y: auto;
  overscroll-behavior: auto;
  scrollbar-gutter: auto;
  scrollbar-width: none;
}

.screen-title-panel__body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.screen-title-panel.is-auto-height .screen-title-panel__body {
  align-content: start;
  flex: 1 1 auto;
  overflow: auto;
}

/* Keep the title and bottom decoration clear outside the scrollport. */
.screen-canvas .screen-title-panel__body {
  margin-bottom: calc(12px * var(--vc-content-design-scale, 1));
}

.screen-canvas .screen-side .screen-title-panel .screen-title-panel__body {
  margin-top: calc(6px * var(--vc-content-design-scale, 1));
  padding: 0 calc(8px * var(--vc-content-design-scale, 1));
}

.screen-side--left .screen-title-panel__body {
  align-self: flex-start;
}

.screen-side--right .screen-title-panel__body {
  align-self: flex-end;
}

.screen-title-panel__body.is-horizontal {
  grid-template-columns: repeat(var(--content-count), minmax(58px, 1fr));
  grid-template-rows: minmax(min-content, 1fr);
}

.screen-title-panel__body.is-vertical {
  grid-template-columns: minmax(0, 1fr);
  /* Divide the frame height, not mixed components' intrinsic heights.
     Equal fractional rows leave a different blank tail after each component. */
  grid-template-rows: repeat(var(--content-count), max-content);
  align-content: space-between;
}

.screen-title-panel__body.is-vertical > .screen-title-panel__content-block {
  align-self: start;
}

.screen-title-panel.is-auto-height .screen-title-panel__body.is-vertical {
  grid-template-rows: repeat(var(--content-count), max-content);
}

.screen-title-panel.is-auto-height .screen-title-panel__content-block {
  align-self: start;
}


.screen-title-panel.style-2 .screen-title-panel__title {
  text-align: center;
}

.screen-title-panel.style-3 {
  border-color: rgba(235, 242, 250, .2);
}

.screen-title-panel.style-3 .screen-title-panel__title {
  background: transparent;
  border-bottom: 1px solid rgba(235, 242, 250, .26);
}

.screen-title-panel.style-4 .screen-title-panel__title {
  color: var(--screen-theme);
  background: #ebf2fa;
}

.screen-title-panel.no-panel-surface {
  background: transparent;
  border-color: transparent;
}

.screen-title-panel.no-panel-surface.is-selected {
  box-shadow: 0 0 0 2px #ebf2fa;
}

.screen-message {
  display: none;
}

.center-bottom {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--bottom-material-panel-height);
  border-width: 1px 1px 0;
}

.bottom-material-picker {
  position: absolute;
  top: 52px;
  right: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
}

.bottom-preview-bar {
  flex: 1;
  min-width: 0;
  height: 20px;
  background: var(--block);
}

.screen-bottom-border {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: 12px;
}

.bottom-border-style.style-1 {
  background: var(--block);
  border-top: 1px solid rgba(235, 242, 250, .24);
}

.nav-button,
.strip-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #fff;
  background: radial-gradient(circle, #34383f, #2c2d31);
  border: .5px solid var(--line-strong);
  border-radius: 4px;
  font-size: 22px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
}

.panel-heading b,
.style-library h2,
.right-header h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.left-head {
  flex: 0 0 auto;
  height: auto;
  padding: 8px 12px 0;
}

.left-head > .panel-heading + .separator {
  margin: 6px 0 10px;
}

.left-head > .separator:last-of-type {
  margin-top: 10px;
}

.mode-pair {
  display: inline-flex;
  gap: 4px;
  padding: 2px;
  background: var(--control);
  border: 1px solid #333;
  border-radius: 6px;
}

.mode-pair button {
  height: 24px;
  padding: 0 8px;
  color: #5e636b;
  background: transparent;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.mode-pair button.active {
  color: var(--active-text);
  background: var(--active-bg);
  text-shadow: 0 0 2px #fff;
}

.mode-pair.tiny {
  border: 0;
  padding: 0;
}

.mode-pair.tiny button {
  height: 24px;
  padding: 0 6px;
}

.mode-pair.full {
  display: flex;
  width: 100%;
}

.mode-pair.full button {
  flex: 1;
}

.mode-pair.compact button {
  padding: 0 6px;
}

.left-options {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.left-options label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--label);
}

.muted-note {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 16px;
  white-space: nowrap;
}

.style-library {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 10px 8px;
  overflow: hidden;
}

.style-library h2 {
  flex: 0 0 auto;
  margin: 0 4px 10px;
}

.style-list {
  flex: 1;
  min-height: 0;
  padding: 0 4px 0 2px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: auto;
  scrollbar-width: none;
}

.style-list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.title-card {
  position: relative;
  display: block;
  width: 100%;
  height: 124px;
  margin: 6px 0;
  padding: 8px;
  overflow: hidden;
  color: #fff;
  background: #101010;
  border: 0;
  text-align: left;
  font-size: 10px;
}

.title-card:nth-of-type(2),
.title-card:nth-of-type(3),
.title-card:nth-of-type(4) {
  background: linear-gradient(#1a2029 0 18px, #101010 18px);
}

.title-card.active {
  box-shadow: 0 0 0 2px #ebf2fa;
}

.title-card .corner-check {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--active-bg) var(--check-icon) 12px 8px / 12px 12px no-repeat;
  border-bottom-left-radius: 50%;
}

.select-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-width: 58px;
  height: 24px;
  padding: 2px 4px;
  color: #fff;
  background: var(--control);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.select-button[aria-expanded="true"] {
  outline: 1px solid rgba(235, 242, 250, 0.8);
  background: #17191c;
}

.select-button:disabled,
.select-button[aria-disabled="true"] {
  color: rgba(255, 255, 255, .28);
  background: rgba(7, 9, 13, .55);
  cursor: not-allowed;
  opacity: .62;
}

.select-button:disabled .down-icon,
.select-button[aria-disabled="true"] .down-icon {
  opacity: .35;
}

.select-button.short {
  min-width: 40px;
}

.select-button.data-select {
  min-width: 88px;
}

.select-button.wide {
  min-width: 166px;
}

.down-icon,
.check-icon {
  display: block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  background-image: var(--down-icon);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform .16s ease;
}

.select-button[aria-expanded="true"] .down-icon {
  transform: rotate(180deg);
}

.select-popover {
  position: absolute;
  z-index: 100;
  min-width: 58px;
  max-width: 220px;
  padding: 4px;
  overflow: hidden;
  color: #fff;
  background: #171819;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.7), inset 0 1px rgba(255, 255, 255, 0.05);
}

.select-popover[hidden] {
  display: none;
}

.select-option {
  position: relative;
  display: block;
  width: 100%;
  height: 24px;
  padding: 0 6px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  background-clip: padding-box;
  border: 2px solid transparent;
  border-radius: 6px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select-option:hover,
.select-option:focus-visible {
  color: #fff;
  background-color: #25282b;
  outline: 0;
}

.select-option.selected {
  color: var(--active-text);
  background-color: var(--active-bg);
}

.select-option.selected::after {
  content: none;
}

.check-icon {
  width: 12px;
  height: 12px;
  background-image: var(--check-icon);
}

.check-icon.alt {
  background-image: var(--check-icon-alt);
}

.toggle {
  position: relative;
  width: 48px;
  height: 26px;
  padding: 2px;
  background: #232526;
  border: 1px solid #333;
  border-radius: 999px;
}

.toggle i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #32363a;
  border-radius: 50%;
  transition: transform .18s, background .18s;
}

.toggle.on i {
  background: #ebf2fa;
  transform: translateX(22px);
}

.right-header,
.config-group {
  position: relative;
  padding: 10px 12px;
}

.config-list {
  height: calc(100% - var(--layout-header-height));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-color: rgba(255, 255, 255, .32) transparent;
  scrollbar-width: thin;
}

.config-list::-webkit-scrollbar {
  width: 6px;
}

.config-list::-webkit-scrollbar-track {
  background: transparent;
}

.config-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .32);
  border-radius: 999px;
}

.config-group {
  height: 154px;
  overflow: hidden;
}

.config-group--single,
.config-group--metrics {
  height: auto;
  min-height: 174px;
  padding-bottom: 16px;
}

.config-group--single .group-title,
.config-group--metrics .group-title,
.config-group--detail .group-title {
  margin-bottom: 8px;
}

.config-group--single > .row + .row,
.config-group--metrics > .row + .row,
.config-group--detail > .row + .row {
  margin-top: 8px;
}

.config-group--single .style-strip,
.config-group--metrics .metric-strip {
  margin-top: 14px;
}

.config-group--detail .chart-style-list {
  margin-top: 6px;
}

.config-group--detail {
  height: auto;
  min-height: 186px;
  overflow: visible;
}

.config-group--dynamic {
  height: auto;
  min-height: 174px;
  padding-bottom: 16px;
  overflow: visible;
}

.config-group--dynamic.is-chart-editor {
  min-height: 300px;
}

.config-group--dynamic .group-title {
  margin-bottom: 8px;
}

.config-group--dynamic > .row + .data-type-editor,
.config-group--dynamic .data-type-editor > .row + .row {
  margin-top: 8px;
}

.config-group--dynamic .style-strip,
.config-group--dynamic .metric-strip {
  margin-top: 14px;
}

.config-group--dynamic .chart-style-list {
  margin-top: 6px;
}

.data-type-editor[hidden] {
  display: none;
}

.right-header {
  height: var(--layout-header-height);
  min-height: var(--layout-header-height);
}

.right-header::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 1px;
  background: var(--line-strong);
}

.right-header h2 {
  line-height: 16px;
}

.right-header > h2 + .separator {
  margin: 6px 0 10px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
}

.full-row label {
  width: 100%;
}

.group-title {
  margin-bottom: 4px;
  color: var(--label);
  font-size: 12px;
  line-height: 20px;
}

.pager {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pager button {
  width: 20px;
  height: 20px;
  padding: 0;
  color: #fff;
  background: radial-gradient(circle, #34383f, #2c2d31);
  border: .5px solid var(--line-strong);
  border-radius: 4px;
}

.pager div {
  width: 104px;
  height: 24px;
  background: var(--block);
}

.pager.is-disabled {
  display: none;
}

.pager button:disabled {
  cursor: not-allowed;
}

.style-strip,
.metric-strip {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.metric-strip {
  gap: 4px;
}

.choice-track {
  min-width: 0;
  height: 40px;
  overflow: hidden;
}

.style-strip .choice-track {
  height: 48px;
}

.choice-track__rail {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .16s ease-out, opacity .16s ease-out;
  will-change: transform, opacity;
}

.choice-track__rail.is-leaving-next,
.choice-track__rail.is-leaving-previous {
  opacity: 0;
  transition-duration: .12s;
  transition-timing-function: ease-in;
}

.choice-track__rail.is-leaving-next {
  transform: translateX(-24px);
}

.choice-track__rail.is-leaving-previous {
  transform: translateX(24px);
}

.choice-track__rail.is-entering-next,
.choice-track__rail.is-entering-previous {
  opacity: 0;
  transition: none;
}

.choice-track__rail.is-entering-next {
  transform: translateX(24px);
}

.choice-track__rail.is-entering-previous {
  transform: translateX(-24px);
}

.metric-strip .choice-track__rail {
  gap: 10px;
}

.metric-strip .choice-track {
  overflow: visible;
}

.choice-track__rail > [data-carousel-position="hidden"] {
  display: none;
}

.strip-arrow {
  width: 32px;
  height: 32px;
  font-size: 20px;
}

.style-box {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  background: var(--block);
  border: 1px solid transparent;
  transition: width .16s ease, height .16s ease, flex-basis .16s ease, border-color .16s ease;
}

.style-box:nth-child(2) {
  background: #2d3c52;
  box-shadow: inset 0 0 0 2px rgba(235, 242, 250, .08);
}

.style-box:nth-child(3) {
  background: linear-gradient(135deg, #121923, #374860);
  border-color: rgba(116, 180, 255, .45);
}

.style-box:nth-child(4) {
  background: rgba(235, 242, 250, .1);
  border: 1px dashed rgba(235, 242, 250, .4);
}

.style-box.active {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  border-color: var(--active-bg);
  outline: 0;
  box-shadow: 0 0 0 1px var(--active-bg);
}

.style-box.active::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  background: var(--active-bg) var(--check-icon) center / 10px 10px no-repeat;
  content: "";
}

.metric-card {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  column-gap: 4px;
  align-items: center;
  width: 46px;
  flex: 0 0 46px;
  height: 32px;
  padding: 4px;
  overflow: hidden;
  background: var(--block);
  border: 1px solid transparent;
  text-align: left;
  transition: width .16s ease, height .16s ease, flex-basis .16s ease, border-color .16s ease;
}

.metric-card.small {
  grid-template-columns: 20px max-content;
  justify-content: center;
  padding: 4px 0;
}

.metric-card.featured {
  grid-template-columns: 20px max-content;
  justify-content: center;
  width: 64px;
  flex-basis: 64px;
  height: 40px;
  padding: 4px 6px;
  border-color: var(--active-bg);
  box-shadow: 0 0 0 1px var(--active-bg);
}

.metric-card i {
  grid-row: 1 / -1;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #34383f, #2c2d31);
  border: .5px solid var(--line-strong);
  border-radius: 4px;
}

.metric-card.featured i {
  width: 20px;
  height: 20px;
}

.metric-card b,
.metric-card span {
  display: block;
  white-space: nowrap;
}

.metric-card b {
  font-size: 10px;
  line-height: 12px;
}

.metric-card span {
  font-size: 6px;
  line-height: 8px;
}

.composite-style-list,
.chart-style-list {
  display: block;
  height: 300px;
  margin-top: 12px;
  padding-right: 4px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-color: rgba(255, 255, 255, .32) transparent;
  scrollbar-width: thin;
}

.composite-style-list::-webkit-scrollbar,
.chart-style-list::-webkit-scrollbar {
  width: 6px;
}

.composite-style-list::-webkit-scrollbar-track,
.chart-style-list::-webkit-scrollbar-track {
  background: transparent;
}

.composite-style-list::-webkit-scrollbar-thumb,
.chart-style-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .32);
  border-radius: 999px;
}

.composite-style-card,
.chart-style-card {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  height: 124px;
  margin: 6px 0;
  padding: 8px;
  color: var(--label);
  background: #101010;
  border: 0;
  border-radius: 0;
  text-align: left;
}

.composite-style-card:hover,
.chart-style-card:hover {
  background: #101010;
}

.composite-style-card.active,
.chart-style-card.active {
  color: var(--white);
  border: 2px solid var(--active-bg);
  box-shadow: none;
}

.chart-mini {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 108px;
  padding: 8px 18px;
  background: #111720;
  border-radius: 3px;
}

.chart-mini i {
  display: block;
  width: 8px;
  background: #63738a;
  border-radius: 1px 1px 0 0;
}

.chart-mini i:nth-child(1) { height: 16px; }
.chart-mini i:nth-child(2) { height: 32px; }
.chart-mini i:nth-child(3) { height: 22px; }
.chart-mini i:nth-child(4) { height: 40px; }

.chart-style-card:nth-child(2) .chart-mini i:nth-child(2),
.chart-style-card:nth-child(4) .chart-mini i:nth-child(1) { height: 40px; }

.chart-style-card:nth-child(3) .chart-mini i:nth-child(4) { height: 28px; }

.chart-style-list[data-chart-type="line"] .chart-mini {
  align-items: center;
  gap: 0;
}

.chart-style-list[data-chart-type="line"] .chart-mini i {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  transform: rotate(-24deg);
}

.chart-style-list[data-chart-type="line"] .chart-mini i:nth-child(even) {
  transform: rotate(28deg);
}

.chart-style-list[data-chart-type="donut"] .chart-mini {
  align-items: center;
}

.chart-style-list[data-chart-type="donut"] .chart-mini i {
  display: none;
}

.chart-style-list[data-chart-type="donut"] .chart-mini::before {
  content: "";
  width: 38px;
  height: 38px;
  background: conic-gradient(#ebf2fa 0 34%, #63738a 34% 72%, #303947 72%);
  border: 5px solid #111720;
  border-radius: 50%;
}

.chart-style-check {
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  background: var(--active-bg) var(--check-icon) 12px 8px / 12px 12px no-repeat;
  border-bottom-left-radius: 50%;
}

.figma-export-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; color: #a9b0bd; background: #1d2026; border: 1px solid #2e333d; border-radius: 8px; }
.figma-export-summary strong { color: #ebf2fa; font-size: 13px; font-weight: 400; font-variant-numeric: tabular-nums; }
.figma-export-features { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 20px; padding: 0; list-style: none; color: #a9b8cb; font-size: 11px; }
.figma-export-features li::before { display: inline-block; width: 4px; height: 4px; margin: 0 6px 2px 0; border-radius: 50%; background: #78aaf0; content: ""; }
.figma-export-section-title { margin: 0 0 12px; color: #cbd2de; font-size: 12px; font-weight: 400; }
.figma-export-steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: figma-step; }
.figma-export-steps > li { display: flex; gap: 12px; counter-increment: figma-step; }
.figma-export-steps > li::before { display: grid; place-items: center; flex: 0 0 24px; height: 24px; border: 1px solid #3b4555; border-radius: 50%; color: #a4c6f5; background: #202a39; font-size: 11px; content: counter(figma-step); }
.figma-export-steps > li > div { min-width: 0; }
.figma-export-step-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 24px; color: #e2e7ef; font-size: 13px; font-weight: 400; }
.figma-export-once { padding: 1px 6px; color: #969eab; background: #25282e; border-radius: 4px; font-size: 10px; font-weight: 400; }
.figma-export-steps p { margin: 4px 0 0; color: #9399a4; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.figma-export-dialog code { color: #c7d3e6; font-size: 11px; }
.figma-export-dialog a { color: #8fc4ff; text-underline-offset: 3px; }
.figma-export-steps a { display: inline-block; margin-top: 6px; font-size: 12px; text-decoration: none; }
.figma-export-steps a:hover { text-decoration: underline; }
.figma-export-notes { margin-top: 18px; padding-top: 12px; border-top: 1px solid #2e2f33; color: #9399a4; font-size: 12px; }
.figma-export-notes summary { width: fit-content; cursor: pointer; }
.figma-export-note-list { display: grid; gap: 8px; margin: 10px 0 0; padding-left: 18px; line-height: 1.7; }
.figma-export-note-list strong { color: #cbd2de; font-weight: 400; }
.figma-export-status { margin: 0; max-height: 120px; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: #96a5ba; font-size: 12px; line-height: 1.6; }
.figma-export-status::before { display: inline-block; width: 6px; height: 6px; margin: 0 7px 2px 0; border-radius: 50%; background: #719bce; content: ""; }
.figma-export-status[data-state="busy"]::before { background: #7bb8ff; }
.figma-export-status[data-state="success"] { color: #93c9ad; }
.figma-export-status[data-state="success"]::before { background: #72b994; }
.figma-export-status[data-state="error"] { color: #f2a5a5; }
.figma-export-status[data-state="error"]::before { background: #f2a5a5; }
.figma-export-status[data-state="warning"] { color: #ddbf88; }
.figma-export-status[data-state="warning"]::before { background: #ddbf88; }
.figma-export-status + .vc-dialog__actions { margin-top: 12px; }

.editor-draft-settings { flex: 0 0 auto; margin: 0 16px 16px; padding-top: 16px; border-top: 1px solid #2e2f33; }
.editor-draft-settings h2 { margin: 0; font-size: 14px; font-weight: 400; }
.editor-draft-settings .muted-note { white-space: normal; overflow-wrap: anywhere; }
#editorDraftDialogError { color: #ffb5b5; }

.toast {
  position: fixed;
  z-index: 30;
  bottom: 24px;
  left: 50%;
  padding: 8px 14px;
  color: #17202d;
  background: #ebf2fa;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: .2s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
