/* SplitFlow identity — presentation only. */
:root{--sf-ink:#18243b;--sf-accent:#635beb;--sf-positive:#218563;--sf-negative:#c65c67;--sf-bg:#f7f8fa}
body{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--sf-bg);color:var(--sf-ink);font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased}
.brand{font-family:inherit!important;font-size:23px!important;font-weight:650!important;letter-spacing:-.9px!important;color:var(--sf-ink)!important;gap:9px!important}.splitflow-brand-mark{width:30px;height:30px;display:block;flex-shrink:0}.brand>small{display:none!important}.sidebar{background:var(--sf-bg)!important}.button.primary{background:var(--sf-accent)!important;border-color:var(--sf-accent)!important;box-shadow:0 2px 5px #635beb12!important}.button.primary:hover{background:#554bd9!important}.button.primary:disabled{opacity:.4}.button:not(.primary){box-shadow:none!important}.club-list-panel,.dash-panel,.detail-card{box-shadow:none!important;border-color:#e5e8f0!important}h1,h2,h3{color:var(--sf-ink);letter-spacing:-.4px}#nav a.active{color:var(--sf-accent)!important;border-color:var(--sf-accent)!important}.results-workspace-tabs button.active,.club-detail-tabs a.active{color:var(--sf-accent)!important;border-color:var(--sf-accent)!important}.result-positive,.positive{color:var(--sf-positive)!important}.result-negative,.negative{color:var(--sf-negative)!important}.results-usd-symbol{color:#9ba4b4}.badge{font-weight:500}.avatar{border-radius:9px}input:focus,select:focus,textarea:focus{outline-color:var(--sf-accent)}.mobile-bottom-nav .active{color:var(--sf-accent)!important}footer>span:first-child{letter-spacing:.15px}.club-name-link b{font-weight:550}.statement-document{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
@media(max-width:700px){.sidebar .brand{font-size:21px!important}.splitflow-brand-mark{width:27px;height:27px}.mobile-bottom-nav{background:#fffffff7}.sidebar{background:var(--sf-bg)!important}}
.profile-identity{display:flex;align-items:center;gap:12px;padding:10px 0 20px}.profile-identity .avatar{width:44px;height:44px}.profile-identity strong{font-size:15px;font-weight:550}.profile-identity small{display:block;font-size:12px;color:#8a95aa;margin-top:5px}.profile-option-list{display:grid}.profile-option-list>button{padding:14px 0;border:0;border-top:1px solid #edf0f6;text-align:left;background:none;color:#43516e;font:inherit;cursor:pointer}.profile-option-list>button>span{display:block;font-size:14px;font-weight:500}.profile-option-list>button>small{display:block;font-size:11px;color:#909aaf;margin-top:5px}.profile-option-list>button:hover>span{color:#635beb}.profile-option-list>.profile-logout>span{color:#c65c67}

.referral-delete-confirm{border:1px solid #efdde2;background:#fff9fa;border-radius:8px;padding:14px;margin:12px 0}.referral-delete-confirm strong{font-size:14px;color:#834b59}.referral-delete-confirm p{font-size:12px;line-height:1.5;margin:8px 0 12px}.referral-delete-confirm>div{display:flex;gap:8px;justify-content:flex-end}#referral-confirm-delete{color:#b84f65;border-color:#e3b8c3}.club-form>.field>strong{font-weight:600;color:#43516e;font-size:13px}

/* Compact club creation and inline upline setup. */
#modal.new-club-dialog{width:min(640px,calc(100vw - 32px));max-width:640px;padding:24px}
#modal.new-club-dialog .compact-club-form{border:0;box-shadow:none;padding:0!important;margin:0}
.compact-club-form .club-form-grid{gap:14px 18px;margin:0}
.compact-club-form .field{gap:6px;margin:0}
.compact-club-form input,.compact-club-form select{min-height:38px;padding:9px 12px}
.compact-club-form .inline-upline{margin-top:10px}
.compact-club-form [hidden]{display:none!important}
.club-optional{border-top:1px solid #e6e9f2;margin-top:18px;padding-top:14px}
.club-optional summary{cursor:pointer;font-weight:600;font-size:13px;color:#63708b}
.club-optional[open] summary{margin-bottom:16px}
.club-optional>.field{margin-top:14px}
.compact-club-form .club-form-bottom{justify-content:flex-end;gap:8px;margin-top:16px;padding-top:0}
.compact-club-form .form-error:empty{display:none}
@media(max-width:700px){#modal.new-club-dialog{padding:20px!important}.compact-club-form .club-form-grid{gap:12px!important}.compact-club-form .field>input,.compact-club-form .field>select{min-height:40px}.compact-club-form .club-form-bottom{position:sticky;bottom:0;background:white;padding:12px 0 0}.compact-club-form .personal-referral-picker{min-height:40px}}
.new-club-dialog .compact-club-form>.club-form-grid>:nth-child(1){order:1}
.new-club-dialog .compact-club-form>.club-form-grid>:nth-child(4){order:2}
.new-club-dialog .compact-club-form>.club-form-grid>:nth-child(2){order:3}
.new-club-dialog .compact-club-form>.club-form-grid>:nth-child(3){order:4}
.new-club-dialog .compact-club-form>.club-form-grid>:nth-child(5){order:5;grid-column:1/-1}
.compact-club-form .club-form-bottom{display:flex!important;align-items:center}
@media(max-width:700px){.new-club-dialog .compact-club-form>.club-form-grid{grid-template-columns:1fr 1fr!important}.new-club-dialog .compact-club-form>.club-form-grid>:nth-child(1),.new-club-dialog .compact-club-form>.club-form-grid>:nth-child(3),.new-club-dialog .compact-club-form>.club-form-grid>:nth-child(5){grid-column:1/-1!important}.compact-club-form .club-form-bottom>.button{width:auto!important}}
.compact-club-form .club-form-bottom{flex-direction:row!important;flex-wrap:nowrap!important}
/* Desktop navigation, with the existing mobile navigation preserved. */
@media(min-width:701px){
#application>.sidebar{position:fixed!important;inset:0 auto 0 0!important;width:210px!important;height:100dvh!important;padding:27px 14px 18px!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;border:0!important;border-right:1px solid #e3e7f0!important;border-radius:0!important;background:#fbfbfe!important;overflow-y:auto}
#application>.sidebar .brand{display:flex!important;align-items:center!important;padding:0 9px!important;margin:0 0 32px!important;height:auto!important;flex-shrink:0;font-size:23px!important}
#application .sidebar #nav{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:5px!important;height:auto!important;margin:0!important;overflow:visible!important}
#application #nav a{display:flex!important;align-items:center!important;gap:12px!important;padding:12px!important;margin:0!important;border:0!important;border-radius:8px!important;font-size:13px!important;white-space:nowrap;color:#73809a!important}
#application #nav a svg{display:block!important;width:18px!important;height:18px!important;flex-shrink:0}
#application #nav a.active{background:#eeecff!important;color:#635beb!important;font-weight:600}
#application #nav a:hover{background:#f1f2f8}
#application #nav .nav-divider{display:none!important}
#application .sidebar>.header-actions{position:static!important;display:flex!important;align-items:center!important;margin: auto 0 0!important;padding:18px 6px 0!important;border-top:1px solid #e5e8f0;gap:8px!important;flex-direction:row-reverse;justify-content:space-between}
#application .sidebar .profile{display:flex!important;min-width:0;padding:3px!important;gap:8px!important}
#application .sidebar .profile>span:not(.avatar){display:block!important;margin:0!important;font-size:12px!important;max-width:102px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#application .sidebar .profile .avatar{width:31px!important;height:31px!important;color:#635beb;background:#eeecff;border-radius:9px}
#application .sidebar #notify{display:grid!important;padding:4px!important}
#application .sidebar-bottom,#application .sidebar .demo-label{display:none!important}
#application>.shell{margin:0 0 0 210px!important;width:calc(100% - 210px)!important;max-width:none!important;padding:0!important;min-height:100dvh}
#application .shell>main{max-width:1500px;margin:auto;padding:32px 28px 40px;background:transparent;min-width:0}
#application .shell>header{display:none!important}
#application .shell>footer{margin:0 28px;padding:18px 0}
}
@media(min-width:701px) and (max-width:1000px){#application>.sidebar{width:182px!important}#application>.shell{margin-left:182px!important;width:calc(100% - 182px)!important}#application .sidebar .brand{font-size:21px!important;padding:0 5px!important}#application .shell>main{padding:25px 20px 35px}#application #nav a{font-size:12px!important;padding:11px 9px!important}}
@media(max-width:700px){#application>.sidebar{position:relative!important;inset:auto!important;width:100%!important;height:62px!important;min-height:62px!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;padding:10px 16px!important;border-right:0!important;border-bottom:1px solid #e5e8f0!important;gap:8px!important}#application>.sidebar>.header-actions{position:static!important;margin:0!important;gap:10px!important}#application>.sidebar .brand{display:flex!important;align-items:center!important;height:auto!important;padding:0!important}#application>.sidebar #nav{display:none!important}#application>.shell{margin:0!important;padding-top:0!important;width:100%!important}#application .sidebar .profile .avatar{background:#eeecff;color:#635beb}.mobile-more-menu a.active{background:#eeecff;color:#635beb}}
@media(min-width:701px){#application #nav a::after,#application #nav a::before{display:none!important}#application #nav a.active{box-shadow:none!important}}
/* Keep every transaction filter visible on narrow screens. */
@media(max-width:700px){#application .ws-status-tabs{display:flex!important;flex-wrap:wrap!important;overflow:visible!important;gap:4px 12px!important;height:auto!important;padding:10px 12px!important}#application .ws-status-tabs button{flex:0 0 auto;white-space:nowrap;padding:8px 2px!important;font-size:11px!important;min-height:35px}}

/* Google Sheet club list */
.clubs-sheet-intro{margin:0 0 14px;color:var(--muted,#667085);line-height:1.5}.clubs-sheet-steps{margin:0 0 12px;padding-left:20px;line-height:1.7}.clubs-sheet-script{width:100%;box-sizing:border-box;font:12px/1.45 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;border:1px solid var(--line,#d0d5dd);border-radius:10px;padding:10px;resize:vertical;background:var(--soft,#f8fafc)}
.clubs-sheet-link{margin:14px 0 4px;display:grid;gap:8px}.clubs-sheet-link label{font-size:13px;color:var(--muted,#667085)}.clubs-sheet-url-row{display:flex;gap:8px}.clubs-sheet-url-row input{flex:1;min-width:0;padding:9px 11px;border:1px solid var(--line,#d0d5dd);border-radius:9px;font:inherit;font-size:13px}.clubs-sheet-open{justify-self:start;text-decoration:none}
.club-more-panel>a{display:flex;align-items:center;gap:10px;width:100%;box-sizing:border-box;padding:11px 12px;border-radius:6px;font-size:13px;color:#54637d;text-decoration:none}.club-more-panel>a:hover{background:#f5f3ff;color:#635beb}
@media (max-width:520px){.clubs-sheet-url-row{flex-direction:column}}
/* Chip credit */
.cc-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px;padding:16px}
.cc-overview{margin:18px 0}.cc-overview .cc-cards{padding:0}.cc-overview-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.cc-overview-head h2{font-size:16px;margin:0}.cc-overview-head a{font-size:13px;color:var(--sf-accent);text-decoration:none}
.cc-card{border:1px solid #e5e8f0;border-radius:12px;padding:14px;background:#fff;display:flex;flex-direction:column;gap:8px}
.cc-card.is-warn{border-color:#f5c27a}.cc-card.is-over{border-color:#f0a3a3;background:#fff8f8}
.cc-card-head{display:flex;align-items:center;gap:10px}.cc-card-head>div{display:flex;flex-direction:column;gap:2px;min-width:0}.cc-card-head strong{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cc-logo{width:34px;height:34px;border-radius:9px;overflow:hidden;flex-shrink:0;background:#eef0f6;display:grid;place-items:center}.cc-logo img{width:100%;height:100%;object-fit:cover}.cc-logo b{font-size:14px;color:#5b6475}
.cc-status{font-size:11px;font-weight:600;border-radius:6px;padding:1px 6px;width:max-content}.cc-status.is-warn{background:#fff1dc;color:#a35f00}.cc-status.is-over{background:#fde4e4;color:#b42318}.cc-status.is-none{background:#f0f2f7;color:#6b7385}
.cc-figures{display:flex;align-items:baseline;gap:6px}.cc-figures b{font-size:22px;font-weight:650;letter-spacing:-.4px}.cc-figures span{color:#6b7385;font-size:13px}
.cc-gauge{height:8px;border-radius:99px;background:#eef0f6;overflow:hidden}.cc-gauge span{display:block;height:100%;border-radius:99px;background:var(--sf-accent);transition:width .25s}.cc-gauge.is-warn span{background:#f59e0b}.cc-gauge.is-over span{background:#e5484d}
.cc-remaining{margin:0;font-size:13px;color:#5b6475}.cc-card.is-over .cc-remaining{color:#b42318;font-weight:550}
.cc-card-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:4px}.cc-card-actions .button{padding:6px 12px;min-height:34px}
.cc-history .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.cc-plus{color:var(--sf-negative)}.cc-minus{color:var(--sf-positive)}.cc-note{color:#6b7385;max-width:260px}
.text-button.danger{color:#b42318;font-weight:600}
.cc-modal-sub{margin:-4px 0 12px;color:#6b7385}.cc-form{display:flex;flex-direction:column;gap:10px}
.cc-type{display:grid;grid-template-columns:1fr 1fr;gap:8px}.cc-type label{border:1px solid #e5e8f0;border-radius:10px;padding:9px 12px;display:flex;gap:8px;align-items:center;cursor:pointer}.cc-type label:has(input:checked){border-color:var(--sf-accent);background:#f4f3ff}
.cc-preview{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:13px;border-radius:10px;padding:9px 12px;background:#f6f7fb;color:#5b6475}.cc-preview b{color:var(--sf-ink)}.cc-preview.is-warn{background:#fff6e8}.cc-preview.is-over{background:#fdecec;color:#b42318}
@media (max-width:700px){.cc-cards{grid-template-columns:1fr;padding:12px}.cc-panel .club-toolbar{flex-direction:column;align-items:stretch;gap:10px}.cc-panel .head-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.cc-history th:nth-child(6),.cc-history td:nth-child(6){display:none}}
.form-error.cc-warning{color:#a35f00!important;background:#fff6e8;border-radius:8px;padding:8px 10px;font-size:12px}
@media (max-width:700px){#application .ct-profile-content .cc-panel .club-toolbar{flex-direction:column!important;align-items:stretch!important;text-align:left!important;gap:12px}#application .ct-profile-content .cc-panel .club-toolbar>.head-buttons{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;width:100%}#application .ct-profile-content .cc-panel .club-toolbar>.button{width:100%}.cc-panel .cc-cards{padding:0 0 12px}.cc-history th:nth-child(3),.cc-history td:nth-child(3){display:none}.cc-history td,.cc-history th{padding-left:8px!important;padding-right:8px!important}}
.cc-body{padding:16px;display:grid;grid-template-columns:minmax(280px,380px) 1fr;gap:16px;align-items:start}
.cc-summary{border:1px solid #e5e8f0;border-radius:12px;padding:16px;background:#fff;display:flex;flex-direction:column;gap:9px}.cc-summary.is-warn{border-color:#f5c27a}.cc-summary.is-over{border-color:#f0a3a3;background:#fff8f8}
.cc-summary-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.cc-summary-head small{color:#6b7385;font-size:12px}
.cc-summary.is-over .cc-remaining{color:#b42318;font-weight:550}.cc-missing{margin:0;font-size:12px;color:#a35f00}
.cc-club-rows{border:1px solid #e5e8f0;border-radius:12px;background:#fff;overflow:hidden}.cc-club-row{display:flex;align-items:center;gap:10px;padding:11px 14px}.cc-club-row+.cc-club-row{border-top:1px solid #eef0f6}
.cc-club-row>div:nth-child(2){display:flex;flex-direction:column;min-width:0;flex:1}.cc-club-row strong{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cc-club-row small{color:#6b7385;font-size:12px}
.cc-club-amount{display:flex;flex-direction:column;align-items:flex-end;font-variant-numeric:tabular-nums;white-space:nowrap}.cc-club-amount b{font-weight:600}
.cc-rate-note{grid-column:1/-1;margin:0;font-size:12px;color:#8a92a3}.cc-overview .cc-summary{max-width:420px}
.cc-preview{flex-direction:column;align-items:flex-start;gap:4px}.cc-preview-chip{color:#6b7385}
@media (max-width:700px){.cc-body{grid-template-columns:1fr;padding:0 0 12px}}
.statement-empty-toggle{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;color:#667085;font-size:12.5px;border-top:1px solid #eef0f6}
.statement-owner-note{display:block;color:#667085;font-size:12px;margin-top:4px}
.statement-owner-line{margin:14px 0 0;padding:12px 14px;border-radius:10px;background:#f2f4f7;color:#344054;font-size:14px;font-weight:600}.statement-owner-line b{margin-left:6px}.statement-owner-line.positive{background:#ecfdf3;color:#067647}.statement-owner-line.negative{background:#fef3f2;color:#b42318}
