/* ===========================================================
   COLOR TOOLS STYLES
=========================================================== */
.ct-root .ct-body { flex-direction: column; gap: 4px; overflow-y: auto; padding: 4px; }

.ct-row1 { display: flex; gap: 4px; flex: 0 0 auto; }
.ct-swatch-pane { flex: 1; }
.ct-formats-pane { flex: 1; }

.ct-swatch-body {
  flex: 1; min-height: 160px;
  display: flex; padding: 0;
}
.ct-swatch {
  flex: 1; padding: 16px; min-height: 160px;
  display: flex; gap: 16px; align-items: center;
}
.ct-swatch-color {
  width: 100px; height: 100px;
  border: 2px solid #404040;
  flex-shrink: 0;
}
.ct-swatch-text {
  flex: 1;
  font-family: Verdana, sans-serif; font-size: 13px;
}

.ct-formats { flex: 1; background: #ffffff; padding: 0; overflow: auto; min-height: 0; }
.ct-fmt-row {
  display: flex; gap: 8px; align-items: center;
  padding: 5px 10px; cursor: pointer;
  border-bottom: 1px solid #e8e8e8;
}
.ct-fmt-row:hover { background: #ffffe1; }
.ct-fmt-row:nth-child(even) { background: #f8f8f8; }
.ct-fmt-row:nth-child(even):hover { background: #fffae0; }
.ct-fmt-key {
  flex: 0 0 90px; font-family: Verdana, sans-serif; font-size: 11px;
  color: #000080; font-weight: bold;
}
.ct-fmt-row code {
  flex: 1;
  font-family: "Courier New", monospace; font-size: 12px;
  color: #000;
}

.ct-contrast-pane { flex: 0 0 auto; }
.ct-contrast {
  background: #ffffff; padding: 12px;
  display: flex; gap: 20px; align-items: center;
  flex-wrap: wrap;
}
.ct-ratio {
  font-family: "Courier New", monospace; font-size: 36px;
  color: #000080; font-weight: bold;
  flex-shrink: 0;
}
.ct-grades {
  flex: 1; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 4px;
}
.ct-grade {
  font-family: Verdana, sans-serif; font-size: 11px;
  padding: 4px 8px;
}
.ct-grade.pass { background: #d4f4d4; color: #004000; }
.ct-grade.fail { background: #f4d4d4; color: #500000; }
.ct-grade-icon { display: inline-block; width: 16px; font-weight: bold; }

.ct-palette-pane { flex: 0 0 auto; }
.ct-palette {
  background: #ffffff; padding: 8px;
  display: flex; flex-wrap: wrap; gap: 4px;
}
.ct-palette-swatch {
  flex: 1; min-width: 100px; min-height: 80px;
  cursor: pointer; position: relative;
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 8px;
  border: 1px solid #404040;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.ct-palette-swatch:hover { border-color: #000080; border-width: 2px; padding: 7px; }
.ct-palette-label {
  font-family: Verdana, sans-serif; font-size: 10px;
  font-weight: bold;
}
.ct-palette-hex {
  font-family: "Courier New", monospace; font-size: 11px;
  font-weight: bold;
}
