.color-get-dialog {
  width: 90vw;
  max-width: 1200px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;

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

  .close-btn {
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
  }
}

.dialog-body {
  padding: 12px 16px;
  overflow: auto;
}

.layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;

  @media (max-width: 768px) {
    grid-template-columns: 1fr;
  }
}

.image-panel, .analysis-panel {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 12px;
}

.panel-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.image-wrapper {
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;

  img {
    width: 100%;
    display: block;
  }
}

.mosaic-wrapper {
  border: 1px dashed #ddd;
  border-radius: 8px;
  padding: 8px;

  canvas {
    width: 100%;
    height: auto;
    display: block;
  }
}

.loading {
  display: flex;
  align-items: center;
  gap: 12px;

  .spinner {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    border-top-color: #409eff;
    animation: spin 1s linear infinite;
  }
}

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;

  .metric-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 8px;
    text-align: center;

    .label { font-size: 12px; color: #666; }
    .value { font-size: 16px; font-weight: 600; }
    .value.cold { color: #409eff; }
    .value.warm { color: #e67e22; }
  }
}

.palette {
  .palette-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
  .palette-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;

    @media (max-width: 768px) {
      grid-template-columns: repeat(3, 1fr);
    }

    .palette-item {
      display: flex;
      gap: 6px;
      align-items: center;
      border: 1px solid #eee;
      border-radius: 8px;
      padding: 6px;

      .swatch { width: 28px; height: 28px; border-radius: 4px; }
      .info { font-size: 12px; display: flex; gap: 10px; }
      .hex { color: #333; }
      .pct { color: #666; }
    }
  }
}

.charts {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;

  .chart-block { border: 1px solid #eee; border-radius: 8px; padding: 8px; }
  .chart-title { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
  .chart { width: 100%; height: 260px; }
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;

  .file-info { font-size: 12px; color: #666; display: flex; gap: 8px; }
  .close-btn {
    background: #409eff;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
  }
}