.ct-shell{
  grid-template-columns:minmax(0,1fr) 360px;
  max-width:1380px;
}

.ct-card{
  padding:18px;
}

.ct-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:16px;
}

.ct-grid-bottom{
  margin-top:16px;
}

.ct-panel{
  background:#fff;
  border:1px solid rgba(11,18,32,0.10);
  border-radius:24px;
  padding:18px;
  box-shadow:0 8px 28px rgba(11,18,32,0.05);
}

.ct-panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.ct-panel-title{
  font-size:1.04rem;
  font-weight:900;
  color:#0f172a;
}

.ct-alert-warn{
  border-color:rgba(245,158,11,0.45)!important;
}

.ct-textarea{
  min-height:148px;
  resize:vertical;
  line-height:1.55;
  width:100%;
}

.ct-textarea-sm{
  min-height:112px;
}

.ct-json{
  min-height:560px;
  width:100%;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size:13px;
  line-height:1.45;
  white-space:pre;
}

.ct-microw{
  display:grid;
  grid-template-columns:minmax(0,1fr) 58px;
  gap:10px;
  align-items:start;
}

.ct-micbtn{
  height:48px;
  width:58px;
  font-size:1.2rem;
}

.ct-micbtn.listening{
  border-color:rgba(37,99,235,0.38);
  box-shadow:0 0 0 4px rgba(37,99,235,0.18);
}

.ct-chiprow{
  display:flex;
  gap:8px;
  overflow:auto hidden;
  padding-bottom:4px;
  margin-top:12px;
  scrollbar-width:thin;
}

.ct-addchip{
  flex:0 0 auto;
  border:1px solid rgba(11,18,32,0.10);
  border-radius:999px;
  background:#fff;
  padding:10px 14px;
  font-weight:800;
  cursor:pointer;
}

.ct-addchip:hover{
  border-color:rgba(37,99,235,0.30);
}

.ct-configgrid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.ct-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.ct-advanced{
  margin-top:14px;
  padding:12px 14px;
  border-radius:18px;
  border:1px solid rgba(11,18,32,0.10);
  background:rgba(248,250,252,0.72);
}

.ct-advanced summary{
  cursor:pointer;
  font-weight:900;
}

.ct-minirow{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}

.ct-mini{
  border:1px solid rgba(11,18,32,0.08);
  border-radius:18px;
  background:#fff;
  padding:12px 14px;
}

.ct-mini-k{
  font-size:12px;
  font-weight:900;
  color:#64748b;
  text-transform:uppercase;
  letter-spacing:.02em;
}

.ct-mini-v{
  margin-top:6px;
  font-size:14px;
  font-weight:900;
  color:#0f172a;
}

.ct-divider{
  height:1px;
  background:rgba(11,18,32,0.08);
  margin:16px 0;
}

.ct-summary{
  border:1px solid rgba(37,99,235,0.12);
  border-radius:20px;
  background:linear-gradient(180deg, rgba(37,99,235,0.06), rgba(255,255,255,0.9));
  padding:14px 16px;
}

.ct-summary h1,
.ct-summary h2,
.ct-summary h3{
  margin:0 0 10px;
  line-height:1.2;
}

.ct-summary p,
.ct-summary ul,
.ct-summary ol{
  margin:0 0 10px;
  line-height:1.55;
}

.ct-summary ul,
.ct-summary ol{
  padding-left:20px;
}

.ct-preview-group{
  margin-top:16px;
}

.ct-preview-empty{
  border:1px dashed rgba(11,18,32,0.12);
  border-radius:18px;
  padding:14px;
  color:#64748b;
  font-weight:700;
}

.ct-next-questions{
  margin-top:16px;
}

.ct-next-questions .qwrap{
  border:1px solid rgba(11,18,32,0.08);
  background:#fff;
  border-radius:18px;
  padding:14px;
}

.ct-next-questions .qh{
  font-weight:900;
  margin-bottom:8px;
}

.ct-preview-quick.hl-quickrow,
#ctPreviewQuick.hl-quickrow{
  margin-top:8px;
}

.ct-preview-chip.hl-chip{
  cursor:default;
}

@media (max-width: 1180px){
  .ct-shell{
    grid-template-columns:minmax(0,1fr);
    max-width:980px;
  }
}

@media (max-width: 860px){
  .ct-grid,
  .ct-grid-bottom,
  .ct-configgrid,
  .ct-minirow{
    grid-template-columns:minmax(0,1fr);
  }

  .ct-card{
    padding:14px;
  }

  .ct-panel{
    padding:14px;
  }

  .ct-json{
    min-height:440px;
  }
}
