/* System font stack keeps the application fast and private; no third-party font requests. */

:root{--bg:#f6f7f9;--surface:#fff;--ink:#172b2b;--muted:#788585;--line:#e6ebea;--green:#1c6b54;--lime:#d9f59b;--red:#b34444;--amber:#a46d1d;--sidebar:#102c2b;--shadow:0 8px 35px #1c343608;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none;color:var(--ink);font-size:14px}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible{outline:3px solid #76bea7;outline-offset:3px}button{border:0}h1,h2,h3,p{margin:0}h1{font-size:29px;letter-spacing:-1.1px;line-height:1.3;font-weight:650}h2{font-size:17px;letter-spacing:-.35px;font-weight:650}h3{font-size:14px;font-weight:650}small{font-size:11px}svg.icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex-shrink:0}.boot{display:grid;min-height:100vh;place-content:center;text-align:center;font-size:58px;font-weight:800;color:var(--green)}.boot p{font-size:14px;margin-top:25px;color:var(--muted)}.layout{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--sidebar);color:#9ab0ac;padding:34px 18px 20px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;width:238px;z-index:20}.brand{display:flex;align-items:center;gap:12px;padding:0 12px;color:#fff;font-size:23px;font-weight:650;letter-spacing:-.8px}.brand img{width:35px;height:35px}.brand-sub{font-size:9px;letter-spacing:2.5px;margin:10px 0 43px 59px;color:#89a8a0}.nav-label{font-size:9px;letter-spacing:1.7px;padding:0 17px;margin-bottom:13px;color:#668d84;font-weight:600}.nav{display:flex;flex-direction:column;gap:7px}.nav a{display:flex;align-items:center;gap:13px;padding:13px 16px;border-radius:8px;font-size:13px;transition:background .15s;color:#a8c0b8}.nav a:hover{background:#ffffff09;color:white}.nav a.active{background:var(--lime);color:#173e2b;font-weight:650}.nav a .count{margin-left:auto;border:1px solid #73914355;border-radius:4px;padding:1px 5px;font-size:10px}.nav-section{margin-top:35px}.sidebar-bottom{margin-top:auto;padding-top:60px}.workspace-card{padding:17px 15px;background:#1b3935;border:1px solid #335049;border-radius:10px;line-height:1.6}.workspace-card strong{color:#e4efeb;font-size:12px;font-weight:500}.workspace-card p{font-size:11px;margin-top:7px;color:#91aaa3}.online-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#b8de7f;margin-right:7px}.profile{display:flex;align-items:center;gap:10px;margin-top:23px;padding:0 8px}.avatar{display:inline-flex;align-items:center;justify-content:center;width:35px;height:35px;border-radius:50%;font-size:11px;font-weight:600;color:#366558;background:#ecf2ec;flex-shrink:0}.profile .avatar{background:#3c5850;color:#eff6d2}.profile strong{color:#e1ece8;font-size:12px;font-weight:500}.profile small{display:block;color:#77988f;font-size:10px;margin-top:4px}.icon-button{display:inline-flex;align-items:center;justify-content:center;background:transparent;color:var(--muted);width:34px;height:34px;border-radius:7px}.icon-button:hover{background:#eaf0ed}.profile button{margin-left:auto}.main{grid-column:2;min-width:0}.topbar{height:77px;background:#ffffffbb;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 39px;gap:15px}.crumb{font-size:12px;color:var(--muted);display:flex;gap:12px;align-items:center}.crumb strong{font-weight:500;color:var(--ink)}.top-actions{display:flex;align-items:center;gap:18px}.search-trigger{background:none;color:#939e9a;display:flex;gap:9px;align-items:center;font-size:12px}.search-trigger kbd{border:1px solid var(--line);background:#f8faf9;border-radius:4px;padding:3px 5px;font-size:10px}.date{font-size:11px;color:#76847d;border-left:1px solid var(--line);padding-left:19px}.content{max-width:1610px;margin:auto;padding:34px 39px 28px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.eyebrow{font-size:10px;letter-spacing:1.4px;text-transform:uppercase;font-weight:600;color:var(--green);margin-bottom:8px}.subtitle{font-size:12px;color:var(--muted);margin-top:7px;line-height:1.6}.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 16px;border-radius:7px;background:white;color:#43554f;border:1px solid #dfe6e2;font-size:12px;font-weight:550;min-height:39px;white-space:nowrap;transition:.15s}.btn:hover{background:#f1f6f3;border-color:#c5d5ce}.btn.primary{background:var(--green);border-color:var(--green);color:white;box-shadow:0 2px 3px #17513e16}.btn.primary:hover{background:#15543f}.btn.dark{background:var(--sidebar);border-color:var(--sidebar);color:white}.btn.danger{color:var(--red);background:#fff9f9;border-color:#f0d8d8}.btn.small{padding:7px 11px;min-height:30px;font-size:11px}.btn.link{padding:5px 0;border:0;background:none;color:var(--green);box-shadow:none}.btn .icon{width:16px;height:16px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:23px}.stat{border:1px solid var(--line);background:white;border-radius:11px;padding:21px 21px 18px;box-shadow:var(--shadow);position:relative;overflow:hidden}.stat-label{display:flex;justify-content:space-between;color:#65756e;font-size:11px;font-weight:500;align-items:center}.stat-label .icon{color:#8caaa0;width:17px;height:17px}.stat-number{font-size:31px;font-weight:650;letter-spacing:-1.1px;margin-top:15px;font-variant-numeric:tabular-nums}.stat-number .currency{font-size:13px;letter-spacing:0;font-weight:500;color:#8b9891;margin-right:4px}.stat-note{font-size:10px;color:#89968e;margin-top:10px;display:flex;align-items:center;gap:5px}.stat-note b{color:var(--green);font-weight:500}.stat.featured{background:#eff6ed;border-color:#d8e6d0}.stat.featured .stat-number{color:#285c41}.grid-main{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:23px;margin-bottom:23px}.card{background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:var(--shadow);min-width:0;overflow:hidden}.card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:22px 23px 17px}.card-head p{font-size:11px;color:var(--muted);margin-top:6px}.pill{display:inline-flex;align-items:center;gap:5px;border:1px solid #e1e9e3;border-radius:5px;padding:6px 9px;color:#79847e;background:#fcfdfb;font-size:10px;white-space:nowrap}.card-body{padding:0 23px 22px}.hero-chart{height:159px;display:flex;align-items:flex-end;gap:12px;padding:17px 0 0;border-bottom:1px solid var(--line);position:relative}.chart-col{flex:1;height:100%;display:flex;align-items:flex-end;justify-content:center;position:relative;z-index:1}.chart-bar{width:65%;min-width:12px;max-width:46px;background:#c5dcc5;border-radius:4px 4px 0 0;min-height:3px}.chart-col:last-child .chart-bar{background:#28705a}.chart-grid{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:space-between;padding-top:8px;pointer-events:none}.chart-grid span{border-top:1px dashed #e8ede7;width:100%;height:1px}.chart-labels{display:flex;margin-top:11px;font-size:10px;color:#8c9891}.chart-labels span{flex:1;text-align:center}.chart-summary{display:flex;gap:26px;margin-top:20px}.chart-summary div{font-size:10px;color:var(--muted)}.chart-summary strong{display:block;font-size:17px;font-weight:550;color:var(--ink);margin-top:5px}.legend{font-size:10px;color:#809083;display:flex;align-items:center;gap:6px}.legend::before{content:'';display:block;width:7px;height:7px;border-radius:2px;background:#28705a}.attention{padding:0 22px 12px}.attention-row{display:flex;align-items:center;gap:10px;padding:14px 0;border-bottom:1px solid #f0f3ef}.attention-row:last-child{border:0}.attention-row .attention-icon{display:flex;align-items:center;justify-content:center;width:35px;height:35px;border-radius:9px;background:#faf4e8;color:#b0853c;flex-shrink:0}.attention-row strong{display:block;font-size:12px;font-weight:550}.attention-row p{font-size:10px;color:var(--muted);margin-top:5px;line-height:1.5}.attention-row .btn{margin-left:auto}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:26px 0 14px}.section-heading h2{font-size:16px}.section-heading span{font-size:11px;color:var(--muted)}.filters{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:0 23px 17px}.tabs{display:flex;gap:6px;flex-wrap:wrap}.tab{background:none;color:#849087;padding:8px 11px;border-radius:6px;font-size:11px}.tab.active{background:#edf4ec;color:#346244;font-weight:600}.tab span{margin-left:5px;font-size:10px;color:#89988a}.input-search{position:relative}.input-search svg{position:absolute;left:11px;top:10px;width:15px;height:15px;color:#98a198}.input-search input{width:230px;border:1px solid var(--line);padding:9px 12px 9px 33px;border-radius:6px;font-size:11px;background:#fff;outline:none}.input-search input:focus{border-color:#70a88b;box-shadow:0 0 0 3px #70a88b18}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th{font-size:9px;letter-spacing:.6px;font-weight:550;text-transform:uppercase;color:#85928a;background:#f9fbf8;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 23px}td{padding:16px 23px;border-bottom:1px solid #edf1ec;font-size:11px;color:#66766d}tbody tr:last-child td{border-bottom:0}tbody tr.clickable{cursor:pointer}tbody tr.clickable:hover{background:#fafcf8}td .person{display:flex;align-items:center;gap:11px}td strong{font-size:12px;color:#35493e;font-weight:550;display:block}td small{display:block;font-size:10px;color:#91a092;margin-top:4px}td.money{font-variant-numeric:tabular-nums;color:var(--ink);font-weight:500}.badge{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:5px;font-size:10px;font-weight:500;line-height:1.1;background:#f1f3f2;color:#748279}.badge::before{content:'';width:4px;height:4px;border-radius:50%;background:currentColor}.badge.active,.badge.sent,.badge.enabled{background:#eaf5ec;color:#468056}.badge.trial,.badge.queued,.badge.pending{background:#fff5dd;color:#b78e3c}.badge.expired,.badge.error,.badge.overdue,.badge.uncertain{background:#fff0ed;color:#b56a57}.badge.paused,.badge.suspended{background:#f0eef6;color:#8b79a1}.table-footer{padding:14px 23px;border-top:1px solid var(--line);display:flex;justify-content:space-between;font-size:10px;color:#8f9b92}.empty{padding:39px 22px;text-align:center;display:grid;justify-items:center;color:var(--muted);gap:12px}.empty>svg{height:31px;width:31px;stroke-width:1.2;color:#a3b8a6}.empty strong{font-size:13px;font-weight:550;color:#56715d}.empty p{font-size:11px;max-width:330px;line-height:1.8}.empty.compact{padding:26px 20px}.bottom-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:23px;margin-top:23px}.activity{padding:0 23px 8px}.activity-item{display:flex;gap:13px;padding:12px 0;position:relative}.activity-icon{display:flex;align-items:center;justify-content:center;background:#eff5eb;color:#6f9973;border-radius:50%;width:29px;height:29px;flex-shrink:0}.activity-icon .icon{width:14px;height:14px}.activity-item strong{font-size:11px;font-weight:500;display:block;line-height:1.6;color:#54695b}.activity-item p{font-size:10px;line-height:1.7;color:#91a092;margin-top:3px}.activity-item time{margin-left:auto;white-space:nowrap;font-size:9px;color:#9ba69d;padding-top:5px}.plan-strip{background:#eff4e8;border:1px solid #e1e9d5;border-radius:10px;padding:23px;display:flex;flex-direction:column;justify-content:space-between}.plan-strip .eyebrow{color:#7b8f62;font-size:9px}.plan-strip h2{font-size:20px;line-height:1.5;font-weight:550;color:#34533d}.plan-strip p{font-size:11px;color:#839377;margin-top:8px;line-height:1.8}.plan-prices{display:flex;gap:25px;margin-top:23px;border-top:1px solid #dce5cf;padding-top:17px}.plan-prices strong{font-size:19px;font-weight:550;color:#405e42}.plan-prices span{font-size:10px;color:#8a997c;display:block;margin-top:5px}.footer{margin-top:30px;padding-top:18px;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:#9ca89e;font-size:9px;letter-spacing:.2px}.footer a{color:#6b8672}.back{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:#768b7a;margin-bottom:18px}.customer-title{display:flex;align-items:center;gap:16px}.customer-title .avatar{width:52px;height:52px;font-size:17px;background:#e5eedc;color:#567b4a}.detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:23px}.detail-main{display:grid;gap:22px;align-content:start}.detail-side{display:grid;gap:20px;align-content:start}.detail-tabs{border-bottom:1px solid var(--line);margin-bottom:22px;padding-bottom:12px;gap:15px}.detail-tabs .tab{font-size:12px}.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px 30px}.info-item label{display:block;font-size:10px;color:#91a08f;margin-bottom:7px}.info-item p{font-size:12px;color:#48604d;line-height:1.7;overflow-wrap:anywhere}.info-item.full{grid-column:1/-1}.note-box{padding:15px;background:#fafbf6;border:1px solid #eaf0e0;border-radius:7px;font-size:12px;line-height:1.8;color:#738365;white-space:pre-wrap}.access-card{background:#163c31;color:#edf5e6;border:0}.access-card .card-head{padding-bottom:10px}.access-card h2{font-size:14px}.access-card .badge{background:#35584a;color:#d9e8bd}.access-card .access-date{font-size:25px;font-weight:500;letter-spacing:-.8px;margin:10px 0}.access-card p{color:#a8c0a8;font-size:11px;line-height:1.7}.access-card .btn{width:100%;margin-top:20px;background:#d9f59b;color:#2a4a28;border:0}.kv{display:flex;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted)}.kv:last-child{border:0}.kv strong{font-weight:550;color:#3c5440;text-align:right}.notice{padding:14px 17px;display:flex;align-items:flex-start;gap:10px;background:#fff8eb;color:#9f7e41;border:1px solid #f1e6ce;border-radius:8px;font-size:11px;line-height:1.8;margin-bottom:20px}.notice.green{background:#edf5eb;border-color:#dbe8d4;color:#567c49}.notice.red{background:#fff3f0;border-color:#f1dbd4;color:#a65b4d}.notice p{flex:1}.notice .icon{margin-top:2px;width:17px;height:17px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:23px}.setting-card .card-body p{font-size:12px;line-height:1.9;color:var(--muted)}.connection{display:flex;gap:12px;align-items:center;margin-bottom:18px}.connection-icon{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:#edf4ea;color:#567a4a}.connection h2{font-size:15px}.connection p{margin-top:5px}.schedules{display:grid;gap:12px;margin:18px 0}.schedule{display:flex;justify-content:space-between;gap:15px;background:#f7f9f4;padding:13px;border-radius:7px;font-size:11px;color:#74866c}.schedule strong{color:#526a4a;font-weight:550}.message-card{padding:20px 23px;border-top:1px solid var(--line)}.message-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;font-size:12px}.message-card p{font-size:12px;line-height:1.9;color:#76856f;white-space:pre-wrap}.message-card small{color:#94a08e;display:block;margin-top:12px}.message-meta{display:flex;justify-content:space-between;align-items:center}.login-screen{display:grid;grid-template-columns:1fr 1fr;min-height:100vh;background:#fff}.login-story{background:#102c2b;color:#eaf4e6;padding:55px 65px;display:flex;flex-direction:column;position:relative;overflow:hidden}.login-story:after{content:'';position:absolute;width:560px;height:560px;border:1px solid #52726233;border-radius:50%;right:-260px;bottom:-100px;box-shadow:0 0 0 70px #52726208,0 0 0 140px #52726206}.login-story .brand{padding:0}.login-copy{margin:auto 0;position:relative;z-index:1;max-width:480px;padding:90px 0}.login-copy .eyebrow{color:#bad584;font-size:11px}.login-copy h1{font-size:48px;font-weight:500;letter-spacing:-2px;line-height:1.2;margin:22px 0}.login-copy h1 em{font-style:normal;color:#d9f59b}.login-copy p{font-size:14px;line-height:1.9;color:#94ada0;max-width:370px}.login-points{display:flex;gap:22px;margin-top:35px;font-size:11px;color:#bbd0b8}.login-points span{display:flex;gap:6px;align-items:center}.login-points svg{width:14px;height:14px;color:#d9f59b}.login-story footer{font-size:11px;color:#6e9680}.login-form-wrap{display:flex;align-items:center;justify-content:center;padding:45px}.login-form{width:100%;max-width:355px}.login-form h2{font-size:29px;letter-spacing:-1px}.login-form .subtitle{font-size:13px;margin:13px 0 33px}.login-form .btn{width:100%;margin-top:5px;min-height:44px}.login-note{text-align:center;font-size:10px;color:#99a493;margin-top:25px;display:flex;justify-content:center;align-items:center;gap:6px}.login-note svg{width:13px;height:13px}label.field{display:block;font-size:11px;color:#64755d;font-weight:500;margin-bottom:17px}.field input,.field select,.field textarea{display:block;width:100%;border:1px solid #dfe6da;border-radius:7px;background:white;padding:11px 12px;color:#36502f;font-size:12px;outline:none;margin-top:8px;min-height:41px}.field input:focus,.field select:focus,.field textarea:focus{border-color:#6e9c67;box-shadow:0 0 0 3px #6e9c6714}.field input::placeholder,.field textarea::placeholder{color:#a4ad9e}.field small{display:block;font-size:10px;color:#96a18e;line-height:1.6;margin-top:6px;font-weight:400}.field textarea{resize:vertical;min-height:85px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-section{margin:6px 0 20px;padding-bottom:12px;border-bottom:1px solid var(--line);font-size:10px;text-transform:uppercase;letter-spacing:1px;color:#85947d}.check{display:flex;align-items:flex-start;gap:10px;font-size:11px;line-height:1.7;color:#697a60;margin:14px 0;cursor:pointer}.check input{accent-color:var(--green);margin:3px 0 0;width:15px;height:15px}.check small{display:block;font-size:10px;color:#98a18e}.form-error{background:#fff0ee;color:#ac5b4f;border-radius:6px;padding:11px 13px;font-size:11px;line-height:1.7;margin-bottom:15px}.form-error:empty{display:none}dialog{border:1px solid var(--line);border-radius:14px;width:min(590px,calc(100vw - 32px));max-height:90vh;padding:0;color:var(--ink);box-shadow:0 30px 100px #102c2b40;background:#fff}dialog::backdrop{background:#102c2b80;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;padding:24px 27px 20px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:2}.modal-head h2{font-size:20px;letter-spacing:-.7px}.modal-head p{font-size:11px;line-height:1.7;color:#8a9882;margin-top:7px}.modal-body{padding:24px 27px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.plan-choice{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:20px}.choice{display:block;cursor:pointer;border:1px solid var(--line);border-radius:8px;padding:17px;background:#fff}.choice:has(input:checked){border-color:#6b965f;background:#f2f7ed}.choice input{accent-color:var(--green);float:right}.choice strong{display:block;font-size:13px;margin-bottom:7px}.choice span{font-size:11px;color:#819374}.installment-row{display:grid;grid-template-columns:1fr 1.3fr;gap:12px;padding:12px;background:#f8faf5;border-radius:7px;margin-bottom:8px}.installment-row .field{margin-bottom:0}.total-line{display:flex;justify-content:space-between;padding:14px 0;font-size:12px;color:#78866d}.total-line strong{font-size:17px;color:#35552c}.result-banner{margin:15px 0;padding:15px;border-radius:8px;background:#eff5e7;color:#567740;font-size:12px;line-height:1.8}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%) translateY(100px);background:#193d2c;color:#eef7e4;border-radius:8px;padding:13px 22px;box-shadow:0 6px 25px #193d2c33;font-size:12px;z-index:100;opacity:0;transition:.2s;max-width:90vw}#toast.visible{opacity:1;transform:translateX(-50%) translateY(0)}.menu-toggle{display:none}.loading{padding:80px 20px;text-align:center;color:#829377;font-size:12px}.spinner{width:21px;height:21px;border:2px solid #e2ebdc;border-top-color:#468150;border-radius:50%;animation:spin .8s linear infinite;margin:0 auto 15px}@keyframes spin{to{transform:rotate(360deg)}}.copy-input{display:flex;gap:8px;margin-top:12px}.copy-input input{width:100%;min-width:0;border:1px solid var(--line);padding:9px;border-radius:6px;font-size:11px}.nowrap{white-space:nowrap}.muted{color:var(--muted)}.truncate{max-width:230px;overflow:hidden;text-overflow:ellipsis}.mobile-overlay{display:none}.label-tip{font-size:10px;color:#96a38e;margin:15px 0;line-height:1.8}.list-select{display:grid;gap:9px;max-height:330px;overflow:auto}.select-person{display:flex;text-align:left;align-items:center;gap:12px;border:1px solid var(--line);background:#fff;padding:12px;border-radius:7px}.select-person:hover{background:#f5f9ef}.select-person strong{font-size:12px;font-weight:550;display:block}.select-person small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.error-screen{padding:90px 25px;text-align:center;display:grid;gap:15px;justify-items:center}.workflow-row{display:flex;justify-content:space-between;gap:15px;padding:15px 0;border-bottom:1px solid var(--line);font-size:12px}.health-status{display:flex;align-items:center;gap:6px}.health-status .icon{height:13px;width:13px}.outstanding{color:#ac7946!important}
@media(min-width:1700px){.content{padding-top:45px}.stats{gap:23px}.stat{padding:25px}.grid-main{grid-template-columns:1.8fr 1fr}.hero-chart{height:190px}}
@media(max-width:1200px){.layout{grid-template-columns:210px minmax(0,1fr)}.sidebar{width:210px;padding-inline:12px}.content{padding:27px 25px}.topbar{padding:0 25px}.grid-main{grid-template-columns:1.2fr 1fr}.stats{gap:12px}.stat{padding:17px}.stat-number{font-size:27px}.detail-grid{grid-template-columns:minmax(0,1fr) 260px}.date{display:none}th,td{padding-left:18px;padding-right:18px}.login-story{padding:40px}.login-copy h1{font-size:41px}}
@media(max-width:980px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-main,.bottom-grid,.detail-grid,.settings-grid{grid-template-columns:1fr}.detail-side{grid-template-columns:1fr 1fr;order:-1}.page-heading{align-items:flex-start}.page-heading>.actions{justify-content:flex-end}.attention-row{padding:16px 0}.login-screen{grid-template-columns:.9fr 1fr}.login-story{padding:35px}.login-copy h1{font-size:35px}.login-points{flex-direction:column;gap:12px}.filters{align-items:flex-start;flex-direction:column}.input-search,.input-search input{width:100%}.detail-side .access-card{height:100%}}
@media(max-width:760px){.layout{display:block}.sidebar{transform:translateX(-100%);transition:transform .2s;width:238px}.sidebar.open{transform:translateX(0)}.sidebar.open~.mobile-overlay{display:block;position:fixed;inset:0;background:#102c2b66;z-index:19}.main{width:100%}.menu-toggle{display:inline-flex}.topbar{height:62px;padding:0 18px}.crumb{font-size:11px}.search-trigger span,.search-trigger kbd{display:none}.top-actions{gap:9px}.content{padding:24px 18px}.page-heading{margin-bottom:22px;flex-wrap:wrap;gap:16px}h1{font-size:26px}.page-heading>.actions{justify-content:flex-start}.btn{padding:10px 13px}.stats{gap:11px;margin-bottom:18px}.stat{padding:16px}.stat-number{font-size:27px}.stat-label{font-size:10px}.stat-note{font-size:9px}.card-head{padding:20px 18px 16px}.card-body{padding:0 18px 20px}.grid-main,.bottom-grid,.detail-main{gap:18px}.attention{padding:0 18px 12px}.hero-chart{gap:8px}.filters{padding:0 18px 15px}.tab{padding:8px 9px}.section-heading{margin-top:22px}.footer{line-height:1.8;gap:15px;align-items:flex-start}.footer span:last-child{text-align:right}.login-screen{display:block}.login-story{padding:25px}.login-copy{padding:34px 0 15px;max-width:100%}.login-copy h1{font-size:30px;letter-spacing:-1px;max-width:350px;margin:10px 0}.login-copy p,.login-story footer,.login-points,.login-copy .eyebrow{display:none}.login-form-wrap{padding:35px 25px}.login-form{max-width:430px}.login-form h2{font-size:24px}.detail-side{grid-template-columns:1fr}.info-grid{gap:18px}.modal-head{padding:21px}.modal-body{padding:21px}.customer-title h1{font-size:23px}.detail-tabs{gap:4px}.activity-item time{font-size:8px}.settings-grid{gap:18px}}
.spaced{margin-top:20px}
@media(max-width:760px){.customer-table,.customer-table tbody{display:block;white-space:normal}.customer-table thead{display:none}.customer-table tr{display:grid;grid-template-columns:1fr 1fr;padding:17px 18px;gap:15px 10px;border-top:1px solid var(--line)}.customer-table td{display:block;padding:0;border:0;font-size:12px}.customer-table td:first-child{grid-column:1/-1;margin-bottom:5px}.customer-table td:last-child{display:none}.customer-table td[data-label]::before{content:attr(data-label);display:block;font-size:9px;letter-spacing:.4px;color:#8b998d;margin-bottom:6px}.customer-table td strong{font-size:13px}.customer-table td small{font-size:11px;overflow-wrap:anywhere}.customer-table .badge{font-size:11px}.customer-table td[data-label="n8n access"]{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Keep the supplied logo integrated into the original green palette. */
.brand{flex-wrap:wrap;gap:12px}
.brand img{width:162px;height:110px;object-fit:cover;border-radius:0;filter:none;mix-blend-mode:normal}
.brand-sub{margin:12px 0 34px 12px}
.login-story .brand img{width:190px;height:130px}
@media(max-width:760px){.login-story .brand img{width:154px;height:105px}}

/* The transient confirmation toast must never cover form controls or native menus. */
#toast{pointer-events:none}
select{cursor:pointer}

/* Consistent type scale and contrast for the original green theme. */
:root{--ink:#172b2b;--muted:#53645e;--line:#dbe3de;--red:#a13333;--amber:#815411;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:16px}
body{line-height:1.5}
h1{font-size:28px;font-weight:700;line-height:1.25;letter-spacing:-.5px}
h2{font-size:19px;font-weight:600;line-height:1.4;letter-spacing:-.2px}
h3{font-size:16px;font-weight:600;line-height:1.4}
small{font-size:13px;line-height:1.5}
.eyebrow,.form-section{font-size:12px;font-weight:700;letter-spacing:1px;color:#35624e}
.subtitle,.card-head p{font-size:14px;line-height:1.6;color:var(--muted)}
.sidebar{overflow-y:auto;padding-top:24px}
.brand-sub,.nav-label{font-size:12px;letter-spacing:1.2px;color:#b5cbc0}
.brand-sub{margin-bottom:26px}
.nav a{font-size:15px;font-weight:500;color:#d0dfd7;min-height:46px}
.nav a.active{font-weight:600}
.nav a .count{font-size:12px;line-height:1.4}
.sidebar-bottom{padding-top:32px}
.workspace-card strong,.profile strong{font-size:14px;font-weight:600;color:#f1f6ed}
.workspace-card p,.profile small{font-size:13px;color:#bed0c2}
.profile{padding-inline:0;gap:8px}.profile>div{min-width:0}
.profile .icon-button{color:#bed0c2;flex-shrink:0}
.profile .icon-button:hover{background:#294940}
.avatar{font-size:13px}
.crumb,.search-trigger,.date{font-size:14px;color:var(--muted)}
.crumb strong{font-weight:600}
.search-trigger kbd{font-size:12px;color:var(--muted)}
.icon-button{width:40px;height:40px}
.btn{font-size:14px;font-weight:600;line-height:1.4;min-height:42px;color:#344d42}
.btn.primary,.btn.dark{color:#fff}
.btn.small{font-size:13px;min-height:36px;padding:8px 12px}
.btn.link{color:var(--green)}
.stat-label{font-size:14px;font-weight:500;color:#435a4f;gap:8px;align-items:flex-start}
.stat-label .icon{flex-shrink:0;margin-top:3px;color:#536e5d}
.stat-number{font-size:32px;font-weight:700;letter-spacing:-.6px;line-height:1.2}
.stat-number .currency{font-size:14px;font-weight:500;color:var(--muted)}
.stat-note{font-size:13px;line-height:1.5;color:var(--muted);align-items:flex-start}
.stat-note b{font-weight:600}
.pill{font-size:12px;color:#52634f;line-height:1.4}
.chart-labels,.legend,.chart-summary div{font-size:13px;color:var(--muted)}
.chart-summary{flex-wrap:wrap;gap:16px 28px}
.chart-summary strong{font-size:19px;font-weight:600;line-height:1.4}
.attention-row{align-items:flex-start;gap:12px}
.attention-row strong{font-size:15px;font-weight:600}
.attention-row p{font-size:13px;line-height:1.5}
.attention-row .btn{flex-shrink:0}
.section-heading h2{font-size:19px}.section-heading span{font-size:13px}
.filters{flex-wrap:wrap;align-items:center}
.tab,.detail-tabs .tab{font-size:14px;line-height:1.4;color:#52634f;min-height:40px}
.tab.active{color:#285434;font-weight:600}
.tab span{font-size:13px;color:#52634f}
.input-search input{font-size:15px;min-height:42px;color:var(--ink);padding-top:10px;padding-bottom:10px}
.input-search svg{top:13px;color:#607366}
th{font-size:12px;font-weight:600;letter-spacing:.5px;color:#465d50;background:#f3f6f2;padding:13px 16px}
td{font-size:14px;line-height:1.5;color:#42584b;padding:17px 16px}
td strong{font-size:15px;font-weight:600;color:var(--ink)}
td small{font-size:13px;line-height:1.5;color:var(--muted);margin-top:5px}
td.money{font-weight:600}
.customer-table td:first-child{min-width:230px;max-width:300px;white-space:normal}
.customer-table .person>div{min-width:0;overflow-wrap:anywhere}
.badge,.customer-table .badge{font-size:12px;font-weight:600;line-height:1.35;padding:5px 9px;background:#edf1ed;color:#4c6154}
.badge.active,.badge.sent,.badge.enabled{background:#e8f3e9;color:#28603a}
.badge.trial,.badge.queued,.badge.pending{background:#fff3d5;color:#795410}
.badge.expired,.badge.error,.badge.overdue,.badge.uncertain{background:#fdece7;color:#943f30}
.badge.paused,.badge.suspended{background:#efebf5;color:#665080}
.table-footer{font-size:13px;color:var(--muted);gap:16px}
.empty strong{font-size:16px;font-weight:600;color:#34543c}
.empty p{font-size:14px;line-height:1.6;max-width:420px}
.activity-item{flex-wrap:wrap;gap:8px 12px}
.activity-item>div{min-width:0;flex:1}
.activity-item strong{font-size:14px;font-weight:500;line-height:1.6;color:#304c3c}
.activity-item p,.activity-item time{font-size:13px;line-height:1.5;color:var(--muted)}
.activity-item time{padding-top:0}
.plan-strip .eyebrow{font-size:12px;color:#4a6139}
.plan-strip h2{font-size:22px;font-weight:600;line-height:1.35}
.plan-strip p,.plan-prices span{font-size:14px;color:#4f6145;line-height:1.6}
.plan-prices{flex-wrap:wrap;gap:16px 24px}
.plan-prices strong{font-size:22px;font-weight:600}
.footer{font-size:12px;line-height:1.6;color:var(--muted);gap:20px}
.footer a{color:#3a6046}
.back{font-size:14px;color:#405f49;min-height:36px}
.customer-title h1{font-size:28px;overflow-wrap:anywhere}
.info-item label{font-size:13px;font-weight:600;color:var(--muted)}
.info-item p,.note-box{font-size:15px;line-height:1.65;color:#304b37}
.access-card h2{font-size:18px;color:#f1f6ea}
.access-card .access-date{font-size:26px;font-weight:600;line-height:1.3;letter-spacing:-.3px}
.access-card p{font-size:14px;line-height:1.6;color:#c6d9bd}
.kv{font-size:14px;line-height:1.55;color:var(--muted);flex-wrap:wrap}
.kv strong{font-weight:600;color:#2f4935;overflow-wrap:anywhere}
.notice{font-size:14px;line-height:1.6;color:#785518}
.notice.green{color:#365d2c}.notice.red{color:#913e2f}
.setting-card .card-body p{font-size:15px;line-height:1.65;color:var(--muted)}
.setting-card .notice p{color:inherit}
.connection h2{font-size:18px}
.schedule{font-size:14px;color:#4c6241;flex-wrap:wrap}
.schedule strong{font-weight:600;color:#354f2d}
.message-top{font-size:15px;gap:12px;flex-wrap:wrap}
.message-card p{font-size:15px;line-height:1.7;color:#425b37}
.message-card small{font-size:13px;color:var(--muted)}
.message-meta{gap:12px;flex-wrap:wrap}
.login-copy .eyebrow{font-size:13px}
.login-copy h1{font-size:40px;font-weight:600;letter-spacing:-.7px;line-height:1.2}
.login-copy p{font-size:16px;line-height:1.7;color:#c0d3c5}
.login-points{font-size:14px;line-height:1.6;color:#d0dfc7;flex-wrap:wrap;gap:12px 20px}
.login-story footer{font-size:13px;color:#b6cebd}
.login-form{max-width:390px}
.login-form h2{font-size:28px;font-weight:700;letter-spacing:-.5px}
.login-form .subtitle{font-size:15px}
.login-note{font-size:13px;color:var(--muted);line-height:1.6}
label.field{font-size:14px;font-weight:600;color:#344e39}
.field input,.field select,.field textarea{font-size:16px;line-height:1.5;color:var(--ink);min-height:46px;border-color:#b7c5b7}
.field input::placeholder,.field textarea::placeholder,.input-search input::placeholder{color:#62715e;opacity:1}
.field small,.check small,.label-tip{font-size:13px;line-height:1.6;color:var(--muted)}
.check{font-size:14px;color:#344e39;line-height:1.6}
.check input{width:18px;height:18px;flex-shrink:0;margin-top:2px}
.form-error{font-size:14px;line-height:1.6;color:#953c2e}
.modal-head h2{font-size:22px;line-height:1.35;letter-spacing:-.3px}
.modal-head p{font-size:14px;color:var(--muted);line-height:1.6}
.choice strong{font-size:16px;font-weight:600}
.choice span{font-size:14px;color:var(--muted)}
.total-line{font-size:14px;color:var(--muted)}
.total-line strong{font-size:20px;font-weight:600}
.result-banner{font-size:14px;color:#36552c;line-height:1.6}
#toast{font-size:14px;line-height:1.5}
.loading{font-size:15px;color:var(--muted)}
.copy-input input{font-size:14px;color:var(--ink);min-height:42px}
.select-person strong{font-size:15px;font-weight:600}
.select-person small{font-size:13px}
.workflow-row{font-size:14px;line-height:1.6;flex-wrap:wrap}
.outstanding{color:#805119!important}
@media(max-width:1200px){
 .layout{grid-template-columns:238px minmax(0,1fr)}.sidebar{width:238px;padding-inline:18px}
 .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .grid-main,.bottom-grid,.detail-grid,.settings-grid{grid-template-columns:1fr}
 .detail-side{grid-template-columns:1fr 1fr;order:-1}
 .page-heading{flex-wrap:wrap;align-items:flex-start}
}
@media(max-width:760px){
 .layout{display:block}.sidebar{width:260px}.main{width:100%}
 h1,.customer-title h1{font-size:25px;letter-spacing:-.3px}
 h2,.section-heading h2{font-size:18px}
 .crumb{font-size:13px;gap:6px}.crumb>svg{width:14px}
 .topbar{padding-inline:14px}.top-actions{gap:2px}
 .stat{padding:16px 14px}.stat-label{font-size:13px}.stat-number{font-size:28px}.stat-note{font-size:13px}
 .stat-number .currency{font-size:12px}
 .card-head{flex-wrap:wrap;align-items:flex-start}
 .attention-row{flex-wrap:wrap}.attention-row>div{flex:1;min-width:150px}
 .attention-row .btn{margin-left:47px}
 .activity-item time{font-size:13px;margin-left:41px}
 .detail-side,.info-grid{grid-template-columns:1fr}
 .customer-table td{font-size:14px}
 .customer-table td:first-child{max-width:none;min-width:0}
 .customer-table td strong{font-size:15px}
 .customer-table td small{font-size:13px}
 .customer-table td[data-label]::before{font-size:12px;font-weight:600;letter-spacing:0;color:var(--muted)}
 .customer-table .badge{font-size:12px}
 .footer{flex-direction:column;gap:8px}.footer span:last-child{text-align:left}
 .table-footer{flex-wrap:wrap}
 .login-copy h1{font-size:30px}.login-form h2{font-size:26px}
 .form-row,.installment-row{grid-template-columns:1fr}
 .modal-actions{flex-wrap:wrap}.modal-head .icon-button{flex-shrink:0}
}
@media(max-width:360px){.stats{grid-template-columns:1fr}.customer-table tr{grid-template-columns:1fr}.customer-table td:first-child{grid-column:auto}}
.customer-title .avatar{color:#3c6331}
@media(max-width:760px){
 .crumb{min-width:0}.crumb strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .crumb .icon-button{flex-shrink:0}.top-actions{flex-shrink:0}.topbar{gap:8px}
}
@media(max-width:360px){.search-trigger{display:none}}

/* Directory layout: the existing green palette, with a denser working table. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
[hidden]{display:none!important}
.customers-heading{margin-bottom:24px;align-items:center}
.customers-heading h1{font-size:28px;letter-spacing:-.5px}
.customers-heading .subtitle{margin-top:7px}
.customer-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}
.customer-metric{display:flex;align-items:flex-start;justify-content:space-between;padding:20px 22px;background:var(--surface);border:1px solid var(--line);border-radius:10px;gap:12px}
.customer-metric>div{display:grid;gap:10px}
.customer-metric span{font-size:13px;font-weight:500;color:var(--muted)}
.customer-metric strong{font-size:28px;line-height:1.2;letter-spacing:-.5px;font-weight:650;font-variant-numeric:tabular-nums}
.customer-metric .metric-icon{display:flex;align-items:center;justify-content:center;width:34px;height:34px;background:#edf4ee;border-radius:8px;color:var(--green);flex-shrink:0}
.metric-icon .icon{width:17px;height:17px}
.customer-filters{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:18px 20px 20px;margin-bottom:24px}
.status-tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:20px}
.status-tab{display:inline-flex;align-items:center;gap:8px;background:transparent;border:1px solid var(--line);color:var(--muted);border-radius:7px;padding:7px 11px;min-height:36px;font-size:13px;font-weight:550;white-space:nowrap;transition:background .15s,color .15s,border-color .15s}
.status-tab span{display:inline-flex;align-items:center;justify-content:center;min-width:21px;height:20px;padding:0 5px;border-radius:4px;background:#edf1ed;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
.status-tab:hover{background:#f3f7f2;border-color:#b5cabc;color:var(--green)}
.status-tab.active{background:#edf5eb;border-color:#85ac94;color:#20533e}
.status-tab.active span{background:#dbeadb;color:#20533e}
.customer-filter-fields{display:grid;grid-template-columns:minmax(230px,1.65fr) minmax(150px,1fr) minmax(155px,1fr) auto;gap:16px;align-items:end}
.customer-filter-fields label{font-size:13px;font-weight:600;color:var(--ink);display:block;min-width:0}
.customer-filter-fields .input-search{margin-top:7px;width:100%}
.customer-filter-fields input,.customer-filter-fields select{width:100%;height:42px;min-height:42px;border:1px solid #bac9c0;border-radius:6px;background:#fff;color:var(--ink);font-size:14px;font-weight:400;line-height:1.5;outline:none}
.customer-filter-fields select{padding:8px 30px 8px 12px;margin-top:7px}
.customer-filter-fields input{padding-left:36px}
.customer-filter-fields input::placeholder{color:#5a6a61}
.customer-filter-fields select:focus,.page-size select:focus{border-color:var(--green);outline:2px solid #76bea7;outline-offset:2px}
.export-customers{height:42px;white-space:nowrap;font-size:13px;box-shadow:none}
.customer-directory{box-shadow:none}
.customer-directory>.card-head{padding:21px 22px 19px;align-items:center;min-height:90px}
.directory-title{display:flex;align-items:center;gap:10px}
.directory-title h2{font-size:18px;font-weight:650}
.directory-count{background:#edf1ed;border-radius:5px;min-width:26px;padding:2px 7px;text-align:center;font-size:12px;font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums}
.customer-directory .card-head p{font-size:13px;margin-top:5px}
.directory-scroll:focus-visible{outline:2px solid #76bea7;outline-offset:-2px}
.directory-table{table-layout:fixed;min-width:930px}
.directory-table th{font-size:11px;letter-spacing:.45px;padding:12px 16px;background:#f3f6f2}
.directory-table th:first-child{width:22%;padding-left:22px}
.directory-table th:nth-child(2){width:23%}
.directory-table th:nth-child(3){width:13%}
.directory-table th:nth-child(4){width:15%}
.directory-table th:nth-child(5){width:12%}
.directory-table th:last-child{width:144px;padding-right:22px}
.directory-table td{padding:17px 16px;vertical-align:middle;font-size:13px;white-space:normal}
.directory-table td:first-child{padding-left:22px;min-width:0;max-width:none}
.directory-table tbody tr{transition:background .15s}
.directory-table tbody tr:hover{background:#f8faf7}
.directory-table .person{gap:11px}
.directory-table .avatar{width:36px;height:36px;flex-shrink:0;font-size:12px;background:#edf3e9;color:#3c634b}
.customer-name{display:inline-block;font-size:14px;line-height:1.45;font-weight:650;color:var(--ink);overflow-wrap:anywhere;text-decoration-thickness:1px;text-underline-offset:3px}
.customer-name:hover{text-decoration:underline;color:var(--green)}
.directory-table small{font-size:12px;font-weight:400;line-height:1.5;margin-top:4px;color:var(--muted)}
.contact-cell>span{display:block;font-size:13px;color:#354d42;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.plan-name{display:block;font-size:13px;margin-bottom:6px;color:var(--ink);font-weight:500}
.directory-table .badge{font-size:11px;line-height:1.3;padding:3px 7px;border-radius:4px}
.expiry-date{font-size:13px;color:var(--ink);font-variant-numeric:tabular-nums}
.directory-table .period-ended{color:#943f30}
.directory-table .amount-column{text-align:right;white-space:nowrap}
.directory-table .amount-column strong{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
.directory-table .actions-column{text-align:right}
.directory-table .row-actions-cell{padding-right:18px}
.row-actions{display:flex;align-items:center;justify-content:flex-end;gap:2px}
.row-action{display:inline-flex;align-items:center;justify-content:center;width:30px;height:34px;flex-shrink:0;background:transparent;border:1px solid transparent;border-radius:5px;color:#536a5d;transition:background .15s,color .15s,border-color .15s}
.row-action .icon{width:16px;height:16px}
.row-action:hover{background:#eaf2e7;border-color:#d4e2d5;color:#18553e}
.row-action:disabled{cursor:wait;opacity:.4}
.pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding:15px 22px;font-size:12px;color:var(--muted);flex-wrap:wrap}
.page-range{font-variant-numeric:tabular-nums;margin-right:auto}
.page-size{display:flex;align-items:center;gap:9px;font-size:12px;white-space:nowrap}
.page-size select{height:34px;padding:4px 24px 4px 9px;background:#fff;color:var(--ink);border:1px solid #bac9c0;border-radius:5px;font-size:12px}
.pagination nav{display:flex;align-items:center;gap:5px}
.page-button{display:inline-flex;align-items:center;justify-content:center;background:transparent;color:#405c4c;min-width:32px;height:34px;border:1px solid transparent;border-radius:5px;font-size:13px;font-weight:550;transition:background .15s}
.page-button .icon{width:15px;height:15px}
.page-button:hover:not(:disabled){background:#edf4eb;border-color:#d4e2d5}
.page-button.current{background:#e6f0e2;border-color:#cbdcc8;color:#205137}
.page-button:disabled{opacity:.35;cursor:default}
.page-gap{min-width:20px;text-align:center}
@media(max-width:1350px){
 .customer-filter-fields{gap:12px}
 .customer-summary{gap:12px}
 .customer-metric{padding:17px}
}
@media(max-width:1100px){
 .customer-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .customer-filter-fields{grid-template-columns:1fr 1fr}
 .directory-search{grid-column:1/-1}
 .export-customers{grid-column:2}
}
@media(max-width:760px){
 .customers-heading{gap:18px}
 .customers-heading h1{font-size:25px}
 .customers-heading .subtitle{font-size:14px;max-width:32ch}
 .customer-summary{gap:10px;margin-bottom:18px}
 .customer-metric{padding:16px 14px;gap:6px}
 .customer-metric span{font-size:12px}
 .customer-metric strong{font-size:25px}
 .customer-metric .metric-icon{width:28px;height:28px}
 .customer-filters{padding:16px;margin-bottom:18px}
 .status-tabs{gap:7px;margin-bottom:17px}
 .status-tab{min-height:40px;padding:7px 9px;font-size:12px;gap:6px}
 .customer-filter-fields{gap:14px 12px}
 .customer-filter-fields input,.customer-filter-fields select{font-size:16px;height:44px}
 .customer-filter-fields label{font-size:12px}
 .customer-filter-fields .input-search svg{top:14px}
 .export-customers{grid-column:1/-1;justify-self:stretch;min-height:44px}
 .customer-directory>.card-head{padding:19px 16px;gap:10px}
 .directory-title h2{font-size:17px}
 .directory-scroll{overflow:visible}
 .directory-table{min-width:0;table-layout:auto}
 .directory-table tr{padding:18px 16px;gap:15px 12px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .directory-table td,.directory-table td:first-child{padding:0;min-width:0}
 .directory-table td:first-child{margin:0}
 .directory-table td.contact-cell{grid-column:1/-1}
 .directory-table td.contact-cell::before{display:none}
 .contact-cell>span{white-space:normal;overflow-wrap:anywhere}
 .directory-table .customer-name{font-size:15px}
 .directory-table td small{font-size:12px}
 .directory-table td[data-label]::before{font-size:11px;font-weight:500;margin-bottom:6px}
 .directory-table .amount-column{text-align:left;white-space:normal}
 .directory-table td.row-actions-cell{display:block;padding:0;align-self:end;grid-column:2}
 .row-actions{gap:2px}
 .row-action{width:36px;height:40px;border-color:var(--line);background:#fff}
 .row-action .icon{width:16px;height:16px}
 .pagination{padding:16px;gap:14px 8px}
 .page-range{font-size:12px}
 .page-size{font-size:11px;gap:6px}
 .pagination nav{width:100%;justify-content:center;border-top:1px solid var(--line);padding-top:12px}
 .page-button{min-width:40px;height:40px}
}
@media(max-width:380px){
 .customer-metric .metric-icon{display:none}
 .directory-table tr{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .directory-table td:first-child{grid-column:1/-1}
 .directory-table td.row-actions-cell{grid-column:1/-1}
 .row-actions{justify-content:flex-start;gap:8px}
 .page-size{white-space:normal}
}

/* Shared record tables and payment form. */
.records-table{width:100%;min-width:650px;border-collapse:collapse}
.records-table th{background:#f3f6f2;color:var(--muted);font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.35px;padding:14px 24px;white-space:nowrap}
.records-table td{padding:18px 24px;font-size:13px;line-height:1.6;vertical-align:middle;border-bottom:1px solid var(--line);white-space:normal}
.records-table td strong{font-size:13px;font-weight:550;display:block}
.records-table td small{display:block;color:var(--muted);font-size:12px;margin-top:4px;max-width:50ch;overflow-wrap:anywhere}
.records-table .numeric{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.records-table tbody tr:last-child td{border-bottom:0}
.records-table tbody tr:hover{background:transparent}
.records-card .table-wrap{overflow:auto}
.history-empty{padding:32px 24px;color:var(--muted);font-size:13px;line-height:1.6;border-top:1px solid var(--line)}
.plan-options{display:flex;gap:12px;margin:0 0 24px}
.plan-option{flex:1;min-width:0;display:flex;align-items:center;gap:9px;padding:16px 14px;border:1px solid var(--line);border-radius:8px;cursor:pointer}
.plan-option input{accent-color:var(--green);width:16px;height:16px;flex-shrink:0}
.plan-option span{flex:1}
.plan-option strong{display:block;font-size:14px;font-weight:600}
.plan-option small{display:block;margin-top:6px;font-size:11px;color:var(--muted);line-height:1.5}
.plan-option>.icon{display:none;width:16px;height:16px;flex-shrink:0}
.plan-option:has(input:checked){border-color:var(--green);background:#f3f7f2}
.plan-option:has(input:checked)>.icon{display:block;color:var(--green)}
.payment-access-form output{display:flex;align-items:center;min-height:44px;padding:10px 12px;background:#f3f6f2;border:1px solid var(--line);border-radius:6px;font-size:13px;font-weight:500;margin-top:8px;line-height:1.6}
.form-hint{font-size:12px;line-height:1.7;color:var(--muted);margin:-4px 0 20px}
.payment-preview{background:#f3f7f2;border:1px solid #d4e2d5;border-radius:8px;padding:18px 20px;margin:18px 0 14px}
.payment-preview dl{display:grid;gap:12px;margin:0}
.payment-preview dl>div{display:flex;justify-content:space-between;gap:20px;font-size:13px}
.payment-preview dt{color:var(--muted)}
.payment-preview dd{margin:0;font-weight:550;font-variant-numeric:tabular-nums}
.payment-preview .preview-total{border-top:1px solid #d4e2d5;padding-top:14px;font-size:15px}
.payment-preview .preview-total dt,.payment-preview .preview-total dd{color:var(--green);font-weight:600}
.payment-preview p{font-size:12px;line-height:1.7;margin:14px 0 0;color:var(--muted)}
#modal:has(.payment-access-form){max-width:680px;width:calc(100% - 32px)}
@media(max-width:760px){
 .records-table th,.records-table td{padding:14px 18px}
 .plan-options{gap:8px;flex-wrap:wrap}
 .plan-option{padding:13px 10px;min-width:125px}
 .plan-option>.icon{display:none!important}
 .payment-preview{padding:16px}
 .form-hint{font-size:12px}
 .payment-access-form .form-row{gap:12px}
}
.records-card{min-width:0}
.payment-access-form .modal-actions{position:sticky;bottom:-28px;margin-inline:-28px;padding:16px 28px;background:var(--surface);z-index:2;box-shadow:0 -5px 12px #172b2b06}
@media(max-width:760px){.payment-access-form .modal-actions{bottom:-21px;margin-inline:-21px;padding:14px 21px}}

:root{--sidebar-width:224px;--header-height:72px}
.layout{display:grid;grid-template-columns:var(--sidebar-width) minmax(0,1fr)}
.sidebar{width:var(--sidebar-width);padding:0 14px;z-index:30;overflow-x:hidden;background:var(--sidebar);transition:width .18s ease}
.sidebar-brand{height:116px;display:flex;align-items:center;justify-content:space-between;gap:6px;flex-shrink:0}
.sidebar .brand{padding:0;display:flex;align-items:center;flex-wrap:nowrap}
.sidebar .brand img{width:110px;height:76px;object-fit:contain}
.sidebar-toggle{flex-shrink:0;color:#c3d7cb;width:30px;height:34px;border:1px solid #46635a;border-radius:6px}
.sidebar-toggle:hover{background:#23463a;color:#fff}
.nav a{gap:12px;padding:11px 13px;min-height:44px;font-size:14px;border-radius:7px;margin-bottom:5px;white-space:nowrap}
.nav a>.icon{width:18px;height:18px;flex-shrink:0}
.nav-text{flex:1}
.nav a .count{margin-left:auto;font-size:11px}
.sidebar-bottom{padding-top:24px;margin-top:auto}
.sidebar-bottom .nav{padding-bottom:13px}
.profile{padding:17px 0 20px;border-top:1px solid #37534a;gap:9px;align-items:center}
.profile .avatar{width:32px;height:32px;flex-shrink:0;font-size:12px}
.profile strong{font-size:13px;font-weight:600}
.profile small{font-size:11px;margin-top:1px}
.profile .icon-button{margin-left:auto;width:30px;height:34px}
.main{min-width:0;padding-top:var(--header-height)}
.topbar{position:fixed;top:0;left:var(--sidebar-width);right:0;height:var(--header-height);padding:0 32px;z-index:25;background:#fff;border-bottom:1px solid #cad9d0;box-shadow:0 2px 5px #102c2b09;gap:20px;transition:left .18s ease}
.crumb{gap:12px;color:var(--muted);min-width:0;font-size:14px}
.header-app{color:var(--green);font-size:16px;font-weight:700;letter-spacing:-.2px}
.header-divider{color:#9bb0a5;font-size:19px;font-weight:300}
.crumb strong{font-weight:650;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.top-actions{gap:14px;flex-shrink:0}
.search-trigger{height:38px;border:1px solid var(--line);border-radius:7px;padding:0 12px;gap:10px;font-size:13px;color:#52685b;background:#f7faf7}
.search-trigger kbd{font-size:11px;border-color:#cad9d0}
.header-avatar{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:#e6f0e2;color:#315b40;font-size:12px;font-weight:650}
.content{padding:30px 32px 40px;max-width:1720px;margin:0 auto}
.sidebar-collapsed{--sidebar-width:76px}
.sidebar-collapsed .sidebar{padding:0 10px}
.sidebar-collapsed .sidebar-brand{flex-direction:column;justify-content:center;height:116px;gap:5px}
.sidebar-collapsed .brand img{width:52px;height:44px}
.sidebar-collapsed .sidebar-toggle{height:25px;width:30px}
.sidebar-collapsed .sidebar-toggle svg{transform:rotate(180deg)}
.sidebar-collapsed .nav a{justify-content:center;padding:12px}
.sidebar-collapsed .nav-text,.sidebar-collapsed .count,.sidebar-collapsed .profile>div,.sidebar-collapsed .profile>.avatar{display:none}
.sidebar-collapsed .profile{justify-content:center}
.sidebar-collapsed .profile .icon-button{margin:0}
.directory-table{min-width:990px}
.directory-table th:last-child{width:178px}
.row-actions .row-action:last-child{color:#9b493d}
.row-actions .row-action:last-child:hover{background:#fff0eb;border-color:#f0d9d0;color:#9b3328}
.delete-summary{padding:17px;background:#f6f8f5;border-radius:8px}
.delete-summary>strong,.delete-summary>span{display:block;overflow-wrap:anywhere}
.delete-summary>strong{font-size:16px}
.delete-summary>span{font-size:13px;color:var(--muted);margin-top:3px}
.delete-summary ul{padding-left:20px;margin-bottom:0;font-size:14px;line-height:1.8;color:#3d5145}
.delete-warning{font-size:14px;line-height:1.6;color:#943f30;margin:18px 0}
.btn.danger-solid{background:#a13a31;border-color:#a13a31;color:white}
.btn.danger-solid:hover{background:#842d25;border-color:#842d25}
.btn.danger-solid:disabled{cursor:not-allowed;opacity:.45}
.badge.deleting{background:#fff3d5;color:#795410}.badge.deletion_failed{background:#fdece7;color:#943f30}
@media(max-width:1050px){
 .layout{display:block;--sidebar-width:0px}
 .sidebar,.sidebar-collapsed .sidebar{width:224px;transform:translateX(-100%);padding:0 14px;transition:transform .18s ease}
 .sidebar.open{transform:translateX(0)}
 .sidebar.open~.mobile-overlay{display:block;position:fixed;inset:0;z-index:29;background:#102c2b66}
 .sidebar-toggle{display:none}
 .sidebar-collapsed .sidebar-brand{flex-direction:row;justify-content:flex-start}
 .sidebar-collapsed .brand img{width:110px;height:76px}
 .sidebar-collapsed .nav-text,.sidebar-collapsed .count,.sidebar-collapsed .profile>div,.sidebar-collapsed .profile>.avatar{display:initial}
 .sidebar-collapsed .nav a{justify-content:flex-start}
 .sidebar-collapsed .profile .icon-button{margin-left:auto}
 .main{width:100%}
 .menu-toggle{display:inline-flex}
 .topbar{left:0;padding-inline:24px}
 .content{padding-inline:24px}
}
@media(max-width:760px){
 :root{--header-height:64px}
 .topbar{padding-inline:12px;gap:10px}
 .content{padding:23px 16px 32px}
 .crumb{gap:6px;font-size:13px}
 .header-app,.header-divider{display:none}
 .search-trigger{padding:0;border:0;background:transparent;width:34px;justify-content:center}
 .search-trigger span,.search-trigger kbd{display:none}
 .top-actions{gap:3px}
 .header-avatar{width:28px;height:28px;margin-left:5px}
 .directory-table{min-width:0}
 .directory-table td.row-actions-cell{grid-column:1/-1}
 .row-actions{justify-content:flex-start;gap:8px}
 .row-action{width:40px;height:40px}
 .pagination{padding-inline:16px}
}

/* Customer workspace. Reuses NexaFlow's shared colors, font, cards, buttons,
   badges and SVG icons; all adjustments below are scoped to this page. */
.customer-profile {
  max-width: 1400px;
  margin-inline: auto;
  color: var(--ink);
}
.customer-profile .profile-page-heading { margin-bottom: 24px; }
.customer-profile .back { gap: 8px; margin-bottom: 12px; min-height: 32px; font-size: 13px; }
.customer-profile .back .icon { width: 16px; height: 16px; }
.customer-profile .profile-page-heading h1 { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: -.4px; }
.customer-profile .profile-page-heading .subtitle { margin: 8px 0 0; font-size: 14px; line-height: 1.5; }

/* One card family and one header/body spacing convention across all tabs. */
.customer-profile .card,
.customer-profile .profile-metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: none;
  min-width: 0;
}
.customer-profile .card-head { padding: 20px 24px 16px; gap: 16px; align-items: center; }
.customer-profile .card-head h2,
.customer-profile .usage-heading h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 1.5; font-weight: 600; letter-spacing: -.2px; }
.customer-profile .card-head h2 > .icon { width: 18px; height: 18px; color: var(--green); }
.customer-profile .card-head p { margin-top: 4px; font-size: 13px; line-height: 1.5; max-width: 72ch; }
.customer-profile .card-body { padding: 0 24px 24px; }
.customer-profile .btn { font-size: 14px; }
.customer-profile .btn.small { font-size: 13px; }
.customer-profile .btn .icon { width: 16px; height: 16px; }
.customer-profile .badge { font-size: 12px; }

/* Identity leads; lifecycle metadata stays compact and secondary. */
.customer-profile .profile-header { padding: 0; margin-bottom: 24px; overflow: visible; }
.customer-profile .profile-heading-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px; }
.customer-profile .profile-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.customer-profile .profile-identity > div { min-width: 0; }
.customer-profile .profile-identity > .avatar { width: 56px; height: 56px; font-size: 18px; }
.customer-profile .profile-name { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.3; letter-spacing: -.4px; overflow-wrap: anywhere; }
.customer-profile .profile-contact { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.customer-profile .profile-contact > span { display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.customer-profile .profile-contact .icon { width: 16px; height: 16px; }
.customer-profile .profile-heading-row > .actions { flex-shrink: 0; gap: 8px; }
.customer-profile .profile-heading-row > .actions > .btn { height: 42px; padding: 8px 16px; }
.customer-profile .profile-status-strip { display: grid; grid-template-columns: .8fr .7fr 1.25fr 1.25fr; gap: 24px; margin: 0; padding: 20px 24px; border-top: 1px solid var(--line); }
.customer-profile .profile-status-strip > div { min-width: 0; }
.customer-profile .profile-status-strip dt { margin: 0 0 8px; font-size: 12px; font-weight: 500; line-height: 1.5; color: var(--muted); }
.customer-profile .profile-status-strip dd { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.customer-profile .profile-status-strip .badge { vertical-align: top; }
.customer-profile .profile-more { position: relative; }
.customer-profile .profile-more summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; height: 42px; width: 42px; border-radius: 7px; color: var(--muted); }
.customer-profile .profile-more summary::-webkit-details-marker { display: none; }
.customer-profile .profile-more summary > .icon { width: 18px; height: 18px; }
.customer-profile .profile-more summary:hover,
.customer-profile .profile-more[open] summary { background: var(--bg); color: var(--ink); }
.customer-profile .profile-more > div { position: absolute; z-index: 5; right: 0; top: calc(100% + 8px); min-width: 184px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.customer-profile .profile-more .btn { width: 100%; border: 0; justify-content: flex-start; }

/* Navigation retains the existing button handlers and native keyboard behavior. */
.customer-profile .detail-tabs { gap: 24px; flex-wrap: nowrap; overflow-x: auto; margin: 0 0 24px; padding: 0; border-bottom: 1px solid var(--line); }
.customer-profile .detail-tabs .tab { flex-shrink: 0; min-height: 44px; padding: 12px 4px; margin: 0; font-size: 14px; font-weight: 500; line-height: 1.4; white-space: nowrap; color: var(--muted); background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; }
.customer-profile .detail-tabs .tab:hover { color: var(--green); background: var(--bg); }
.customer-profile .detail-tabs .tab.active { color: var(--green); border-bottom-color: var(--green); font-weight: 600; }
.customer-profile .detail-tabs .tab:focus-visible,
.customer-profile .profile-more summary:focus-visible,
.customer-profile .invite-details summary:focus-visible,
.customer-profile .table-wrap:focus-visible { outline: 3px solid #76bea7; outline-offset: -3px; }
.customer-profile .detail-main { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 24px; align-content: start; }

/* Equal metric cards: small label/icon, clear amount, quiet supporting copy. */
.customer-profile .profile-metrics,
.customer-profile .usage-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.customer-profile .profile-metric { position: relative; display: block; padding: 24px; }
.customer-profile .profile-metric > div { display: flex; flex-direction: column; min-width: 0; height: 100%; }
.customer-profile .profile-metric .metric-icon { position: absolute; top: 24px; right: 24px; display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; color: var(--green); }
.customer-profile .profile-metric .metric-icon .icon { width: 18px; height: 18px; }
.customer-profile .profile-metric > div > span { display: block; padding-right: 32px; font-size: 13px; font-weight: 500; line-height: 20px; color: var(--muted); }
.customer-profile .profile-metric strong { display: block; margin: 12px 0 8px; font-size: 26px; font-weight: 600; line-height: 1.25; letter-spacing: -.4px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.customer-profile .profile-metric small { display: block; margin-top: auto; font-size: 12px; line-height: 1.5; font-weight: 400; color: var(--muted); }

/* Supporting cards share the grid without stretching an empty Notes card. */
.customer-profile .profile-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.customer-profile .profile-facts { margin: 0; }
.customer-profile .profile-facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.customer-profile .profile-facts > div:first-child { padding-top: 0; }
.customer-profile .profile-facts > div:last-child { padding-bottom: 0; border-bottom: 0; }
.customer-profile .profile-facts dt { margin: 0; font-size: 13px; font-weight: 400; line-height: 1.5; color: var(--muted); }
.customer-profile .profile-facts dd { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.5; text-align: right; overflow-wrap: anywhere; }
.customer-profile .profile-notes { margin: 0; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.customer-profile .profile-notes.muted { color: var(--muted); }

/* Existing access controls, records and timeline use the same type/spacing scale. */
.customer-profile .access-control-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.customer-profile .access-control-row > div:first-child { min-width: 0; }
.customer-profile .access-control-row strong { font-size: 15px; font-weight: 600; line-height: 1.5; }
.customer-profile .access-control-row p { max-width: 68ch; margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.customer-profile .access-control-row > .actions { flex-shrink: 0; }
.customer-profile .access-email { border-top: 1px solid var(--line); padding: 16px 0; font-size: 14px; }
.customer-profile .access-email > span { display: flex; align-items: center; gap: 8px; }
.customer-profile .access-email .icon { width: 16px; height: 16px; color: var(--green); }
.customer-profile .access-email > p { font-size: 13px; line-height: 1.5; color: var(--red); }
.customer-profile .access-footnote,
.customer-profile .usage-note { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0; }
.customer-profile .invite-details { margin-top: 16px; font-size: 14px; }
.customer-profile .invite-details summary { cursor: pointer; color: var(--green); margin-bottom: 12px; }
.customer-profile #customer-usage { min-width: 0; display: grid; gap: 24px; }
.customer-profile .usage-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 16px; }
.customer-profile .usage-heading p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.customer-profile .usage-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.customer-profile .usage-metrics .profile-metric { padding: 20px; }
.customer-profile .usage-metrics .profile-metric > div > span { padding-right: 0; }
.customer-profile .usage-note { margin-top: 16px; }
.customer-profile .usage-loading { padding-top: 24px; color: var(--muted); font-size: 14px; }
.customer-profile .records-table th { padding: 12px 24px; font-size: 12px; }
.customer-profile .records-table td { padding: 16px 24px; font-size: 14px; }
.customer-profile .records-table td strong { font-size: 14px; font-weight: 500; }
.customer-profile .records-table td small { font-size: 12px; }
.customer-profile .history-empty { padding: 24px; font-size: 14px; color: var(--muted); }
.customer-profile .timeline-list { padding: 0 24px 24px; }
.customer-profile .timeline-day { margin: 0 0 12px; padding: 4px 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.customer-profile .timeline-day:not(:first-child) { margin-top: 24px; }
.customer-profile .timeline-entry { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.customer-profile .timeline-symbol { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: var(--bg); color: var(--green); border-radius: 50%; flex-shrink: 0; }
.customer-profile .timeline-symbol .icon { width: 16px; height: 16px; }
.customer-profile .timeline-entry > div { flex: 1; min-width: 0; }
.customer-profile .timeline-kind { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 500; line-height: 1.5; color: var(--muted); text-transform: capitalize; }
.customer-profile .timeline-entry p { margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.customer-profile .timeline-entry time { padding-top: 0; font-size: 12px; line-height: 1.5; white-space: nowrap; text-align: right; color: var(--muted); }
.customer-profile .timeline-entry time small { display: block; font-size: 12px; }

@media (max-width: 1200px) {
  .customer-profile .profile-heading-row { flex-wrap: wrap; }
  .customer-profile .profile-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-profile .profile-status-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
  .customer-profile .usage-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .customer-profile .profile-overview-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .customer-profile .profile-page-heading h1 { font-size: 22px; }
  .customer-profile .profile-page-heading .subtitle { font-size: 13px; }
  .customer-profile .profile-heading-row { padding: 20px; gap: 20px; }
  .customer-profile .profile-identity { gap: 12px; align-items: flex-start; }
  .customer-profile .profile-identity > .avatar { width: 44px; height: 44px; font-size: 16px; }
  .customer-profile .profile-name { font-size: 24px; }
  .customer-profile .profile-contact { gap: 4px; }
  .customer-profile .profile-contact > span { flex-basis: 100%; }
  .customer-profile .profile-heading-row > .actions { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 36px; align-items: stretch; }
  .customer-profile .profile-heading-row > .actions > .btn { height: 44px; padding: 4px 8px; font-size: 13px; line-height: 1.3; white-space: normal; }
  .customer-profile .profile-more summary { width: 36px; height: 44px; }
  .customer-profile .profile-status-strip { padding: 20px; gap: 20px 16px; }
  .customer-profile .profile-status-strip > div:nth-child(n+3) { grid-column: 1 / -1; }
  .customer-profile .detail-tabs { gap: 20px; }
  .customer-profile .detail-tabs .tab { font-size: 13px; }
  .customer-profile .profile-metrics { grid-template-columns: minmax(0, 1fr); }
  .customer-profile .profile-metric { padding: 20px; }
  .customer-profile .profile-metric .metric-icon { top: 20px; right: 20px; }
  .customer-profile .card-head { padding: 20px 20px 16px; }
  .customer-profile .card-body { padding: 0 20px 20px; }
  .customer-profile .access-control-row { flex-wrap: wrap; gap: 16px; }
  .customer-profile .access-control-row > .actions { width: 100%; }
  .customer-profile .access-control-row .btn { min-width: 144px; }
  .customer-profile .usage-metrics { gap: 16px; }
  .customer-profile .usage-metrics .profile-metric { padding: 16px; }
  .customer-profile .usage-metrics .profile-metric strong { font-size: 24px; }
  .customer-profile .records-table th,
  .customer-profile .records-table td { padding-inline: 20px; }
  .customer-profile .history-empty { padding: 20px; }
  .customer-profile .timeline-list { padding: 0 20px 20px; }
  .customer-profile .timeline-entry { gap: 8px; }
  .customer-profile .usage-loading { padding-top: 20px; }
}
@media (max-width: 400px) {
  .customer-profile .profile-heading-row > .actions > .btn .icon { display: none; }
}
@media (max-width: 360px) {
  .customer-profile .profile-facts > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .customer-profile .profile-facts dd { text-align: left; }
}

@media (max-width: 600px) {
  .customer-profile .profile-heading-row > .actions > [data-action="record-payment"] { grid-column: 2 / 4; }
  .customer-profile .profile-heading-row > .actions > [data-action="conditional-upgrade"] { grid-column: 1 / 3; }
  .customer-profile .profile-heading-row > .actions > .profile-more { grid-column: 3; }
}

/* Profile title and tabbed body, with four Overview cards. */
.customer-profile .profile-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; }
.customer-profile .profile-page-heading .subtitle { color: var(--muted); }
.customer-profile .profile-page-heading .back { flex-shrink: 0; margin: 0; }
.customer-profile .profile-workspace { padding: 0; overflow: visible; }
.customer-profile .profile-workspace > .detail-tabs { padding: 8px 24px 0; margin: 0; }
.customer-profile .profile-workspace > .detail-main { padding: 24px; }
.customer-profile .profile-workspace > .notice { margin: 24px; }
.customer-profile .detail-main > .profile-header { margin: 0; }
.customer-profile .profile-overview-grid { align-items: stretch; }
.customer-profile .profile-name { font-size: 22px; }
.customer-profile .profile-heading-row > .actions { flex-wrap: wrap; flex-shrink: 1; }
@media (max-width: 760px) {
  .customer-profile .profile-page-heading { padding: 20px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .customer-profile .profile-workspace > .detail-tabs { padding-inline: 16px; gap: 18px; }
  .customer-profile .profile-workspace > .detail-main { padding: 16px; gap: 16px; }
  .customer-profile .profile-overview-grid { gap: 16px; }
  .customer-profile .profile-heading-row > .actions { display: flex; flex-wrap: wrap; }
  .customer-profile .profile-heading-row > .actions > .btn { flex: 1 1 120px; }
  .customer-profile .profile-heading-row > .actions > .profile-more { margin-left: auto; }
}

/* Joined outer frame with distinct, raised content cards. */
.customer-profile .profile-page-heading { margin-bottom: 24px; border-radius: 11px 11px 0 0; justify-content: flex-start; gap: 16px; border-bottom: 1px solid var(--line); }
.customer-profile .profile-page-heading .back { width: 40px; height: 40px; padding: 0; justify-content: center; background: transparent; border-color: transparent; }
.customer-profile .profile-page-heading .back:hover { background: var(--bg); border-color: var(--line); }
.customer-profile .profile-workspace { border-radius: 0 0 11px 11px; background: #f0f4f2; }
.customer-profile .profile-workspace > .detail-tabs { background: var(--surface); }
.customer-profile .detail-main .card { border-color: #d4dfd9; box-shadow: 0 2px 5px #193d2c08, 0 8px 20px #193d2c04; }
.customer-profile .profile-contact > span { align-items: flex-start; }
.customer-profile .profile-contact .icon { margin-top: 2px; }
.customer-profile .profile-heading-row > .actions { justify-content: flex-end; }

/* Payment sections and a clear summary keep a longer form easy to scan. */
#modal:has(.payment-access-form) { width: min(720px, calc(100vw - 32px)); }
#modal:has(.payment-access-form) .modal-body { padding: 24px; background: #f0f4f2; }
.payment-access-form .payment-section,
.payment-access-form .payment-summary { padding: 20px; margin-bottom: 16px; border: 1px solid #d4dfd9; border-radius: 10px; background: white; box-shadow: 0 2px 5px #193d2c06; min-width: 0; }
.payment-access-form h3 { font-size: 15px; margin: 0 0 16px; color: var(--ink); }
.payment-access-form .payment-section-hint { margin: -8px 0 16px; font-size: 13px; color: var(--muted); }
.payment-access-form .plan-options { margin-bottom: 0; }
.payment-access-form .plan-option { min-width: 0; border-radius: 8px; }
.payment-access-form .plan-option:has(input:focus-visible) { outline: 3px solid #76bea7; outline-offset: 2px; }
.payment-access-form .field { font-size: 13px; }
.payment-access-form .field input,
.payment-access-form .field select,
.payment-access-form .field textarea { font-size: 14px; min-width: 0; }
.payment-access-form .payment-section > .field:last-child { margin-bottom: 0; }
.payment-access-form .form-hint { line-height: 1.6; }
.payment-access-form .payment-summary { background: #f5faf7; border-color: #bfd6c8; }
.payment-access-form .payment-preview { padding: 0; margin: 0; background: transparent; border: 0; }
.payment-access-form #wallet-explainer { margin: 12px 0 0; }
.payment-access-form .modal-actions { position: sticky; bottom: 0; background: white; margin: 24px -24px -24px; padding: 16px 24px; box-shadow: 0 -4px 16px #193d2c06; z-index: 3; }
@media (max-width: 760px) {
 .customer-profile .profile-page-heading { flex-direction: row; align-items: flex-start; gap: 8px; padding: 20px 16px; }
 .customer-profile .profile-page-heading .back { width: 32px; height: 32px; }
}
@media (max-width: 540px) {
 #modal:has(.payment-access-form) .modal-body { padding: 16px; }
 .payment-access-form .payment-section,.payment-access-form .payment-summary { padding: 16px; }
 .payment-access-form .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
 .payment-access-form .plan-options { flex-direction: column; }
 .payment-access-form .plan-option { width: 100%; }
 .payment-access-form .modal-actions { bottom: 0; margin: 16px -16px -16px; padding: 16px; }
 .payment-access-form .modal-actions .btn { flex: 1; }
}

/* Consistent hierarchy across customer sections. */
.customer-profile .billing-summary .profile-metrics { gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #f7faf8; }
.customer-profile .billing-summary .profile-metric { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.customer-profile .billing-summary .profile-metric + .profile-metric { border-left: 1px solid var(--line); }
.customer-profile .usage-section .usage-heading { margin-bottom: 0; }
.customer-profile .usage-section .profile-metric { background: #f7faf8; padding: 20px; }
.customer-profile .access-control-row { background: #f7faf8; border: 1px solid var(--line); border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.customer-profile .access-email { border-top: 0; padding-top: 0; }
.customer-profile .access-footnote { padding-top: 16px; border-top: 1px solid var(--line); }
.customer-profile .profile-ai-content { display: grid; gap: 24px; min-width: 0; }
.customer-profile .profile-ai-summary { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 32px; }
.customer-profile .profile-ai-summary .actions { flex-wrap: wrap; }
.customer-profile .profile-ai-hint { margin-top: 20px; }
.customer-profile .ai-profile-pools { margin: 0; padding: 0; border: 0; gap: 20px; }
.customer-profile .ai-profile-pools > .ai-pool,
.customer-profile .ai-profile-pools > .ai-window { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #f7faf8; margin: 0; min-width: 0; }
.customer-profile .ai-window { min-width: 0; line-height: 1.6; }
.customer-profile .ai-window progress { height: 8px; margin-block: 4px; }
.customer-profile .records-card .card-head { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.customer-profile .records-table thead th { background: #f7faf8; color: var(--muted); }
.customer-profile .records-table tbody tr:hover { background: #fafcfb; }
.customer-profile .history-empty { margin: 20px 24px 24px; padding: 24px; border: 1px dashed #d4dfd9; border-radius: 8px; background: #fafcfb; text-align: center; line-height: 1.6; }
.customer-profile .timeline-entry { border: 1px solid var(--line); border-radius: 8px; background: #fafcfb; padding: 16px; margin-bottom: 12px; }
.customer-profile .timeline-entry:last-child { margin-bottom: 0; }
.customer-profile .timeline-symbol { background: #e8f1ec; }
.customer-profile .timeline-day { font-weight: 600; color: var(--ink); }
@media (max-width: 1200px) and (min-width: 761px) {
 .customer-profile .billing-summary .profile-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 900px) {
 .customer-profile .profile-ai-summary { grid-template-columns: minmax(0,1fr); gap: 20px; }
}
@media (max-width: 760px) {
 .customer-profile .billing-summary .profile-metric + .profile-metric { border-left: 0; border-top: 1px solid var(--line); }
 .customer-profile .card-head { flex-wrap: wrap; }
 .customer-profile .profile-ai-content { gap: 16px; }
 .customer-profile .usage-metrics { grid-template-columns: minmax(0,1fr); }
 .customer-profile .history-empty { margin: 16px 20px 20px; padding: 20px 16px; }
 .customer-profile .timeline-entry { flex-wrap: wrap; padding: 12px; }
 .customer-profile .timeline-entry > div { min-width: 100px; }
 .customer-profile .timeline-entry time { margin-left: 40px; text-align: left; }
 .customer-profile .timeline-entry time small { display: inline; margin-left: 4px; }
}
.customer-profile .ai-limit-row { display: grid; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.customer-profile .ai-limit-row:first-child { padding-top: 0; }
.customer-profile .ai-limit-row:last-child { border: 0; padding-bottom: 0; }
.customer-profile .ai-limit-row > span,.customer-profile .ai-limit-row small { color: var(--muted); font-size: 12px; line-height: 1.6; }
.customer-profile .ai-limit-row > strong { font-size: 22px; font-weight: 600; }
.customer-profile .ai-limit-row progress { width: 100%; height: 8px; accent-color: var(--green); }
.customer-profile .ai-primary-actions { flex-wrap: wrap; gap: 12px; }
.customer-profile .ai-primary-actions .primary { min-height: 44px; }
.customer-profile #customer-usage-metrics { min-width: 0; }

/* Standalone metrics and centered plan cards. */
.customer-profile .profile-metric { padding: 24px; box-shadow: 0 2px 5px #193d2c08; border-color: #d4dfd9; }
.customer-profile .usage-metrics { gap: 16px; }
.customer-profile .usage-metrics .profile-metric { padding: 22px; }
.customer-profile .usage-metrics .profile-metric > div > span { padding-right: 24px; }
.customer-profile .profile-metric .metric-icon { width: 28px; height: 28px; top: 18px; right: 18px; background: #edf5f0; border-radius: 8px; }
.customer-profile .customer-plan-card { width: 100%; min-width: min(400px, 100%); min-height: 320px; justify-self: center; display: flex; flex-direction: column; overflow: hidden; }
.customer-profile .plan-card-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.customer-profile .plan-card-top > span:first-child { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.customer-profile .plan-card-top .icon { width: 17px; height: 17px; color: var(--green); }
.customer-profile .plan-card-center { display: flex; flex: 1; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 14px; padding: 28px 24px; }
.customer-profile .plan-emblem { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid #d4e6db; border-radius: 14px; background: #edf5f0; color: var(--green); }
.customer-profile .plan-emblem .icon { width: 25px; height: 25px; }
.customer-profile .plan-card-center h2 { font-size: 26px; font-weight: 600; letter-spacing: -.5px; }
.customer-profile .plan-date { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.customer-profile .plan-date .icon { width: 15px; height: 15px; }
.customer-profile .plan-price { font-size: 20px; font-weight: 600; }
.customer-profile .plan-price span { font-size: 13px; font-weight: 400; color: var(--muted); }
.customer-profile .plan-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.customer-profile .plan-actions .btn { min-height: 42px; padding: 10px 16px; border-radius: 8px; box-shadow: none; }
.customer-profile .plan-card-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); padding: 14px 20px; color: var(--muted); font-size: 12px; background: #fafcfb; }
.customer-profile .plan-card-footer > .icon { width: 16px; height: 16px; }
.customer-profile .plan-card-footer .btn { padding: 5px 8px; min-height: 30px; border-color: transparent; background: transparent; }
.customer-profile .timeline-entry { background: transparent; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 18px 0; }
.customer-profile .timeline-entry:last-child { border-bottom: 0; }
.customer-profile .timeline-symbol { width: 36px; height: 36px; border-radius: 10px; }
.customer-profile .timeline-kind { color: var(--green); font-weight: 600; }
.customer-profile .timeline-day { padding: 10px 12px; background: #f3f7f5; border-radius: 6px; margin-bottom: 0; }
@media (max-width: 1100px) {
 .customer-profile .usage-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 540px) {
 .customer-profile .usage-metrics { gap: 12px; }
 .customer-profile .usage-metrics .profile-metric { padding: 16px; }
 .customer-profile .usage-metrics .metric-icon { position: static; margin-bottom: 12px; }
 .customer-profile .usage-metrics .profile-metric > div > span { padding: 0; }
 .customer-profile .usage-metrics .profile-metric > div { height: auto; }
 .customer-profile .plan-card-top { padding: 16px; }
 .customer-profile .plan-card-center { padding: 24px 16px; }
 .customer-profile .plan-card-center h2 { font-size: 24px; }
 .customer-profile .plan-actions { width: 100%; }
 .customer-profile .plan-actions .btn { flex: 1 1 120px; }
 .customer-profile .plan-date { flex-wrap: wrap; }
}

.customer-profile .customer-plan-card.ai-plan-card { width: 100%; }

/* Active subscriptions have an unmistakable, persistent success state. */
.customer-profile .customer-plan-card.plan-is-active { border: 1px solid #79ae94; border-top: 4px solid var(--green); }
.customer-profile .plan-is-active .plan-card-top { background: #edf7f0; border-bottom-color: #d1e5d9; }
.customer-profile .plan-is-active .plan-card-center { background: linear-gradient(180deg,#f5fbf7 0%,#fff 100%); }
.customer-profile .plan-is-active .plan-emblem { background: var(--green); color: white; border-color: var(--green); border-radius: 50%; box-shadow: 0 0 0 6px #e1f0e7; }
.customer-profile .plan-state-label { font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.customer-profile .plan-is-active .plan-state-label { color: var(--green); }
.customer-profile .plan-enabled { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--green); }
.customer-profile .plan-enabled .icon { width: 16px; height: 16px; }
.customer-profile .plan-is-paused { border-top: 4px solid #ad8446; }
.customer-profile .plan-is-paused .plan-state-label { color: #876118; }
.customer-profile .monthly-token-total { display: block; margin: 4px 0 12px; font-size: 36px; font-weight: 650; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.customer-profile .token-breakdown { display: grid; grid-template-columns: 1fr 1fr; margin: 24px 0 16px; gap: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.customer-profile .token-breakdown span { display: grid; gap: 8px; color: var(--muted); font-size: 12px; }
.customer-profile .token-breakdown strong { font-size: 18px; color: var(--ink); font-weight: 600; }
.customer-profile .ai-limit-row progress { appearance: none; border: 0; border-radius: 10px; overflow: hidden; height: 9px; background: #e6eee9; }
.customer-profile .ai-limit-row progress::-webkit-progress-bar { background: #e6eee9; border-radius: 10px; }
.customer-profile .ai-limit-row progress::-webkit-progress-value { background: var(--green); border-radius: 10px; }
.customer-profile .ai-limit-row progress::-moz-progress-bar { background: var(--green); border-radius: 10px; }
.customer-profile .plan-card-top > .actions { justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.customer-profile .plan-card-top > .actions .btn { box-shadow: none; }
.customer-profile .plan-actions:empty { display: none; }
.simple-payment .payment-purpose { display: flex; gap: 20px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.simple-payment .payment-purpose label { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.simple-payment input[type=radio] { accent-color: var(--green); }
.simple-payment .plan-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 20px; }
.simple-payment .plan-options:has(input[value=trial]) { grid-template-columns: repeat(2,minmax(0,1fr)); }
.simple-payment .plan-option { padding: 14px; align-items: center; }
.simple-payment .form-hint { font-size: 12px; color: var(--muted); margin: 0 0 18px; }
.simple-payment .payment-options { margin-top: 16px; }
.simple-payment .payment-options summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--muted); padding: 10px 0; }
.simple-payment .payment-options[open] summary { margin-bottom: 12px; }
.simple-payment .collect-total { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 14px; }
.simple-payment .collect-total strong { font-size: 22px; color: var(--green); }
.simple-payment .payment-preview p { margin-top: 8px; }
#modal:has(.simple-payment) .modal-body { background: #fff; }
@media(max-width:540px) {
 .simple-payment .plan-options { grid-template-columns: minmax(0,1fr); }
 .simple-payment .payment-purpose { gap: 12px; flex-wrap: wrap; }
 .simple-payment .collect-total { flex-wrap: wrap; }
 .customer-profile .plan-card-top:has([data-action=record-payment]) { flex-wrap: wrap; }
}

.nf-dropdown-menu{position:fixed;inset:auto;margin:0;padding:5px;border:1px solid #aabbad;border-radius:7px;background:#fff;color:#193d2c;box-shadow:0 8px 28px #102c2b30;overflow:auto;z-index:1000;font:14px/1.5 Inter,system-ui,sans-serif;box-sizing:border-box;overscroll-behavior:contain}
.nf-dropdown-menu [role=option]{padding:10px 12px;border-radius:4px;cursor:pointer;white-space:normal}
.nf-dropdown-menu [role=option]:hover,.nf-dropdown-menu .highlighted{background:#e6f0e2;color:#193d2c}
.nf-dropdown-menu [aria-selected=true]{font-weight:650}
select[aria-expanded=true]{outline:2px solid #76bea7;outline-offset:2px}

.automation-settings ol{padding-left:22px;font-size:14px;line-height:1.7;color:var(--muted)}
.automation-settings>.card-head{display:block}
.automation-settings>.card-head p{margin-top:8px}
.automation-settings .automation-recording{margin:20px 0;padding-top:16px;border-top:1px solid var(--line)}
.automation-settings .automation-recording input{max-width:100%;font-size:13px}
.automation-settings audio{width:100%;height:40px}
.automation-settings summary{cursor:pointer;font-size:14px}
.automation-history article{padding:13px 0;border-bottom:1px solid var(--line);display:grid;gap:6px;font-size:13px;overflow-wrap:anywhere}
.automation-history small{color:var(--muted);font-size:12px}
.automation-history .btn{justify-self:start}

.ai-setup{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:20px 0}.ai-form{display:grid;gap:14px}.ai-controls{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin-bottom:18px}.ai-controls label,.ai-form label{display:grid;gap:6px}.ai-window{display:grid;gap:5px;min-width:190px;margin:8px 0 14px}.ai-window progress{width:100%;height:9px;accent-color:#16a36b}.ai-window span,.ai-window small{font-size:12px;color:#596675}.ai-form fieldset{display:grid;gap:8px;border:1px solid #dce3df;border-radius:8px;padding:12px}.ai-form fieldset label{display:flex;align-items:center}.ai-form input[type=checkbox]{width:auto}.ai-payment{padding:12px 0;border-bottom:1px solid #e3e8e5}#ai-workspace td{vertical-align:top}#ai-workspace td small{display:block}#ai-workspace input[type=checkbox]{width:18px;height:18px}@media(max-width:760px){.ai-setup{grid-template-columns:1fr}.ai-controls{align-items:stretch;flex-direction:column}}

.ai-form{align-content:start}.ai-controls select,.ai-form select{padding:10px 12px;border:1px solid #cbd8d0;border-radius:8px;background:#fff;color:#183c32;font:inherit;min-height:42px;max-width:100%}

.ai-pool{padding:8px 0;min-width:210px}.ai-form textarea{width:100%;box-sizing:border-box;font:12px monospace}.ai-allocation,.ai-allowance{padding:12px}

dialog.ai-details-dialog{width:min(1100px,94vw);max-width:94vw}.ai-details-dialog .ai-form{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));align-items:end}.ai-details-dialog input[type=checkbox]{width:auto}
/* Access management follows the existing CRM spacing, typography and controls. */
.ai-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:0 0 24px}.ai-summary>div{padding:20px 24px;background:#fff;border:1px solid #e1e7e3;border-radius:12px;display:grid;gap:8px}.ai-summary span{font-size:13px;color:#607168}.ai-summary strong{font-size:28px;color:#173e30}.ai-filters{display:flex;gap:16px;padding:20px 24px;border-bottom:1px solid #e5eae7}.ai-filters label{display:grid;gap:8px;font-size:13px;font-weight:600;min-width:200px}.ai-filters label:first-child{flex:1}.ai-filters input,.ai-filters select{width:100%;min-height:42px;padding:10px 12px;border:1px solid #cbd8d0;border-radius:8px;background:#fff;font:inherit}.ai-status{display:inline-flex;white-space:nowrap;padding:5px 9px;border-radius:6px;background:#f0f3f1;color:#52655a;font-size:12px;font-weight:600}.ai-status-active{background:#e5f5eb;color:#206542}.ai-status-trial{background:#eaf0ff;color:#395ca4}.ai-status-payment_due{background:#fff3dc;color:#876118}.ai-status-revoked{background:#faebea;color:#94473e}.ai-access-table{width:100%;min-width:800px}.ai-access-table td{vertical-align:middle!important;padding-top:18px;padding-bottom:18px}.ai-access-table td:first-child,.ai-access-table th:first-child{width:48px}.ai-access-table td a{font-weight:600;color:#234b39}.ai-access-table td small{margin-top:5px;font-size:12px;color:#69776e}.ai-access-table td:last-child{text-align:right;white-space:nowrap}.ai-pagination{padding:18px 24px;border-top:1px solid #e5eae7;display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:13px;color:#647268}.ai-pagination>div{display:flex;gap:12px;align-items:center}.ai-selection{display:flex;align-items:center;gap:12px;padding:14px 24px;background:#f0f7f2;flex-wrap:wrap}.ai-selection strong{margin-right:auto;font-size:13px}.ai-scope{color:#6b776f;font-size:13px;margin:20px 0}.ai-plans summary{padding:20px 24px;cursor:pointer;font-weight:600}.ai-plans summary span{float:right;font-size:12px;color:#6b776f;font-weight:400}.ai-empty{padding:48px!important;text-align:center}.ai-profile-state{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:20px}.ai-profile-state>span:last-child{flex-basis:100%;color:#607168;font-size:13px}.ai-profile-pools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:24px;border-top:1px solid #e5eae7;padding-top:16px}.ai-secondary-actions{display:flex;gap:12px;border-top:1px solid #e5eae7;padding-top:18px}.ai-help{font-size:13px;color:#65766b;line-height:1.6}.ai-form .form-error:empty{display:none}.ai-form button:disabled{opacity:.5;cursor:wait}.ai-access-table button:disabled{opacity:.5}.ai-profile-pools .ai-pool{min-width:0}
@media(max-width:700px){.ai-summary{gap:8px}.ai-summary>div{padding:14px 10px}.ai-summary strong{font-size:24px}.ai-summary span{font-size:11px}.ai-filters{flex-direction:column;padding:16px}.ai-pagination{flex-direction:column;align-items:start;padding:16px}.ai-profile-pools{grid-template-columns:1fr}.ai-selection{padding:12px}.ai-secondary-actions{flex-wrap:wrap}.ai-directory{min-width:0}}
@media(max-width:700px){
 .ai-access-table{min-width:0;display:block}.ai-access-table thead{display:none}.ai-access-table tbody{display:grid}.ai-access-table tr{display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px 12px;padding:18px 16px;border-bottom:1px solid var(--line)}.ai-access-table td{display:block;padding:0!important;border:0;min-width:0;overflow-wrap:anywhere}.ai-access-table td:first-child{grid-column:1;grid-row:1;width:auto}.ai-access-table td:nth-child(n+2){grid-column:2}.ai-access-table td:nth-child(2){grid-row:1}.ai-access-table td:nth-child(4):before{content:'Plan: ';color:var(--muted)}.ai-access-table td:nth-child(5):before{content:'Access until: ';color:var(--muted)}.ai-access-table td:last-child{text-align:left;margin-top:6px}.ai-access-table td.ai-empty{grid-column:1/-1;padding:20px!important}
}
.ai-purchase-history{margin-top:20px;min-width:0}.ai-purchase-history .table-wrap{overflow-x:auto}.ai-purchase-table{min-width:780px}.ai-purchase-table td{vertical-align:top}.ai-purchase-table td a{font-weight:600;color:#234b39}.ai-purchase-table td small{display:block;margin-top:6px;color:#69776e;font-size:12px}.ai-history-notice{margin:18px 24px}.ai-purchase-history .ai-filters{padding-top:0}

/* Task-focused workspace: consistent density and a clear reading order. */
:root{--bg:#f5f7f6;--line:#e0e6e2;--muted:#596b61}
body{background:var(--bg)}
.content{max-width:1520px;padding-top:28px}
.page-heading{margin-bottom:24px;align-items:center}
.page-heading h1{font-size:28px;letter-spacing:-.6px}
h2{font-size:17px}
.card{box-shadow:none;border-radius:10px;background:#fff}
.card-head{padding:20px 22px;gap:12px}
.card-head h2{font-size:17px}
.stats{gap:16px;margin-bottom:24px}
.stat,.stat.featured{background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:20px;box-shadow:none}
.stat-label,.stat.featured .stat-label{color:var(--muted);font-size:13px}
.stat-number,.stat.featured .stat-number{color:var(--ink);font-size:30px;font-weight:650;letter-spacing:-.8px}
.stat-note,.stat.featured .stat-note{color:var(--muted);font-size:12px}
.stat .currency{color:var(--muted);font-size:12px;letter-spacing:0;margin-right:5px}
.overview-work{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:24px;margin-bottom:24px;align-items:start}
.overview-work>.card{min-width:0;margin:0}
.attention-row{padding:16px 0;gap:12px}
.attention-row strong{font-size:14px}
.attention-row p{font-size:12px;line-height:1.5;margin-top:3px}
.attention-clear{display:flex;align-items:center;gap:12px;padding:24px;color:var(--muted);font-size:14px}
.attention-clear .icon{color:var(--green)}
.collection-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.customer-directory .card-head{padding-block:16px}
.help-details{margin:16px 0;font-size:13px;color:var(--muted)}
.help-details summary{cursor:pointer;color:var(--ink);font-weight:600;padding:8px 0}
.help-details p{line-height:1.6}
.profile-more>div .btn{white-space:nowrap;justify-content:flex-start}
.login-form h2{margin-bottom:28px}
.btn:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #619b7b;outline-offset:3px}
@media(max-width:1100px){.overview-work{grid-template-columns:1fr}}
@media(max-width:760px){
 .content{padding:22px 16px 32px}
 .page-heading{gap:16px;align-items:flex-start}
 .page-heading h1{font-size:25px}
 .page-heading>.actions{flex-wrap:wrap}
 .stats{gap:10px}
 .stat,.stat.featured{padding:15px;min-width:0}
 .stat-number,.stat.featured .stat-number{font-size:25px;overflow-wrap:anywhere}
 .stat-label{font-size:12px}
 .stat-note{font-size:11px}
 .collection-stats{grid-template-columns:1fr}
 .overview-work{gap:18px;margin-bottom:18px}
 .card-head{padding:18px 16px}
 .attention-row{flex-wrap:wrap}
 .attention-row>div{min-width:0;flex:1}
 .chart-summary{flex-wrap:wrap;gap:16px}
}

.comm-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:28px;align-items:start}.comm-nav{display:flex;flex-direction:column;gap:5px;position:sticky;top:24px}.comm-nav button{border:0;background:transparent;padding:12px;display:flex;align-items:center;gap:10px;text-align:left;border-radius:9px;color:var(--muted,#647571);font:inherit;cursor:pointer}.comm-nav button.active{background:#e3efeb;color:#185849;font-weight:650}.comm-nav button:hover{background:#edf3f0}.comm-connection{border-top:1px solid #dde6e1;padding:22px 12px;margin-top:18px}.comm-connection small{display:block;margin:7px 0;color:#65736c;font-size:12px}.comm-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#a6afa8;margin-right:8px}.comm-dot.connected{background:#2b8861}.comm-content{display:flex;flex-direction:column;gap:22px;min-width:0}.comm-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.comm-stat{padding:19px;display:flex;flex-direction:column;gap:12px}.comm-stat>.icon{color:#417764}.comm-stat>span{font-size:12px;color:#6d7972}.comm-stat>strong{font-size:30px;font-weight:600;letter-spacing:-1px}.comm-limits{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;background:#f6f8f5;padding:20px;border-radius:10px;margin:22px 0}.comm-limits strong,.comm-limits span{display:block}.comm-limits strong{font-size:18px}.comm-limits span{font-size:12px;margin-top:7px;color:#67766c}.comm-campaign{padding:22px 24px;border-top:1px solid #e5eae5;display:flex;align-items:start;gap:16px;flex-wrap:wrap}.comm-campaign>div{flex:1;min-width:180px}.comm-campaign h3,.comm-template-grid h3{font-size:15px;margin:0 0 8px}.comm-campaign p{font-size:12px;color:#64736a;margin:0 0 12px}.comm-counts{display:flex;gap:8px;flex-wrap:wrap}.comm-campaign details{width:100%;font-size:12px;color:#64736a}.comm-campaign summary{cursor:pointer}.comm-message{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}.comm-template-grid{padding:24px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.comm-template-grid article{border:1px solid #e1e8e1;border-radius:10px;padding:20px;display:flex;flex-direction:column;gap:12px}.comm-template-grid article p{flex:1;font-size:13px;margin:0;color:#607065}.comm-email{display:block;color:#6b786f;font-size:11px;margin-top:6px}.comm-log-filter{display:grid;grid-template-columns:minmax(0,1fr) 170px auto;gap:14px;align-items:end}.comm-log-filter .field{margin:0}.comm-picker{max-height:240px;overflow:auto;border:1px solid #e0e6e0;border-radius:9px;padding:16px;margin-bottom:20px}.comm-picker .check{padding:6px}.comm-picker [hidden]{display:none}.comm-message-bubble{white-space:pre-wrap;font:inherit;font-size:14px;line-height:1.7;padding:24px;background:#eaf4ec;border-radius:12px;max-height:350px;overflow:auto;overflow-wrap:anywhere}.comm-preview details{max-height:200px;overflow:auto;font-size:12px}.comm-content textarea{min-height:170px}.comm-content .setting-card{width:100%}.comm-content .card-body>p{line-height:1.65}.comm-content table{width:100%}.comm-content td{padding:15px}.comm-content .form-row{gap:16px}.comm-content [hidden]{display:none!important}
@media(max-width:1100px){.comm-layout{grid-template-columns:160px minmax(0,1fr);gap:18px}.comm-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.comm-limits{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.comm-layout{display:block}.comm-nav{position:static;flex-direction:row;overflow:auto;margin-bottom:20px;padding-bottom:6px}.comm-nav button{white-space:nowrap}.comm-connection{display:none}.comm-template-grid{grid-template-columns:1fr;padding:18px}.comm-log-filter{grid-template-columns:1fr 1fr}.comm-log-filter .field:first-child{grid-column:1/-1}.comm-stat{padding:16px}.comm-content .form-row{display:block}.comm-campaign{padding:18px}.comm-content .table-wrap{overflow:auto}}

.comm-automatic-grid{padding-top:0}.comm-editor-intro p{margin:0}.comm-automatic-grid small{color:#68796f;line-height:1.5}.comm-message-excerpt{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;max-height:70px}.comm-automatic-grid .message-top h3{margin:0}.comm-automatic-grid .message-top{gap:8px}.comm-editor-preview{margin-top:20px}.comm-editor-preview summary{cursor:pointer;font-size:13px;color:#5d7065}#comm-auto-form textarea{min-height:230px}#comm-auto-form .comm-message-bubble{max-height:220px}

.stats.business-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.stats.expense-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.expense-loss .stat-number,.stat.expense-loss .stat-number{color:#b2463d}.expense-period-note{font-size:12px;color:#6c7a72;margin:-8px 0 24px;line-height:1.6}.expense-filters{padding:4px 24px 24px;display:grid;grid-template-columns:170px minmax(160px,1fr) 140px minmax(180px,1.3fr);gap:14px;align-items:end}.expense-filters .field{margin:0}.expense-filters>.actions{grid-column:1/-1}.expense-pagination{display:flex;gap:18px;align-items:center;justify-content:flex-end;padding-top:20px}.expense-pagination span{font-size:12px;color:#68796e}.expense-table{min-width:850px}.expense-table td:first-child{max-width:270px}.expense-table strong,.expense-table small{overflow-wrap:anywhere}.expense-table details{font-size:12px;margin-top:8px}.expense-table details p{white-space:pre-wrap}.expense-row-actions{display:flex;gap:6px;flex-wrap:wrap;min-width:145px}.expense-history article{padding:16px 0;border-bottom:1px solid #e1e7e2}.expense-history article p{font-size:13px;color:#65746b;line-height:1.6;white-space:pre-wrap}.profit-chart .chart-col{flex-direction:row;align-items:flex-end;justify-content:center;gap:5px}.profit-chart .chart-bar{width:40%;max-width:24px;min-height:2px}.profit-chart .expense-bar{background:#d6a86c}.profit-chart-legend{display:flex;gap:20px;color:#627468;font-size:12px;margin-top:18px}.profit-chart-legend span:before{content:'';display:inline-block;width:8px;height:8px;border-radius:3px;background:#5d8a54;margin-right:6px}.profit-chart-legend span:last-child:before{background:#d6a86c}.profit-trend-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:20px;border-top:1px solid #e3e8e2;padding-top:18px}.profit-trend-summary span{font-size:11px;color:#718074}.profit-trend-summary strong{display:block;margin-top:6px;font-size:16px}.profit-negative{color:#b2463d!important}
@media(max-width:1100px){.expense-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.expense-summary .stat-number{font-size:25px}}
@media(max-width:760px){.stats.business-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stats.expense-summary{grid-template-columns:1fr}.expense-filters{padding:0 18px 18px}.expense-filters .expense-search{grid-column:1/-1}.profit-trend-summary{grid-template-columns:1fr}.profit-trend-summary strong{display:inline;margin-left:10px}.expenses-page .table-wrap{overflow-x:auto}.expense-period-note{margin-top:0}.business-stats .stat-number{font-size:23px}.business-stats .stat-note{line-height:1.5}}
@media(max-width:390px){.expense-filters{grid-template-columns:1fr}.business-stats .stat-number{font-size:21px}}
.profit-chart .chart-col .chart-bar.expense-bar{background:#d6a86c}
