.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}
.rail{width:174px;align-items:stretch;padding:25px 12px}.brand-mark{margin-left:12px}.rail-divider{width:auto;margin:26px 12px 20px}.rail-bottom{align-self:center}.workspace{margin-left:174px;padding:0 24px}
.main-nav{display:grid;gap:7px}.main-nav a{display:flex;align-items:center;gap:11px;padding:13px 12px;min-height:44px;border-radius:8px;text-decoration:none;color:#6b7c73;font-size:13px}.main-nav a>span:first-child{display:flex}.main-nav a.selected{background:#e9f4ed;color:var(--green);font-weight:600}.main-nav a:hover{background:#f0f5f1}.main-nav svg{width:18px;height:18px}
.quick-actions{display:flex;gap:6px;padding:7px 20px 10px;overflow:auto;flex-shrink:0}.quick-actions button,.quick-actions a{border:1px solid #dce6df;background:white;border-radius:6px;display:flex;align-items:center;gap:5px;white-space:nowrap;padding:7px 9px;color:#5b7365;font-size:11px;text-decoration:none;min-height:34px}.quick-actions svg{width:13px;height:13px}.quick-actions a{margin-left:auto;background:#f0f5f1}
#workspace-page{min-height:calc(100dvh - 250px);padding-bottom:10px}.page-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:24px}.page-toolbar p{color:var(--muted);font-size:14px;line-height:1.6;margin:0;max-width:640px}.page-toolbar .primary-action{flex-shrink:0}.local-label{font-size:11px;color:var(--muted);margin-top:9px}
.surface{background:white;border:1px solid #dfe7e1;border-radius:12px;padding:23px}.surface h2{font-size:17px;font-weight:600;margin:0 0 6px;letter-spacing:-.3px}.surface-description{font-size:12px;color:var(--muted);line-height:1.6;margin:0}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:23px}.metric{border:1px solid #dfe7e1;background:white;padding:20px;border-radius:11px;position:relative}.metric:first-child{background:#eff7f1;border-color:#d9e8dd}.metric-icon{position:absolute;right:17px;top:20px;color:#69967b;background:#f0f6f1;padding:7px;border-radius:8px;display:flex}.metric-icon svg{width:16px;height:16px}.metric-label{display:block;font-size:12px;color:var(--muted);margin-bottom:15px}.metric-value{font-size:33px;font-weight:550;letter-spacing:-1px;display:block}.metric small{display:block;font-size:11px;color:var(--muted);margin-top:9px}
.dash-grid{display:grid;grid-template-columns:1.7fr 1fr;gap:20px}.chart-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}.chart-legend{display:flex;gap:12px;font-size:11px;color:var(--muted)}.chart-legend span:before{content:'';display:inline-block;width:7px;height:7px;background:#a2c7b2;border-radius:2px;margin-right:5px}.chart-legend span:last-child:before{background:var(--green)}.leads-chart{display:block;width:100%;height:240px;margin-top:20px}.chart-axis{font:11px 'DM Sans',sans-serif;fill:#6d8174}.period-control{border:1px solid #dbe5df;padding:10px 14px;min-height:42px;border-radius:7px;background:white;color:var(--ink);font:inherit;font-size:13px}
.funnel-row{margin-top:22px}.funnel-label{display:flex;justify-content:space-between;font-size:12px;margin-bottom:8px}.funnel-label b{font-weight:600}.funnel-track{height:9px;border-radius:5px;background:#eff3f0;overflow:hidden}.funnel-track>span{height:100%;display:block;background:#75ad92;border-radius:5px}.funnel-row:last-child .funnel-track>span{background:var(--green)}
.followup-surface{margin-top:20px}.followup-list{margin-top:18px}.followup-row{display:grid;grid-template-columns:minmax(180px,1.3fr) 1fr 1fr auto;gap:20px;padding:15px 0;border-top:1px solid var(--line);align-items:center;font-size:13px}.followup-person{display:flex;align-items:center;gap:11px}.followup-person .avatar{height:35px;width:35px;font-size:11px}.followup-person strong{font-weight:550;display:block}.followup-person small{font-size:11px;color:var(--muted);display:block;margin-top:4px}.followup-reason{color:var(--muted);font-size:12px}.due-badge{font-size:11px;display:inline-block;border-radius:4px;padding:4px 7px;color:#936a20;background:#fbf2df;justify-self:start}.due-badge.soon{color:#567666;background:#edf5ef}
.resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.resource-card{border:1px solid #dfe7e1;border-radius:12px;padding:23px;background:white;display:flex;flex-direction:column;min-width:0}.resource-card-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:19px}.resource-icon{padding:10px;border-radius:10px;background:#edf6ef;display:flex;color:var(--green)}.resource-card h2{font-size:17px;font-weight:600;margin:0 0 9px;overflow-wrap:anywhere}.resource-card p{color:var(--muted);font-size:13px;line-height:1.7;margin:0 0 20px;overflow-wrap:anywhere}.resource-card footer{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-top:auto;border-top:1px solid var(--line);padding-top:16px}.resource-card footer>span{font-size:11px;color:var(--muted)}.resource-actions{display:flex;gap:5px}.resource-actions button{min-height:36px;font-size:11px;padding:7px 10px}.resource-status{font-size:10px;border-radius:4px;background:#f0f3f1;color:#64796b;padding:4px 7px}.resource-status.active{color:var(--green);background:#e8f5ec}.resource-status.offline{color:#906319;background:#fbf0da}.empty-page{padding:60px 20px;text-align:center;background:white;border:1px dashed #cadcd0;border-radius:12px;color:var(--muted);line-height:1.7}
.form-field{margin-top:18px}.form-field>label{display:block;font-size:13px;font-weight:550;margin-bottom:8px}.form-field input,.form-field textarea,.form-field select{width:100%;border:1px solid #dbe5de;background:white;border-radius:7px;min-height:43px;padding:10px 12px;font:inherit;color:var(--ink);font-size:14px}.form-field textarea{resize:vertical;min-height:100px;line-height:1.6}.form-field small{font-size:11px;color:var(--muted);display:block;line-height:1.6;margin-top:6px}.inline-error{font-size:12px;color:#a33631;margin-top:8px}.form-field input:focus-visible,.form-field textarea:focus-visible,.form-field select:focus-visible{outline:2px solid #388f75;outline-offset:2px}
.editor-layout{display:grid;grid-template-columns:275px minmax(0,1fr);gap:20px}.editor-settings{align-self:start}.flow-canvas{border:1px solid #dfe7e1;border-radius:12px;background-color:#f5f9f6;background-image:radial-gradient(#ccdcd0 .8px,transparent .8px);background-size:17px 17px;padding:26px;min-height:510px}.flow-trigger{padding:13px 18px;border:1px solid #c9dfce;border-radius:9px;background:#e9f4ec;color:var(--green);max-width:510px;margin:auto;font-size:13px;display:flex;align-items:center;gap:9px}.flow-trigger small{display:block;font-size:11px;color:#658471;margin-top:4px}.flow-step{max-width:510px;margin:25px auto 0;border:1px solid #dae6dd;border-radius:10px;background:white;padding:17px;position:relative}.flow-step:before{content:'';position:absolute;top:-26px;left:50%;height:25px;width:1px;background:#bbd2c2}.flow-step-heading{display:flex;justify-content:space-between;align-items:center;gap:9px}.step-label{font-size:13px;font-weight:550;display:flex;gap:8px;align-items:center}.step-number{height:23px;width:23px;display:grid;place-items:center;border-radius:6px;background:#edf4ef;color:#679578;font-size:11px}.step-tools{display:flex;gap:3px}.step-tools button{border:1px solid var(--line);background:white;width:29px;height:29px;border-radius:5px;color:#73877a;cursor:pointer}.flow-step .form-field{margin-top:12px}.flow-step .form-field textarea{min-height:80px;font-size:13px}.flow-step .form-field label{font-size:12px;color:var(--muted)}.add-step-bar{max-width:510px;margin:25px auto 0;padding:13px;display:flex;flex-wrap:wrap;gap:7px;border:1px dashed #b8d1bf;background:#f9fcf9;border-radius:8px}.add-step-bar>span{font-size:11px;color:var(--muted);width:100%;margin-bottom:3px}.add-step-bar button{background:white;border:1px solid #d5e3d9;border-radius:5px;font-size:11px;padding:7px;color:#5d7967;min-height:34px}.flow-end{max-width:510px;margin:20px auto 0;text-align:center;font-size:11px;color:var(--muted)}.editor-toolbar{display:flex;align-items:center;gap:8px}.editor-toolbar a{text-decoration:none}.editor-dirty{font-size:11px;color:#986b2a}
.flow-preview{max-height:45vh;overflow:auto;margin-top:20px}.preview-step{border-left:2px solid #d7e7dc;padding:0 0 18px 16px;margin-left:4px}.preview-step strong{display:block;font-size:13px;margin-bottom:6px}.preview-step p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.6;margin:0;color:var(--muted)}.connection-banner{display:flex;gap:13px;align-items:center;padding:18px 22px;margin-bottom:24px;background:#eaf4ee;border:1px solid #d9e9de;border-radius:10px;color:#3c6b52}.connection-banner strong{font-size:13px;font-weight:550;display:block}.connection-banner p{font-size:12px;line-height:1.6;margin:4px 0 0;color:#63816e}.channel-status{display:flex;align-items:center;gap:6px;font-size:12px;margin-bottom:18px;color:#6c7f72}.channel-status .status-dot{width:7px;height:7px}.channel-status.disconnected .status-dot{background:#b09465}.connection-steps{padding:17px;background:#f4f8f5;border:1px solid #dde9e0;border-radius:8px;font-size:12px;line-height:1.8;color:var(--muted);margin:20px 0}.shortcut-preview{padding:18px;background:#f4f8f5;border:1px solid #dfe8e1;border-radius:9px;font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:20px}.shortcut-preview a{color:var(--green);word-break:break-all}.surface-footer-note{color:var(--muted);font-size:11px;line-height:1.6;margin-top:20px}.danger-text{color:#aa5247!important}.wide-dialog{width:min(600px,calc(100vw - 28px))}
@media(min-width:1600px){.inbox{grid-template-columns:285px minmax(350px,1fr) 360px}}
@media(max-width:1400px) and (min-width:1051px){.rail{width:145px;padding-left:7px;padding-right:7px}.workspace{margin-left:145px;padding:0 17px}.main-nav a{font-size:12px;padding:12px 10px;gap:8px}.inbox{grid-template-columns:230px minmax(270px,1fr) 300px}.resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1120px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-grid{grid-template-columns:1fr}.resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-layout{grid-template-columns:240px minmax(0,1fr)}.page-toolbar{align-items:flex-start}.followup-row{grid-template-columns:1fr 1fr auto;gap:12px}.followup-reason{display:none}}
@media(max-width:1050px){.rail{width:76px;align-items:center;padding:24px 8px}.brand-mark{margin-left:0}.rail-divider{width:26px}.main-nav a{flex-direction:column;gap:6px;padding:10px 5px;font-size:9px;width:61px}.main-nav svg{width:19px;height:19px}.workspace{margin-left:76px;padding:0 18px}}
@media(max-width:720px){.editor-layout{grid-template-columns:1fr}.flow-canvas{padding:18px}.resource-grid{grid-template-columns:1fr}.page-toolbar{flex-wrap:wrap}.editor-toolbar{flex-wrap:wrap}.page-toolbar p{font-size:13px}.followup-row{grid-template-columns:minmax(0,1fr) auto}.due-badge{display:none}}
@media(max-width:640px){.rail{display:flex;position:sticky;top:0;width:100%;height:auto;padding:6px 10px;border:0;border-bottom:1px solid var(--line);z-index:15}.rail .brand-mark,.rail-divider,.rail-bottom{display:none}.main-nav{display:flex;width:100%;justify-content:space-around;gap:2px}.main-nav a{width:auto;flex:1;font-size:10px;min-height:49px;padding:7px 5px;gap:4px}.main-nav svg{height:17px;width:17px}.workspace{margin-left:0;padding:0 12px}.topbar{height:54px}.metrics{gap:10px;margin-bottom:15px}.metric{padding:15px}.metric-value{font-size:29px}.metric-icon{display:none!important}.metric-label{font-size:12px}.metric small{font-size:10px;line-height:1.6}.surface{padding:17px}.dash-grid{gap:15px}.chart-heading{align-items:flex-start;flex-direction:column;gap:12px}.leads-chart{height:190px}.quick-actions{padding-left:12px;padding-right:12px}.quick-actions button,.quick-actions a{min-height:42px}.resource-card{padding:20px}.page-toolbar{margin-bottom:18px}.page-toolbar>.primary-action{width:100%}.connection-banner{padding:15px}.flow-step{padding:13px}.step-tools button{height:35px;width:32px}.form-field input,.form-field textarea,.form-field select{font-size:16px}.order-value strong{font-size:12px}.workspace-name>span:last-child{font-size:10px}}
