/* MD_FILE_VERSION: 1.0.033 | CHANGED: 2026-09-30 08-18-13 */
/* Copyright Information
 * =====================
 * Copyright (c) 2026, The Scripps Research Institute
 * Developed by Dr. Gennadii Grabovyi
 */

#mainGrid .md-cards-root[hidden]{ display:none !important; }

#mainGrid.md-grid-cards{
  overflow-x:hidden;
  overflow-y:auto;
  background:var(--bg);
  background-image:none;
  overscroll-behavior-x:none;
}

#mainGrid.md-grid-cards #mainGridHeaderSpacer,
#mainGrid.md-grid-cards #tbl{ display:none !important; }

#mainGrid.md-grid-cards .md-cards-root{
  display:block;
  width:100%;
  min-width:0;
  box-sizing:border-box;
  color:var(--fg);
  --md-cards-zoom:1;
  --md-card-width:288px;
  --md-card-gap:14px;
  --md-card-structure-height:220px;
}

#mainGrid.md-grid-cards .md-cards-toolbar{
  position:sticky;
  top:0;
  z-index:120;
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  min-width:0;
  height:44px;
  min-height:44px;
  max-height:44px;
  padding:4px 8px;
  box-sizing:border-box;
  overflow:visible;
  white-space:nowrap;
  border-bottom:var(--tbl-grid-header-w) solid var(--tbl-grid-header);
  background:var(--main-header-bg);
  box-shadow:0 1px 2px rgba(0,0,0,.08);
}

#mainGrid.md-grid-cards .md-cards-toolbar button,
#mainGrid.md-grid-cards .md-cards-toolbar input{
  font:inherit;
}

#mainGrid.md-grid-cards .md-cards-tool-button,
#mainGrid.md-grid-cards .md-cards-zoom-button{
  flex:0 0 auto;
  min-height:28px;
  padding:4px 9px;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--panel);
  color:var(--fg);
  cursor:pointer;
}

#mainGrid.md-grid-cards .md-cards-tool-button:hover,
#mainGrid.md-grid-cards .md-cards-zoom-button:hover{ border-color:var(--accent); }

#mainGrid.md-grid-cards .md-cards-toolbar .md-cards-choose-global{
  min-height:0;
  padding:0 4px 1px;
  border:0;
  border-radius:2px;
  appearance:none;
  background:transparent;
  color:var(--accent);
  text-decoration:none;
  transition:color 140ms ease, opacity 140ms ease;
}

#mainGrid.md-grid-cards .md-cards-toolbar .md-cards-choose-global:hover,
#mainGrid.md-grid-cards .md-cards-toolbar .md-cards-choose-global:focus-visible{
  border-color:transparent;
  background:transparent;
  text-decoration:underline;
}

#mainGrid.md-grid-cards .md-cards-toolbar .md-cards-choose-global:focus-visible{
  outline:2px solid color-mix(in srgb, var(--accent) 65%, transparent);
  outline-offset:2px;
}

#mainGrid.md-grid-cards .md-cards-master-label,
#mainGrid.md-grid-cards .md-cards-check-label{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:4px;
  min-width:0;
  margin:0;
  padding:0;
  color:color-mix(in srgb, var(--muted) 82%, var(--fg) 18%);
  font-family:var(--tab-stats-ribbon-font-family, inherit);
  font-size:var(--tab-stats-ribbon-font-size, 14px);
  font-weight:400;
  line-height:var(--tab-stats-ribbon-line-height, 1.2);
  cursor:pointer;
  user-select:none;
}

#mainGrid.md-grid-cards .md-cards-master-label input,
#mainGrid.md-grid-cards .md-cards-check-label input{
  flex:0 0 auto;
  width:13px;
  height:13px;
  margin:0;
  padding:0;
  accent-color:color-mix(in srgb, var(--fg) 68%, var(--muted) 32%);
  cursor:pointer;
}

#mainGrid.md-grid-cards .md-card-select{
  position:absolute;
  top:9px;
  right:10px;
  width:14px;
  height:14px;
  margin:0;
  accent-color:var(--accent);
}

#mainGrid.md-grid-cards .md-cards-inline-formatting{ display:contents; }
#mainGrid.md-grid-cards .md-cards-inline-formatting[hidden],
#mainGrid.md-grid-cards .md-cards-more-wrap[hidden]{ display:none !important; }

#tabStatsRibbon .md-cards-font-controls{
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  gap:6px;
  color:color-mix(in srgb, var(--muted) 82%, var(--fg) 18%);
  font-family:var(--tab-stats-ribbon-font-family, inherit);
  font-size:var(--tab-stats-ribbon-font-size, 14px);
  font-weight:400;
  line-height:var(--tab-stats-ribbon-line-height, 1.2);
}

#tabStatsRibbon .md-cards-font-title{ color:inherit; }

#tabStatsRibbon .md-cards-font-inline-field{
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  gap:4px;
  margin:0;
  color:inherit;
  cursor:text;
}

#tabStatsRibbon .md-cards-font-inline-field input{
  width:38px;
  height:24px;
  box-sizing:border-box;
  padding:2px 3px;
  border:1px solid var(--line);
  border-radius:5px;
  background:var(--panel);
  color:var(--fg);
  font-size:12px;
  line-height:1.2;
  text-align:center;
}

#tabStatsRibbon .md-cards-font-inline-field input::placeholder{
  font-size:10px;
}

#tabStatsRibbon .md-tab-stats-font-controls[hidden]{
  display:none !important;
}

@media (max-width:2100px){
  #tabStatsRibbonInner{
    gap:14px;
  }
}

@media (max-width:1950px){
  #tabStatsRibbonInner{
    gap:8px;
  }
  #tabStatsRibbon .md-tab-stats-font-controls .md-cards-font-inline-field > span{
    width:12px;
    overflow:hidden;
    font-size:0;
    text-align:center;
  }
  #tabStatsRibbon .md-tab-stats-font-controls .md-cards-font-inline-field > span::after{
    font-size:12px;
    line-height:1;
  }
  #tabStatsRibbon .md-tab-stats-font-controls .md-cards-font-inline-field:first-of-type > span::after{
    content:'N';
  }
  #tabStatsRibbon .md-tab-stats-font-controls .md-cards-font-inline-field:last-of-type > span::after{
    content:'V';
  }
}

@media (max-width:1750px){
  #tabStatsRibbon .md-tab-stats-compound-type{
    gap:5px;
  }
  #tabStatsRibbon .md-tab-stats-compound-type-title{
    display:none;
  }
  #tabStatsRibbon .md-tab-stats-compound-type-option > span{
    width:12px;
    overflow:hidden;
    font-size:0;
    text-align:center;
  }
  #tabStatsRibbon .md-tab-stats-compound-type-option > span::after{
    font-size:12px;
    line-height:1;
  }
  #tabStatsRibbon .md-tab-stats-compound-type-option:first-of-type > span::after{
    content:'R';
  }
  #tabStatsRibbon .md-tab-stats-compound-type-option:last-of-type > span::after{
    content:'V';
  }
}

@media (max-width:1550px){
  #tabStatsRibbon .md-tab-stats-font-controls .md-cards-font-title{
    display:none;
  }
}

#mainGrid.md-grid-cards .md-cards-toolbar-divider{
  flex:0 0 1px;
  align-self:stretch;
  margin:4px 1px;
  background:var(--line);
}

#mainGrid.md-grid-cards .md-cards-zoom{
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  gap:3px;
}

#mainGrid.md-grid-cards .md-cards-zoom-button{
  width:28px;
  padding:3px;
  font-weight:700;
}

#mainGrid.md-grid-cards .md-cards-zoom-input{
  width:54px;
  height:28px;
  box-sizing:border-box;
  padding:3px 4px;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--panel);
  color:var(--fg);
  text-align:center;
}

#mainGrid.md-grid-cards .md-cards-toolbar-spacer{
  flex:1 1 120px;
  min-width:0;
  padding:0 8px;
  overflow:hidden;
  text-align:center;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#mainGrid.md-grid-cards .md-cards-reset-layout{ white-space:nowrap; }
#mainGrid.md-grid-cards .md-cards-more-wrap{ position:relative; flex:0 0 auto; }

#mainGrid.md-grid-cards .md-cards-more-popover{
  position:absolute;
  top:calc(100% + 5px);
  right:0;
  z-index:150;
  display:grid;
  gap:7px;
  min-width:210px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel);
  box-shadow:0 8px 24px rgba(0,0,0,.22);
}

#mainGrid.md-grid-cards .md-cards-more-popover[hidden]{ display:none !important; }

#mainGrid.md-grid-cards .md-cards-canvas{
  position:relative;
  width:100%;
  min-width:0;
  box-sizing:border-box;
  padding:var(--md-card-gap);
  overflow:visible;
}

#mainGrid.md-grid-cards .md-cards-spacer{ width:1px; pointer-events:none; }

#mainGrid.md-grid-cards .md-cards-visual-row{
  display:grid;
  grid-template-columns:repeat(var(--md-cards-per-row, 1), minmax(0, var(--md-card-width)));
  justify-content:start;
  align-items:stretch;
  gap:var(--md-card-gap);
  width:100%;
  min-width:0;
  padding-bottom:var(--md-card-gap);
  box-sizing:border-box;
}

#mainGrid.md-grid-cards .md-card{
  position:relative;
  height:100%;
  width:var(--md-card-width);
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel);
  box-shadow:0 1px 4px rgba(0,0,0,.13);
  transition:transform 170ms cubic-bezier(.2,.8,.2,1), box-shadow 140ms ease, opacity 120ms ease;
  contain:layout paint style;
}

#mainGrid.md-grid-cards .md-card.is-selected{
  border-color:var(--accent);
  box-shadow:0 0 0 1px var(--accent), 0 2px 8px rgba(0,0,0,.16);
}

#mainGrid.md-grid-cards .md-card.is-search-match{
  box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent), 0 3px 10px rgba(0,0,0,.20);
}

#mainGrid.md-grid-cards .md-card.is-drag-source{ opacity:.20; }

#mainGrid.md-grid-cards .md-card-structure{
  position:relative;
  height:var(--md-card-structure-height);
  min-height:80px;
  overflow:hidden;
  border-bottom:1px solid var(--line);
  background:var(--row);
}

#mainGrid.md-grid-cards .md-card-structure-table{
  width:100%;
  height:100%;
  table-layout:fixed;
  border:0;
  border-radius:0;
  border-collapse:collapse;
  background:transparent;
}

#mainGrid.md-grid-cards .md-card-structure-table tr,
#mainGrid.md-grid-cards .md-card-structure-table td{
  height:100%;
  border:0;
  padding:5px;
  background:transparent;
  text-align:center;
  vertical-align:middle;
  box-sizing:border-box;
}

#mainGrid.md-grid-cards .md-card-structure-table td.col-struct .svgbox{
  position:absolute;
  inset:8px;
  width:auto;
  height:auto;
}

#mainGrid.md-grid-cards .md-card-chrome{
  position:absolute;
  inset:0 0 auto 0;
  z-index:8;
  height:32px;
  padding:0;
  box-sizing:border-box;
  pointer-events:none;
}

#mainGrid.md-grid-cards .md-card-chrome > *{
  opacity:0;
  pointer-events:none;
  transition:opacity 120ms ease;
}

#mainGrid.md-grid-cards .md-card-index{
  position:absolute;
  top:5px;
  left:8px;
  min-width:22px;
  padding:1px 3px;
  box-sizing:border-box;
  border-radius:5px;
  background:transparent;
  color:var(--muted);
  font-size:18px;
  line-height:18px;
  font-variant-numeric:tabular-nums;
  text-align:left;
}

#mainGrid.md-grid-cards .md-card-drag-grip{
  position:absolute;
  top:4px;
  left:50%;
  width:56px;
  height:4px;
  min-height:0;
  margin:0;
  padding:0;
  border:0;
  border-radius:999px;
  appearance:none;
  background:rgba(0,0,0,.22);
  cursor:grab;
  opacity:0;
  transform:translateX(-50%);
  transition:opacity 120ms ease, background-color 120ms ease;
  touch-action:none;
}

:root[data-theme="dark"] #mainGrid.md-grid-cards .md-card-drag-grip{
  background:rgba(255,255,255,.22);
}

#mainGrid.md-grid-cards .md-card-drag-grip:hover,
#mainGrid.md-grid-cards .md-card-drag-grip:focus-visible{ opacity:.75; }

#mainGrid.md-grid-cards .md-card-drag-grip:focus-visible{
  outline:2px solid color-mix(in srgb, var(--accent) 65%, transparent);
  outline-offset:2px;
}

#mainGrid.md-grid-cards .md-card-bottom-controls{
  position:absolute;
  left:6px;
  right:6px;
  bottom:7px;
  z-index:9;
  display:flex;
  align-items:center;
  justify-content:space-between;
  pointer-events:none;
}

#mainGrid.md-grid-cards .md-card-bottom-controls > *{
  opacity:0;
  pointer-events:none;
  transition:opacity 120ms ease;
}

#mainGrid.md-grid-cards .md-card:hover .md-card-chrome > *,
#mainGrid.md-grid-cards .md-card:hover .md-card-bottom-controls > *,
#mainGrid.md-grid-cards .md-card:focus-within .md-card-chrome > *,
#mainGrid.md-grid-cards .md-card:focus-within .md-card-bottom-controls > *,
body.md-card-dragging #mainGrid.md-grid-cards .md-card.is-drag-source .md-card-chrome > *,
body.md-card-dragging #mainGrid.md-grid-cards .md-card.is-drag-source .md-card-bottom-controls > *{
  opacity:1;
  pointer-events:auto;
}

#mainGrid.md-grid-cards .md-card:hover .md-card-drag-grip,
#mainGrid.md-grid-cards .md-card:focus-within .md-card-drag-grip,
body.md-card-dragging #mainGrid.md-grid-cards .md-card.is-drag-source .md-card-drag-grip{
  opacity:.45;
}

#mainGrid.md-grid-cards .md-card:hover .md-card-drag-grip:hover,
#mainGrid.md-grid-cards .md-card:focus-within .md-card-drag-grip:focus-visible,
body.md-card-dragging #mainGrid.md-grid-cards .md-card.is-drag-source .md-card-drag-grip:hover{
  opacity:.75;
}

#mainGrid.md-grid-cards .md-card.is-selected .md-card-select,
#mainGrid.md-grid-cards .md-card-bottom-controls .md-row-pin-btn.is-pinned{
  opacity:1;
  pointer-events:auto;
}

#mainGrid.md-grid-cards .md-card-choose-button{
  max-width:calc(100% - 38px);
  padding:2px 1px;
  overflow:hidden;
  border:0;
  border-radius:2px;
  appearance:none;
  background:transparent;
  color:var(--accent);
  font-size:11px;
  font-weight:400;
  line-height:1.2;
  text-overflow:ellipsis;
  white-space:nowrap;
  cursor:pointer;
  transition:color 120ms ease, opacity 120ms ease;
}

#mainGrid.md-grid-cards .md-card-choose-button:hover,
#mainGrid.md-grid-cards .md-card-choose-button:focus-visible{
  background:transparent;
  text-decoration:underline;
}

#mainGrid.md-grid-cards .md-card-choose-button:focus-visible{
  outline:2px solid color-mix(in srgb, var(--accent) 65%, transparent);
  outline-offset:2px;
}

#mainGrid.md-grid-cards .md-card-bottom-controls .md-row-pin-btn{
  position:static;
  width:24px;
  height:24px;
  padding:3px;
  border:0;
  border-radius:50%;
  appearance:none;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
  transition:color 120ms ease, opacity 120ms ease;
}

#mainGrid.md-grid-cards .md-card-bottom-controls .md-row-pin-btn:hover,
#mainGrid.md-grid-cards .md-card-bottom-controls .md-row-pin-btn:focus-visible{
  background:transparent;
  color:var(--accent);
}

#mainGrid.md-grid-cards .md-card-bottom-controls .md-row-pin-btn:focus-visible{
  outline:2px solid color-mix(in srgb, var(--accent) 65%, transparent);
  outline-offset:1px;
}

#mainGrid.md-grid-cards .md-card-bottom-controls .md-row-pin-btn.is-pinned{ color:var(--accent); }
#mainGrid.md-grid-cards .md-card-bottom-controls .md-row-pin-icon{ width:16px; height:16px; }
#mainGrid.md-grid-cards .md-card-bottom-controls .md-row-pin-glyph{ fill:currentColor; }
#mainGrid.md-grid-cards .md-card-bottom-controls .md-row-pin-glyph-solid{ opacity:0; }
#mainGrid.md-grid-cards .md-card-bottom-controls .md-row-pin-btn.is-pinned .md-row-pin-glyph-outline{ opacity:0; }
#mainGrid.md-grid-cards .md-card-bottom-controls .md-row-pin-btn.is-pinned .md-row-pin-glyph-solid{ opacity:1; }

#mainGrid.md-grid-cards .md-card-structure-resize{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:10;
  height:7px;
  cursor:row-resize;
  background:transparent;
}

#mainGrid.md-grid-cards .md-card-structure-resize:hover::after{
  content:'';
  position:absolute;
  left:20%;
  right:20%;
  bottom:2px;
  height:2px;
  border-radius:2px;
  background:var(--accent);
}

#mainGrid.md-grid-cards .md-card-width-resize{
  position:absolute;
  top:0;
  right:0;
  bottom:auto;
  z-index:11;
  width:7px;
  height:var(--md-card-structure-height);
  min-height:80px;
  box-sizing:border-box;
  cursor:col-resize;
  background:transparent;
}

#mainGrid.md-grid-cards .md-card-width-resize:hover::after{
  content:'';
  position:absolute;
  top:20%;
  right:2px;
  bottom:20%;
  width:2px;
  border-radius:2px;
  background:var(--accent);
}

#mainGrid.md-grid-cards .md-card-properties-wrap{ position:relative; min-width:0; }

#mainGrid.md-grid-cards .md-card-property-table{
  display:block;
  position:relative;
  width:100%;
  table-layout:fixed;
  border:0;
  border-radius:0;
  border-collapse:collapse;
  background:transparent;
}

#mainGrid.md-grid-cards .md-card-property-table::after{
  content:'';
  position:absolute;
  z-index:7;
  top:0;
  bottom:0;
  left:var(--md-card-shared-divider-left, 45%);
  width:1px;
  background:transparent;
  pointer-events:none;
}

#mainGrid.md-grid-cards .md-card-property-table.is-shared-divider-guide::after{
  background:var(--accent);
}

#mainGrid.md-grid-cards #cardsViewRoot.is-divider-shift-held .md-card-property-table.is-shared-divider-guide::after,
#mainGrid.md-grid-cards #cardsViewRoot.is-divider-property-resize-active .md-card-property-table.is-shared-divider-guide::after{
  background:transparent;
}

/* Each property needs its own two-column layout so a Shift-dragged divider can
   resize only that property. A single fixed-layout table otherwise forces all
   rows to use the first row's name/value boundary. */
#mainGrid.md-grid-cards .md-card-property-table > tbody{
  display:block;
  width:100%;
}

#mainGrid.md-grid-cards .md-card-property-table > tbody > tr{
  display:table;
  width:100%;
  table-layout:fixed;
  border-collapse:collapse;
}

#mainGrid.md-grid-cards .md-card-property-table tr:last-child > *{ border-bottom:0; }

#mainGrid.md-grid-cards .md-card-property-name,
#mainGrid.md-grid-cards .md-card-property-value{
  position:relative;
  height:auto;
  min-height:28px;
  box-sizing:border-box;
  padding:5px 7px;
  border:0;
  border-bottom:1px solid var(--line);
  background:var(--panel);
  color:var(--fg);
  vertical-align:middle;
}

#mainGrid.md-grid-cards .md-card-property-table > tbody > tr.has-manual-property-height,
#mainGrid.md-grid-cards .md-card-property-table > tbody > tr.has-manual-property-height > .md-card-property-name,
#mainGrid.md-grid-cards .md-card-property-table > tbody > tr.has-manual-property-height > .md-card-property-value{
  height:var(--md-card-property-row-height);
  min-height:var(--md-card-property-row-height);
  max-height:var(--md-card-property-row-height);
}

#mainGrid.md-grid-cards .md-card-property-table > tbody > tr.has-manual-property-height .md-card-property-label{
  max-height:max(1px, calc(var(--md-card-property-row-height) - 10px));
}

#mainGrid.md-grid-cards .md-card-property-name{
  border-right:1px solid var(--line);
  font-size:var(--md-card-name-font, 14px);
  font-weight:500;
  text-align:left;
  overflow:visible;
}

#mainGrid.md-grid-cards .md-card-property-value{
  font-size:var(--md-card-value-font, 14px);
  text-align:center;
  overflow:hidden;
}

#mainGrid.md-grid-cards .md-card-property-label{
  display:block;
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
  overflow:hidden;
}

/* Reused Standard View value renderers carry their own 14px font declarations.
   In Cards View, make every nested value renderer honor the card profile size. */
#mainGrid.md-grid-cards .md-card-property-value *{
  font-size:inherit;
}

#mainGrid.md-grid-cards .md-card-property-table.is-nowrap-names .md-card-property-name,
#mainGrid.md-grid-cards .md-card-property-table.is-nowrap-values .md-card-property-value{
  white-space:nowrap;
  text-overflow:ellipsis;
}

#mainGrid.md-grid-cards .md-card-property-table.is-nowrap-names .md-card-property-label{
  white-space:nowrap;
  text-overflow:ellipsis;
}

#mainGrid.md-grid-cards .md-card-property-table.is-nowrap-values .md-card-property-value *{
  white-space:nowrap;
  overflow-wrap:normal;
  word-break:normal;
}

/* Non-wrap keeps semantic records on separate lines without allowing each
   record to soft-wrap. */
#mainGrid.md-grid-cards .md-card-property-table.is-nowrap-values .md-card-property-value .md-cell-inner.md-stack,
#mainGrid.md-grid-cards .md-card-property-table.is-nowrap-values .md-card-property-value .md-cell-inner.sid-stack{
  white-space:pre;
}

/* Wrapped and unwrapped values share a four-visual-line viewport. Wrapping
   changes line breaking, not the maximum height of an individual property. */
#mainGrid.md-grid-cards .md-card-property-value .md-cell-scroll{
  display:block;
  width:100%;
  max-height:6em;
  overflow-x:hidden;
  overflow-y:auto;
  box-sizing:border-box;
  scrollbar-width:thin;
}

#mainGrid.md-grid-cards .md-card-property-table > tbody > tr.has-manual-property-height .md-card-property-value .md-cell-scroll{
  height:max(1px, calc(var(--md-card-property-row-height) - 10px));
  max-height:max(1px, calc(var(--md-card-property-row-height) - 10px));
}

/* Match the established Standard View behavior: fitted values are vertically
   centered, while an overflowing center grows past the viewport and therefore
   remains top-origin scrollable. */
#mainGrid.md-grid-cards .md-card-property-value .md-cell-scroll .md-cell-center{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  box-sizing:border-box;
}

#mainGrid.md-grid-cards .md-card-property-value .md-cell-scroll .md-cell-center.md-lot-offset{
  align-items:flex-start;
}

#mainGrid.md-grid-cards .md-card-property-value .md-cell-scroll .md-cell-center.md-lot-offset > .md-cell-inner{
  margin-top:var(--md-lot-align-offset, 0px);
}

#mainGrid.md-grid-cards .md-card-property-table:not(.is-nowrap-names) .md-card-property-name,
#mainGrid.md-grid-cards .md-card-property-table:not(.is-nowrap-values) .md-card-property-value{
  white-space:normal;
  overflow-wrap:anywhere;
}

#mainGrid.md-grid-cards .md-card-property-table:not(.is-nowrap-names) .md-card-property-label{
  white-space:normal;
  overflow-wrap:anywhere;
}

#mainGrid.md-grid-cards .md-card-property-table:not(.is-nowrap-values) .md-card-property-value *{
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  word-break:break-word;
  text-overflow:clip;
}

#mainGrid.md-grid-cards .md-card-property-value .md-cell-scroll,
#mainGrid.md-grid-cards .md-card-property-value .md-cell-center,
#mainGrid.md-grid-cards .md-card-property-value .md-cell-inner,
#mainGrid.md-grid-cards .md-card-property-value .scrollbox{
  max-width:100%;
  min-width:0;
}

#mainGrid.md-grid-cards .md-card-property-value input[type="text"],
#mainGrid.md-grid-cards .md-card-property-value input[type="number"],
#mainGrid.md-grid-cards .md-card-property-value textarea{
  max-width:100%;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
}

#mainGrid.md-grid-cards .md-card-property-divider{
  position:absolute;
  top:0;
  right:-4px;
  bottom:0;
  z-index:6;
  width:7px;
  cursor:col-resize;
  background:transparent;
}

#mainGrid.md-grid-cards .md-card-property-divider::after{
  content:'';
  position:absolute;
  top:0;
  bottom:0;
  left:3px;
  width:1px;
  background:transparent;
}

#mainGrid.md-grid-cards .md-card-property-divider:hover::after{ background:var(--accent); }
#mainGrid.md-grid-cards .md-card-property-table.is-shared-divider-guide .md-card-property-divider:hover::after{
  background:transparent;
}
#mainGrid.md-grid-cards #cardsViewRoot.is-divider-shift-held .md-card-property-divider:hover::after,
#mainGrid.md-grid-cards #cardsViewRoot.is-divider-property-resize-active .md-card-property-divider:hover::after,
#mainGrid.md-grid-cards #cardsViewRoot.is-divider-property-resize-active .md-card-property-divider.is-divider-active-target::after{
  width:2px;
  background:#d93025;
}

#mainGrid.md-grid-cards .md-card-property-row-resize{
  position:absolute;
  left:0;
  bottom:-4px;
  z-index:9;
  display:block;
  width:var(--md-card-width, 100%);
  height:8px;
  background:transparent;
  cursor:row-resize;
  touch-action:none;
  user-select:none;
}

#mainGrid.md-grid-cards .md-card-property-row-resize-host{
  overflow:visible;
}

#mainGrid.md-grid-cards .md-card-property-row-resize::after{
  content:'';
  position:absolute;
  left:0;
  right:0;
  top:3px;
  height:1px;
  background:transparent;
  pointer-events:none;
}

#mainGrid.md-grid-cards .md-card-property-row-resize:hover::after,
#mainGrid.md-grid-cards .md-card-property-row-resize.is-active::after,
#mainGrid.md-grid-cards #cardsViewRoot.is-property-row-resize-active .md-card-property-row-resize.is-active::after{
  height:2px;
  background:var(--accent);
}

#mainGrid.md-grid-cards #cardsViewRoot.is-property-row-resize-active{
  user-select:none;
}

#mainGrid.md-grid-cards .md-card-property-name.sort-asc .md-card-property-label,
#mainGrid.md-grid-cards .md-card-property-name.sort-desc .md-card-property-label{
  padding-right:18px;
}

#mainGrid.md-grid-cards .md-card-property-name.has-multi-sort .md-card-property-label{
  padding-right:38px;
}

#mainGrid.md-grid-cards .md-card-property-name.sort-asc::after,
#mainGrid.md-grid-cards .md-card-property-name.sort-desc::after{
  content:'';
  position:absolute;
  right:6px;
  top:50%;
  z-index:4;
  width:0;
  height:0;
  transform:translateY(-50%);
  pointer-events:none;
}

#mainGrid.md-grid-cards .md-card-property-name.sort-asc::after{
  border-left:4px solid transparent;
  border-right:4px solid transparent;
  border-bottom:6px solid currentColor;
}

#mainGrid.md-grid-cards .md-card-property-name.sort-desc::after{
  border-left:4px solid transparent;
  border-right:4px solid transparent;
  border-top:6px solid currentColor;
}

#mainGrid.md-grid-cards .md-card-property-name .md-sort-priority{
  position:absolute;
  right:18px;
  top:50%;
  z-index:4;
  min-width:14px;
  height:14px;
  padding:0 3px;
  box-sizing:border-box;
  border:1px solid color-mix(in srgb, currentColor 45%, transparent);
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transform:translateY(-50%);
  background:color-mix(in srgb, currentColor 18%, transparent);
  color:var(--fg);
  font-size:9px;
  font-weight:700;
  line-height:1;
  pointer-events:none;
}

#mainGrid.md-grid-cards .md-cards-empty{
  margin:24px auto;
  max-width:520px;
  padding:22px;
  border:1px dashed var(--line);
  border-radius:10px;
  color:var(--muted);
  text-align:center;
}

#mainGrid.md-grid-cards .md-card-hidden-match{
  position:absolute;
  left:8px;
  right:8px;
  bottom:8px;
  z-index:12;
  padding:4px 7px;
  overflow:hidden;
  border:1px solid var(--accent);
  border-radius:6px;
  background:var(--panel);
  color:var(--fg);
  font-size:10px;
  text-overflow:ellipsis;
  white-space:nowrap;
  box-shadow:0 2px 8px rgba(0,0,0,.18);
}

.md-card-drag-overlay{
  position:fixed !important;
  z-index:10000 !important;
  margin:0 !important;
  pointer-events:none !important;
  opacity:1 !important;
  transform:none !important;
  box-shadow:0 16px 38px rgba(0,0,0,.32) !important;
  transition:none !important;
}

.md-card-drag-overlay.is-selected{
  box-shadow:0 0 0 1px var(--accent), 0 16px 38px rgba(0,0,0,.32) !important;
}

.md-card-drag-overlay.is-search-match{
  box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent), 0 16px 38px rgba(0,0,0,.32) !important;
}

.md-card-drag-overlay *{ pointer-events:none !important; }

body.md-card-dragging #mainGrid.md-grid-cards .md-card-drag-overlay .md-card-chrome > *,
body.md-card-dragging #mainGrid.md-grid-cards .md-card-drag-overlay .md-card-bottom-controls > *{
  opacity:1;
}

body.md-card-dragging #mainGrid.md-grid-cards .md-card-drag-overlay .md-card-drag-grip{
  opacity:.45;
}

body.md-card-dragging{ cursor:grabbing !important; user-select:none !important; }

.md-cards-modal-backdrop{
  position:fixed;
  inset:0;
  z-index:10020;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(0,0,0,.38);
}

.md-cards-modal{
  display:flex;
  flex-direction:column;
  width:fit-content;
  min-width:min(340px, calc(100vw - 40px));
  max-width:min(520px, calc(100vw - 40px));
  max-height:min(720px, calc(100vh - 40px));
  box-sizing:border-box;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel);
  color:var(--fg);
  box-shadow:0 18px 54px rgba(0,0,0,.35);
}

.md-cards-modal-header,
.md-cards-modal-footer{
  display:flex;
  align-items:center;
  gap:8px;
  padding:12px 14px;
}

.md-cards-modal-header{ border-bottom:1px solid var(--line); }
.md-cards-modal-footer{ justify-content:flex-end; border-top:1px solid var(--line); }
.md-cards-modal-title{ margin:0; font-size:17px; }
.md-cards-modal-scope{ margin-left:auto; color:var(--muted); font-size:12px; }

.md-cards-modal-search{
  align-self:flex-start;
  width:calc(100% - 28px);
  min-width:0;
  margin:10px 14px 4px;
  padding:7px 9px;
  box-sizing:border-box;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--bg);
  color:var(--fg);
}

.md-cards-modal-bulk-actions{
  display:flex;
  align-items:center;
  gap:12px;
  padding:4px 14px 2px;
}

.md-cards-modal-notice{
  max-width:420px;
  padding:4px 14px 8px;
  color:var(--muted);
  font-size:12px;
  white-space:normal;
}

.md-cards-property-list{
  width:100%;
  min-height:120px;
  box-sizing:border-box;
  overflow:auto;
  padding:6px 10px 12px;
}

.md-cards-property-option{
  display:grid;
  grid-template-columns:18px 22px minmax(0, max-content);
  align-items:center;
  gap:7px;
  min-height:34px;
  padding:3px 6px;
  border-radius:5px;
}

.md-cards-property-option > span{
  min-width:0;
  max-width:min(420px, calc(100vw - 138px));
  line-height:1.25;
  white-space:normal;
  overflow-wrap:anywhere;
}

.md-cards-property-option:hover{ background:var(--hover, rgba(127,127,127,.10)); }
.md-cards-property-option[hidden]{ display:none !important; }

.md-cards-property-option.is-dragging{ opacity:.42; }

.md-cards-modal button{
  min-height:30px;
  padding:5px 11px;
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--panel);
  color:var(--fg);
  cursor:pointer;
}

.md-cards-modal button.primary{ border-color:var(--accent); background:var(--accent); color:#fff; }

.md-cards-modal button.md-cards-property-grip{
  width:18px;
  min-width:18px;
  height:18px;
  min-height:18px;
  padding:0;
  border:0;
  border-radius:3px;
  background-color:transparent;
  background-image:radial-gradient(circle, currentColor 0 1.25px, transparent 1.55px);
  background-position:center;
  background-size:6px 6px;
  color:color-mix(in srgb, var(--muted) 82%, transparent);
  cursor:grab;
  opacity:.82;
  touch-action:none;
}

.md-cards-modal button.md-cards-property-grip:hover,
.md-cards-modal button.md-cards-property-grip:focus-visible{
  background-color:transparent;
  color:var(--muted);
  opacity:1;
}

/* A renamed property's cue is painted by the name cell itself. Its full-height
   background layer scales with every card/profile resize and cannot intercept
   the divider or row-height handles layered above the cell. */
#mainGrid.md-grid-cards .md-card-property-name.md-display-name-overridden{
  background-image:linear-gradient(to bottom, #11b9ec, #11b9ec);
  background-repeat:no-repeat;
  background-position:right top;
  background-size:3px 100%;
}
:root[data-theme="dark"] #mainGrid.md-grid-cards .md-card-property-name.md-display-name-overridden{
  background-image:linear-gradient(to bottom, #47cef4, #47cef4);
}

.md-cards-modal button.md-cards-modal-action-link{
  min-height:0;
  padding:0;
  border:0;
  border-radius:2px;
  background:transparent;
  color:var(--accent);
  font:inherit;
  font-weight:400;
  text-decoration:none;
}

.md-cards-modal button.md-cards-modal-action-link:hover,
.md-cards-modal button.md-cards-modal-action-link:focus-visible{
  background:transparent;
  text-decoration:underline;
}

.md-cards-modal button.md-cards-modal-action-link:focus-visible{
  outline:2px solid color-mix(in srgb, var(--accent) 65%, transparent);
  outline-offset:2px;
}

@media (max-width:980px){
  #mainGrid.md-grid-cards .md-cards-toolbar{ gap:4px; padding-left:4px; padding-right:4px; }
  #mainGrid.md-grid-cards .md-cards-master-label > span{ display:none; }
  #mainGrid.md-grid-cards .md-cards-master-label{ width:20px; justify-content:center; }
  #mainGrid.md-grid-cards .md-cards-choose-global{
    max-width:96px;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  #mainGrid.md-grid-cards .md-cards-zoom{ gap:1px; }
  #mainGrid.md-grid-cards .md-cards-zoom-button{ width:24px; min-width:24px; padding:2px; }
  #mainGrid.md-grid-cards .md-cards-zoom-input{ width:46px; }
  #mainGrid.md-grid-cards .md-cards-more-wrap > .md-cards-tool-button{ padding-left:6px; padding-right:6px; }
}

@media (max-width:520px){
  #mainGrid.md-grid-cards .md-cards-toolbar button.md-cards-choose-global{ width:74px; font-size:0; }
  #mainGrid.md-grid-cards .md-cards-toolbar button.md-cards-choose-global::after{ content:'Properties'; font-size:11px; }
  #mainGrid.md-grid-cards .md-cards-toolbar button.md-cards-reset-layout{ padding-left:6px; padding-right:6px; font-size:11px; }
  #mainGrid.md-grid-cards .md-cards-zoom-input{ width:40px; }
}

@media (max-width:430px){
  #mainGrid.md-grid-cards .md-cards-toolbar button.md-cards-reset-layout{ font-size:0; }
  #mainGrid.md-grid-cards .md-cards-toolbar button.md-cards-reset-layout::after{ content:'Reset'; font-size:11px; }
}

@media (max-width:380px){
  #mainGrid.md-grid-cards .md-cards-toolbar button.md-cards-choose-global{ width:46px; }
  #mainGrid.md-grid-cards .md-cards-toolbar button.md-cards-choose-global::after{ content:'Props'; }
  #mainGrid.md-grid-cards .md-cards-zoom-button{ width:22px; min-width:22px; }
  #mainGrid.md-grid-cards .md-cards-zoom-input{ width:36px; }
  #mainGrid.md-grid-cards .md-cards-more-wrap > .md-cards-tool-button{
    width:28px;
    min-width:28px;
    padding-left:3px;
    padding-right:3px;
    overflow:hidden;
    font-size:0;
  }
  #mainGrid.md-grid-cards .md-cards-more-wrap > .md-cards-tool-button::after{ content:'\2026'; font-size:16px; line-height:1; }
}

@media (prefers-reduced-motion:reduce){
  #mainGrid.md-grid-cards .md-card{ transition-duration:1ms; }
  #mainGrid.md-grid-cards .md-card-index,
  #mainGrid.md-grid-cards .md-card-select,
  #mainGrid.md-grid-cards .md-card-drag-grip,
  #mainGrid.md-grid-cards .md-card-choose-button,
  #mainGrid.md-grid-cards .md-card-bottom-controls .md-row-pin-btn{ transition-duration:1ms; }
}
