/* v67 — contract form */
.kc-wrap { max-width:720px; margin:0 auto; }
.kc-doc {
  background:linear-gradient(160deg,#fff, #fbfdfc);
  border:1px solid rgba(8,127,104,.14);
  border-radius:20px; padding:22px 22px 18px;
  box-shadow:0 8px 28px rgba(8,127,104,.06);
  margin-bottom:14px;
}
.kc-head { text-align:center; padding-bottom:14px; border-bottom:1px solid rgba(8,127,104,.10); margin-bottom:16px; }
.kc-title { font-size:20px; font-weight:900; color:#0f172a; letter-spacing:-.01em; }
.kc-sub { font-size:12.5px; color:#64748b; margin-top:4px; }
.kc-info { display:grid; grid-template-columns:auto 1fr; gap:6px 14px; font-size:13px; margin:0 0 16px; padding:12px 14px; background:rgba(8,127,104,.04); border-radius:12px; border:1px solid rgba(8,127,104,.10); }
.kc-info dt { font-weight:700; color:#475569; }
.kc-info dd { color:#0f172a; font-weight:700; }
.kc-amount { grid-column:1/-1; text-align:center; padding:10px; margin-top:6px; background:linear-gradient(135deg,rgba(217,119,6,.10),rgba(217,119,6,.05)); border-radius:10px; font-size:15px; color:#92400e; font-weight:900; }

.kc-clause { padding:14px 16px; margin:0 0 10px; border:1.5px solid rgba(15,31,28,.10); border-radius:14px; background:#fff; transition:border-color .2s, background .2s; }
.kc-clause.signed-user { border-color:rgba(8,127,104,.35); background:rgba(8,127,104,.03); }
.kc-clause.signed-expert { border-color:rgba(30,64,175,.30); background:rgba(30,64,175,.02); }
.kc-clause.signed-both { border-color:rgba(16,185,129,.45); background:linear-gradient(135deg,rgba(16,185,129,.05),rgba(16,185,129,.02)); }
.kc-clause-title { font-size:14px; font-weight:900; color:#0f172a; margin:0 0 8px; display:flex; align-items:center; gap:8px; }
.kc-clause-num { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:50%; background:linear-gradient(135deg,#087f68,#0891b2); color:#fff; font-size:12px; font-weight:800; }
.kc-clause-body { font-size:13px; line-height:1.95; color:#334155; margin:0 0 12px; }
.kc-signs { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.kc-sign { display:flex; align-items:center; gap:8px; padding:10px 12px; border:1.5px dashed rgba(15,31,28,.15); border-radius:12px; font-size:12.5px; font-weight:700; cursor:pointer; transition:all .2s; user-select:none; }
.kc-sign:hover:not(.kc-disabled) { border-color:rgba(8,127,104,.5); background:rgba(8,127,104,.04); }
.kc-sign input { width:18px; height:18px; min-width:18px; margin:0; accent-color:#087f68; }
.kc-sign.kc-checked-user { border-style:solid; border-color:#087f68; background:linear-gradient(135deg,rgba(8,127,104,.10),rgba(8,127,104,.04)); color:#087f68; }
.kc-sign.kc-checked-expert { border-style:solid; border-color:#1e40af; background:linear-gradient(135deg,rgba(30,64,175,.10),rgba(30,64,175,.04)); color:#1e40af; }
.kc-sign.kc-disabled { opacity:.55; cursor:not-allowed; }
.kc-sign-you::before { content:"👤"; font-size:15px; }

.kc-status { padding:14px 16px; background:rgba(15,23,42,.03); border-radius:14px; margin:12px 0; font-size:13px; }
.kc-status-row { display:flex; justify-content:space-between; align-items:center; padding:6px 0; font-weight:700; }
.kc-status-row + .kc-status-row { border-top:1px solid rgba(15,31,28,.08); }
.kc-badge { padding:3px 10px; border-radius:999px; font-size:11px; font-weight:800; }
.kc-badge-green { background:rgba(16,185,129,.14); color:#047857; }
.kc-badge-amber { background:rgba(217,119,6,.14); color:#92400e; }
.kc-badge-red   { background:rgba(220,38,38,.12); color:#b91c1c; }
.kc-badge-gray  { background:rgba(100,116,139,.12); color:#475569; }
.kc-badge-blue  { background:rgba(30,64,175,.12); color:#1e40af; }

.kc-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
.kc-actions button { flex:1; min-width:140px; min-height:50px; margin:0; border-radius:14px; font-weight:800; font-size:13.5px; }
.kc-final { padding:16px; border:2px solid rgba(217,119,6,.30); border-radius:16px; background:linear-gradient(135deg,rgba(217,119,6,.06),rgba(217,119,6,.02)); margin-top:14px; }
.kc-final-title { font-size:14px; font-weight:900; color:#92400e; margin:0 0 10px; display:flex; align-items:center; gap:8px; }
.kc-final-hint { font-size:12px; line-height:1.85; color:#64748b; margin:0 0 12px; }
.kc-final-btn { width:100%; min-height:54px; border-radius:14px; font-size:14.5px; font-weight:900; background:linear-gradient(135deg,#b45309,#d97706); color:#fff; border:0; cursor:pointer; box-shadow:0 10px 24px rgba(217,119,6,.28); }
.kc-final-btn:hover { transform:translateY(-1px); box-shadow:0 14px 30px rgba(217,119,6,.34); }
.kc-archived { padding:12px 16px; border-radius:14px; background:rgba(15,23,42,.03); border:1px dashed rgba(15,31,28,.14); text-align:center; font-size:12.5px; color:#475569; margin-top:12px; }

.kc-list-item { padding:14px 16px; margin:10px 0; border:1px solid rgba(15,31,28,.10); border-radius:14px; background:#fff; cursor:pointer; transition:all .2s; display:flex; justify-content:space-between; align-items:center; gap:12px; }
.kc-list-item:hover { border-color:rgba(8,127,104,.28); box-shadow:0 6px 18px rgba(8,127,104,.08); transform:translateY(-1px); }
.kc-list-item .kc-li-main { flex:1; min-width:0; }
.kc-list-item strong { display:block; font-size:14px; color:#0f172a; margin-bottom:3px; }
.kc-list-item small { display:block; font-size:11.5px; color:#64748b; }
.kc-list-item .kc-li-arrow { font-size:20px; color:#94a3b8; }

/* Dark theme */
[data-theme="dark"] .kc-doc { background:linear-gradient(160deg,#14211D,#101b18); border-color:rgba(255,255,255,.08); }
[data-theme="dark"] .kc-title { color:#ecf7f3; }
[data-theme="dark"] .kc-clause { background:#0f1a17; border-color:rgba(255,255,255,.08); }
[data-theme="dark"] .kc-clause-title { color:#ecf7f3; }
[data-theme="dark"] .kc-clause-body { color:#9ab4ac; }
[data-theme="dark"] .kc-sign { border-color:rgba(255,255,255,.14); color:#9ab4ac; }
[data-theme="dark"] .kc-status { background:rgba(255,255,255,.04); }
[data-theme="dark"] .kc-status-row + .kc-status-row { border-top-color:rgba(255,255,255,.08); }
[data-theme="dark"] .kc-list-item { background:#14211D; border-color:rgba(255,255,255,.08); }
[data-theme="dark"] .kc-list-item strong { color:#ecf7f3; }

@media (max-width:560px) {
  .kc-doc { padding:18px 16px; border-radius:16px; }
  .kc-title { font-size:17px; }
  .kc-info { grid-template-columns:1fr; }
  .kc-signs { grid-template-columns:1fr; }
  .kc-actions button { min-width:100%; }
}
