.style-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px;
  gap: 12px;
  background: var(--vscode-editor-background);
  color: var(--vscode-editor-foreground);
}

.style-view-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.style-view-header p {
  margin: 6px 0 0;
  color: var(--vscode-descriptionForeground);
}

.style-theme-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}

.style-theme-option {
  border: 1px solid var(--vscode-input-border);
  border-radius: 6px;
  padding: 4px;
  background: transparent;
  cursor: pointer;
}

.style-theme-option.selected {
  border-color: var(--vscode-focusBorder);
  box-shadow: 0 0 0 1px var(--vscode-focusBorder);
}

.style-theme-swatch {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  height: 56px;
  border-radius: 4px;
  color: var(--vscode-editor-foreground);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

.style-theme-tones {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 4px;
}

.style-theme-tone {
  height: 24px;
  border-radius: 3px;
  border: 1px solid color-mix(in srgb, var(--vscode-input-border) 70%, transparent);
}

.style-theme-tone-dark {
  border-color: color-mix(in srgb, #ffffff 18%, transparent);
}

.style-theme-name {
  line-height: 1;
}

.style-apply-row {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 12px;
}

.style-preview-mode-control {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--vscode-descriptionForeground);
}

.style-preview-mode-control select {
  min-width: 130px;
}

.style-preview-container {
  flex: 1;
  min-height: 0;
  border: 1px solid var(--vscode-input-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--vscode-editor-background);
}

.style-preview-frame {
  width: 100%;
  height: 100%;
  border: 0;
}
