:root {
  --blue: #0055b0;
  --light-blue: #007bff;
  --dark-blue: #0d3b6c;
  --indigo: #6610f2;
  --purple: #6f42c1;
  --pink: #e83e8c;
  --red: #dc3545;
  --orange: #fd7e14;
  --yellow: #ffc107;
  --green: #28a745;
  --teal: #20c997;
  --cyan: #17a2b8;
  --white: #fff;
  --gray: #6c757d;
  --gray-e-light: #e3e9ed;
  --gray-m-light: #cdd7de;
  --gray-light: #b2bfc9;
  --gray-dark: #343a40;
  --primary: var(--red);
  --secondary: var(--gray);
  --success: var(--green);
  --info: var(--cyan);
  --warning: var(--yellow);
  --danger: var(--red);
  --light: #f8f9fa;
  --dark: var(--gray-dark);
  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --nav-height: 51px;
  --nav-shift: -51px;
  --page-top: 14px;
  --app-surface-color: #ffffff;
  --app-surface-accent-color: #111111;
  --project-nav-door-bg: #ffffff;
  --project-nav-door-hover-bg: #f1f4f7;
  --project-nav-door-active-bg: #e4edf5;
  --project-nav-door-preview-bg: #eceff1;
  --project-nav-project-bg: #f8fafc;
  --project-nav-project-hover-bg: #eef4ff;
  --project-nav-project-active-bg: #e2e8f0;
  --project-nav-mobile-bg: #ffffff;
  --ctrl-top: var(--nav-height, 51px);
  --texture-library-tile-bg: rgba(15, 23, 42, 0.04);
  --texture-library-tile-border: rgba(148, 163, 184, 0.4);
  --texture-library-tile-hover-border: rgba(59, 130, 246, 0.7);
  --texture-library-tile-hover-shadow: 0 8px 16px rgba(15, 23, 42, 0.18);
  --texture-library-tile-active-border: rgba(59, 130, 246, 0.85);
  --texture-library-tile-active-shadow: 0 10px 18px rgba(59, 130, 246, 0.25);
  --texture-library-text-color: #1e293b;
  --texture-library-subtext-color: rgba(15, 23, 42, 0.55);
  --texture-library-remove-bg: rgba(15, 23, 42, 0.55);
  --texture-library-remove-color: #f8fafc;
  --texture-library-swatch-border: rgba(15, 23, 42, 0.15);
  --texture-library-swatch-inset: rgba(255, 255, 255, 0.18);
  --texture-library-swatches-border: rgba(148, 163, 184, 0.45);
  --texture-library-swatches-bg: rgba(241, 245, 249, 0.7);
  --texture-library-swatches-hover-border: rgba(59, 130, 246, 0.7);
  --texture-library-swatches-hover-shadow: 0 6px 14px rgba(59, 130, 246, 0.2);
  --texture-library-swatches-active-border: rgba(59, 130, 246, 0.85);
  --texture-library-swatches-active-shadow: 0 8px 16px rgba(59, 130, 246, 0.22);
  --texture-library-status-bg: rgba(15, 23, 42, 0.78);
  --texture-library-status-color: #f8fafc;
}

html[data-mui-color-scheme='dark'] {
  --app-surface-color: #000000;
  --app-surface-accent-color: #ffffff;
  --project-nav-door-bg: #24313a;
  --project-nav-door-hover-bg: #2d3e4a;
  --project-nav-door-active-bg: #384b57;
  --project-nav-door-preview-bg: #31404c;
  --project-nav-project-bg: #1f2933;
  --project-nav-project-hover-bg: #273544;
  --project-nav-project-active-bg: #31404c;
  --project-nav-mobile-bg: #151e27;
  --texture-library-tile-bg: rgba(30, 41, 59, 0.6);
  --texture-library-tile-border: rgba(148, 163, 184, 0.45);
  --texture-library-tile-hover-border: rgba(96, 165, 250, 0.75);
  --texture-library-tile-hover-shadow: 0 10px 20px rgba(15, 23, 42, 0.6);
  --texture-library-tile-active-border: rgba(96, 165, 250, 0.85);
  --texture-library-tile-active-shadow: 0 12px 24px rgba(15, 23, 42, 0.7);
  --texture-library-text-color: rgba(241, 245, 249, 0.95);
  --texture-library-subtext-color: rgba(203, 213, 225, 0.75);
  --texture-library-remove-bg: rgba(148, 163, 184, 0.75);
  --texture-library-remove-color: #0f172a;
  --texture-library-swatch-border: rgba(148, 163, 184, 0.35);
  --texture-library-swatch-inset: rgba(15, 23, 42, 0.5);
  --texture-library-swatches-border: rgba(148, 163, 184, 0.4);
  --texture-library-swatches-bg: rgba(30, 41, 59, 0.6);
  --texture-library-swatches-hover-border: rgba(96, 165, 250, 0.75);
  --texture-library-swatches-hover-shadow: 0 8px 18px rgba(15, 23, 42, 0.65);
  --texture-library-swatches-active-border: rgba(96, 165, 250, 0.85);
  --texture-library-swatches-active-shadow: 0 10px 22px rgba(15, 23, 42, 0.7);
  --texture-library-status-bg: rgba(15, 23, 42, 0.85);
  --texture-library-status-color: #e2e8f0;
}

html[data-mui-color-scheme='dark'] body {
  background-color: var(--app-surface-color);
  color: var(--app-surface-accent-color);
}

html[data-mui-color-scheme='dark'] .MuiSlider-root .MuiSlider-markLabel {
  color: #f8fafc;
}

html[data-mui-color-scheme='dark'] .MuiSlider-root .MuiSlider-mark {
  background-color: #f8fafc;
}


html {
  overscroll-behavior-y: contain;
}

body {
	font-family: 'Open Sans', Helvetica, Arial, sans-serif;
	font-size: 12px;
	font-weight: 400;
	overflow-x: auto;
	-webkit-user-select: none;
	user-select: none;
	touch-action: pan-x pan-y;
	overscroll-behavior-y: contain;
}
input,
textarea,
select,
button,
#table-container,
#table-container * {
	-webkit-user-select: text;
	user-select: text;
}
li {
  list-style: none;
}

a, button { transition: all 0.3s ease; }
a:hover,
a:focus {
	text-decoration: none;
	outline: none;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  color: var(--gray);
}

/* === W3 utility subset (migrated from W3.CSS) === */
.w3-bar {
  width: 100%;
  overflow: hidden;
}

.w3-center .w3-bar {
  display: inline-block;
  width: auto;
}

.w3-bar .w3-bar-item {
  padding: 6px 12px;
  float: left;
  width: auto;
  border: none;
  display: block;
  outline: 0;
}

.w3-bar .w3-dropdown-hover,
.w3-bar .w3-dropdown-click {
  position: static;
  float: left;
}

.w3-bar .w3-button {
  white-space: normal;
}

.w3-bar:before,
.w3-bar:after,
.w3-container:before,
.w3-container:after,
.w3-row:before,
.w3-row:after {
  content: "";
  display: table;
  clear: both;
}

.w3-bar-block {
  width: 100%;
}

.w3-bar-block .w3-bar-item {
  width: 100%;
  display: block;
  padding: 6px 12px;
  text-align: left;
  font-size: 10px;
  border: none;
  white-space: normal;
  float: none;
  outline: 0;
}

.w3-bar-block.w3-center .w3-bar-item {
  text-align: center;
}

.w3-bar-block .w3-dropdown-hover,
.w3-bar-block .w3-dropdown-click {
  width: 100%;
}

.w3-bar-block .w3-dropdown-hover .w3-dropdown-content,
.w3-bar-block .w3-dropdown-click .w3-dropdown-content {
  min-width: 100%;
}

.w3-block {
  display: block;
  width: 100%;
}

.w3-button,
.w3-btn {
  border: none;
  display: inline-block;
  padding: 6px 12px;
  vertical-align: middle;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background-color: inherit;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.w3-button:hover {
  color: #000 !important;
  background-color: #ccc !important;
}

.w3-disabled,
.w3-btn:disabled,
.w3-button:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.w3-badge,
.w3-tag {
  background-color: #000;
  color: #fff;
  display: inline-block;
  padding: 0 8px;
  text-align: center;
}

.w3-badge {
  border-radius: 50%;
}

.w3-input {
  padding: 8px;
  display: block;
  border: none;
  border-bottom: 1px solid #ccc;
  width: 100%;
}

.w3-dropdown-click,
.w3-dropdown-hover {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.w3-dropdown-hover:first-child,
.w3-dropdown-click:hover,
.w3-dropdown-hover:hover > .w3-button:first-child {
  background-color: #ccc;
  color: #000;
}

.w3-dropdown-hover:hover .w3-dropdown-content {
  display: block;
}

.w3-dropdown-content {
  cursor: auto;
  color: #000;
  background-color: #fff;
  display: none;
  position: absolute;
  min-width: 160px;
  margin: 0;
  padding: 0;
  z-index: 1;
}

@media (max-width: 600px) {
  .w3-dropdown-hover.w3-mobile .w3-dropdown-content,
  .w3-dropdown-click.w3-mobile .w3-dropdown-content {
    position: relative;
  }

  .w3-bar-item.w3-mobile,
  .w3-dropdown-hover.w3-mobile,
  .w3-dropdown-click.w3-mobile {
    text-align: center;
  }

  .w3-dropdown-hover.w3-mobile,
  .w3-dropdown-hover.w3-mobile .w3-btn,
  .w3-dropdown-hover.w3-mobile .w3-button,
  .w3-dropdown-click.w3-mobile,
  .w3-dropdown-click.w3-mobile .w3-btn,
  .w3-dropdown-click.w3-mobile .w3-button {
    width: 100%;
  }
}

.w3-container,
.w3-panel {
  padding: 0.01em 16px;
  overflow: visible;
}

.w3-content {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
}

.w3-row {
  width: 100%;
}

.w3-col {
  float: left;
  width: 100%;
  padding: 0 8px;
  overflow: visible;
}

@media (min-width: 601px) {
  .w3-col.m1 {
    width: 8.33333%;
  }

  .w3-col.m2 {
    width: 16.66667%;
  }

  .w3-col.m3 {
    width: 25%;
  }

  .w3-col.m4 {
    width: 33.33333%;
  }

  .w3-col.m5 {
    width: 41.66667%;
  }

  .w3-col.m6 {
    width: 50%;
  }

  .w3-col.m7 {
    width: 58.33333%;
  }

  .w3-col.m8 {
    width: 66.66667%;
  }

  .w3-col.m9 {
    width: 75%;
  }

  .w3-col.m10 {
    width: 83.33333%;
  }

  .w3-col.m11 {
    width: 91.66667%;
  }

  .w3-col.m12 {
    width: 100%;
  }
}

.w3-hide {
  display: none !important;
}

.w3-show,
.w3-show-block {
  display: block !important;
}

@media (max-width: 600px) {
  .w3-hide-small {
    display: none !important;
  }
}

@media (min-width: 601px) and (max-width: 992px) {
  .w3-hide-medium {
    display: none !important;
  }
}

@media (min-width: 993px) {
  .w3-hide-large {
    display: none !important;
  }
}

.w3-table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  display: table;
}

.w3-bordered tr {
  border-bottom: 1px solid #ddd;
}

.w3-table tr:nth-child(even) {
  background-color: #f1f1f1;
}

.w3-table tr:nth-child(odd) {
  background-color: #fff;
}

.w3-table td,
.w3-table th {
  padding: 8px 8px;
  text-align: left;
  font-size: 10px;
  vertical-align: top;
}

.w3-table th:first-child,
.w3-table td:first-child {
  padding-left: 16px;
}

.w3-card,
.w3-card-2 {
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}

.w3-card-4,
.w3-hover-shadow:hover {
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2), 0 4px 20px 0 rgba(0, 0, 0, 0.19);
}

.w3-round-small {
  border-radius: 2px;
}

.w3-round,
.w3-round-medium {
  border-radius: 4px;
}

.w3-center {
  text-align: center !important;
}

.w3-left-align {
  text-align: left !important;
}

.w3-margin-top {
  margin-top: 16px !important;
}

.w3-margin-left {
  margin-left: 16px !important;
}

.w3-margin-right {
  margin-right: 16px !important;
}

.w3-padding-large {
  padding: 12px 24px !important;
}

.w3-padding-32 {
  padding-top: 32px !important;
  padding-bottom: 32px !important;
}

.w3-small {
  font-size: 12px !important;
}

.w3-large {
  font-size: 18px !important;
}

.w3-xxlarge {
  font-size: 36px !important;
}

.w3-right {
  float: right !important;
}

.w3-bar .w3-right {
  margin-left: auto;
}

.w3-border {
  border: 1px solid #ccc !important;
}

.w3-border-theme {
  border-color: #607d8b !important;
}

.w3-blue-grey,
.w3-hover-blue-grey:hover,
.w3-blue-gray,
.w3-hover-blue-gray:hover {
  color: #fff !important;
  background-color: #607d8b !important;
}

.w3-white,
.w3-hover-white:hover {
  color: #000 !important;
  background-color: #fff !important;
}

.w3-black,
.w3-hover-black:hover {
  color: #fff !important;
  background-color: #000 !important;
}

.w3-text-green,
.w3-hover-text-green:hover {
  color: #4caf50 !important;
}

.w3-text-red,
.w3-hover-text-red:hover {
  color: #f44336 !important;
}

.w3-text-white,
.w3-hover-text-white:hover {
  color: #fff !important;
}

.w3-text-grey,
.w3-text-gray,
.w3-hover-text-grey:hover,
.w3-hover-text-gray:hover {
  color: #757575 !important;
}

.w3-text-theme {
  color: #607d8b !important;
}

.w3-hover-theme:hover {
  color: #fff !important;
  background-color: #607d8b !important;
}

.w3-hover-text-theme:hover {
  color: #607d8b !important;
}

.w3-hover-border-theme:hover {
  border-color: #607d8b !important;
}

.w3-hover-white:hover {
  color: #000 !important;
  background-color: #fff !important;
}

.w3-top {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
}

.w3-opacity {
  opacity: 0.6;
}

.w3-opacity-off {
  opacity: 1;
}

.w3-opacity-max {
  opacity: 0.25;
}

.w3-opacity-min {
  opacity: 0.75;
}

.w3-animate-opacity {
  animation: opac 0.8s;
}

@keyframes opac {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

html[data-mui-color-scheme='dark'] .w3-btn:hover,
html[data-mui-color-scheme='dark'] .w3-button:hover {
  box-shadow: 0 8px 16px 0 rgba(255, 255, 255, 0.11), 0 8px 16px 0 rgba(255, 255, 255, 0.11);
}

html[data-mui-color-scheme='dark'] .w3-card,
html[data-mui-color-scheme='dark'] .w3-card-2 {
  box-shadow: 0 2px 5px 0 rgba(255, 255, 255, 0.11), 0 2px 5px 0 rgba(255, 255, 255, 0.11);
}

html[data-mui-color-scheme='dark'] .w3-card-4,
html[data-mui-color-scheme='dark'] .w3-hover-shadow:hover {
  box-shadow: 0 4px 10px 0 rgba(255, 255, 255, 0.11), 0 4px 10px 0 rgba(255, 255, 255, 0.11);
}
.w3-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.w3-row-padding {
  padding: 0 8px;
}

.w3-row-padding > .w3-col {
  padding: 0 8px;
}


.w3-theme-l5 {color:#000 !important; background-color:#f5f7f8 !important;
  overflow: visible;}
.w3-theme-l4 {color:#000 !important; background-color:#dfe5e8 !important}
.w3-theme-l3 {color:#000 !important; background-color:#becbd2 !important}
.w3-theme-l2 {color:#000 !important; background-color:#9eb1bb !important}
.w3-theme-l1 {color:#fff !important; background-color:#7d97a5 !important}
.w3-theme-d1 {color:#fff !important; background-color:#57707d !important}
.w3-theme-d2 {color:#fff !important; background-color:#4d636f !important}
.w3-theme-d3 {color:#fff !important; background-color:#435761 !important}
.w3-theme-d4 {color:#fff !important; background-color:#3a4b53 !important}
.w3-theme-d5 {color:#fff !important; background-color:#303e45 !important}

.w3-theme-light {color:#000 !important; background-color:#f5f7f8 !important}
.w3-theme-dark {color:#fff !important; background-color:#303e45 !important}
.w3-theme-action {color:#fff !important; background-color:#303e45 !important}
.w3-theme-active {color:#fff !important; background-color:#a5a47d !important}

.w3-theme {color:#fff !important; background-color:#607d8b !important}
.w3-text-theme {color:#607d8b !important}
.w3-border-theme {border-color:#607d8b !important}

.w3-hover-theme:hover {color:#fff !important; background-color:#607d8b !important}
.w3-hover-text-theme:hover {color:#607d8b !important}
.w3-hover-border-theme:hover {border-color:#607d8b !important}

/* ===== Tab chip palette mapped to theme hues ===== */
.w3-tab-theme     {color:#fff !important; background-color:#607d8b !important}
.w3-tab-theme-d5 {color:#fff !important; background-color:#303e45 !important}
.w3-tab-theme-d4 {color:#fff !important; background-color:#3a4b53 !important}
.w3-tab-theme-d3 {color:#fff !important; background-color:#435761 !important}
.w3-tab-theme-d2 {color:#fff !important; background-color:#4d636f !important}
.w3-tab-theme-d1 {color:#fff !important; background-color:#57707d !important}
.w3-tab-theme-l1 {color:#fff !important; background-color:#7d97a5 !important}
.w3-tab-theme-l2 {color:#000 !important; background-color:#9eb1bb !important}
.w3-tab-theme-l3 {color:#000 !important; background-color:#becbd2 !important}
.w3-tab-theme-l4 {color:#000 !important; background-color:#dfe5e8 !important}
.w3-tab-theme-l5 {color:#000 !important; background-color:#f5f7f8 !important}

html[data-mui-color-scheme='dark'] body.w3-theme-l5 {
  color:#f5f7f8 !important; background-color:#000 !important;
}
html[data-mui-color-scheme='dark'] .w3-white {
  color:var(--app-surface-accent-color) !important; background-color:#1f2933 !important;
}
html[data-mui-color-scheme='dark'] .w3-tab-theme {color:#000 !important; background-color:#f5f7f8 !important}
html[data-mui-color-scheme='dark'] .w3-tab-theme-d5 {color:#000 !important; background-color:#dfe5e8 !important}
html[data-mui-color-scheme='dark'] .w3-tab-theme-d4 {color:#000 !important; background-color:#becbd2 !important}
html[data-mui-color-scheme='dark'] .w3-tab-theme-d3 {color:#000 !important; background-color:#9eb1bb !important}
html[data-mui-color-scheme='dark'] .w3-tab-theme-d2 {color:#fff !important; background-color:#7d97a5 !important}
html[data-mui-color-scheme='dark'] .w3-tab-theme-d1 {color:#fff !important; background-color:#57707d !important}
html[data-mui-color-scheme='dark'] .w3-tab-theme-l1 {color:#fff !important; background-color:#4d636f !important}
html[data-mui-color-scheme='dark'] .w3-tab-theme-l2 {color:#fff !important; background-color:#435761 !important}
html[data-mui-color-scheme='dark'] .w3-tab-theme-l3 {color:#fff !important; background-color:#3a4b53 !important}
html[data-mui-color-scheme='dark'] .w3-tab-theme-l4 {color:#fff !important; background-color:#303e45 !important}
html[data-mui-color-scheme='dark'] .w3-tab-theme-l5 {color:#fff !important; background-color:#607d8b !important}

/* Active tab uses the site's active theme color */
[role="tab"][aria-selected="true"] {
  color:#fff !important; background-color:#a5a47d !important;
}

/* Panel visibility */
[role="tabpanel"] { border: none; }
[hidden]{ display:none; }
/* ==== MUI Slider color overrides (global) ==== */
/* Thumb (select circle) */
.MuiSlider-root .MuiSlider-thumb{
  background-color:#3a4b53;          /* select circle */
  box-shadow: 0 0 0 8px rgba(58,75,83,.16);
}
.MuiSlider-root .MuiSlider-thumb:hover{
  box-shadow: 0 0 0 10px rgba(58,75,83,.22);
}
.MuiSlider-root .MuiSlider-thumb.Mui-focusVisible{
  box-shadow: 0 0 0 12px rgba(58,75,83,.28);
}

/* Track + Rail (bar) */
.MuiSlider-root .MuiSlider-track{
  background-color:#7d97a5;          /* filled bar */
  border: none;
}
.MuiSlider-root .MuiSlider-rail{
  background-color:#7d97a5;          /* unfilled bar */
  opacity:.28;
}
.MuiBox-root .css-jur0e5{
  padding-bottom: 0 !important;
}

.MuiBox-root .css-d7s2ui{
  text-transform: none !important;
}

/* Disabled state */
.MuiSlider-root.Mui-disabled .MuiSlider-thumb{
  background-color:#3a4b53;
  opacity:.4;
}
.MuiSlider-root.Mui-disabled .MuiSlider-track,
.MuiSlider-root.Mui-disabled .MuiSlider-rail{
  background-color:#7d97a5;
  opacity:.2;
}

/* If any slider uses color="primary", keep colors consistent */
.MuiSlider-colorPrimary .MuiSlider-thumb{ background-color:#4d636f; }
.MuiSlider-colorPrimary .MuiSlider-track{ background-color:#7d97a5; }
.MuiSlider-colorPrimary .MuiSlider-rail { background-color:#7d97a5; }

html[data-mui-color-scheme='dark'] .MuiSlider-root .MuiSlider-thumb{ box-shadow: 0 0 0 8px rgba(255,255,255,0.11); }
html[data-mui-color-scheme='dark'] .MuiSlider-root .MuiSlider-thumb:hover{ box-shadow: 0 0 0 10px rgba(255,255,255,0.11); }
html[data-mui-color-scheme='dark'] .MuiSlider-root .MuiSlider-thumb.Mui-focusVisible{ box-shadow: 0 0 0 12px rgba(255,255,255,0.11); }

/* Sticky controls container */
.index-layout {
  --index-sidebar-expanded-width: 300px;
  --index-sidebar-collapsed-width: 60px;
  --index-sidebar-gap: 0px;
  --index-sidebar-width: var(--index-sidebar-expanded-width);
  padding-left: calc(var(--index-sidebar-width) + var(--index-sidebar-gap));
  transition: padding-left 0.3s ease;
}

.index-layout--expanded {
  --index-sidebar-width: var(--index-sidebar-expanded-width);
}

.index-layout--collapsed {
  --index-sidebar-width: var(--index-sidebar-collapsed-width);
  --index-sidebar-gap: 0;
}

.index-layout--mobile {
  --index-sidebar-gap: 0;
  padding-left: 0;
}

.ctrl-ctnr {
  position: fixed;
  top: var(--ctrl-top, 51px);
  left: 0;
  width: var(--index-sidebar-width);
  max-width: var(--index-sidebar-width);
  min-width: var(--index-sidebar-width);
  height: calc(100vh - 60px);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow-y: visible;
  overflow-x: hidden;
  padding: 4px 0;
  margin-left: 0 !important;
  background-color: var(--app-surface-color);
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 2px 0 24px rgba(15, 23, 42, 0.08);
  transition: width 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, top 0.2s ease;
  box-sizing: border-box;
  gap: var(--sidebar-gap, 12px);
}
@supports (scrollbar-color: auto) {
  .ctrl-ctnr {
    scrollbar-width: thin;
    scrollbar-color: #607d8b #e0e0e0;
  }
}

.ctrl-ctnr::-webkit-scrollbar {
  width: 8px;
}
.ctrl-ctnr::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-radius: 8px;
}
.ctrl-ctnr::-webkit-scrollbar-thumb {
  background-color: #607d8b;
  border-radius: 8px;
}
.ctrl-ctnr::-webkit-scrollbar-thumb:hover {
  background-color: #4d636f;
}

.index-sidebar {
  box-sizing: border-box;
  font-size: 10px;
  line-height: 1.25;
  --sidebar-padding-block: 3px;
  --sidebar-padding-inline: 2px;
  --sidebar-padding-inline-collapsed: 4px;
  --sidebar-gap: 0px;
  --sidebar-stack-gap: 4px;
  --sidebar-control-gap: 4px;
}

.index-sidebar * {
  box-sizing: border-box;
}

.index-layout--collapsed .ctrl-ctnr {
  box-shadow: 1px 0 16px rgba(15, 23, 42, 0.06);
}

html[data-mui-color-scheme='dark'] .ctrl-ctnr {
  border-right: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 2px 0 28px rgba(15, 23, 42, 0.32);
}

html[data-mui-color-scheme='dark'] .index-layout--collapsed .ctrl-ctnr {
  box-shadow: 1px 0 20px rgba(15, 23, 42, 0.4);
}

.index-sidebar--expanded #indexControlContainer {
  padding: var(--sidebar-padding-block) var(--sidebar-padding-inline) !important;
}

#indexControlColumn.index-sidebar--collapsed {
  padding-top: var(--sidebar-padding-block);
}

#indexControlColumn.index-sidebar--collapsed #indexControlContainer {
  padding: var(--sidebar-padding-block) var(--sidebar-padding-inline-collapsed) !important;
}

#indexControlContainer {
  display: flex;
  flex-direction: column;
  gap: var(--sidebar-gap);
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  min-height: 0;
}

#indexControlContainer > * {
  min-width: 0;
}

#indexControlActions {
  position: sticky;
  top: calc(var(--sidebar-padding-block) * -1);
  z-index: 2;
  margin-top: calc(var(--sidebar-padding-block) * -1);
  padding-top: var(--sidebar-padding-block);
  background-color: #ffffff;
  padding-bottom: var(--sidebar-gap);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  -webkit-backdrop-filter: inherit;
  backdrop-filter: inherit;
}

html[data-mui-color-scheme='dark'] #indexControlActions {
  background-color: #0f172a;
  border-bottom-color: rgba(100, 116, 139, 0.32);
}

#indexControlColumn .w3-card {
  margin: 0 16px;
  padding: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: visible;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  flex: 1 1 auto;
  height: var(100vh - 120px);
}

#indexControlColumn.index-sidebar--collapsed .w3-card {
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  flex: 0 0 auto;
}

html[data-mui-color-scheme='dark'] #indexControlColumn .w3-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 20px 44px rgba(2, 6, 23, 0.55);
}

html[data-mui-color-scheme='dark'] #indexControlColumn.index-sidebar--collapsed .w3-card {
  background: transparent;
  border: none;
}

.ctrl-ctnr::after {
  content: "";
  display: none;
  height: 10px;
  margin: 0px;
  background: #c4c9ce;
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  transform: translateY(-30px);
}


.ctrl-ctnr:active::after {
  background: #aeb4b9;
}

.index-layout--mobile .ctrl-ctnr {
  top: var(--ctrl-top, 51px);
  height: calc(100vh - 60px);
  transform: translateX(-100%);
  pointer-events: none;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
  border-right: none;
  width: min(var(--index-sidebar-width), 92vw);
  max-width: min(var(--index-sidebar-width), 92vw);
  min-width: min(var(--index-sidebar-width), 92vw);
}

.index-layout--mobile.index-layout--mobile-open .ctrl-ctnr {
  transform: translateX(0);
  pointer-events: auto;
}

@media (max-width: 640px) {
  .ctrl-ctnr {
    padding-bottom: 32px;
  }
.ctrl-ctnr::after {
    width: 88px;
    height: 16px;
    margin: 18px auto 12px;
  }
}

#indexControlColumn {
  margin-left: 0 !important;
  z-index: 140;
}

@media (max-width: 900px) {
  #indexControlColumn {
    transform: translateX(-100%);
    pointer-events: none;
    opacity: 0;
  }

  #indexControlColumn.index-sidebar--mobile-open {
    transform: translateX(0);
    pointer-events: auto;
    opacity: 1;
  }
}

.index-control-actions {
  margin-bottom: 0;
}

.index-control-actions__button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
}

.index-control-actions__button .tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 16px;
}

.index-control-actions__button .tab-icon .fa {
  font-size: inherit;
}

.index-layout--collapsed .index-control-actions__button {
  justify-content: center;
}

.index-layout--collapsed #indexControlContainer > :not(#indexOptionsWrapper):not(#indexControlActions) {
  display: none;
}

.index-sidebar--collapsed .tab-label,
.index-sidebar--collapsed .index-sidebar__tab .tab-arrow {
  display: none;
}

.index-layout--collapsed .tab-item button {
  justify-content: center;
  padding: 10px;
}

.index-layout--collapsed .tab-list {
  gap: var(--sidebar-control-gap, 8px);
}

.index-canvas-column {
  float: none !important;
  width: 100% !important;
}

.index-data-section {
  width: 100%;
  margin-left: 0;
}

.index-sidebar-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 100;
}

.index-sidebar-backdrop.index-sidebar-backdrop--visible {
  opacity: 1;
  pointer-events: auto;
}

body.index-sidebar-no-scroll {
  overflow: hidden;
}

.index-layout--mobile #indexLayoutRow {
  display: block;
}

.index-layout--mobile .index-data-section {
  padding-left: 0;
}

.tab-container {
  position: relative;
  top: auto;
  z-index: auto;
  width: 100%;
}


html[data-mui-color-scheme='dark'] .ctrl-ctnr::after {
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.11);
}

.tm-position-relative { position: relative; }
.tm-flex-align-center { align-items: center; }
.tm-fa-6x { font-size: 6em; }
.tm-margin-b-0 { margin-bottom: 0; }
.tm-margin-b-20 { margin-bottom: 20px; }
.tm-p-4 { padding: 2rem!important; }
.tm-color-white { color: white; }
.tm-color-primary {	color: var(--blue); }
.tm-bg-primary { background: var(--blue); }
.tm-bg-primary-2 { background: var(--light-blue); }
.tm-bg-gray { background: var(--gray); }
.tm-bg-white { background: white; }
.tm-bg-dark-blue { background: var(--dark-blue); }

.tm-bg-white-shadow {
	-webkit-box-shadow: 0px 0px 7px 0px rgba(214,214,214,1);
	-moz-box-shadow: 0px 0px 7px 0px rgba(214,214,214,1);
	box-shadow: 0px 0px 7px 0px rgba(214,214,214,1);
}

.tm-section-pad { padding: 30px 50px; }
.tm-section-pad-2 { padding: 30px 40px; }
.tm-article-pad { padding: 8px; }
.tm-sidebar-pad { padding: 15px 20px; }
.tm-sidebar-pad-2 { padding: 21px 20px; }
.tm-pad { padding: 20px; }

a.tm-color-primary:hover,
a.tm-color-primary:active {
	color: var(--dark-blue);
}

.tm-font-light { font-weight: 300; }
.tm-font-normal { font-weight: 400; }
.tm-font-semibold { font-weight: 600; }

p { 
	color: var(--gray); 
	line-height: 1.9;
}
p2 { 
	line-height: 1;
}

.navbar { 
	width: 100%; 
	padding-top: 0;
	padding-bottom: 0px;
}
.navbar-brand {
	font-size: 1.8rem;
	font-weight: 700;
}
.navbar a { color: white; }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(238, 80, 87, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

.navbar-toggler { 
	border-color: white; 
	cursor: pointer;
}

.nav-item {
	background: transparent;
	border-left: 1px solid var(--gray);
	cursor: pointer;
	font-size: 0.8rem;
	font-weight: 300;
    text-transform: uppercase;
    padding: 0px;
    transition: all 0.5s ease;
}

.nav-item:last-child { border-right: 1px solid var(--gray); }

.nav-link.active,
.nav-link:hover {
	color: white;
	background: var(--dark-blue);	
}

.tm-top-bar .navbar-expand-lg .navbar-nav .nav-link { padding: 50px 35px; }

.tm-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0;
    z-index: 10000;
    transition: all 0.2s ease-in-out;
    height: 119px;
    background:  var(--light-blue);
}

.tm-top-bar.active {
	height: 79px;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
}

.tm-top-bar.active .navbar-expand-lg .navbar-nav .nav-link { padding: 30px 35px; }
.tm-top-bar-bg { height: 119px; }
.tm-section { min-height: 515px; }

.tm-section-pad {
	padding-top: 60px;
	padding-bottom: 80px;
}

#tm-section-1 {	
	background-color: white;	
	height: 100vh;
}

#tm-section-6 {
  background-position: top center;
  padding-top: 120px;
  padding-bottom: 60px;
}

.tm-bg-img {
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
            justify-content: center
}

.qs-datepicker {
	font-family:  'Open Sans', Helvetica, Arial, sans-serif;
	font-size: 14px;
}
/* price text under each day */
.low-price{
  display:block;
  margin: 0;
  padding: 0 0.125rem;
  font-size:0.65em;
  line-height:1;
  color:var(--green);      /* tweak as you like */
  white-space:nowrap;
  transform: translateY(-100%);
  position: absolute;
  justify-self: center;
  cursor: pointer;
  font-weight: 700;
}
.hoverTip
{
  display:none;
  position:absolute;
  left:50%; top:100%;
  transform:translateX(-50%);
  background: var(--white);
  border:1px solid var(--gray-light);
  padding:4px 6px;
  font: 8px "Segoe UI",sans-serif;
  z-index:99999;
  white-space:nowrap;
  color: var(--gray-dark);
  box-shadow:0 0 4px rgba(0,0,0,.2);
  border-radius:6px;
  text-align: left;
  font-size: 10px;
}

.hoverTip p2
{
	color: black;
	font-size: 13px;
	line-height: 1.2;
}
.hoverTip span
{
	color: var(--green);
	font-size: 13px;
    font-weight: 700;
}
.low-price:hover + .hoverTip
{ 
	display:block; 
}
.ui-datepicker td{ position:relative; } 
table {
	border-collapse: collapse;
	border-spacing: 0;
	flex-direction: column;
}


/* live slider readout */
.slideVal { 
  width: 100px;
  padding: 6px 8px;
  color: #fff !important;
  background-color: #7d97a5 !important;
  float: right;
  height: 36px;
  border-width: 2px;
  border-style: inset;
  border-color: rgb(118, 118, 118);
}

.hidden { display: none !important; }
.show   { display: inline-block !important; }
/* If live box is hidden ? show the input. If box is shown ? hide the input. */
.slideVal.hidden + .ui-input { display: inline-block !important; }
.slideVal.show   + .ui-input { display: none !important; }
#slideW {
    width: 100px;
    padding: 6px 8px;
    background: #0e1220;
    color: #fff;
}

/* fixed width for Handle Height live bubble */
#slideHandleHeight { width: 100px; }


.ui-datepicker-calendar thead th {
	padding: 0;
	text-align: center;
	font-size: 0.75rem;
	font-weight: 400;
	color: var(--gray);
}
.ui-datepicker-calendar tbody td {
	width: 2.5rem;
	height: 1.25rem;
	text-align: center;
	padding: 0;
}
.ui-datepicker-calendar tbody td a {
	display: block;
	border-radius: 0.25rem;
	line-height: 2rem;
	transition: 0.3s all;
	color: var(--gray);
	font-size: 14px;
	text-decoration: none;
}
.ui-datepicker-calendar tbody td a:hover {	
	background-color: var(--light);
}
.ui-datepicker-calendar tbody td a.ui-state-active {
	background-color: var(--light-blue);
	color: white;
}
.ui-datepicker-header a.ui-corner-all {
	cursor: pointer;
	position: absolute;
	top: 0;
	width: 2rem;
	height: 2rem;
	margin: 0.5rem;
	border-radius: 0.25rem;
	transition: 0.3s all;
}
.ui-datepicker-header a.ui-corner-all:hover {
	background-color: #ECEFF1;
}
.ui-datepicker-header a.ui-datepicker-prev {	
	left: 0;	
	background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMyIgaGVpZ2h0PSIxMyIgdmlld0JveD0iMCAwIDEzIDEzIj48cGF0aCBmaWxsPSIjNDI0NzcwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03LjI4OCA2LjI5NkwzLjIwMiAyLjIxYS43MS43MSAwIDAgMSAuMDA3LS45OTljLjI4LS4yOC43MjUtLjI4Ljk5OS0uMDA3TDguODAzIDUuOGEuNjk1LjY5NSAwIDAgMSAuMjAyLjQ5Ni42OTUuNjk1IDAgMCAxLS4yMDIuNDk3bC00LjU5NSA0LjU5NWEuNzA0LjcwNCAwIDAgMS0xLS4wMDcuNzEuNzEgMCAwIDEtLjAwNi0uOTk5bDQuMDg2LTQuMDg2eiIvPjwvc3ZnPg==");
	background-repeat: no-repeat;
	background-size: 10px;
	background-position: 50%;
	transform: rotate(180deg);
}
.ui-datepicker-header a.ui-datepicker-next {
	right: 0;
	background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMyIgaGVpZ2h0PSIxMyIgdmlld0JveD0iMCAwIDEzIDEzIj48cGF0aCBmaWxsPSIjNDI0NzcwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03LjI4OCA2LjI5NkwzLjIwMiAyLjIxYS43MS43MSAwIDAgMSAuMDA3LS45OTljLjI4LS4yOC43MjUtLjI4Ljk5OS0uMDA3TDguODAzIDUuOGEuNjk1LjY5NSAwIDAgMSAuMjAyLjQ5Ni42OTUuNjk1IDAgMCAxLS4yMDIuNDk3bC00LjU5NSA0LjU5NWEuNzA0LjcwNCAwIDAgMS0xLS4wMDcuNzEuNzEgMCAwIDEtLjAwNi0uOTk5bDQuMDg2LTQuMDg2eiIvPjwvc3ZnPg==');
	background-repeat: no-repeat;
	background-size: 10px;
	background-position: 50%;
}
.ui-datepicker-header a>span {
	display: none;
}
.ui-datepicker-title {
	text-align: center;
	line-height: 2rem;
	margin-bottom: 0;
	font-size: 0.875rem;
	font-weight: 500;
	padding-bottom: 0;
}
.ui-datepicker-week-col {
	color: #78909C;
	font-weight: 400;
	font-size: 0.75rem;
}

.form-control {
	border-radius: 32px;
	padding: 0.6rem 0.75rem;
  	cursor: pointer;
    text-align: center;
}

.form-control:focus {
	border-color: var(--light-blue);
	box-shadow: 0 0 0 0.2rem rgba(238,80,87,.25);
  cursor: pointer;
}

.btn-primary {
	background-color: var(--light-blue);
	border-color: var(--light-blue);
	border-radius: 32px;
	cursor: pointer;
	font-size: 0.7rem;
	font-weight: 600;
	padding: 13px 30px;
	text-transform: uppercase;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
	background-color: var(--dark-blue);
	border-color: var(--dark-blue);
}

.tm-search-form .tm-form-element { padding: 0 5px; }
.tm-form-element { position: relative; }
.tm-form-element:last-child { margin-right: 0; }

.tm-form-element-icon {
        color: var(--light-blue);
}

.search-icon {
        position: absolute;
        top: 10px;
        left: 15px;
        width: 26px;
        height: 26px;
        display: flex;
        align-items: center;
        justify-content: center;
}
.tm-white-element-icon {
	color: white;
	position: absolute;
	top: 10px;
	left: 15px;
}
.tm-menu-element-icon {
	color: var(--light-blue);
	transform: scale(75%);
	border: #dc3545;
	outline: #dc3545;
	outline-width: 4px;
}

.tm-menu-white-element-icon {
	color: white;
	transform: scale(75%);
	border: white;
	outline: white;
	outline-width: 4px;
}

.tm-form-element-icon-small {
	top: 16px;
	left: 18px;
  cursor: pointer;
}

select.tm-select.form-control:not([size]):not([multiple]) { height: 100%; 
  cursor: pointer;}

select:not([multiple]) {
    -webkit-appearance: none;
    -moz-appearance: none;
	appearance: none;
    background-position: right 50%;
    background-repeat: no-repeat;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAMCAYAAABSgIzaAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NDZFNDEwNjlGNzFEMTFFMkJEQ0VDRTM1N0RCMzMyMkIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NDZFNDEwNkFGNzFEMTFFMkJEQ0VDRTM1N0RCMzMyMkIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo0NkU0MTA2N0Y3MUQxMUUyQkRDRUNFMzU3REIzMzIyQiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo0NkU0MTA2OEY3MUQxMUUyQkRDRUNFMzU3REIzMzIyQiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PuGsgwQAAAA5SURBVHjaYvz//z8DOYCJgUxAf42MQIzTk0D/M+KzkRGPoQSdykiKJrBGpOhgJFYTWNEIiEeAAAMAzNENEOH+do8AAAAASUVORK5CYII=);
    padding-top: 0.5em;
    padding-bottom: 0.125em;
    padding-right: 1.5em
}

/* https://stackoverflow.com/questions/20163079/remove-select-arrow-on-ie */
select.tm-select::-ms-expand { display: none; }

.tm-select {
    border-radius: 32px;
    color: var(--gray);
}

.tm-search-form .form-control {
	font-size: 0.8rem;	
	padding: 0.75rem 0.75rem 0.75rem 45px;
  cursor: pointer;
}

.tm-search-form .tm-form-element { width: 33.3333%; }
.tm-search-form .tm-form-element-2 { width: 25%; }
.tm-search-form .tm-form-element-2_5 { width: 25%; }
.tm-search-form-row { width: 900px; }
.tm-btn-search { width: 100%; }

/* https://css-tricks.com/creating-non-rectangular-headers/ */
.tm-section-down-arrow {
  position: absolute;
  top: -1px;
  width: 100%;
  height: 100px;
}

.tm-pt-5 { padding-top: 150px; }
.tm-pb-4 { padding-bottom: 100px; }

.tm-section-2 {
	background: var(--light-blue);
	padding-top: 70px;
	position: relative;
}

.tm-section-title {
	color: white;
	font-size: 3rem;
}

.tm-section-title-2 {
	font-size: 3.2rem;
    font-weight: 600;
}

.tm-section-subtitle {
	font-size: 1rem;
	font-weight: 300;
	margin-bottom: 25px;
}

.tm-section-subtitle-2 { font-size: 1.8rem; }

.tm-btn-white-bordered {
	display: inline-flex;
	padding: 10px 25px;
	border: 2px solid white;
	background: transparent;
	text-transform: uppercase;
}

.tm-btn-white-bordered:hover,
.tm-btn-white-bordered:focus {
	color: var(--light-blue);
	background: white;	
}

.slick-dots { bottom: -35px; }

.tm-article {
	padding: 15px;
	transition: all 0.3s ease;
}

.tm-article:hover {
	-webkit-box-shadow: 0px 0px 7px 0px rgba(214,214,214,1);
	-moz-box-shadow: 0px 0px 7px 0px rgba(214,214,214,1);
	box-shadow: 0px 0px 7px 0px rgba(214,214,214,1);
	transform: scale(1.01);
}

.tm-article-title-1 {
	font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.tm-article-title-2 { 
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 1px;
}

.tm-article-title-3 { font-size: 1.1rem; }

.tm-btn-primary {
	display: block;
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.75rem;
}

.tm-sidebar-title {
	font-size: 1.3rem;
	margin-bottom: 5px;
}

.tm-sidebar-item-title {
	font-size: 1.2rem;
	letter-spacing: 1px;
	margin-bottom: 0;	
}

.tm-recommended-item .tm-bg-gray { transition: all 0.3s ease; }
.tm-recommended-item:hover .tm-bg-gray { background: var(--gray-light); }

.tm-recommended-item h4 { 
	color: black; 
	transition: all 0.3s ease;
}

.tm-recommended-item:hover h4 { color: var(--light-blue); }
.tm-media { align-items: stretch; }

.tm-media,
.tm-media-1 {
	margin-bottom: 15px;
}

.tm-media:last-child,
.tm-media-1:last-child {
	margin-bottom: 0;
}

.tm-media-body,
.tm-media-body-1 {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-webkit-align-items: center;
	-ms-flex-align: center;
	        align-items: center;
	padding-left: 25px;
}

.tm-media-body-v-center {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	flex-direction: column;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
            justify-content: center;
    		align-items: flex-start;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 515px;
    z-index: 1;
    background-color: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-bg-video { 
	position: relative; 
	padding-top: 515px;
}

video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
    transition: 1s opacity;
}

.tm-btn-pause { display:none; }

.tm-btn-play,
.tm-btn-pause {
	color: var(--gray);
	cursor: pointer;
}

.tm-media-container { max-width: 772px; }

#google-map {
    height: 479px;
    width: 100%;    
}

.contact-form .form-control {
	background-color: white;
	border: none;
	font-size: 0.8rem;
	font-weight: 300;
  cursor: pointer;
}

.clearfix:after {
   content: " "; /* Older browser do not support empty content */
   visibility: hidden;
   display: block;
   height: 0;
   clear: both;
}

@media screen and (max-width: 991px) {
	.tm-top-bar.active, .tm-top-bar, .tm-top-bar-bg { height: 65px; }
	.tm-top-bar.active .navbar-expand-lg .navbar-nav .nav-link,
	.tm-top-bar .navbar-expand-lg .navbar-nav .nav-link {
	    padding: 12px 15px;
	}
	#mainNav {
		width: 180px;
	    position: absolute;
	    top: 51px;
	    right: 15px;

		-webkit-box-shadow: 0px 0px 7px 0px rgba(214,214,214,1);
		-moz-box-shadow: 0px 0px 7px 0px rgba(214,214,214,1);
		box-shadow: 0px 0px 7px 0px rgba(214,214,214,1);
	}

	.tm-search-form .tm-form-element { 
		width: 33%; 
		max-width: 215px;
	}

	.tm-search-form-row { width: 98%; max-width: 900px; }
	.tm-recommended-container { margin-top: 30px; }

	video {
		top: 25%;
		left: 0;
	    min-width: 50%;
	    min-height: 50%;
	    width: auto;
	    height: auto;	 
	}
}

@media screen and (max-width: 767px) {
	.tm-search-form .tm-form-element {
		width: 50%;
		max-width: 235px;
	}

	#tm-section-1 {
		padding-left: 15px;
		padding-right: 15px;
	}

	.tm-media-container,
	.tm-media-title-container {
	    max-width: 320px;
	    margin-right: auto;
	}

	.tm-media-title-container {
		margin-left: auto;
		margin-bottom: 20px;
	}

	.tm-media-1 {
		flex-direction: column;
		max-width: 280px;
		margin-bottom: 30px;
		margin-left: auto;
		margin-right: auto;
	}

	.tm-media-body-1 {
		padding-left: 0;
		margin-left: 0;
		margin-top: 20px;
	}

	.tm-bg-video { padding-top: 255px; }
	.overlay { height: 255px; }
}

@media screen and (max-width: 767px) and (min-width: 524px) {
	.tm-search-form .tm-form-element-100 { 
		width: 100%; 
		max-width: none;
	}

	.tm-search-form .tm-form-element-50 { width: 50%; }
}

@media screen and (min-width: 767px) {
	.tm-search-form .tm-form-element-2_5 { 
		width: 66%; 
		max-width: none;}
	}
	

@media screen and (max-width: 524px) {
	.tm-section-pad-2 { padding: 20px 25px; }

	.tm-search-form .tm-form-element {
		width: 100%;
		max-width: 100%;
	}

	.tm-fx-col-xs { flex-direction: column; }
	.tm-section-pad { padding: 25px 15px; }
}

/* IE Fixes */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
     /* IE10+ CSS styles go here */
     .ie-h-align-center-fix {
     	margin-left: 0;
     	margin-right: 0;
     }

     .ie-10-ml-auto { float: right; }
     .tm-media-body, .tm-media-body > * { width: 100%; }
     .tm-media-body-1, .tm-media-body-1 > * { width: 100%; }
     .tm-media-1 > * { flex: 1 1 auto; }
}

@media all and (max-width: 1199px) and (-ms-high-contrast: none), (-ms-high-contrast: active) {
	.ie-container-width-fix { width: 960px; }
}

@media all and (max-width: 600px) {
	.ie-container-width-fix-2 { width: 100%; }
}

@media all and (max-width: 560px)  and (-ms-high-contrast: none), (-ms-high-contrast: active) {
	.ie-container-width-fix {
		max-width: 530px;
		width: 100%;
	}	
}

/* ----- sweep-range toggle ----- */
.toggleContainer
{
	position: relative;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	height: 40px;
	margin: auto;
	text-align: center;
	pointer-events: none;
}

.toggleContainer .switch
{ 
	pointer-events: auto;

}   /* allow clicks */

.switch input
{ 
	position: absolute;
	opacity: 0
	
}

.switch {
  position: relative;
  height: 32px;
  width: 300px;
  margin: 10px 0;
  background: var(--gray-e-light);
  border-radius: 32px;
}
.switch-label {
  font-weight: 700;
  position: relative;
  z-index: 2;
  float: right;
  width: 100px;            /* 3 equal segments */
  line-height: 32px;
  font-size: 12px;
  color: var(--gray);
  text-align: center;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.switch-input { display: none; }
.switch-input:checked + .switch-label { color: white; transition: 0.15s ease-out; }

/* selector positions */
.switch-input:checked + .switch-label.switch-label-y ~ .switch-selector { transform: translateX(0%);   background-color: var(--light-blue); }
.switch-input:checked + .switch-label.switch-label-i ~ .switch-selector { transform: translateX(100%); background-color: var(--light-blue); }
.switch-input:checked + .switch-label.switch-label-n ~ .switch-selector { transform: translateX(200%); background-color: var(--light-blue); }

.switch-selector {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  display: block;
  width: 100px;            /* 1/3 of 300px */
  height: 32px;
  border-radius: 32px;
  background-color: var(--light-blue);
  transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.switch div
{ 
	height: 1em;
	width: 1em;
	border-radius: 1em;
	background: var(--white);
    box-shadow: 0 0.1em 0.3em rgba(0,0,0,.3);
	transition: all .3s
}

.switch input:checked + div
{
        transform: translate3d(100%,0,0)
}

#rangeModeLabel
{
        margin-left: .5rem;
        font-weight: 600;
        font-size: .9rem;
        transform: translateY(15px);
}

/* --- Styles moved from pages/index.tsx --- */
.three-frame-html,
.three-frame-body {
  margin: 0;
  padding: 0;
  height: 50%;
  background: #0b1020;
}

#three-root {
  position: fixed;
  inset: 0;
  overflow: visible;
}

.home-main {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  background: linear-gradient(180deg, #0b1020, #0e1530);
  color: white;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.home-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

.header-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.frame-section {
  padding: 0;
  display: grid;
  grid-template-rows: 1fr;
  overflow: hidden;
}

.three-iframe {
  width: 50%;
  height: 50%;
  border: 0;
  display: block;
}
.profile-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
/* ===== 4-view grid for THREE canvases (non-breaking overrides) ===== */
.views-grid {
    display: flex;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(240px, 42vh);
  gap: 12px;
  padding-left: 400px;
  padding-right: 300px;
}

/* keep your existing .canvas-card styles; just ensure it stacks a label + canvas */
.canvas-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.data-table-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px 0;
  width: 100%;
  text-align: left;
  font-size: 10px;
  flex-wrap: wrap;
}

.data-table-heading-row .data-table-heading {
  margin: 0;
}

.data-table-heading-row .w3-button {
  margin-left: auto;
}

/* override the global absolute rules ONLY inside the grid */
.three-canvas {
  position: relative;   /* was absolute globally */
  inset: auto;          /* cancel absolute insets */
  width: 100%;
  height: 100%;
  min-height: 240px;
  background: #0b1020;
  overflow: hidden;
}


/* small screens: stack views */
@media (max-width: 1280px) {
  .views-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(220px, 36vh);
  }
}


/* Styles moved from pages/index.tsx */
.three-wrap {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: visible;
  display: grid;
  grid-template-columns: 1fr auto;
}

.three-canvas3d {
  height: 0;
  display: none;
}	

.three-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 240px;
  background: #0b1020;
}	

.canvas-row {
  display: flex;
  gap: 12px;
}
.canvas-card {
  font-weight: 600;
  margin-bottom: 6px;
}
.right-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ui-panel-left {
  /* float: left; */
  position: fixed;
  top: 16px;
  left: 16px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-family: system-ui, sans-serif;
  font-size: 14px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  overflow: auto;
  z-index: 1000;
  width: 350px;
}
.opts-wrap {
  position: sticky;
  top: 16px;
  width: 100%;
}

.opts {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  width: 100%;
}

#indexOptionsBody > * {
  flex: 1 1 100%;
  width: 100%;
  min-width: 100%;
}
.ui-panel-right {
  float: right;
  position: absolute;
  top: 5px;
  right: 5px;
  padding: 2px;
  width: 170px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-family: system-ui, sans-serif;
  overflow: visible;
  z-index: 1000;
}

.ui-col-save-project {
  display: flex;
  flex-direction: column;
  justify-content: right;
  max-width: 186px;
}

.ui-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  max-width: 186.350px;
}

.ui-row span:not(.door-color-label):not(.project-color-label) {
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
  font-size: 10px;
}

.finishes-tab .ui-row span,
.finishes-tab .ui-row p,
.finishes-tab .ui-row label,
.finishes-tab .ui-row h1,
.finishes-tab .ui-row h2,
.finishes-tab .ui-row h3,
.finishes-tab .ui-row h4,
.finishes-tab .ui-row h5,
.finishes-tab .ui-row h6 {
  text-align: left;
  font-size: 10px;
}

.ui-label {
  color: var(--gray);
  line-height: 1.5;
  display: inline-flex;
  margin-right: 8px;
  vertical-align: top;
  padding: 6px 0;
}

.ui-input {
  width: 100px;
  padding: 6px 8px;
  color: #fff !important;
  background-color: #7d97a5 !important;
  float: right;
  height: 36px;
  border-width: 2px;
  border-style: inset;
  border-color: rgb(118, 118, 118);
}

select.ui-input {
  display: inline-flex;
  vertical-align: middle;
}

.profile-type-row {
  text-overflow: ellipsis;
}

.profile-type-row .ui-label {
  margin-right: 0;
}

.profile-type-row .profile-type-select {
  max-width: 120px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 32px;
}


.ui-hint {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.8;
  color: #fff;
}

.ui-sep {
  margin: 12px 0;
  opacity: 0.5;
  color: #fff;
}

.ui-sep-lg {
  margin: 16px 0;
  color: #fff;
}

.ui-heading {
  margin: 0 0 8px 0;
  color: #fff;
}

.table-wrap {
  max-width: 25%;
}

.table {
  border-collapse: collapse;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 9px !important;
  color: #414141;
  background: #fafafa;
  float: right;
  width: 20%;
}
td {
  max-width: 180px;
}
.table th,
.table td {
  border: 1px solid #ddd;
  padding: 2px !important;
  white-space: nowrap;
  color: #414141;
  background-color: #d5d4cd;
  max-width: 180px;
}

.table thead th {
  position: sticky;
  top: 0;  
  color: #414141;
  background: #fafafa;
  z-index: 1;
  font-weight: 300;
  color: var(--gray-dark);
}

.table thead tr {
  height: 180px;
  color: #414141;
  background: #fafafa;
}

.table thead th.vertical {
  white-space: nowrap;
  padding: 8px 6px;
  text-align: left;
  font-size: 10px;
  vertical-align: bottom;
  min-width: 28px;
  color: #414141;
  background: #fafafa;
}

.table tbody td {
  padding: 2px 6px;
  color: #414141;
  background: #fafafa;
}
#three-profile3d {
  width: 100%;
  height: 400px;   /* or match the others */
  background: #0b1020; /* same BG as threejsCanvas */
}

/* ===== Profile 2D: container + canvas ===================================== */ 

/* Ensure the profile container behaves like a card-sized canvas,
   not a full-screen overlay like .three-canvas normally does. */
#profile-2d.three-canvas {
  position: relative;     /* cancel global absolute rules */
  inset: auto;            /* reset top/right/bottom/left */
  width: 100%;        /* fill its parent */
  height: 280px;          /* default height; can be overridden inline */
  min-height: 220px;
  background: #0b1020;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
  z-index: 10000;
  display: none;
}
#profile-jamb.three-canvas {
  position: relative;     /* cancel global absolute rules */
  inset: auto;            /* reset top/right/bottom/left */
  width: 100%; 
  height: 280px;          /* default height; can be overridden inline */
  min-height: 220px;
  background: #0b1020;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
  z-index: 10000;
  display: none;
}

/* The actual 2D drawing canvas fills its parent */
#profile-2d .twoD-canvas {
  position: absolute;
  inset: 0;
  width: 100%; 
  height: 100%;  
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: optimizeSpeed;         /* hint: favor speed over smoothing */
  -ms-interpolation-mode: nearest-neighbor;
  z-index: 10000;
}
/* The actual 2D drawing canvas fills its parent */
#profile-jamb .twoD-canvas {
  position: absolute;
  inset: 0;
  width: 100%; 
  height: 100%;  
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: optimizeSpeed;         /* hint: favor speed over smoothing */
  -ms-interpolation-mode: nearest-neighbor;
  z-index: 10001;
}

/* Optional: a subtle title style you can use above the card */
.canvas-title {
  font-weight: 600;
  color: #000000;
  opacity: 0.85;
  margin-bottom: 6px;
}

/* Optional: unify �card� spacing in sidebars */
.canvas-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ===== Right sidebar panel (if you want a class instead of inline styles) == */
.ui-panel {
  padding: 16px;
  color: #fff;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  overflow: auto;
}

/* Inputs already have .ui-input/.ui-row styles in your sheet.
   Add small focus + hover tweaks for better affordance. */
.ui-input:hover {
  border-color: none;
}
.ui-input:focus {
  outline: none;
  border-color: none;
  box-shadow: none;
}

/* ===== Responsive tweak: allow shorter card on phones ====================== */
@media (max-width: 600px) {
  #profile-2d.three-canvas {
    height: 220px;
    min-height: 180px;
  }
}

/* === Units toolbar === */
.units-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 8px 12px;
  margin-left: 400px;
  margin-right: 300px;
}
.units-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.units-title {
  font-weight: 600;
  color: var(--gray-dark);
}

/* === Toggle base (adapted from index.html snippet) === */
.toggle { display:block; -webkit-user-select:none; user-select:none; }
.toggle--checkbox { display:none; }
.toggle--btn {
  display:block; width:120px; height:44px; position:relative; color:#fff;
  background: linear-gradient(90deg,#a4bf4d 0%,#a4bf4d 50%,#ca5046 50%,#ca5046 200%);
  background-position:-80px 0; background-size:200% 100%;
  box-shadow: inset 0 0px 22px -8px #111; transition: all 250ms ease-in;
}
.toggle--btn, .toggle--btn:before { border-radius:4px; }
.toggle--btn:before {
  content:""; position:absolute; top:50%; left:0; transform:translateY(-50%);
  width:52px; height:44px; border:2px solid #202027; background:#2b2e3a; text-indent:-100%;
}
.toggle--feature {
  position:relative; display:block; overflow:hidden; height:44px; text-shadow:0 1px 2px #666;
}
.toggle--feature:before, .toggle--feature:after {
  position:absolute; top:50%; transform:translateY(-50%); color:#fff; font-weight:600;
}
.toggle--feature:before { content: attr(data-label-on); left:-60%; }
.toggle--feature:after  { content: attr(data-label-off); right:16%; }

/* checked state */
.toggle--checkbox:checked + .toggle--btn { background-position:0 0; }
.toggle--checkbox:checked + .toggle--btn:before { left: calc(100% - 52px); }
.toggle--checkbox:checked + .toggle--btn .toggle--feature:before { left:20%; }
.toggle--checkbox:checked + .toggle--btn .toggle--feature:after  { right:-60%; }


/* react-slider baseline */
.rs{ position:relative; height:24px; display:flex; align-items:center; }
.rs .rs-track{ top:50%; height:4px; transform:translateY(-50%); background:#ddd; border-radius:2px; }
.rs .rs-track.rs-track-0{ background:#bbb; }
.rs .rs-thumb{
  width:16px; height:16px; border-radius:50%;
  background:#222; cursor:grab; outline:none; top:50%; transform:translateY(-50%);
}
.rs .rs-thumb:active{ cursor: grabbing; }
/* ensure inputs don�t hand events to the canvas */
.rs, .rs *{ pointer-events:auto; touch-action:none; -webkit-user-select:none; user-select:none; }

/* Radix slider */
.rxs-wrap{ display:flex; align-items:center; gap:8px; }
.rxs{ position:relative; display:flex; align-items:center; width:100%; height:16px; }
.rxs-track{ position:relative; flex:1; height:4px; background:#e5e7eb; border-radius:999px; }
.rxs-range{ position:absolute; height:100%; background:#2563eb; border-radius:999px; }
.rxs-thumb{
  width:16px; height:16px; border-radius:50%;
  background:#fff; border:3px solid #d81d1d; box-shadow:0 1px 3px rgba(0,0,0,.25);
  cursor:pointer;
}

/* show/hide helpers for live slider readout */
.hidden { display: none !important; }
.show   { display: inline-block !important; }

.page-wrap {
  display: flex;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.units-ui {
  flex: 1;
  margin-right: 20px;
}

.tab-trigger {
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  border: none;
  background: none;
  color: inherit;
  padding: 0;
}

.index-sidebar__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  border-radius: 16px;
  padding: 5px 8px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: left;
  font-size: 10px;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.04);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.1);
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.index-sidebar__tab:hover {
  background: rgba(15, 23, 42, 0.08);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.16);
  transform: translateY(-1px);
}

.index-sidebar__tab[aria-expanded='true'] {
  background: rgba(37, 99, 235, 0.12);
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.45);
}

.index-sidebar__tab:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.index-sidebar__tab .tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.14);
  color: inherit;
  font-size: 16px;
  flex-shrink: 0;
}

.index-sidebar__tab .tab-label {
  flex: 1 1 auto;
  padding-right: 8px;
  min-width: 0;
}

.index-sidebar__tab .tab-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  color: inherit;
}

.index-sidebar__tab[aria-expanded='true'] .tab-arrow {
  transform: rotate(180deg);
}

.index-layout--collapsed .index-sidebar__tab {
  justify-content: center;
  padding: 10px;
  border-radius: 14px;
}

.index-layout--collapsed .index-sidebar__tab:hover {
  transform: none;
}

.index-layout--collapsed .index-sidebar__tab .tab-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.18);
}

html[data-mui-color-scheme='dark'] .index-sidebar__tab {
  background: rgba(148, 163, 184, 0.08);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25);
}

html[data-mui-color-scheme='dark'] .index-sidebar__tab:hover {
  background: rgba(148, 163, 184, 0.16);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.35);
}

html[data-mui-color-scheme='dark'] .index-sidebar__tab[aria-expanded='true'] {
  background: rgba(56, 189, 248, 0.16);
  box-shadow: inset 0 0 0 2px rgba(56, 189, 248, 0.55);
}

html[data-mui-color-scheme='dark'] .index-sidebar__tab .tab-icon {
  background: rgba(148, 163, 184, 0.25);
}

.indexControlsPanel {
  width: 100%;
}

.tab-list {
  display: flex;
  flex-direction: column;
  gap: var(--sidebar-gap, 12px);
  width: 100%;
  min-width: 100%;
  align-items: stretch;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
}

.tab-item + .tab-item {
  margin-top: 4px;
}

.tab-list [role='tab'] {
  cursor: pointer;
}

.tab-panel {
  margin: 0px;
  padding: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

html[data-mui-color-scheme='dark'] .tab-panel {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.tab-panel:first-of-type {
  border-top: none;
  padding-top: 0;
}

.tab-panel--transitioning {
  pointer-events: none;
  will-change: height, padding-top, padding-bottom, opacity;
  transition:
    height var(--tab-panel-transition-duration, 0.48s) var(--tab-panel-transition-timing, cubic-bezier(0.33, 1, 0.68, 1)),
    padding-top var(--tab-panel-transition-duration, 0.48s) var(--tab-panel-transition-timing, cubic-bezier(0.33, 1, 0.68, 1)),
    padding-bottom var(--tab-panel-transition-duration, 0.48s) var(--tab-panel-transition-timing, cubic-bezier(0.33, 1, 0.68, 1)),
    opacity var(--tab-panel-transition-duration, 0.48s) var(--tab-panel-transition-timing, cubic-bezier(0.33, 1, 0.68, 1));
}

.tab-panel--open {
  pointer-events: auto;
  border-radius: var(--mui-shape-borderRadius);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: var(--sidebar-gap, 12px);
  background-color: rgba(148, 163, 184, 0.12);
  /* state marker for JS-driven tab panel animations; keep pointer events enabled for form controls */
}

/* Auto-hide navbar behavior */

.w3-top,
.tm-top-bar,
.navbar {
  -webkit-transform: translate3d(0, var(--nav-shift, -60px), 0);
  transform: translate3d(0, var(--nav-shift, -60px), 0);
  transition: transform .2s ease, -webkit-transform .2s ease, background .3s ease, color .3s ease, opacity .3s ease;
  will-change: transform;
}

.nav-hidden { pointer-events: none; }

/* Page layout offsets respond to nav visibility */
body > .w3-container.w3-content {
  margin-top: var(--page-top, 20px);
  transition: margin-top .2s ease;
}


#table-container .table-wrap { max-width: none !important; width: 100% !important; float: none !important; }
#table-container .table      { width: 100% !important; float: none !important; font-size: 12px !important; }
.controlsPanel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sidebar-gap, 12px);
  flex: 1 1 auto;
  min-height: 0;
  border: none;
  background: none;
  overflow: hidden;
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  z-index: 1000;
  padding-bottom: 16px;

}
.controlsPanel,
#indexOptionsWrapper,
#indexOptionsBody,
#indexControlsPanel,
#indexControlsScroll {
  flex: 1 1 auto;
  min-height: 0;
}

#indexOptionsWrapper,
#indexOptionsBody,
#indexControlsPanel,
#indexControlsScroll {
  display: flex;
  flex-direction: column;
}

#indexControlsPanel,
#indexControlsScroll,
#indexOptionsWrapper,
#indexOptionsBody,
#indexTabContainer,
.tab-list,
.tab-item,
.tab-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Sidebar tab list width rules */

.index-layout--collapsed #indexOptionsWrapper {
  width: 48px;
  max-width: 48px;
  min-width: 48px;
}
.index-layout--expanded #indexOptionsWrapper {
  width: 172px;
  max-width: 172px;
  min-width: 172px;
}

.index-layout--mobile #indexOptionsWrapper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

#indexTabContainer {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sidebar-gap, 12px);
}

#indexControlsPanel,
#indexControlsScroll {
  display: flex;
  flex-direction: column;
  gap: var(--sidebar-gap, 12px);
}

.tab-panel {
  overflow-wrap: anywhere;
}

.index-sidebar .w3-container,
.index-sidebar .tab-panel,
.index-sidebar label,
.index-sidebar .MuiTypography-root,
.index-sidebar .MuiFormLabel-root,
.index-sidebar .MuiFormControlLabel-label,
.index-sidebar .tab-label {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.project-save-card {
  margin-bottom: var(--sidebar-gap, 12px);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sidebar-gap, 12px);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.project-save-card > * {
  min-width: 0;
}

.project-save-card .project-select-row {
  flex: 1 1 0;
  min-width: 0;
}

.project-save-card > :not(.project-select-row) {
  flex-basis: 100%;
}

.project-save-card .MuiStack-root > * {
  flex: 1 1 auto;
  min-width: 0;
}

.project-save-card .MuiStack-root > .MuiButton-root {
  flex: 0 0 auto;
}

@media (max-width: 600px) {
  .project-save-card {
    gap: var(--sidebar-gap, 12px);
  }
}

.nav-darkmode-text {
  color: inherit;
}

html[data-mui-color-scheme='dark'] .nav-darkmode-text,
html[data-mui-color-scheme='dark'] .nav-darkmode-text:link,
html[data-mui-color-scheme='dark'] .nav-darkmode-text:visited,
html[data-mui-color-scheme='dark'] .nav-darkmode-text:hover,
html[data-mui-color-scheme='dark'] .nav-darkmode-text:focus,
html[data-mui-color-scheme='dark'] .nav-darkmode-text:active {
  color: #1d1f2f !important;
}

html[data-mui-color-scheme='dark'] .nav-darkmode-text .fa,
html[data-mui-color-scheme='dark'] .nav-darkmode-text svg {
  color: #1d1f2f !important;
  fill: #1d1f2f;
}

html[data-mui-color-scheme='dark'] .nav-darkmode-text .project-nav-mobile-icon {
  color: #1d1f2f !important;
}

/* Dark navigation helpers */
.nav-hover--dark {
  background-color: transparent;
  color: inherit;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-hover--dark:hover,
.nav-hover--dark:focus {
  background-color: rgba(148, 163, 184, 0.16) !important;
  color: #f8fafc !important;
}

.nav-bar--dark {
  background-color: #9eb1bb !important;
  color: #000 !important;
}

.nav-bar--dark-active {
  background-color: #7d97a5 !important;
  color: #000 !important;
}

.nav-text--dark,
.nav-text--dark:link,
.nav-text--dark:visited,
.nav-text--dark:hover,
.nav-text--dark:focus {
  color: #000 !important;
}

.nav-text--dark .fa,
.nav-text--dark svg {
  color: #000 !important;
  fill: #000 !important;
}

.nav-dropdown-panel--dark {
  background-color: #9eb1bb !important;
  color: #000 !important;
  border: 1px solid #1e293b !important;
}

.nav-dropdown-panel--dark .w3-bar-item {
  color: inherit !important;
}

.nav-dropdown-panel--dark .w3-bar-item:hover,
.nav-dropdown-panel--dark .w3-bar-item:focus {
  background-color: rgba(148, 163, 184, 0.16) !important;
}

.text-on-dark {
  color: inherit;
}

html[data-mui-color-scheme='dark'] .text-on-dark {
  color: #f8fafc !important;
}

html[data-mui-color-scheme='dark'] .text-on-dark a {
  color: #bfdbfe;
}

html[data-mui-color-scheme='light'] .project-nav-dropdown-content,
html[data-mui-color-scheme='light'] .project-nav-mobile {
  background-color: #ffffff;
}

html[data-mui-color-scheme='light'] .project-nav-header strong,
html[data-mui-color-scheme='light'] .project-nav-door-name,
html[data-mui-color-scheme='light'] .project-nav-project-name,
html[data-mui-color-scheme='light'] .project-nav-mobile-header strong {
  color: #1d1f2f;
}

html[data-mui-color-scheme='light'] .project-nav-door-link,
html[data-mui-color-scheme='light'] .project-nav-project {
  background-color: #ffffff;
}
.project-nav-dropdown .project-nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.project-nav-badge {
  min-width: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.project-nav-dropdown-content {
  width: 320px;
  padding: 10px 12px;
  z-index: 10000;
  max-height: min(85vh, 580px);
  overflow-y: visible;
}

.project-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}

.project-nav-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-nav-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.6);
  color: inherit;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.project-nav-sort-button:hover,
.project-nav-sort-button:focus-visible {
  background: rgba(148, 163, 184, 0.2);
}

.project-nav-sort-button:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.45);
  outline-offset: 2px;
}

.project-nav-sort-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.project-nav-sort-button--mobile {
  padding: 3px 5px;
  font-size: 11px;
}

.project-nav-mobile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

html[data-mui-color-scheme='dark'] .project-nav-sort-button {
  border-color: rgba(94, 122, 148, 0.55);
  background: rgba(15, 23, 42, 0.55);
  color: #e2e8f0;
}

html[data-mui-color-scheme='dark'] .project-nav-sort-button:hover,
html[data-mui-color-scheme='dark'] .project-nav-sort-button:focus-visible {
  background: rgba(59, 130, 246, 0.25);
  color: #e0f2fe;
}

.project-nav-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-nav-header-text span {
  font-size: 12px;
  color: #708090;
}

.project-nav-manage {
  font-size: 12px;
  color: #2b6cb0;
}

.project-nav-door-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: small;
}
.project-nav-door-list.is-expanded {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
}

.project-nav-door-list.is-expanded::-webkit-scrollbar {
  width: 6px;
}

.project-nav-door-list.is-expanded::-webkit-scrollbar-thumb {
  background-color: rgba(100, 116, 139, 0.45);
  border-radius: 3px;
}

.project-nav-door-list.is-expanded::-webkit-scrollbar-track {
  background: transparent;
}


.project-nav-door {
  display: block;
}

.project-nav-door-link {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 7px;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  background-color: var(--door-item-bg, var(--project-nav-door-bg, #ffffff));
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.project-nav-door-link:hover,
.project-nav-door-link:focus-visible {
  background-color: var(--door-item-hover, var(--project-nav-door-hover-bg, #f1f4f7));
}

.project-nav-door-link:active {
  background-color: var(--door-item-active, var(--project-nav-door-active-bg, #e4edf5));
}

.project-nav-door-link:focus-visible {
  outline: 2px solid #2b6cb0;
  outline-offset: 2px;
}

.project-nav-door-preview {
  width: 56px;
  height: 40px;
  min-width: 56px;
  max-width: 56px;
  flex: 0 0 56px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--door-item-preview, var(--project-nav-door-preview-bg, #eceff1));
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-nav-door-preview img {
  width: 56px;
  height: 40px;
  object-fit: cover;
}

.project-nav-no-preview {
  font-size: 13px;
  color: #607d8b;
  text-transform: uppercase;
}

.project-nav-door-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-nav-door-name {
  font-weight: 600;
  font-size: 12px !important;
  color: #1d1f2f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-nav-door-sub {
  font-size: 13px;
  color: #51606c;
}

.project-nav-door-more {
  font-size: 11px;
  color: #51606c;
}

.project-nav-door-more-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 5px 7px;
  border: none;
  border-radius: 6px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  font-size: 10px;
  cursor: pointer;
  transition: background-color 0.15s linear;
}

.project-nav-door-more-button:hover,
.project-nav-door-more-button:focus-visible {
  background: var(--project-nav-door-hover-bg, #e7eff8);
}

.project-nav-door-more-button:focus-visible {
  outline: 2px solid #2b6cb0;
  outline-offset: 2px;
}

.project-nav-empty {
  font-size: 13px;
  color: #51606c;
  text-align: center;
  padding: 12px 0;
}

.project-nav-mobile {
  padding: 12px 16px;
  border-top: 1px solid #d1d9df;
}

.project-nav-mobile-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-nav-mobile-icon {
  font-size: 18px;
  color: #395067;
}

.project-nav-mobile-titles {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-nav-mobile-titles span {
  font-size: 12px;
  color: #51606c;
}

.project-nav-mobile-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: 13px;
  background: #395067;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.project-nav-mobile-list {
  list-style: none;
  padding: 12px 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-nav-mobile-list .project-nav-door {
  align-items: flex-start;
}
.homepage-wrap {
  max-width: 1100px;
  margin: 100px auto 80px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.homepage-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.homepage-hero h1 {
  font-size: 2.4rem;
  margin: 0;
  color: #1d1f2f;
}

.homepage-hero p {
  margin: 0;
  color: #51606c;
  font-size: 1rem;
}

.homepage-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: #51606c;
  font-size: 1rem;
  padding: 60px 0;
}

.project-empty-state {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: #51606c;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.project-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(23, 43, 77, 0.08);
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
}

.project-card-cover {
  height: 180px;
  background: linear-gradient(135deg, #d7e3fc, #f6f9ff);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #51606c;
  font-size: 0.9rem;
}

.project-card-placeholder i {
  font-size: 24px;
}

.project-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.project-card-header h2 {
  margin: 0;
  font-size: 1.3rem;
  color: #1d1f2f;
}

.project-card-subtitle {
  font-size: 0.85rem;
  color: #708090;
}

.project-card-date {
  font-size: 0.8rem;
  color: #94a3b8;
}

.project-card-latest h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #1d1f2f;
}

.project-card-latest ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.project-card-latest li {
  font-size: 0.85rem;
  color: #51606c;
}

.project-card-latest strong {
  color: #1d1f2f;
}

.project-card-actions {
  display: flex;
  justify-content: flex-end;
}

.project-card-actions .w3-button {
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .homepage-wrap {
    margin-top: 60px;
    padding: 0 16px;
    gap: 32px;
  }

  .project-card-body {
    padding: 18px 18px 22px;
  }
}
.project-nav-switcher {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
}

.project-nav-switcher-title {
  font-size: 12px;
  color: #51606c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-nav-project-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.project-nav-project-list.is-expanded {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.project-nav-project-list.is-expanded::-webkit-scrollbar {
  width: 6px;
}

.project-nav-project-list.is-expanded::-webkit-scrollbar-thumb {
  background-color: rgba(100, 116, 139, 0.45);
  border-radius: 3px;
}

.project-nav-project-list.is-expanded::-webkit-scrollbar-track {
  background: transparent;
}


.project-nav-project {
  width: 100%;
  border: 1px solid #d8e1eb;
  border-radius: 6px;
  background: var(--project-item-bg, var(--project-nav-project-bg, #f8fafc));
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #20324a;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.project-nav-project:hover:not(.is-active):not(:disabled) {
  border-color: #b7c6d7;
  background: var(--project-item-hover, var(--project-nav-project-hover-bg, #eef4ff));
  transform: translateY(-1px);
}

.project-nav-project:disabled {
  cursor: default;
  opacity: 0.85;
}

.project-nav-project.is-active {
  background: var(--project-item-active, var(--project-nav-project-active-bg, #e2e8f0));
  border-color: #c3d0dc;
}

.project-nav-project-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  font-size: 10px;
  flex: 1 1 auto;
}

.project-nav-project-name {
  font-weight: 600;
  color: #1d1f2f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-nav-project-sub {
  font-size: 13px;
  color: #51606c;
}

.project-nav-project-status {
  color: #51606c;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
}

.project-nav-project-status .fa {
  font-size: 11px;
}
.project-nav-project-more {
  font-size: 11px;
  color: #51606c;
  margin-top: 4px;
}

.project-nav-project-more-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 5px 7px;
  border-radius: 6px;
  border: 1px dashed #cbd5e1;
  background: transparent;
  color: inherit;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
  font-size: 10px;
  cursor: pointer;
  transition: background-color 0.15s linear;
}

.project-nav-project-more-button:hover,
.project-nav-project-more-button:focus-visible {
  background: var(--project-item-hover, var(--project-nav-project-hover-bg, #eef4ff));
}

.project-nav-project-more-button:focus-visible {
  outline: 2px solid #2b6cb0;
  outline-offset: 2px;
}


.project-nav-mobile-switcher {
  margin-top: 12px;
}

.project-nav-mobile-switcher .project-nav-project {
  background: var(--project-item-bg, var(--project-nav-mobile-bg, #ffffff));
}
.projects-table-card {
  background: #fff;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 16px 28px rgba(23, 43, 77, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.projects-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.projects-table-header h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #1d1f2f;
}

.projects-table-header span {
  font-size: 0.85rem;
  color: #708090;
}

.projects-table-scroll {
  max-height: 520px;
  overflow: auto;
}

.projects-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.projects-table th,
.projects-table td {
  font-size: 0.95rem;
  padding: 12px 14px;
}

.projects-table thead th {
  background: #f1f5f9;
  color: #314255;
  font-weight: 600;
  border-bottom: 1px solid #dbe3ec;
}

.projects-table tbody td {
  border-bottom: 1px solid #e5edf5;
}

.projects-table-row {
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.projects-table-row:hover,
.projects-table-row:focus {
  background: #eef4ff;
  transform: translateY(-1px);
  outline: none;
}

.projects-table-name {
  font-weight: 600;
  color: #1d1f2f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.projects-table-owner {
  color: #314255;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.projects-table-qty {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #20324a;
  width: 160px;
}

.projects-table-actions {
  text-align: right;
  width: 160px;
}

.projects-trash-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.projects-delete-btn {
  background: transparent;
  border: 1px solid #c62828;
  color: #c62828;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
}

.projects-delete-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.projects-delete-btn:not(:disabled):hover {
  background: rgba(248, 113, 113, 0.18);
}

.projects-restore-btn {
  background: #1f7a3d;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
}

.projects-restore-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.projects-restore-btn:not(:disabled):hover {
  background: #17602f;
}

.projects-delete-forever-btn {
  background: #b91c1c;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
}

.projects-delete-forever-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.projects-delete-forever-btn:not(:disabled):hover {
  background: #991b1b;
}

.projects-error {
  margin-bottom: 12px;
  color: #b71c1c;
  font-weight: 600;
}

.trash-intro {
  max-width: 520px;
  color: #51606c;
}

.trash-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 32px 20px;
  text-align: center;
  color: #51606c;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trash-cta {
  margin-top: 12px;
}

.projects-table-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 32px 20px;
  text-align: center;
  color: #51606c;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.projects-table-empty h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #1d1f2f;
}

@media (max-width: 720px) {
  .projects-table-card {
    padding: 18px;
  }

  .projects-table th,
  .projects-table td {
    padding: 10px 12px;
  }

  .projects-table-qty {
    width: 110px;
  }
}

.projects-table-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1f4db3;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.projects-table-add:hover {
  background: #0f3f93;
  box-shadow: 0 12px 28px rgba(15, 63, 147, 0.2);
}

.projects-table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.projects-table-add-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 6px 8px;
}

.projects-table-add-input {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 0.9rem;
  min-width: 200px;
  background: #fff;
  color: #1d1f2f;
}

.projects-table-add-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.projects-table-add-confirm,
.projects-table-add-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.projects-table-add-confirm {
  background: #15803d;
  color: #fff;
}

.projects-table-add-confirm:hover {
  background: #16a34a;
}

.projects-table-add-cancel {
  background: #e2e8f0;
  color: #1d1f2f;
}

.projects-table-add-cancel:hover {
  background: #cbd5e1;
}

.projects-table-add-confirm:disabled,
.projects-table-add-cancel:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.project-select-row {
  display: flex;
  flex-direction: column;
  gap: var(--sidebar-control-gap, 8px);
}

.project-select-row label {
  font-size: 0.85rem;
  color: #51606c;
}

.project-select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #1d1f2f;
  background: #fff;
  display: block;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}


html[data-mui-color-scheme='dark'] .project-select-row label {
  color: #cbd5f5;
}

.door-select {
  font-size: 0.85rem;
}

html[data-mui-color-scheme='dark'] .project-select {
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.08);
}

html[data-mui-color-scheme='dark'] .project-select:disabled {
  background: rgba(15, 23, 42, 0.45);
  color: rgba(148, 163, 184, 0.7);
  border-color: rgba(148, 163, 184, 0.25);
}

html[data-mui-color-scheme='dark'] .project-select option {
  color: #e2e8f0;
  background: #0f172a;
}

html[data-mui-color-scheme='dark'] .project-select:focus {
  outline-color: #38bdf8;
}


.project-select-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.project-select-control .project-select {
  flex: 1 1 auto;
}

.project-select-control > *:not(.project-select) {
  flex-shrink: 0;
}


.index-sidebar .MuiFormControl-root,
.index-sidebar .MuiInputBase-root,
.index-sidebar .MuiAutocomplete-root {
  width: 100%;
  max-width: 100px;
  min-width: 0;
  transition: max-width 0.2s ease;
}

.index-sidebar .MuiFormControl-root.Mui-focused,
.index-sidebar .MuiFormControl-root:focus-within,
.index-sidebar .MuiInputBase-root.Mui-focused,
.index-sidebar .MuiAutocomplete-root.Mui-focused,
.index-sidebar .MuiAutocomplete-root:focus-within {
  max-width: none;
}

.project-save-card .MuiFormControl-root,
.project-save-card .MuiInputBase-root,
.project-save-card .MuiAutocomplete-root {
  max-width: 100px;
  width: 100%;
}

.index-sidebar select,
.index-sidebar .MuiSelect-select {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: max-width 0.2s ease;
}

.index-sidebar select:focus,
.index-sidebar select:active {
  max-width: none;
  white-space: normal;
  overflow: visible;
}

.index-sidebar .MuiInputBase-root.Mui-focused .MuiSelect-select {
  max-width: none;
  white-space: normal;
  overflow: visible;
}

.index-sidebar .MuiInputBase-input:not(textarea) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: white-space 0.2s ease, max-width 0.2s ease;
  max-width: 100px;
}

.index-sidebar .MuiInputBase-input:not(textarea):focus,
.index-sidebar .MuiInputBase-input:not(textarea):active {
  white-space: normal;
  overflow: visible;
  max-width: none;
}

.index-sidebar input[type='text'],
.index-sidebar input[type='number'],
.index-sidebar input[type='email'],
.index-sidebar input[type='tel'] {
  width: 100%;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: white-space 0.2s ease, max-width 0.2s ease;
}

.index-sidebar input[type='text']:focus,
.index-sidebar input[type='number']:focus,
.index-sidebar input[type='email']:focus,
.index-sidebar input[type='tel']:focus {
  white-space: normal;
  overflow: visible;
  max-width: none;
}

.index-sidebar .MuiStack-root {
  width: 100%;
  min-width: 0;
}

.index-sidebar .MuiStack-root > * {
  min-width: 0;
}

.index-sidebar .MuiButton-root {
  width: 100%;
  justify-content: center;
  padding: var(--sidebar-control-gap) calc(var(--sidebar-control-gap) + 4px);
}

.index-sidebar .MuiTypography-root,
.index-sidebar .MuiInputBase-root,
.index-sidebar .MuiSelect-select,
.index-sidebar .MuiButton-root,
.index-sidebar input,
.index-sidebar label {
  font-size: inherit;
  margin: 0;
  padding: 3px;
}

.index-sidebar .MuiTypography-subtitle1,
.index-sidebar .MuiTypography-subtitle2,
.index-sidebar .MuiTypography-h6,
.index-sidebar .MuiTypography-h5,
.index-sidebar .tab-label,
.index-sidebar .MuiFormLabel-root,
.index-sidebar .MuiFormControlLabel-label {
  font-size: 11px;
  line-height: 1.3;
  margin: 0;
  padding: 0;
}

.index-sidebar .w3-card,
.index-sidebar .MuiPaper-root,
.index-sidebar .MuiBox-root,
.index-sidebar .MuiCard-root,
.index-sidebar .tab-panel,
.index-sidebar #indexControlContainer {
  font-size: inherit;
}

.index-sidebar .tab-panel {
  padding-block: var(--sidebar-gap);
}

.index-sidebar .tab-panel:first-of-type {
  padding-top: var(--sidebar-gap);
}

.index-sidebar .tab-panel--open {
  padding: var(--sidebar-gap);
}

.index-sidebar .tab-panel > * + * {
  margin-top: var(--sidebar-gap);
}

.index-sidebar .ui-row {
  gap: var(--sidebar-control-gap);
  margin: 0;
}

.index-sidebar .ui-label {
  padding: 0;
  margin-right: var(--sidebar-control-gap);
}

.index-sidebar .MuiStack-root {
  gap: var(--sidebar-stack-gap) !important;
}

.index-sidebar .MuiFormControl-root,
.index-sidebar .MuiFormGroup-root,
.index-sidebar .MuiFormControlLabel-root,
.index-sidebar .MuiInputBase-root,
.index-sidebar .MuiSelect-select,
.index-sidebar .MuiTextField-root,
.index-sidebar .MuiSwitch-root,
.index-sidebar .MuiButton-root {
  margin: 0;
}

.project-select-control .project-select {
  flex: 1 1 auto;
}

.project-select-delete {
  padding: 6px;
}


.project-select:focus {
  outline: 2px solid #1f4db3;
  outline-offset: 1px;
}


/* Dark mode shadow inversions */
html[data-mui-color-scheme='dark'] .homepage-hero h1,
html[data-mui-color-scheme='dark'] .projects-table-header h2,
html[data-mui-color-scheme='dark'] .projects-table-empty h3 {
  color: #f8fafc;
}

html[data-mui-color-scheme='dark'] .homepage-hero p,
html[data-mui-color-scheme='dark'] .trash-intro,
html[data-mui-color-scheme='dark'] .projects-table-header span,
html[data-mui-color-scheme='dark'] .projects-table-empty,
html[data-mui-color-scheme='dark'] .homepage-loading span {
  color: #cbd5f5;
}

html[data-mui-color-scheme='dark'] .projects-table-card {
  background: #111827;
  border: 1px solid #1f2937;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.58);
}

html[data-mui-color-scheme='dark'] .projects-table thead th {
  background: #1f2937;
  color: #f1f5f9;
  border-bottom: 1px solid #334155;
}

html[data-mui-color-scheme='dark'] .projects-table tbody td {
  border-bottom: 1px solid #1f2937;
  color: #e2e8f0;
}

html[data-mui-color-scheme='dark'] .projects-table-row:hover,
html[data-mui-color-scheme='dark'] .projects-table-row:focus {
  background: #243b53;
}

html[data-mui-color-scheme='dark'] .projects-table-name,
html[data-mui-color-scheme='dark'] .projects-table-owner,
html[data-mui-color-scheme='dark'] .projects-table-qty,
html[data-mui-color-scheme='dark'] .projects-table-actions {
  color: #e2e8f0;
}

html[data-mui-color-scheme='dark'] .projects-table-add {
  background: #2563eb;
  color: #f8fafc;
  box-shadow: none;
}

html[data-mui-color-scheme='dark'] .projects-table-add:hover {
  background: #1d4ed8;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45);
}

html[data-mui-color-scheme='dark'] .projects-table-add-form {
  background: rgba(30, 41, 59, 0.65);
}

html[data-mui-color-scheme='dark'] .projects-table-add-input {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.45);
  color: #e2e8f0;
}

html[data-mui-color-scheme='dark'] .projects-table-add-cancel {
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
}

html[data-mui-color-scheme='dark'] .projects-table-add-cancel:hover {
  background: rgba(30, 41, 59, 0.95);
}

html[data-mui-color-scheme='dark'] .projects-table-add-confirm {
  background: #16a34a;
}

html[data-mui-color-scheme='dark'] .projects-table-add-confirm:hover {
  background: #15803d;
}

html[data-mui-color-scheme='dark'] .projects-delete-btn {
  border-color: #f87171;
  color: #fecaca;
}

html[data-mui-color-scheme='dark'] .projects-delete-btn:not(:disabled):hover {
  background: rgba(248, 113, 113, 0.18);
}

html[data-mui-color-scheme='dark'] .projects-delete-forever-btn {
  background: #dc2626;
}

html[data-mui-color-scheme='dark'] .projects-delete-forever-btn:not(:disabled):hover {
  background: #b91c1c;
}

html[data-mui-color-scheme='dark'] .projects-restore-btn {
  background: #15803d;
}

html[data-mui-color-scheme='dark'] .projects-restore-btn:not(:disabled):hover {
  background: #166534;
}

html[data-mui-color-scheme='dark'] .projects-table-empty {
  border-color: #334155;
  color: #cbd5f5;
}

html[data-mui-color-scheme='dark'] .projects-table-empty p {
  color: #94a3b8;
}

html[data-mui-color-scheme='dark'] .projects-table-scroll::-webkit-scrollbar-thumb {
  background: #475569;
}

html[data-mui-color-scheme='dark'] .projects-table-scroll::-webkit-scrollbar-track {
  background: #0f172a;
}

html[data-mui-color-scheme='dark'] .tm-bg-white-shadow,
html[data-mui-color-scheme='dark'] .tm-article:hover,
html[data-mui-color-scheme='dark'] #mainNav {
  box-shadow: 0 0 7px rgba(255, 255, 255, 1);
}

html[data-mui-color-scheme='dark'] .tm-top-bar.active {
  box-shadow: 0 1px 5px rgba(255, 255, 255, 1);
}

html[data-mui-color-scheme='dark'] .hoverTip {
  box-shadow: 0 0 4px rgba(255, 255, 255, 1);
}

html[data-mui-color-scheme='dark'] .form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 1);
}

html[data-mui-color-scheme='dark'] .switch div {
  box-shadow: 0 0.1em 0.3em rgba(255, 255, 255, 1);
}

html[data-mui-color-scheme='dark'] .status-indicator {
  box-shadow: 0 0 8px rgba(255, 255, 255, 1);
}

html[data-mui-color-scheme='dark'] .rxs-thumb {
  box-shadow: 0 1px 3px rgba(255, 255, 255, 1);
}

html[data-mui-color-scheme='dark'] .toggle--btn {
  box-shadow: inset 0 0 22px -8px rgba(255, 255, 255, 1);
}

html[data-mui-color-scheme='dark'] .project-card {
  box-shadow: 0 12px 24px rgba(255, 255, 255, 1);
}



/* Utility classes extracted from pages/index.tsx inline styles */
.visually-hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.door-color-label,
.project-color-label {
  display: inline-block;
  max-width: 65px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  text-align: left;
  font-size: 10px;
}

.index-sidebar .door-color-label,
.index-sidebar .project-color-label {
  overflow-wrap: normal;
  word-break: normal;
}


.nav-dropdown-panel {
  width: 300px;
}

.index-nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  margin-left: 4px;
}

.index-nav-dropdown:first-of-type {
  margin-left: 0;
}

.index-nav-dropdown__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.index-nav-dropdown__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.index-nav-dropdown__content {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background-color: #ffffff;
  color: #0f172a;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.25);
  max-height: min(80vh, 640px);
  overflow-y: auto;
  z-index: 1400;
}

.index-nav-dropdown__content.nav-dropdown-panel {
  width: min(420px, calc(100vw - 32px));
}

.index-nav-dropdown__content--projects.nav-dropdown-panel {
  width: min(220px, calc(100vw - 20px));
}

.index-nav-dropdown__content--units.nav-dropdown-panel {
  width: min(320px, calc(100vw - 32px));
  padding-top: 12px;
  padding-bottom: 12px;
}

.index-nav-dropdown__content[hidden] {
  display: none;
}

html[data-mui-color-scheme='dark'] .index-nav-dropdown__content {
  background-color: #0f172a;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 22px 44px rgba(2, 6, 23, 0.85);
}

@media (max-width: 768px) {
  .index-nav-dropdown__button .index-nav-dropdown__label {
    display: none;
  }
  .index-nav-dropdown {
    margin-left: 2px;
  }
  .index-nav-dropdown__content {
    left: 8px;
    right: 8px;
  }
  .index-nav-dropdown__content.nav-dropdown-panel {
    width: auto;
  }
}

.app-content {
  max-width: 1400px !important;
  margin-top: 64px !important;
}

.app-content-inner {
  max-width: 1400px !important;
  margin: 0 auto !important;
}

#indexDataTableContainer,
#indexDataTableContainer .table-card,
#indexDataTableContainer #table-container {
  max-width: 1400px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.data-table-heading {
  margin-top: 0;
  padding-top: 6px;
}

.hidden-label {
  display: none !important;
}

.canvas-card--hidden {
  display: none !important;
}

.nav-account-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.w3-bar .nav-account-link {
  display: inline-flex;
  align-items: center;
}

.nav-account-link--compact {
  width: auto;
  height: 100%;
  padding: 8px !important;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  overflow: hidden;
  margin: -1.5px;
  box-sizing: border-box;
}

.nav-account-link--compact,
.nav-account-link--compact:hover,
.nav-account-link--compact:focus {
  text-decoration: none;
}

.nav-account-link--compact .nav-account__badge {
  width: 30px;
  height: 30px;
}

.nav-account__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  min-width: 30px;
  min-height: 30px;
  aspect-ratio: 1 / 1;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.nav-account-link--compact abbr.nav-account__badge {
  text-decoration: none;
}

.nav-account__status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.nav-account__label {
  font-weight: 600;
}

.nav-account-link--mobile {
  gap: 0.75rem;
}

.three-canvas--hidden {
  display: none !important;
}

#profile-2d {
  display: none !important;
}

@media (max-width: 600px) {
  .nav-account-link--mobile .nav-account__badge {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

@supports (scrollbar-gutter: stable) {
  .project-nav-dropdown-content,
  .project-nav-door-list.is-expanded,
  .project-nav-project-list.is-expanded {
    scrollbar-gutter: stable;
  }
}

.texture-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.texture-library-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.texture-library-swatches__button {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 10px;
  border: 1px solid var(--texture-library-swatches-border);
  background: var(--texture-library-swatches-bg);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    transform 120ms ease,
    opacity 120ms ease;
}

.texture-library-swatches__button:hover,
.texture-library-swatches__button:focus-visible {
  border-color: var(--texture-library-swatches-hover-border);
  box-shadow: var(--texture-library-swatches-hover-shadow);
  transform: translateY(-1px);
  outline: none;
}

.texture-library-swatches__button--active {
  border-color: var(--texture-library-swatches-active-border);
  box-shadow: var(--texture-library-swatches-active-shadow);
}

.texture-library-swatches__button--preview:not(.texture-library-swatches__button--applied) {
  border-color: rgba(59, 130, 246, 0.65);
}

.texture-library-swatches__button--disabled,
.texture-library-swatches__button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
  transform: none;
}

.texture-library-swatches__preview {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.texture-library-swatches__status {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  padding: 2px 4px;
  border-radius: 4px;
  background-color: var(--texture-library-status-bg);
  color: var(--texture-library-status-color);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.texture-library-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--texture-library-tile-border);
  background: var(--texture-library-tile-bg);
  color: var(--texture-library-text-color);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  text-align: left;
  font-size: 10px;
}

.texture-library-tile:hover {
  border-color: var(--texture-library-tile-hover-border);
  box-shadow: var(--texture-library-tile-hover-shadow);
  transform: translateY(-2px);
}

.texture-library-tile--active {
  border-color: var(--texture-library-tile-active-border);
  box-shadow: var(--texture-library-tile-active-shadow);
}

.texture-library-swatch {
  width: 100%;
  height: 70px;
  border-radius: 8px;
  background-size: 140px 140px;
  background-repeat: repeat;
  border: 1px solid var(--texture-library-swatch-border);
  box-shadow: inset 0 0 0 2px var(--texture-library-swatch-inset);
}

.texture-library-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--texture-library-text-color);
  line-height: 1.2;
}

.texture-library-code {
  font-size: 10px;
  font-weight: 400;
  color: var(--texture-library-subtext-color);
  margin-left: 2px;
}
.texture-library-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--texture-library-subtext-color);
}

.texture-library-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--texture-library-remove-bg);
  color: var(--texture-library-remove-color);
  padding: 2px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.texture-library-tile:hover .texture-library-remove,
.texture-library-tile.texture-library-tile--active .texture-library-remove {
  opacity: 1;
}

.frame-texture-follow-note {
  color: #475569;
  line-height: 1.5;
}

html[data-mui-color-scheme='dark'] .frame-texture-follow-note {
  color: #e2e8f0;
}
