:root{
  --kpc-orange:#ff5a00;
  --kpc-pink:#d6336c;
  --kpc-dark:#111217;
  --kpc-muted:#6b7280;
  --kpc-line:#e7eaf0;
  --kpc-soft:#f7f8fb;
  --kpc-card:#ffffff;
  --kpc-radius:24px;
}
.kpc-chat-wrap,
.kpc-demo-page,
.kpc-faq,
.kpc-admin-guide-public{
  font-family:Inter,Arial,Helvetica,sans-serif;
  color:var(--kpc-dark);
  box-sizing:border-box;
}
.kpc-chat-wrap *,
.kpc-demo-page *,
.kpc-faq *,
.kpc-admin-guide-public *{
  box-sizing:border-box;
}
.kpc-chat-wrap button,
.kpc-chat-wrap input,
.kpc-chat-wrap select{
  font-family:inherit;
}
.kpc-chat-card{
  width:100%;
  max-width:760px;
  background:var(--kpc-card);
  border:1px solid var(--kpc-line);
  border-radius:var(--kpc-radius);
  box-shadow:0 24px 70px rgba(17,18,23,.12);
  overflow:hidden;
  margin:22px auto;
  display:flex;
  flex-direction:column;
}
.kpc-chat-head{
  padding:14px 16px 13px;
  border-bottom:1px solid var(--kpc-line);
  background:linear-gradient(180deg,#fff,#fafafa);
}
.kpc-head-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.kpc-brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.kpc-brand-icon{
  width:42px;
  height:42px;
  border-radius:13px;
  object-fit:cover;
  display:block;
  flex:0 0 auto;
  box-shadow:0 8px 22px rgba(17,18,23,.10);
}
.kpc-title-wrap{
  min-width:0;
}
.kpc-brand strong{
  display:block;
  font-size:17px;
  line-height:1.2;
  letter-spacing:-.02em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.kpc-brand small{
  display:block;
  color:var(--kpc-muted);
  font-size:12px;
  line-height:1.35;
  margin-top:3px;
}
.kpc-close{
  border:1px solid rgba(214,51,108,.35);
  background:#fff;
  color:var(--kpc-pink);
  min-width:70px;
  height:38px;
  border-radius:999px;
  font-size:13px;
  font-weight:800;
  padding:0 14px;
  cursor:pointer;
  flex:0 0 auto;
}
.kpc-lang-picker{
  margin-top:12px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  color:var(--kpc-muted);
  font-size:12px;
  font-weight:800;
}
.kpc-lang-picker select{
  width:190px;
  max-width:55vw;
  border:1px solid #d9dde5;
  background:#fff;
  border-radius:999px;
  padding:10px 34px 10px 14px;
  font-size:14px;
  font-weight:800;
  color:var(--kpc-dark);
  outline:none;
}
.kpc-lang-picker select:focus{
  border-color:var(--kpc-orange);
  box-shadow:0 0 0 3px rgba(255,90,0,.12);
}
.kpc-chat-body{
  min-height:260px;
  max-height:520px;
  overflow:auto;
  padding:16px;
  background:radial-gradient(circle at top right,rgba(255,90,0,.08),transparent 32%),#fbfbfc;
}
.kpc-msg{
  display:flex;
  margin:0 0 12px;
}
.kpc-msg-user{
  justify-content:flex-end;
}
.kpc-bubble{
  max-width:min(88%,640px);
  padding:13px 15px;
  border-radius:18px;
  line-height:1.5;
  font-size:14.5px;
  box-shadow:0 8px 22px rgba(17,18,23,.06);
  word-wrap:break-word;
}
.kpc-msg-ai .kpc-bubble{
  background:#fff;
  border:1px solid var(--kpc-line);
  border-top-left-radius:7px;
}
.kpc-msg-user .kpc-bubble{
  background:var(--kpc-dark);
  color:#fff;
  border-top-right-radius:7px;
}
.kpc-bubble a{
  color:var(--kpc-orange);
  font-weight:800;
}
.kpc-msg-user .kpc-bubble a{
  color:#fff;
}
.kpc-suggestions{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  align-items:flex-start;
  padding:10px 14px 12px;
  border-top:1px solid var(--kpc-line);
  background:#fafbfc;
  max-height:150px;
  overflow:auto;
  align-content:flex-start;
}
.kpc-suggest-title,
.kpc-suggestion-title{
  width:100%;
  color:var(--kpc-dark);
  font-size:12.5px;
  line-height:1.3;
  font-weight:900;
  margin:0;
}
.kpc-suggestion-hint{
  width:100%;
  color:var(--kpc-muted);
  font-size:11px;
  line-height:1.35;
  margin:0 0 3px;
}
.kpc-suggestions button{
  border:1px solid var(--kpc-line);
  background:#fff;
  color:#374151;
  border-radius:999px;
  padding:7px 10px;
  font-size:12px;
  line-height:1.25;
  cursor:pointer;
  transition:.15s;
  text-align:left;
  max-width:100%;
}
.kpc-suggestions button:hover{
  border-color:var(--kpc-pink);
  color:var(--kpc-pink);
  background:#fff7fb;
}
.kpc-suggestion-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  width:100%;
  margin-top:2px;
}
.kpc-suggestions button.kpc-suggestion-more{
  background:#fff;
  border-color:rgba(214,51,108,.32);
  color:var(--kpc-pink);
  font-weight:900;
}
.kpc-suggestions button.kpc-suggestion-type{
  background:transparent;
  border-color:transparent;
  color:var(--kpc-muted);
  font-weight:800;
  padding-left:0;
}
.kpc-suggestions button.kpc-suggestion-type:hover{
  background:transparent;
  color:var(--kpc-pink);
}
.kpc-loading .kpc-suggestions button{
  opacity:.62;
  pointer-events:none;
}
.kpc-chat-input{
  padding:14px;
  background:#fff;
  border-top:1px solid var(--kpc-line);
}
.kpc-input-prompt{
  color:var(--kpc-dark);
  font-size:13px;
  font-weight:900;
  line-height:1.3;
  margin:0 0 3px;
}
.kpc-input-helper{
  color:var(--kpc-muted);
  font-size:11.5px;
  line-height:1.35;
  margin:0 0 8px;
}
.kpc-input-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
}
.kpc-chat-input input{
  min-width:0;
  width:100%;
  border:2px solid #d6dbe5;
  border-radius:15px;
  padding:13px 14px;
  font-size:15px;
  outline:none;
  background:#fff;
}
.kpc-chat-input input:focus{
  border-color:var(--kpc-orange);
  box-shadow:0 0 0 3px rgba(255,90,0,.12);
}
.kpc-chat-input button,
.kpc-cta-row a{
  border:0;
  background:var(--kpc-pink);
  color:#fff;
  border-radius:15px;
  padding:12px 16px;
  font-weight:900;
  cursor:pointer;
  text-decoration:none;
}
.kpc-chat-input button{
  min-width:82px;
}
.kpc-mode-floating.kpc-open .kpc-fab{
  display:none;
}
.kpc-chat-foot{
  padding:10px 14px;
  background:#fff;
  color:var(--kpc-muted);
  font-size:11.5px;
  line-height:1.35;
  border-top:1px solid var(--kpc-line);
}
.kpc-cta-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}
.kpc-cta-row a{
  font-size:12px;
  padding:8px 10px;
  border-radius:999px;
}
.kpc-mode-floating{
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:99999;
}
.kpc-mode-floating .kpc-chat-card{
  width:min(420px,calc(100vw - 24px));
  max-height:calc(100vh - 104px);
  margin:0;
}
.kpc-mode-floating .kpc-chat-body{
  flex:0 1 auto;
  min-height:190px;
  max-height:min(330px,calc(100vh - 385px));
}
.kpc-fab{
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid rgba(255,255,255,.14);
  background:var(--kpc-dark);
  color:#fff;
  border-radius:999px;
  padding:10px 14px;
  box-shadow:0 18px 45px rgba(17,18,23,.25);
  font-weight:900;
  cursor:pointer;
}
.kpc-fab img{
  width:34px;
  height:34px;
  border-radius:11px;
}
.kpc-hidden{
  display:none!important;
}
.kpc-loading .kpc-chat-input button{
  opacity:.65;
  pointer-events:none;
}
.kpc-demo-page{
  max-width:1120px;
  margin:0 auto;
  padding:28px 16px;
}
.kpc-hero-panel{
  border-radius:28px;
  background:linear-gradient(135deg,#fff 0%,#fff7f1 100%);
  padding:34px;
  border:1px solid var(--kpc-line);
  box-shadow:0 24px 70px rgba(17,18,23,.08);
  text-align:center;
}
.kpc-hero-logo{
  max-width:320px;
  width:70%;
  height:auto;
  margin:0 auto 16px;
}
.kpc-hero-panel h1{
  font-size:clamp(30px,5vw,54px);
  margin:0 0 10px;
  letter-spacing:-.04em;
}
.kpc-hero-panel p{
  max-width:780px;
  margin:0 auto;
  color:#4b5563;
  font-size:17px;
  line-height:1.6;
}
.kpc-grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin:22px 0;
}
.kpc-plan-card{
  background:#fff;
  border:1px solid var(--kpc-line);
  border-radius:22px;
  padding:22px;
  box-shadow:0 14px 38px rgba(17,18,23,.06);
}
.kpc-plan-card span{
  display:inline-block;
  color:var(--kpc-orange);
  font-weight:900;
  letter-spacing:.02em;
}
.kpc-plan-card h3{
  font-size:22px;
  margin:8px 0;
}
.kpc-plan-card p{
  color:#4b5563;
  margin:0;
  line-height:1.5;
}
.kpc-plan-hot{
  border-color:rgba(255,90,0,.45);
  box-shadow:0 20px 50px rgba(255,90,0,.16);
}
.kpc-demo-prompts,
.kpc-faq,
.kpc-admin-guide-public{
  background:#fff;
  border:1px solid var(--kpc-line);
  border-radius:22px;
  padding:24px;
  margin:22px auto;
  max-width:900px;
}
.kpc-demo-prompts h2,
.kpc-faq h2{
  margin-top:0;
}
.kpc-demo-prompts li{
  margin-bottom:8px;
}
.kpc-faq details{
  border-top:1px solid var(--kpc-line);
  padding:14px 0;
}
.kpc-faq summary{
  font-weight:800;
  cursor:pointer;
}
.kpc-faq p{
  color:#4b5563;
  line-height:1.6;
}
.kpc-admin-wrap{
  --kpc-orange:#ff5a00;
  --kpc-dark:#111217;
  --kpc-line:#e6e8ee;
}
.kpc-admin-hero{
  display:flex;
  gap:18px;
  align-items:center;
  padding:22px 24px;
  background:#fff;
  border:1px solid var(--kpc-line);
  border-radius:18px;
  margin:18px 0;
  box-shadow:0 12px 35px rgba(17,18,23,.06);
}
.kpc-admin-hero img{
  height:42px;
  width:auto;
}
.kpc-admin-hero h1{
  margin:0;
  font-size:28px;
}
.kpc-admin-hero p{
  margin:4px 0 0;
  color:#64748b;
}
.kpc-admin-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  align-items:start;
}
.kpc-admin-card{
  background:#fff;
  border:1px solid var(--kpc-line);
  border-radius:16px;
  padding:20px;
  box-shadow:0 10px 28px rgba(17,18,23,.05);
  margin-bottom:18px;
}
.kpc-admin-card h2{
  margin-top:0;
}
.kpc-wide{
  grid-column:1/-1;
}
.kpc-field{
  display:block;
  margin:0 0 14px;
}
.kpc-field span{
  display:block;
  font-weight:700;
  margin-bottom:6px;
}
.kpc-field input,
.kpc-field select,
.kpc-field textarea{
  width:100%;
  max-width:100%;
  border:1px solid #d9dde5;
  border-radius:10px;
  padding:10px 12px;
}
.kpc-field textarea{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:12px;
}
.kpc-check{
  display:block;
  margin:10px 0;
}
.kpc-checklist{
  margin:0;
}
.kpc-checklist li{
  display:flex;
  align-items:center;
  gap:10px;
  margin:8px 0;
}
.kpc-checklist span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  border-radius:50%;
  font-weight:900;
}
.kpc-checklist .ok span{
  background:#ecfdf5;
  color:#047857;
}
.kpc-checklist .bad span{
  background:#fff7ed;
  color:#c2410c;
}
@media(max-width:800px){
  .kpc-grid-3,
  .kpc-admin-grid{
    grid-template-columns:1fr;
  }
  .kpc-mode-floating{
    right:10px;
    bottom:10px;
  }
  .kpc-chat-card{
    border-radius:20px;
  }
  .kpc-mode-floating .kpc-chat-card{
    width:calc(100vw - 20px);
    max-height:calc(100vh - 84px);
  }
  .kpc-mode-floating .kpc-chat-body{
    min-height:150px;
    max-height:min(290px,calc(100vh - 365px));
  }
  .kpc-brand-icon{
    width:38px;
    height:38px;
  }
  .kpc-brand strong{
    font-size:16px;
  }
  .kpc-brand small{
    font-size:11.5px;
  }
  .kpc-lang-picker{
    grid-template-columns:1fr;
    gap:6px;
  }
  .kpc-lang-picker select{
    width:100%;
    max-width:none;
  }
  .kpc-suggestions{
    max-height:126px;
  }
  .kpc-chat-input{
    padding:11px;
  }
  .kpc-input-row{
    grid-template-columns:minmax(0,1fr) 76px;
    gap:8px;
  }
  .kpc-chat-input button{
    min-width:0;
    padding-left:10px;
    padding-right:10px;
  }
  .kpc-admin-hero{
    align-items:flex-start;
    flex-direction:column;
  }
}
