@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;500;600;700;800&display=swap');

.clc{
  --clc-teal:#0b8179;
  --clc-teal-dark:#076d67;
  --clc-ink:#142033;
  --clc-muted:#64748b;
  --clc-line:#d7e2e9;
  --clc-track:#d8e4e9;
  --clc-wash:#f3f7f8;
  color:var(--clc-ink);
  font:500 15px/1.5 Urbanist,Arial,sans-serif;
  max-width:960px;
  margin:0 auto;
  background:#f4f8fa;
  padding:22px;
  border:1px solid #e5edf1;
  border-radius:3px;
  box-sizing:border-box;
}
.clc *{box-sizing:border-box}
.clc-head{text-align:center;padding:8px 6px 20px}
.clc h1{font-size:clamp(29px,4vw,42px);line-height:1.12;margin:0;font-weight:800;color:#111c2e;letter-spacing:-.8px}
.clc h1 span{color:var(--clc-teal)}
.clc-panel{background:#fff;border:1px solid var(--clc-line);border-radius:3px;padding:20px;margin-bottom:14px;box-shadow:0 4px 14px rgba(19,36,58,.035)}
.clc h2{font-size:18px;font-weight:800;margin:0 0 16px;padding-left:12px;position:relative}
.clc h2:before{content:"";position:absolute;left:0;top:3px;height:18px;width:4px;background:var(--clc-teal);border-radius:1px}
.clc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
.clc label{display:block;color:#53657a;font-weight:600;font-size:13px}
.clc input,.clc select{display:block;width:100%;margin-top:7px;height:48px;border:1px solid var(--clc-line);border-radius:3px;background:#fff;color:#17243a;padding:0 12px;font:600 15px Urbanist,Arial,sans-serif;outline:none;min-width:0}
.clc input:focus,.clc select:focus{border-color:var(--clc-teal);box-shadow:0 0 0 2px rgba(11,129,121,.13)}
.clc-field{min-width:0}
.clc-field-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;min-height:20px}
.clc-field-head label{margin:0}
.clc-live-value{color:var(--clc-teal);font-size:14px;font-weight:800;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.clc-note{margin:15px 0 0;padding:11px 13px;background:var(--clc-wash);border-left:3px solid var(--clc-teal);border-radius:2px;color:var(--clc-muted);font-size:13px;line-height:1.5}
.clc-toolbar{display:flex;align-items:center;gap:10px;margin-top:15px;width:100%}
.clc-search-label{flex:1;min-width:0;font-size:0;line-height:0}
.clc .clc-toolbar .clc-search-label input{margin:0;height:48px;font:600 15px/1.2 Urbanist,Arial,sans-serif}
.clc-copy-all{flex:0 0 48px;width:48px;height:48px;display:grid;place-items:center;line-height:1;margin:0;border:1px solid var(--clc-teal);border-radius:999px;background:var(--clc-teal);color:#fff;padding:0;cursor:pointer;box-shadow:none}
.clc-copy-all svg,.clc-copy svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.clc-copy-all:hover{background:var(--clc-teal-dark)}
.clc-status{min-height:18px;margin:8px 0 0;color:var(--clc-teal);font-size:12px}
.clc-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.clc-stat{position:relative;min-width:0;background:var(--clc-wash);border:1px solid #e8eff2;border-radius:3px;padding:13px 15px;transition:background .15s ease,border-color .15s ease}
.clc-stat:hover{border-color:#c6dedb;background:#eff8f7}
.clc-stat span{display:block;font-size:12px;color:var(--clc-muted);font-weight:600;margin-bottom:4px}
.clc-stat strong{display:block;padding-right:42px;font-size:20px;font-weight:800;color:var(--clc-ink);word-break:break-word;font-variant-numeric:tabular-nums}
.clc-stat-from{background:#e8f5f3;border-color:#c7e5e1}
.clc-stat-from strong{color:var(--clc-teal-dark)}
.clc-copy{position:absolute;right:9px;bottom:10px;display:grid;place-items:center;width:32px;height:32px;border:1px solid #d5e2e8;border-radius:999px;background:#fff;color:var(--clc-teal);padding:0;cursor:pointer}
.clc-stat-from .clc-copy{border-color:#b7ded9}
.clc-tablewrap{overflow-x:auto;border:1px solid var(--clc-line);border-radius:3px}
.clc table{width:100%;border-collapse:collapse;font-size:13px;min-width:420px}
.clc th,.clc td{padding:10px 12px;text-align:left;border-bottom:1px solid var(--clc-line)}
.clc th{background:var(--clc-wash);font-weight:700}
.clc tr:last-child td{border-bottom:0}
.clc-disclaimer{margin:14px 0 0;color:var(--clc-muted);font-size:12px;line-height:1.4;border-left:3px solid #e5b65c;padding-left:10px}
.clc-variant-wrap{display:block}
.clc button:focus-visible,.clc input:focus-visible,.clc select:focus-visible{outline:2px solid var(--clc-teal);outline-offset:3px}
@media(max-width:720px){
  .clc{padding:14px;border-radius:3px}
  .clc-grid{grid-template-columns:1fr;gap:15px}
  .clc-panel{padding:16px;border-radius:3px}
  .clc-results{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:420px){
  .clc-results{grid-template-columns:1fr}
  .clc h1{font-size:30px}
  .clc-live-value{font-size:13px}
}
@media(prefers-reduced-motion:reduce){.clc-stat{transition:none}}

/* Capnomic Design System refinement — v1.2.1 */
.clc{
  --clc-teal:#0b8179;
  --clc-teal-dark:#075e59;
  --clc-ink:#142033;
  --clc-muted:#64748b;
  --clc-line:#d8e4eb;
  --clc-track:#d9e5eb;
  --clc-wash:#f4f8f9;
  max-width:1120px;
  padding:24px;
  background:#f4f8fa;
  border:1px solid #e5edf1;
  border-radius:20px;
  box-shadow:0 12px 34px rgba(15,43,62,.045);
}
.clc-head{padding:7px 8px 22px}
.clc h1{font-size:clamp(30px,4.2vw,44px);letter-spacing:-1.1px}
.clc-panel{
  background:#fff;
  border:1px solid var(--clc-line);
  border-radius:18px;
  padding:22px;
  margin-bottom:16px;
  box-shadow:0 8px 24px rgba(19,36,58,.045);
}
.clc h2{font-size:19px;letter-spacing:-.2px;margin-bottom:18px;padding-left:14px}
.clc h2:before{top:2px;height:20px;width:4px;border-radius:99px}
.clc-grid{gap:18px}
.clc label{font-size:14px;color:#52647a}
.clc input:not(.clc-range),.clc select{
  height:50px;
  border:1px solid #d6e2e9;
  border-radius:3px;
  padding:0 14px;
  font-size:15px;
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
.clc input:not(.clc-range):hover,.clc select:hover{border-color:#a9cbc7}
.clc input:not(.clc-range):focus,.clc select:focus{border-color:var(--clc-teal);box-shadow:0 0 0 3px rgba(11,129,121,.12)}
.clc-live-value{font-size:14px;font-weight:800;letter-spacing:.1px}
.clc-note{background:#f3f8f8;border-left:4px solid var(--clc-teal);border-radius:8px;padding:12px 15px;font-size:13px}
.clc-toolbar{gap:12px}
.clc .clc-toolbar .clc-search-label input{height:50px;border-radius:12px}
.clc-copy-all{width:50px;height:50px;flex-basis:50px;box-shadow:0 5px 12px rgba(11,129,121,.14)}
.clc-results{gap:13px}
.clc-stat{
  border-radius:13px;
  background:#f6f9fa;
  border:1px solid #e3edf0;
  padding:15px 16px;
  min-height:94px;
}
.clc-stat span{font-size:13px;margin-bottom:6px}
.clc-stat strong{font-size:21px;letter-spacing:-.3px}
.clc-stat-from{
  background:linear-gradient(135deg,#0d827a 0%,#075c57 100%);
  border-color:#0b8179;
  color:#fff;
  box-shadow:0 8px 18px rgba(11,129,121,.13);
}
.clc-stat-from span,.clc-stat-from strong{color:#fff}
.clc-stat-from span{opacity:.82}
.clc-stat-from .clc-copy{background:rgba(255,255,255,.13);border-color:rgba(255,255,255,.32);color:#fff}
.clc-copy{width:34px;height:34px;border-radius:999px;transition:background .15s ease,transform .15s ease}
.clc-copy:hover{background:#e8f5f3;transform:translateY(-1px)}
.clc-stat-from .clc-copy:hover{background:rgba(255,255,255,.25)}
.clc-tablewrap{border-radius:12px}
.clc table{font-size:13.5px}
.clc th,.clc td{padding:12px 14px}
.clc th{background:#eff5f6;color:#25364a}
.clc-disclaimer{border-left:4px solid #e2b85f;padding:2px 0 2px 12px}
@media(max-width:720px){
  .clc{padding:13px;border-radius:16px}
  .clc-head{padding:7px 4px 18px}
  .clc h1{font-size:clamp(28px,7vw,36px)}
  .clc-panel{padding:16px;border-radius:15px}
  .clc-grid{gap:16px}
  .clc-stat{min-height:88px;padding:13px}
}
@media(max-width:420px){
  .clc-results{grid-template-columns:1fr}
  .clc h1{font-size:29px}
  .clc-live-value{font-size:13px}
}


/* v1.3.0 — balanced workspace; numeric-only amount entry */
.clc-workspace{
  display:grid;
  grid-template-columns:minmax(260px,.78fr) minmax(0,1.22fr);
  align-items:stretch;
  gap:16px;
  margin-bottom:16px;
}
.clc-workspace > .clc-panel{margin:0;min-width:0;height:100%}
.clc-input-panel{display:flex;flex-direction:column;gap:0}
.clc-input-panel .clc-grid{grid-template-columns:minmax(0,1fr);gap:16px}
.clc-output-panel{display:flex;flex-direction:column}
.clc-output-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.clc-output-head h2{margin-bottom:10px}
.clc-output-head .clc-toolbar{margin:0;max-width:330px}
.clc-help-card{
  margin-top:auto;
  padding:14px 15px;
  border:1px solid #d7ebe8;
  border-radius:12px;
  background:linear-gradient(135deg,#f0f9f7,#f8fbfc);
  color:var(--clc-muted);
  font-size:13px;
  line-height:1.5;
}
.clc-help-card strong{display:block;color:var(--clc-teal-dark);font-size:13px;margin-bottom:5px}
.clc-help-card p{margin:0}
.clc .clc-amount-field input[type="number"]{margin-top:7px}
.clc-status{margin-bottom:8px}
@media(max-width:820px){
  .clc-workspace{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)}
  .clc-output-head .clc-toolbar{max-width:100%;width:100%}
}
@media(max-width:720px){
  .clc-workspace{grid-template-columns:1fr;gap:14px}
  .clc-workspace > .clc-panel{height:auto}
  .clc-input-panel .clc-grid{grid-template-columns:1fr}
  .clc-help-card{margin-top:16px}
}


/* v1.3.1 — search label correction, action bar and report-ready polish */
.clc .clc-output-head{align-items:flex-end}
.clc .clc-toolbar{align-items:flex-end;min-width:0}
.clc .clc-toolbar .clc-search-label{
  display:flex;flex:1 1 auto;flex-direction:column;gap:7px;min-width:0;
  margin:0;font-size:13px;line-height:1.35;color:#53657a;white-space:normal;
}
.clc .clc-toolbar .clc-search-label span{display:block;font-size:13px;line-height:1.35;font-weight:700;color:#52647a;padding-left:2px}
.clc .clc-toolbar .clc-search-label input{margin:0;min-width:0;width:100%;height:48px;line-height:1.2;border-radius:12px}
.clc-actions{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;
  align-items:stretch;margin:18px 0 8px;padding:12px;
  border:1px solid #dce8ed;border-radius:999px;background:#fff;
  box-shadow:0 5px 18px rgba(15,43,62,.04);
}
.clc .clc-action{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:52px;
  padding:12px 16px;border:1px solid var(--clc-teal);border-radius:999px;
  background:#fff;color:var(--clc-teal-dark);font:800 14px/1.2 Urbanist,Arial,sans-serif;
  text-align:center;white-space:normal;cursor:pointer;box-shadow:none;transition:background .15s ease,color .15s ease,transform .15s ease;
}
.clc .clc-action svg{width:19px;height:19px;flex:0 0 19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.clc .clc-action:hover{background:#eef8f6;transform:translateY(-1px)}
.clc .clc-action-primary{background:var(--clc-teal);color:#fff;box-shadow:0 5px 14px rgba(11,129,121,.14)}
.clc .clc-action-primary:hover{background:var(--clc-teal-dark);color:#fff}
.clc .clc-report-hint{display:none!important}
@media(max-width:720px){
  .clc .clc-output-head{display:block}
  .clc .clc-output-head h2{margin-bottom:12px}
  .clc .clc-output-head .clc-toolbar{display:flex;max-width:none;width:100%;align-items:flex-end}
  .clc-actions{grid-template-columns:1fr;gap:9px;padding:10px;border-radius:14px}
  .clc .clc-action{min-height:48px;width:100%;border-radius:999px}
}
@media(min-width:721px) and (max-width:900px){.clc-actions{gap:8px;padding:10px}.clc .clc-action{padding:11px 8px;font-size:13px}}
@media print{
  body *{visibility:hidden!important}
  .clc-report-print,.clc-report-print *{visibility:visible!important}
  .clc-report-print{position:absolute;left:0;top:0;width:100%;background:#fff!important;color:#17243a!important;font:12pt "Times New Roman",serif!important}
}

/* v1.3.2 — pill action bar and buttons; hide redundant report hint */
.clc .clc-actions{border-radius:999px;padding:10px 12px;overflow:hidden}
.clc .clc-action{border-radius:999px;min-height:56px}
.clc .clc-report-hint{display:none!important}
@media(max-width:720px){.clc .clc-actions{border-radius:28px;padding:10px}.clc .clc-action{border-radius:999px;min-height:50px}}
