@font-face{font-family:Roboto;src:url('/assets/Roboto-Regular.ttf') format('truetype');font-weight:400;font-display:swap}@font-face{font-family:Roboto;src:url('/assets/Roboto-Medium.ttf') format('truetype');font-weight:500 900;font-display:swap}
:root{font-family:Roboto,Arial,sans-serif;--paper:#f6f7f9;--surface:#fff;--surface-soft:#edf1f4;--ink:#232a39;--ink-2:#4a5566;--muted:#697589;--line:#dfe5eb;--peach:#f0a98b;--peach-soft:#fff0e8;--orange:#b65736;--sage:#e2eee7;--navy:#242c43;--shadow:0 12px 32px #202a3910;--accent-ink:#955037;--field:#fff}
:root[data-theme=dark]{--paper:#161923;--surface:#202532;--surface-soft:#282f40;--ink:#eef1f7;--ink-2:#c3cbdb;--muted:#a3afc3;--line:#374155;--peach:#f0ad8e;--peach-soft:#49342f;--orange:#db977d;--sage:#273c36;--navy:#141b2c;--shadow:0 12px 32px #0002;--accent-ink:#f2b99d;--field:#1b2130}
body,button,input,textarea,select,.brand,.story-copy h1,.auth-card h2,.app-header h1,.hero-card h2,.mobile-page-head h1,.management-head h2,.cw-heading h1,.placeholder-view h1{font-family:Roboto,Arial,sans-serif!important}body{color:var(--ink);background:var(--paper)}button,input,select,textarea{color:var(--ink)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--peach);outline-offset:3px}.portal-shell{grid-template-columns:246px minmax(0,1fr);background:var(--paper)}.desktop-nav{padding:25px 16px;background:var(--surface);height:calc(100dvh - 27px);overflow:auto}.brand{letter-spacing:-.6px;font-size:20px;gap:10px}.brand>span{background:none;width:44px;height:44px;border-radius:12px;overflow:hidden;flex:none}.brand img{width:100%;height:100%;object-fit:contain}.brand>b{font-weight:600}.desktop-nav .brand{padding:0 6px}.product-name{font-size:8px;letter-spacing:1.2px;padding:12px 6px 20px;color:var(--muted)}.nav-section{font-size:9px;letter-spacing:1.5px;text-transform:uppercase;color:var(--muted);padding:13px 14px 5px}.desktop-nav nav{gap:3px}.desktop-nav nav button{font-size:13px;color:var(--ink-2);height:44px}.desktop-nav nav button.active{background:var(--peach-soft);color:var(--accent-ink)}.aside-business{color:var(--ink)}.aside-business small{color:var(--muted)}.app-area{padding-left:clamp(22px,3vw,48px);padding-right:clamp(22px,3vw,48px)}.app-header{gap:16px;height:98px}.app-header h1{font-size:24px;font-weight:500;letter-spacing:-.7px}.app-header small{color:var(--muted)}.header-actions{min-width:0}.connection-pill{max-width:230px;background:var(--surface);color:var(--ink-2)}.connection-pill span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.portal-exit-actions{align-items:center}.theme-picker{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted);margin-right:4px}.theme-picker select{border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);min-height:42px;padding:0 7px;font-size:12px}.overline{color:var(--accent-ink);font-size:10px;letter-spacing:1.8px}
.workspace-welcome{display:grid;grid-template-columns:1.2fr .8fr;background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:clamp(24px,4vw,52px);position:relative;overflow:hidden;min-height:340px;box-shadow:var(--shadow)}.workspace-welcome h2{font-size:clamp(34px,4vw,56px);font-weight:500;line-height:1.06;letter-spacing:-2px;margin:24px 0 18px}.workspace-welcome em{font-style:normal;color:var(--accent-ink)}.workspace-welcome p{color:var(--muted);font-size:14px;line-height:1.8;margin-bottom:25px}.workspace-art{display:flex;align-items:center;justify-content:center;position:relative;min-height:250px;flex-direction:column;gap:25px}.workspace-art img{width:166px;height:166px;border-radius:32px;transform:rotate(-9deg);box-shadow:0 24px 35px #0002;z-index:1}.workspace-art>span{font-size:8px;letter-spacing:2px;color:var(--muted);z-index:1}.workspace-orbit{position:absolute;width:270px;height:270px;border:1px solid var(--line);border-radius:50%;transform:rotate(25deg)}.workspace-orbit:before{content:'';position:absolute;inset:26px;border:1px dashed var(--line);border-radius:50%}.workspace-orbit:after{content:'';position:absolute;right:22px;top:28px;width:22px;height:22px;background:#00d782;border-radius:50%;box-shadow:-226px 123px 0 -3px #ff685e}.workspace-section-title{display:flex;justify-content:space-between;align-items:center;margin:32px 0 18px;gap:16px}.workspace-section-title h2{font-size:23px;letter-spacing:-.5px;margin:7px 0}.workspace-tiles,.management-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.workspace-tile{display:grid;grid-template-columns:48px minmax(0,1fr) 18px;align-items:center;gap:17px;padding:23px;text-align:left;border:1px solid var(--line);border-radius:17px;background:var(--surface);color:var(--ink);min-height:138px;transition:border-color .15s,transform .15s}.workspace-tile:hover{border-color:var(--peach);transform:translateY(-2px)}.workspace-tile-icon{width:48px;height:48px;display:grid;place-items:center;background:var(--sage);border-radius:15px;color:var(--ink-2)}.workspace-tile:nth-child(2n) .workspace-tile-icon{background:var(--peach-soft);color:var(--accent-ink)}.workspace-tile small{font-size:9px;letter-spacing:1.7px;color:var(--muted);text-transform:uppercase}.workspace-tile h3{margin:7px 0;font-size:18px;font-weight:500;letter-spacing:-.3px}.workspace-tile p{margin:0;color:var(--muted);font-size:12px;line-height:1.6}.workspace-arrow{color:var(--muted);font-size:20px}.workspace-page-heading{margin:14px 0 32px}.workspace-page-heading h1{font-size:38px;font-weight:500;letter-spacing:-1.4px;margin:12px 0}.workspace-page-heading p{color:var(--muted)}
.cw-primary,.primary-action{background:var(--ink);color:var(--surface);border-color:var(--ink);box-shadow:none}.cw-secondary,.secondary-action,.round-button{background:var(--surface);border-color:var(--line);color:var(--ink-2)}.cw-panel,.cw-filters,.report-filters,.report-grid,.report-summary article,.report-chart,.report-message,.connection-manage,.connected-business,.auth-side,.auth-card{background:var(--surface);border-color:var(--line);color:var(--ink)}.cw-field input,.cw-field select,.cw-rule input,.cw-rule select,.report-table th input,.input-with-action,.input-with-action input,#manager-connection{background:var(--field);border-color:var(--line);color:var(--ink)}.cw-field>span,.cw-heading p,.cw-notice,.report-caption,.report-summary p,.report-summary h3,.report-message,.cw-grid-heading,.cw-panel h2,.cw-muted,.cw-summary p,.cw-summary dt,.cw-summary dd,.directory-detail p,.auth-card>p{color:var(--ink-2)}.cw-dialog{background:var(--surface);border-color:var(--line);color:var(--ink)}.cw-help,.cw-summary,.cw-form-footer,.cw-rules-head,.cw-notice,.trust-note,.report-grid-bar,.directory-detail-table h3,.directory-facts p{background:var(--surface-soft);border-color:var(--line);color:var(--ink-2)}.report-table th,.cw-table-wrap th{background:var(--surface);color:var(--ink)}.report-table td,.report-table th,.cw-table-wrap td,.cw-rule{border-color:var(--line);color:var(--ink-2)}.report-grid-bar button,.cw-grid-heading button{background:var(--peach-soft);color:var(--accent-ink);border-color:var(--line)}.report-grid-bar>strong,.report-grid-bar span{color:var(--ink)}.campaign-workspace{color:var(--ink);--cw-border:var(--line);--cw-muted:var(--muted);--cw-ink:var(--ink)}.report-chart svg{color:var(--ink)}.point-method-options label{border-color:var(--line)}.point-method-options label:has(input:checked){background:var(--peach-soft);border-color:var(--peach)}.point-method-options small{color:var(--muted)}#point-rates-dialog>.cw-section-heading,#point-rates-dialog .point-rate-actions,.directory-dialog-head{background:var(--surface)}.cw-rule input[data-points]{background:var(--field);color:var(--ink)}.cw-rule input:disabled{background:var(--surface-soft);color:var(--muted)}.cw-reward-note{background:var(--peach-soft);color:var(--accent-ink)!important}.report-branches input{background:var(--field)}.auth-shell{border-color:var(--line)}.auth-story{background:var(--navy)}.auth-card h2{color:var(--ink)}.input-with-action input::placeholder{color:var(--muted)}.mobile-nav{background:var(--surface);border-color:var(--line)}.mobile-nav button{color:var(--muted)}.mobile-nav button.active{color:var(--accent-ink);background:var(--peach-soft)}.cw-dialog #cw-picker-items button{background:var(--surface);color:var(--ink);border-color:var(--line)}.cw-dialog #cw-picker-items button:disabled{background:var(--surface-soft)}.cw-empty{color:var(--muted)}.cw-summary{background:var(--surface-soft)}
.preview-ribbon{background:var(--surface-soft);color:var(--muted)}.advanced-options{display:grid;gap:10px}.advanced-options label{display:flex;gap:9px;align-items:flex-start;font-size:12px}.advanced-options input{accent-color:var(--orange);margin-top:3px}.advanced-thresholds{display:grid;grid-template-columns:1fr;gap:10px}.advanced-empty{min-height:300px;display:grid;place-content:center;text-align:center;border:1px dashed var(--line);border-radius:15px;padding:30px;color:var(--muted)}.advanced-empty svg{margin:0 auto 15px;width:42px;height:42px}.advanced-actions{display:flex;gap:8px;flex-wrap:wrap}.advanced-selection{font-size:12px;color:var(--ink-2);line-height:1.6}.report-table input[type=checkbox]{width:18px;min-width:18px;height:18px;accent-color:var(--orange)}.advanced-confirm-list{max-height:35vh;overflow:auto}.advanced-note{padding:13px;border:1px solid var(--line);border-radius:12px;background:var(--surface);font-size:12px;color:var(--muted)}.report-summary:empty,.advanced-selection:empty{display:none}
.cw-grid-heading,.cw-empty-small,.cw-section-heading{background:var(--surface-soft);color:var(--ink);border-color:var(--line)}.cw-remove{background:var(--surface);color:var(--ink-2);border-color:var(--line)}.cw-badge{background:var(--surface-soft);color:var(--muted)}.cw-active{background:var(--sage);color:var(--ink-2)}.cw-summary-icon{background:var(--peach-soft);color:var(--accent-ink)}
@media(max-width:1100px) and (min-width:761px){.app-header{height:auto;min-height:108px;flex-wrap:wrap;padding:18px 0}.header-actions{width:100%;justify-content:space-between}.workspace-welcome{grid-template-columns:1fr}.workspace-art{display:none}.portal-shell{grid-template-columns:224px minmax(0,1fr)}}
@media(max-width:760px){.portal-shell{display:block}.app-area{padding-left:16px;padding-right:16px}.app-header{min-height:78px;height:auto;background:var(--paper);margin-bottom:20px}.portal-exit-actions{gap:6px}.portal-exit-actions button{padding:8px 10px}.theme-picker>span{display:none}.theme-picker{order:2;margin:0}.theme-picker select{min-height:44px}.portal-exit-actions #portal-logout{order:3}.header-actions .connection-pill{height:38px}.workspace-welcome{grid-template-columns:1fr;padding:26px 22px;border-radius:20px;min-height:0}.workspace-welcome h2{font-size:38px;letter-spacing:-1.3px;margin-top:22px}.workspace-welcome p{font-size:13px}.workspace-art{display:none}.workspace-tiles,.management-grid{grid-template-columns:1fr}.workspace-tile{min-height:116px;padding:19px;gap:14px}.workspace-tile h3{font-size:17px}.workspace-section-title{align-items:flex-start}.workspace-section-title h2{font-size:21px}.workspace-section-title>.cw-secondary{font-size:11px;white-space:nowrap}.workspace-page-heading h1{font-size:32px;line-height:1.15}.mobile-nav{padding-left:5px;padding-right:5px}.mobile-nav button{font-size:10px}.report-filters{padding:18px}.report-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.advanced-actions button{flex:1}.management-head{display:block}.management-head>div{display:block}.management-head h2{font-size:30px}.management-head p{font-size:13px}.mobile-page-head{display:none}}
@media print{:root,:root[data-theme=dark]{--paper:#fff;--surface:#fff;--surface-soft:#f4f4f4;--ink:#111;--ink-2:#222;--muted:#444;--line:#ccc;color-scheme:light}#performance-view.active,#levels-view.active,#liability-view.active{display:block!important}.advanced-actions,.theme-picker{display:none!important}.advanced-note{margin-bottom:12px}.advanced-empty{display:none}}
