.lightsketch-trial-page .site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
}

.lightsketch-trial-page .mossan-app-header__inner {
  position: relative;
  height: var(--app-header-height);
  min-height: var(--app-header-height);
  padding: 0 var(--app-header-padding-x);
  flex-direction: row;
  align-items: center;
}

.lightsketch-trial-page .storage-notice {
  position: fixed;
  top: var(--app-header-height);
  left: 0;
  z-index: 30;
  width: 100%;
  --trial-storage-notice-height: 44px;
}

.lightsketch-trial-page .top-operation-bar {
  position: fixed;
  top: calc(var(--app-header-height) + 44px);
  left: 0;
  z-index: 29;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  width: 100%;
  height: 64px;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 1px solid rgba(150, 164, 184, 0.34);
  background: linear-gradient(180deg, #171d26 0%, #0e141c 100%);
  padding: 8px 16px;
}

.lightsketch-trial-page .top-project-controls {
  display: grid;
  grid-template-columns: auto minmax(200px, 280px) auto;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  width: auto;
}

.lightsketch-trial-page .top-project-summary {
  display: grid;
  align-content: center;
  gap: 2px;
  min-width: 0;
}

.lightsketch-trial-page .top-project-controls label,
.lightsketch-trial-page .top-project-controls .top-project-heading {
  color: #ead7b3;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.lightsketch-trial-page .project-name-display {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  color: #f2f6fb;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightsketch-trial-page .top-project-controls input {
  width: 100%;
  min-height: 34px;
  border-color: rgba(150, 164, 184, 0.42);
  background: #10151d;
  color: #f2f6fb;
}

.lightsketch-trial-page .top-project-controls button {
  min-height: 34px;
  border-color: rgba(150, 164, 184, 0.42);
  background: #18212c;
  color: #f2f6fb;
  white-space: nowrap;
}

.lightsketch-trial-page .top-project-controls button:hover {
  border-color: #1683ff;
  background: rgba(22, 131, 255, 0.2);
}

.lightsketch-trial-page .project-icon-menu {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: 12px;
  border-right: 1px solid rgba(180, 194, 211, 0.62);
  padding: 0 20px 0 2px;
}

.lightsketch-trial-page .top-project-controls .project-icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #dce6f2;
  font-size: 22px;
}

.lightsketch-trial-page .top-project-controls .project-icon-button-primary {
  border: 0;
  background: transparent;
  color: #dce6f2;
}

.lightsketch-trial-page .top-project-controls .project-icon-button:hover:not(:disabled),
.lightsketch-trial-page .top-project-controls .project-icon-button-primary:hover:not(:disabled) {
  border: 0;
  background: transparent;
  color: #39a0ff;
}

.lightsketch-trial-page .top-project-controls .project-icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.lightsketch-trial-page .top-project-controls #saveStatus {
  color: #9eacbd;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.lightsketch-trial-page .top-operation-divider {
  flex: 0 0 1px;
  width: 1px;
  height: 38px;
  background: rgba(180, 194, 211, 0.62);
}

.lightsketch-trial-page .top-operation-bar .workspace-actions {
  position: static;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 0 760px;
  width: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.lightsketch-trial-page .top-operation-bar .workspace-actions-title {
  min-height: 0;
  cursor: default;
  touch-action: auto;
}

.lightsketch-trial-page .top-operation-bar .workspace-actions-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.lightsketch-trial-page .top-operation-bar .workspace-action-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
}

.lightsketch-trial-page .top-operation-bar .workspace-action-group button {
  width: 126px;
  min-width: 126px;
}

.lightsketch-trial-page .top-operation-bar .workspace-actions-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  border-color: rgba(150, 164, 184, 0.42);
  background: #18212c;
  color: #f2f6fb;
}

.lightsketch-trial-page .top-operation-bar .workspace-actions-buttons button i {
  flex: 0 0 auto;
  font-size: 14px;
}

.lightsketch-trial-page .top-operation-bar .workspace-actions-buttons button:hover:not(:disabled) {
  border-color: #1683ff;
  background: rgba(22, 131, 255, 0.2);
}

.lightsketch-trial-page .top-operation-bar .workspace-actions-buttons button.is-active {
  border-color: #1683ff;
  background: rgba(22, 131, 255, 0.28);
  color: #ffffff;
}

.lightsketch-trial-page .top-operation-bar .workspace-actions-buttons .danger-action {
  border-color: rgba(255, 120, 120, 0.54);
  color: #ffb3b3;
}

.lightsketch-trial-page .top-operation-bar .card-kicker {
  background: rgba(22, 131, 255, 0.18);
  color: #79b8ff;
}

.lightsketch-trial-page .app-shell {
  top: calc(var(--app-header-height) + 108px);
}

.lightsketch-trial-page .controls-panel {
  grid-template-rows: minmax(260px, 0.95fr) minmax(270px, 1.05fr);
  gap: 10px;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.lightsketch-trial-page .sidebar-project-controls {
  display: none;
}

.parts-editor-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(150, 164, 184, 0.34);
  border-radius: 8px;
  background: linear-gradient(180deg, #171d26 0%, #0e141c 100%);
}

.parts-editor-card-heading {
  min-height: 42px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(150, 164, 184, 0.18);
  background: linear-gradient(180deg, #222b37 0%, #19212c 100%);
}

.parts-editor-card-heading h2 {
  margin: 0;
  color: #f2f6fb;
  font-size: 16px;
}

.parts-editor-card-heading i {
  margin-right: 6px;
  color: #dbe5f3;
}

.parts-editor-layout {
  display: grid;
  grid-template-columns: minmax(170px, 0.9fr) minmax(220px, 1.1fr);
  min-height: 0;
}

.object-list-pane {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  padding: 10px;
  border-right: 1px solid rgba(150, 164, 184, 0.18);
  background: #10151d;
}

.object-list-pane h3 {
  margin: 0 0 8px;
  color: #dbe5f3;
  font-size: 12px;
}

.part-list {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 0;
  overflow-y: auto;
}

.part-list-row {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #fff8ee;
}

.part-list-row:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.part-list-row.is-selected {
  border-color: rgba(22, 131, 255, 0.78);
  background: rgba(22, 131, 255, 0.2);
}

.part-list-row.is-hidden-part .part-list-select {
  opacity: 0.5;
}

.part-visibility-button {
  display: grid;
  place-items: center;
  min-width: 28px;
  min-height: 32px;
  border: 0;
  background: transparent;
  color: #dbeafe;
  padding: 0;
}

.part-visibility-button:hover {
  background: transparent;
  color: #ffffff;
}

.visibility-eye-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 14px;
  transform: translateY(-1px);
}

.visibility-eye-icon::before {
  position: absolute;
  left: 2px;
  top: 1px;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 75% 0;
  background: radial-gradient(circle at center, currentColor 0 2.5px, transparent 3px);
  content: "";
  transform: rotate(45deg);
}

.visibility-eye-icon::after {
  display: none;
  content: "";
}

.visibility-eye-icon.is-hidden {
  color: #94a3b8;
}

.visibility-eye-icon.is-hidden::after {
  position: absolute;
  left: -2px;
  top: 6px;
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
  transform-origin: center;
}

.part-list-select {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 4px 2px;
  text-align: left;
}

.part-list-select:hover {
  background: transparent;
}

.part-list-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.35;
}

.object-list-pane .sidebar-part-actions {
  margin: 0;
  padding: 10px 0 0;
  border: 0;
  background: transparent;
}

.object-list-pane #partAddHost button {
  width: 100%;
  max-width: 126px;
  min-height: 32px;
  border-color: rgba(22, 131, 255, 0.7);
  background: rgba(22, 131, 255, 0.12);
  color: #f2f6fb;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.object-list-pane #partAddHost button:hover {
  border-color: #1683ff;
  background: rgba(22, 131, 255, 0.22);
}

.lightsketch-trial-page .parts-editor-card .sketch-editor-panel.is-docked {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: auto;
  min-width: 0;
  max-height: none;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #10151d;
  box-shadow: none;
  padding: 10px;
}

.lightsketch-trial-page .parts-editor-card .sketch-editor-panel.is-docked .photometry-editor-heading {
  cursor: default;
  touch-action: auto;
}

.lightsketch-trial-page .parts-editor-card #closePartEditorBtn {
  display: none;
}

.lightsketch-trial-page .parts-editor-card .object-settings-heading h3 {
  margin: 0;
  color: #dbe5f3;
  font-size: 12px;
}

.part-name-editor-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #dbe5f3;
  font-size: 12px;
  font-weight: 800;
}

.part-name-editor-field input {
  min-width: 0;
  pointer-events: auto;
  user-select: text;
  cursor: text;
}

#savePartNameBtn,
#deletePartEditorBtn {
  width: 126px;
  min-height: 32px;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

#savePartNameBtn {
  border-color: rgba(65, 160, 255, 0.64);
  color: #b9dcff;
}

.object-settings-save-row {
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.object-settings-delete-row {
  display: flex;
  flex: 1 0 auto;
  align-items: flex-end;
  justify-content: flex-end;
}

#deletePartEditorBtn {
  border-color: rgba(255, 120, 120, 0.54);
  color: #ffb3b3;
}

#deletePartEditorBtn.is-hidden {
  display: none;
}

.lightsketch-trial-page .parts-editor-card .editor-control-group.is-hidden {
  display: none !important;
}

.lightsketch-trial-page .parts-editor-card .sketch-editor-panel.is-part-editor-empty .editor-control-group {
  display: none;
}

.lightsketch-trial-page .parts-editor-card :is(
  .source-settings,
  .optic-position-settings,
  .optic-transform-settings,
  .arc-settings,
  .mirror-settings,
  .lens-settings
) {
  padding-inline: 0;
}

.lightsketch-trial-page .parts-editor-card .source-settings {
  gap: 5px;
}

.lightsketch-trial-page .parts-editor-card .source-position-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.lightsketch-trial-page .parts-editor-card :is(.source-position-row, .optic-position-row) {
  display: grid;
  grid-template-columns: 58px auto minmax(0, 1fr) auto minmax(0, 1fr) 28px;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.lightsketch-trial-page .parts-editor-card :is(.source-position-label, .optic-position-label) {
  color: #f5f5f5;
  font-size: 11px;
  font-weight: 800;
  line-height: normal;
  white-space: nowrap;
}

.lightsketch-trial-page .parts-editor-card :is(.source-position-row, .optic-position-row) .compact-field {
  display: contents;
}

.lightsketch-trial-page .parts-editor-card :is(.source-position-row, .optic-position-row) input {
  min-width: 0;
}

.lightsketch-trial-page .parts-editor-card :is(.source-position-row, .optic-position-row) .slider-reset-button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  min-width: 28px;
  min-height: 28px;
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff8ee;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  padding: 0;
}

.lightsketch-trial-page .parts-editor-card .optic-position-settings:not(.is-hidden) ~ .optic-transform-settings:not(.is-hidden),
.lightsketch-trial-page .parts-editor-card .optic-position-settings:not(.is-hidden) ~ .arc-settings:not(.is-hidden),
.lightsketch-trial-page .parts-editor-card .optic-position-settings:not(.is-hidden) ~ .mirror-settings:not(.is-hidden),
.lightsketch-trial-page .parts-editor-card .optic-position-settings:not(.is-hidden) ~ .lens-settings:not(.is-hidden) {
  border-top: 0;
  padding-top: 0;
}

.lightsketch-trial-page .parts-editor-card .source-settings .parameter-field,
.lightsketch-trial-page .parts-editor-card .optic-transform-settings .parameter-field,
.lightsketch-trial-page .parts-editor-card .arc-settings .parameter-field,
.lightsketch-trial-page .parts-editor-card .mirror-settings .parameter-field,
.lightsketch-trial-page .parts-editor-card .lens-settings .parameter-field {
  grid-template-columns: 58px 64px minmax(70px, 1fr) 28px;
  align-items: center;
  gap: 6px;
}

.lightsketch-trial-page .parts-editor-card .source-settings .parameter-row,
.lightsketch-trial-page .parts-editor-card .source-settings .slider-reset-row,
.lightsketch-trial-page .parts-editor-card .optic-transform-settings .parameter-row,
.lightsketch-trial-page .parts-editor-card .optic-transform-settings .slider-reset-row,
.lightsketch-trial-page .parts-editor-card .arc-settings .parameter-row,
.lightsketch-trial-page .parts-editor-card .arc-settings .slider-reset-row,
.lightsketch-trial-page .parts-editor-card .mirror-settings .parameter-row,
.lightsketch-trial-page .parts-editor-card .mirror-settings .slider-reset-row,
.lightsketch-trial-page .parts-editor-card .lens-settings .parameter-row,
.lightsketch-trial-page .parts-editor-card .lens-settings .slider-reset-row {
  display: contents;
}

.lightsketch-trial-page .parts-editor-card .source-settings .number-value,
.lightsketch-trial-page .parts-editor-card .optic-transform-settings .number-value,
.lightsketch-trial-page .parts-editor-card .arc-settings .number-value,
.lightsketch-trial-page .parts-editor-card .mirror-settings .number-value,
.lightsketch-trial-page .parts-editor-card .lens-settings .number-value {
  width: 64px;
  min-width: 0;
}

.lightsketch-trial-page .parts-editor-card .source-settings input[type="range"],
.lightsketch-trial-page .parts-editor-card .optic-transform-settings input[type="range"],
.lightsketch-trial-page .parts-editor-card .arc-settings input[type="range"],
.lightsketch-trial-page .parts-editor-card .mirror-settings input[type="range"],
.lightsketch-trial-page .parts-editor-card .lens-settings input[type="range"] {
  width: 100%;
  min-width: 70px;
}

.lightsketch-trial-page .parts-editor-card .source-settings .slider-reset-row button,
.lightsketch-trial-page .parts-editor-card .optic-transform-settings .slider-reset-row button,
.lightsketch-trial-page .parts-editor-card .arc-settings .slider-reset-row button,
.lightsketch-trial-page .parts-editor-card .mirror-settings .slider-reset-row button,
.lightsketch-trial-page .parts-editor-card .lens-settings .slider-reset-row button {
  width: 28px;
  min-width: 28px;
}

.lightsketch-trial-page .controls-panel .polar-dock {
  overflow: hidden;
  border: 1px solid rgba(150, 164, 184, 0.34);
  border-radius: 8px;
  background: linear-gradient(180deg, #171d26 0%, #0e141c 100%);
  gap: 0;
  padding: 0;
}

.lightsketch-trial-page .controls-panel .polar-dock .floating-result-title {
  min-height: 42px;
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(150, 164, 184, 0.18);
  background: linear-gradient(180deg, #222b37 0%, #19212c 100%);
  color: #f2f6fb;
  font-size: 16px;
  font-weight: 700;
}

.lightsketch-trial-page .controls-panel .polar-dock .floating-result-title i {
  margin-right: 6px;
  color: #dbe5f3;
}

.lightsketch-trial-page .polar-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #10151d;
}

.lightsketch-trial-page .controls-panel .polar-dock #polarCanvas {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: #10151d;
}

.lightsketch-trial-page .polar-legend {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 13px;
  min-width: 126px;
  max-width: 160px;
  overflow-y: auto;
  padding: 10px 12px;
  border-left: 1px solid rgba(150, 164, 184, 0.14);
  color: #dbe5f3;
  font-size: 13px;
  font-weight: 800;
}

.lightsketch-trial-page .polar-legend-title {
  width: 100%;
  margin: 0;
  color: #9eacbd;
  font-size: 11px;
  line-height: 1.35;
}

.lightsketch-trial-page .polar-legend-item {
  display: grid;
  grid-template-columns: 11px minmax(0, 1fr) 36px;
  align-items: center;
  width: 100%;
  gap: 6px;
  white-space: nowrap;
}

.lightsketch-trial-page .polar-legend-item:not(.is-total-item) > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightsketch-trial-page .polar-legend-item strong {
  justify-self: end;
  width: 36px;
  color: #ffffff;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.lightsketch-trial-page .polar-legend-item i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.lightsketch-trial-page .polar-legend-item.is-total-item {
  grid-template-columns: 16px minmax(0, 1fr);
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid rgba(150, 164, 184, 0.22);
}

.lightsketch-trial-page .polar-legend .is-total {
  width: 16px;
  height: 0;
  border-top: 3px solid #f8fafc;
  border-radius: 0;
  background: transparent;
}

.lightsketch-trial-page .scene-canvas-shell {
  grid-template-rows: minmax(0, 1fr);
  border-color: rgba(150, 164, 184, 0.34);
  background: linear-gradient(180deg, #171d26 0%, #0e141c 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.lightsketch-trial-page #sceneCanvas {
  background: #10151d;
}

.lightsketch-trial-page .contextual-object-actions {
  position: absolute;
  z-index: 24;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(150, 164, 184, 0.5);
  border-radius: 8px;
  background: rgba(16, 21, 29, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
  padding: 5px 6px 6px;
}

.lightsketch-trial-page .contextual-object-actions.is-hidden {
  display: none;
}

.lightsketch-trial-page .contextual-object-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 128px;
  min-width: 128px;
  min-height: 34px;
  border-color: rgba(150, 164, 184, 0.5);
  background: #18212c;
  color: #f2f6fb;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  padding: 5px 10px;
  white-space: nowrap;
}

.lightsketch-trial-page .contextual-object-actions-handle {
  display: grid;
  place-items: center;
  width: 100%;
  height: 18px;
  color: #8fa0b4;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.lightsketch-trial-page .contextual-object-actions-handle:active {
  cursor: grabbing;
}

.lightsketch-trial-page .contextual-object-actions button.is-active {
  border-color: #1683ff;
  background: rgba(22, 131, 255, 0.28);
}

.lightsketch-trial-page .contextual-object-actions .danger-action {
  border-color: rgba(255, 120, 120, 0.54);
  color: #ffb3b3;
}

.lightsketch-trial-page .contextual-object-actions button:disabled,
.lightsketch-trial-page .contextual-object-actions button:disabled:hover {
  border-color: rgba(150, 164, 184, 0.24);
  background: #18212c;
  color: #718096;
  cursor: not-allowed;
  opacity: 0.58;
}

@media (max-width: 1040px) {
  .lightsketch-trial-page {
    padding-top: var(--app-header-height);
  }

  .lightsketch-trial-page .storage-notice,
  .lightsketch-trial-page .top-operation-bar {
    position: static;
  }

  .lightsketch-trial-page .top-operation-bar {
    height: 64px;
  }

  .lightsketch-trial-page .top-operation-bar .workspace-actions-buttons {
    grid-template-columns: repeat(10, minmax(68px, 1fr));
    width: 100%;
  }

  .lightsketch-trial-page .app-shell {
    position: static;
  }
}

@media (max-width: 640px) {
  .lightsketch-trial-page .top-operation-bar .workspace-actions-buttons {
    grid-template-columns: repeat(10, minmax(68px, 1fr));
  }

  .parts-editor-layout {
    grid-template-columns: 1fr;
  }

  .object-list-pane {
    min-height: 240px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
}
