.ct-page {
  --ct-accent: #be8af0;
  --ct-muted: #cbb9df;
  --ct-border: #705184;
  --ct-panel: #24192f;
  color: #f5efff;
  max-width: 1580px;
  margin: 0 auto;
  font: 15px/1.6 system-ui, "Segoe UI", sans-serif;
}
.ct-page * { box-sizing: border-box; }
.ct-page [hidden] { display: none !important; }
.ct-page .ct-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: center;
  gap: 26px;
  padding: 25px 30px;
  border: 1px solid #8a619e;
  border-radius: 19px;
  margin-bottom: 20px;
  background: radial-gradient(ellipse at 95% 10%, #a469d432, transparent 60%), linear-gradient(120deg, #35213f, #21162d);
}
.ct-page .ct-heading { display: flex; align-items: center; gap: 17px; }
.ct-page .ct-heading img { width: 62px; height: 62px; object-fit: contain; flex: none; }
.ct-page h1 { color: #fff; font-size: clamp(25px, 2.5vw, 35px); line-height: 1.18; margin: 8px 0; letter-spacing: -.6px; }
.ct-page .ct-kicker { color: #e1bcff; font-size: 10px; font-weight: 750; letter-spacing: 1.5px; }
.ct-page .ct-intro { max-width: 82ch; color: #ddcfea; margin: 12px 0 0; }
.ct-page .ct-hero-art svg { width: 100%; max-height: 135px; display: block; }
.ct-page .ct-workspace { height: min(790px, 82dvh); min-height: 580px; display: flex; flex-direction: column; border: 1px solid var(--ct-border); border-radius: 16px; overflow: hidden; background: #17111f; isolation: isolate; }
.ct-page button, .ct-page input, .ct-page select, .ct-page textarea { font: inherit; color: #f5efff; }
.ct-page button, .ct-page select { background: #33233e; border: 1px solid #87619b; border-radius: 8px; min-height: 38px; padding: 8px 12px; }
.ct-page button { cursor: pointer; }
.ct-page button:hover { background: #4a2b5b; border-color: #b28bca; }
.ct-page button:disabled { opacity: .45; cursor: default; }
.ct-page .ct-primary { background: #8350b0; border-color: #c294ec; color: white; font-weight: 700; }
.ct-page .ct-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 15px; border-bottom: 1px solid var(--ct-border); background: #2d1d38; flex: none; }
.ct-page .ct-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ct-page .ct-actions button { font-size: 12px; }
.ct-page .ct-file { position: relative; display: inline-flex; align-items: center; min-height: 38px; padding: 8px 13px; background: #593477; border: 1px solid #b386d4; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 700; overflow: hidden; }
.ct-page .ct-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ct-page .ct-viewbar { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 9px 15px; background: #21172d; border-bottom: 1px solid #50345e; flex: none; }
.ct-page .ct-tabs { display: flex; gap: 7px; flex-wrap: wrap; }
.ct-page .ct-tabs button { border-color: transparent; background: transparent; font-size: 12px; min-height: 32px; padding: 5px 10px; }
.ct-page .ct-tabs button[aria-selected=true] { border-color: #ae82cb; background: #513164; color: white; }
.ct-page .ct-body { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(0, 1.5fr) 270px; min-height: 0; flex: 1; }
.ct-page .ct-source { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-right: 1px solid #57365f; background: #1d1427; }
.ct-page .ct-source-heading { display: flex; gap: 9px; align-items: center; justify-content: space-between; padding: 14px; border-bottom: 1px solid #50335d; }
.ct-page .ct-source-heading strong { font-size: 12px; }
.ct-page .ct-source-heading button { min-height: 29px; padding: 4px 8px; font-size: 11px; }
.ct-page .ct-editor { min-height: 0; flex: 1; width: 100%; resize: none; background: #130e1c; color: #dfc8f4; border: 0; padding: 17px; font: 13px/1.75 ui-monospace, Consolas, monospace; tab-size: 2; }
.ct-page .ct-source-help { padding: 10px 15px; color: #b9a1ce; font-size: 11px; border-top: 1px solid #493052; margin: 0; }
.ct-page .ct-source-body { display: flex; min-height: 0; flex: 1; overflow: auto; }
.ct-page .ct-canvasbar { padding: 9px 16px; border-bottom: 1px solid #51345f; }
.ct-page .ct-evidence-board { display: grid; gap: 16px; }
.ct-page .ct-evidence-card { position: relative; min-width: 0; padding: 18px; border: 1px solid #654779; border-radius: 12px; background: #261a32; }
.ct-page .ct-evidence-card h3 { margin: 0 30px 14px 0; color: #efdfff; font: 650 14px/1.6 system-ui; overflow-wrap: anywhere; }
.ct-page .ct-record-number { position: absolute; top: 16px; right: 14px; color: #c5a9df; font: 11px ui-monospace, monospace; }
.ct-page .ct-evidence-card dl { display: grid; grid-template-columns: minmax(80px, .7fr) minmax(0, 1.3fr); gap: 8px 15px; margin: 0; font-size: 12px; }
.ct-page .ct-evidence-card dt { color: #c1a5d3; }
.ct-page .ct-evidence-card dd { color: #f1e5fa; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.ct-page .ct-board-protocol .ct-evidence-card { border-left: 4px solid #81b6c6; }
.ct-page .ct-board-code .ct-evidence-card { background: #1c1428; border-radius: 3px; font-family: ui-monospace, Consolas, monospace; }
.ct-page .ct-board-code .ct-evidence-card h3 { border-bottom: 1px solid #55406a; padding-bottom: 10px; }
.ct-page .ct-board-ops { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.ct-page .ct-board-ops .ct-evidence-card { border-top: 3px solid #c8a665; }
.ct-page .ct-board-privacy .ct-evidence-card { border-inline-start: 4px solid #da9db7; border-radius: 0 10px 10px 0; }
.ct-page .ct-board-files .ct-evidence-card { padding-left: 34px; border-left: 2px solid #93b8a3; margin-left: 10px; }
.ct-page .ct-board-files .ct-evidence-card:before { content: '◇'; position: absolute; left: -8px; top: 17px; background: #160f20; color: #b5dbbf; }
.ct-page .ct-evidence-card dd.ct-value-yes { color: #b8e9c9; }
.ct-page .ct-evidence-card dd.ct-value-no { color: #f4b5c5; }
.ct-page .ct-stage { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; background: #160f20; }
.ct-page .ct-result-title { padding: 14px 18px 10px; border-bottom: 1px solid #41274d; flex: none; }
.ct-page .ct-result-title h2 { color: #faf3ff; font-size: 17px; line-height: 1.4; margin: 0; }
.ct-page .ct-result-title p { color: #bda4d0; font-size: 11px; margin: 3px 0 0; }
.ct-page .ct-result { padding: 20px; overflow: auto; min-height: 0; flex: 1; overscroll-behavior: contain; }
.ct-page .ct-inspector { min-width: 0; min-height: 0; overflow: auto; background: #26192f; border-left: 1px solid #62406c; padding: 17px; }
.ct-page .ct-inspector h2 { font-size: 14px; margin: 0 0 15px; color: #f5e9ff; }
.ct-page .ct-field { display: grid; gap: 7px; font-size: 12px; color: #d5bde8; margin-bottom: 16px; }
.ct-page .ct-field input:not([type=checkbox]), .ct-page .ct-field textarea { width: 100%; min-width: 0; background: #170f23; border: 1px solid #78588a; border-radius: 8px; padding: 9px 10px; }
.ct-page .ct-field input[type=range] { accent-color: var(--ct-accent); padding: 0; }
.ct-page .ct-field input[type=checkbox] { accent-color: #ba8ae4; width: 17px; height: 17px; }
.ct-page .ct-field small { color: #b59acb; }
.ct-page .ct-method { font-size: 12px; color: #ccb5df; border-top: 1px solid #62406c; margin-top: 20px; padding-top: 16px; }
.ct-page .ct-metrics { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.ct-page .ct-metric { border: 1px solid #77508a; border-radius: 10px; padding: 11px 15px; background: #2b1b39; min-width: 110px; }
.ct-page .ct-metric strong { display: block; color: #e2b0ff; font: 750 21px/1.4 system-ui; }
.ct-page .ct-metric span { font-size: 10px; color: #c5add9; }
.ct-page .ct-table-scroll { max-width: 100%; overflow: auto; border: 1px solid #684775; border-radius: 11px; }
.ct-page .ct-table-scroll table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ct-page .ct-table-scroll th { color: #e6c3ff; background: #372142; position: sticky; top: 0; z-index: 1; white-space: nowrap; }
.ct-page .ct-table-scroll th, .ct-page .ct-table-scroll td { text-align: start; padding: 12px 13px; border-bottom: 1px solid #4c305a; max-width: 320px; min-width: 85px; overflow-wrap: anywhere; vertical-align: top; }
.ct-page .ct-table-scroll tr:nth-child(even) { background: #1e1429; }
.ct-page .ct-table-scroll tbody tr { cursor: pointer; }
.ct-page .ct-table-scroll tbody tr:hover { background: #392246; }
.ct-page .ct-foot { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 15px; border-top: 1px solid #694578; background: #261832; font-size: 11px; flex: none; }
.ct-page .ct-foot [data-tone=error] { color: #ffb1bd; }
.ct-page .ct-foot [data-tone=success] { color: #c0e9d1; }
.ct-page .ct-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.ct-page .ct-artifact { border: 1px solid #76538b; border-radius: 12px; background: #2a1c37; padding: 18px; }
.ct-page .ct-artifact h3 { color: #efd8ff; font-size: 14px; margin: 0 0 7px; overflow-wrap: anywhere; }
.ct-page .ct-artifact p { font-size: 11px; color: #c4acd7; }
.ct-page .ct-findings { display: grid; gap: 10px; }
.ct-page .ct-finding { border-inline-start: 3px solid #e1b266; padding: 12px 15px; background: #342334; border-radius: 0 8px 8px 0; }
.ct-page .ct-finding strong { display: block; font-size: 12px; color: #f0d2a1; }
.ct-page .ct-finding p { font-size: 12px; color: #e4c9dc; margin: 4px 0 0; }
.ct-page .ct-timeline { display: grid; gap: 14px; padding-left: 20px; border-left: 2px solid #86609c; }
.ct-page .ct-event { position: relative; border: 1px solid #6c477e; background: #2d1e3a; border-radius: 10px; padding: 14px 18px; }
.ct-page .ct-event:before { content: ""; position: absolute; top: 22px; left: -28px; width: 11px; height: 11px; background: #c98cf5; border-radius: 50%; }
.ct-page .ct-event h3 { color: #f0d8ff; font-size: 13px; margin: 0; }
.ct-page .ct-event p { color: #c5afd6; font-size: 12px; white-space: pre-wrap; margin: 6px 0 0; }
.ct-page .ct-event.ct-playing { outline: 2px solid #d3a4f2; background: #4a2a5c; }
.ct-page .ct-graph svg, .ct-page .ct-vector-preview svg { width: 100%; height: auto; max-height: 100%; display: block; }
.ct-page .ct-vector-preview { min-height: 340px; height: 100%; background: conic-gradient(#251a32 25%, #1d1429 0 50%, #251a32 0 75%, #1d1429 0) 0 0 / 24px 24px; border: 1px solid #684579; border-radius: 12px; display: grid; place-items: center; overflow: auto; }
.ct-page .ct-vector-preview svg { background: transparent; min-width: 300px; max-width: 100%; }
.ct-page .ct-photo-preview { min-height: 0; height: 100%; display: grid; place-items: center; overflow: auto; background: conic-gradient(#332b3d 25%, #261f30 0 50%, #332b3d 0 75%, #261f30 0) 0 0 / 20px 20px; border-radius: 10px; border: 1px solid #705782; }
.ct-page .ct-heading h1[data-tool-heading] > .tool-icon { display: none; }
.ct-page .ct-photo-preview canvas { display: block; max-width: 100%; max-height: 100%; object-fit: contain; touch-action: none; }
.ct-page .ct-filmstrip { display: flex; gap: 10px; padding: 10px 15px; overflow: auto; background: #261c2f; border-top: 1px solid #594366; flex: none; }
.ct-page .ct-file-pill { white-space: nowrap; font-size: 11px; display: flex; gap: 9px; align-items: center; border: 1px solid #77518b; border-radius: 9px; padding: 7px 10px; }
.ct-page .ct-file-pill button { min-height: 22px; padding: 1px 5px; }
.ct-page .ct-matrix-cell { display: block; border-radius: 6px; padding: 5px 8px; background: #51313c; color: #ffc0cb; }
.ct-page .ct-matrix-cell.ct-allow { background: #234334; color: #bbefd4; }
.ct-page .ct-markdown-proof { background: #fff; color: #2c1d38; padding: 28px; border-radius: 12px; }
.ct-page .ct-markdown-proof :is(p, li, h1, h2, h3, h4, span, code) { color: #2c1d38; }
.ct-page .cf-demo :is(p, li, span, label, th, td, h2, h3) { color: inherit; }
.ct-page .ct-source-pair { display: grid; grid-template-columns: 1fr 1fr; flex: 1; min-height: 0; }
.ct-page .ct-source-pair label { min-width: 0; min-height: 0; display: flex; flex-direction: column; color: #c9aadf; font-size: 11px; padding: 10px 0 0; }
.ct-page .ct-source-pair label span { padding: 0 14px 8px; }
.ct-page .ct-source-pair textarea { border-right: 1px solid #52305f; }
.ct-page .ct-layout-component .ct-body, .ct-page .ct-layout-vector .ct-body, .ct-page .ct-layout-photo .ct-body { grid-template-columns: minmax(0, 1fr) 290px; }
.ct-page .ct-layout-component .ct-source, .ct-page .ct-layout-vector .ct-source, .ct-page .ct-layout-photo .ct-source { display: none; }
.ct-page .ct-workspace.ct-source-open .ct-body { grid-template-columns: minmax(230px, .85fr) minmax(0, 1.35fr) 290px; }
.ct-page .ct-workspace.ct-source-open .ct-source { display: flex; }
.ct-page .ct-layout-protocol .ct-source { border-top: 3px solid #75b9ca; }
.ct-page .ct-layout-code .ct-body { grid-template-columns: minmax(330px, 1.15fr) minmax(0, 1.4fr) 240px; }
.ct-page .ct-layout-code .ct-source { border-top: 3px solid #b296e8; }
.ct-page .ct-layout-ops .ct-body { grid-template-columns: minmax(220px, .7fr) minmax(0, 1.8fr) 245px; }
.ct-page .ct-layout-ops .ct-stage { border-top: 3px solid #d2ad68; }
.ct-page .ct-layout-privacy .ct-body { grid-template-columns: minmax(260px, 1fr) minmax(0, 1.4fr) 250px; }
.ct-page .ct-layout-privacy .ct-result-title { border-left: 4px solid #d997b1; }
.ct-page .ct-layout-files .ct-body { grid-template-columns: minmax(240px, .7fr) minmax(0, 1.7fr) 245px; }
.ct-page .ct-layout-files .ct-source { border-top: 3px solid #8cb9a4; }
.ct-page .ct-layout-photo .ct-stage { border-top: 3px solid #d3a7d2; }
.ct-page .ct-layout-vector .ct-stage { border-top: 3px solid #8fa1e0; }
.ct-page .ct-close-settings { display: none; }
.ct-page .ct-usage { margin: 20px 0 0; color: #baa4cf; font-size: 12px; }
.ct-page dialog { border: 1px solid #b68bd4; border-radius: 15px; background: #24172f; color: #f3e9ff; width: min(850px, 94vw); max-height: 85dvh; overflow: auto; padding: 24px; }
.ct-page dialog::backdrop { background: #08040bc9; }
.ct-page dialog pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.8 ui-monospace, Consolas, monospace; }
.ct-page :focus-visible { outline: 3px solid #e0bd6b; outline-offset: 3px; }
.ct-page .ct-workspace:fullscreen, .ct-page .ct-workspace.ct-focus { width: 100%; height: 100dvh; min-height: 0; max-height: none; border-radius: 0; }
.ct-page .ct-workspace.ct-focus { position: fixed; inset: 0; z-index: 100000; }
@media (max-width: 1100px) {
  .ct-page .ct-body, .ct-page .ct-layout-code .ct-body, .ct-page .ct-layout-ops .ct-body, .ct-page .ct-layout-files .ct-body, .ct-page .ct-layout-privacy .ct-body { grid-template-columns: minmax(230px, .8fr) minmax(0, 1.5fr); }
  .ct-page .ct-layout-component .ct-body, .ct-page .ct-layout-vector .ct-body, .ct-page .ct-layout-photo .ct-body { grid-template-columns: minmax(0, 1fr); }
  .ct-page .ct-inspector { display: none; }
  .ct-page .ct-workspace.ct-settings-open .ct-inspector { display: block; position: absolute; right: 0; top: 0; bottom: 0; width: min(350px, 92%); z-index: 12; box-shadow: -20px 0 70px #050308a0; }
  .ct-page .ct-body { position: relative; }
  .ct-page .ct-close-settings { display: block; float: right; }
}
@media (max-width: 900px) {
  .ct-page .ct-hero { grid-template-columns: 1fr; padding: 20px; gap: 0; }
  .ct-page .ct-hero-art { display: none; }
  .ct-page .ct-heading img { width: 48px; height: 48px; }
  .ct-page h1 { font-size: 25px; }
  .ct-page .ct-workspace { min-height: 620px; height: 84dvh; }
  .ct-page .ct-toolbar { padding: 10px; gap: 9px; }
  .ct-page .ct-toolbar .ct-actions { gap: 6px; }
  .ct-page .ct-body, .ct-page .ct-workspace.ct-source-open .ct-body, .ct-page .ct-layout-code .ct-body, .ct-page .ct-layout-protocol .ct-body, .ct-page .ct-layout-ops .ct-body, .ct-page .ct-layout-files .ct-body, .ct-page .ct-layout-privacy .ct-body { grid-template-columns: minmax(0, 1fr); }
  .ct-page .ct-source { display: none; }
  .ct-page .ct-workspace.ct-source-open .ct-source { display: flex; position: absolute; inset: 0; z-index: 10; border: 0; }
  .ct-page .ct-workspace.ct-source-open .ct-stage { display: flex; }
  .ct-page .ct-result { padding: 13px; }
  .ct-page .ct-viewbar { padding: 8px 10px; }
  .ct-page .ct-foot small { display: none; }
  .ct-page .ct-source-pair { grid-template-columns: 1fr; }
  .ct-page .ct-vector-preview { min-height: 270px; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-page *, .ct-page *::before, .ct-page *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media(min-width:901px){.ct-page .ct-workspace.ct-source-hidden .ct-source{display:none}.ct-page .ct-workspace.ct-source-hidden .ct-body{grid-template-columns:minmax(0,1fr) 290px}}

.ct-page .ct-canvasbar button[aria-pressed=true]{background:#704298;border-color:#d5a6f1;box-shadow:inset 0 -2px #dfb777}.ct-page .ct-field input[type=color]{height:42px;padding:4px}.ct-page .cf-demo .cf-compare{max-height:330px;min-height:180px}.ct-page .ct-hero.ct-hero-code{border-radius:6px}
