.cc-tabs{display:flex;gap:6px;overflow-x:auto;padding:4px 0 8px;margin:0 0 6px;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.cc-tab{flex:0 0 auto;border:1px solid var(--line,#e3e8f0);background:#fff;color:inherit;border-radius:999px;padding:7px 13px;font-weight:600;font-size:13px;white-space:nowrap;cursor:pointer}
.cc-tab[aria-selected=true]{background:#111827;color:#fff;border-color:#111827}
.cc-add{border-style:dashed;color:#6b7686}
.cc-count{display:inline-block;min-width:18px;padding:0 5px;margin-left:3px;border-radius:9px;background:rgba(107,118,134,.18);font-size:11px;text-align:center}
.cc-tab[aria-selected=true] .cc-count{background:rgba(255,255,255,.25)}
.cc-chip{display:inline-block;padding:1px 8px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:11px;font-weight:600}
.cc-help{color:#6b7686;font-size:13px;margin:0 0 10px}
.cc-item{display:flex;gap:6px;margin-bottom:8px;flex-wrap:wrap}.cc-item input{flex:1 1 140px;min-width:0}
.cc-del{color:#b42318}.cc-new{display:flex;gap:6px;margin-top:10px}.cc-new input{flex:1;min-width:0}
.cc-compose{display:grid;gap:10px}.cc-compose label{display:grid;gap:4px;font-weight:600;font-size:13px}.cc-compose textarea,.cc-compose input{width:100%;box-sizing:border-box}
.cc-field{display:grid;gap:4px;margin:10px 0;font-weight:600;font-size:13px}
.clients-row-menu button[disabled]{opacity:.45;cursor:not-allowed}.clients-row-menu button small{font-weight:400;color:#6b7686}
.cs-period{display:flex;gap:6px;margin:10px 0}.cs-period button{flex:1;border:1px solid var(--line,#e3e8f0);background:#fff;border-radius:9px;padding:7px 4px;font-size:13px;font-weight:600}
.cs-period button[aria-pressed=true]{background:#111827;color:#fff;border-color:#111827}
.cs-kpis{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.cs-kpi{border:1px solid var(--line,#e3e8f0);border-radius:12px;padding:10px;background:#fff;display:grid;gap:2px}
.cs-kpi small{color:#6b7686;font-size:12px}.cs-kpi strong{font-size:20px}.cs-kpi span{font-size:12px;color:#6b7686}
.cs-tabs,.cs-subs{display:flex;gap:6px;margin:12px 0 8px;overflow-x:auto}
.cs-tabs button,.cs-subs button{flex:1 0 auto;border:1px solid var(--line,#e3e8f0);background:#fff;border-radius:9px;padding:8px 10px;font-weight:600;font-size:13px;white-space:nowrap}
.cs-tabs button[aria-selected=true],.cs-subs button[aria-selected=true]{background:#111827;color:#fff;border-color:#111827}
.cs-simstat{margin:0 0 6px;font-size:13px}.cs-list{display:grid;gap:6px;max-height:320px;overflow:auto}
.cs-sim{text-align:left}.cs-info{margin:12px 0}.cs-info>summary{font-weight:700;cursor:pointer;margin-bottom:6px}
@media(min-width:700px){.cs-kpis{grid-template-columns:repeat(4,1fr)}}
.clients-row-menu>div{scroll-margin-bottom:96px}
@media(max-width:700px){#clients-list{min-height:520px}}
.clients-board .cc-tab,.client-sheet .cs-period button,.client-sheet .cs-tabs button,.client-sheet .cs-subs button{background:transparent;color:var(--theme-text,inherit);border:1px solid var(--theme-border,#e3e8f0)}
.clients-board .cc-tab[aria-selected=true],.client-sheet .cs-period button[aria-pressed=true],.client-sheet .cs-tabs button[aria-selected=true],.client-sheet .cs-subs button[aria-selected=true]{background:var(--theme-accent,#111827);color:var(--theme-on-accent,#fff);border-color:var(--theme-accent,#111827)}
.client-sheet .cs-kpi{background:transparent;border-color:var(--theme-border,#e3e8f0)}.client-sheet .cs-kpi small,.client-sheet .cs-kpi span{color:var(--theme-muted,#6b7686)}
.cs-custom{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin:0 0 10px}.cs-custom label{display:grid;gap:3px;font-size:12px;font-weight:600;flex:1 1 130px}.cs-custom input{min-width:0;width:100%;box-sizing:border-box}
.cs-kpi.cs-wide{grid-column:span 2}
.clients-row-menu>div button svg{margin-right:2px}
.rc-state{display:inline-block;padding:2px 10px;border-radius:999px;background:#f5e6b8;color:#7a5c12;font-weight:600;font-size:13px}
