/* CadCraft drafting UI — toolbar | layers · drawing · properties | command line | status bar.
 * Tokens only (paper/model aware); hierarchy by line weight; no shadows. */

.cc {
  --cc-tabs-h: 1.9rem;
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr) 17.5rem;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  grid-template-areas:
    "tools tools tools"
    "left stage right"
    "cmd cmd cmd"
    "status status status";
  height: 100%;
  min-height: 0;
}

/* ---- Toolbar ---- */
.cc-tools {
  grid-area: tools;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: var(--sheet-2);
  border-bottom: var(--pen-2) solid var(--ink);
  scrollbar-width: thin;
}
.cc-tool-group { display: flex; flex-direction: column; padding: .25rem .35rem .3rem; border-right: var(--pen-1) solid var(--line); flex: 0 0 auto; }
.cc-tool-group:last-of-type { border-right: 0; }
.cc-tool-label { font-size: .75rem; font-weight: 600; color: var(--ink-2); padding: 0 .2rem .15rem; }
.cc-tool-row { display: flex; gap: .1rem; }
.cc-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  min-width: 2.6rem;
  padding: .25rem .2rem .2rem;
  font: inherit;
  font-size: .71875rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: var(--pen-1) solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
}
.cc-tool .bi { font-size: 1.15rem; line-height: 1; color: var(--layer); }
.cc-tool:hover { border-color: var(--line); background: var(--sheet); }
.cc-tool:focus-visible { outline: var(--pen-3) solid var(--action); outline-offset: 1px; }
.cc-tool[aria-pressed="true"] { border-color: var(--ink); background: var(--sheet); }
.cc-tool:disabled { opacity: .45; cursor: default; }
/* Edit › More: a toolbar menu (details/summary; cadcraft.js closes it on a click elsewhere and on Esc) */
.cc-menu { position: relative; }
.cc-menu > summary { list-style: none; }
.cc-menu > summary::-webkit-details-marker { display: none; }
.cc-menu[open] > summary { border-color: var(--ink); background: var(--sheet); }
.cc-menu-list {
  position: absolute; z-index: 30; top: calc(100% + .25rem); right: 0; min-width: 15rem;
  display: flex; flex-direction: column; padding: .25rem 0;
  background: var(--sheet-2); border: var(--pen-2) solid var(--ink); border-radius: var(--radius);
}
.cc-menu-list button { display: flex; justify-content: space-between; gap: 1.25rem; font: inherit; font-size: .875rem; font-weight: 500; text-align: left; color: var(--ink); background: none; border: 0; padding: .35rem .8rem; cursor: pointer; }
.cc-menu-list button:hover, .cc-menu-list button:focus-visible { background: var(--sheet); text-decoration: underline; outline: none; }
.cc-menu-list button kbd { font: inherit; font-size: .75rem; color: var(--ink-2); background: none; border: 0; padding: 0; }
.cc-menu-list hr { margin: .25rem 0; border: 0; border-top: var(--pen-1) solid var(--line); opacity: 1; }
/* Settings › CadCraft: two-choice rows */
.shell-seg.cc-set-seg2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* The staff tab (staff-panel.inc) sits bottom-left over the page; lift it clear of the command line. */
body.app-shell .sp-tab { bottom: 9.5rem; }

/* ---- Panels ---- */
.cc-panel { overflow-y: auto; min-height: 0; background: var(--sheet-2); }
.cc-left { grid-area: left; border-right: var(--pen-2) solid var(--ink); }
.cc-right { grid-area: right; border-left: var(--pen-2) solid var(--ink); }
.cc-sec { padding: .9rem 1rem; border-bottom: var(--pen-1) solid var(--line); }
.cc-sec:last-child { border-bottom: 0; }
.cc-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.cc-h { font-size: var(--fs-sm); font-weight: 700; font-stretch: 112%; margin: 0 0 .5rem; }
.cc-sec-head .cc-h { margin: 0; }
.cc-note, .cc-muted { color: var(--ink-2); font-size: .875rem; margin: .5rem 0 0; }
.cc-linkbtn { font: inherit; font-size: .875rem; font-weight: 600; color: var(--action); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.cc-linkbtn:hover { text-decoration-thickness: 2px; }

.cc-input, .cc-select {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--sheet);
  border: var(--pen-1) solid var(--line);
  border-radius: var(--radius);
  padding: .2rem .4rem;
  font-variant-numeric: tabular-nums;
}
.cc-input:focus, .cc-select:focus { outline: var(--pen-2) solid var(--action); outline-offset: 0; border-color: var(--action); }

/* layers */
.cc-layer-form { display: flex; gap: .4rem; margin-bottom: .5rem; }
.cc-layers { list-style: none; margin: 0; padding: 0; font-size: .875rem; }
.cc-layers li { display: grid; grid-template-columns: 1.1rem 1.1rem minmax(0, 1fr) auto; align-items: center; gap: .35rem; padding: .2rem 0; border-top: var(--pen-1) solid var(--grid); }
.cc-layers li:first-child { border-top: 0; }
.cc-layers li.is-current .cc-layer-name { font-weight: 700; }
.cc-layer-cur { width: .7rem; height: .7rem; border: var(--pen-2) solid var(--ink); border-radius: 50%; background: transparent; padding: 0; cursor: pointer; justify-self: center; }
.is-current .cc-layer-cur { background: var(--ink); }
.cc-swatch { position: relative; width: 1rem; height: 1rem; border: var(--pen-1) solid var(--ink); border-radius: var(--radius); padding: 0; cursor: pointer; overflow: hidden; }
.cc-swatch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }
.cc-layer-name { background: none; border: 0; padding: .1rem 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-layer-name:hover { text-decoration: underline; }
.cc-layer-flags { display: flex; gap: .1rem; }
.cc-flag { background: none; border: var(--pen-1) solid transparent; border-radius: var(--radius); padding: 0 .2rem; color: var(--ink-2); cursor: pointer; font-size: .9rem; line-height: 1.4; }
.cc-flag:hover { border-color: var(--line); color: var(--ink); }
.cc-flag[aria-pressed="true"] { color: var(--layer-orange); }
.cc-layers li.is-off .cc-layer-name { color: var(--ink-2); text-decoration: line-through; }

.cc-dl { display: grid; grid-template-columns: fit-content(50%) minmax(0, 1fr); gap: .25rem .75rem; margin: 0; font-size: .875rem; }
.cc-dl dt { color: var(--ink-2); font-weight: 500; }
.cc-dl dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.cc-report { margin: .6rem 0 0; padding: .5rem .6rem; font-size: .875rem; border-left: var(--pen-3) solid var(--layer-ochre); background: var(--sheet); }
.cc-report p { margin: 0; }
.cc-report ul { margin: .25rem 0 0; padding-left: 1.1rem; }

/* properties */
.cc-props { display: grid; grid-template-columns: fit-content(45%) minmax(0, 1fr); gap: .35rem .6rem; align-items: center; font-size: .875rem; margin: 0; }
.cc-props label, .cc-props .k { color: var(--ink-2); font-weight: 500; }
.cc-props .v { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cc-props .span { grid-column: 1 / -1; }
.cc-props textarea.cc-input { resize: vertical; min-height: 3.5rem; }
.cc-props-sub { grid-column: 1 / -1; margin: .4rem 0 0; font-size: .8125rem; font-weight: 700; color: var(--ink-2); }
.cc-props + .cc-props { margin-top: .9rem; padding-top: .75rem; border-top: var(--pen-1) solid var(--grid); }
.cc-links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.cc-danger { color: var(--layer-red, #b3261e); }
.cc-sheet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .25rem; }
.cc-row { display: flex; gap: .4rem; align-items: center; min-width: 0; }

/* blocks */
.cc-blocks { list-style: none; margin: 0; padding: 0; font-size: .875rem; }
.cc-blocks li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: .5rem; padding: .2rem 0; border-top: var(--pen-1) solid var(--grid); }
.cc-blocks li:first-child { border-top: 0; }
.cc-block-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-blocks .cc-muted { margin: 0; font-variant-numeric: tabular-nums; }

/* ---- Stage ---- */
.cc-stage { grid-area: stage; position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--sheet); }
.cc-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cc-over { cursor: none; touch-action: none; }
.cc-over.is-panning { cursor: grabbing; }
.cc-hint {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  max-width: min(32rem, calc(100% - 2rem));
  padding: .75rem 1rem;
  font-size: .875rem;
  background: var(--sheet-2);
  border: var(--pen-2) solid var(--ink);
  border-radius: var(--radius);
  pointer-events: none;
}
.cc-hint-h { margin: 0 0 .35rem; font-weight: 700; font-stretch: 112%; }
.cc-hint ul { margin: 0; padding-left: 1.1rem; }
.cc-hint li + li { margin-top: .2rem; }
.cc kbd { font-family: inherit; font-size: .8125rem; font-weight: 700; padding: 0 .3rem; color: var(--ink); background: var(--sheet); border: var(--pen-1) solid var(--line); border-radius: var(--radius); }
.cc-drop, .cc-busy {
  position: absolute;
  inset: .75rem;
  z-index: 3;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: color-mix(in srgb, var(--sheet) 85%, transparent);
  border: var(--pen-3) dashed var(--action);
  border-radius: var(--radius);
}
.cc-busy { border-style: solid; border-color: var(--line); }
.cc-drop .bi { color: var(--action); }

/* model / layout tabs, along the bottom of the drawing */
.cc-tabs {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 0;
  height: var(--cc-tabs-h);
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0 .5rem;
  background: var(--sheet-2);
  border-top: var(--pen-1) solid var(--line);
}
.cc-tablist { display: flex; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.cc-tab, .cc-tab-add {
  font: inherit;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ink-2);
  background: transparent;
  border: 0;
  border-bottom: var(--pen-3) solid transparent;
  padding: .3rem .75rem .2rem;
  white-space: nowrap;
  cursor: pointer;
}
.cc-tab:hover, .cc-tab-add:hover { color: var(--ink); }
.cc-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--action); background: var(--sheet); }
.cc-tab:focus-visible, .cc-tab-add:focus-visible { outline: var(--pen-2) solid var(--action); outline-offset: -2px; }
.cc-tab-add { padding-inline: .5rem; }
.cc-canvases { position: absolute; inset: 0 0 var(--cc-tabs-h) 0; }

/* plot dialog */
.cc-dialog {
  width: min(64rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  color: var(--ink);
  background: var(--sheet-2);
  border: var(--pen-2) solid var(--ink);
  border-radius: var(--radius);
}
.cc-dialog::backdrop { background: color-mix(in srgb, var(--ink) 35%, transparent); }
.cc-plot { display: flex; flex-direction: column; max-height: calc(100vh - 2.5rem); }
.cc-plot-head, .cc-plot-foot { display: flex; align-items: center; gap: .75rem; padding: .65rem 1rem; }
.cc-plot-head { justify-content: space-between; border-bottom: var(--pen-1) solid var(--line); }
.cc-plot-head .cc-h { margin: 0; }
.cc-plot-foot { justify-content: flex-end; border-top: var(--pen-1) solid var(--line); flex-wrap: wrap; }
.cc-plot-foot .cc-note { margin: 0 auto 0 0; }
.cc-x { font: inherit; background: none; border: var(--pen-1) solid transparent; border-radius: var(--radius); color: var(--ink); cursor: pointer; padding: .2rem .4rem; }
.cc-x:hover { border-color: var(--line); }
.cc-plot-body { display: grid; grid-template-columns: 19rem minmax(0, 1fr); min-height: 0; overflow: auto; }
.cc-plot-opts { padding: .9rem 1rem; border-right: var(--pen-1) solid var(--line); display: grid; align-content: start; gap: .9rem; }
.cc-plot-opts .cc-note { margin: 0; }
.cc-plot-preview { position: relative; min-height: 22rem; background: color-mix(in srgb, var(--ink) 12%, var(--sheet)); }
.cc-plot-preview canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.cc-ask { width: min(30rem, calc(100vw - 2rem)); }
.cc-ask-text { margin: 0; padding: 1rem; }

/* ---- Command line ---- */
.cc-cmd { grid-area: cmd; background: var(--sheet-2); border-top: var(--pen-2) solid var(--ink); }
.cc-history {
  list-style: none;
  margin: 0;
  padding: .3rem 1rem 0;
  height: 4.6rem;
  overflow-y: auto;
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  white-space: pre-wrap;
}
.cc-history li { line-height: 1.4; }
.cc-history li.is-cmd { color: var(--ink); font-weight: 600; }
.cc-cmdline { display: flex; align-items: center; gap: .5rem; padding: .25rem 1rem .4rem; border-top: var(--pen-1) solid var(--grid); }
.cc-prompt { flex: 0 1 auto; font-size: .875rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }
.cc-cmd-input { flex: 1 1 8rem; min-width: 6rem; font: inherit; font-size: .9375rem; font-weight: 600; color: var(--ink); background: transparent; border: 0; border-bottom: var(--pen-1) solid var(--line); padding: .1rem 0; }
.cc-cmd-input:focus { outline: none; border-bottom: var(--pen-2) solid var(--action); }
.cc-suggest { flex: 0 1 auto; font-size: .8125rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Status bar ---- */
.cc-status { grid-area: status; display: flex; align-items: center; gap: 1rem; padding: .2rem 1rem; font-size: .8125rem; background: var(--sheet-2); border-top: var(--pen-1) solid var(--line); }
.cc-coords { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 13rem; }
.cc-status-msg { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1 1 auto; }
.cc-toggles { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.cc-toggle { font: inherit; font-size: .8125rem; font-weight: 600; padding: .05rem .5rem; color: var(--ink-2); background: transparent; border: var(--pen-1) solid var(--line); border-radius: var(--radius); cursor: pointer; }
.cc-toggle[aria-pressed="true"] { color: var(--on-action); background: var(--action); border-color: var(--action); }
.cc-snapkinds { position: relative; }
.cc-snapkinds summary { list-style: none; cursor: pointer; padding: .05rem .35rem; border: var(--pen-1) solid var(--line); border-radius: var(--radius); }
.cc-snapkinds summary::-webkit-details-marker { display: none; }
.cc-snapkinds fieldset { position: absolute; z-index: 20; right: 0; bottom: calc(100% + .35rem); min-width: 12rem; margin: 0; padding: .5rem .75rem; background: var(--sheet-2); border: var(--pen-2) solid var(--ink); border-radius: var(--radius); }
.cc-snapkinds legend { float: left; width: 100%; font-size: .8125rem; font-weight: 700; margin: 0 0 .3rem; padding: 0; }
.cc-snapkinds label { display: flex; align-items: center; gap: .45rem; padding: .12rem 0; font-size: .875rem; cursor: pointer; }
.cc-snapkinds input { accent-color: var(--action); }

@media (max-width: 1100px) {
  .cc { grid-template-columns: 13rem minmax(0, 1fr) 15rem; }
}
@media (max-width: 760px) {
  body.app-shell .sp-tab { bottom: .75rem; }
  .cc-plot-body { grid-template-columns: minmax(0, 1fr); }
  .cc-plot-opts { border-right: 0; border-bottom: var(--pen-1) solid var(--line); }
  .cc-plot-preview { min-height: 16rem; }
  .cc-tools { flex-wrap: nowrap; overflow-x: auto; }
  .cc-menu-list { position: fixed; top: auto; left: 1rem; right: 1rem; min-width: 0; }
  .shell-seg.cc-set-seg2 { grid-template-columns: minmax(0, 1fr); }
  .cc {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 62vh auto auto auto auto;
    grid-template-areas: "tools" "stage" "cmd" "status" "right" "left";
    height: auto;
  }
  .cc-left, .cc-right { border: 0; border-top: var(--pen-2) solid var(--ink); }
  .cc-status { flex-wrap: wrap; gap: .5rem; padding-inline: 1rem; }
  .cc-coords { min-width: 0; }
  .cc-hint { font-size: .8125rem; }
}

/* ---- library panel (libpanel.js) and attribute rows ---- */
.cc-lib { width: min(72rem, calc(100vw - 2rem)); }
.cc-lib-frame { display: flex; flex-direction: column; max-height: calc(100vh - 2.5rem); min-height: min(36rem, calc(100vh - 2.5rem)); }
.cc-lib-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .5rem 1rem 0; border-bottom: var(--pen-1) solid var(--line); }
.cc-lib-bar .cc-tablist { display: flex; }
.cc-lib-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin-left: auto; padding-bottom: .4rem; font-size: .875rem; }
.cc-lib-search { display: flex; flex-wrap: wrap; gap: .5rem; padding: .6rem 1rem; }
.cc-lib-search .cc-input { flex: 1 1 14rem; width: auto; }
.cc-lib-search .cc-select { flex: 0 1 14rem; width: auto; }
.cc-lib-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 0 1rem 1rem; }
.cc-lib-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .75rem; }
.cc-lib-card { display: grid; grid-template-rows: auto 1fr auto; gap: .5rem; padding: .6rem; border: var(--pen-1) solid var(--line); border-radius: var(--radius); background: var(--sheet); }
.cc-lib-card.is-withdrawn { border-color: var(--layer-red); }
.cc-lib-card .btn-plot { justify-self: start; }
.cc-lib-prev { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--sheet-2); border: var(--pen-1) solid var(--grid); overflow: hidden; }
.cc-lib-prev img, .cc-lib-prev canvas { max-width: 100%; max-height: 100%; }
.cc-lib-prev img { width: 100%; height: 100%; object-fit: contain; background: #fff; }   /* previews are 4:3 tiles; never cropped */
.cc-lib-prev .bi { font-size: 2rem; color: var(--ink-2); }
.cc-lib-meta p { margin: 0 0 .2rem; font-size: .875rem; overflow-wrap: anywhere; }
.cc-lib-name { font-weight: 600; }
.cc-lib-tags { display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: baseline; }
.cc-lib-badge { display: inline-block; padding: 0 .35rem; border: var(--pen-1) solid var(--ink); border-radius: var(--radius); font-size: .75rem; font-weight: 600; }
.cc-lib-warn { color: var(--layer-red); font-weight: 600; }
.cc-lib-empty { padding: 1.5rem 0; }
.cc-lib-rows { list-style: none; margin: 0 0 .75rem; padding: 0; font-size: .875rem; }
.cc-lib-rows li { display: grid; grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1fr) auto; gap: .5rem .75rem; align-items: baseline; padding: .4rem 0; border-top: var(--pen-1) solid var(--grid); }
.cc-lib-credits li { grid-template-columns: 4rem minmax(0, 1fr) auto; }
.cc-lib-num { font-variant-numeric: tabular-nums; font-weight: 600; }
.cc-lib-attrib, .cc-lib-feed { overflow-wrap: anywhere; }
.cc-lib-actions { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.cc-att-ro { overflow-wrap: anywhere; }
.cc-att-credit { overflow-wrap: anywhere; }
.cc-choose { display: grid; gap: .5rem; }
.cc-choose .cc-note { margin: 0; }
.cc-choose-list { height: auto; min-height: 12rem; }
/* Save as: one ruled row per format */
.cc-formats { display: grid; gap: .6rem; }
.cc-format { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .65rem; align-items: start; padding: .65rem .75rem; border: var(--pen-1) solid var(--line); border-radius: var(--radius); cursor: pointer; }
.cc-format:has(input:checked) { border: var(--pen-2) solid var(--ink); padding: calc(.65rem - 1px) calc(.75rem - 1px); }
.cc-format input { margin-top: .2rem; accent-color: var(--ink); }
.cc-format-text { display: grid; gap: .15rem; min-width: 0; }
.cc-format-name { font-weight: 650; display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; }
.cc-format-file { font-weight: 400; color: var(--ink-2); font-size: .875rem; overflow-wrap: anywhere; }
.cc-format .cc-note, .cc-formats > .cc-note { margin: 0; }
@media (max-width: 40rem) {
  .cc-lib-rows li { grid-template-columns: 3rem minmax(0, 1fr); }
  .cc-lib-links { margin-left: 0; }
}

/* ---- Parameters panel (params-panel.js) ---- */
.cc-params .cc-par-table { width: 100%; border-collapse: collapse; font-size: .8125rem; margin: .25rem 0 .5rem; table-layout: fixed; }
.cc-params .cc-par-table th { text-align: left; font-weight: 600; color: var(--ink-2); border-bottom: var(--pen-1) solid var(--line); padding: .2rem .25rem; }
.cc-params .cc-par-table th:nth-child(1) { width: 22%; }
.cc-params .cc-par-table th:nth-child(3) { width: 18%; }
.cc-params .cc-par-table th:nth-child(4) { width: 18%; }
.cc-params .cc-par-table th:nth-child(5) { width: 1.75rem; }
.cc-params .cc-par-table td { padding: .15rem .25rem; vertical-align: top; border-bottom: var(--pen-1) solid var(--line); }
.cc-params .cc-par-table .cc-input { width: 100%; min-width: 0; font-size: .8125rem; padding: .15rem .3rem; }
.cc-params .cc-par-val { font-variant-numeric: tabular-nums; }
.cc-params span.cc-par-val { display: inline-block; padding: .2rem .3rem; }
.cc-params .cc-par-kind { color: var(--ink-2); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-top: .35rem; }
.cc-params tr.is-selected td { background: var(--sheet-2); }
.cc-params tr.is-error .cc-par-expr { border-color: var(--layer-red); }
.cc-par-err { display: block; color: var(--layer-red); font-size: .75rem; }
.cc-params .cc-par-new { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: .25rem; align-items: center; }
.cc-params .cc-par-new .cc-input { min-width: 0; font-size: .8125rem; }
.cc-params .cc-par-msg:empty { display: none; }
.cc-params .cc-par-del { padding: .1rem .25rem; }
