{"version":3,"sourceRoot":null,"mappings":"AAKA,kBACE,yRAoBE,kEAaF,iDAOA,gFAOA,yMAUE,iEASF,4BACE,mKAQE,uCAOJ,+PAcE,8GAQA,2DAUA,6DAMA,iEAOF,iIASA,kEAEE,kCAIA,6CAQF,6WAgBA,8KAUA,+DAqEA,gUAmBE,kEAMF,8CAKA,oGAQA,mQAWE,gEAKA,8HAME,yEAMF,wEAMF,6FAIA,qKAUE,8IAUA,2EAMF,sEAGE,uBAKF,0EAIA,mIAWA,sJASA,4DAEE,gCAIA,0CAKF,mWAeA,yJASA,qFAIA,4DAWA,kEAGA,uOAaE,yMAUF,yDAIE,4CAKF,mGAQE,0CAKF,8RA4EA,gUAgBE,kEAOF,iJAaA,yNAcA,6GAUA,qCAIA,0JAUE,yCAKA,8EAOF,kQASA,yOAcE,uBAKA,wGAMA,wLAUA,6CAIA,sCAKA,qXAUA,6RAIA,6IAQA,6CAQA,mEAOF,qSAkBE,2FASA,mhBASA,+PAKA,uFAOF,2EAKA,iFAKA,gIASE,2GASA,mFAQF,sFAOA,6KAYA,wBACE,wDAKA,+BAMF,+bAuBE,mDAMF,yDAKA,kHAOA,8FAOA,sQAkBE,6EAQA,0SAKA,4SAKA,gVAMA,0JASA,4JAOA,yGAMA,wRAaA,gHAMA,sCAMF,wBACE,yCAMF,6EAKA,oHAMA,+NAYE,6CAIA,4FAQF,wFAOA,oHASA,8IAME,wEAKF,mCAGE,mEAUF,6GAKE,mFAOF,6IAKA,iEACE,8BAGA,6GAKF,gIAMA,wbAYE,sFAIA,kCAGA,wCAGA,sCAGA,kCAIA,kOAQF,+NASA,kKAWA,mIAIA,mDAGA,4FAKA,iFAGA,6FAGA,wIAUE,8KASF,+LAOA,sCAKA,yKAaA,sEASA,+EAKA,wGAQE,oEAKA,4HASF,mNASA,8RAcA,wIAOA,wNAWE,8IAUA,4BAGE,uBAKF,kFAMF,yEAKA,yPAYE,sBAKF,4DAMA,mEAKA,6NAaE,4TASA,iSAGA,iQAGA,+RAIA,6BAIA,+EAKA,qCAKA,kEAOF,oFAKA,4DAEE,+BAIA,0FAMF,kUAcA,yKASA,4DAiIA,oEAOA,+BAIA,wgBA2BE,wEAME,gBAAiB,6BAOrB,mFAOA,sLAWE,wEAMF,iGASA,gJAQA,iEAMA,oIAME,sBAKF,4IASA,kEAIA,6JASA,wKAOA,wSAUA,8MAUE,gEAKA,kEAMF,iEAhhDF,uCACE,kBACE,2OAgBJ,+BACE,kBACE,8DAIA,gDAMJ,8BACE,kBACE,sCAIA,iDAGE,kDAMF,sDAoQJ,uCACE,kBACE,4LAcJ,+BACE,kBACE,gDAIA,qGAMJ,8BACE,kBACE,mCAIA,6EAKA,sGAKA,iDAIA,uCAg5BJ,uCACE,kBACE,kKAYJ,+BACE,kBACE,wMAUA,4DAIA,4DAKA,qIAGE,yFAQN,8BACE,kBACE,wHAQA,uMAOA,sFAKA,wCAIA,uGAKA,gJAQA,yFAMA,iDAIA,mOA2MJ,uCACE,kBACE,sHAQJ,+BACE,kBACE,qDAIA,4FAOJ,8BACE,kBACE,8CAIA,2EAKA","sources":["dist/sections/big-data.css"],"sourcesContent":["/* ── components/virtual-list/virtual-list.css ── */\n/* -- Virtual List ----------------------------------------------- */\n/* Windowed list: only the rows on screen exist in the DOM. The     */\n/* sizer supplies the scrollbar length, the pool rides inside it.   */\n\n@layer components {\n  .virtual-list {\n    --virtual-list-row-height: 40px;\n\n    position: relative;\n    overflow-y: auto;\n    overscroll-behavior: contain;\n    /* the windowing owns the scroll position: Firefox's scroll anchoring would follow\n       the recycled rows, move scrollTop, re-render and move it again - a scroll\n       that runs on by itself (big-data-firefox.e2e) */\n    overflow-anchor: none;\n    scrollbar-gutter: stable;\n    border: 1px solid var(--border);\n    border-radius: var(--radius-lg);\n    background: var(--card);\n    color: var(--card-foreground);\n\n    /* the rows are absolutely placed inside the sizer — tell the browser it\n       need not look outside this box when painting or laying out */\n    contain: strict;\n\n    &:focus-visible {\n      outline: 2px solid var(--ring);\n      outline-offset: 2px;\n    }\n  }\n\n  /* Row height is set with --virtual-list-row-height rather than a data-size\n     scale: it is a continuous measurement the scroll maths reads, and every\n     real use picks its own (a grid tile needs a different height from a text\n     row). A three-value scale would only get in the way. */\n\n  /* Height stands in for every row that could exist, so the scrollbar has the\n     right length and feel. */\n  .virtual-list-sizer {\n    position: relative;\n    width: 100%;\n  }\n\n  /* The recycled pool. Translated as a block once per frame rather than\n     repositioning every row individually. */\n  .virtual-list-rows {\n    position: absolute;\n    inset-inline: 0;\n    top: 0;\n    will-change: translate;\n  }\n\n  .virtual-list-row {\n    display: flex;\n    align-items: center;\n    gap: 0.75rem;\n    height: var(--virtual-list-row-height);\n    padding-inline: 0.875rem;\n    font-size: 0.875rem;\n    border-bottom: 1px solid var(--border);\n    background: var(--card);\n\n    &:hover {\n      background: var(--accent);\n      color: var(--accent-foreground);\n    }\n  }\n\n  /* -- Grid (several items per row) --------------------------- */\n  /* data-columns turns each recycled row into a grid of cells. The row height\n     still governs the scroll maths, so make it tall enough for a whole tile. */\n  .virtual-list[data-columns] {\n    & .virtual-list-row {\n      display: grid;\n      grid-template-columns: repeat(var(--virtual-list-columns, 3), 1fr);\n      gap: 0.5rem;\n      padding: 0.25rem 0.5rem;\n      border-bottom: none;\n      background: transparent;\n\n      &:hover {\n        background: transparent;\n        color: inherit;\n      }\n    }\n  }\n\n  .virtual-list-cell {\n    display: flex;\n    flex-direction: column;\n    align-items: center;\n    justify-content: center;\n    gap: 0.25rem;\n    min-width: 0;\n    padding: 0.375rem;\n    border: 1px solid var(--border);\n    border-radius: var(--radius-md);\n    background: var(--card);\n    font-size: 0.75rem;\n    text-align: center;\n\n    & > span {\n      max-width: 100%;\n      overflow: hidden;\n      text-overflow: ellipsis;\n      white-space: nowrap;\n      color: var(--muted-foreground);\n    }\n\n    & svg {\n      width: 1.25rem;\n      height: 1.25rem;\n      color: var(--foreground);\n    }\n\n    /* Composed .image keeps its own aspect ratio and object-fit; the cell only\n       says how wide it may be. Fixed dimensions matter here because a recycled\n       cell swaps the src rather than the element — without them every scroll\n       frame would reflow the row as each new picture arrives. */\n    & > .image {\n      width: 2.75rem;\n      flex-shrink: 0;\n      background: var(--muted);\n    }\n\n    &:hover {\n      background: var(--accent);\n      color: var(--accent-foreground);\n    }\n  }\n\n  /* Secondary text inside a row. */\n  .virtual-list-row-meta {\n    margin-inline-start: auto;\n    font-size: 0.75rem;\n    color: var(--muted-foreground);\n    font-variant-numeric: tabular-nums;\n  }\n\n  /* -- Loading and empty states ------------------------------- */\n  /* Both replace the rows entirely, so the pool is simply hidden. */\n  .virtual-list[data-state=\"loading\"],\n  .virtual-list[data-state=\"empty\"] {\n    & .virtual-list-rows {\n      display: none;\n    }\n\n    & .virtual-list-sizer {\n      height: 100% !important; /* no scrollable content in these states */\n    }\n  }\n\n  /* Both overlays hang off .virtual-list itself, not the sizer: attr() reads\n     the attribute of the element the pseudo-element belongs to, and\n     data-empty-text is authored on the list. */\n  .virtual-list[data-state=\"loading\"]::before {\n    content: \"\";\n    position: absolute;\n    inset: 0;\n    /* placeholder rows, drawn rather than built from elements */\n    background: repeating-linear-gradient(\n      to bottom,\n      var(--muted) 0,\n      var(--muted) calc(var(--virtual-list-row-height) - 1px),\n      transparent calc(var(--virtual-list-row-height) - 1px),\n      transparent var(--virtual-list-row-height)\n    );\n    opacity: 0.6;\n    animation: virtual-list-pulse 1.6s ease-in-out infinite;\n  }\n\n  .virtual-list[data-state=\"empty\"]::after {\n    content: attr(data-empty-text);\n    position: absolute;\n    inset: 0;\n    display: grid;\n    place-items: center;\n    font-size: 0.875rem;\n    color: var(--muted-foreground);\n  }\n\n  @keyframes virtual-list-pulse {\n    0%,\n    100% {\n      opacity: 0.6;\n    }\n    50% {\n      opacity: 0.3;\n    }\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  @layer components {\n    .virtual-list,\n    .virtual-list *,\n    .virtual-list::before,\n    .virtual-list::after,\n    .virtual-list *::before,\n    .virtual-list *::after,\n    .virtual-list-row,\n    .virtual-list-row::before,\n    .virtual-list-row::after {\n      transition: none;\n      animation: none;\n      scroll-behavior: auto;\n    }\n  }\n}\n\n@media (prefers-contrast: more) {\n  @layer components {\n    .virtual-list-row {\n      border-bottom-color: var(--muted-foreground);\n    }\n\n    .virtual-list:focus-visible {\n      outline-width: 3px;\n    }\n  }\n}\n\n@media (forced-colors: active) {\n  @layer components {\n    .virtual-list {\n      border-color: ButtonText;\n    }\n\n    .virtual-list-row {\n      border-bottom-color: ButtonText;\n\n      &:hover {\n        background: Highlight;\n        color: HighlightText;\n      }\n    }\n\n    .virtual-list:focus-visible {\n      outline-color: Highlight;\n    }\n  }\n}\n\n/* ── components/data-tree/data-tree.css ── */\n/* -- Data Tree --------------------------------------------------- */\n/* A windowed tree: the sizer gives the scrollbar its length, a      */\n/* recycled pool of items rides inside it. Depth is one custom       */\n/* property per item - indentation is CSS.                           */\n\n@layer components {\n  .data-tree {\n    --data-tree-row-height: 32px;\n    --data-tree-indent: 1.25rem;\n\n    position: relative;\n    overflow-y: auto;\n    overscroll-behavior: contain;\n    /* the windowing owns the scroll position: Firefox's scroll anchoring would follow\n       the recycled rows, move scrollTop, re-render and move it again - a scroll\n       that runs on by itself (big-data-firefox.e2e) */\n    overflow-anchor: none;\n    scrollbar-gutter: stable;\n    border: 1px solid var(--border);\n    border-radius: var(--radius-lg);\n    background: var(--card);\n    color: var(--card-foreground);\n    font-size: 0.875rem;\n    contain: strict;\n\n    &:focus-visible {\n      outline: 2px solid var(--ring);\n      outline-offset: 2px;\n    }\n  }\n\n  .data-tree-sizer {\n    position: relative;\n    width: 100%;\n  }\n\n  .data-tree-items {\n    position: absolute;\n    inset-inline: 0;\n    top: 0;\n    padding-inline: 0.25rem;\n    will-change: translate;\n  }\n\n  .data-tree-item {\n    display: flex;\n    align-items: center;\n    gap: 0.25rem;\n    height: var(--data-tree-row-height);\n    padding-inline-start: calc(var(--depth, 0) * var(--data-tree-indent) + 0.25rem);\n    padding-inline-end: 0.5rem;\n    border-radius: var(--radius-sm);\n    cursor: default;\n    user-select: none;\n\n    &:hover {\n      background: var(--accent);\n      color: var(--accent-foreground);\n    }\n\n    &[aria-selected=\"true\"] {\n      background: color-mix(in oklch, var(--primary) 14%, var(--card));\n      color: var(--foreground);\n      font-weight: 500;\n\n      /* the selected item under the pointer: more selected, never the soft hover */\n      &:hover {\n        background: color-mix(in oklch, var(--primary) 24%, var(--card));\n      }\n    }\n\n    /* a filter's own hits, among the ancestors kept to reach them */\n    &[data-match] .data-tree-label {\n      color: var(--foreground);\n      font-weight: 600;\n    }\n  }\n\n  .data-tree:focus-visible .data-tree-item[data-active] {\n    box-shadow: inset 0 0 0 2px var(--ring);\n  }\n\n  .data-tree-toggle {\n    flex: none;\n    display: grid;\n    place-items: center;\n    width: 1.25rem;\n    height: 1.25rem;\n    border-radius: var(--radius-sm);\n    color: var(--muted-foreground);\n    cursor: pointer;\n\n    &::before {\n      content: \"\";\n      width: 0.375rem;\n      height: 0.375rem;\n      border-inline-end: 1.5px solid currentColor;\n      border-bottom: 1.5px solid currentColor;\n      rotate: -45deg;\n      transition: rotate 150ms ease;\n    }\n\n    &:hover {\n      background: color-mix(in oklch, var(--foreground) 8%, transparent);\n    }\n  }\n\n  /* a leaf has no toggle - only its place, so labels line up */\n  .data-tree-item:not([aria-expanded]) .data-tree-toggle {\n    cursor: default;\n\n    &::before {\n      content: none;\n    }\n  }\n\n  .data-tree-item[aria-expanded=\"true\"] .data-tree-toggle::before {\n    rotate: 45deg;\n  }\n\n  .data-tree-label {\n    display: flex;\n    align-items: center;\n    gap: 0.375rem;\n    min-width: 0;\n    overflow: hidden;\n    text-overflow: ellipsis;\n    white-space: nowrap;\n  }\n\n  /* secondary text inside a label (counts, sizes) */\n  .data-tree-meta {\n    margin-inline-start: auto;\n    padding-inline-start: 0.75rem;\n    color: var(--muted-foreground);\n    font-size: 0.75rem;\n    font-variant-numeric: tabular-nums;\n  }\n\n  /* -- loading and empty -------------------------------------- */\n  .data-tree[data-state=\"loading\"],\n  .data-tree[data-state=\"empty\"] {\n    & .data-tree-items {\n      display: none;\n    }\n\n    & .data-tree-sizer {\n      height: 100% !important; /* nothing to scroll in these states */\n    }\n  }\n\n  .data-tree[data-state=\"loading\"]::before {\n    content: \"\";\n    position: absolute;\n    inset: 0.25rem;\n    background: repeating-linear-gradient(\n      to bottom,\n      var(--muted) 0,\n      var(--muted) calc(var(--data-tree-row-height) - 6px),\n      transparent calc(var(--data-tree-row-height) - 6px),\n      transparent var(--data-tree-row-height)\n    );\n    opacity: 0.6;\n    animation: data-tree-pulse 1.6s ease-in-out infinite;\n  }\n\n  .data-tree[data-state=\"empty\"]::after {\n    content: attr(data-empty-text);\n    position: absolute;\n    inset: 0;\n    display: grid;\n    place-items: center;\n    color: var(--muted-foreground);\n  }\n\n  .data-tree:not([data-empty-text])[data-state=\"empty\"]::after {\n    content: \"Nothing matches.\";\n  }\n\n  @keyframes data-tree-pulse {\n    0%,\n    100% {\n      opacity: 0.6;\n    }\n    50% {\n      opacity: 0.3;\n    }\n  }\n\n  /* -- drag and drop: items that drag (data-drag), where dropped records would land (data-drop) -- */\n  .data-tree[data-drag] .data-tree-item[draggable=\"true\"] {\n    cursor: grab;\n  }\n  .data-tree-drop {\n    position: absolute;\n    inset-inline: 0.25rem;\n    z-index: 3;\n    height: 2px;\n    margin-top: -1px;\n    /* a line starts where the level it lands on does */\n    margin-inline-start: calc(var(--depth, 0) * var(--data-tree-indent) + 1.5rem);\n    border-radius: 1px;\n    background: var(--primary);\n    pointer-events: none;\n\n    /* into an item: it becomes its parent - framed */\n    &[data-place=\"into\"] {\n      height: var(--data-tree-row-height);\n      margin: 0;\n      border-radius: var(--radius-sm);\n      background: color-mix(in oklch, var(--primary) 12%, transparent);\n      box-shadow: inset 0 0 0 2px var(--primary);\n    }\n  }\n\n  /* -- inline editing (data-editable): the label holds its editor; a refused value shows its message below -- */\n  .data-tree-item[data-editing] {\n    overflow: visible;\n    z-index: 2;\n\n    & .data-tree-label {\n      flex: 1;\n      overflow: visible;\n    }\n  }\n  .data-tree-editor {\n    position: relative;\n    display: flex;\n    flex: 1;\n    align-items: center;\n    gap: 0.375rem;\n    min-width: 0;\n\n    & > :is(.input, .select) {\n      flex: 1;\n      min-width: 0;\n    }\n  }\n  .data-tree-error {\n    position: absolute;\n    inset-block-start: calc(100% + 0.25rem);\n    inset-inline-start: 0;\n    z-index: 4;\n    padding: 0.25rem 0.5rem;\n    border-radius: var(--radius-sm);\n    background: var(--destructive);\n    color: var(--destructive-foreground);\n    font-size: 0.75rem;\n    white-space: nowrap;\n    box-shadow: var(--shadow-md);\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  @layer components {\n    .data-tree,\n    .data-tree *,\n    .data-tree::before,\n    .data-tree::after,\n    .data-tree *::before,\n    .data-tree *::after,\n    .data-tree[data-state=\"loading\"]::before {\n      transition: none;\n      animation: none;\n      scroll-behavior: auto;\n    }\n  }\n}\n\n@media (prefers-contrast: more) {\n  @layer components {\n    .data-tree {\n      border-color: var(--muted-foreground);\n    }\n\n    .data-tree:focus-visible .data-tree-item[data-active] {\n      box-shadow: inset 0 0 0 2px var(--foreground);\n    }\n  }\n}\n\n@media (forced-colors: active) {\n  @layer components {\n    .data-tree {\n      border-color: ButtonText;\n    }\n\n    .data-tree-item[aria-selected=\"true\"] {\n      background: Highlight;\n      color: HighlightText;\n    }\n\n    .data-tree:focus-visible .data-tree-item[data-active] {\n      outline: 2px solid Highlight;\n      outline-offset: -2px;\n    }\n\n    .data-tree-toggle::before {\n      border-color: ButtonText;\n    }\n\n    .data-tree-drop {\n      background: Highlight;\n    }\n  }\n}\n\n/* ── components/data-grid/data-grid.css ── */\n/* -- Data Grid --------------------------------------------------- */\n/* One scroll container holds a sticky head and the windowed body,   */\n/* so the head and every row scroll sideways together and locked     */\n/* columns stick with position: sticky - no JS scroll syncing.       */\n\n@layer components {\n  .data-grid {\n    --data-grid-row-height: 36px;\n    --data-grid-template: repeat(4, minmax(8rem, 1fr));\n    /* data-select-model=\"checkbox\": the column of checkboxes in front of the rows */\n    --data-grid-check-width: 2.5rem;\n\n    display: flex;\n    flex-direction: column;\n    min-height: 12rem;\n    border: 1px solid var(--border);\n    border-radius: var(--radius-lg);\n    background: var(--card);\n    color: var(--card-foreground);\n    font-size: 0.875rem;\n    overflow: hidden;\n\n    &:focus-visible {\n      outline: 2px solid var(--ring);\n      outline-offset: 2px;\n    }\n  }\n\n  /* the one scroll container: both axes */\n  .data-grid-viewport {\n    position: relative;\n    flex: 1;\n    min-height: 0;\n    overflow: auto;\n    overscroll-behavior: contain;\n    /* the windowing owns the scroll position: Firefox's scroll anchoring would follow\n       the recycled rows, move scrollTop, re-render and move it again - a scroll\n       that runs on by itself (big-data-firefox.e2e) */\n    overflow-anchor: none;\n    scrollbar-gutter: stable;\n  }\n\n  .data-grid-head {\n    position: sticky;\n    top: 0;\n    z-index: 2;\n    width: max-content;\n    min-width: 100%;\n    background: var(--muted);\n    /* muted text on the muted head measured 4.34:1 in the default theme - a quarter of the foreground mixed in lifts\n       it past AA (4.5:1) in light and dark, in any theme whose foreground reads on its muted surface */\n    color: color-mix(in oklch, var(--muted-foreground) 75%, var(--foreground));\n    border-bottom: 1px solid var(--border);\n  }\n\n  /* every row - head, filters, body - lays out the same tracks */\n  .data-grid-row {\n    display: grid;\n    grid-template-columns: var(--data-grid-template);\n    width: max-content;\n    min-width: 100%;\n  }\n\n  /* a cell adds no width of its own: a row is as wide as the grid (or its fixed columns), and a 1fr column takes what\n     is left in every row alike - sized by content, a long tree label widened its rows past the header (VERIFIED: the\n     Knowledge Graph's hierarchy, label 205px against the header's 143px, its count cut at the panel edge) */\n  .data-grid-row > * {\n    contain: inline-size;\n  }\n\n  .data-grid-header,\n  .data-grid-cell,\n  .data-grid-filter-cell {\n    display: flex;\n    align-items: center;\n    gap: 0.375rem;\n    min-width: 0;\n    padding-inline: 0.75rem;\n    background: inherit;\n\n    &[data-locked] {\n      position: sticky;\n      z-index: 1;\n    }\n\n    &[data-align=\"end\"] {\n      justify-content: flex-end;\n      font-variant-numeric: tabular-nums;\n    }\n  }\n\n  /* the last locked column draws the edge the rest scrolls under */\n  .data-grid[data-has-locked]\n    :is(.data-grid-header, .data-grid-cell, .data-grid-filter-cell)[data-locked]:not(:has(~ [data-locked])) {\n    /* a selected cell keeps its edges (--_ring) under the locked edge */\n    box-shadow:\n      var(--_ring, 0 0 #0000),\n      1px 0 0 var(--border),\n      6px 0 8px -6px color-mix(in oklch, var(--foreground) 25%, transparent);\n  }\n\n  .data-grid-header {\n    position: relative;\n    height: var(--data-grid-row-height);\n    font-weight: 500;\n    font-size: 0.8125rem;\n    background: var(--muted);\n    cursor: pointer;\n    user-select: none;\n    -webkit-user-select: none;\n    /* a long press lifts the column - no callout over it (iOS) */\n    -webkit-touch-callout: none;\n    white-space: nowrap;\n\n    /* a hidden column: the attribute alone loses to display: flex */\n    &[hidden] {\n      display: none;\n    }\n\n    /* a finger rests on it: lifted, ready to move */\n    &[data-pressed] {\n      background: color-mix(in oklch, var(--accent) 70%, var(--muted));\n      color: var(--foreground);\n    }\n\n    /* the column being moved follows the pointer above the others */\n    &[data-dragging] {\n      z-index: 3;\n      border-radius: var(--radius-sm);\n      outline: 1px solid var(--border);\n      background: var(--popover);\n      color: var(--foreground);\n      box-shadow: var(--shadow-md);\n      cursor: grabbing;\n    }\n\n    &[data-type=\"number\"] {\n      justify-content: flex-end;\n    }\n\n    &[data-sortable=\"false\"] {\n      cursor: default;\n    }\n\n    /* the sort direction - an arrow with a shaft, unlike the menu's chevron - and the priority of a multisort (1, 2, …) */\n    &[aria-sort]::after {\n      content: \"\";\n      flex: none;\n      width: 0.8125rem;\n      height: 0.8125rem;\n      background: var(--foreground);\n      mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='m19 12-7 7-7-7'/%3E%3C/svg%3E\")\n        center / contain no-repeat;\n    }\n\n    &[aria-sort=\"ascending\"]::after {\n      mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 7-7 7 7'/%3E%3Cpath d='M12 19V5'/%3E%3C/svg%3E\");\n    }\n\n    &[data-sort-index]::before {\n      content: attr(data-sort-index);\n      order: 2;\n      font-size: 0.6875rem;\n      font-variant-numeric: tabular-nums;\n      color: var(--foreground);\n    }\n\n    &[aria-sort] {\n      color: var(--foreground);\n    }\n\n    &:hover {\n      color: var(--foreground);\n    }\n\n    &:focus-visible {\n      outline: 2px solid var(--ring);\n      outline-offset: -2px;\n    }\n  }\n\n  /* the column menu's arrow, at the end of every header; a locked column shows a pin in it */\n  .data-grid-menu-button {\n    order: 3;\n    flex: none;\n    display: inline-flex;\n    align-items: center;\n    justify-content: center;\n    gap: 0.125rem;\n    min-width: 1.375rem;\n    height: 1.375rem;\n    margin-inline-start: auto;\n    padding: 0 0.125rem;\n    border: 0;\n    border-radius: var(--radius-sm);\n    background: transparent;\n    color: var(--muted-foreground);\n    cursor: pointer;\n\n    /* icons are masks over currentColor, so they follow the theme */\n    &::before,\n    &::after {\n      content: \"\";\n      flex: none;\n      width: 0.875rem;\n      height: 0.875rem;\n      background: currentColor;\n    }\n\n    &::before {\n      display: none;\n      width: 0.75rem;\n      height: 0.75rem;\n      mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 17v5'/%3E%3Cpath d='M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z'/%3E%3C/svg%3E\")\n        center / contain no-repeat;\n      color: var(--primary);\n    }\n\n    &::after {\n      mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E\")\n        center / contain no-repeat;\n    }\n\n    &:hover,\n    &[aria-expanded=\"true\"] {\n      background: var(--accent);\n      color: var(--accent-foreground);\n    }\n  }\n\n  .data-grid-header[data-locked] .data-grid-menu-button::before {\n    display: block;\n  }\n\n  /* right-aligned headers pack at the end: the arrow follows the label */\n  .data-grid-header[data-type=\"number\"] .data-grid-menu-button {\n    margin-inline-start: 0;\n  }\n\n  /* the end edge resizes the column: a line shows where it is */\n  .data-grid-resizer {\n    position: absolute;\n    inset-block: 0;\n    inset-inline-end: 0;\n    z-index: 1;\n    width: 0.5rem;\n    cursor: col-resize;\n    touch-action: none;\n\n    &::after {\n      content: \"\";\n      position: absolute;\n      inset-block: 25%;\n      inset-inline-end: 0;\n      width: 1px;\n      background: var(--border);\n    }\n\n    &:hover::after,\n    &[data-active]::after {\n      inset-block: 0;\n      width: 2px;\n      background: var(--ring);\n    }\n  }\n\n  .data-grid[data-resizing] {\n    cursor: col-resize;\n    user-select: none;\n    -webkit-user-select: none;\n  }\n\n  /* where a moved column lands */\n  .data-grid-drop-marker {\n    position: absolute;\n    top: 0;\n    z-index: 4;\n    width: 2px;\n    height: var(--data-grid-row-height);\n    margin-inline-start: -1px;\n    background: var(--primary);\n    pointer-events: none;\n  }\n\n  /* a finger needs room: the arrow and the edge grow on coarse pointers */\n  @media (pointer: coarse) {\n    .data-grid-menu-button {\n      min-width: 1.75rem;\n      height: 1.75rem;\n    }\n\n    .data-grid-resizer {\n      width: 1rem;\n    }\n  }\n\n  /* -- the column menu: a popover anchored to the arrow it opened from */\n  .data-grid-menu {\n    position: fixed;\n    inset: auto;\n    top: anchor(bottom);\n    right: anchor(right);\n    margin: 0.25rem 0 0;\n    /* no room below or at the end: above the arrow, or toward the other side */\n    position-try-fallbacks:\n      flip-block,\n      flip-inline,\n      flip-block flip-inline;\n    min-width: 12rem;\n    max-height: min(26rem, calc(100dvh - 1rem));\n    overflow-y: auto;\n    overscroll-behavior: contain;\n    padding: 0.25rem;\n    border: 1px solid var(--border);\n    border-radius: var(--radius-md);\n    background: var(--popover);\n    color: var(--popover-foreground);\n    box-shadow: var(--shadow-md);\n    font-size: 0.875rem;\n\n    &:popover-open {\n      display: flex;\n      flex-direction: column;\n    }\n  }\n\n  .data-grid-menu-group {\n    display: flex;\n    flex-direction: column;\n  }\n\n  .data-grid-menu-label {\n    padding: 0.375rem 0.5rem 0.25rem;\n    color: var(--muted-foreground);\n    font-size: 0.75rem;\n    font-weight: 500;\n  }\n\n  .data-grid-menu-separator {\n    flex: none;\n    height: 1px;\n    margin: 0.25rem -0.25rem;\n    background: var(--border);\n  }\n\n  .data-grid-menu-item {\n    position: relative;\n    display: flex;\n    align-items: center;\n    gap: 0.5rem;\n    width: 100%;\n    min-height: 2rem;\n    padding: 0.25rem 0.5rem;\n    border: 0;\n    border-radius: var(--radius-sm);\n    background: transparent;\n    color: inherit;\n    font: inherit;\n    text-align: start;\n    white-space: nowrap;\n    cursor: pointer;\n\n    /* the leading slot: an icon, or the checkbox */\n    &::before {\n      content: \"\";\n      flex: none;\n      width: 1rem;\n      height: 1rem;\n      background: currentColor;\n    }\n\n    &[data-action=\"asc\"]::before {\n      mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 7-7 7 7'/%3E%3Cpath d='M12 19V5'/%3E%3C/svg%3E\")\n        center / contain no-repeat;\n    }\n\n    &[data-action=\"desc\"]::before {\n      mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='m19 12-7 7-7-7'/%3E%3C/svg%3E\")\n        center / contain no-repeat;\n    }\n\n    &[data-action=\"reset\"]::before {\n      mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3C/svg%3E\")\n        center / contain no-repeat;\n    }\n\n    /* the sort in force: a dot at the end */\n    &[role=\"menuitemradio\"][aria-checked=\"true\"]::after {\n      content: \"\";\n      width: 0.375rem;\n      height: 0.375rem;\n      margin-inline-start: auto;\n      border-radius: 50%;\n      background: currentColor;\n    }\n\n    &[role=\"menuitemcheckbox\"]::before {\n      box-sizing: border-box;\n      border: 1px solid var(--input);\n      border-radius: calc(var(--radius-sm) - 2px);\n      background: var(--background);\n    }\n\n    &[role=\"menuitemcheckbox\"][aria-checked=\"true\"]::before {\n      border-color: var(--primary);\n      background: var(--primary);\n    }\n\n    /* the tick, drawn over the box */\n    &[role=\"menuitemcheckbox\"][aria-checked=\"true\"]::after {\n      content: \"\";\n      position: absolute;\n      inset-inline-start: calc(0.5rem + 0.3125rem);\n      top: 50%;\n      width: 0.3125rem;\n      height: 0.5625rem;\n      border-inline-end: 2px solid var(--primary-foreground);\n      border-bottom: 2px solid var(--primary-foreground);\n      rotate: 45deg;\n      translate: 0 -60%;\n    }\n\n    &:is(:hover, :focus-visible):not(:disabled) {\n      outline: none;\n      background: var(--accent);\n      color: var(--accent-foreground);\n    }\n\n    &:disabled {\n      opacity: 0.5;\n      cursor: default;\n    }\n  }\n\n  @media (pointer: coarse) {\n    .data-grid-menu-item {\n      min-height: 2.75rem;\n    }\n  }\n\n  /* -- the filter row ------------------------------------------ */\n  .data-grid-filters {\n    border-top: 1px solid var(--border);\n    background: var(--card);\n  }\n\n  .data-grid-filter-cell {\n    height: calc(var(--data-grid-row-height) + 4px);\n    padding-inline: 0.375rem;\n    background: var(--card);\n  }\n\n  .data-grid-filter {\n    width: 100%;\n    min-width: 0;\n    height: 1.75rem;\n    padding-inline: 0.5rem;\n    border: 1px solid var(--input);\n    border-radius: var(--radius-sm);\n    background: var(--background);\n    color: var(--foreground);\n    font: inherit;\n    font-size: 0.8125rem;\n\n    &::placeholder {\n      color: var(--muted-foreground);\n    }\n\n    &:focus-visible {\n      outline: 2px solid var(--ring);\n      outline-offset: -1px;\n      border-color: var(--ring);\n    }\n  }\n\n  /* -- the windowed body ----------------------------------------- */\n  .data-grid-body {\n    position: relative;\n    width: max-content;\n    min-width: 100%;\n    contain: layout paint;\n  }\n\n  .data-grid-rows {\n    position: absolute;\n    top: 0;\n    inset-inline-start: 0;\n    width: max-content;\n    min-width: 100%;\n    will-change: translate;\n  }\n\n  .data-grid-body .data-grid-row {\n    height: var(--data-grid-row-height);\n    background: var(--card);\n    border-bottom: 1px solid var(--border);\n    cursor: default;\n\n    &:hover {\n      background: color-mix(in oklch, var(--accent) 60%, var(--card));\n    }\n  }\n\n  .data-grid-cell {\n    white-space: nowrap;\n\n    &:focus-visible {\n      outline: 2px solid var(--ring);\n      outline-offset: -2px;\n    }\n  }\n\n  /* -- selection models -----------------------------------------------------------\n     Hover is a soft neutral tint; a selected cell a mid tint of the primary colour with a strong 2px line along the\n     edges of its region (data-edge: top bottom start end, written per cell) - the two never look alike. A grid that\n     selects keeps the browser's text selection out of the body: a drag sweeps cells, Ctrl / Cmd + C copies them. */\n  .data-grid[data-select] .data-grid-body {\n    user-select: none;\n    -webkit-user-select: none;\n    -webkit-touch-callout: none;\n\n    & :is(input, textarea, [contenteditable]) {\n      user-select: text;\n      -webkit-user-select: text;\n    }\n  }\n\n  /* the cell and column models hover a cell or a column, never the row */\n  .data-grid[data-select]:is([data-select-model~=\"cell\"], [data-select-model=\"column\"])\n    .data-grid-body\n    .data-grid-row:hover {\n    background: var(--card);\n  }\n  .data-grid[data-select][data-select-model~=\"cell\"] .data-grid-body {\n    & .data-grid-cell {\n      cursor: cell;\n    }\n    & .data-grid-cell:hover:not([data-selected]) {\n      background: color-mix(in oklch, var(--accent) 60%, var(--card));\n    }\n  }\n\n  .data-grid-body .data-grid-cell[data-hover]:not([data-selected]) {\n    background: color-mix(in oklch, var(--accent) 60%, var(--card));\n  }\n\n  /* a selected cell (and a selected row's checkbox) under the pointer - the cell, its column, its row - is more\n     selected, never the soft hover: a deeper tint, the same strong line */\n  .data-grid-body :is(.data-grid-cell, .data-grid-check)[data-selected] {\n    --_edge-top: 0px;\n    --_edge-bottom: 0px;\n    --_edge-start: 0px;\n    --_edge-end: 0px;\n    --_ring:\n      inset 0 var(--_edge-top) 0 0 var(--primary), inset 0 calc(-1 * var(--_edge-bottom)) 0 0 var(--primary),\n      inset var(--_edge-start) 0 0 0 var(--primary), inset calc(-1 * var(--_edge-end)) 0 0 0 var(--primary);\n    /* the tint is the cells' own: a selected row's tint ends where its frame does */\n    background: color-mix(in oklch, var(--primary) 20%, var(--card));\n    box-shadow: var(--_ring);\n\n    &:hover,\n    &[data-hover] {\n      background: color-mix(in oklch, var(--primary) 32%, var(--card));\n    }\n    &[data-edge~=\"top\"] {\n      --_edge-top: 2px;\n    }\n    &[data-edge~=\"bottom\"] {\n      --_edge-bottom: 2px;\n    }\n    &[data-edge~=\"start\"] {\n      --_edge-start: 2px;\n    }\n    &[data-edge~=\"end\"] {\n      --_edge-end: 2px;\n    }\n    /* start and end are logical; the shadows are physical */\n    &:dir(rtl) {\n      --_ring:\n        inset 0 var(--_edge-top) 0 0 var(--primary), inset 0 calc(-1 * var(--_edge-bottom)) 0 0 var(--primary),\n        inset calc(-1 * var(--_edge-start)) 0 0 0 var(--primary), inset var(--_edge-end) 0 0 0 var(--primary);\n    }\n  }\n\n  /* the row models: the row under the pointer deepens its selected cells alike */\n  .data-grid:not([data-select-model~=\"cell\"], [data-select-model=\"column\"])\n    .data-grid-body\n    .data-grid-row:hover\n    > :is(.data-grid-cell, .data-grid-check)[data-selected] {\n    background: color-mix(in oklch, var(--primary) 32%, var(--card));\n  }\n\n  /* the checkbox model: a checkbox in front of every row (sticky at the start, first whatever the column order - the\n     element is its row's last), one in the head for every row of the query */\n  .data-grid-check {\n    order: -1;\n    position: sticky;\n    inset-inline-start: 0;\n    z-index: 2;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    background: inherit;\n    cursor: pointer;\n  }\n  .data-grid-head > .data-grid-row:not(.data-grid-filters) > .data-grid-check {\n    height: var(--data-grid-row-height);\n    background: var(--muted);\n  }\n  .data-grid-filters .data-grid-check {\n    cursor: default;\n  }\n  .data-grid[data-select=\"single\"] .data-grid-head .data-grid-check .checkbox {\n    visibility: hidden;\n  }\n\n  /* -- drag and drop: rows that drag (data-drag), where dropped records would land (data-drop) -- */\n  .data-grid[data-drag] .data-grid-body .data-grid-row[draggable=\"true\"] {\n    cursor: grab;\n  }\n  .data-grid[data-dragging-rows] .data-grid-body .data-grid-row[aria-selected=\"true\"] {\n    opacity: 0.6;\n  }\n  .data-grid-row-drop {\n    position: absolute;\n    inset-inline: 0;\n    z-index: 4;\n    height: 2px;\n    margin-top: -1px;\n    background: var(--primary);\n    pointer-events: none;\n\n    /* into a row: it becomes its parent - framed */\n    &[data-place=\"into\"] {\n      height: var(--data-grid-row-height);\n      margin-top: 0;\n      background: color-mix(in oklch, var(--primary) 12%, transparent);\n      box-shadow: inset 0 0 0 2px var(--primary);\n    }\n  }\n\n  /* the column models: a selected column's header */\n  .data-grid-header[aria-selected=\"true\"] {\n    --_ring: inset 0 -2px 0 0 var(--primary);\n    background: color-mix(in oklch, var(--primary) 20%, var(--muted));\n    color: var(--foreground);\n    box-shadow: var(--_ring);\n  }\n\n  .data-grid[data-sweeping] {\n    cursor: cell;\n  }\n\n  /* the stand-in that carries a copy or a paste for a moment (Ctrl / Cmd + C, V) - never seen */\n  .data-grid-clipboard {\n    position: fixed;\n    inset-block-start: 0;\n    inset-inline-start: 0;\n    inline-size: 1px;\n    block-size: 1px;\n    padding: 0;\n    border: 0;\n    opacity: 0;\n    pointer-events: none;\n    resize: none;\n  }\n\n  .data-grid-content {\n    min-width: 0;\n    overflow: hidden;\n    text-overflow: ellipsis;\n  }\n\n  /* -- inline editing: an editable column's cell holds its editor ------------------\n     The editor fills the cell (a row keeps its height); a refused value shows its message below the cell,\n     over the next row. */\n  .data-grid-cell[data-editing] {\n    overflow: visible;\n    padding-inline: 0.25rem;\n    z-index: 2;\n  }\n  .data-grid-editor {\n    position: relative;\n    display: flex;\n    flex: 1;\n    align-items: center;\n    min-width: 0;\n    overflow: visible;\n\n    & > :is(.input, .select, .textarea) {\n      flex: 1;\n      min-width: 0;\n      inline-size: 100%;\n    }\n    & > .textarea {\n      position: absolute;\n      inset-block-start: 0;\n      inset-inline: 0;\n      z-index: 3;\n      min-block-size: 6rem;\n      box-shadow: var(--shadow-md);\n    }\n  }\n  .data-grid-color-input {\n    inline-size: 2.5rem;\n    block-size: calc(var(--data-grid-row-height) - 0.75rem);\n    padding: 0;\n    border: 1px solid var(--input);\n    border-radius: var(--radius-sm);\n    background: var(--background);\n    cursor: pointer;\n  }\n  .data-grid-error {\n    position: absolute;\n    inset-block-start: calc(100% + 0.25rem);\n    inset-inline-start: 0;\n    z-index: 4;\n    padding: 0.25rem 0.5rem;\n    border-radius: var(--radius-sm);\n    background: var(--destructive);\n    color: var(--destructive-foreground);\n    font-size: 0.75rem;\n    white-space: nowrap;\n    box-shadow: var(--shadow-md);\n  }\n  /* an editable cell says so on hover: a double click edits it */\n  .data-grid-row > .data-grid-cell[data-editable]:not([data-editing]):hover {\n    box-shadow:\n      var(--_ring, 0 0 #0000),\n      inset 0 0 0 1px var(--input);\n  }\n\n  /* -- tree grid: the first column indents and carries the toggle --- */\n  .data-grid-toggle {\n    flex: none;\n    display: grid;\n    place-items: center;\n    width: 1.25rem;\n    height: 1.25rem;\n    margin-inline-start: calc(var(--depth, 0) * 1.25rem);\n    border-radius: var(--radius-sm);\n    color: var(--muted-foreground);\n    cursor: pointer;\n\n    &::before {\n      content: \"\";\n      width: 0.375rem;\n      height: 0.375rem;\n      border-inline-end: 1.5px solid currentColor;\n      border-bottom: 1.5px solid currentColor;\n      rotate: -45deg;\n      transition: rotate 150ms ease;\n    }\n\n    &[data-leaf] {\n      cursor: default;\n\n      &::before {\n        content: none;\n      }\n    }\n\n    &:not([data-leaf]):hover {\n      background: var(--accent);\n      color: var(--accent-foreground);\n    }\n  }\n\n  .data-grid-row[aria-expanded=\"true\"] .data-grid-toggle::before {\n    rotate: 45deg;\n  }\n\n  /* -- footer: counts + pager --------------------------------------- */\n  .data-grid-footer {\n    display: flex;\n    flex-wrap: wrap;\n    align-items: center;\n    justify-content: space-between;\n    gap: 0.5rem 1rem;\n    padding: 0.5rem 0.75rem;\n    border-top: 1px solid var(--border);\n    color: var(--muted-foreground);\n    font-size: 0.8125rem;\n    font-variant-numeric: tabular-nums;\n\n    &:empty {\n      display: none;\n    }\n  }\n\n  .data-grid-pager {\n    display: flex;\n    align-items: center;\n    gap: 0.25rem;\n  }\n\n  .data-grid-page-label {\n    padding-inline: 0.5rem;\n    color: var(--foreground);\n  }\n\n  .data-grid-page-btn {\n    display: grid;\n    place-items: center;\n    width: 1.75rem;\n    height: 1.75rem;\n    padding: 0;\n    border: 1px solid var(--border);\n    border-radius: var(--radius-sm);\n    background: var(--background);\n    color: var(--foreground);\n    cursor: pointer;\n\n    /* chevrons as masks over currentColor */\n    &::before {\n      content: \"\";\n      width: 1rem;\n      height: 1rem;\n      background: currentColor;\n      mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E\")\n        center / contain no-repeat;\n    }\n\n    &[data-page=\"first\"]::before {\n      mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m11 17-5-5 5-5'/%3E%3Cpath d='m18 17-5-5 5-5'/%3E%3C/svg%3E\");\n    }\n    &[data-page=\"next\"]::before {\n      mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E\");\n    }\n    &[data-page=\"last\"]::before {\n      mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 17 5-5-5-5'/%3E%3Cpath d='m13 17 5-5-5-5'/%3E%3C/svg%3E\");\n    }\n\n    &:dir(rtl)::before {\n      scale: -1 1;\n    }\n\n    &:hover:not(:disabled) {\n      background: var(--accent);\n      color: var(--accent-foreground);\n    }\n\n    &:disabled {\n      opacity: 0.5;\n      cursor: default;\n    }\n\n    &:focus-visible {\n      outline: 2px solid var(--ring);\n      outline-offset: 2px;\n    }\n  }\n\n  /* infinite: the next page is on its way */\n  .data-grid[data-loading-more] .data-grid-status::after {\n    content: \" · loading more…\";\n  }\n\n  /* -- loading and empty -------------------------------------------- */\n  .data-grid[data-state=\"loading\"],\n  .data-grid[data-state=\"empty\"] {\n    & .data-grid-rows {\n      display: none;\n    }\n\n    & .data-grid-body {\n      height: auto !important; /* nothing to scroll in these states */\n      min-height: calc(var(--data-grid-row-height) * 4);\n    }\n  }\n\n  .data-grid[data-state=\"loading\"] .data-grid-body {\n    background: repeating-linear-gradient(\n      to bottom,\n      var(--muted) 0,\n      var(--muted) calc(var(--data-grid-row-height) - 1px),\n      transparent calc(var(--data-grid-row-height) - 1px),\n      transparent var(--data-grid-row-height)\n    );\n    opacity: 0.6;\n    animation: data-grid-pulse 1.6s ease-in-out infinite;\n  }\n\n  /* attr() reads the body's own attribute: init copies the grid's\n     data-empty-text onto it */\n  .data-grid[data-state=\"empty\"] .data-grid-body::after {\n    content: attr(data-empty-text);\n    position: absolute;\n    inset: 0;\n    display: grid;\n    place-items: center;\n    color: var(--muted-foreground);\n  }\n\n  @keyframes data-grid-pulse {\n    0%,\n    100% {\n      opacity: 0.6;\n    }\n    50% {\n      opacity: 0.3;\n    }\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  @layer components {\n    .data-grid,\n    .data-grid *,\n    .data-grid *::before,\n    .data-grid *::after,\n    .data-grid[data-state=\"loading\"] .data-grid-body {\n      transition: none;\n      animation: none;\n      scroll-behavior: auto;\n    }\n  }\n}\n\n@media (prefers-contrast: more) {\n  @layer components {\n    .data-grid,\n    .data-grid-head,\n    .data-grid-body .data-grid-row,\n    .data-grid-filter,\n    .data-grid-page-btn,\n    .data-grid-menu,\n    .data-grid-menu-item[role=\"menuitemcheckbox\"]::before {\n      border-color: var(--muted-foreground);\n    }\n\n    .data-grid-resizer::after {\n      background: var(--muted-foreground);\n    }\n\n    .data-grid-header,\n    .data-grid-footer {\n      color: var(--foreground);\n    }\n\n    .data-grid-body :is(.data-grid-cell, .data-grid-check)[data-selected] {\n      background: color-mix(in oklch, var(--primary) 26%, var(--card));\n\n      &:hover,\n      &[data-hover] {\n        background: color-mix(in oklch, var(--primary) 38%, var(--card));\n      }\n    }\n  }\n}\n\n@media (forced-colors: active) {\n  @layer components {\n    .data-grid,\n    .data-grid-head,\n    .data-grid-body .data-grid-row,\n    .data-grid-filter,\n    .data-grid-page-btn {\n      border-color: ButtonText;\n    }\n\n    .data-grid-body .data-grid-row[aria-selected=\"true\"],\n    .data-grid-body :is(.data-grid-cell, .data-grid-check)[data-selected],\n    .data-grid-header[aria-selected=\"true\"] {\n      background: Highlight;\n      color: HighlightText;\n    }\n\n    .data-grid-cell:focus-visible,\n    .data-grid-header:focus-visible {\n      outline-color: Highlight;\n    }\n\n    .data-grid-menu {\n      border-color: CanvasText;\n    }\n\n    .data-grid-menu-item:is(:hover, :focus-visible):not(:disabled) {\n      background: Highlight;\n      color: HighlightText;\n    }\n\n    .data-grid-menu-item[role=\"menuitemcheckbox\"]::before {\n      border-color: ButtonText;\n    }\n\n    .data-grid-menu-item[role=\"menuitemcheckbox\"][aria-checked=\"true\"]::after {\n      border-color: ButtonText;\n    }\n\n    .data-grid-drop-marker,\n    .data-grid-row-drop,\n    .data-grid-resizer::after {\n      background: Highlight;\n    }\n\n    .data-grid-toggle::before {\n      border-color: ButtonText;\n    }\n\n    .data-grid-header[aria-sort]::after {\n      forced-color-adjust: none;\n      background: ButtonText;\n    }\n\n    /* masked icons paint their background - keep it the text color */\n    .data-grid-menu-button::before,\n    .data-grid-menu-button::after,\n    .data-grid-menu-item:not([role=\"menuitemcheckbox\"])::before,\n    .data-grid-page-btn::before {\n      forced-color-adjust: none;\n      background: ButtonText;\n    }\n  }\n}\n\n/* ── components/autocomplete/autocomplete.css ── */\n/* -- Autocomplete ------------------------------------------------ */\n/* An input and a manual popover under it (CSS anchor positioning):  */\n/* the listbox, a status line, and the empty / error notes - which   */\n/* one shows is the root's data-state.                               */\n\n@layer components {\n  .autocomplete {\n    position: relative;\n    display: grid;\n    gap: 0.375rem;\n    width: 100%;\n  }\n\n  .autocomplete-input {\n    width: 100%;\n  }\n\n  .autocomplete-popover {\n    position: fixed;\n    inset: auto;\n    top: anchor(bottom);\n    left: anchor(left);\n    width: anchor-size(width);\n    min-width: 12rem;\n    max-height: min(22rem, 60dvh);\n    margin: 0.25rem 0 0;\n    padding: 0.25rem;\n    border: 1px solid var(--border);\n    border-radius: var(--radius-md);\n    background: var(--popover);\n    color: var(--popover-foreground);\n    box-shadow: var(--shadow-md);\n    overflow: hidden;\n    position-try-fallbacks: flip-block;\n\n    /* open: fade + slide in; closed: out of the layout */\n    opacity: 0;\n    translate: 0 -4px;\n    transition:\n      opacity 120ms ease,\n      translate 120ms ease,\n      display 120ms allow-discrete,\n      overlay 120ms allow-discrete;\n\n    &:popover-open {\n      display: flex;\n      flex-direction: column;\n      opacity: 1;\n      translate: 0 0;\n\n      @starting-style {\n        opacity: 0;\n        translate: 0 -4px;\n      }\n    }\n  }\n\n  .autocomplete-list {\n    flex: 1;\n    min-height: 0;\n    overflow-y: auto;\n    overscroll-behavior: contain;\n  }\n\n  .autocomplete-option {\n    display: flex;\n    align-items: center;\n    gap: 0.5rem;\n    min-height: 2rem;\n    padding: 0.375rem 0.5rem;\n    border-radius: var(--radius-sm);\n    font-size: 0.875rem;\n    cursor: default;\n    user-select: none;\n\n    &[data-active] {\n      background: var(--accent);\n      color: var(--accent-foreground);\n    }\n  }\n\n  .autocomplete-label {\n    flex: 1;\n    min-width: 0;\n    overflow: hidden;\n    text-overflow: ellipsis;\n    white-space: nowrap;\n  }\n\n  /* secondary text in an option (a country, a count) */\n  .autocomplete-meta {\n    margin-inline-start: auto;\n    color: var(--muted-foreground);\n    font-size: 0.75rem;\n    font-variant-numeric: tabular-nums;\n    white-space: nowrap;\n  }\n\n  .autocomplete-match {\n    background: transparent;\n    color: inherit;\n    font-weight: 600;\n  }\n\n  .autocomplete-status {\n    padding: 0.375rem 0.5rem 0.125rem;\n    color: var(--muted-foreground);\n    font-size: 0.75rem;\n    font-variant-numeric: tabular-nums;\n\n    &:empty {\n      display: none;\n    }\n  }\n\n  .autocomplete-empty,\n  .autocomplete-error {\n    display: none;\n    padding: 0.75rem 0.5rem;\n    color: var(--muted-foreground);\n    font-size: 0.875rem;\n    text-align: center;\n  }\n\n  .autocomplete[data-state=\"empty\"] .autocomplete-empty {\n    display: block;\n  }\n\n  .autocomplete[data-state=\"error\"] .autocomplete-error {\n    display: flex;\n    flex-wrap: wrap;\n    align-items: center;\n    justify-content: center;\n    gap: 0.5rem;\n    color: var(--destructive);\n  }\n\n  .autocomplete[data-state=\"empty\"] .autocomplete-list,\n  .autocomplete[data-state=\"error\"] .autocomplete-list,\n  .autocomplete[data-state=\"loading\"] .autocomplete-list {\n    display: none;\n  }\n\n  /* first page on its way: placeholder rows, drawn rather than built */\n  .autocomplete[data-state=\"loading\"] .autocomplete-popover::before {\n    content: \"\";\n    display: block;\n    height: 6rem;\n    margin: 0.25rem;\n    border-radius: var(--radius-sm);\n    background: repeating-linear-gradient(to bottom, var(--muted) 0 1.5rem, transparent 1.5rem 2rem);\n    animation: autocomplete-pulse 1.4s ease-in-out infinite;\n  }\n\n  .autocomplete-retry {\n    padding: 0.125rem 0.625rem;\n    border: 1px solid var(--border);\n    border-radius: var(--radius-sm);\n    background: var(--background);\n    color: var(--foreground);\n    font: inherit;\n    font-size: 0.8125rem;\n    cursor: pointer;\n\n    &:hover {\n      background: var(--accent);\n      color: var(--accent-foreground);\n    }\n\n    &:focus-visible {\n      outline: 2px solid var(--ring);\n      outline-offset: 2px;\n    }\n  }\n\n  @keyframes autocomplete-pulse {\n    0%,\n    100% {\n      opacity: 0.7;\n    }\n    50% {\n      opacity: 0.35;\n    }\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  @layer components {\n    .autocomplete-popover,\n    .autocomplete[data-state=\"loading\"] .autocomplete-popover::before {\n      transition: none;\n      animation: none;\n    }\n  }\n}\n\n@media (prefers-contrast: more) {\n  @layer components {\n    .autocomplete-popover {\n      border-color: var(--foreground);\n    }\n\n    .autocomplete-option[data-active] {\n      outline: 2px solid var(--foreground);\n      outline-offset: -2px;\n    }\n  }\n}\n\n@media (forced-colors: active) {\n  @layer components {\n    .autocomplete-popover {\n      border-color: CanvasText;\n    }\n\n    .autocomplete-option[data-active] {\n      background: Highlight;\n      color: HighlightText;\n    }\n\n    .autocomplete-match {\n      text-decoration: underline;\n    }\n  }\n}\n"],"names":[]}