/* osir.co.uk: Colour Converter & Contrast Checker */
.cc-in-row { display: flex; gap: 10px; align-items: flex-end; margin-top: 12px; }
.cc-in-row .t-field { flex: 1 1 auto; }
.cc-pick-wrap { display: grid; gap: 6px; justify-items: center; color: var(--text-2); font-weight: 650; }
.cc-pick-wrap input[type=color] { width: 54px; height: 44px; padding: 3px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface-solid); cursor: pointer; }
.cc-err { margin-top: 6px; color: #b91c1c; }
:root[data-theme="dark"] .cc-err { color: #f87171; }
.cc-swatch { position: relative; margin-top: 14px; height: 130px; border-radius: 16px; border: 1px solid var(--border-strong); overflow: hidden;
  background: repeating-conic-gradient(#e5e7eb 0 25%, #ffffff 0 50%) 0 0 / 18px 18px; }
:root[data-theme="dark"] .cc-swatch { background: repeating-conic-gradient(#3a3f52 0 25%, #23283a 0 50%) 0 0 / 18px 18px; }
.cc-swatch::before { content: ""; position: absolute; inset: 0; background: var(--cc, #2a78d6); }
.cc-swatch span { position: absolute; left: 14px; bottom: 10px; font-size: 20px; font-weight: 800; }
.cc-formats td:nth-child(2) { word-break: break-word; }
.cc-formats td:nth-child(3) { width: 1%; white-space: nowrap; }
.cc-hint { display: block; font-family: var(--font, inherit); font-size: 12px; color: var(--muted); margin-top: 2px; }

.cc-pair { display: grid; gap: 4px; }
.cc-pair .btn { justify-self: start; margin-top: 10px; }
.cc-preview { margin-top: 14px; padding: 18px; border-radius: 14px; border: 1px solid var(--border-strong); }
.cc-preview p { margin: 0 0 10px; }
.cc-pv-large { font-size: 24px; font-weight: 700; line-height: 1.25; }
.cc-pv-normal { font-size: 16px; line-height: 1.5; }
.cc-pv-small { font-size: 13px; }
.cc-pv-btn { display: inline-block; padding: 7px 14px; border-radius: 10px; border: 2px solid var(--cc-fg, currentColor); font-weight: 650; font-size: 14px; }
.cc-ratio-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cc-ratio { font-size: clamp(32px, 6vw, 46px); font-weight: 850; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cc-suggest { margin-top: 14px; display: grid; gap: 10px; }
.cc-sug { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); display: grid; gap: 8px; }
.cc-sug-opts { display: grid; gap: 6px; }
.cc-sug-opt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.cc-mini { display: inline-block; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--border-strong); flex: none; }

.cc-row { margin-top: 14px; }
.cc-row-h { font-size: 13.5px; font-weight: 700; color: var(--text-2); margin: 0 0 6px; }
.cc-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.cc-chips-sm { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cc-chip { display: grid; gap: 1px; align-content: end; min-height: 58px; padding: 6px 8px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .12); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
:root[data-theme="dark"] .cc-chip { border-color: rgba(255, 255, 255, .16); }
.cc-chip b { font-family: var(--mono); font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.cc-chip span { font-size: 11px; opacity: .85; }
.cc-chip:hover, .cc-chip:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 2px; }
.cc-sim { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 14px; }
.cc-sim-card { padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); min-width: 0; }
.cc-sim-card .cc-row-h { margin-bottom: 2px; }
.cc-sim-card > p { margin: 0 0 8px; }
.cc-sim-text { margin: 8px 0 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); font-weight: 600; font-size: 15px; }
@media (max-width: 560px) { .cc-chips { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); } }
