* { box-sizing: border-box; }
html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #020814;
}
button { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; cursor: pointer; }
#stage {
  position: absolute;
  width: 1920px;
  height: 1080px;
  transform-origin: top left;
  overflow: hidden;
}
.bg { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }
.slice { position: absolute; pointer-events: none; user-select: none; }
#viewport {
  position: absolute;
  left: 428px;
  top: 201px;
  z-index: 2;
  width: 1065px;
  height: 708px;
  overflow: hidden;
}
#viewport canvas { display: block; width: 100%; height: 100%; }
.viewport-status {
  position: absolute;
  left: 0;
  right: 0;
  top: 46%;
  margin: 0;
  text-align: center;
  color: #e7f7ff;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(80, 190, 255, 0.85);
  pointer-events: none;
}
.viewport-status[hidden] { display: none; }
.clock, .weather {
  position: absolute;
  top: 122px;
  z-index: 4;
  height: 47px;
  display: flex;
  align-items: center;
  color: #f4fbff;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(140, 210, 255, 0.55);
  pointer-events: none;
  white-space: nowrap;
}
.clock { left: 36px; }
.weather { right: 144px; gap: 8px; }
.weather i { display: flex; }
.weather svg { display: block; filter: drop-shadow(0 0 4px rgba(160, 220, 255, 0.8)); }
.imgbtn {
  position: absolute;
  z-index: 5;
  width: 149px;
  height: 50px;
  padding: 0;
  border: 0;
  background: transparent;
}
.imgbtn img { width: 149px; height: 50px; display: block; }
.imgbtn:hover { filter: brightness(1.08); }
.stage {
  position: absolute;
  z-index: 5;
  width: 118px;
  height: 133px;
  padding: 0;
  border: 0;
  background: transparent;
}
.stage img {
  position: absolute;
  left: 0;
  top: 0;
  width: 118px;
  height: 133px;
}
.on-icon { display: none; }
.stage.on .on-icon { display: block; }
.stage .cap {
  position: absolute;
  left: 0;
  right: 0;
  top: 86px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f4fbff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 20, 40, 0.9);
  pointer-events: none;
}
.stage.on .cap {
  color: #fff6dc;
  text-shadow: 0 1px 2px rgba(90, 48, 0, 0.8);
}
.view-produce { display: none; }
#stage[data-view="produce"] .view-produce { display: block; }
#stage[data-view="produce"] .view-design { visibility: hidden; pointer-events: none; }
.detail-card.suppressed { visibility: hidden; }

.catalog {
  position: absolute;
  left: 1514px;
  top: 193px;
  z-index: 4;
  width: 341px;
  height: 723px;
  display: flex;
  flex-direction: column;
  color: #eaf6ff;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: linear-gradient(180deg, rgba(10, 48, 102, 0.62) 0%, rgba(3, 18, 48, 0.8) 46%, rgba(2, 12, 32, 0.88) 100%);
  border: 1px solid rgba(104, 198, 255, 0.55);
  box-shadow: inset 0 0 28px rgba(36, 146, 226, 0.24), 0 0 16px rgba(0, 86, 168, 0.32);
  overflow: hidden;
}
.catalog[hidden] { display: none; }
.catalog::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(28, 118, 198, 0.22));
}
.catalog-head {
  height: 42px;
  flex: none;
  display: flex;
  align-items: center;
  padding: 0 8px 0 14px;
  background: linear-gradient(90deg, rgba(16, 118, 208, 0.96), rgba(10, 72, 156, 0.62) 68%, rgba(8, 40, 96, 0.15));
  border-bottom: 1px solid rgba(150, 220, 255, 0.45);
  box-shadow: 0 0 14px rgba(70, 180, 255, 0.28);
}
.catalog-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(170, 225, 255, 0.85);
}
.catalog-head h2::before {
  content: "";
  display: inline-block;
  margin-right: 8px;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #ffe56a;
  filter: drop-shadow(0 0 4px rgba(255, 214, 80, 0.9));
  vertical-align: 1px;
}
.catalog-close, .detail-close {
  margin-left: auto;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d7eeff;
  font-size: 18px;
  line-height: 22px;
}
.catalog-close:hover, .detail-close:hover { color: #fff; }
.catalog-body {
  flex: 1;
  overflow: auto;
  padding: 6px 0 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(90, 180, 255, 0.5) transparent;
}
.catalog-body::-webkit-scrollbar { width: 6px; }
.catalog-body::-webkit-scrollbar-thumb { background: rgba(90, 180, 255, 0.45); border-radius: 3px; }
.catalog-empty { margin: 18px 14px; color: #9ec4dc; font-size: 13px; }
.node > .kids { display: none; }
.node.open > .kids { display: block; }
.row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  height: 30px;
  border: 0;
  background: transparent;
  color: #d7ecff;
  font-size: 13px;
  text-align: left;
}
.row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .count { flex: none; color: #b7d4ea; }
.row.d0 { padding: 0 10px 0 10px; }
.row.d1 { padding: 0 10px 0 24px; }
.row.d2 { padding: 0 10px 0 42px; }
.row:hover { background: rgba(40, 140, 220, 0.16); }
.row.on {
  color: #fff;
  background: linear-gradient(90deg, rgba(0, 110, 200, 0.05), rgba(46, 176, 255, 0.5) 16%, rgba(18, 120, 210, 0.22) 78%, rgba(0, 70, 150, 0.04));
  box-shadow: inset 0 0 12px rgba(130, 214, 255, 0.32);
}
.chev {
  width: 0;
  height: 0;
  flex: none;
  border-style: solid;
  border-width: 4px 0 4px 6px;
  border-color: transparent transparent transparent #9fd8ff;
}
.chev.spacer { visibility: hidden; }
.tick {
  width: 14px;
  height: 14px;
  flex: none;
  padding: 0;
  border: 1px solid #8ad8ff;
  border-radius: 1px;
  background: rgba(6, 32, 68, 0.55);
  position: relative;
  box-shadow: inset 0 0 4px rgba(80, 180, 255, 0.35);
}
.tick.on::after, .tick.mixed::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #f4fbff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.tick.mixed::after {
  left: 2px;
  top: 5px;
  width: 8px;
  height: 0;
  border-width: 0 0 2px 0;
  transform: none;
}
.row .name { flex: 0 1 auto; cursor: text; }
.row .rename {
  flex: 1;
  min-width: 0;
  height: 22px;
  padding: 0 4px;
  color: #f4fbff;
  background: rgba(4, 24, 52, 0.95);
  border: 1px solid rgba(120, 200, 255, 0.75);
  font: inherit;
  font-size: 13px;
  outline: none;
}
.node.open > .row > .chev { transform: rotate(90deg); }
.ico { display: flex; flex: none; }
.ico svg { display: block; }
.pin { margin-left: 2px; }

.detail-card {
  position: absolute;
  left: 1184px;
  top: 196px;
  z-index: 4;
  width: 308px;
  padding: 28px 16px 14px;
  color: #eaf6ff;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: linear-gradient(180deg, rgba(8, 40, 86, 0.88), rgba(3, 16, 40, 0.92));
  border: 1px solid rgba(116, 204, 255, 0.55);
  box-shadow: inset 0 0 18px rgba(40, 150, 230, 0.22), 0 8px 22px rgba(0, 8, 24, 0.4);
}
.detail-card[hidden] { display: none; }
.detail-close {
  position: absolute;
  top: 1px;
  right: 2px;
  z-index: 1;
  width: 20px;
  height: 20px;
  margin: 0;
  font-size: 16px;
  line-height: 18px;
}
.detail-card .kv {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 22px;
}
.detail-card .kv:last-child { margin-bottom: 0; }
.detail-card .kv span {
  flex: none;
  width: 64px;
  color: #b9d6ec;
  white-space: nowrap;
  line-height: 28px;
}
.detail-card .kv b {
  flex: 1;
  min-width: 0;
  padding-top: 3px;
  font-weight: 500;
  color: #f5fbff;
  text-align: right;
  line-height: 22px;
  overflow-wrap: anywhere;
}
.detail-card select {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 28px;
  padding: 0 28px 0 8px;
  color: #f4fbff;
  background-color: rgba(4, 28, 62, 0.95);
  background-image: linear-gradient(180deg, rgba(90, 180, 255, 0.16), rgba(8, 36, 78, 0.2)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23d7f4ff' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  border: 1px solid rgba(120, 200, 255, 0.6);
  border-radius: 2px;
  box-shadow: inset 0 0 10px rgba(40, 150, 230, 0.28);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  appearance: none;
  cursor: pointer;
}
.detail-card select:hover,
.detail-card select:focus {
  border-color: rgba(170, 225, 255, 0.95);
}

.panel {
  position: absolute;
  z-index: 2;
  width: 387px;
  height: 225px;
  transform: scale(0.9);
  transform-origin: top left;
  color: #f4fbff;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
.panel-bg { position: absolute; inset: 0; width: 387px; height: 225px; pointer-events: none; }
.panel h2 {
  position: absolute;
  left: 40px;
  top: 0;
  margin: 0;
  height: 44px;
  line-height: 44px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #f7fcff;
  text-shadow: 0 0 8px rgba(160, 220, 255, 0.85);
}
.metrics {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50px;
  display: grid;
  grid-template-columns: 1.25fr 0.7fr 1.2fr;
  text-align: center;
}
.metrics em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: #d5e9f6;
  letter-spacing: 0.5px;
}
.metrics b {
  display: block;
  margin-top: 2px;
  font-family: Bahnschrift, "DIN Alternate", "Segoe UI", sans-serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(90, 210, 255, 0.95), 0 0 2px #ffffff;
}
.orgs {
  position: absolute;
  left: 18px;
  right: 12px;
  top: 118px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 10px;
}
.orgs em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: #c5dced;
}
.orgs strong {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  color: #f3f9ff;
  letter-spacing: 0.5px;
}
.bubble { position: absolute; width: 64px; height: 86px; }
.bubble img { position: absolute; left: 0; top: 0; width: 64px; height: 64px; pointer-events: none; }
.bubble b {
  position: absolute;
  left: 0;
  top: 20px;
  width: 64px;
  text-align: center;
  font-family: Bahnschrift, "DIN Alternate", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 0 6px rgba(190, 235, 255, 0.95);
}
.bubble span {
  position: absolute;
  left: 50%;
  top: 62px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 12px;
  color: #f2f8ff;
  text-shadow: 0 1px 2px rgba(0, 20, 40, 0.8);
}
.bubble.lg { width: 92px; height: 120px; }
.bubble.lg img { width: 92px; height: 92px; }
.bubble.lg b { width: 92px; top: 34px; font-size: 22px; }
.bubble.lg span { top: 94px; font-size: 13px; }
.cylinder {
  position: absolute;
  left: 22px;
  top: 58px;
  width: 79px;
  height: 120px;
  pointer-events: none;
}
.model-lines {
  position: absolute;
  left: 114px;
  top: 68px;
  right: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 2;
  color: #f4fbff;
  text-shadow: 0 1px 2px rgba(0, 16, 36, 0.65);
}
.model-lines li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-lines span { color: #d7ebf8; }
.model-lines em { font-style: normal; }

.overlay {
  position: absolute;
  left: 458px;
  top: 195px;
  width: 1097px;
  height: 740px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.overlay[hidden] { display: none; }
.overlay p {
  margin: 16px 0 0;
  color: #fff;
  font-size: 22px;
  letter-spacing: 2px;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}
.spin { width: 92px; height: 92px; position: relative; animation: rot 0.95s linear infinite; }
.spin i {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 5px;
  height: 14px;
  margin-left: -2.5px;
  border-radius: 3px;
  background: #8af0ff;
  box-shadow: 0 0 8px #7fe9ff;
  transform-origin: center 38px;
}
.spin i:nth-child(1) { transform: rotate(0deg); opacity: 0.25; }
.spin i:nth-child(2) { transform: rotate(30deg); opacity: 0.32; }
.spin i:nth-child(3) { transform: rotate(60deg); opacity: 0.4; }
.spin i:nth-child(4) { transform: rotate(90deg); opacity: 0.48; }
.spin i:nth-child(5) { transform: rotate(120deg); opacity: 0.55; }
.spin i:nth-child(6) { transform: rotate(150deg); opacity: 0.62; }
.spin i:nth-child(7) { transform: rotate(180deg); opacity: 0.7; }
.spin i:nth-child(8) { transform: rotate(210deg); opacity: 0.76; }
.spin i:nth-child(9) { transform: rotate(240deg); opacity: 0.84; }
.spin i:nth-child(10) { transform: rotate(270deg); opacity: 0.9; }
.spin i:nth-child(11) { transform: rotate(300deg); opacity: 0.96; }
.spin i:nth-child(12) { transform: rotate(330deg); opacity: 1; }
@keyframes rot { to { transform: rotate(360deg); } }

.produce {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
.prod-actions {
  position: absolute;
  left: 638px;
  top: 116px;
  display: flex;
  gap: 16px;
  pointer-events: auto;
}
.prod-btn {
  width: 149px;
  height: 50px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  color: #f4fbff;
  font-size: 16px;
  letter-spacing: 1px;
  background: url("../img/ui/prod/btn-blue.png") center / 100% 100% no-repeat;
  box-shadow: none;
}
.prod-btn.green {
  background-image: url("../img/ui/prod/btn-ai.png");
}
.prod-btn:hover { filter: brightness(1.08); }
.prod-steps {
  position: absolute;
  left: 48px;
  top: 196px;
  width: 219px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: auto;
}
.prod-steps button {
  width: 219px;
  height: 72px;
  border: 0;
  color: #e7f4ff;
  font-size: 18px;
  letter-spacing: 1px;
  background: url("../img/ui/prod/step.png") center / 100% 100% no-repeat;
}
.prod-steps button.on {
  color: #fff;
  background-image: url("../img/ui/prod/step-on.png");
}
.prod-steps button:hover { filter: brightness(1.08); }
.prod-steps[hidden] { display: none; }
.asm-view {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 1;
  width: 1182px;
  height: 678px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.asm-view[hidden] { display: none; }
.asm-model {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
}
.asm-model[hidden] { display: none; }
.asm-model canvas { display: block; width: 100%; height: 100%; }
.asm-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  pointer-events: none;
}
.asm-loading[hidden] { display: none; }
.asm-sheet {
  position: absolute;
  inset: 8px;
  z-index: 1;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-fit: contain;
  pointer-events: none;
}
.asm-sheet[hidden] { display: none; }
.asm-deviate {
  position: absolute;
  right: 16px;
  top: 18px;
  z-index: 3;
  width: 286px;
  height: calc(100% - 36px);
  object-fit: contain;
  object-position: right center;
  pointer-events: none;
}
.asm-deviate[hidden] { display: none; }
.asm-status {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 10px;
  bottom: 12px;
  z-index: 1;
  width: calc(100% - 16px);
  height: calc(100% - 22px);
  object-fit: contain;
  object-position: center top;
  pointer-events: none;
}
.asm-status[hidden] { display: none; }
.asm-report {
  position: absolute;
  inset: 10px;
  z-index: 2;
  overflow: auto;
  background: #eef3f8;
  pointer-events: auto;
}
.asm-report[hidden] { display: none; }
.asm-report-page {
  min-height: calc(100% - 28px);
  margin: 14px;
  padding: 28px 40px 48px;
  background: #fff;
  color: #1b2836;
  font-size: 15px;
  line-height: 1.75;
  box-shadow: 0 8px 24px rgba(8, 24, 48, 0.12);
}
.asm-report-page .wait {
  margin-top: 220px;
  color: #1a4f78;
  font-size: 22px;
  letter-spacing: 1px;
  text-align: center;
}
.asm-report-page .cover {
  margin: 6px 0;
  text-align: center;
  color: #12304c;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
}
.asm-report-page .meta { margin: 4px 0; color: #3d5164; }
.asm-report-page h2 {
  margin: 22px 0 10px;
  color: #14324f;
  font-size: 18px;
}
.asm-report-page .toc,
.asm-report-page .toc-sub { margin: 0 0 4px; }
.asm-report-page .toc-sub { padding-left: 18px; color: #345068; }
.asm-report-page p { margin: 0 0 8px; }
.asm-report-page table {
  width: 100%;
  margin: 8px 0 16px;
  border-collapse: collapse;
  font-size: 13px;
}
.asm-report-page td {
  padding: 6px 8px;
  border: 1px solid #d5dee8;
}
.asm-report-page img { display: block; max-width: 100%; margin: 8px 0 16px; }
.asm-report-side {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 14px 18px;
  pointer-events: none;
}
.asm-report-side[hidden] { display: none; }
.asm-report-side ol {
  position: absolute;
  left: 14px;
  right: 12px;
  top: 16px;
  bottom: 96px;
  margin: 0;
  padding: 8px 0 0;
  list-style: none;
  overflow: auto;
  pointer-events: auto;
}
.asm-report-side li button {
  width: 100%;
  margin: 0 0 6px;
  padding: 8px 10px;
  border: 0;
  border-radius: 2px;
  color: #e7f4ff;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  background: transparent;
}
.asm-report-side li.on button,
.asm-report-side li button:hover {
  color: #fff;
  background: linear-gradient(90deg, rgba(22, 132, 214, 0.9), rgba(14, 86, 158, 0.72));
}
.asm-report-export {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 2;
  width: 188px;
  height: 46px;
  border: 1px solid #d7f6ff;
  border-radius: 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 46px;
  letter-spacing: 6px;
  text-align: center;
  text-indent: 6px;
  text-decoration: none;
  transform: translateX(-50%);
  pointer-events: auto;
  background: linear-gradient(180deg, #49c8ff 0%, #1494e6 48%, #0874c8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 0 18px rgba(60, 190, 255, 0.75);
}
.asm-report-export:hover { filter: brightness(1.08); }
.asm-loading p {
  margin: 0;
  color: #fff;
  font-size: 18px;
  letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}
.asm-note {
  position: absolute;
  left: 28px;
  right: 22px;
  top: 36px;
  color: #d7ecff;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.5px;
}
.asm-note[hidden] { display: none; }
.asm-note p { margin: 0 0 22px; }
.asm-pick {
  position: absolute;
  inset: 0;
  z-index: 1;
  color: #e7f4ff;
  font-size: 16px;
  letter-spacing: 0.5px;
  pointer-events: none;
}
.asm-pick[hidden] { display: none; }
.asm-pick > p {
  margin: 26px 18px 0 20px;
  color: #b9e6ff;
  font-size: 15px;
  letter-spacing: 1px;
}
.asm-pick ul {
  position: absolute;
  left: 16px;
  right: 12px;
  top: 64px;
  bottom: 84px;
  margin: 0;
  padding: 0 4px 0 0;
  list-style: none;
  overflow: auto;
}
.asm-pick ul::-webkit-scrollbar { width: 4px; }
.asm-pick ul::-webkit-scrollbar-thumb {
  border-radius: 2px;
  background: rgba(130, 210, 255, 0.45);
}
.asm-pick li {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin: 0 0 8px;
  padding: 0 10px;
  overflow: hidden;
  border: 1px solid rgba(126, 198, 245, 0.38);
  background: linear-gradient(90deg, rgba(24, 104, 176, 0.62), rgba(8, 40, 86, 0.28));
  box-shadow: inset 2px 0 0 #4ad2ff;
}
.asm-pick li i {
  flex: none;
  width: 22px;
  color: #8adfff;
  font-style: normal;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
}
.asm-pick li.checked {
  border-color: rgba(120, 230, 170, 0.7);
  box-shadow: inset 2px 0 0 #5dffa2;
}
.asm-pick li span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #f3fbff;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asm-pick li b.ok {
  flex: none;
  color: #6dffb0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}
.asm-pick-actions {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 28px;
  display: flex;
  justify-content: center;
  gap: 16px;
  pointer-events: auto;
}
.asm-pick-actions button {
  width: 96px;
  height: 36px;
  border: 1px solid rgba(160, 226, 255, 0.9);
  border-radius: 6px;
  color: #f4fbff;
  font-size: 15px;
  letter-spacing: 2px;
  cursor: pointer;
  background: linear-gradient(180deg, #2eb4f2 0%, #1286d4 55%, #0a6fbe 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 12px rgba(40, 160, 230, 0.35);
}
.asm-pick-actions button.cancel {
  background: linear-gradient(180deg, #4aa4d8 0%, #2a78b4 55%, #1d679f 100%);
}
.asm-pick-actions button:hover { filter: brightness(1.08); }
.asm-build {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.asm-build[hidden] { display: none; }
.asm-build p {
  margin: 36px 22px 0 28px;
  color: #d7ecff;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.5px;
}
.asm-build button {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 148px;
  height: 36px;
  border: 1px solid rgba(160, 226, 255, 0.9);
  border-radius: 6px;
  color: #f4fbff;
  font-size: 15px;
  letter-spacing: 2px;
  cursor: pointer;
  transform: translateX(-50%);
  pointer-events: auto;
  background: linear-gradient(180deg, #2eb4f2 0%, #1286d4 55%, #0a6fbe 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 12px rgba(40, 160, 230, 0.35);
}
.asm-build button:hover { filter: brightness(1.08); }
.asm-build button:disabled { cursor: default; filter: none; opacity: 0.7; }
.asm-rel {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 16px;
  color: #e7f4ff;
  pointer-events: none;
}
.asm-rel[hidden] { display: none; }
.asm-rel > p {
  flex: none;
  margin: 0 6px 4px;
  color: #b9e6ff;
  font-size: 15px;
  letter-spacing: 1px;
}
.asm-rel-tip {
  flex: none;
  margin: 0 6px 10px;
  color: #8ec4ea;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0;
}
.asm-rel-label {
  flex: none;
  margin: 12px 6px 8px;
  color: #9fd8ff;
  font-size: 13px;
  letter-spacing: 1px;
}
.asm-rel ul {
  margin: 0;
  padding: 0 4px 0 0;
  list-style: none;
  overflow: auto;
  pointer-events: auto;
}
.asm-rel-parts { flex: 1; min-height: 0; }
.asm-rel-pairs { flex: none; height: 196px; }
.asm-rel ul::-webkit-scrollbar { width: 4px; }
.asm-rel ul::-webkit-scrollbar-thumb {
  border-radius: 2px;
  background: rgba(130, 210, 255, 0.45);
}
.asm-rel li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin: 0 0 8px;
  padding: 6px 8px;
  border: 1px solid rgba(126, 198, 245, 0.32);
  background: linear-gradient(90deg, rgba(16, 72, 128, 0.45), rgba(8, 36, 78, 0.2));
  cursor: pointer;
}
.asm-rel li.on {
  border-color: rgba(122, 220, 255, 0.95);
  background: linear-gradient(90deg, rgba(22, 132, 214, 0.82), rgba(10, 78, 150, 0.55));
  box-shadow: inset 2px 0 0 #7ae7ff, 0 0 12px rgba(40, 170, 235, 0.28);
}
.asm-rel li i {
  flex: none;
  width: 20px;
  color: #8adfff;
  font-style: normal;
  font-size: 12px;
  line-height: 1;
}
.asm-rel li span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.asm-rel-pairs li { align-items: flex-start; }
.asm-rel-pairs li span { white-space: normal; }
.asm-rel-pairs li b,
.asm-rel-pairs li em {
  display: block;
  overflow: hidden;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.asm-rel-pairs li em {
  margin: 1px 0;
  color: #8ee7ff;
  font-size: 12px;
}
.asm-rel-x {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  padding: 0;
  border: 0;
  color: #d7f4ff;
  font-size: 16px;
  line-height: 16px;
  cursor: pointer;
  background: transparent;
}
.asm-rel li.empty {
  display: block;
  min-height: 0;
  padding: 8px 4px;
  border: 0;
  background: none;
  box-shadow: none;
  color: #9ec9ea;
  font-size: 13px;
  line-height: 1.6;
  cursor: default;
}
.prod-frame {
  position: absolute;
  left: 286px;
  top: 186px;
  width: 1214px;
  height: 710px;
  pointer-events: none;
}
.prod-frame-bg {
  position: absolute;
  inset: 0;
  width: 1214px;
  height: 710px;
  pointer-events: none;
}
.prod-photo {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 1182px;
  height: 678px;
  object-fit: contain;
  background: rgba(2, 10, 24, 0.35);
}
.prod-photo[hidden] { display: none; }
.capture-view {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 1;
  width: 1182px;
  height: 678px;
  overflow: hidden;
  background: rgba(2, 10, 24, 0.55);
}
.capture-view[hidden] { display: none; }
.capture-view canvas,
.capture-view img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.capture-view img[hidden] { display: none; }
.capture-view.frozen canvas,
.capture-view.nocam canvas { visibility: hidden; }
.process-view {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 1;
  width: 1182px;
  height: 678px;
  overflow: hidden;
  background: rgba(2, 10, 24, 0.55);
}
.process-view[hidden] { display: none; }
.extract-view {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 1;
  width: 1182px;
  height: 678px;
  object-fit: contain;
  background: rgba(2, 10, 24, 0.55);
}
.extract-view[hidden] { display: none; }
.process-view img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#processStill {
  filter: blur(0);
  opacity: 1;
  transition: filter 1.8s ease, opacity 1.8s ease;
}
#processResult {
  opacity: 0;
  filter: blur(18px);
  transition: filter 1.8s ease, opacity 1.8s ease;
}
.process-view.revealing #processStill {
  filter: blur(22px);
  opacity: 0;
}
.process-view.revealing #processResult {
  filter: blur(0);
  opacity: 1;
}
.process-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  top: -120px;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(90, 220, 255, 0), rgba(140, 240, 255, 0.18) 42%, rgba(255, 255, 255, 0.95) 50%, rgba(140, 240, 255, 0.18) 58%, rgba(90, 220, 255, 0));
  mix-blend-mode: screen;
}
.process-view.scanning .process-scan {
  opacity: 1;
  animation: process-scan 5s cubic-bezier(.42, 0, .2, 1) forwards;
}
@keyframes process-scan {
  0% { top: -120px; }
  46% { top: calc(100% - 8px); }
  100% { top: -120px; }
}
.cam-connect {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  pointer-events: auto;
}
.cam-connect[hidden] { display: none; }
.cam-connect button {
  min-width: 240px;
  height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(150, 230, 255, 0.9);
  color: #f4fbff;
  font-size: 18px;
  letter-spacing: 1px;
  cursor: pointer;
  background: linear-gradient(180deg, #1aa4e8 0%, #0b78c4 55%, #0868b0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 16px rgba(40, 160, 230, 0.4);
}
.cam-connect button:hover { filter: brightness(1.08); }
.cam-connect button:disabled { cursor: default; filter: none; opacity: 0.7; }
.cam-connect p {
  margin: 0;
  font-size: 28px;
  letter-spacing: 2px;
  color: #e9fff2;
  text-shadow: 0 0 14px rgba(90, 230, 150, 0.85);
}
.cam-connect p.fail {
  font-size: 18px;
  letter-spacing: 1px;
  color: #ffd6d6;
  text-shadow: 0 0 10px rgba(255, 90, 90, 0.55);
}
.cam-checks {
  margin: 0;
  padding: 14px 22px;
  list-style: none;
  min-width: 280px;
  color: #d7ecff;
  font-size: 16px;
  background: rgba(4, 20, 46, 0.82);
  border: 1px solid rgba(120, 196, 245, 0.45);
  box-shadow: inset 0 0 18px rgba(40, 130, 210, 0.22);
}
.cam-checks[hidden] { display: none; }
.cam-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  color: rgba(190, 220, 240, 0.55);
}
.cam-checks li::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  border: 1px solid rgba(140, 200, 240, 0.45);
  border-radius: 50%;
}
.cam-checks li.wait { color: #f4fbff; }
.cam-checks li.wait::before {
  border-color: transparent;
  border-top-color: #8adfff;
  animation: rot 0.8s linear infinite;
}
.cam-checks li.on { color: #e9fff2; }
.cam-checks li.on::before {
  width: 6px;
  height: 10px;
  margin-right: 4px;
  border: solid #e9fff2;
  border-width: 0 2px 2px 0;
  border-radius: 0;
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(90, 230, 150, 0.8);
}
.cam-checks li.fail { color: #ffd0d0; }
.cam-checks li.fail::before {
  border-color: #ff8d8d;
  background:
    linear-gradient(#ff8d8d, #ff8d8d) center / 8px 2px no-repeat;
}
.calib-grid {
  position: absolute;
  inset: 24px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 16px;
  pointer-events: auto;
}
.calib-grid[hidden] { display: none; }
.calib-cell {
  position: relative;
  overflow: hidden;
  background: rgba(4, 18, 40, 0.72);
  border: 1px solid rgba(120, 196, 245, 0.45);
  box-shadow: inset 0 0 18px rgba(40, 130, 210, 0.2);
}
.calib-live, .calib-cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.calib-cell img[hidden] { display: none; }
.calib-cell.taken .calib-live,
.calib-cell.taken .calib-shot { visibility: hidden; }
.calib-close {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 28px;
  height: 28px;
  pointer-events: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  line-height: 24px;
  cursor: pointer;
  background: rgba(8, 16, 32, 0.72);
}
.calib-close:hover { background: rgba(180, 40, 40, 0.85); }
.calib-cell.taken .calib-close { display: block; }
.calib-shot {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(150, 230, 255, 0.9);
  border-radius: 4px;
  color: #e9f7ff;
  cursor: pointer;
  background: rgba(6, 28, 58, 0.86);
  box-shadow: inset 0 0 8px rgba(80, 190, 255, 0.35), 0 0 10px rgba(40, 160, 230, 0.35);
}
.calib-shot:hover { filter: brightness(1.12); }
.calib-shot:disabled { cursor: default; opacity: 0.55; filter: none; }
.calib-cell.fail { border-color: rgba(255, 140, 140, 0.8); }
.calib-grid.shots .calib-shot,
.calib-grid.shots .calib-close,
.calib-grid.shots .calib-live { display: none; }
.calib-grid.shots { pointer-events: none; }
.fix-card[hidden] { display: none; }
.fix-card {
  position: absolute;
  right: 36px;
  bottom: 48px;
  width: 246px;
  padding: 16px 18px 18px;
  color: #e7f5ff;
  background: linear-gradient(180deg, rgba(14, 58, 110, 0.88), rgba(6, 24, 56, 0.92));
  border: 1px solid rgba(120, 196, 245, 0.55);
  box-shadow: inset 0 0 18px rgba(40, 130, 210, 0.25);
  pointer-events: auto;
}
.fix-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
}
.fix-card ol { margin: 0; padding-left: 22px; }
.fix-card li { margin: 8px 0; font-size: 15px; line-height: 1.45; }
.prod-sidebox {
  position: absolute;
  left: 1520px;
  top: 186px;
  width: 276px;
  height: 691px;
  pointer-events: none;
}
.prod-sidebox > img {
  position: absolute;
  inset: 0;
  width: 276px;
  height: 691px;
}
.prod-side {
  position: absolute;
  left: 24px;
  right: 18px;
  top: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.prod-side li {
  position: relative;
  margin: 0 0 28px;
  padding-left: 16px;
  color: #e7f4ff;
  font-size: 16px;
  letter-spacing: 0.5px;
}
.prod-side li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 1px;
  background: #d7ecff;
}
.prod-sidebox.working .prod-side { top: 168px; }
.distort-status {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 24px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  text-align: center;
}
.distort-status[hidden] { display: none; }
.distort-spin {
  width: 92px;
  height: 92px;
  margin-bottom: -28px;
  transform: scale(0.62);
  transform-origin: center top;
}
.distort-spin[hidden] { display: none; }
.distort-status p {
  margin: 0;
  color: #e9fff4;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(90, 230, 180, 0.55);
}
.distort-btn {
  position: absolute;
  left: 50%;
  bottom: 36px;
  z-index: 1;
  min-width: 168px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(150, 230, 255, 0.9);
  color: #f4fbff;
  font-size: 16px;
  letter-spacing: 2px;
  cursor: pointer;
  transform: translateX(-50%);
  pointer-events: auto;
  background: linear-gradient(180deg, #1aa4e8 0%, #0b78c4 55%, #0868b0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 16px rgba(40, 160, 230, 0.4);
}
.distort-btn[hidden] { display: none; }
.distort-btn:hover { filter: brightness(1.08); }
.distort-btn:disabled { cursor: default; filter: none; opacity: 0.7; }
