/* The client dashboard: their month shown as a strip of film. Everything is scoped under .cx. */
.cx { --deep:#002d1e; --leaf:#0f7a52; --mint:#e3f3ea; --gold:#ffb629; --ink:#10231b; --soft:#586b62; max-width:860px; margin:0 auto; padding:12px; display:flex; flex-direction:column; gap:16px; color:var(--ink); }
html { scroll-behavior:smooth; }
.cx h1, .cx h2, .cx h3, .cx p { margin:0; }
.cx h2 { font-size:21px; font-weight:800; letter-spacing:-.02em; line-height:1.2; margin-bottom:14px; }
.cx h3 { font-size:14px; margin:16px 0 4px; }
.cx a:focus-visible, .cx summary:focus-visible, .cx button:focus-visible { outline:3px solid var(--gold); outline-offset:2px; }
.cx-muted { color:var(--soft); font-size:13.5px; margin-top:12px !important; }
.cx h2 + .cx-muted { margin-top:-8px !important; margin-bottom:12px !important; }

/* hero */
.cx-hero { position:relative; overflow:hidden; background:var(--deep); color:#fff; border-radius:28px; padding:20px 20px 26px; }
.cx-reelart { position:absolute; right:-70px; top:-50px; width:250px; height:250px; color:#fff; opacity:.09; animation:cx-spin 1.6s cubic-bezier(.2,.7,.2,1) both; }
.cx-top { position:relative; display:flex; justify-content:space-between; gap:12px; font-size:13px; color:#b6d4c6; }
.cx-top a { color:#fff; }
.cx-hero h1 { position:relative; font-size:clamp(30px,8vw,48px); font-weight:800; letter-spacing:-.035em; line-height:1.05; margin:18px 0 20px; overflow-wrap:anywhere; color:#fff; }
.cx-score { position:relative; display:flex; align-items:center; gap:18px; }
.cx-ring { position:relative; flex:0 0 126px; width:126px; height:126px; }
.cx-ring svg { width:100%; height:100%; transform:rotate(-90deg); }
.cx-ring circle { fill:none; stroke-width:12; }
.cx-ring .track { stroke:rgba(255,255,255,.14); }
.cx-ring .fill { stroke:var(--gold); stroke-linecap:round; animation:cx-draw 1.2s .2s ease-out both; }
.cx-ring p { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; line-height:1; }
.cx-ring b { font-size:40px; font-weight:800; letter-spacing:-.03em; }
.cx-ring span { font-size:13px; color:#b6d4c6; margin-top:4px; }
.cx-line { font-size:17px; font-weight:600; line-height:1.35; }
.cx-next { display:inline-block; margin-top:10px !important; background:var(--gold); color:#2b1d00; border-radius:99px; padding:5px 12px; font-size:13px; font-weight:700; }

.cx-due { display:flex; flex-wrap:wrap; align-items:center; gap:6px 14px; background:#fff4d9; border:2px solid var(--gold); border-radius:18px; padding:14px 18px; color:var(--ink); text-decoration:none; }
.cx-due b { font-size:22px; }
.cx-due .cx-go { margin-left:auto; font-weight:700; text-decoration:underline; }

.cx-nav { position:sticky; top:0; z-index:5; display:flex; gap:8px; overflow-x:auto; padding:8px 0; margin:-8px 0; background:var(--bg,#f6f7f6); }
.cx-nav a { flex:1 0 auto; text-align:center; white-space:nowrap; background:#fff; border:1px solid #dbe6e0; border-radius:99px; padding:9px 14px; font-size:13.5px; font-weight:600; color:var(--deep); text-decoration:none; }

.cx-card { background:#fff; border:1px solid #e2ebe6; border-radius:24px; padding:20px 18px; margin:0; scroll-margin-top:60px; }

/* the film strip */
.cx-film { background:var(--deep); border-radius:18px; padding:22px 8px; position:relative; }
.cx-film::before, .cx-film::after { content:""; position:absolute; left:10px; right:10px; height:8px; background:repeating-linear-gradient(90deg,#fff 0 9px,transparent 9px 20px); opacity:.75; border-radius:2px; }
.cx-film::before { top:7px; }
.cx-film::after { bottom:7px; }
.cx-tiles { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill,minmax(70px,1fr)); gap:6px; }
.cx-tiles li { margin:0; aspect-ratio:9/14; animation:cx-pop .4s calc(var(--i) * 45ms) ease-out both; }
.cx-tiles li > a, .cx-tiles li > div { height:100%; box-sizing:border-box; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:2px; border-radius:10px; padding:8px 4px 10px; text-align:center; text-decoration:none; background:#fff; color:var(--ink); }
.cx-tiles b { font-size:13.5px; line-height:1.2; }
.cx-tiles small { font-size:11px; line-height:1.2; }
.cx-mark { flex:1; display:flex; align-items:center; justify-content:center; }
.cx-ico { width:22px; height:22px; flex:0 0 auto; }
.cx-mark .cx-ico { width:30px; height:30px; }
.cx-tiles .done > * { background:linear-gradient(160deg,#1a9b6a,#0b5d41); color:#fff; }
.cx-tiles a:hover { filter:brightness(1.12); }
.cx-tiles .part > * { background:var(--mint); }
.cx-tiles .today > *, .cx-tiles .pending > * { background:var(--gold); color:#2b1d00; }
.cx-tiles .empty > * { background:transparent; color:#a9c9ba; border:2px dashed rgba(255,255,255,.28); }
.cx-later { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin-top:14px !important; font-size:13.5px; }
.cx-later span { background:var(--mint); border-radius:8px; padding:3px 9px; }

/* platforms */
.cx-nets { display:grid; gap:14px; margin-top:20px; }
.cx-net { --c:var(--leaf); }
.cx-netname { display:flex; justify-content:space-between; gap:10px; font-size:14px; }
.cx-netname span { color:var(--soft); }
.cx-bar { display:flex; gap:3px; margin:6px 0 4px; }
.cx-bar i { flex:1; height:12px; border-radius:3px; background:#e8efeb; }
.cx-bar i.on { background:var(--c); }
.cx-net a { font-size:12.5px; color:var(--leaf); font-weight:600; }

/* months */
.cx-chart { display:flex; align-items:flex-end; gap:10px; border-bottom:2px solid #e2ebe6; padding-top:4px; }
.cx-chart > div { flex:1; min-width:0; display:flex; flex-direction:column; align-items:center; gap:4px; position:relative; margin-bottom:22px; }
.cx-chart i { width:100%; max-width:46px; background:#9fc9b5; border-radius:6px 6px 0 0; min-height:2px; }
.cx-chart .now i { background:var(--leaf); }
.cx-chart span { position:absolute; top:100%; margin-top:5px; font-size:11px; color:var(--soft); white-space:nowrap; }

/* posted */
.cx-post { display:flex; align-items:center; gap:12px; padding:9px 0; border-top:1px solid #edf2ef; }
.cx-date { flex:0 0 48px; height:48px; border-radius:12px; background:var(--mint); display:flex; flex-direction:column; align-items:center; justify-content:center; font-size:11px; line-height:1.15; }
.cx-date b { font-size:18px; }
.cx-links { display:flex; flex-wrap:wrap; gap:6px; }
.cx-links > * { border-radius:99px; padding:7px 13px; font-size:13px; font-weight:600; text-decoration:none; background:#eef2f0; color:var(--soft); }
.cx-links a { background:var(--deep); color:#fff; }
.cx-empty { text-align:center; background:var(--mint); border-radius:16px; padding:22px 14px; color:var(--deep); }
.cx-big { width:44px; height:44px; margin-bottom:6px; }

/* invoices */
.cx-bill { border:1px solid #e2ebe6; border-radius:16px; padding:14px; margin:0 0 10px; }
.cx-billtop, .cx-billfoot { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; }
.cx-billtop span { display:block; font-size:12.5px; color:var(--soft); }
.cx-billtop strong { font-size:22px; letter-spacing:-.02em; }
.cx-pay { height:8px; background:#ffe7b3; border-radius:99px; margin:10px 0; overflow:hidden; }
.cx-pay i { display:block; height:100%; background:var(--leaf); }
.cx-state { font-weight:700; font-size:13.5px; }
.cx-bill.paid .cx-state { color:var(--leaf); }
.cx-billfoot a { display:inline-block; margin-left:12px; font-size:13.5px; font-weight:600; color:var(--deep); padding:4px 0; }

/* services */
.cx-offers { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:10px; align-items:start; }
.cx-offers details { border-radius:18px; background:var(--mint); padding:14px; }
.cx-offers summary { display:flex; gap:12px; align-items:center; cursor:pointer; list-style:none; }
.cx-offers summary::-webkit-details-marker { display:none; }
.cx-offers summary small { display:block; color:var(--soft); font-size:12.5px; line-height:1.35; }
.cx-offers details[open] summary { margin-bottom:10px; }
.cx-badge { flex:0 0 44px; height:44px; border-radius:14px; background:var(--deep); color:var(--gold); display:flex; align-items:center; justify-content:center; }

/* talk */
.cx-person { display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.cx-person > span { width:52px; height:52px; border-radius:50%; background:var(--gold); color:#2b1d00; display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:800; }
.cx-person p { font-size:13px; color:var(--soft); }
.cx-person b { display:block; font-size:17px; color:var(--ink); }
.cx-call { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:14px !important; }
.cx-call a { display:flex; align-items:center; justify-content:center; gap:8px; border-radius:14px; padding:13px 6px; white-space:nowrap; font-weight:700; text-decoration:none; background:var(--mint); color:var(--deep); }
.cx-call a:first-child { background:var(--deep); color:#fff; }
.cx-talk > details { margin-top:14px; }

@keyframes cx-draw { from { stroke-dasharray:0 400; } }
@keyframes cx-spin { from { transform:rotate(-120deg); } }
@keyframes cx-pop { from { opacity:0; transform:translateY(10px) scale(.94); } }
@media (min-width:700px) { .cx-tiles { grid-template-columns:repeat(auto-fill,minmax(92px,1fr)); gap:8px; } .cx { padding:20px; } .cx-hero { padding:28px 32px 34px; } .cx-card { padding:26px; } .cx-line { font-size:22px; } .cx-ring { flex-basis:150px; width:150px; height:150px; } }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .cx * { animation:none !important; } }
