:root{
  --bg:#07090d;
  --card:#0c111a;
  --card2:#0a0f17;
  --stroke:#1a2433;
  --text:#e8eefc;
  --muted:#9fb0cf;
  --accent:#7c5cff;
  --accent2:#20d3ff;
  --good:#28d17c;
  --bad:#ff3b6b;
  --shadow: 0 18px 50px rgba(0,0,0,.55);
  --r:18px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}
.ctk-wrap{background:var(--bg); color:var(--text); font-family:var(--sans); border:1px solid var(--stroke); border-radius:24px; box-shadow:var(--shadow); overflow:hidden}
.ctk-top{display:flex; align-items:center; justify-content:space-between; padding:18px 18px; background:linear-gradient(90deg, rgba(124,92,255,.16), rgba(32,211,255,.08)); border-bottom:1px solid var(--stroke)}
.ctk-brand{display:flex; align-items:center; gap:12px}
.ctk-logo{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,var(--accent),var(--accent2)); display:grid; place-items:center; font-weight:900; color:#05070b}
.ctk-title{font-size:16px; font-weight:900; letter-spacing:.2px}
.ctk-sub{font-size:12px; color:var(--muted); margin-top:2px}
.ctk-actions{display:flex; gap:10px; flex-wrap:wrap}
.ctk-btn{border:1px solid var(--stroke); background:rgba(255,255,255,.04); color:var(--text); padding:10px 12px; border-radius:12px; cursor:pointer; font-weight:800}
.ctk-btn:hover{border-color:rgba(124,92,255,.5)}
.ctk-btn-ghost{background:transparent}
.ctk-file{position:relative; overflow:hidden}

.ctk-grid{display:grid; grid-template-columns:300px 1fr; min-height:740px}
.ctk-sidebar{padding:14px; border-right:1px solid var(--stroke); background:var(--card2)}
.ctk-search{width:100%; padding:12px 12px; border-radius:14px; border:1px solid var(--stroke); background:rgba(0,0,0,.35); color:var(--text); outline:none}
.ctk-search::placeholder{color:rgba(159,176,207,.75)}
.ctk-menu{margin-top:12px; display:flex; flex-direction:column; gap:8px}
.ctk-item{width:100%; text-align:left; padding:12px 12px; border-radius:14px; border:1px solid var(--stroke); background:rgba(255,255,255,.03); color:var(--text); cursor:pointer; font-weight:900}
.ctk-item:hover{border-color:rgba(32,211,255,.35)}
.ctk-item.is-active{border-color:rgba(124,92,255,.6); background:rgba(124,92,255,.12)}
.ctk-note{margin-top:14px; padding:12px; border:1px solid var(--stroke); border-radius:16px; background:rgba(255,255,255,.02)}
.ctk-note-title{font-weight:900; font-size:12px}
.ctk-note-text{color:var(--muted); font-size:12px; margin-top:6px; line-height:1.45}

.ctk-main{padding:16px; background:var(--card)}
.ctk-panel{border:1px solid var(--stroke); border-radius:20px; background:rgba(255,255,255,.02); padding:14px}
.ctk-h{font-size:18px; font-weight:950; margin:0 0 10px}
.ctk-desc{color:var(--muted); font-size:13px; margin:0 0 14px; line-height:1.5}

.ctk-row{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.ctk-field{display:flex; flex-direction:column; gap:8px}
.ctk-label{font-size:12px; color:var(--muted); font-weight:900}
.ctk-textarea,.ctk-input,.ctk-select{
  width:100%; border:1px solid var(--stroke); border-radius:16px; background:rgba(0,0,0,.35);
  color:var(--text); padding:12px; outline:none;
}
.ctk-textarea{min-height:170px; resize:vertical; font-family:var(--mono)}
.ctk-input{font-family:var(--mono)}
.ctk-select{font-family:var(--sans)}
.ctk-toolbar{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}
.ctk-badge{display:inline-flex; align-items:center; gap:8px; padding:8px 10px; border-radius:999px; border:1px solid var(--stroke); background:rgba(255,255,255,.03); color:var(--muted); font-size:12px; font-weight:900; margin-top:12px}
.ctk-status.good{color:var(--good)}
.ctk-status.bad{color:var(--bad)}

.ctk-mini{
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.02);
  padding:10px;
  border-radius:16px;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}

@media (max-width: 980px){
  .ctk-grid{grid-template-columns:1fr}
  .ctk-sidebar{border-right:0; border-bottom:1px solid var(--stroke)}
  .ctk-row{grid-template-columns:1fr}
}