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

body {
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 15, 90, 0.22), transparent 34%),
    linear-gradient(180deg, #09090b, #050506 62%);
  color: var(--theme-text);
  font-family: var(--theme-font-sans);
}

.app-shell {
  width: 100%;
  height: 100%;
}

#grid {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.vgt {
  --vgt-row-h: 28px;
  --vgt-head-h: 34px;
  --vgt-toolbar-h: 40px;
  --vgt-bumper-w: 26px;
  --vgt-scroll-w: 24px;
  --vgt-hscroll-h: 12px;
  --vgt-radius: 0px;
  --vgt-theme-filter: none;
  --vgt-pad-x: 8px;
  --vgt-border: var(--theme-border);
  --vgt-bg: #0d0d10;
  --vgt-head-bg: linear-gradient(180deg, #23232b, #17171d);
  --vgt-hover: #1a1a21;
  --vgt-muted: var(--theme-text-muted);

  width: 720px;
  height: 360px;
  background: linear-gradient(180deg, #111116, #09090c);
  border: 1px solid #4a2635;
  border-radius: var(--vgt-radius);
  overflow: hidden;
  user-select: none;
  font: 13px/1.2 var(--theme-font-sans);
  color: var(--theme-text);
  display: flex;
  flex-direction: column;
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 47, 109, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  filter: var(--vgt-theme-filter);
}

.vgt,
.vgt * {
  box-sizing: border-box;
}

.vgt:focus,
.vgt:focus-visible {
  outline: none;
  box-shadow: none;
}

.vgt__top {
  display: grid;
  grid-template-rows: var(--vgt-toolbar-h) var(--vgt-head-h);
  border-bottom: 1px solid var(--vgt-border);
}

.vgt__toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border-bottom: 1px solid var(--vgt-border);
  background: linear-gradient(180deg, #25131a, #170d12);
}

.vgt__btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: #ffd7e7;
  opacity: 0.75;
}

.vgt__btn:hover {
  opacity: 1;
}

.vgt__btn:disabled {
  opacity: 0.25;
  cursor: default;
}

.vgt__head {
  position: relative;
  display: block;
  align-items: stretch;
  overflow: hidden;
  background: var(--vgt-head-bg);
}

.vgt__headBumper {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--vgt-bumper-w);
  height: 100%;
  z-index: 4;
  border: 0;
  border-right: 1px solid #4a2635;
  border-bottom: 1px solid #4a2635;
  opacity: 1;
  background-color: #2a151d;
  background: linear-gradient(180deg, #3a1825, #241018);
  cursor: pointer;
  padding: 0;
}

.vgt__headBumper:hover {
  background: linear-gradient(180deg, #4a1c2f, #2e131e);
}

.vgt__headBumper:focus,
.vgt__rowBumper:focus {
  outline: none;
}

.vgt__headBumper[data-active="1"] {
  background: linear-gradient(180deg, #ff4b86, #ff0f5a);
  box-shadow: inset 0 0 0 1px rgba(255, 232, 240, 0.78);
}

.vgt__headInner {
  position: absolute;
  left: var(--vgt-bumper-w);
  top: 0;
  height: 100%;
  display: grid;
  z-index: 1;
  will-change: transform;
}

.vgt__hcell {
  position: relative;
  padding: 0 var(--vgt-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  border-right: 1px solid #4a2635;
  font-weight: 500;
  color: #ffe0ec;
}

.vgt__hcell:last-child {
  border-right: 0;
}

.vgt__hcell:hover {
  background: rgba(255, 47, 109, 0.12);
}

.vgt__hcell.vgt__hcell--selected {
  background: rgba(255, 47, 109, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 138, 176, 0.62);
}

.vgt__sort {
  width: 10px;
  height: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ff8ab0;
  opacity: 0.72;
  flex: 0 0 auto;
}

.vgt__sort::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 4px 6px 4px;
  border-color: transparent transparent currentColor transparent;
}

.vgt__sort--desc::before {
  transform: rotate(180deg);
}

.vgt__hlabel {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vgt__hcontrols {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.vgt__triBtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  --vgt-tri-half: 5px;
  --vgt-tri-main: 8px;
}

.vgt__triBtn::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 var(--vgt-tri-half) var(--vgt-tri-main) var(--vgt-tri-half);
  border-color: transparent transparent currentColor transparent;
  opacity: 0.9;
  transition: transform 120ms ease, opacity 120ms ease;
}

.vgt__triBtn--down::before {
  transform: rotate(180deg);
}

.vgt__triBtn--left::before {
  transform: rotate(-90deg);
}

.vgt__triBtn--right::before {
  transform: rotate(90deg);
}

.vgt__triBtn:hover::before {
  opacity: 1;
}

.vgt__triBtn:disabled::before {
  opacity: 0.35;
}

.vgt__filterBtn {
  border: 1px solid rgba(255, 47, 109, 0.38);
  background: #190b11;
  border-radius: 0;
  width: 18px;
  height: 18px;
  color: #ffb8cf;
  padding: 0;
  cursor: pointer;
  --vgt-tri-half: 3.5px;
  --vgt-tri-main: 5.5px;
}

.vgt__filterBtn[data-active="1"] {
  background: #2d0c17;
  border-color: #ff5b95;
  color: #ffe2ec;
}

.vgt__filterBtn:hover {
  background: #240d15;
}

.vgt__resizeHandle {
  position: absolute;
  top: 0;
  right: -4px;
  width: 8px;
  height: 100%;
  cursor: col-resize;
  z-index: 2;
}

.vgt__mid {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.vgt__rows {
  position: absolute;
  left: var(--vgt-bumper-w);
  right: var(--vgt-scroll-w);
  top: 0;
  bottom: var(--vgt-hscroll-h);
  overflow: hidden;
  z-index: 1;
  touch-action: auto;
}

.vgt__rowBumpers {
  position: absolute;
  left: 0;
  top: 0;
  bottom: var(--vgt-hscroll-h);
  width: var(--vgt-bumper-w);
  overflow: hidden;
  z-index: 1;
  border-right: 1px solid #303038;
  background: linear-gradient(180deg, #131319, #0d0d12);
}

.vgt__rowBumpersInner {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  will-change: transform;
}

.vgt__rowsInner {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  will-change: transform;
}

.vgt__rowBumper {
  display: block;
  width: 100%;
  height: var(--vgt-row-h);
  margin: 0;
  box-sizing: border-box;
  border: 0;
  border-bottom: 1px solid #25252d;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.vgt__rowBumper:hover {
  background: rgba(255, 47, 109, 0.16);
}

.vgt__rowBumper[data-selected="1"] {
  background: rgba(255, 47, 109, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 118, 163, 0.56);
}

.vgt__rowBumpers.vgt__rows--selecting {
  cursor: cell;
}

.vgt__row {
  height: var(--vgt-row-h);
  display: grid;
  align-items: stretch;
  border-bottom: 1px solid #25252d;
  background: transparent;
}

.vgt__row:nth-child(even) {
  background: #111116;
}

.vgt__row:hover {
  background: var(--vgt-hover);
}

.vgt__row[data-loading="1"] .vgt__cell {
  color: #8e8388;
}

.vgt__cell {
  padding: 0 var(--vgt-pad-x);
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-right: 1px solid #25252d;
  color: #f7d9e6;
}

.vgt__cell[data-format-bg="1"] {
  background: var(--vgt-cell-bg);
}

.vgt__cell[data-format-color="1"] {
  color: var(--vgt-cell-color);
}

.vgt__cell.vgt__cell--selected {
  background: rgba(255, 47, 109, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 118, 163, 0.52);
}

.vgt__cell.vgt__cell--editing {
  padding: 0;
  background: #050506;
  box-shadow: inset 0 0 0 2px var(--theme-focus);
}

.vgt__cell.vgt__cell--multiEditing {
  background: rgba(255, 47, 109, 0.12);
}

.vgt__cellEditor {
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0 var(--vgt-pad-x);
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.vgt__cell:last-child {
  border-right: 0;
}

.vgt__rows.vgt__rows--selecting {
  cursor: cell;
}

.vgt__scroll {
  position: absolute;
  top: 0;
  right: 0;
  bottom: var(--vgt-hscroll-h);
  width: var(--vgt-scroll-w);
  display: grid;
  grid-template-rows: 18px 1fr 18px;
  background: rgba(10, 10, 12, 0.96);
  border-left: 1px solid rgba(255, 47, 109, 0.24);
  border-radius: 0;
  overflow: visible;
  z-index: 2;
}

.vgt__hscroll {
  position: absolute;
  left: var(--vgt-bumper-w);
  right: var(--vgt-scroll-w);
  bottom: 0;
  height: var(--vgt-hscroll-h);
  background: rgba(10, 10, 12, 0.96);
  border-top: 1px solid rgba(255, 47, 109, 0.24);
  z-index: 2;
}

.vgt__htrack {
  position: absolute;
  left: 2px;
  right: 2px;
  top: 1px;
  bottom: 1px;
  border-radius: 0;
  background: rgba(78, 78, 90, 0.34);
  overflow: hidden;
}

.vgt__hthumb {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 64px;
  border-radius: 0;
  background: linear-gradient(180deg, #ff4b86, #ff0f5a);
  cursor: pointer;
  touch-action: none;
  will-change: transform;
}

.vgt__hthumb:hover {
  background: linear-gradient(180deg, #ff76a3, #ff2f6d);
}

.vgt__corner {
  position: absolute;
  right: 0;
  bottom: 0;
  width: var(--vgt-scroll-w);
  height: var(--vgt-hscroll-h);
  border-top: 1px solid rgba(255, 47, 109, 0.24);
  border-left: 1px solid rgba(255, 47, 109, 0.24);
  background: rgba(10, 10, 12, 0.96);
  z-index: 2;
}

.vgt__sbtn {
  border: 0;
  background: transparent;
  color: #ff9fbe;
  cursor: pointer;
  opacity: 0.6;
  padding: 0;
  --vgt-tri-half: 4px;
  --vgt-tri-main: 6px;
}

.vgt__sbtn:hover {
  opacity: 1;
}

.vgt__sbtn:disabled {
  opacity: 0.25;
  cursor: default;
}

.vgt__track {
  position: relative;
  margin: 2px 3px;
  border-radius: 0;
  background: rgba(78, 78, 90, 0.34);
  overflow: hidden;
}

.vgt__thumb {
  position: absolute;
  left: 0;
  right: 0;
  height: 24px;
  border-radius: 0;
  background: linear-gradient(180deg, #ff4b86, #ff0f5a);
  cursor: pointer;
  touch-action: none;
  will-change: transform;
}

.vgt__thumb:hover {
  background: linear-gradient(180deg, #ff76a3, #ff2f6d);
}

.vgt__overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--vgt-muted);
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 10, 0.94),
    rgba(8, 8, 10, 0.94)
  );
  pointer-events: none;
}

.vgt__overlay[data-show="1"] {
  display: flex;
}

.vgt__copyFabGroup {
  position: absolute;
  right: calc(var(--vgt-scroll-w) + 10px);
  bottom: calc(var(--vgt-hscroll-h) + 10px);
  z-index: 6;
  display: none;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.vgt__copyFabGroup[data-show="1"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.vgt__copyFab {
  border: 1px solid #ff5b95;
  border-radius: 0;
  background: linear-gradient(180deg, #ff4b86, #ff0f5a);
  color: #f5f9fc;
  font: 12px/1.1 var(--theme-font-sans);
  font-weight: 600;
  padding: 8px 14px;
  box-shadow: 0 12px 28px rgba(255, 15, 90, 0.22);
  transition: background-color 140ms ease, border-color 140ms ease;
  white-space: nowrap;
}

.vgt__copyFab--headers {
  background: linear-gradient(180deg, #44444f, #2d2d35);
  border-color: #6d6d79;
}

.vgt__copyFab[data-copied="1"] {
  background: linear-gradient(180deg, #ff76a3, #ff2f6d);
  border-color: #ff8db6;
}

.vgt__ctxMenu {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  min-width: 180px;
  padding: 6px;
  border: 1px solid #334152;
  border-radius: 0;
  background: #101014;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
  z-index: 16;
  gap: 4px;
}

.vgt__ctxMenu[data-open="1"] {
  display: grid;
}

.vgt__ctxMenuItem {
  border: 1px solid transparent;
  background: transparent;
  color: #e3e9f0;
  border-radius: 0;
  padding: 7px 9px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.vgt__ctxMenuItem:hover {
  border-color: #ff4b86;
  background: #241018;
}

.vgt__filterMenu {
  position: absolute;
  top: 0;
  left: 0;
  width: 260px;
  display: none;
  z-index: 10;
  border: 1px solid #334152;
  border-radius: 0;
  background: #101014;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  padding: 10px;
  gap: 8px;
}

.vgt__filterMenu[data-open="1"] {
  display: grid;
}

.vgt__filterTitle {
  font-size: 12px;
  font-weight: 600;
  color: #e3e9f0;
}

.vgt__filterSection {
  font-size: 11px;
  font-weight: 600;
  color: #a795a1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.vgt__filterDivider {
  border-top: 1px solid #24242c;
  margin: 2px 0;
}

.vgt__filterOp,
.vgt__filterInput {
  border: 1px solid #383842;
  border-radius: 0;
  padding: 6px 8px;
  background: #121217;
  color: #e3e9f0;
  font: inherit;
  width: 100%;
}

.vgt__formatColors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.vgt__formatColorField {
  display: grid;
  gap: 4px;
  color: #a795a1;
  font-size: 11px;
  font-weight: 600;
}

.vgt__formatColorInput {
  width: 100%;
  height: 30px;
  border: 1px solid #383842;
  border-radius: 0;
  background: #121217;
  padding: 2px;
  cursor: pointer;
}

.vgt__filterActions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.vgt__footer {
  min-height: 34px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid var(--vgt-border);
  background: linear-gradient(180deg, #17171d, #101014);
  padding: 0 8px;
  gap: 8px;
}

.vgt__footerSpacer {
  min-width: 0;
}

.vgt__status {
  color: var(--vgt-muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  justify-self: end;
}

.vgt__pager {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.vgt__pill {
  border: 1px solid #383842;
  background: linear-gradient(180deg, #191920, #121217);
  border-radius: 0;
  padding: 6px 10px;
  color: #f2d4e1;
  font: inherit;
  cursor: pointer;
  opacity: 0.9;
  white-space: nowrap;
}

.vgt__pill:hover {
  opacity: 1;
}

.vgt__pill:disabled {
  opacity: 0.35;
  cursor: default;
}

.vgt__editModeToggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 62px;
  min-height: 29px;
  padding: 5px 8px;
  font-weight: 600;
}

.vgt__editModeToggle[data-mode="read"] {
  opacity: 0.75;
}

.vgt__editModeToggle[data-mode="edit"] {
  background: linear-gradient(180deg, #ff2b75, #d61b5d);
  color: #fff6fb;
  border-color: #ff5b95;
}

.vgt__editModeIcon,
.vgt__editModeSwitch {
  display: inline-flex;
  flex: 0 0 auto;
}

.vgt__editModeIcon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vgt__editModeSwitch {
  width: 26px;
  height: 14px;
  align-items: center;
  border: 1px solid currentColor;
  background: color-mix(in srgb, currentColor 10%, transparent);
  opacity: 0.82;
  padding: 1px;
}

.vgt__editModeSwitch span {
  width: 10px;
  height: 10px;
  background: currentColor;
  transform: translateX(0);
  transition: transform 140ms ease;
}

.vgt__editModeToggle[data-mode="edit"] .vgt__editModeSwitch span {
  transform: translateX(12px);
}

.vgt__themeControl {
  position: relative;
}

.vgt__themeToggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  min-width: 34px;
}

.vgt__themeIcon {
  display: inline-flex;
  line-height: 0;
}

.vgt__themeIcon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vgt__themeIcon circle {
  fill: currentColor;
  stroke: none;
}

.vgt__themeMenu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  display: none;
  grid-template-columns: minmax(150px, 1fr);
  min-width: 165px;
  gap: 5px;
  z-index: 16;
  border: 1px solid #334152;
  border-radius: 0;
  background: #101014;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
  padding: 6px;
}

.vgt__themeMenu[data-open="1"] {
  display: grid;
}

.vgt__themeMenuItem {
  border: 1px solid transparent;
  background: transparent;
  color: #e3e9f0;
  border-radius: 0;
  padding: 7px 9px;
  text-align: left;
  font: 12px/1.1 inherit;
  cursor: pointer;
}

.vgt__themeMenuItem[data-active="1"] {
  background: #1f2230;
  border-color: #ff5b95;
}

.vgt__themeMenuItem--current {
  font-size: 11px;
  color: #a9aeb8;
  border-color: #2b2b34;
  cursor: default;
}

.vgt__themeMenuItem:hover {
  border-color: #ff4b86;
  background: #241018;
}

.vgt__themeMenuItem:disabled {
  opacity: 0.72;
  cursor: default;
}

.vgt__searchWrap {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.vgt__searchSelect {
  border: 1px solid #383842;
  border-radius: 0;
  padding: 6px 8px;
  background: #121217;
  color: #e3e9f0;
  font: inherit;
  max-width: 180px;
}

.vgt__searchInput {
  border: 1px solid #383842;
  border-radius: 0;
  padding: 6px 10px;
  background: #121217;
  color: #e3e9f0;
  font: inherit;
  min-width: 0;
  width: 220px;
  max-width: 100%;
  flex: 1 1 180px;
}

.vgt__searchInput::placeholder {
  color: #9d8892;
}

.vgt__searchSelect:focus,
.vgt__searchInput:focus,
.vgt__filterOp:focus,
.vgt__filterInput:focus,
.vgt__formatColorInput:focus {
  outline: none;
  border-color: #ff5b95;
  box-shadow: 0 0 0 2px rgba(255, 91, 149, 0.24);
}

body {
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--theme-accent) 16%, transparent), transparent 36%),
    linear-gradient(180deg, color-mix(in srgb, var(--theme-bg-canvas) 94%, white), var(--theme-bg-canvas) 68%);
}

.vgt {
  --vgt-border: var(--theme-border);
  --vgt-bg: var(--theme-surface-1);
  --vgt-head-bg: linear-gradient(180deg, var(--theme-surface-2), var(--theme-surface-3));
  --vgt-hover: color-mix(in srgb, var(--theme-accent) 10%, var(--theme-surface-2));
  --vgt-muted: var(--theme-text-muted);
  background: linear-gradient(180deg, var(--theme-surface-1), var(--theme-surface-2));
  border-color: var(--theme-border);
  color: var(--theme-text);
  box-shadow:
    var(--theme-shadow-lg),
    0 0 0 1px color-mix(in srgb, var(--theme-accent) 16%, transparent),
    inset 0 1px 0 color-mix(in srgb, white 18%, transparent);
  filter: var(--vgt-theme-filter);
}

.vgt__toolbar {
  background: linear-gradient(180deg, var(--theme-surface-2), var(--theme-surface-3));
}

.vgt__btn,
.vgt__sbtn,
.vgt__pill,
.vgt__themeMenuItem,
.vgt__ctxMenuItem,
.vgt__searchSelect,
.vgt__searchInput,
.vgt__filterOp,
.vgt__filterInput,
.vgt__formatColorInput {
  color: var(--theme-text);
}

.vgt__headBumper {
  border-right-color: var(--theme-border);
  border-bottom-color: var(--theme-border);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--theme-surface-3) 80%, var(--theme-accent) 20%),
    color-mix(in srgb, var(--theme-surface-2) 78%, black)
  );
}

.vgt__headBumper:hover {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--theme-surface-3) 68%, var(--theme-accent) 32%),
    color-mix(in srgb, var(--theme-surface-2) 66%, var(--theme-accent) 20%)
  );
}

.vgt__headBumper[data-active="1"] {
  background: linear-gradient(180deg, var(--theme-accent), var(--theme-accent-strong));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme-accent-contrast) 78%, transparent);
}

.vgt__hcell {
  border-right-color: var(--theme-border);
  color: var(--theme-text);
}

.vgt__hcell:hover,
.vgt__rowBumper:hover,
.vgt__themeMenuItem:hover,
.vgt__ctxMenuItem:hover {
  background: color-mix(in srgb, var(--theme-accent) 12%, var(--theme-surface-2));
}

.vgt__hcell.vgt__hcell--selected,
.vgt__rowBumper[data-selected="1"],
.vgt__cell.vgt__cell--selected {
  background: color-mix(in srgb, var(--theme-accent) 18%, var(--theme-surface-1));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme-accent) 42%, transparent);
}

.vgt__sort {
  color: color-mix(in srgb, var(--theme-accent) 74%, var(--theme-text));
}

.vgt__filterBtn,
.vgt__pill,
.vgt__searchSelect,
.vgt__searchInput,
.vgt__filterOp,
.vgt__filterInput,
.vgt__formatColorInput,
.vgt__themeMenu,
.vgt__filterMenu,
.vgt__ctxMenu {
  border-color: var(--theme-border);
  background: var(--theme-surface-1);
}

.vgt__filterBtn {
  color: color-mix(in srgb, var(--theme-accent) 72%, var(--theme-text));
}

.vgt__filterBtn[data-active="1"],
.vgt__themeMenuItem[data-active="1"],
.vgt__themeMenuItem:focus {
  background: color-mix(in srgb, var(--theme-accent) 14%, var(--theme-surface-2));
  border-color: color-mix(in srgb, var(--theme-accent) 50%, var(--theme-border));
}

.vgt__rowBumpers,
.vgt__footer {
  border-right-color: var(--theme-border);
  background: linear-gradient(180deg, var(--theme-surface-2), var(--theme-surface-3));
}

.vgt__rowBumper,
.vgt__row {
  border-bottom-color: color-mix(in srgb, var(--theme-border) 78%, transparent);
}

.vgt__row:nth-child(even) {
  background: color-mix(in srgb, var(--theme-surface-2) 88%, var(--theme-surface-1));
}

.vgt__row[data-loading="1"] .vgt__cell,
.vgt__themeMenuItem--current,
.vgt__filterSection,
.vgt__formatColorField,
.vgt__searchInput::placeholder {
  color: var(--theme-text-muted);
}

.vgt__cell {
  border-right-color: color-mix(in srgb, var(--theme-border) 78%, transparent);
  color: var(--theme-text);
}

.vgt__cell[data-format-bg="1"] {
  background: var(--vgt-cell-bg);
}

.vgt__cell[data-format-bg="1"].vgt__cell--selected {
  background: color-mix(in srgb, var(--vgt-cell-bg) 78%, var(--theme-accent) 22%);
}

.vgt__cell[data-format-color="1"] {
  color: var(--vgt-cell-color);
}

.vgt__cell.vgt__cell--editing {
  background: var(--theme-surface-1);
  box-shadow: inset 0 0 0 2px var(--theme-focus);
}

.vgt__cell.vgt__cell--editing[data-format-bg="1"] {
  background: var(--vgt-cell-bg);
}

.vgt__cell.vgt__cell--multiEditing {
  background: color-mix(in srgb, var(--theme-accent) 10%, var(--theme-surface-1));
}

.vgt__scroll,
.vgt__hscroll,
.vgt__corner {
  background: color-mix(in srgb, var(--theme-surface-1) 92%, var(--theme-surface-2));
}

.vgt__scroll {
  border-left-color: color-mix(in srgb, var(--theme-border) 52%, transparent);
}

.vgt__hscroll,
.vgt__corner {
  border-top-color: color-mix(in srgb, var(--theme-border) 52%, transparent);
}

.vgt__corner {
  border-left-color: color-mix(in srgb, var(--theme-border) 52%, transparent);
}

.vgt__htrack,
.vgt__track {
  background: color-mix(in srgb, var(--theme-border) 28%, transparent);
}

.vgt__hthumb,
.vgt__thumb,
.vgt__copyFab,
.vgt__editModeToggle[data-mode="edit"] {
  background: linear-gradient(180deg, var(--theme-accent), var(--theme-accent-strong));
  color: var(--theme-accent-contrast);
  border-color: color-mix(in srgb, var(--theme-accent) 56%, var(--theme-border));
}

.vgt__hthumb:hover,
.vgt__thumb:hover,
.vgt__copyFab[data-copied="1"] {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--theme-accent) 76%, white),
    var(--theme-accent)
  );
}

.vgt__overlay {
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--theme-surface-1) 90%, transparent),
    color-mix(in srgb, var(--theme-surface-1) 90%, transparent)
  );
}

.vgt__copyFab {
  box-shadow: var(--theme-shadow-md);
}

.vgt__copyFab--headers {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--theme-surface-3) 70%, var(--theme-text) 30%),
    color-mix(in srgb, var(--theme-surface-2) 58%, black)
  );
  border-color: var(--theme-border);
}

.vgt__ctxMenu,
.vgt__filterMenu,
.vgt__themeMenu {
  box-shadow: var(--theme-shadow-md);
}

.vgt__filterTitle {
  color: var(--theme-text);
}

.vgt__filterDivider {
  border-top-color: color-mix(in srgb, var(--theme-border) 72%, transparent);
}

.vgt__ctxMenuItem:focus,
.vgt__filterBtn:focus,
.vgt__searchSelect:focus,
.vgt__searchInput:focus,
.vgt__filterOp:focus,
.vgt__filterInput:focus,
.vgt__formatColorInput:focus {
  border-color: var(--theme-focus);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-focus) 24%, transparent);
}

.vgt__navBtn {
  min-width: 36px;
  padding: 6px 8px;
  text-align: center;
  --vgt-tri-half: 5px;
  --vgt-tri-main: 8px;
}

@media (max-width: 760px) {
  .vgt {
    --vgt-toolbar-h: auto;
  }

  .vgt__top {
    grid-template-rows: auto var(--vgt-head-h);
  }

  .vgt__toolbar {
    padding: 6px 8px;
  }

  .vgt__searchWrap {
    width: 100%;
    gap: 6px;
  }

  .vgt__searchSelect {
    max-width: 48%;
    flex: 1 1 140px;
  }

  .vgt__searchInput {
    flex: 1 1 160px;
  }

  .vgt__themeMenu {
    right: auto;
    left: 0;
    min-width: 210px;
  }

  .vgt__footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
    padding: 6px 8px;
  }

  .vgt__footerSpacer {
    display: none;
  }

  .vgt__status {
    justify-self: center;
    text-align: center;
    width: 100%;
  }

  .vgt__filterMenu {
    width: min(260px, calc(100vw - 24px));
  }
}

@media (pointer: coarse) {
  .vgt {
    --vgt-scroll-w: 34px;
    --vgt-hscroll-h: 18px;
  }

  .vgt__rows,
  .vgt__rowBumpers {
    touch-action: none;
  }

  .vgt__sbtn {
    --vgt-tri-half: 5px;
    --vgt-tri-main: 8px;
  }

  .vgt__rows.vgt__rows--selecting {
    cursor: cell;
  }

  .vgt__copyFabGroup {
    display: inline-flex;
  }

  .vgt__copyFab {
    min-width: 110px;
    min-height: 34px;
    touch-action: manipulation;
  }

  .vgt__copyFab[data-copied="1"]::after {
    content: "Copied";
    color: #f3fff8;
  }

  .vgt__copyFab[data-copied="1"] {
    color: transparent;
  }

  .vgt__ctxMenu {
    display: none !important;
  }
}

/* shadcn-inspired presentation layer */
:root,
html[data-theme="light"] {
  --vgt-ring: hsl(240 5.9% 10% / 0.14);
  --vgt-control-bg: hsl(0 0% 100%);
  --vgt-control-hover: hsl(240 4.8% 95.9%);
  --vgt-chrome-bg: hsl(0 0% 98%);
  --vgt-chrome-hover: hsl(240 4.8% 95.9%);
  --vgt-grid-line: hsl(240 5.9% 90% / 0.82);
  --vgt-row-alt: hsl(240 4.8% 95.9% / 0.36);
  --vgt-selected: hsl(240 5.9% 10% / 0.08);
  --vgt-selected-ring: hsl(240 5.9% 10% / 0.22);
}

html[data-theme="chrome-dark"],
html[data-theme="dark"] {
  --vgt-ring: hsl(0 0% 98% / 0.16);
  --vgt-control-bg: hsl(240 10% 3.9%);
  --vgt-control-hover: hsl(0 0% 98% / 0.07);
  --vgt-chrome-bg: hsl(240 10% 3.9%);
  --vgt-chrome-hover: hsl(0 0% 98% / 0.06);
  --vgt-grid-line: hsl(240 3.7% 18% / 0.72);
  --vgt-row-alt: hsl(0 0% 100% / 0.018);
  --vgt-selected: hsl(0 0% 98% / 0.10);
  --vgt-selected-ring: hsl(0 0% 98% / 0.24);
}

html[data-theme="warm"] {
  --vgt-ring: rgb(255 159 92 / 0.24);
  --vgt-control-bg: var(--theme-surface-1);
  --vgt-control-hover: color-mix(in srgb, var(--theme-accent) 13%, var(--theme-surface-1));
  --vgt-chrome-bg: color-mix(in srgb, var(--theme-surface-1) 84%, black);
  --vgt-chrome-hover: color-mix(in srgb, var(--theme-accent) 12%, var(--theme-surface-1));
  --vgt-grid-line: color-mix(in srgb, var(--theme-border) 58%, transparent);
  --vgt-row-alt: color-mix(in srgb, var(--theme-surface-2) 28%, transparent);
  --vgt-selected: color-mix(in srgb, var(--theme-accent) 16%, transparent);
  --vgt-selected-ring: color-mix(in srgb, var(--theme-accent) 36%, transparent);
}

html[data-theme="aurora"] {
  --vgt-ring: rgb(112 216 223 / 0.24);
  --vgt-control-bg: var(--theme-surface-1);
  --vgt-control-hover: color-mix(in srgb, var(--theme-accent) 12%, var(--theme-surface-1));
  --vgt-chrome-bg: color-mix(in srgb, var(--theme-surface-1) 88%, black);
  --vgt-chrome-hover: color-mix(in srgb, var(--theme-accent) 10%, var(--theme-surface-1));
  --vgt-grid-line: color-mix(in srgb, var(--theme-border) 56%, transparent);
  --vgt-row-alt: color-mix(in srgb, var(--theme-surface-2) 24%, transparent);
  --vgt-selected: color-mix(in srgb, var(--theme-accent) 15%, transparent);
  --vgt-selected-ring: color-mix(in srgb, var(--theme-accent) 34%, transparent);
}

body {
  background: var(--theme-bg-canvas);
}

.app-shell {
  box-sizing: border-box;
  padding: 16px;
  background: var(--theme-bg-canvas);
}

.vgt {
  --vgt-radius: var(--theme-radius-lg);
  --vgt-head-h: 36px;
  --vgt-toolbar-h: 44px;
  --vgt-hscroll-h: 13px;
  --vgt-pad-x: 10px;
  background: var(--theme-surface-1);
  border-color: var(--theme-border);
  border-radius: var(--vgt-radius);
  box-shadow: var(--theme-shadow-lg);
  color: var(--theme-text);
}

.vgt:focus-visible {
  box-shadow: var(--theme-shadow-lg), 0 0 0 2px var(--vgt-ring);
}

.vgt__top,
.vgt__toolbar,
.vgt__footer {
  border-color: var(--theme-border);
}

.vgt__toolbar,
.vgt__footer,
.vgt__head,
.vgt__rowBumpers {
  background: var(--vgt-chrome-bg);
}

.vgt__toolbar {
  padding: 0 10px;
}

.vgt__headBumper {
  border-right-color: var(--theme-border);
  border-bottom-color: var(--theme-border);
  background: var(--vgt-chrome-bg);
}

.vgt__headBumper:hover,
.vgt__hcell:hover,
.vgt__rowBumper:hover {
  background: var(--vgt-chrome-hover);
}

.vgt__row:hover,
.vgt__filterBtn:hover,
.vgt__ctxMenuItem:hover,
.vgt__themeMenuItem:hover {
  background: var(--vgt-control-hover);
}

.vgt__headBumper[data-active="1"],
.vgt__hcell.vgt__hcell--selected,
.vgt__rowBumper[data-selected="1"],
.vgt__cell.vgt__cell--selected {
  background: var(--vgt-selected);
  box-shadow: inset 0 0 0 1px var(--vgt-selected-ring);
}

.vgt__hcell {
  background: var(--vgt-chrome-bg);
  border-right-color: var(--vgt-grid-line);
  color: var(--theme-text);
  font-size: 12px;
  font-weight: 600;
}

.vgt__sort,
.vgt__filterBtn {
  color: var(--theme-text-muted);
}

.vgt__rowBumpers {
  border-right-color: var(--theme-border);
}

.vgt__row,
.vgt__rowBumper {
  border-bottom-color: var(--vgt-grid-line);
}

.vgt__row:nth-child(even) {
  background: var(--vgt-row-alt);
}

.vgt__cell {
  border-right-color: var(--vgt-grid-line);
  color: var(--theme-text);
}

.vgt__row[data-loading="1"] .vgt__cell,
.vgt__status,
.vgt__filterSection,
.vgt__formatColorField,
.vgt__themeMenuItem--current,
.vgt__searchInput::placeholder {
  color: var(--theme-text-muted);
}

.vgt__cell.vgt__cell--editing {
  background: var(--theme-surface-1);
  box-shadow: inset 0 0 0 2px var(--theme-focus);
}

.vgt__btn,
.vgt__sbtn {
  color: var(--theme-text-muted);
}

.vgt__btn:hover,
.vgt__sbtn:hover {
  color: var(--theme-text);
}

.vgt__filterBtn,
.vgt__pill,
.vgt__searchSelect,
.vgt__searchInput,
.vgt__filterOp,
.vgt__filterInput,
.vgt__formatColorInput {
  background: var(--vgt-control-bg);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-md);
  color: var(--theme-text);
  box-shadow: 0 1px 2px hsl(240 10% 3.9% / 0.04);
}

.vgt__filterBtn {
  width: 20px;
  height: 20px;
}

.vgt__pill {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  opacity: 1;
}

.vgt__pill:hover {
  background: var(--vgt-control-hover);
}

.vgt__navBtn,
.vgt__navBtn:hover,
.vgt__navBtn:focus {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.vgt__navBtn:hover {
  color: var(--theme-text);
}

.vgt__searchSelect,
.vgt__searchInput,
.vgt__filterOp,
.vgt__filterInput {
  min-height: 32px;
}

.vgt__filterBtn[data-active="1"],
.vgt__themeMenuItem[data-active="1"],
.vgt__editModeToggle[data-mode="edit"] {
  background: var(--theme-accent);
  border-color: var(--theme-accent);
  color: var(--theme-accent-contrast);
}

.vgt__editModeSwitch {
  border-radius: 999px;
}

.vgt__editModeSwitch span {
  border-radius: 999px;
}

.vgt__searchSelect:focus,
.vgt__searchInput:focus,
.vgt__filterOp:focus,
.vgt__filterInput:focus,
.vgt__formatColorInput:focus,
.vgt__filterBtn:focus,
.vgt__ctxMenuItem:focus,
.vgt__themeMenuItem:focus {
  border-color: var(--theme-focus);
  box-shadow: 0 0 0 2px var(--vgt-ring);
}

.vgt__filterMenu,
.vgt__ctxMenu,
.vgt__themeMenu {
  background: var(--theme-surface-1);
  border-color: var(--theme-border);
  border-radius: var(--theme-radius-md);
  box-shadow: var(--theme-shadow-md);
}

.vgt__ctxMenuItem,
.vgt__themeMenuItem {
  border-radius: var(--theme-radius-sm);
  color: var(--theme-text);
}

.vgt__filterTitle {
  color: var(--theme-text);
}

.vgt__filterDivider {
  border-top-color: var(--theme-border);
}

.vgt__scroll,
.vgt__hscroll,
.vgt__corner {
  background: var(--theme-surface-2);
}

.vgt__scroll {
  border-left-color: var(--theme-border);
}

.vgt__hscroll,
.vgt__corner {
  border-top-color: var(--theme-border);
}

.vgt__corner {
  border-left-color: var(--theme-border);
}

.vgt__htrack,
.vgt__track {
  background: color-mix(in srgb, var(--theme-border) 78%, transparent);
  border-radius: 999px;
}

.vgt__hthumb,
.vgt__thumb {
  background: var(--theme-text-muted);
  border-radius: 999px;
}

.vgt__hthumb:hover,
.vgt__thumb:hover {
  background: var(--theme-text);
}

.vgt__copyFab {
  background: var(--theme-accent);
  border-color: var(--theme-accent);
  border-radius: var(--theme-radius-md);
  color: var(--theme-accent-contrast);
  box-shadow: var(--theme-shadow-md);
}

.vgt__copyFab--headers {
  background: var(--theme-surface-1);
  border-color: var(--theme-border);
  color: var(--theme-text);
}

.vgt__copyFab[data-copied="1"] {
  background: var(--theme-success);
  border-color: var(--theme-success);
  color: hsl(0 0% 100%);
}
