.kcrm-invite,.kcrm-dialog{--kc-ink:#272139;--kc-muted:#675f78;--kc-purple:#6540d9;--kc-line:#ded8eb;color:var(--kc-ink);font-family:inherit}
.kcrm-invite {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 18px 0;
  padding: clamp(16px, 2.2vw, 23px);
  box-sizing: border-box;
  border: 1px solid #ded5ee;
  border-radius: 16px;
  background: linear-gradient(110deg, #fbf9ff, #f3edff);
}
.kcrm-invite-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #eae0ff;
  color: #5e37c6;
  font: 28px/1 system-ui;
}
.kcrm-invite .kcrm-invite-copy h2 {
  margin: 0;
  color: var(--kc-ink);
  font: inherit;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.2;
  font-weight: 720;
  letter-spacing: -.025em;
}
.kcrm-invite .kcrm-invite-copy p {
  margin: 5px 0 0;
  color: #5e536d;
  font-size: 14px;
  line-height: 1.45;
}
.kcrm-action,.kcrm-dialog .kcnr-button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;box-sizing:border-box;padding:10px 20px;background:var(--kc-purple);color:white!important;font:inherit;font-weight:700;text-decoration:none;border:0;border-radius:10px;cursor:pointer}
.kcrm-invite .kcrm-action {
  min-height: 44px; margin: 0; padding: 10px 17px;
  border-radius: 10px; white-space: normal; text-align: center;
  font-size: 14px; line-height: 1.35;
}
@media (max-width: 700px) {
  .kcrm-invite { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .kcrm-invite-icon { width: 40px; height: 40px; }
  .kcrm-invite .kcrm-action { grid-column: 1 / -1; width: 100%; }
}
.kcrm-action:hover,.kcrm-dialog .kcnr-button:hover{background:#5230ba}
.kcrm-lock{overflow:hidden;scrollbar-gutter:stable}
dialog.kcrm-dialog{position:fixed;inset:0;margin:auto;width:min(544px,calc(100% - 32px));max-width:none;max-height:min(90vh,840px);max-height:min(90dvh,840px);box-sizing:border-box;padding:0;border:1px solid #dad1ed;border-radius:22px;background:white;box-shadow:0 28px 96px #18122740;overflow:hidden}
dialog.kcrm-dialog:not([open]){display:none}
dialog.kcrm-dialog[open]{display:flex;flex-direction:column}
.kcrm-dialog::backdrop{background:rgb(32 24 49 / 53%);backdrop-filter:blur(4px)}
.kcrm-head{display:flex;align-items:center;justify-content:space-between;flex:none;gap:12px;padding:20px 24px;border-bottom:1px solid #e8e2f1}
.kcrm-head h2{color:var(--kc-ink);font:inherit;font-size:clamp(1.35rem,4vw,1.65rem);font-weight:760;letter-spacing:-.03em;line-height:1.15;margin:0}
.kcrm-head h2:focus{outline:none}
.kcrm-close{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;color:#594f70;background:#f3f0f8;font:28px/1 system-ui;cursor:pointer;flex-shrink:0}
.kcrm-content{min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px 24px 24px}
.kcrm-content>p{font-size:1rem;line-height:1.55;margin:0 0 16px}
.kcrm-dialog form{display:grid;gap:16px;margin:0}
.kcrm-dialog form [hidden]{display:none!important}
.kcrm-dialog label,.kcrm-rating legend,.kcrm-details summary{font-size:.94rem;font-weight:650;line-height:1.4;color:var(--kc-ink)}
.kcrm-dialog form label{display:block;margin:0}
.kcrm-dialog input:not([type=radio]):not([type=checkbox]):not([type=hidden]),.kcrm-dialog select,.kcrm-dialog textarea{display:block;font:inherit;font-size:1rem;font-weight:400;width:100%;box-sizing:border-box;padding:11px 12px;margin:6px 0 0;color:var(--kc-ink);background:white;border:1px solid #cfc7dd;border-radius:9px}
.kcrm-dialog textarea{resize:vertical;min-height:65px}
.kcrm-dialog textarea[name=comment]{min-height:100px}
.kcrm-dialog form small{display:block;color:var(--kc-muted);margin-top:4px;font-weight:400}
.kcrm-rating{margin:0;min-width:0;padding:0;border:0}
.kcrm-rating legend{padding:0}
.kcrm-stars{display:flex;align-items:center;gap:2px;flex-wrap:wrap}
.kcrm-stars label{position:relative;cursor:pointer}
.kcrm-stars input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.kcrm-stars label span{display:grid;place-items:center;width:42px;height:44px;font:32px/1 system-ui;color:#8e879c}
.kcrm-stars .is-filled span{color:#ae6100}
.kcrm-stars input:focus-visible + span,.kcrm-dialog :focus-visible:not(input[type=radio]),.kcrm-action:focus-visible{outline:3px solid #855af4;outline-offset:2px;border-radius:5px}
.kcrm-score{font-size:.9rem;color:var(--kc-muted);margin-inline-start:10px}
.kcrm-details{border-block:1px solid #e8e2f1;margin:0;padding:0 2px}
.kcrm-details summary{cursor:pointer;color:var(--kc-purple);padding:12px 0}
.kcrm-details label{margin-bottom:14px!important}
.kcrm-dialog form label.kcnr-consent{display:flex;align-items:flex-start;gap:10px;font-size:.86rem;font-weight:400;line-height:1.5}
.kcrm-dialog .kcnr-consent input{flex:none;width:18px;height:18px;margin:2px 0;accent-color:var(--kc-purple)}
.kcrm-dialog .kcnr-consent a{color:#5532b9}
.kcrm-dialog button[type=submit]{width:100%;min-height:48px}
@media(max-width:550px){.kcrm-head{padding:14px 16px}.kcrm-content{padding:16px}.kcrm-stars label span{width:36px}.kcrm-score{margin-inline-start:5px}dialog.kcrm-dialog{width:calc(100% - 20px);max-height:calc(100dvh - 24px);border-radius:18px}}
