/* 学习灯照度均匀度工具 */
#panel-other {
  min-width: 0;
  overflow-x: hidden;
}

.llu-shell {
  color: #263238;
}

.llu-header,
.llu-toolbar,
.llu-section-head,
.llu-metric-top,
.llu-metric-foot,
.llu-record-head,
.llu-record-actions,
.llu-map-head,
.llu-table-head {
  display: flex;
  align-items: center;
}

.llu-header,
.llu-toolbar,
.llu-section-head,
.llu-record-head,
.llu-map-head,
.llu-table-head {
  justify-content: space-between;
  gap: 12px;
}

.llu-header {
  margin: 2px 0 16px;
}

.llu-kicker {
  margin: 0 0 4px;
  color: #2e7d32;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.llu-title {
  margin: 0;
  color: #263238;
  font-size: 21px;
  line-height: 1.25;
}

.llu-subtitle {
  margin: 5px 0 0;
  color: #78909c;
  font-size: 12px;
  line-height: 1.55;
}

.llu-toolbar {
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #e4e9ed;
  border-radius: 8px;
  background: #f9fbfc;
}

.llu-toolbar-note {
  min-width: 0;
  color: #607d8b;
  font-size: 12px;
  line-height: 1.45;
}

.llu-toolbar-note strong {
  color: #2e7d32;
}

.llu-status {
  min-height: 18px;
  color: #607d8b;
  font-size: 12px;
}

.llu-status.error {
  color: #c62828;
}

.llu-status.success {
  color: #2e7d32;
}

.llu-layout {
  display: grid;
  grid-template-columns: minmax(258px, .72fr) minmax(0, 1.85fr);
  gap: 14px;
  align-items: start;
}

.llu-side,
.llu-workspace {
  min-width: 0;
}

.llu-block {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #e4e9ed;
  border-radius: 8px;
  background: #fff;
}

.llu-block:last-child {
  margin-bottom: 0;
}

.llu-section-head {
  margin-bottom: 11px;
}

.llu-section-head h3 {
  margin: 0;
  color: #37474f;
  font-size: 14px;
}

.llu-section-head small {
  color: #90a4ae;
  font-size: 11px;
}

.llu-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.llu-form-grid.single {
  grid-template-columns: minmax(0, 1fr);
}

.llu-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.llu-field.full {
  grid-column: 1 / -1;
}

.llu-field > span {
  color: #607d8b;
  font-size: 11px;
  font-weight: 700;
}

.llu-field input,
.llu-field select,
.llu-field textarea {
  width: 100%;
  min-height: 34px;
  box-sizing: border-box;
  border: 1px solid #d7e0e5;
  border-radius: 6px;
  padding: 6px 9px;
  color: #263238;
  background: #fff;
  font: inherit;
  font-size: 12px;
}

.llu-shell input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.llu-shell input[type="number"]::-webkit-inner-spin-button,
.llu-shell input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.llu-field textarea {
  min-height: 66px;
  resize: vertical;
  line-height: 1.5;
}

.llu-field input:focus,
.llu-field select:focus,
.llu-field textarea:focus {
  outline: 2px solid rgba(46, 125, 50, .16);
  border-color: #2e7d32;
}

.llu-field input:disabled,
.llu-field select:disabled,
.llu-field textarea:disabled {
  color: #90a4ae;
  background: #f4f7f8;
}

.llu-product-hint,
.llu-help {
  margin: 7px 0 0;
  color: #90a4ae;
  font-size: 11px;
  line-height: 1.5;
}

.llu-product-hint.error {
  color: #c62828;
}

.llu-product-field {
  position: relative;
}

.llu-product-candidates {
  position: absolute;
  z-index: 5;
  top: calc(100% - 1px);
  right: 0;
  left: 0;
  overflow: hidden;
  border: 1px solid #d7e0e5;
  border-radius: 0 0 7px 7px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(38, 50, 56, .12);
}

.llu-product-candidate {
  display: flex;
  width: 100%;
  min-height: 38px;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border: 0;
  border-bottom: 1px solid #eef2f3;
  padding: 7px 10px;
  color: #263238;
  background: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.llu-product-candidate:last-child {
  border-bottom: 0;
}

.llu-product-candidate:hover,
.llu-product-candidate:focus {
  color: #1b5e20;
  background: #f1f8e9;
  outline: 0;
}

.llu-product-candidate strong {
  font-size: 12px;
  font-weight: 700;
}

.llu-product-candidate small {
  color: #90a4ae;
  font-size: 10px;
}

.llu-segmented {
  display: grid;
  gap: 3px;
  padding: 3px;
  border: 1px solid #d7e0e5;
  border-radius: 7px;
  background: #f4f7f8;
}

.llu-segmented.preset {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.llu-segmented.layout-mode {
  grid-template-columns: 1.25fr 1fr;
}

.llu-segmented button {
  min-height: 31px;
  border: 0;
  border-radius: 5px;
  color: #78909c;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
}

.llu-segmented button.active {
  color: #1b5e20;
  background: #fff;
  box-shadow: 0 1px 4px rgba(38, 50, 56, .12);
}

.llu-threshold-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.llu-unit {
  position: relative;
}

.llu-unit input {
  padding-right: 30px;
}

.llu-unit em {
  position: absolute;
  top: 50%;
  right: 8px;
  color: #90a4ae;
  font-size: 10px;
  font-style: normal;
  pointer-events: none;
  transform: translateY(-50%);
}

.llu-actions {
  display: grid;
  gap: 8px;
}

.llu-button {
  min-height: 35px;
  border-radius: 6px;
  padding: 0 11px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.llu-button.primary {
  border: 1px solid #2e7d32;
  color: #fff;
  background: #2e7d32;
}

.llu-button.secondary {
  border: 1px solid #c8d3d9;
  color: #2e7d32;
  background: #fff;
}

.llu-button.danger {
  border: 1px solid #ef9a9a;
  color: #c62828;
  background: #fff;
}

.llu-button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.llu-file-button {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.llu-file-button input {
  position: absolute;
  inset: 0;
  cursor: pointer;
  opacity: 0;
}

.llu-records {
  display: grid;
  gap: 7px;
  max-height: 330px;
  overflow: auto;
}

.llu-record {
  padding: 9px;
  border: 1px solid #e4e9ed;
  border-radius: 6px;
  background: #fafcfd;
}

.llu-record-head {
  align-items: flex-start;
}

.llu-record-title {
  min-width: 0;
  overflow: hidden;
  color: #37474f;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.llu-record-meta {
  margin-top: 4px;
  color: #90a4ae;
  font-size: 10px;
  line-height: 1.45;
}

.llu-record-actions {
  justify-content: flex-end;
  gap: 6px;
  margin-top: 7px;
}

.llu-record-actions button {
  min-height: 25px;
  border: 1px solid #d7e0e5;
  border-radius: 5px;
  padding: 0 7px;
  color: #546e7a;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
}

.llu-record-actions button.delete {
  color: #c62828;
}

.llu-empty {
  padding: 20px 8px;
  color: #90a4ae;
  font-size: 12px;
  text-align: center;
}

.llu-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.llu-metric {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e4e9ed;
  border-radius: 8px;
  background: #fff;
}

.llu-metric-top,
.llu-metric-foot {
  justify-content: space-between;
  gap: 7px;
}

.llu-metric-label {
  color: #607d8b;
  font-size: 11px;
}

.llu-metric-value {
  margin: 7px 0 5px;
  color: #263238;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.llu-metric-foot {
  color: #90a4ae;
  font-size: 10px;
}

.llu-badge {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  border-radius: 999px;
  padding: 0 7px;
  color: #607d8b;
  background: #f1f4f6;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.llu-badge.pass {
  color: #2e7d32;
  background: #e8f5e9;
}

.llu-badge.fail {
  color: #c62828;
  background: #ffebee;
}

.llu-badge.pending {
  color: #8d6e63;
  background: #fff8e1;
}

.llu-result {
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid #d7e0e5;
  border-left: 4px solid #90a4ae;
  border-radius: 7px;
  background: #fafcfd;
}

.llu-result.pass {
  border-left-color: #2e7d32;
  background: #f2fbf3;
}

.llu-result.fail {
  border-left-color: #c62828;
  background: #fff7f7;
}

.llu-result strong {
  color: #37474f;
  font-size: 13px;
}

.llu-result p {
  margin: 4px 0 0;
  color: #78909c;
  font-size: 11px;
  line-height: 1.5;
}

.llu-table-card,
.llu-map-card {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #e4e9ed;
  border-radius: 8px;
  background: #fff;
}

.llu-table-card {
  overflow: hidden;
}

.llu-illumination-grid-card {
  border-top: 3px solid #1976d2;
}

.llu-table-head,
.llu-map-head {
  margin-bottom: 10px;
}

.llu-table-head h3,
.llu-map-head h3 {
  margin: 0;
  color: #37474f;
  font-size: 14px;
}

.llu-table-meta {
  color: #90a4ae;
  font-size: 11px;
}

.llu-table-scroll {
  max-width: 100%;
  overflow: auto;
  border: 1px solid #e4e9ed;
  border-radius: 6px;
}

.llu-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 11px;
}

.llu-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 7px 5px;
  border-right: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  background: #2e7d32;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.llu-table th:first-child {
  left: 0;
  z-index: 2;
}

.llu-table td {
  min-width: 70px;
  height: 44px;
  padding: 4px;
  border-right: 1px solid #edf1f2;
  border-bottom: 1px solid #edf1f2;
  background: #fff;
  text-align: center;
}

.llu-table td.row-axis {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 66px;
  color: #607d8b;
  background: #f7f9fa;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.llu-table td.excluded {
  background: #f0f3f4;
}

.llu-table td.center-point {
  background: #f3faf4;
}

.llu-table td.total-point {
  background: #f7fbff;
}

.llu-table input {
  width: 100%;
  height: 32px;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 0 5px;
  color: #263238;
  background: #fff;
  font: inherit;
  font-size: 12px;
  text-align: center;
}

.llu-table td.total-point input {
  border-color: transparent;
  background: #fff;
}

.llu-table td.center-point input {
  border: 2px solid #2e7d32;
  box-shadow: inset 0 0 0 1px #1976d2, 0 0 0 1px rgba(46, 125, 50, .2);
}

.llu-table input[data-llu-point].llu-point-selected {
  outline: 3px solid rgba(255, 152, 0, .35);
  outline-offset: 1px;
}

.llu-table input:focus {
  outline: 2px solid rgba(46, 125, 50, .18);
  outline-offset: 1px;
}

.llu-map {
  position: relative;
  width: 100%;
  min-height: 300px;
  aspect-ratio: 7 / 5;
  overflow: hidden;
  border: 1px solid #d7e0e5;
  border-radius: 7px;
  background:
    linear-gradient(to right, rgba(96, 125, 139, .11) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(96, 125, 139, .11) 1px, transparent 1px),
    #f8faf9;
  background-size: 14.2857% 20%;
}

.llu-map-point {
  position: absolute;
  width: 45px;
  min-width: 31px;
  height: 32px;
  border: 1px solid rgba(38, 50, 56, .26);
  border-radius: 5px;
  padding: 0 3px;
  color: #263238;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 2px rgba(38, 50, 56, .12);
}

.llu-map-point.center {
  border: 2px solid #1b5e20;
}

.llu-map-point.selected {
  outline: 3px solid rgba(255, 152, 0, .42);
  z-index: 2;
}

.llu-map-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 14px;
  margin-top: 8px;
  color: #78909c;
  font-size: 10px;
}

.llu-grid-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 9px;
  color: #78909c;
  font-size: 10px;
}

.llu-grid-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.llu-grid-legend i {
  display: inline-block;
  width: 18px;
  height: 10px;
  border-radius: 3px;
  border: 2px solid #1976d2;
  background: #f7fbff;
}

.llu-grid-legend i.center {
  border-color: #2e7d32;
  box-shadow: inset 0 0 0 1px #1976d2;
  background: #f3faf4;
}

.llu-grid-legend i.heat {
  border-color: #90a4ae;
  background: linear-gradient(90deg, #c9e3d4 0%, #f1c66b 52%, #c65248 100%);
}

.llu-swatch {
  display: inline-block;
  width: 24px;
  height: 9px;
  margin-right: 4px;
  border: 1px solid #d7e0e5;
  vertical-align: -1px;
}

.llu-footnote {
  margin: 0;
  color: #90a4ae;
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .llu-layout {
    grid-template-columns: 1fr;
  }

  .llu-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
  }

  .llu-side .llu-block {
    margin-bottom: 0;
  }

  .llu-side .llu-block:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .llu-summary,
  .llu-side {
    grid-template-columns: 1fr;
  }

  .llu-summary {
    gap: 8px;
  }

  .llu-form-grid,
  .llu-threshold-grid {
    grid-template-columns: 1fr;
  }

  .llu-field.full {
    grid-column: auto;
  }

  .llu-segmented.preset {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .llu-map {
    min-height: 230px;
  }
}
