/* CEC – Creator Earnings Calculator */
.cec-card{
  --fg:#111; --bg:#fff; --muted:#666; --border:#e5e7eb; --accent:#0ea5e9; --radius:18px;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;
  background:var(--bg); color:var(--fg);
  border:1px solid var(--border); border-radius:var(--radius);
  box-shadow:0 10px 24px rgba(0,0,0,.06);
  padding:20px; max-width:920px; margin:20px auto;
}
.cec-header h2{ margin:0 0 6px; font-size:26px; }
.cec-sub{ color:var(--muted); margin:0 0 14px; }

.cec-form{ margin-top:8px; }
.cec-row{ display:flex; flex-direction:column; gap:6px; margin:8px 0; }
.cec-label{ font-weight:700; color:#333; }
.cec-input{ border:1px solid var(--border); border-radius:10px; padding:10px 12px; min-height:40px; font-size:15px; width:100%; }
.cec-inline{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.cec-inline > label{ grid-column:1 / -1; font-weight:600; color:#333; }
.cec-unit{ color:#444; }
.cec-control{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.cec-range{ width:100%; }
.cec-badge{ background:#eef; border:1px solid var(--border); padding:4px 8px; border-radius:8px; font-weight:700; }
.cec-hint{ color:var(--muted); font-size:12px; }
.cec-actions{ margin-top:10px; }
.cec-btn{ background:var(--accent); color:#fff; border:none; border-radius:12px; padding:10px 14px; font-weight:800; cursor:pointer; }
.cec-btn:hover{ filter:brightness(.95); }

.cec-results{ margin-top:16px; border-top:1px dashed var(--border); padding-top:12px; }
.cec-title{ margin:0 0 10px; }
.cec-columns{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; }
.cec-emph{ font-size:22px; font-weight:800; }
.cec-note{ color:var(--muted); font-size:13px; margin-top:8px; }

.cec-grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.cec-grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.cec-input.cec-inline{ min-width:92px; width:auto; }

@media (max-width:760px){
  .cec-grid-2, .cec-grid-3 { grid-template-columns:1fr; }
}
