/* lu.ca/calc colour palettes. The interface stays in the site's quiet greys; only the swatches carry colour. */
.cl .work { grid-template-columns: minmax(0, 1fr) 372px; }
.cl .stage-bar { flex-wrap: wrap; row-gap: 8px; }
.cl-bar-l, .cl-bar-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cl-seen { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cl-seen-k { font-size: 12px; color: var(--text-3); }
.cl-board { padding: 16px 18px 18px; display: grid; gap: 16px; flex: 1; transition: background .2s; }
.cl-row { display: grid; gap: 7px; min-width: 0; }
.cl-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.cl-two > div { display: grid; gap: 7px; min-width: 0; }
.cl-rh { font-size: 12px; font-weight: 500; }

/* swatch tiles */
.cl-sw { border: 0; border-radius: 8px; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; text-align: left; padding: 8px 10px; min-height: 66px; font: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); min-width: 0; }
.cl-sw .nm { font-size: 12px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.cl-sw .hx { font-size: 11.5px; font-family: ui-monospace, Menlo, monospace; display: inline-flex; align-items: center; gap: 4px; line-height: 1; }
.cl-sw .pin { display: inline-flex; align-items: center; opacity: .85; }
.cl-sw.sel, .cl-tint.sel, .cl-ink.sel { outline: 2px solid currentColor; outline-offset: 2px; }
.cl-ser { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.cl-sts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.cl-st { display: grid; gap: 4px; min-width: 0; }
.cl-st .cl-sw { min-height: 58px; }
.cl-tint { border: 0; border-radius: 6px; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; padding: 6px 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; }
.cl-tint .hx, .cl-ink { font-family: ui-monospace, Menlo, monospace; font-size: 11px; font-weight: 400; }
.cl-ink { border: 0; background: none; cursor: pointer; padding: 2px 2px; text-align: left; }
.cl-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.cl-sw.ramp { border-radius: 0; min-height: 52px; padding: 6px 4px; box-shadow: none; align-items: center; justify-content: flex-end; }
.cl-sw.ramp .nm { display: none; }
.cl-sw.ramp .hx { font-size: 10px; letter-spacing: -.02em; }
.cl-neu { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.cl-sw.neu { min-height: 54px; padding: 6px 8px; }
.cl-sw.neu .nm { font-size: 11px; font-weight: 500; }

/* panel */
.cl input[type="text"], .cl input[type="search"] { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 7px; padding: 6px 9px; font-size: 13px; outline: none; transition: border-color .1s; }
.cl-f { margin: 14px 0 0; }
.cl-f > label { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.cl-fv { display: flex; align-items: center; gap: 8px; }
.cl-fv input[type="text"] { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, monospace; }
.cl-fv input[type="color"] { width: 40px; height: 32px; padding: 2px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface); cursor: pointer; flex: none; }
.cl-fv input[type="range"] { flex: 1; min-width: 0; accent-color: var(--text-2); }
.cl-fv output { font-size: 12.5px; color: var(--text-2); min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.cl-fn { font-size: 12px; color: var(--text-3); margin: 6px 0 0; line-height: 1.45; }
.cl-lead { color: var(--text-2); margin-top: 12px; }
.cl-map { position: relative; max-width: 440px; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); aspect-ratio: 340 / 190; }
.cl-map canvas, .cl-map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cl-map .handle { cursor: grab; outline: none; }
.cl-map .handle:focus-visible .knob { stroke: var(--sel); stroke-width: 3; }
.cl-step { display: flex; align-items: center; gap: 8px; }
.cl-step output { min-width: 24px; text-align: center; font-weight: 600; }
.cl-chk { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text); margin: 14px 0 0; line-height: 1.4; }
.cl-chk span { color: var(--text-3); font-size: 12px; }
.cl-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* summary */
.cl-stats .v { font-variant-numeric: tabular-nums; }
.verdict .v.good { color: var(--good-ink); } .verdict .v.warn { color: var(--warn-ink); } .verdict .v.bad { color: var(--bad-ink); }

/* tables */
.cl-twrap { overflow-x: auto; }
.cl-tab { width: 100%; border-collapse: collapse; font-size: 13px; }
.cl-tab th { font-weight: 500; color: var(--text-3); font-size: 12px; text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.cl-tab td { padding: 5px 8px; border-bottom: 1px solid var(--fill-1); }
.cl-tab .num { text-align: right; font-variant-numeric: tabular-nums; }
.cl-tab td.l { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cl-chip { display: inline-block; width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); flex: none; vertical-align: -2px; }
.cl-tn { color: var(--text); }
.cl-th { color: var(--text-3); font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; }
.cl-aa { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 22px; border-radius: 5px; font-weight: 600; font-size: 12.5px; line-height: 1; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.cl-g { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 10px; font-size: 11.5px; font-weight: 500; line-height: 1; white-space: nowrap; }
.cl-g.ok { background: var(--good-bg); color: var(--good-ink); }
.cl-g.mid { background: var(--warn-bg); color: var(--warn-ink); }
.cl-g.no { background: var(--bad-bg); color: var(--bad-ink); }
.cl-g.na { background: var(--fill-1); color: var(--text-3); }

/* colour vision */
.cl-cvd { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; }
.cl-cvl { display: grid; gap: 10px; min-width: 0; }
.cl-cvh { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--text-2); margin-bottom: 4px; }
.cl-cvh b { font-weight: 500; color: var(--text); }
.cl-cvh .bad { color: var(--bad-ink); }
.cl-cvs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.cl-cvc { height: 30px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.cl-cvc.close { box-shadow: inset 0 0 0 2px var(--bad); }
.cl-cvmh { font-size: 12px; color: var(--text-3); margin-bottom: 6px; max-width: 360px; }
.cl-mat { display: block; max-width: 100%; height: auto; }

/* preview */
.cl-prev { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.cl-pv { border-radius: 8px; padding: 14px; box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.cl-pt { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cl-pt th { text-align: left; font-weight: 600; padding: 7px 8px; font-size: 12px; }
.cl-pt th.sub { font-weight: 500; font-size: 11.5px; padding: 5px 8px; }
.cl-pt td { padding: 6px 8px; border-bottom: 1px solid var(--g); }
.cl-pt .num { text-align: right; font-variant-numeric: tabular-nums; }
.cl-stag { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 9px; font-size: 11.5px; font-weight: 600; line-height: 1; margin-right: 6px; }
.cl-stw { font-size: 11.5px; }
.cl-ch { width: 100%; height: auto; display: block; }

/* output */
.cl-out { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.cl-out h3 { font-size: 13px; font-weight: 600; margin: 0 0 8px; }
.cl-o2 h3 + p, .cl-o2 p { font-size: 13px; color: var(--text-2); line-height: 1.6; margin: 0 0 10px; }
.cl-o2 h3 { margin-top: 4px; }
.cl-oh { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.cl-oh h3 { margin: 0; }
.cl-lis { display: grid; gap: 2px; margin-bottom: 10px; }
.cl-li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; border: 0; background: none; padding: 5px 6px; border-radius: 6px; cursor: pointer; font: inherit; font-size: 13px; text-align: left; color: var(--text); }
.cl-li:hover { background: var(--fill-1); }
.cl-code { border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; padding: 10px 12px; position: relative; color: var(--text-2); }
.cl-code pre { margin: 0; font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; max-height: 180px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.cl-copyall { margin-top: 8px; }
.cl-cc { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 3px 7px; font: inherit; font-size: 11.5px; font-family: ui-monospace, Menlo, monospace; color: var(--text); cursor: pointer; line-height: 1; vertical-align: 1px; }
.cl-cc:hover { border-color: var(--line-2); }
.cl-cc .cl-chip { width: 11px; height: 11px; vertical-align: 0; }
.cl-rules { margin: 0 0 12px; padding-left: 18px; font-size: 13px; color: var(--text-2); }
.cl-rules li { margin: 5px 0; }
.cl-files { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.cl-o2 code { font-size: 12px; }

/* signs */
.cl-signs { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 12px 24px; }
.cl-sc .cl-f:first-child { margin-top: 0; }
.cl-sc textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; padding: 7px 9px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface); color: var(--text); resize: vertical; }
.cl-sc input[type="text"] { width: 100%; box-sizing: border-box; }
.cl-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-kind { border: 1px solid var(--line); background: var(--surface); border-radius: 7px; padding: 5px 10px; font: inherit; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.cl-kind[aria-pressed="true"] { border-color: var(--text-2); color: var(--text); background: var(--fill-1); font-weight: 500; }
.cl-sp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-content: start; }
.cl-slide { aspect-ratio: 16 / 9; border-radius: 6px; box-shadow: 0 0 0 1px var(--line), 0 1px 3px rgba(0, 0, 0, .06); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; position: relative; min-width: 0; }
.cl-sl-t { font-size: 14px; font-weight: 600; }
.cl-sl-b { display: grid; gap: 6px; }
.cl-sl-l { height: 5px; border-radius: 3px; width: 70%; }
.cl-sl-l.s { width: 45%; }
.cl-sl-a { max-width: 100%; margin-top: 6px; }
.cl-sl-a svg { display: block; }
.cl-sl-tag { position: absolute; right: 12px; bottom: 9px; font-size: 11px; }
.cl-sr { display: grid; gap: 12px; align-content: start; min-width: 0; }
.cl-sd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cl-sd-l { font-size: 12px; color: var(--text-3); margin-right: 4px; }

/* RAL */
.cl-rc { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.cl-rc input[type="search"] { flex: 1 1 260px; min-width: 0; max-width: 380px; }
.cl-fams { display: flex; flex-wrap: wrap; gap: 4px; }
.cl-fam { border: 0; background: none; border-radius: 6px; padding: 5px 9px; font: inherit; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.cl-fam:hover { background: var(--fill-1); }
.cl-fam[aria-pressed="true"] { background: var(--fill-2); color: var(--text); font-weight: 500; }
.cl-rmain { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.cl-rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 5px; }
.cl-rt { border: 0; border-radius: 6px; padding: 6px 7px; min-height: 58px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; text-align: left; font: inherit; cursor: pointer; position: relative; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); min-width: 0; }
.cl-rt b { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cl-rt span { font-size: 10.5px; line-height: 1.2; overflow-wrap: anywhere; }
.cl-rt.sel { outline: 2px solid var(--text); outline-offset: 2px; }
.cl-dot { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.cl-rside { display: grid; gap: 14px; position: sticky; top: 12px; }
.cl-rd { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.cl-rd > .cl-fn { padding: 12px 14px; margin: 0; }
.cl-rd-sw { padding: 14px; min-height: 84px; display: flex; flex-direction: column; gap: 3px; }
.cl-rd-sw b { font-size: 18px; font-weight: 600; }
.cl-rd-sw span { font-size: 13px; }
.cl-rd-sw .de { font-size: 12px; opacity: .85; }
.cl-rd-b { padding: 12px 14px 14px; display: grid; gap: 10px; }
.cl-rd-c { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-rd-t { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.cl-rd-u h4, .cl-uc h4, .cl-up h4 { font-size: 12.5px; font-weight: 600; margin: 0 0 6px; color: var(--text); }
.cl-rd-u ul, .cl-uc ul, .cl-upl { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.cl-rd-u li { font-size: 12.5px; line-height: 1.45; }
.cl-src { font-size: 12px; color: var(--text-3); line-height: 1.45; }
.cl-k { display: inline-flex; align-items: center; font-size: 10.5px; padding: 2px 6px; border-radius: 8px; line-height: 1; vertical-align: 1px; font-weight: 500; }
.cl-k.std { background: var(--fill-1); color: var(--text-2); }
.cl-k.cp { background: var(--warn-bg); color: var(--warn-ink); }
.cl-ul { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: var(--text); cursor: pointer; text-align: left; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.cl-ul:hover, .cl-ul.on { text-decoration-color: var(--text-2); }
.cl-ul.on { font-weight: 600; }
.cl-rleft { display: grid; gap: 12px; align-content: start; min-width: 0; }
.cl-up { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--surface-2); display: grid; gap: 8px; }
.cl-stripe { max-width: 360px; }
.cl-uph { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cl-uph h4 { margin: 0; }
.cl-upl li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cl-named { font-size: 12.5px; color: var(--text); border: 1px dashed var(--line-2); border-radius: 6px; padding: 3px 7px; line-height: 1; }
.cl-stripe svg { display: block; width: 100%; height: auto; border-radius: 4px; }
.cl-uses { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
.cl-uses h3 { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.cl-ucs { columns: 3 260px; column-gap: 28px; margin-top: 12px; }
.cl-uc { break-inside: avoid; margin-bottom: 16px; }
.cl-uc li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cl-uchips { display: inline-flex; gap: 2px; flex: none; }
.cl-uchip { width: 10px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }

/* toast */
.cl-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--surface); padding: 9px 14px; border-radius: 9px; font-size: 13px; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); z-index: 50; max-width: calc(100vw - 32px); }
.cl-toast b { font-weight: 600; }

@media (max-width: 1040px) {
  .cl .work { grid-template-columns: minmax(0, 1fr); }
  .cl-rmain { grid-template-columns: minmax(0, 1fr); }
  .cl-rside { position: static; }
  .cl-signs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .cl-two, .cl-prev, .cl-out, .cl-cvd { grid-template-columns: minmax(0, 1fr); }
  .cl-sts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cl-sp { grid-template-columns: minmax(0, 1fr); }
  .cl-tab th:nth-child(5), .cl-tab td:nth-child(5) { display: none; }
}
@media (max-width: 560px) {
  .cl-board { padding: 12px; }
  .cl-ser { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cl-sw.ramp .hx { display: none; }
  .cl-sw.ramp { min-height: 40px; }
  .cl-tab td:nth-child(2), .cl-tab th:nth-child(2) { display: none; }
  .cl-tab .cl-th { display: none; }
  .cl-slide { padding: 12px 10px; }
  .cl-li { grid-template-columns: 14px minmax(0, 1fr) auto; }
  .cl-li .cl-th:last-child { display: none; }
}
