/* Casinocals Calculators: core layout. Colours come from the theme (CSS variables) with fallbacks. */
.ccc { --c-accent: var(--accent, #a3e635); --c-accent-2: var(--accent-2, #60a5fa); --c-line: var(--line, #262c37); --c-muted: var(--muted, #8b93a3); margin: 8px 0 32px; }
.ccc .cc-field input[type="range"] { margin: 4px 0 0; }
.ccc .cc-toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.ccc .cc-toggle input { width: 18px; height: 18px; accent-color: var(--c-accent); }
.ccc .cc-actions { display: flex; gap: 10px; margin-top: 14px; }
.ccc .cc-charts { display: grid; grid-template-columns: 160px 1fr; gap: 10px; margin-top: 10px; }
.ccc .cc-chart { background: var(--surface-2, #1c212a); border: 1px solid var(--c-line); border-radius: var(--radius, 10px); padding: 12px; }
.ccc .cc-chart__title { font-size: 12px; font-weight: 600; color: var(--c-muted); margin: 0 0 6px; }
.ccc .cc-chart svg { display: block; width: 100%; height: auto; }
.ccc .cc-legend { display: flex; gap: 10px; justify-content: center; font-size: 11.5px; color: var(--c-muted); margin-top: 6px; }
.ccc .cc-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
.ccc .cc-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--c-muted); margin-top: 4px; }
@media (max-width: 600px) { .ccc .cc-charts { grid-template-columns: 1fr; } }
.ccc [data-chart="donut"] { max-width: 150px; margin: 0 auto; }
.ccc .cc-stat--wide { grid-column: 1 / -1; }
.ccc .cc-help { display: block; color: var(--c-muted); font-size: 12px; margin: -4px 0 6px; }
.ccc .cc-field select { width: auto; min-width: 120px; max-width: 220px; }
.ccc .cc-repeat { margin-bottom: 12px; }
.ccc .cc-repeat__label { font-size: 13px; color: var(--c-muted); margin: 0 0 8px; font-weight: 600; }
.ccc .cc-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--surface-2, #1c212a); border: 1px solid var(--c-line); border-radius: var(--radius, 10px); padding: 10px 40px 10px 12px; margin-bottom: 8px; }
.ccc .cc-row__n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--mono, monospace); color: var(--c-accent); background: rgba(163, 230, 53, .1); flex: none; }
.ccc .cc-row__fields { display: flex; gap: 10px; flex: 1; min-width: 0; flex-wrap: wrap; }
.ccc .cc-row .cc-field { flex: 1; min-width: 140px; margin: 0; padding: 6px 8px; background: transparent; border: 0; }
.ccc .cc-row__out { font-size: 12px; color: var(--c-muted); text-align: right; }
.ccc .cc-row__out b { display: block; font: 700 15px var(--mono, monospace); color: var(--text, #fff); }
.ccc .cc-row__del { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--c-line); background: transparent; color: var(--c-muted); cursor: pointer; font-size: 16px; line-height: 1; }
.ccc .cc-row__del:disabled { opacity: .3; cursor: default; }
.ccc .cc-repeat__add { padding: 8px 14px; font-size: 14px; }
.ccc .cc-repeat__add:disabled { opacity: .4; }
.ccc .cc-msg { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--radius, 10px); font-size: 14px; border: 1px solid var(--c-line); }
.ccc .cc-msg--good { border-color: var(--c-accent); color: var(--c-accent); background: rgba(163, 230, 53, .07); }
.ccc .cc-msg--bad { border-color: rgba(248, 113, 113, .6); color: var(--danger, #f87171); background: rgba(248, 113, 113, .07); }

/* 1.3.0: currency picker + odds input */
.ccc .cc-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ccc .cc-panel__head .cc-panel__title { margin-right: auto; }
.ccc .cc-cur select { font-size: 13px; padding: 4px 8px; min-width: 0; width: auto; border-radius: var(--radius, 10px); border: 1px solid var(--c-line); background: var(--surface-2, #1c212a); color: var(--text, #fff); }
.ccc .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ccc .cc-odds { font-family: var(--mono, monospace); }
.ccc .cc-row .cc-field { display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 110px; }
.ccc .cc-row .cc-field label { font-size: 12px; color: var(--c-muted); }
.ccc .cc-row .cc-field input, .ccc .cc-row .cc-field select { width: 100%; min-width: 0; max-width: none; }
.ccc .cc-repeat--fixed .cc-row { padding-right: 12px; }
/* 1.3.1: More options + conditional inputs */
.ccc .cc-adv { margin: 2px 0 10px; }
.ccc .cc-adv > summary { cursor: pointer; list-style: none; font-size: 13px; font-weight: 600; color: var(--c-muted); padding: 8px 2px; }
.ccc .cc-adv > summary::-webkit-details-marker { display: none; }
.ccc .cc-adv > summary::before { content: "+"; display: inline-block; width: 16px; color: var(--c-accent); }
.ccc .cc-adv[open] > summary::before { content: "−"; }
.ccc .cc-when[hidden] { display: none; }
