:root {
  --excel-green: #107c41;
  --excel-green-dark: #0b5d31;
  --excel-green-soft: #e7f3ec;
  --gridline: #d9d9d9;
  --header: #f3f3f3;
  --header-strong: #e6e6e6;
  --selection: #217346;
  --selection-fill: #e9f5ee;
  --text: #1f1f1f;
  --muted: #606060;
  --danger: #c43e1c;
  --cell-height: 28px;
  --row-header: 46px;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: #ffffff;
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: 0;
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.excel-app {
  display: grid;
  grid-template-rows: 34px 82px 32px minmax(0, 1fr) 34px;
  height: 100vh;
  min-width: 0;
  background: #ffffff;
}

.excel-app:fullscreen {
  width: 100vw;
  height: 100vh;
}

.excel-titlebar {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(220px, 0.9fr) minmax(440px, 1.4fr);
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 10px;
  color: #ffffff;
  background: var(--excel-green);
}

.quick-access,
.connection-strip,
.ribbon-group,
.status-cells,
.sheet-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.quick-access {
  justify-content: flex-start;
}

.company-logo-button {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 26px;
  padding: 2px 6px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.company-logo-button:hover,
.company-logo-button:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.company-logo-button img {
  display: block;
  max-width: 48px;
  max-height: 20px;
  object-fit: contain;
}

.company-logo-button span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.logo-clear-button {
  width: 22px;
  height: 22px;
}

.logo-clear-button[hidden] {
  display: none;
}

.workbook-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.workbook-title strong,
.workbook-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workbook-title strong {
  font-weight: 700;
}

.workbook-title span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.connection-strip {
  justify-content: flex-end;
  min-width: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
}

.connection-strip > span,
.connection-strip > a,
.connection-strip > button,
.connection-strip > .ui-style-toggle {
  flex: 0 0 auto;
}

.workspace-chip {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 7px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.titlebar-link {
  background: transparent;
  color: #ffffff;
  font: inherit;
  text-decoration: none;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.titlebar-button {
  cursor: pointer;
}

.titlebar-link:hover {
  background: rgba(255, 255, 255, 0.14);
}

.ui-style-toggle {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.ui-style-toggle button {
  min-width: 42px;
  height: 18px;
  padding: 0 6px;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 700;
}

.ui-style-toggle button.is-active {
  color: var(--excel-green-dark);
  background: #ffffff;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #f4c542;
}

.icon-button,
.ribbon-button,
.sheet-object,
.sheet-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: inherit;
  white-space: nowrap;
}

.icon-button {
  width: 26px;
  height: 26px;
  padding: 0;
}

.icon-button svg,
.ribbon-button svg {
  width: 15px;
  height: 15px;
}

.excel-titlebar .icon-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.excel-ribbon {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 82px;
  padding: 8px 8px 7px;
  overflow-x: auto;
  background: #fafafa;
  border-bottom: 1px solid #c8c8c8;
}

.ribbon-group {
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 0 10px;
  border-right: 1px solid #d5d5d5;
}

.ribbon-group:first-child {
  padding-left: 0;
}

.ribbon-button {
  min-height: 52px;
  min-width: 54px;
  flex-direction: column;
  padding: 5px 8px;
  color: #202020;
}

.ribbon-button.compact {
  min-width: 44px;
  padding-inline: 6px;
}

.ribbon-button:hover,
.sheet-object:hover {
  background: #eeeeee;
  border-color: #dadada;
}

.icon-button:disabled,
.ribbon-button:disabled {
  color: #9a9a9a;
  background: transparent;
  border-color: transparent;
  cursor: default;
  opacity: 0.55;
}

.icon-button:disabled svg,
.ribbon-button:disabled svg {
  stroke-width: 1.7;
}

.ribbon-button.primary {
  color: #ffffff;
  background: var(--excel-green);
  border-color: var(--excel-green);
}

.ribbon-button.danger {
  color: var(--danger);
}

.object-tabs {
  display: none;
}

.sheet-object {
  min-width: 98px;
  height: 48px;
  padding: 4px 10px;
  flex-direction: column;
  color: #202020;
  border-color: #dfdfdf;
  background: #ffffff;
}

.sheet-object strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.sheet-object.is-active {
  color: var(--excel-green-dark);
  background: var(--excel-green-soft);
  border-color: #b7d8c4;
  font-weight: 700;
}

body.ui-sheets {
  --selection: #188038;
  --selection-fill: #e6f4ea;
  --header: #f8fafd;
  --header-strong: #f1f3f4;
  --gridline: #dadce0;
  background: #ffffff;
}

body.ui-sheets .excel-app {
  grid-template-rows: 44px 44px 32px minmax(0, 1fr) 34px;
}

body.ui-sheets .excel-titlebar {
  grid-template-columns: minmax(122px, auto) minmax(220px, 1fr) minmax(560px, 1.4fr);
  min-height: 44px;
  color: #202124;
  background: #ffffff;
  border-bottom: 1px solid #dadce0;
}

body.ui-sheets .workbook-title {
  justify-content: flex-start;
}

body.ui-sheets .workbook-title strong {
  font-size: 15px;
}

body.ui-sheets .workbook-title span,
body.ui-sheets .connection-strip {
  color: #5f6368;
}

body.ui-sheets .company-logo-button,
body.ui-sheets .titlebar-link,
body.ui-sheets .icon-button {
  color: #3c4043;
  background: #ffffff;
  border-color: #dadce0;
}

body.ui-sheets .company-logo-button span {
  color: #188038;
}

body.ui-sheets .company-logo-button:hover,
body.ui-sheets .titlebar-link:hover,
body.ui-sheets .excel-titlebar .icon-button:hover {
  background: #f1f3f4;
}

body.ui-sheets .workspace-chip {
  color: #137333;
  background: #e6f4ea;
  border-color: #ceead6;
}

body.ui-sheets .status-dot {
  background: #188038;
}

body.ui-sheets .ui-style-toggle {
  border-color: #dadce0;
  background: #f8fafd;
}

body.ui-sheets .ui-style-toggle button {
  color: #5f6368;
}

body.ui-sheets .ui-style-toggle button.is-active {
  color: #ffffff;
  background: #188038;
}

body.ui-sheets .excel-ribbon {
  min-height: 44px;
  padding: 4px 8px;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #dadce0;
}

body.ui-sheets .ribbon-group {
  min-height: 34px;
  padding: 0 7px;
  border-right-color: #e0e0e0;
}

body.ui-sheets .ribbon-button {
  min-height: 32px;
  min-width: 0;
  flex-direction: row;
  padding: 4px 8px;
  color: #3c4043;
  border-radius: 4px;
}

body.ui-sheets .ribbon-button.compact {
  min-width: 0;
}

body.ui-sheets .ribbon-button:hover,
body.ui-sheets .sheet-object:hover {
  background: #f1f3f4;
  border-color: #dadce0;
}

body.ui-sheets .ribbon-button.primary {
  color: #ffffff;
  background: #188038;
  border-color: #188038;
}

body.ui-sheets .object-tabs {
  display: flex;
}

body.ui-sheets .sheet-object {
  min-width: 88px;
  height: 32px;
  flex-direction: row;
  gap: 6px;
  border-radius: 4px;
  color: #3c4043;
  background: #ffffff;
}

body.ui-sheets .sheet-object.is-active {
  color: #137333;
  background: #e6f4ea;
  border-color: #ceead6;
}

body.ui-sheets .formula-row {
  background: #ffffff;
  border-bottom-color: #dadce0;
}

.filters {
  flex: 1 0 320px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(260px, 24vw);
  min-width: 160px;
  height: 28px;
  padding: 0 8px;
  background: #ffffff;
  border: 1px solid #cfcfcf;
}

.search-box svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.search-box input,
.formula-row input,
select {
  height: 28px;
  min-width: 0;
  color: var(--text);
  background: #ffffff;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  outline: none;
}

.search-box input {
  width: 100%;
  border: 0;
  height: 26px;
}

select {
  max-width: 190px;
  padding: 0 26px 0 7px;
}

.find-replace {
  flex: 0 0 auto;
}

.find-replace input {
  width: 92px;
  height: 28px;
  min-width: 0;
  padding: 0 7px;
  background: #ffffff;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  outline: none;
}

.formula-row {
  display: grid;
  grid-template-columns: 92px 34px minmax(0, 1fr);
  align-items: center;
  gap: 0;
  height: 32px;
  background: #f8f8f8;
  border-bottom: 1px solid #cfcfcf;
}

.name-box,
.fx-label {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  background: #ffffff;
  border-right: 1px solid #cfcfcf;
  border-left: 1px solid #e0e0e0;
}

.name-box {
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
}

.fx-label {
  justify-content: center;
  color: var(--excel-green);
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 700;
}

.formula-row input {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border-width: 0;
  background: #ffffff;
}

.sheet-stage {
  min-height: 0;
  overflow: hidden;
  background: #ffffff;
}

.grid-wrap {
  width: 100%;
  height: 100%;
  overflow: auto;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    repeating-linear-gradient(0deg, transparent 0 calc(var(--cell-height) - 1px), var(--gridline) calc(var(--cell-height) - 1px) var(--cell-height));
}

.data-grid {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: #ffffff;
}

.data-grid th,
.data-grid td {
  height: var(--cell-height);
  min-height: var(--cell-height);
  padding: 0;
  border-right: 1px solid var(--gridline);
  border-bottom: 1px solid var(--gridline);
  overflow: hidden;
  vertical-align: middle;
}

.data-grid th:not(:first-child),
.data-grid td:not(:first-child) {
  max-width: 0;
}

.data-grid tbody tr {
  height: var(--row-height, var(--cell-height));
}

.data-grid tbody td {
  height: var(--row-height, var(--cell-height));
  min-height: var(--row-height, var(--cell-height));
}

.data-grid thead th {
  position: sticky;
  z-index: 5;
  top: 0;
  color: #444444;
  background: var(--header);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.data-grid thead tr.field-row th {
  top: var(--cell-height);
  color: #202020;
  background: #ffffff;
  font-weight: 700;
  text-align: left;
}

.data-grid thead th[data-key] {
  position: sticky;
}

.data-grid thead th[data-key]:not([data-key="id"]) {
  cursor: grab;
}

.data-grid thead th[data-key]:not([data-key="id"]):active {
  cursor: grabbing;
}

.column-select-button {
  display: block;
  width: 100%;
  height: var(--cell-height);
  overflow: hidden;
  padding: 0 5px;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.column-select-button:hover,
.column-select-button[aria-pressed="true"] {
  background: #e9f5ee;
}

.data-grid thead tr.field-row th.is-sorted {
  background: #eef7f1;
}

.data-grid thead tr.field-row th.is-filtered {
  background: #e9f5ee;
}

.data-grid thead tr.field-row th:first-child,
.data-grid thead tr.column-letters th:first-child {
  text-align: center;
}

.data-grid th:first-child,
.data-grid td:first-child {
  position: sticky;
  z-index: 4;
  left: 0;
  width: var(--row-header);
  min-width: var(--row-header);
  max-width: var(--row-header);
  background: var(--header);
  text-align: center;
}

.data-grid thead th:first-child {
  z-index: 8;
}

.corner-select {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
}

.corner-select::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 7px;
  width: 0;
  height: 0;
  border-right: 8px solid #777777;
  border-top: 8px solid transparent;
}

.corner-select:hover {
  background: #e9f3ed;
}

.data-grid tbody tr:hover td:not(:first-child) {
  background: #f9fcfa;
}

.field-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
  height: var(--cell-height);
  min-width: 0;
  padding: 0 13px 0 0;
}

.field-header-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  height: var(--cell-height);
  min-width: 0;
  flex: 1 1 auto;
  padding: 0 2px 0 5px;
  overflow: hidden;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
}

.field-header-button span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field-header-button:hover {
  background: #f4f8f5;
}

.column-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  padding: 0;
  color: #606060;
  background: transparent;
  border: 1px solid transparent;
}

.column-filter-button:hover,
.column-filter-button.is-active {
  color: var(--excel-green-dark);
  background: #ffffff;
  border-color: #b7d8c4;
}

.column-filter-button svg {
  width: 13px;
  height: 13px;
}

.sort-indicator {
  width: 12px;
  flex: 0 0 12px;
  color: var(--selection);
  font-size: 10px;
  line-height: 1;
  text-align: center;
}

.col-resizer {
  position: absolute;
  top: 0;
  right: -8px;
  z-index: 16;
  width: 17px;
  height: 100%;
  cursor: col-resize;
  touch-action: none;
}

.col-resizer:hover,
body.is-resizing-column .col-resizer {
  background: rgba(33, 115, 70, 0.24);
}

.col-resizer::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 6px;
  width: 1px;
  background: transparent;
}

.col-resizer:hover::after,
body.is-resizing-column .col-resizer::after {
  background: var(--selection);
}

body.is-resizing-column {
  cursor: col-resize;
  user-select: none;
}

body.is-reordering-column {
  cursor: grabbing;
  user-select: none;
}

body.is-reordering-column .data-grid {
  cursor: grabbing;
}

body.is-row-selecting {
  cursor: row-resize;
  user-select: none;
}

body.is-row-selecting .data-grid {
  cursor: row-resize;
}

.data-grid .is-column-drag-source {
  background: #e9f5ee !important;
  opacity: 0.78;
}

.data-grid th.is-column-selected,
.data-grid td.is-column-selected {
  background: #dff0e6 !important;
  box-shadow: inset 2px 0 0 var(--selection), inset -2px 0 0 var(--selection);
}

.data-grid tr:hover td.is-column-selected {
  background: #d8eadf !important;
}

.data-grid thead th.is-column-drop-before::before,
.data-grid thead th.is-column-drop-after::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 18;
  width: 3px;
  background: var(--selection);
}

.data-grid thead th.is-column-drop-before::before {
  left: -2px;
}

.data-grid thead th.is-column-drop-after::after {
  right: -2px;
}

.row-header-cell {
  position: sticky;
}

.data-grid tr.is-selected td:not(:first-child) {
  background: var(--selection-fill);
}

.row-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  color: #444444;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 12px;
}

.row-number:hover,
.data-grid tr.is-selected .row-number {
  color: #ffffff;
  background: var(--selection);
}

.row-resizer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  z-index: 12;
  height: 11px;
  cursor: row-resize;
}

.row-resizer:hover,
body.is-resizing-row .row-resizer {
  background: rgba(33, 115, 70, 0.24);
}

body.is-resizing-row {
  cursor: row-resize;
  user-select: none;
}

body.is-resizing-row .data-grid {
  cursor: row-resize;
}

.data-grid td.is-readonly {
  background: #fbfbfb;
}

.data-grid td.is-dirty {
  box-shadow: inset 0 -3px 0 #f4b183;
}

.data-grid td.has-error {
  box-shadow: inset 0 0 0 2px #d13438;
}

.data-grid td.is-active {
  position: relative;
  box-shadow: inset 0 0 0 2px var(--selection);
}

.data-grid td.is-range-selected {
  position: relative;
  background: var(--selection-fill);
  box-shadow: inset 0 0 0 1px var(--selection);
}

.data-grid td.is-range-selected.is-active {
  box-shadow: inset 0 0 0 2px var(--selection);
}

.data-grid td.is-fill-target {
  position: relative;
  background: var(--selection-fill);
  box-shadow: inset 0 0 0 2px var(--selection);
}

.fill-handle {
  position: absolute;
  right: 1px;
  bottom: 1px;
  z-index: 9;
  width: 9px;
  height: 9px;
  padding: 0;
  background: var(--selection);
  border: 1px solid #ffffff;
  border-radius: 0;
  cursor: crosshair;
}

.fill-handle:hover {
  width: 10px;
  height: 10px;
}

body.is-autofilling {
  cursor: crosshair;
  user-select: none;
}

body.is-cell-selecting {
  cursor: cell;
  user-select: none;
}

body.is-cell-selecting .data-grid .cell-control {
  pointer-events: none;
}

.cell-control {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: var(--row-height, var(--cell-height));
  min-height: var(--row-height, var(--cell-height));
  box-sizing: border-box;
  padding: 0 7px;
  overflow: hidden;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: none;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

textarea.cell-control {
  display: block;
  resize: none;
  height: var(--row-height, var(--cell-height));
  max-height: var(--row-height, var(--cell-height));
  min-height: var(--row-height, var(--cell-height));
  padding-top: 4px;
  padding-bottom: 4px;
  overflow-x: hidden;
  overflow-y: auto;
  line-height: 18px;
  text-overflow: clip;
  white-space: pre-wrap;
  word-break: break-word;
}

textarea.cell-control::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.cell-control::-webkit-calendar-picker-indicator {
  display: none;
}

select.cell-control {
  appearance: auto;
  padding-right: 16px;
}

.readonly-text {
  display: block;
  height: var(--row-height, var(--cell-height));
  padding: 0 7px;
  overflow: hidden;
  color: #404040;
  line-height: var(--row-height, var(--cell-height));
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select-preview {
  position: relative;
  padding-right: 22px;
}

.select-preview::after {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 7px;
  height: 7px;
  border-right: 1px solid #242424;
  border-bottom: 1px solid #242424;
  content: "";
  transform: translateY(-65%) rotate(45deg);
}

.record-id {
  display: block;
  height: var(--row-height, var(--cell-height));
  padding: 0 7px;
  overflow: hidden;
  color: #565656;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: var(--row-height, var(--cell-height));
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-id-link {
  color: var(--selection);
  text-decoration: none;
}

.record-id-link:hover {
  background: var(--selection-fill);
  text-decoration: underline;
}

.association-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: var(--row-height, var(--cell-height));
  padding: 2px 5px;
  overflow: hidden;
}

.association-cell {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  height: var(--row-height, var(--cell-height));
  min-width: 0;
  padding: 0 3px;
  overflow: hidden;
}

.association-id {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  height: 20px;
  min-width: 0;
  padding: 0 5px;
  overflow: hidden;
  color: var(--selection);
  background: #eef7f1;
  border: 1px solid #c6dfcf;
  border-radius: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.association-id:hover {
  color: #ffffff;
  background: var(--selection);
  border-color: var(--selection);
}

.association-empty-button,
.association-picker-trigger {
  display: inline-flex;
  align-items: center;
  height: calc(var(--row-height, var(--cell-height)) - 6px);
  min-height: 18px;
  padding: 0 7px;
  color: #29533a;
  background: #f6fbf8;
  border: 1px solid #c6dfcf;
  border-radius: 2px;
  font-size: 12px;
  line-height: 1;
}

.association-empty-button {
  justify-content: flex-start;
  width: calc(100% - 6px);
  margin: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.association-picker-trigger {
  flex: 0 0 auto;
  color: var(--selection);
  background: #ffffff;
}

.association-empty-button:hover,
.association-picker-trigger:hover {
  color: #ffffff;
  background: var(--selection);
  border-color: var(--selection);
}

.cell-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--row-height, var(--cell-height)) - 6px);
  min-width: 46px;
  margin: 3px 7px;
  color: #0563c1;
  background: transparent;
  border: 0;
  text-decoration: underline;
}

.sheet-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 34px;
  padding: 0 10px;
  color: #404040;
  background: #f3f3f3;
  border-top: 1px solid #cfcfcf;
}

.status-legend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.legend-dot {
  display: inline-block;
  width: 18px;
  height: 4px;
  border-radius: 2px;
}

.legend-dot.dirty {
  background: #f4b183;
}

.legend-dot.error {
  height: 10px;
  border: 2px solid #d13438;
  background: #ffffff;
}

.sheet-tabs {
  align-self: stretch;
  gap: 2px;
}

.sheet-tab {
  min-width: 104px;
  height: 100%;
  padding: 0 16px;
  color: #404040;
  background: #e9e9e9;
  border: 1px solid #d1d1d1;
  border-bottom: 0;
}

.sheet-tab.is-active {
  color: var(--excel-green-dark);
  background: #ffffff;
  border-top: 3px solid var(--excel-green);
  font-weight: 700;
}

.sheet-add-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 112px;
  color: var(--excel-green-dark);
  background: #f7fbf8;
  border-style: dashed;
  font-weight: 700;
}

.sheet-add-tab svg {
  width: 14px;
  height: 14px;
}

.sheet-add-tab:hover,
.sheet-add-tab:focus-visible {
  background: #e9f5ee;
  border-color: var(--excel-green);
}

.status-cells {
  color: var(--muted);
  font-size: 12px;
}

.status-cells span {
  padding-left: 10px;
  border-left: 1px solid #d0d0d0;
}

.status-cells span:first-child {
  border-left: 0;
}

.compatibility-layer {
  display: none;
}

.review-dialog {
  width: min(880px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  color: var(--text);
  background: #ffffff;
  border: 1px solid #b5b5b5;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

.login-dialog {
  width: min(430px, calc(100vw - 32px));
}

.property-dialog {
  width: min(760px, calc(100vw - 32px));
}

.association-dialog {
  width: min(720px, calc(100vw - 32px));
}

.review-dialog::backdrop {
  background: rgba(0, 0, 0, 0.32);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid #d0d0d0;
}

.dialog-head p,
.dialog-head h2 {
  margin: 0;
}

.dialog-head p {
  color: var(--excel-green);
  font-size: 12px;
  font-weight: 700;
}

.dialog-head h2 {
  margin-top: 3px;
  font-size: 18px;
}

.diff-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 16px;
  background: #f8f8f8;
  border-bottom: 1px solid #d0d0d0;
}

.diff-stat {
  padding: 10px;
  background: #ffffff;
  border: 1px solid #d0d0d0;
}

.diff-stat span,
.diff-stat strong {
  display: block;
}

.diff-stat span {
  color: var(--muted);
  font-size: 12px;
}

.diff-stat strong {
  margin-top: 4px;
  font-size: 22px;
}

.diff-list {
  display: grid;
  max-height: 420px;
  gap: 6px;
  padding: 16px;
  overflow: auto;
}

.diff-issues {
  display: grid;
  gap: 6px;
  padding: 12px 16px;
  background: #fff7f7;
  border-bottom: 1px solid #e6b8b8;
}

.diff-issues[hidden] {
  display: none;
}

.issue-callout {
  display: grid;
  gap: 3px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #d13438;
  border-left: 4px solid #d13438;
}

.issue-callout strong {
  color: #8a1f24;
}

.issue-callout span {
  color: var(--muted);
  font-size: 12px;
}

.review-issue-button {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(120px, 0.7fr);
  gap: 3px 10px;
  width: 100%;
  padding: 8px 10px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid #e1b5b5;
  text-align: left;
}

.review-issue-button:hover {
  border-color: #d13438;
}

.review-issue-button strong,
.review-issue-button span,
.review-issue-button small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-issue-button span {
  color: #8a1f24;
}

.review-issue-button small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
}

.diff-api-error {
  display: grid;
  gap: 8px;
  padding: 12px 16px;
  background: #fff8ed;
  border-bottom: 1px solid #efc58f;
}

.diff-api-error[hidden] {
  display: none;
}

.api-error-callout {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #d88716;
  border-left: 4px solid #d88716;
}

.api-error-callout strong {
  color: #8a4b00;
}

.api-error-callout span {
  color: var(--muted);
  font-size: 12px;
}

.api-error-item {
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) minmax(150px, 0.8fr) minmax(240px, 1.4fr) auto;
  gap: 8px 10px;
  align-items: start;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #efc58f;
  text-align: left;
}

.api-error-item button {
  justify-self: start;
  padding: 3px 7px;
  color: var(--excel-green-dark);
  background: #ffffff;
  border: 1px solid #9fc9ad;
}

.api-error-main,
.api-error-value,
.api-error-instruction {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.api-error-main span,
.api-error-value span,
.api-error-instruction span {
  color: var(--muted);
  font-size: 11px;
}

.api-error-main strong,
.api-error-value code,
.api-error-instruction strong,
.api-error-instruction small,
.api-error-instruction em {
  min-width: 0;
  overflow: hidden;
}

.api-error-item code {
  padding: 2px 5px;
  background: #f5f5f5;
  border: 1px solid #e3e3e3;
  white-space: normal;
  word-break: break-word;
}

.api-error-instruction strong {
  color: #5e3300;
  font-size: 13px;
  line-height: 1.35;
}

.api-error-instruction small {
  color: #8a4b00;
  font-size: 12px;
  line-height: 1.35;
}

.api-error-instruction em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.api-error-detail {
  color: var(--muted);
  font-size: 12px;
}

.api-error-detail summary {
  cursor: pointer;
}

.api-error-detail pre {
  max-height: 110px;
  margin: 6px 0 0;
  padding: 8px;
  overflow: auto;
  color: #333333;
  background: #ffffff;
  border: 1px solid #dfdfdf;
  white-space: pre-wrap;
}

.diff-item,
.empty-state {
  padding: 10px;
  background: #ffffff;
  border: 1px solid #d0d0d0;
}

.diff-item {
  border-left: 4px solid var(--excel-green);
}

.diff-item strong,
.diff-item span {
  display: block;
}

.diff-item strong {
  margin-bottom: 4px;
}

.diff-item span,
.empty-state {
  color: var(--muted);
  font-size: 12px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #d0d0d0;
}

.login-form {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.login-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  height: 32px;
  padding: 5px 8px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid #bdbdbd;
}

.login-form input:focus {
  border-color: var(--selection);
  outline: 1px solid var(--selection);
}

.login-form .dialog-actions {
  margin: 4px -16px -16px;
}

.property-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f8f8f8;
  border-bottom: 1px solid #d0d0d0;
}

.association-picker-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f8f8f8;
  border-bottom: 1px solid #d0d0d0;
}

.association-picker-toolbar .search-box {
  flex: 1 1 auto;
  width: auto;
  max-width: none;
}

.association-picker-summary {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 9px 16px;
  color: #48525f;
  border-bottom: 1px solid #d0d0d0;
}

.association-picker-summary strong {
  flex: 0 0 auto;
  color: var(--selection);
}

.association-picker-summary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.association-picker-list {
  display: grid;
  gap: 6px;
  max-height: min(460px, calc(100vh - 300px));
  padding: 12px 16px;
  overflow: auto;
  background: #ffffff;
}

.association-option {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 50px;
  padding: 8px 10px;
  color: var(--text);
  text-align: left;
  background: #ffffff;
  border: 1px solid #d2d2d2;
  border-radius: 2px;
}

.association-option:hover,
.association-option:focus-visible {
  border-color: var(--selection);
  outline: none;
}

.association-option.is-selected {
  background: var(--selection-fill);
  border-color: var(--selection);
}

.association-option-check {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--selection);
  background: #f3f7f4;
  border: 1px solid #cbd8cf;
}

.association-option.is-selected .association-option-check {
  color: #ffffff;
  background: var(--selection);
  border-color: var(--selection);
}

.association-option-check svg {
  width: 14px;
  height: 14px;
}

.association-option-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.association-option-main strong,
.association-option-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.association-option-main span {
  color: var(--muted);
  font-size: 12px;
}

.property-toolbar .search-box {
  flex: 1 1 auto;
  width: auto;
  max-width: none;
}

.property-list {
  display: grid;
  gap: 6px;
  max-height: min(520px, calc(100vh - 260px));
  padding: 12px 16px;
  overflow: auto;
}

.object-dialog {
  width: min(920px, calc(100vw - 40px));
}

.object-dialog-intro {
  padding: 14px 16px;
  color: var(--muted);
  border-bottom: 1px solid #d0d0d0;
  line-height: 1.7;
}

.object-dialog-intro p {
  margin: 0;
}

.object-list {
  display: grid;
  gap: 8px;
  max-height: min(520px, calc(100vh - 300px));
  padding: 12px 16px;
  overflow: auto;
  background: #fafafa;
}

.object-group-title {
  margin: 8px 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.object-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  background: #ffffff;
  border: 1px solid #d0d0d0;
}

.object-option:hover {
  border-color: var(--excel-green);
}

.object-option input {
  width: 18px;
  height: 18px;
}

.object-option strong {
  display: block;
  font-size: 14px;
}

.object-option span {
  color: var(--muted);
}

.object-badge {
  padding: 3px 8px;
  color: var(--excel-green-dark);
  background: var(--excel-green-soft);
  border: 1px solid #b8d9c5;
  font-weight: 800;
}

.object-warning {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 12px 16px 0;
  padding: 10px 12px;
  color: #7a4b00;
  background: #fff4e5;
  border: 1px solid #f2c36b;
}

.object-warning div {
  display: grid;
  gap: 4px;
}

.object-warning strong,
.object-warning span {
  display: block;
}

.object-warning .ribbon-button {
  flex: 0 0 auto;
  min-height: 34px;
}

.object-warning[hidden] {
  display: none;
}

.property-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #d0d0d0;
}

.property-item.is-selected {
  background: #f5faf7;
  border-color: #b7d8c4;
}

.property-item-main {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.property-item-title {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.property-item-title strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-item-title code {
  padding: 1px 5px;
  color: var(--muted);
  background: #f5f5f5;
  border: 1px solid #dedede;
  font-size: 11px;
}

.property-item-main p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.property-badge {
  padding: 2px 6px;
  color: #4b4b4b;
  background: #f3f2f1;
  border: 1px solid #dedede;
  font-size: 11px;
}

.property-badge.editable {
  color: var(--excel-green-dark);
  background: var(--excel-green-soft);
  border-color: #b7d8c4;
}

.property-badge.readonly {
  color: #7a4d00;
  background: #fff6df;
  border-color: #e8c773;
}

.sheet-context-menu {
  position: fixed;
  z-index: 30;
  min-width: 230px;
  padding: 4px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid #b8b8b8;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.sheet-context-menu[hidden] {
  display: none;
}

.sheet-context-menu button {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 30px;
  padding: 0 8px;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
}

.sheet-context-menu button:hover,
.sheet-context-menu button:focus-visible {
  background: #eef7f1;
  outline: none;
}

.sheet-context-menu button.danger {
  color: #8a1f1f;
}

.sheet-context-menu button.danger:hover,
.sheet-context-menu button.danger:focus-visible {
  background: #fff1f1;
}

.sheet-context-menu svg {
  width: 16px;
  height: 16px;
}

.sheet-context-menu span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-context-menu strong {
  min-width: 22px;
  padding: 1px 5px;
  color: var(--muted);
  background: #f3f3f3;
  border: 1px solid #dedede;
  font-size: 11px;
  text-align: center;
}

.context-menu-separator {
  height: 1px;
  margin: 4px 2px;
  background: #e0e0e0;
}

.column-filter-menu {
  position: fixed;
  z-index: 42;
  width: min(280px, calc(100vw - 16px));
  padding: 8px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid #b8b8b8;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.column-filter-menu[hidden] {
  display: none;
}

.column-filter-head,
.column-filter-actions,
.column-filter-search {
  display: flex;
  align-items: center;
  gap: 6px;
}

.column-filter-head {
  justify-content: space-between;
  min-width: 0;
  margin-bottom: 7px;
}

.column-filter-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.column-filter-search {
  height: 30px;
  padding: 0 7px;
  border: 1px solid #cfcfcf;
}

.column-filter-search svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.column-filter-search input {
  width: 100%;
  height: 26px;
  border: 0;
  outline: 0;
}

.column-filter-actions {
  justify-content: space-between;
  margin: 8px 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.column-filter-actions button {
  height: 24px;
  padding: 0 7px;
  background: #f7f7f7;
  border: 1px solid #d0d0d0;
}

.column-filter-actions button:hover,
.column-filter-actions button:focus-visible {
  background: #eef7f1;
  outline: none;
}

.column-filter-options {
  max-height: min(280px, calc(100vh - 260px));
  overflow: auto;
  border: 1px solid #e0e0e0;
}

.column-filter-option {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 8px;
  cursor: pointer;
}

.column-filter-option:hover {
  background: #f5faf7;
}

.column-filter-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.column-filter-empty {
  padding: 8px;
  color: var(--muted);
  font-size: 12px;
}

.toast {
  position: fixed;
  right: 14px;
  bottom: 46px;
  z-index: 20;
  max-width: min(420px, calc(100vw - 28px));
  padding: 10px 12px;
  color: #ffffff;
  background: #323130;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .excel-app {
    min-width: 0;
  }

  .excel-titlebar {
    grid-template-columns: minmax(118px, 0.45fr) minmax(150px, 1fr) minmax(180px, 0.8fr);
  }

  #lastSyncLabel,
  .workspace-chip,
  .connection-strip a[href="./patterns.html"],
  #disconnectButton {
    display: none;
  }

  .excel-ribbon {
    overflow-x: auto;
  }
}

body.patterns-body,
body.hubspot-prototype-body {
  overflow: auto;
  background: #f5f7f9;
}

.patterns-shell {
  min-height: 100vh;
  padding: 28px;
  color: #1f2933;
}

.patterns-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto 24px;
}

.patterns-header p,
.hs-page-head p {
  margin: 0 0 6px;
  color: #5b6672;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.patterns-header h1,
.hs-page-head h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0;
}

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto 16px;
}

.pattern-panel {
  min-height: 330px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #d9e1e8;
}

.pattern-kicker {
  width: max-content;
  margin-bottom: 16px;
  padding: 4px 8px;
  color: #663c00;
  background: #fff4db;
  border: 1px solid #f1d28b;
  font-size: 12px;
  font-weight: 700;
}

.pattern-panel h2 {
  margin: 0 0 18px;
  font-size: 21px;
  letter-spacing: 0;
}

.pattern-panel dl {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
}

.pattern-panel dl div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid #edf1f5;
}

.pattern-panel dt {
  color: #4d5965;
  font-weight: 700;
}

.pattern-panel dd {
  margin: 0;
  color: #1f2933;
}

.pattern-link-button,
.pattern-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  color: #ffffff;
  background: #33475b;
  border: 1px solid #33475b;
  text-decoration: none;
}

.pattern-primary {
  background: #ff5c35;
  border-color: #ff5c35;
}

.pattern-compare {
  max-width: 1180px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #d9e1e8;
  overflow: auto;
}

.pattern-compare table {
  width: 100%;
  border-collapse: collapse;
}

.pattern-compare th,
.pattern-compare td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf1f5;
  text-align: left;
}

.pattern-compare thead th {
  background: #f8fafc;
}

.hs-prototype {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  grid-template-rows: 48px minmax(0, 1fr);
  min-height: 100vh;
  background: #f6f8fa;
}

.hs-sidebar {
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  background: #263342;
}

.hs-logo {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #ffffff;
  background: #ff5c35;
  font-weight: 800;
}

.hs-sidebar button {
  width: 22px;
  height: 22px;
  padding: 0;
  background: #6f7c8a;
  border: 0;
}

.hs-sidebar button.is-active {
  background: #ffffff;
}

.hs-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  background: #ffffff;
  border-bottom: 1px solid #d9e1e8;
}

.hs-search {
  width: min(420px, 42vw);
  height: 30px;
  padding: 6px 12px;
  color: #68778a;
  background: #f2f5f8;
  border: 1px solid #d5dde5;
}

.hs-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hs-top-actions a {
  color: #33475b;
  text-decoration: none;
  font-weight: 700;
}

.hs-top-actions button,
.hs-button,
.hs-tools button,
.hs-view-tabs button {
  min-height: 30px;
  padding: 0 11px;
  color: #33475b;
  background: #ffffff;
  border: 1px solid #b7c4d1;
}

.hs-top-actions button,
.hs-button.primary {
  color: #ffffff;
  background: #ff5c35;
  border-color: #ff5c35;
}

.hs-main {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-width: 0;
  padding: 18px;
}

.hs-page-head,
.hs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #d9e1e8;
}

.hs-page-head {
  padding: 16px 18px;
  border-bottom: 0;
}

.hs-page-actions,
.hs-view-tabs,
.hs-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hs-toolbar {
  padding: 10px;
}

.hs-view-tabs button.is-active {
  color: #ff5c35;
  border-color: #ff5c35;
}

.hs-tools input {
  height: 30px;
  width: 220px;
  padding: 0 9px;
  border: 1px solid #b7c4d1;
}

.hs-board {
  position: relative;
  min-height: 0;
  background: #ffffff;
  border: 1px solid #d9e1e8;
  border-top: 0;
  overflow: hidden;
}

.hs-native-table {
  height: 100%;
  overflow: auto;
}

.hs-native-table.is-muted {
  opacity: 0.34;
}

.hs-native-table table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.hs-native-table th,
.hs-native-table td {
  height: 38px;
  padding: 0 10px;
  border-bottom: 1px solid #e1e7ee;
  text-align: left;
  white-space: nowrap;
}

.hs-native-table th {
  background: #f6f8fa;
  color: #33475b;
  font-size: 12px;
}

.hs-native-table a {
  color: #007a8c;
  font-weight: 700;
  text-decoration: none;
}

.hs-sheet-layer {
  position: absolute;
  inset: 14px;
  display: none;
  grid-template-rows: 32px minmax(0, 1fr);
  background: #ffffff;
  border: 1px solid #b7c4d1;
  box-shadow: 0 12px 32px rgba(51, 71, 91, 0.18);
}

.hs-sheet-layer.is-active {
  display: grid;
}

.hs-sheet-head {
  display: grid;
  grid-template-columns: 90px 32px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid #d9d9d9;
}

.hs-grid-wrap {
  min-height: 0;
  border: 0;
}

@media (max-width: 900px) {
  .pattern-grid {
    grid-template-columns: 1fr;
  }

  .patterns-header,
  .hs-page-head,
  .hs-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
