:root {
  --labcontrol-font-scale: 1;
  --labcontrol-deck-bg: rgba(255, 255, 255, 0.62);
  --labcontrol-deck-line: rgba(15, 93, 82, 0.18);
  --labcontrol-deck-text: #11342f;
  --labcontrol-deck-muted: rgba(17, 52, 47, 0.66);
  --labcontrol-deck-accent: #0b8f7b;
  --labcontrol-deck-accent-2: #d9695a;
  --labcontrol-deck-shadow: 0 22px 70px rgba(15, 56, 52, 0.18);
}

html[data-labcontrol-font-scale] body {
  font-size: calc(16px * var(--labcontrol-font-scale)) !important;
}

html.labcontrol-font-times body,
html.labcontrol-font-times button,
html.labcontrol-font-times input,
html.labcontrol-font-times textarea,
html.labcontrol-font-times select,
html.labcontrol-font-times .labcontrol-lical-shell {
  font-family: "Times New Roman", Times, serif !important;
}

html.labcontrol-font-dyslexia body,
html.labcontrol-font-dyslexia button,
html.labcontrol-font-dyslexia input,
html.labcontrol-font-dyslexia textarea,
html.labcontrol-font-dyslexia select,
html.labcontrol-font-dyslexia .labcontrol-lical-shell {
  font-family: Lexend, Arial, Verdana, Tahoma, sans-serif !important;
  letter-spacing: 0.01em;
  word-spacing: 0.05em;
}

.labcontrol-lical-shell,
.labcontrol-lical-shell * {
  box-sizing: border-box;
}

.labcontrol-floating-dock,
.labcontrol-tool-deck,
.labcontrol-panel,
.labcontrol-status {
  position: fixed;
  z-index: 2147482600;
  color: var(--labcontrol-deck-text);
  font-family: inherit;
}

.labcontrol-floating-dock {
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: auto minmax(178px, 280px) auto;
  gap: 8px;
  align-items: center;
  max-width: calc(100vw - 24px);
  padding: 8px;
  border: 1px solid var(--labcontrol-deck-line);
  border-radius: 26px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.46)),
    var(--labcontrol-deck-bg);
  box-shadow: var(--labcontrol-deck-shadow);
  backdrop-filter: blur(24px) saturate(1.28);
  -webkit-backdrop-filter: blur(24px) saturate(1.28);
}

.labcontrol-floating-dock::before,
.labcontrol-tool-deck::before,
.labcontrol-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), transparent 45%, rgba(11, 143, 123, 0.16));
  opacity: 0.78;
}

.labcontrol-deck-trigger,
.labcontrol-chat-fab,
.labcontrol-search-mini,
.labcontrol-tool-button,
.labcontrol-panel-close,
.labcontrol-choice,
.labcontrol-result,
.labcontrol-access-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 93, 82, 0.14);
  color: var(--labcontrol-deck-text);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.labcontrol-deck-trigger:hover,
.labcontrol-chat-fab:hover,
.labcontrol-search-mini:hover,
.labcontrol-tool-button:hover,
.labcontrol-panel-close:hover,
.labcontrol-choice:hover,
.labcontrol-result:hover,
.labcontrol-access-action:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 143, 123, 0.34);
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 26px rgba(15, 88, 79, 0.12);
}

.labcontrol-deck-trigger:focus-visible,
.labcontrol-chat-fab:focus-visible,
.labcontrol-search-mini:focus-visible,
.labcontrol-tool-button:focus-visible,
.labcontrol-panel-close:focus-visible,
.labcontrol-choice:focus-visible,
.labcontrol-result:focus-visible,
.labcontrol-access-action:focus-visible,
.labcontrol-dock-search input:focus-visible,
.labcontrol-search-box input:focus-visible {
  outline: 3px solid rgba(11, 143, 123, 0.26);
  outline-offset: 2px;
}

.labcontrol-deck-trigger,
.labcontrol-chat-fab,
.labcontrol-search-mini {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 18px;
}

.labcontrol-deck-trigger svg,
.labcontrol-chat-fab svg,
.labcontrol-search-mini svg,
.labcontrol-tool-button svg,
.labcontrol-panel-close svg,
.labcontrol-choice svg,
.labcontrol-result svg,
.labcontrol-access-action svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke: currentColor;
}

.labcontrol-deck-trigger span,
.labcontrol-chat-fab span,
.labcontrol-search-mini span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.labcontrol-dock-search {
  position: relative;
  min-width: 0;
}

.labcontrol-dock-search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  z-index: 1;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--labcontrol-deck-muted);
  pointer-events: none;
}

.labcontrol-dock-search input,
.labcontrol-search-box input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(15, 93, 82, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--labcontrol-deck-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.labcontrol-dock-search input {
  height: 48px;
  padding: 0 14px 0 38px;
  font-size: 0.86rem;
}

.labcontrol-dock-search input::placeholder,
.labcontrol-search-box input::placeholder {
  color: var(--labcontrol-deck-muted);
  opacity: 1;
}

.labcontrol-tool-deck {
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(max(18px, env(safe-area-inset-bottom)) + 76px);
  display: grid;
  grid-template-columns: repeat(5, minmax(52px, 1fr));
  gap: 8px;
  width: min(368px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid var(--labcontrol-deck-line);
  border-radius: 26px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.48)),
    var(--labcontrol-deck-bg);
  box-shadow: var(--labcontrol-deck-shadow);
  backdrop-filter: blur(24px) saturate(1.28);
  -webkit-backdrop-filter: blur(24px) saturate(1.28);
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: transform 180ms ease, opacity 180ms ease;
}

.labcontrol-tool-deck.is-open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.labcontrol-tool-button {
  min-height: 58px;
  flex-direction: column;
  gap: 5px;
  padding: 8px 5px;
  border-radius: 18px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.05;
}

.labcontrol-tool-button[aria-pressed="true"],
.labcontrol-choice[aria-pressed="true"] {
  border-color: rgba(11, 143, 123, 0.48);
  background:
    linear-gradient(145deg, rgba(11, 143, 123, 0.2), rgba(217, 105, 90, 0.12)),
    rgba(255, 255, 255, 0.78);
  color: #064c43;
}

.labcontrol-panel {
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(max(18px, env(safe-area-inset-bottom)) + 148px);
  width: min(430px, calc(100vw - 24px));
  max-height: min(620px, calc(100vh - 184px));
  overflow: hidden;
  border: 1px solid var(--labcontrol-deck-line);
  border-radius: 24px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.54)),
    var(--labcontrol-deck-bg);
  box-shadow: var(--labcontrol-deck-shadow);
  backdrop-filter: blur(28px) saturate(1.26);
  -webkit-backdrop-filter: blur(28px) saturate(1.26);
  transform: translateY(12px) scale(0.985);
  opacity: 0;
  pointer-events: none;
  transition: transform 180ms ease, opacity 180ms ease;
}

.labcontrol-panel.is-open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.labcontrol-panel-head,
.labcontrol-panel-body {
  position: relative;
  z-index: 1;
}

.labcontrol-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(15, 93, 82, 0.12);
}

.labcontrol-panel-title {
  display: grid;
  gap: 2px;
}

.labcontrol-panel-title strong {
  font-size: 0.86rem;
  letter-spacing: 0;
}

.labcontrol-panel-title span {
  color: var(--labcontrol-deck-muted);
  font-size: 0.72rem;
}

.labcontrol-panel-close {
  width: 34px;
  height: 34px;
  border-radius: 13px;
}

.labcontrol-panel-body {
  display: grid;
  gap: 12px;
  max-height: calc(min(620px, calc(100vh - 184px)) - 62px);
  overflow: auto;
  padding: 14px 16px 16px;
}

.labcontrol-choice-grid,
.labcontrol-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.labcontrol-choice,
.labcontrol-access-action {
  justify-content: flex-start;
  gap: 10px;
  min-height: 56px;
  padding: 10px;
  border-radius: 18px;
  text-align: left;
}

.labcontrol-choice span,
.labcontrol-access-action span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.labcontrol-choice strong,
.labcontrol-access-action strong {
  color: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.05;
}

.labcontrol-choice small,
.labcontrol-access-action small {
  color: var(--labcontrol-deck-muted);
  font-size: 0.66rem;
  line-height: 1.22;
}

.labcontrol-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  color: var(--labcontrol-deck-muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.labcontrol-section-label::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(15, 93, 82, 0.12);
}

.labcontrol-search-box {
  position: relative;
}

.labcontrol-search-box svg {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--labcontrol-deck-muted);
}

.labcontrol-search-box input {
  height: 46px;
  padding: 0 14px 0 38px;
}

.labcontrol-results {
  display: grid;
  gap: 7px;
}

.labcontrol-result {
  width: 100%;
  justify-content: flex-start;
  gap: 10px;
  min-height: 52px;
  padding: 9px 10px;
  border-radius: 17px;
  text-align: left;
}

.labcontrol-result span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.labcontrol-result strong {
  overflow: hidden;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.labcontrol-result small {
  color: var(--labcontrol-deck-muted);
  font-size: 0.66rem;
}

.labcontrol-font-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.labcontrol-font-controls button,
.labcontrol-font-controls span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 15px;
}

.labcontrol-font-controls button {
  width: 42px;
  border: 1px solid rgba(15, 93, 82, 0.14);
  background: rgba(255, 255, 255, 0.58);
  color: var(--labcontrol-deck-text);
  font-weight: 900;
}

.labcontrol-font-controls span {
  border: 1px solid rgba(15, 93, 82, 0.1);
  background: rgba(255, 255, 255, 0.42);
  color: var(--labcontrol-deck-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.labcontrol-status {
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(max(18px, env(safe-area-inset-bottom)) + 148px);
  max-width: min(360px, calc(100vw - 24px));
  padding: 11px 13px;
  border: 1px solid var(--labcontrol-deck-line);
  border-radius: 18px;
  background: rgba(5, 28, 25, 0.88);
  color: #f7fffb;
  box-shadow: 0 18px 42px rgba(3, 20, 18, 0.28);
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

html.labcontrol-deck-opaque {
  --labcontrol-deck-bg: #f8fbf8;
}

html.labcontrol-deck-opaque .labcontrol-floating-dock,
html.labcontrol-deck-opaque .labcontrol-tool-deck,
html.labcontrol-deck-opaque .labcontrol-panel {
  background: #f8fbf8;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html.labcontrol-deck-opaque .labcontrol-floating-dock::before,
html.labcontrol-deck-opaque .labcontrol-tool-deck::before,
html.labcontrol-deck-opaque .labcontrol-panel::before {
  opacity: 0.28;
}

html.labcontrol-theme-cosmic {
  --labcontrol-theme-bg: #010306;
  --labcontrol-theme-card: rgba(3, 13, 19, 0.9);
  --labcontrol-theme-card-soft: rgba(7, 21, 28, 0.82);
  --labcontrol-theme-line: rgba(137, 236, 232, 0.24);
  --labcontrol-theme-text: #f1fffb;
  --labcontrol-theme-muted: #b9dad4;
  --labcontrol-theme-accent: #7ee8f2;
  --labcontrol-deck-bg: rgba(3, 12, 18, 0.72);
  --labcontrol-deck-line: rgba(126, 232, 242, 0.28);
  --labcontrol-deck-text: #f1fffb;
  --labcontrol-deck-muted: #b9dad4;
  --labcontrol-deck-accent: #7ee8f2;
  color-scheme: dark;
}

html.labcontrol-theme-reef {
  --labcontrol-theme-bg: #031613;
  --labcontrol-theme-card: rgba(6, 35, 31, 0.88);
  --labcontrol-theme-card-soft: rgba(8, 47, 42, 0.78);
  --labcontrol-theme-line: rgba(119, 232, 200, 0.24);
  --labcontrol-theme-text: #f2fffb;
  --labcontrol-theme-muted: #bfe6db;
  --labcontrol-theme-accent: #8ee5c8;
  --labcontrol-deck-bg: rgba(5, 39, 35, 0.68);
  --labcontrol-deck-line: rgba(142, 229, 200, 0.28);
  --labcontrol-deck-text: #f2fffb;
  --labcontrol-deck-muted: #c1e9df;
  --labcontrol-deck-accent: #8ee5c8;
  color-scheme: dark;
}

html.labcontrol-theme-pearl {
  --labcontrol-theme-bg: #f5f8f4;
  --labcontrol-theme-card: rgba(255, 255, 255, 0.86);
  --labcontrol-theme-card-soft: rgba(246, 253, 249, 0.86);
  --labcontrol-theme-line: rgba(15, 93, 82, 0.16);
  --labcontrol-theme-text: #17342f;
  --labcontrol-theme-muted: #526964;
  --labcontrol-theme-accent: #0b8f7b;
  --labcontrol-deck-bg: rgba(255, 255, 255, 0.7);
  --labcontrol-deck-line: rgba(15, 93, 82, 0.18);
  --labcontrol-deck-text: #17342f;
  --labcontrol-deck-muted: #526964;
  color-scheme: light;
}

html.labcontrol-theme-cosmic body,
html.labcontrol-theme-cosmic #root,
html.labcontrol-theme-reef body,
html.labcontrol-theme-reef #root,
html.labcontrol-theme-pearl body,
html.labcontrol-theme-pearl #root {
  min-height: 100vh;
  color: var(--labcontrol-theme-text) !important;
  background:
    radial-gradient(circle at 16% 12%, rgba(126, 232, 242, 0.16), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(217, 105, 90, 0.14), transparent 30%),
    radial-gradient(circle at 50% 92%, rgba(86, 190, 164, 0.16), transparent 32%),
    var(--labcontrol-theme-bg) !important;
}

html.labcontrol-theme-pearl body,
html.labcontrol-theme-pearl #root {
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 206, 195, 0.32), transparent 30%),
    radial-gradient(circle at 86% 10%, rgba(127, 210, 194, 0.26), transparent 30%),
    linear-gradient(180deg, #fbfdf9, #eef7f1) !important;
}

html.labcontrol-theme-cosmic body::before,
html.labcontrol-theme-cosmic body::after,
html.labcontrol-theme-reef body::before,
html.labcontrol-theme-reef body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

html.labcontrol-theme-cosmic body::before,
html.labcontrol-theme-reef body::before {
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.82) 0 1px, transparent 2px),
    radial-gradient(circle at 76% 28%, rgba(126, 232, 242, 0.72) 0 1px, transparent 2px),
    radial-gradient(circle at 42% 74%, rgba(255, 182, 168, 0.66) 0 1px, transparent 2px);
  background-size: 220px 220px, 280px 280px, 340px 340px;
  opacity: 0.42;
  animation: labcontrol-star-drift 16s ease-in-out infinite alternate;
}

html.labcontrol-theme-cosmic body::after,
html.labcontrol-theme-reef body::after {
  background:
    linear-gradient(115deg, transparent 20%, rgba(126, 232, 242, 0.08), transparent 42%),
    radial-gradient(ellipse at 50% 120%, rgba(118, 215, 191, 0.18), transparent 58%);
  mix-blend-mode: screen;
  opacity: 0.7;
  animation: labcontrol-aurora-flow 18s ease-in-out infinite alternate;
}

@keyframes labcontrol-star-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-14px, 10px, 0) scale(1.03); }
}

@keyframes labcontrol-aurora-flow {
  from { transform: translate3d(-2%, 0, 0) skewX(-3deg); }
  to { transform: translate3d(2%, -1%, 0) skewX(3deg); }
}

html.labcontrol-theme-cosmic #root > *,
html.labcontrol-theme-reef #root > *,
html.labcontrol-theme-pearl #root > * {
  position: relative;
  z-index: 1;
}

html.labcontrol-theme-cosmic [class*="bg-white"],
html.labcontrol-theme-cosmic [class*="bg-slate-50"],
html.labcontrol-theme-cosmic [class*="bg-slate-100"],
html.labcontrol-theme-cosmic [class*="bg-gray-50"],
html.labcontrol-theme-cosmic [class*="bg-gray-100"],
html.labcontrol-theme-reef [class*="bg-white"],
html.labcontrol-theme-reef [class*="bg-slate-50"],
html.labcontrol-theme-reef [class*="bg-slate-100"],
html.labcontrol-theme-reef [class*="bg-gray-50"],
html.labcontrol-theme-reef [class*="bg-gray-100"] {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    var(--labcontrol-theme-card) !important;
  color: var(--labcontrol-theme-text) !important;
  border-color: var(--labcontrol-theme-line) !important;
}

html.labcontrol-theme-pearl [class*="bg-white"],
html.labcontrol-theme-pearl [class*="bg-slate-50"],
html.labcontrol-theme-pearl [class*="bg-slate-100"],
html.labcontrol-theme-pearl [class*="bg-gray-50"],
html.labcontrol-theme-pearl [class*="bg-gray-100"] {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(245, 255, 250, 0.72)),
    var(--labcontrol-theme-card) !important;
  color: var(--labcontrol-theme-text) !important;
  border-color: var(--labcontrol-theme-line) !important;
}

html.labcontrol-theme-cosmic [class*="border-slate"],
html.labcontrol-theme-cosmic [class*="border-gray"],
html.labcontrol-theme-reef [class*="border-slate"],
html.labcontrol-theme-reef [class*="border-gray"],
html.labcontrol-theme-pearl [class*="border-slate"],
html.labcontrol-theme-pearl [class*="border-gray"] {
  border-color: var(--labcontrol-theme-line) !important;
}

html.labcontrol-theme-cosmic [class*="text-slate-9"],
html.labcontrol-theme-cosmic [class*="text-slate-8"],
html.labcontrol-theme-cosmic [class*="text-slate-7"],
html.labcontrol-theme-cosmic [class*="text-gray-9"],
html.labcontrol-theme-cosmic [class*="text-gray-8"],
html.labcontrol-theme-cosmic [class*="text-gray-7"],
html.labcontrol-theme-reef [class*="text-slate-9"],
html.labcontrol-theme-reef [class*="text-slate-8"],
html.labcontrol-theme-reef [class*="text-slate-7"],
html.labcontrol-theme-reef [class*="text-gray-9"],
html.labcontrol-theme-reef [class*="text-gray-8"],
html.labcontrol-theme-reef [class*="text-gray-7"] {
  color: var(--labcontrol-theme-text) !important;
}

html.labcontrol-theme-cosmic [class*="text-slate-6"],
html.labcontrol-theme-cosmic [class*="text-slate-5"],
html.labcontrol-theme-cosmic [class*="text-slate-4"],
html.labcontrol-theme-cosmic [class*="text-gray-6"],
html.labcontrol-theme-cosmic [class*="text-gray-5"],
html.labcontrol-theme-cosmic [class*="text-gray-4"],
html.labcontrol-theme-reef [class*="text-slate-6"],
html.labcontrol-theme-reef [class*="text-slate-5"],
html.labcontrol-theme-reef [class*="text-slate-4"],
html.labcontrol-theme-reef [class*="text-gray-6"],
html.labcontrol-theme-reef [class*="text-gray-5"],
html.labcontrol-theme-reef [class*="text-gray-4"] {
  color: var(--labcontrol-theme-muted) !important;
}

html.labcontrol-theme-pearl [class*="text-slate-9"],
html.labcontrol-theme-pearl [class*="text-slate-8"],
html.labcontrol-theme-pearl [class*="text-slate-7"],
html.labcontrol-theme-pearl [class*="text-gray-9"],
html.labcontrol-theme-pearl [class*="text-gray-8"],
html.labcontrol-theme-pearl [class*="text-gray-7"] {
  color: #17342f !important;
}

html.labcontrol-theme-pearl [class*="text-slate-6"],
html.labcontrol-theme-pearl [class*="text-slate-5"],
html.labcontrol-theme-pearl [class*="text-slate-4"],
html.labcontrol-theme-pearl [class*="text-gray-6"],
html.labcontrol-theme-pearl [class*="text-gray-5"],
html.labcontrol-theme-pearl [class*="text-gray-4"] {
  color: #526964 !important;
}

html.labcontrol-theme-cosmic input,
html.labcontrol-theme-cosmic textarea,
html.labcontrol-theme-cosmic select,
html.labcontrol-theme-reef input,
html.labcontrol-theme-reef textarea,
html.labcontrol-theme-reef select {
  border-color: var(--labcontrol-theme-line) !important;
  background: rgba(0, 0, 0, 0.62) !important;
  color: var(--labcontrol-theme-text) !important;
}

html.labcontrol-theme-pearl input,
html.labcontrol-theme-pearl textarea,
html.labcontrol-theme-pearl select {
  border-color: var(--labcontrol-theme-line) !important;
  background: rgba(255, 255, 255, 0.84) !important;
  color: var(--labcontrol-theme-text) !important;
}

html.labcontrol-theme-cosmic input::placeholder,
html.labcontrol-theme-cosmic textarea::placeholder,
html.labcontrol-theme-reef input::placeholder,
html.labcontrol-theme-reef textarea::placeholder,
html.labcontrol-theme-pearl input::placeholder,
html.labcontrol-theme-pearl textarea::placeholder {
  color: var(--labcontrol-theme-muted) !important;
  opacity: 1 !important;
}

html.labcontrol-theme-cosmic .labcontrol-floating-dock,
html.labcontrol-theme-cosmic .labcontrol-tool-deck,
html.labcontrol-theme-cosmic .labcontrol-panel,
html.labcontrol-theme-reef .labcontrol-floating-dock,
html.labcontrol-theme-reef .labcontrol-tool-deck,
html.labcontrol-theme-reef .labcontrol-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    var(--labcontrol-deck-bg);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html.labcontrol-theme-cosmic .labcontrol-deck-trigger,
html.labcontrol-theme-cosmic .labcontrol-chat-fab,
html.labcontrol-theme-cosmic .labcontrol-search-mini,
html.labcontrol-theme-cosmic .labcontrol-tool-button,
html.labcontrol-theme-cosmic .labcontrol-panel-close,
html.labcontrol-theme-cosmic .labcontrol-choice,
html.labcontrol-theme-cosmic .labcontrol-result,
html.labcontrol-theme-cosmic .labcontrol-access-action,
html.labcontrol-theme-cosmic .labcontrol-dock-search input,
html.labcontrol-theme-cosmic .labcontrol-search-box input,
html.labcontrol-theme-reef .labcontrol-deck-trigger,
html.labcontrol-theme-reef .labcontrol-chat-fab,
html.labcontrol-theme-reef .labcontrol-search-mini,
html.labcontrol-theme-reef .labcontrol-tool-button,
html.labcontrol-theme-reef .labcontrol-panel-close,
html.labcontrol-theme-reef .labcontrol-choice,
html.labcontrol-theme-reef .labcontrol-result,
html.labcontrol-theme-reef .labcontrol-access-action,
html.labcontrol-theme-reef .labcontrol-dock-search input,
html.labcontrol-theme-reef .labcontrol-search-box input {
  border-color: var(--labcontrol-deck-line);
  background: rgba(4, 16, 22, 0.66);
  color: var(--labcontrol-deck-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html.labcontrol-theme-cosmic .labcontrol-tool-button[aria-pressed="true"],
html.labcontrol-theme-cosmic .labcontrol-choice[aria-pressed="true"],
html.labcontrol-theme-reef .labcontrol-tool-button[aria-pressed="true"],
html.labcontrol-theme-reef .labcontrol-choice[aria-pressed="true"] {
  background: linear-gradient(145deg, rgba(126, 232, 242, 0.2), rgba(217, 105, 90, 0.1));
  color: #f8fffb;
}

html.labcontrol-hc-mode body,
html.labcontrol-hc-mode #root {
  color: #ffffff !important;
  background: #000000 !important;
}

html.labcontrol-hc-mode .labcontrol-floating-dock,
html.labcontrol-hc-mode .labcontrol-tool-deck,
html.labcontrol-hc-mode .labcontrol-panel,
html.labcontrol-hc-mode .labcontrol-deck-trigger,
html.labcontrol-hc-mode .labcontrol-chat-fab,
html.labcontrol-hc-mode .labcontrol-search-mini,
html.labcontrol-hc-mode .labcontrol-tool-button,
html.labcontrol-hc-mode .labcontrol-choice,
html.labcontrol-hc-mode .labcontrol-result,
html.labcontrol-hc-mode .labcontrol-access-action,
html.labcontrol-hc-mode input,
html.labcontrol-hc-mode textarea,
html.labcontrol-hc-mode select {
  border-color: #ffffff !important;
  background: #000000 !important;
  color: #ffffff !important;
}

@media (max-width: 640px) {
  .labcontrol-floating-dock {
    left: 10px;
    right: 10px;
    top: auto;
    bottom: max(10px, env(safe-area-inset-bottom));
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    border-radius: 22px;
    padding: 7px;
  }

  .labcontrol-deck-trigger,
  .labcontrol-chat-fab,
  .labcontrol-search-mini {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 16px;
  }

  .labcontrol-dock-search input {
    height: 46px;
    font-size: 0.8rem;
  }

  .labcontrol-tool-deck {
    left: 10px;
    right: 10px;
    top: auto;
    bottom: calc(max(10px, env(safe-area-inset-bottom)) + 66px);
    width: auto;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-radius: 22px;
  }

  .labcontrol-tool-button {
    min-height: 52px;
    padding: 7px 3px;
    font-size: 0.62rem;
    border-radius: 16px;
  }

  .labcontrol-panel {
    left: 10px;
    right: 10px;
    top: auto;
    bottom: calc(max(10px, env(safe-area-inset-bottom)) + 132px);
    width: auto;
    max-height: calc(100vh - 152px);
    border-radius: 22px;
  }

  .labcontrol-panel-body {
    max-height: calc(100vh - 220px);
    padding: 12px;
  }

  .labcontrol-choice-grid,
  .labcontrol-access-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .labcontrol-floating-dock {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 6px;
  }

  .labcontrol-dock-search input {
    padding-right: 10px;
    padding-left: 34px;
  }

  .labcontrol-tool-deck {
    gap: 6px;
    padding: 7px;
  }

  .labcontrol-tool-button span {
    display: none;
  }

  .labcontrol-tool-button {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .labcontrol-tool-deck,
  .labcontrol-panel,
  .labcontrol-status,
  .labcontrol-deck-trigger,
  .labcontrol-chat-fab,
  .labcontrol-search-mini,
  .labcontrol-tool-button,
  .labcontrol-choice,
  .labcontrol-result,
  .labcontrol-access-action {
    animation: none !important;
    transition: none !important;
  }

  html.labcontrol-theme-cosmic body::before,
  html.labcontrol-theme-cosmic body::after,
  html.labcontrol-theme-reef body::before,
  html.labcontrol-theme-reef body::after {
    animation: none !important;
  }
}

html.labcontrol-login-screen .labcontrol-floating-dock,
html.labcontrol-login-screen .labcontrol-tool-deck,
html.labcontrol-login-screen .labcontrol-panel,
html.labcontrol-login-screen .labcontrol-status,
html.labcontrol-app-loading .labcontrol-floating-dock,
html.labcontrol-app-loading .labcontrol-tool-deck,
html.labcontrol-app-loading .labcontrol-panel,
html.labcontrol-app-loading .labcontrol-status {
  display: none !important;
  pointer-events: none !important;
}

body:has(input#username[name="username"]) .labcontrol-floating-dock,
body:has(input#username[name="username"]) .labcontrol-tool-deck,
body:has(input#username[name="username"]) .labcontrol-panel,
body:has(input#username[name="username"]) .labcontrol-status {
  display: none !important;
  pointer-events: none !important;
}

html.labcontrol-login-screen section:has(input#username[name="username"]),
body:has(input#username[name="username"]) section:has(input#username[name="username"]) {
  scrollbar-gutter: stable;
}

@media (max-width: 1023px) {
  html.labcontrol-login-screen,
  html.labcontrol-login-screen body,
  body:has(input#username[name="username"]) {
    height: auto !important;
    min-height: 100%;
    overflow-y: auto !important;
    overscroll-behavior-y: auto;
  }

  html.labcontrol-login-screen #root,
  body:has(input#username[name="username"]) #root,
  html.labcontrol-login-screen #root > div,
  body:has(input#username[name="username"]) #root > div {
    height: auto !important;
    min-height: 100dvh;
    overflow: visible !important;
  }

  html.labcontrol-login-screen section:has(input#username[name="username"]),
  body:has(input#username[name="username"]) section:has(input#username[name="username"]) {
    height: auto !important;
    min-height: 100dvh !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }
}

@media (min-width: 1024px) {
  html.labcontrol-login-screen,
  html.labcontrol-login-screen body,
  body:has(input#username[name="username"]) {
    height: 100% !important;
    min-height: 100%;
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  html.labcontrol-login-screen #root,
  body:has(input#username[name="username"]) #root,
  html.labcontrol-login-screen #root > div,
  body:has(input#username[name="username"]) #root > div {
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
  }

  html.labcontrol-login-screen section:has(input#username[name="username"]),
  body:has(input#username[name="username"]) section:has(input#username[name="username"]) {
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }
}

html.labcontrol-dock-ready:not(.labcontrol-login-screen) header.sticky {
  position: static !important;
}

html.labcontrol-dock-ready:not(.labcontrol-login-screen) header form:has(input[aria-label="Busca rápida por item, código ou local"]),
html.labcontrol-dock-ready:not(.labcontrol-login-screen) header button#notification-bell,
html.labcontrol-dock-ready:not(.labcontrol-login-screen) header button[title="Notificações"],
html.labcontrol-dock-ready:not(.labcontrol-login-screen) header button[aria-label="Abrir notificações"],
html.labcontrol-dock-ready:not(.labcontrol-login-screen) header button[title="Tema de superfície"],
html.labcontrol-dock-ready:not(.labcontrol-login-screen) header button[aria-label="Ativar modo claro"],
html.labcontrol-dock-ready:not(.labcontrol-login-screen) header button[aria-label="Ativar modo escuro"] {
  display: none !important;
}
