#cpx-ide {
  --ide-bg: #ffffff;
  --ide-edge: #d9dee5;
  --ide-soft: #f6f8fa;
  --ide-ink: #1c2530;
  --ide-dim: #5b6673;
  --ide-accent: #1e73be;

  --ide-accent-ink: #1a66a8;
  --ide-bad: #b3261e;
  --ide-ok: #1a7f37;
  --ide-warn: #8a6100;

  position: relative;
  display: flex;
  flex-direction: column;
  width: 100vw;
  margin: 0 0 0 calc(50% - 50vw);
  height: calc(100dvh - var(--cpx-chrome, 108px));
  min-height: 420px;
  background: var(--ide-bg);
  color: var(--ide-ink);
  font-size: 16px;
  overflow: hidden;

}

html.cpx-app-page, html.cpx-app-page body { overflow: hidden; }
html.cpx-app-page .site-footer,
html.cpx-app-page #footer-widgets { display: none; }

html.cpx-app-page .site-main { margin: 0 !important; padding: 0 !important; }

html.cpx-app-page .inside-navigation,
html.cpx-app-page .inside-header {
  max-width: none !important;
  width: 100% !important;

  box-sizing: border-box !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.cpx-legal { display: flex; gap: 12px; flex: 0 0 auto; }
.cpx-legal a { color: var(--ide-dim); text-decoration: none; font-size: 12px; }
.cpx-legal a:hover { color: var(--ide-accent); text-decoration: underline; }

.cpx-brandline {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  font-weight: 400;
  line-height: 1.2;
}

.cpx-brand {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  background: #1e73be;
  padding: 3px 14px 6px;
  border-radius: 9px;
  line-height: 1.15;
}

.cpx-brandsub { font-size: 15px; font-weight: 600; color: #3d4753; }

.navigation-branding .cpx-brandline {
  align-items: center;
  gap: 10px;
  margin-left: 6px;
}

.cpx-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (max-width: 1180px) { .cpx-brandsub { font-size: 13px; } }
@media (max-width: 900px) { .cpx-brandsub { display: none; } }

:where(#cpx-ide) button:hover,
:where(#cpx-ide) button:focus {
  background-color: #fff;
  color: var(--ide-ink);
}

.cpx-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  row-gap: 8px;
  flex: 0 0 auto;
  padding: 8px 12px;
  background: var(--ide-soft);
  border-bottom: 1px solid var(--ide-edge);
  min-height: 46px;
}
.cpx-bar-spacer { flex: 1 1 auto; }

.cpx-seg { display: inline-flex; border: 1px solid var(--ide-edge); border-radius: 7px; overflow: hidden; background: #fff; }
.cpx-seg button {
  appearance: none; border: 0; background: none; cursor: pointer;
  padding: 6px 13px; font-size: 13.5px; font-weight: 600; color: var(--ide-dim); line-height: 1.2;
}
.cpx-seg button + button { border-left: 1px solid var(--ide-edge); }
.cpx-seg button:hover:not(.on) { background: #eef5fc; color: var(--ide-accent-ink); }
.cpx-seg button.on { background: var(--ide-accent); color: #fff; }
.cpx-seg button.on:hover { background: var(--ide-accent); color: #fff; }

.cpx-name {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px;
  color: var(--ide-dim); position: relative;
}
.cpx-name input {
  width: 10ch; padding: 5px 8px; font-size: 13.5px; font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  border: 1px solid var(--ide-edge); border-radius: 6px; background: #fff;
  color: var(--ide-ink); text-transform: uppercase;
}

.cpx-name.bad input { border-color: var(--ide-bad); }
.cpx-name-err { display: none; }
.cpx-name.bad .cpx-name-err {
  display: block; position: absolute; top: calc(100% + 5px); left: 0;
  z-index: 30; white-space: nowrap;
  background: #fff; color: var(--ide-bad); font-size: 12px; font-weight: 600;
  border: 1px solid var(--ide-bad); border-radius: 6px; padding: 4px 8px;
  box-shadow: 0 4px 14px rgba(16, 24, 32, .12);
}

.cpx-actions { display: flex; gap: 7px; align-items: center; margin-left: auto; }
.cpx-actions button {
  appearance: none; cursor: pointer; border-radius: 7px; padding: 7px 13px;
  font-size: 13.5px; font-weight: 600; line-height: 1.2;
  border: 1px solid var(--ide-edge); background: #fff; color: var(--ide-ink);
  white-space: nowrap;
}
.cpx-actions button:hover:not(:disabled) {
  border-color: var(--ide-accent); color: var(--ide-accent-ink); background: #eef5fc;
}
.cpx-actions button:disabled { opacity: .5; cursor: not-allowed; }

.cpx-actions button kbd {
  font: inherit; font-size: 11px; margin-left: 7px;
  border: 1px solid currentColor; border-radius: 4px; padding: 0 4px;
}
.cpx-primary { background: var(--ide-accent) !important; border-color: var(--ide-accent) !important; color: #fff !important; }
.cpx-primary:hover:not(:disabled) { filter: brightness(1.08); }

.cpx-iconbtn {
  appearance: none; cursor: pointer; border: 1px solid var(--ide-edge);
  background: #fff; color: var(--ide-ink); border-radius: 7px;
  padding: 6px 10px; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.cpx-iconbtn:hover { border-color: var(--ide-accent); color: var(--ide-accent-ink); background: #eef5fc; }
.cpx-iconbtn kbd {
  font: inherit; font-size: 11.5px; opacity: .7; margin-left: 6px;
  border: 1px solid currentColor; border-radius: 4px; padding: 0 4px;
}

.cpx-body { display: flex; flex: 1 1 auto; min-height: 0; }

.cpx-editor {
  flex: 1 1 auto; min-width: 0; min-height: 0;
  display: flex; flex-direction: column;
  position: relative;
}
.cpx-editor.drop::after {
  content: "Drop a .8xp2 or .py file to open it";
  position: absolute; inset: 8px; border: 2px dashed var(--ide-accent); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(30, 115, 190, .07); color: var(--ide-accent);
  font-weight: 600; font-size: 15px; pointer-events: none; z-index: 4;
}

.cpx-side {
  flex: 0 0 var(--panel-w, 340px);
  min-width: 0;
  display: flex; flex-direction: column;
  border-left: 1px solid var(--ide-edge);
  background: var(--ide-soft);
  position: relative;
}
#cpx-ide.panel-closed .cpx-side { display: none; }

.cpx-grip {
  position: absolute;
  left: -3px; top: 0; bottom: 0; width: 7px;
  cursor: col-resize;
  z-index: 6;
  background: transparent;
  touch-action: none;
}
.cpx-grip:hover, .cpx-grip.dragging { background: rgba(30, 115, 190, .28); }

#cpx-ide.resizing { user-select: none; cursor: col-resize; }
#cpx-ide.resizing .cpx-editor { pointer-events: none; }

.cpx-sidehead {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-bottom: 1px solid var(--ide-edge);
  font-size: 13px; font-weight: 700;
}
.cpx-sidehead .cpx-x {
  margin-left: auto; appearance: none; border: 0; background: none;
  cursor: pointer; color: var(--ide-dim); font-size: 17px; line-height: 1; padding: 2px 4px;
}
.cpx-sidehead .cpx-x:hover { color: var(--ide-ink); }
.cpx-sidebody { flex: 1 1 auto; overflow: auto; padding: 12px; }

.cpx-status {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 6px 12px;
  border-top: 1px solid var(--ide-edge);
  background: var(--ide-soft);
  font-size: 13.5px; color: var(--ide-dim);
  min-height: 30px;
}

.cpx-wordmark {
  flex: 0 0 auto; font-size: 15px; font-weight: 700; color: var(--ide-ink);
  letter-spacing: .01em; white-space: nowrap; user-select: none;
}
.cpx-msg { flex: 1 1 auto; }
.cpx-msg.bad { color: var(--ide-bad); font-weight: 600; }
.cpx-msg.ok { color: var(--ide-ok); font-weight: 600; }

.cpx-msg.warn { color: var(--ide-warn); font-weight: 600; }

.cpx-size { font-variant-numeric: tabular-nums; opacity: .75; }
.cpx-size.bad { color: var(--ide-bad); opacity: 1; font-weight: 600; }
.cpx-tidy {
  appearance: none; cursor: pointer; padding: 1px 8px; font-size: 12px;
  font-weight: 600; border-radius: 5px;
  border: 1px solid var(--ide-accent); background: none; color: var(--ide-accent);
}
.cpx-tidy:hover { background: var(--ide-accent); color: #fff; }

.cpx-palette-back {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(16, 24, 32, .32);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 10vh 16px 16px;
}
.cpx-palette {
  width: min(680px, 100%); max-height: 70vh;
  display: flex; flex-direction: column;
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 18px 60px rgba(16, 24, 32, .30);
}
.cpx-palette input {
  border: 0; border-bottom: 1px solid var(--ide-edge);
  padding: 15px 18px; font-size: 16.5px; outline: none; color: var(--ide-ink);
}
.cpx-palette-list { overflow: auto; }
.cpx-prow {
  display: flex; gap: 12px; align-items: baseline;
  padding: 8px 18px; cursor: pointer;
}
.cpx-prow.on { background: rgba(30, 115, 190, .11); }
.cpx-prow code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px; font-weight: 600; color: #0b5cab; background: none;
  padding: 0; flex: 0 0 auto; min-width: 11ch;
}
.cpx-prow span { color: var(--ide-dim); font-size: 13.5px; line-height: 1.45; }
.cpx-prow .cpx-pcat { margin-left: auto; font-size: 11.5px; opacity: .65; flex: 0 0 auto; }
.cpx-palette-empty { padding: 18px; color: var(--ide-dim); font-size: 14.5px; }
.cpx-palette-foot {
  border-top: 1px solid var(--ide-edge); padding: 8px 18px;
  font-size: 12px; color: var(--ide-dim); background: var(--ide-soft);
}

.cpx-search {
  width: 100%; padding: 8px 10px; font-size: 14px; margin-bottom: 10px;
  border: 1px solid var(--ide-edge); border-radius: 6px; background: #fff;
  color: var(--ide-ink);
}
.cpx-list { display: block; }
.cpx-group { border-bottom: 1px solid var(--ide-edge); }
.cpx-group summary {
  cursor: pointer; padding: 7px 4px; font-size: 12.5px; font-weight: 700;
  display: flex; align-items: center; gap: 8px; color: var(--ide-ink);
}
.cpx-gcount { margin-left: auto; font-weight: 400; color: var(--ide-dim); font-size: 11.5px; }
.cpx-item {
  display: block; width: 100%; text-align: left; appearance: none;
  background: none; border: 0; border-radius: 6px; cursor: pointer;
  padding: 6px 8px; color: var(--ide-ink);
}
.cpx-item:hover { background: rgba(30, 115, 190, .09); }
.cpx-item code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; font-weight: 600; color: #0b5cab; background: none; padding: 0;
}
.cpx-short { display: block; font-size: 12px; color: var(--ide-dim); line-height: 1.45; margin-top: 2px; }
.cpx-empty { font-size: 13.5px; color: var(--ide-dim); padding: 8px 4px; }

.cpx-doc h3 {
  margin: 30px 0 10px; padding-top: 24px; font-size: 18px; line-height: 1.3;
  border-top: 1px solid var(--ide-edge);
}
.cpx-doc h3:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.cpx-doc h4 { margin: 22px 0 8px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ide-dim); }
.cpx-doc p { margin: 0 0 14px; font-size: 14px; line-height: 1.7; }
.cpx-doc ul { margin: 0 0 14px; padding-left: 22px; }
.cpx-doc li { font-size: 14px; line-height: 1.7; }
.cpx-doc li + li { margin-top: 3px; }
.cpx-doc code { background: rgba(27, 31, 36, .06); border-radius: 4px; padding: 1px 4px; font-size: .92em; }
.cpx-syntax {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; background: #fff; border: 1px solid var(--ide-edge);
  border-radius: 6px; padding: 7px 9px; color: #0b5cab; overflow-x: auto; white-space: pre;
}
.cpx-gotcha {
  background: #fff8e6; border: 1px solid #f0d89a; border-left-width: 3px;
  border-radius: 6px; padding: 9px 11px; margin: 12px 0;
}

.cpx-gotcha > strong { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ide-warn); margin-bottom: 4px; }
.cpx-gotcha p { margin: 0; font-size: 13.5px; }

.cpx-gotcha p + p { margin-top: 9px; }
.cpx-ex {
  background: #fff; border: 1px solid var(--ide-edge); border-radius: 6px;
  padding: 11px 12px; overflow-x: auto; margin: 0 0 8px;
}
.cpx-ex code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; white-space: pre; background: none; padding: 0;
}
.cpx-exnote { font-size: 13px; color: var(--ide-dim); }

.cpx-insert {
  appearance: none; cursor: pointer; margin: 6px 6px 12px 0;
  background: #fff; border: 1px solid var(--ide-accent); color: var(--ide-accent);
  border-radius: 6px; padding: 5px 10px; font-size: 12.5px; font-weight: 600;
}
.cpx-insert:hover { background: var(--ide-accent); color: #fff; }
.cpx-rel { font-size: 13px; color: var(--ide-dim); margin-top: 14px; }
.cpx-link {
  appearance: none; border: 0; background: none; cursor: pointer; padding: 0;
  color: var(--ide-accent); font-size: 13px; text-decoration: underline;
}
.cpx-back {
  appearance: none; border: 0; background: none; cursor: pointer;
  font-size: 12.5px; color: var(--ide-accent); padding: 0 0 8px; font-weight: 600;
}

.cpx-back:hover, .cpx-link:hover, .cpx-x:hover {
  background: none;
}
.cpx-back:hover, .cpx-link:hover { text-decoration: underline; }
.cpx-keys { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.cpx-keys td { padding: 7px 6px; font-size: 13px; border-bottom: 1px solid var(--ide-edge); vertical-align: top; line-height: 1.5; }
.cpx-keys td:first-child { white-space: nowrap; width: 1%; font-family: ui-monospace, Menlo, monospace; }

.cpx-files .cpx-count:empty { display: none; }
.cpx-files .cpx-count {
  margin-left: 7px; background: var(--ide-accent); color: #fff;
  border-radius: 20px; padding: 1px 7px; font-size: 11px; font-weight: 700;
}
.cpx-files:hover .cpx-count { background: var(--ide-accent); color: #fff; }

.cpx-files-panel { display: flex; flex-direction: column; min-height: 0; }

.cpx-now {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name btn" "where btn";
  align-items: center;
  gap: 1px 10px;
  padding: 10px 12px;
  margin: -12px -14px 0;
  border-bottom: 1px solid var(--ide-edge);
  background: var(--ide-soft);
}
.cpx-now-line { grid-area: name; display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.cpx-now-name {
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cpx-now .cpx-mini { grid-area: btn; }
.cpx-tag {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--ide-dim); flex: 0 0 auto;
}
.cpx-where { grid-area: where; font-size: 12px; color: var(--ide-dim); }
.cpx-where.on { color: var(--ide-ok); }

.cpx-lib-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin: 16px 0 8px;
}
.cpx-files-panel h3 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--ide-dim); margin: 0; font-weight: 700;
}
.cpx-lib { border: 1px solid var(--ide-edge); border-radius: 9px; overflow: hidden; }
.cpx-lib-row { display: flex; align-items: stretch; }
.cpx-lib-row + .cpx-lib-row { border-top: 1px solid var(--ide-edge); }
.cpx-lib-row.current { background: #eef5fc; box-shadow: inset 3px 0 0 var(--ide-accent); }
.cpx-lib-open {
  flex: 1 1 auto; min-width: 0; appearance: none; border: 0; background: none;
  cursor: pointer; text-align: left; padding: 9px 11px; display: block;
}
.cpx-lib-open:hover { background: rgba(30, 115, 190, .07); }
.cpx-lib-name {
  display: block; font-size: 13.5px; font-weight: 600; color: var(--ide-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cpx-lib-meta { display: block; font-size: 11.5px; color: var(--ide-dim); margin-top: 2px; }

.cpx-lib-snip {
  display: block; font-size: 11px; color: var(--ide-dim); margin-top: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .85;
}
.cpx-lib-del {
  appearance: none; border: 0; border-left: 1px solid var(--ide-edge);
  background: none; cursor: pointer; color: var(--ide-dim);
  font-size: 11.5px; padding: 0 11px; white-space: nowrap;
}
.cpx-lib-del:hover { color: var(--ide-bad); background: rgba(179, 38, 30, .06); }
.cpx-lib-del.armed { color: #fff; background: var(--ide-bad); font-weight: 700; }

.cpx-more { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--ide-edge); }
.cpx-more-row { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 6px; }
.cpx-textbtn {
  appearance: none; border: 0; background: none; padding: 2px 0; cursor: pointer;
  color: var(--ide-accent); font-size: 12.5px; font-weight: 600; font-family: inherit;
}
.cpx-textbtn:hover { color: var(--ide-accent-ink); text-decoration: underline; background: none; }

.cpx-row-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cpx-mini {
  appearance: none; cursor: pointer; border: 1px solid var(--ide-edge);
  background: #fff; color: var(--ide-ink); border-radius: 6px;
  padding: 6px 11px; font-size: 12.5px; font-weight: 600; line-height: 1.2;
  white-space: nowrap;
}
.cpx-mini:hover { border-color: var(--ide-accent); color: var(--ide-accent-ink); background: #eef5fc; }
.cpx-mini.primary { background: var(--ide-accent); border-color: var(--ide-accent); color: #fff; }
.cpx-mini.primary:hover { color: #fff; filter: brightness(1.08); background: var(--ide-accent); }

.cpx-sidebody .cpx-note {
  font-size: 12px; color: var(--ide-dim); line-height: 1.55; margin: 8px 0 0;
}

.cpx-report {
  appearance: none; cursor: pointer; flex: 0 0 auto; white-space: nowrap;
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--ide-accent-ink); background: #fff;
  border: 1px solid var(--ide-accent); border-radius: 7px; padding: 5px 12px;
}
.cpx-report:hover, .cpx-report:focus {
  color: #fff; border-color: var(--ide-accent);
  background: var(--ide-accent); text-decoration: none;
}

.cpx-toasts {

  position: absolute; top: 54px; right: 14px; z-index: 360;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
  max-width: min(430px, calc(100vw - 28px));
}
.cpx-toast {
  pointer-events: auto;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 12px 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--ide-edge);
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 24, 32, .20);
  font-size: 13.5px; line-height: 1.5; color: var(--ide-ink);
  animation: cpx-toast-in .16s ease-out;
}
@keyframes cpx-toast-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .cpx-toast { animation: none; } }
.cpx-toast-icon {
  flex: 0 0 auto; width: 19px; height: 19px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700; color: #fff; margin-top: 1px;
}
.cpx-toast-text { flex: 1 1 auto; }
.cpx-toast.bad { border-color: var(--ide-bad); border-left: 4px solid var(--ide-bad); }
.cpx-toast.bad .cpx-toast-icon { background: var(--ide-bad); }
.cpx-toast.ok { border-color: var(--ide-ok); border-left: 4px solid var(--ide-ok); }
.cpx-toast.ok .cpx-toast-icon { background: var(--ide-ok); }
.cpx-toast.warn { border-color: var(--ide-warn); border-left: 4px solid var(--ide-warn); }
.cpx-toast.warn .cpx-toast-icon { background: var(--ide-warn); }
.cpx-toast-x {
  appearance: none; border: 0; background: none; cursor: pointer;
  color: var(--ide-dim); font-size: 18px; line-height: 1; padding: 0 2px;
  flex: 0 0 auto; font-family: inherit;
}
.cpx-toast-x:hover { color: var(--ide-ink); background: none; }

.cpx-reflink {
  display: flex; align-items: center; gap: 6px;
  margin: 0 0 10px; padding: 7px 9px;
  font-size: 12.5px; font-weight: 600; line-height: 1.35;
  color: var(--ide-accent-ink); text-decoration: none;
  background: #eef5fc; border: 1px solid #cfe0f1; border-radius: 7px;
}
.cpx-reflink:hover, .cpx-reflink:focus {
  background: var(--ide-accent); border-color: var(--ide-accent); color: #fff;
  text-decoration: none;
}
.cpx-reflink-ext { margin-left: auto; font-weight: 400; opacity: .85; }

.cpx-reflink-warn {
  color: #7a3e08; background: #fff4dc; border-color: #f0c986;
}
.cpx-reflink-warn:hover, .cpx-reflink-warn:focus {
  background: #d97706; border-color: #d97706; color: #fff;
}

.cpx-docref {
  display: inline-block; margin: 10px 0 0;
  font-size: 12.5px; color: var(--ide-accent-ink); text-decoration: underline;
}
.cpx-docref:hover { color: var(--ide-accent); }

.cpx-refopt {
  display: flex; align-items: center; gap: 8px;
  margin: 14px 0 0; padding-top: 12px;
  border-top: 1px solid var(--ide-edge);
  font-size: 12.5px; color: var(--ide-dim); cursor: pointer;
}
.cpx-refopt input { margin: 0; cursor: pointer; }

.cpx-report-box {
  width: min(560px, 92vw); max-height: 84vh; overflow: auto;
  background: #fff; border-radius: 12px; padding: 20px 22px;
  box-shadow: 0 18px 48px rgba(16, 24, 32, .28);
}
.cpx-report-box h3 { margin: 0 0 14px; font-size: 17px; }

.cpx-report-addr {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--ide-soft); border: 1px solid var(--ide-edge);
  border-radius: 9px; padding: 12px 14px; margin-bottom: 14px;
}
.cpx-report-email {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 17px; font-weight: 700; color: var(--ide-ink);
  user-select: all;
  flex: 1 1 auto; word-break: break-all;
}

.cpx-report-close { margin-top: 0; }
.cpx-report-box p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: var(--ide-ink); }
.cpx-report-box .cpx-note { color: var(--ide-dim); font-size: 12.5px; }
.cpx-report-box a.cpx-mini { text-decoration: none; display: inline-block; }
.cpx-diag {
  user-select: all;
  background: var(--ide-soft); border: 1px solid var(--ide-edge); border-radius: 8px;
  padding: 10px 12px; margin: 0 0 14px; max-height: 190px; overflow: auto;
}
.cpx-diag code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px; line-height: 1.5; color: var(--ide-dim); white-space: pre-wrap;
}

.cpx-pconcept { background: #eef5fc; color: #1a66a8; border-radius: 4px; padding: 1px 6px; }

.cpx-typed {
  margin-left: 8px; font-size: 11px; color: var(--ide-dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  opacity: .85; white-space: nowrap;
}
.cpx-typehint { font-size: 12.5px; color: var(--ide-dim); margin: -4px 0 10px; }
.cpx-typehint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--ide-soft); border: 1px solid var(--ide-edge);
  border-radius: 4px; padding: 1px 5px;
}

#cpx-ide .cpx-seg button { font-size: 13.5px; }
#cpx-ide .cpx-actions button { font-size: 13.5px; }
#cpx-ide .cpx-iconbtn { font-size: 13px; }
#cpx-ide .cpx-sidehead .cpx-x { font-size: 17px; }
#cpx-ide .cpx-tidy { font-size: 12px; }
#cpx-ide .cpx-insert { font-size: 12.5px; }
#cpx-ide .cpx-link { font-size: 13px; }
#cpx-ide .cpx-back { font-size: 12.5px; }
#cpx-ide .cpx-lib-del { font-size: 11.5px; }
#cpx-ide .cpx-textbtn { font-size: 12.5px; }
#cpx-ide .cpx-mini { font-size: 12.5px; }
#cpx-ide .cpx-item { font-size: 13px; }
#cpx-ide .cpx-report { font-size: 13.5px; }
#cpx-ide .cpx-toast-x { font-size: 18px; }

#cpx-ide .cpx-search { font-size: 14px; }

@media (max-width: 1300px) {
  .cpx-bar { gap: 8px; }
  .cpx-bar-spacer { display: none; }
  .cpx-actions { flex: 1 1 100%; margin-left: 0; }
}

@media (max-width: 900px) {

  .cpx-iconbtn kbd { display: none; }
}
@media (max-width: 860px) {

  .cpx-side { position: absolute; inset: 0 0 0 auto; width: min(360px, 88vw); z-index: 340;
              box-shadow: -8px 0 28px rgba(16, 24, 32, .16); }
  .cpx-seo { max-width: 100%; flex-basis: 100%; }

  .cpx-toasts {
    position: fixed;
    top: auto; bottom: 12px; left: 12px; right: 12px; max-width: none;
  }
}
@media (max-width: 560px) {
  .cpx-actions button { padding: 7px 10px; }
  .cpx-actions button kbd { display: none; }
  .cpx-name input { width: 8ch; }

  .cpx-status { flex-wrap: wrap; row-gap: 4px; }
  .cpx-msg {
    flex: 1 1 100%;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
