:root{--ink:#192f29;--muted:#65766e;--green:#185642;--green-dark:#103e30;--sage:#e6eee7;--mint:#d8f0df;--cream:#f6f5f0;--paper:#fff;--border:#dce4dc;--red:#a33638;--red-bg:#fcebed;--amber:#8d641b;--amber-bg:#fff4dc;--shadow:0 12px 36px #163e2e0d;--radius:16px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.5;color:var(--ink);background:var(--cream)}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.52}a{color:var(--green);text-underline-offset:3px}a:hover{color:var(--green-dark)}h1,h2,h3,p{margin:0}h1{font-size:clamp(1.65rem,3vw,2.1rem);line-height:1.2;letter-spacing:-.045em;font-weight:650}h2{font-size:1.18rem;letter-spacing:-.025em;font-weight:650}h3{font-size:1rem;font-weight:650}p{line-height:1.6}small{font-size:.8rem}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #86b79a;outline-offset:3px}::selection{background:#cbe9d5}button svg{pointer-events:none}hr{border:0;border-top:1px solid var(--border);margin:22px 0}[hidden]{display:none!important}.muted{color:var(--muted)}.small{font-size:.84rem}.tiny{font-size:.75rem}.strong{font-weight:650}.prewrap{white-space:pre-wrap;overflow-wrap:anywhere}.nowrap{white-space:nowrap}.skip-link{position:fixed;left:16px;top:-70px;background:var(--green);color:white;z-index:1000;padding:12px 18px;border-radius:8px}.skip-link:focus{top:12px}.boot{min-height:60vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:24px;color:var(--muted)}.wordmark{font-size:2.55rem;font-weight:750;letter-spacing:-.09em;line-height:1;color:var(--ink)}.wordmark span{color:#48a978}.eyebrow{font-size:.7rem;text-transform:uppercase;letter-spacing:.13em;color:var(--muted);font-weight:700}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.start{align-items:flex-start}.grow{flex:1;min-width:0}.stack{display:flex;flex-direction:column;gap:16px}.stack-sm{display:flex;flex-direction:column;gap:8px}.section-gap{margin-top:24px}.two-col{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(270px,1fr);gap:22px}.equal-cols{display:grid;grid-template-columns:1fr 1fr;gap:18px}.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.content-width{max-width:1180px;margin:0 auto}.card{background:var(--paper);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:24px;min-width:0}.card-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.card.soft{background:#edf2eb}.card.flat{box-shadow:none}.btn{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--border);background:white;border-radius:10px;padding:9px 15px;font-size:.87rem;font-weight:600;color:var(--ink);text-decoration:none;line-height:1.3}.btn:hover{background:#f3f7f1;border-color:#afc4b5}.btn.primary{background:var(--green);color:white;border-color:var(--green)}.btn.primary:hover{background:var(--green-dark)}.btn.ghost{background:transparent;border-color:transparent;color:var(--muted)}.btn.ghost:hover{background:var(--sage);color:var(--ink)}.btn.danger{color:var(--red);background:var(--red-bg);border-color:#e9c2c6}.btn.small-btn{min-height:34px;padding:7px 11px;font-size:.8rem}.btn.full{width:100%}.btn.human-link{background:transparent;color:var(--green);border:0;border-top:1px solid #ccdcd0;border-radius:0;min-height:38px;padding:9px 0 0;width:100%;margin-top:12px}.badge{display:inline-flex;align-items:center;gap:6px;border-radius:7px;padding:4px 8px;font-size:.69rem;line-height:1.25;font-weight:650;text-transform:capitalize;white-space:nowrap}.badge.green{background:var(--mint);color:#185d3a}.badge.amber{background:var(--amber-bg);color:var(--amber)}.badge.danger{background:var(--red-bg);color:var(--red)}.badge.neutral{background:#edf0ed;color:#56655b}.dot{height:7px;width:7px;display:inline-block;background:#6e8b77;border-radius:50%}.avatar{width:42px;height:42px;border-radius:13px;background:#e8eee5;color:var(--green);font-size:.86rem;font-weight:700;display:grid;place-items:center;flex-shrink:0}.avatar.dark{background:var(--green);color:white}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field label{font-size:.84rem;font-weight:600}.field input,.field textarea,.field select,.search{border:1px solid #cbd7ce;border-radius:9px;background:white;color:var(--ink);padding:11px 12px;min-height:44px;width:100%;font-size:.92rem}.field textarea{min-height:110px;resize:vertical;line-height:1.6}.field textarea.tall{min-height:210px}.field input::placeholder,.field textarea::placeholder,.search::placeholder{color:#8b9991}.hint{color:var(--muted);font-size:.77rem;line-height:1.5}.check-field{display:flex;align-items:flex-start;gap:10px;font-size:.86rem;line-height:1.5}.check-field input{accent-color:var(--green);width:18px;height:18px;margin-top:2px;flex-shrink:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid>.full-width{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:6px;flex-wrap:wrap}.notice{border:1px solid #d4dfd5;background:#f0f5ed;padding:14px 16px;border-radius:11px;font-size:.85rem}.notice p{margin-top:4px;color:#587062}.notice.warning{background:var(--amber-bg);border-color:#ebd8a9}.notice.warning p{color:#7c622f}.notice.error{background:var(--red-bg);border-color:#ecc1c5}.notice.error p{color:#93343b}.empty{text-align:center;min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:28px 16px}.empty p{color:var(--muted);font-size:.88rem;max-width:430px}.empty-mark{font-size:1.9rem;color:#8ca392;line-height:1}.loading-panel{padding:60px 24px;text-align:center;color:var(--muted)}.toast{position:fixed;z-index:10000;left:50%;bottom:30px;transform:translateX(-50%);background:var(--green-dark);color:white;border:1px solid #436957;border-radius:12px;padding:13px 20px;box-shadow:0 6px 28px #142d2933;max-width:min(92vw,620px);font-size:.88rem}.toast.error{background:#7b2c36;border-color:#a55459}.text-danger{color:var(--red)}.text-green{color:var(--green)}.text-amber{color:var(--amber)}
/* Workspace */
.app-shell{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;border-right:1px solid var(--border);background:#f0f2eb;padding:31px 18px 20px;display:flex;flex-direction:column;gap:30px}.sidebar-brand{padding:0 15px}.sidebar-brand .wordmark{font-size:2.6rem}.sidebar-brand p{font-size:.73rem;color:var(--muted);margin-top:12px}.nav{display:flex;flex-direction:column;gap:6px}.nav-link{display:flex;align-items:center;gap:11px;min-height:46px;padding:11px 13px;text-decoration:none;border-radius:10px;color:#5e7066;font-size:.88rem;font-weight:550}.nav-link:hover{background:#e2e9df;color:var(--ink)}.nav-link.active{background:var(--green);color:white}.nav-icon{width:24px;text-align:center;font-size:1.1rem;font-weight:400}.sidebar-bottom{margin-top:auto;display:flex;flex-direction:column;gap:5px}.sidebar-budget{margin:7px 4px 0;padding:12px 11px;border:1px solid #cfdbd0;border-radius:11px;font-size:.76rem;color:var(--muted)}.sidebar-budget strong{color:var(--ink);display:block;font-size:.89rem;margin-top:4px}.workspace{min-width:0}.topbar{height:78px;border-bottom:1px solid var(--border);background:#f9f9f5;display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:14px}.business-title{font-size:.93rem;font-weight:650}.topbar-context{font-size:.75rem;color:var(--muted)}.top-actions{display:flex;align-items:center;gap:10px}.user-chip{display:flex;align-items:center;gap:10px}.mobile-brand{display:none}.main-content{padding:32px 36px 55px}.page-heading{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:25px}.page-heading p{margin-top:8px;max-width:650px;color:var(--muted);font-size:.9rem}.update-label{color:var(--muted);font-size:.72rem;margin-top:7px;display:block}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:23px}.metric{background:white;border:1px solid var(--border);border-radius:13px;padding:19px 20px;min-width:0}.metric .label{font-size:.77rem;color:var(--muted)}.metric .value{font-size:clamp(1.7rem,3vw,2.15rem);font-weight:650;letter-spacing:-.045em;line-height:1.3;margin-top:8px;overflow-wrap:anywhere}.metric .note{color:var(--muted);font-size:.72rem;margin-top:5px}.metric.emphasis{background:var(--green);color:#fff;border-color:var(--green)}.metric.emphasis .label,.metric.emphasis .note{color:#c8dfce}.priority-row{display:flex;gap:14px;padding:16px 0;border-bottom:1px solid #e5ebe4;align-items:flex-start}.priority-row:last-child{border-bottom:0;padding-bottom:0}.priority-indicator{width:8px;height:8px;border-radius:50%;background:#ba8832;margin-top:8px;flex-shrink:0}.priority-indicator.urgent{background:#af4047}.priority-title{font-size:.9rem;font-weight:600}.priority-detail{font-size:.79rem;color:var(--muted);margin-top:3px}.priority-actions{display:flex;gap:6px;flex-wrap:wrap}.connection-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid #e5ebe4;font-size:.83rem}.connection-row:last-child{border:0}.activity-row{display:flex;gap:11px;padding:12px 0;font-size:.82rem;border-bottom:1px solid #edf0e9}.activity-row:last-child{border:0}.activity-time{font-size:.7rem;color:var(--muted);white-space:nowrap;margin-left:auto}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;flex-wrap:wrap}.search-wrap{min-width:190px;flex:1;max-width:420px}.tabs{display:flex;align-items:center;gap:6px;padding:4px;background:#e9eee6;border-radius:10px;overflow-x:auto}.tab{padding:8px 13px;white-space:nowrap;border:0;border-radius:7px;background:transparent;color:#69796e;font-weight:600;font-size:.82rem;min-height:36px}.tab.active{background:white;color:var(--ink);box-shadow:0 1px 4px #193b2010}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;font-size:.85rem}.data-table th{text-align:left;font-size:.7rem;letter-spacing:.025em;color:var(--muted);font-weight:600;padding:12px 13px;border-bottom:1px solid var(--border);white-space:nowrap}.data-table td{padding:15px 13px;border-bottom:1px solid #e8ede6;vertical-align:middle}.data-table tbody tr:last-child td{border-bottom:0}.data-table .clickable:hover{background:#f5f8f2;cursor:pointer}.record-title{font-weight:600;color:var(--ink)}.record-sub{display:block;font-size:.75rem;color:var(--muted);margin-top:3px}.list-row{display:flex;align-items:flex-start;gap:13px;padding:16px 0;border-bottom:1px solid #e8ede6}.list-row:last-child{border:0}.right-align{text-align:right}.details-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(270px,1fr);gap:20px}.customer-summary{display:flex;align-items:center;gap:15px;margin-bottom:20px}.customer-summary .avatar{width:56px;height:56px;font-size:1.05rem}.back-link{margin-bottom:17px}.conversation-list{display:flex;flex-direction:column;gap:9px}.conversation-button{width:100%;border:1px solid var(--border);border-radius:11px;background:white;color:var(--ink);padding:12px;text-align:left}.conversation-button:hover,.conversation-button.active{border-color:#76a487;background:#f2f7ee}.chat-history{display:flex;flex-direction:column;gap:14px;max-height:440px;overflow-y:auto;padding:12px 3px 20px;scroll-behavior:smooth}.bubble{padding:13px 15px;border:1px solid #dfe7dd;background:white;border-radius:3px 15px 15px 15px;max-width:92%;min-width:180px;align-self:flex-start}.bubble.business{background:#e9f3e6;border-color:#d5e7ce;align-self:flex-end;border-radius:15px 3px 15px 15px}.bubble-meta{display:flex;justify-content:space-between;gap:18px;color:var(--muted);font-size:.67rem;margin-bottom:6px}.bubble-meta span{font-weight:650}.message-text{font-size:.86rem;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}.message-delivery{display:block;color:var(--muted);font-size:.67rem;margin-top:6px;text-align:right}.reply-form{border-top:1px solid var(--border);padding-top:14px;margin-top:6px}.reply-form textarea{min-height:80px}.inline-form{display:flex;gap:10px;align-items:flex-end}.inline-form .field{flex:1}.timeline{margin:0;padding:0;list-style:none}.timeline li{position:relative;border-left:2px solid #d8e2d6;padding:0 0 20px 19px;margin-left:7px}.timeline li:before{content:"";position:absolute;width:8px;height:8px;border-radius:50%;background:#83a98e;left:-5px;top:6px}.timeline li:last-child{padding-bottom:0;border-color:transparent}.timeline p{font-size:.84rem}.timeline time{font-size:.72rem;color:var(--muted)}.memory-text{background:#f2f5ef;border-radius:11px;padding:15px;white-space:pre-wrap;font-size:.85rem;line-height:1.65}.subtle-label{font-size:.71rem;color:var(--muted);font-weight:600;margin-bottom:8px}.mini-stat{padding:12px 0;border-bottom:1px solid var(--border);display:flex;gap:12px;justify-content:space-between;font-size:.83rem}.mini-stat:last-child{border:0}.mini-stat span{color:var(--muted)}.task-card{padding:18px;border:1px solid var(--border);border-radius:12px;background:white;display:flex;gap:14px;align-items:flex-start}.task-card.urgent{border-left:3px solid #b64d50}.task-card p{font-size:.83rem;color:var(--muted);margin-top:6px}.task-footer{margin-top:12px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.opportunity-value{font-size:1.4rem;font-weight:650;letter-spacing:-.025em;margin:10px 0}.draft-text{white-space:pre-wrap;color:#466053;font-size:.88rem;background:#f5f7f1;padding:15px;border-radius:9px;margin:12px 0}.usage-bar{width:100%;height:9px;accent-color:var(--green);border:none;border-radius:20px;overflow:hidden}.usage-bar::-webkit-progress-bar{background:#e3ebe0}.usage-bar::-webkit-progress-value{background:var(--green)}.plan-card{border:1px solid var(--border);background:#fff;border-radius:13px;padding:20px}.plan-price{font-size:1.7rem;font-weight:650;letter-spacing:-.04em;margin:11px 0 2px}.plan-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.plan-card p{font-size:.79rem;color:var(--muted);margin:10px 0 17px}.kv-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.kv{border:1px solid var(--border);border-radius:10px;padding:13px;font-size:.82rem;overflow-wrap:anywhere}.kv span{display:block;color:var(--muted);font-size:.73rem;margin-bottom:5px}.audit-row{display:flex;justify-content:space-between;gap:12px;font-size:.77rem;padding:10px 0;border-bottom:1px solid var(--border)}.assistant-panel{max-width:840px;margin:0 auto}.assistant-history{min-height:230px;max-height:58vh}.suggestion-grid{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0 22px}.suggestion{border:1px solid var(--border);border-radius:8px;background:#f4f7ef;padding:9px 12px;text-align:left;color:#516c5a;font-size:.8rem}.assistant-mode{font-size:.72rem;color:var(--muted);margin-top:8px}.caps-list{display:flex;flex-direction:column;gap:9px}.caps-item{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid var(--border);padding-bottom:10px;font-size:.85rem}.caps-item p{font-size:.76rem;color:var(--muted);margin-top:3px}.step-indicator{display:flex;gap:8px;margin:16px 0 25px}.step-dot{height:5px;flex:1;border-radius:4px;background:#dfe7da}.step-dot.current,.step-dot.done{background:#39815a}.wizard-panel{max-width:780px;margin:0 auto}.step-count{font-size:.76rem;color:var(--muted);margin-bottom:8px}.catalogue-lines{display:flex;flex-direction:column;gap:10px}.catalogue-line{display:grid;grid-template-columns:1fr 150px 42px;gap:9px;align-items:end}.quote-line{display:grid;grid-template-columns:1fr 80px 130px 40px;gap:8px;align-items:end}.quote-line .field label{font-size:.74rem}.service-label{font-size:.8rem;font-weight:600;margin-bottom:8px}.mobile-nav{display:none}.footer-note{text-align:center;color:#8a988f;font-size:.7rem;padding:23px 0 8px}.source-link{font-size:.8rem;overflow-wrap:anywhere}
/* Authentication */
.auth-layout{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fafaf5}.auth-story{background:var(--green-dark);color:white;display:flex;flex-direction:column;justify-content:center;padding:8vw;position:relative;overflow:hidden}.auth-story .wordmark{color:white;margin-bottom:55px;font-size:3.2rem}.auth-story h1{font-size:clamp(2.3rem,4.7vw,4.2rem);letter-spacing:-.055em;line-height:1.08;max-width:520px}.auth-story p{color:#b6d2bf;max-width:380px;margin-top:24px;font-size:1rem}.auth-footnote{margin-top:70px;color:#a3c6af;font-size:.76rem}.auth-story:after{content:"";width:360px;height:360px;border:1px solid #ffffff0d;border-radius:50%;position:absolute;right:-150px;bottom:-150px;pointer-events:none}.auth-panel{display:flex;align-items:center;justify-content:center;padding:46px 35px}.auth-form{width:100%;max-width:410px}.auth-form h2{font-size:1.65rem;margin-bottom:8px}.auth-form>p{font-size:.9rem;color:var(--muted);margin-bottom:25px}.auth-switch{display:flex;gap:9px;margin-bottom:25px}.auth-switch .btn{flex:1}.auth-fields{display:flex;flex-direction:column;gap:17px}.auth-footer{font-size:.75rem;line-height:1.7;color:var(--muted);margin-top:23px}.auth-form .wordmark{display:none}.field-error{font-size:.85rem;color:var(--red);padding:10px 12px;border-radius:9px;background:var(--red-bg)}
/* Dialogs */
dialog{border:1px solid var(--border);border-radius:18px;padding:0;width:min(94vw,680px);max-height:90vh;color:var(--ink);box-shadow:0 24px 100px #13372833;background:#fafbf7}dialog::backdrop{background:#142b237a;backdrop-filter:blur(3px)}.modal-head{padding:22px 25px 16px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;gap:20px}.modal-body{padding:23px 25px;max-height:70vh;overflow-y:auto}.modal-head .btn{min-height:32px;padding:5px 11px}.copy-box{display:block;border:1px solid var(--border);background:white;padding:13px;border-radius:9px;overflow-wrap:anywhere;font-size:.84rem;margin:12px 0}.source-code{padding:14px;background:#f1f4ed;border-radius:9px;font:12px/1.6 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:280px;overflow:auto}
/* Customer and quote pages */
.customer-body{background:#edf1e9}.customer-shell{width:min(100%,780px);margin:30px auto;background:#fbfcf7;border:1px solid var(--border);border-radius:18px;min-height:calc(100vh - 60px);overflow:hidden;display:flex;flex-direction:column}.customer-head{padding:24px 26px;background:var(--green-dark);color:white;display:flex;gap:13px;align-items:center}.customer-head .avatar{background:#f0f4e4;color:var(--green-dark)}.customer-head h1{font-size:1.18rem;letter-spacing:-.025em}.customer-head p{font-size:.76rem;color:#bdcfbf;margin-top:3px}.customer-content{padding:24px;flex:1;display:flex;flex-direction:column;min-height:0}.customer-content .chat-history{max-height:52vh;min-height:190px;flex:1}.customer-start{max-width:460px;margin:auto;width:100%;padding:20px 0}.customer-start h2{font-size:1.5rem;margin-bottom:10px}.customer-start>p{font-size:.9rem;color:var(--muted);margin-bottom:24px}.customer-controls{display:flex;gap:8px;flex-wrap:wrap;padding:12px 0}.chat-state{padding:11px 14px;border-radius:10px;background:#eaf0e5;font-size:.8rem;margin-bottom:10px}.chat-state.waiting{background:var(--amber-bg);color:#715620}.customer-foot{font-size:.68rem;text-align:center;color:var(--muted);margin-top:20px}.customer-foot a{font-size:.68rem}.portal-shell{max-width:820px;margin:35px auto;padding:0 20px}.portal-brand{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}.portal-brand h1{font-size:1.4rem}.portal-brand .wordmark{font-size:1.4rem}.portal-title{padding:28px 0}.portal-title p{color:var(--muted);font-size:.9rem;margin-top:8px}.quote-totals{margin-top:20px;margin-left:auto;max-width:350px}.quote-totals .mini-stat.total{font-size:1.15rem;font-weight:650;color:var(--ink)}.quote-description{font-size:.9rem;color:var(--muted);white-space:pre-wrap;margin:14px 0 24px}.inline-notice{font-size:.78rem;color:var(--muted);padding:12px 0}.checklist{list-style:none;padding:0;margin:0}.checklist li{padding:10px 0;border-bottom:1px solid var(--border);display:flex;gap:12px;font-size:.85rem}.checklist li:last-child{border:0}
@media(min-width:1500px){.main-content{padding:38px 50px}.topbar{padding:0 50px}.sidebar{padding-top:36px}}
@media(max-width:1100px){.app-shell{grid-template-columns:185px 1fr}.sidebar{padding-left:12px;padding-right:12px}.main-content{padding:27px 25px}.topbar{padding:0 25px}.metrics{gap:10px}.metric{padding:15px}.two-col,.details-grid{grid-template-columns:1fr}.plan-grid{grid-template-columns:repeat(2,1fr)}.topbar-context{max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(max-width:760px){:root{font-size:14px}.app-shell{display:block}.sidebar{display:none}.topbar{height:72px;padding:0 18px}.mobile-brand{display:block;font-size:1.9rem}.topbar .business-title{font-size:.88rem}.topbar-context{font-size:.66rem;max-width:200px}.top-actions .user-chip{display:none}.main-content{padding:24px 18px 105px}.page-heading{margin-bottom:20px;gap:12px;flex-wrap:wrap}.page-heading h1{font-size:1.85rem}.page-heading p{font-size:.86rem}.card{padding:19px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.metric{padding:16px}.metric .value{font-size:1.9rem}.equal-cols,.grid-3{grid-template-columns:1fr}.form-grid{gap:14px}.mobile-nav{display:flex;position:fixed;z-index:90;bottom:0;left:0;right:0;padding:7px 7px calc(7px + env(safe-area-inset-bottom));gap:2px;background:#fafcf7f5;border-top:1px solid var(--border);backdrop-filter:blur(12px)}.mobile-nav a{min-width:0;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:5px 2px;text-decoration:none;border-radius:10px;color:#6a7d70;font-size:.65rem;min-height:46px}.mobile-nav a.active{color:var(--green);background:#e3eedf;font-weight:700}.mobile-nav .nav-icon{font-size:1.28rem}.toast{bottom:88px;max-width:92vw;width:max-content}.priority-row{gap:11px}.priority-row .btn{font-size:.75rem;min-height:36px;padding:8px 10px}.priority-actions{flex-direction:column}.task-card{padding:16px}.toolbar .tabs{width:100%}.search-wrap{max-width:none}.table-wrap{margin-left:-5px;margin-right:-5px}.data-table{font-size:.8rem}.data-table td,.data-table th{padding-left:9px;padding-right:9px}.hide-mobile{display:none}.auth-layout{grid-template-columns:1fr}.auth-story{display:none}.auth-panel{min-height:100vh;padding:32px 23px}.auth-form .wordmark{display:block;margin-bottom:40px}.auth-form>p{font-size:.9rem}.auth-form h2{font-size:1.8rem}.chat-history{max-height:420px}.bubble{max-width:96%;min-width:150px}.customer-shell{margin:0;min-height:100dvh;border:0;border-radius:0}.customer-head{padding:20px}.customer-content{padding:18px}.customer-content .chat-history{max-height:50dvh}.customer-body .toast{bottom:15px}.customer-controls .btn{font-size:.77rem;flex:1}.customer-controls{gap:6px}.portal-shell{margin:20px auto;padding:0 15px}.portal-title{padding:22px 0}.portal-brand h1{font-size:1.2rem}.portal-brand .wordmark{font-size:1.4rem}.modal-body{padding:18px}.modal-head{padding:17px 18px}.quote-line{grid-template-columns:1fr 66px 90px 32px;gap:6px}.quote-line .field input{padding:9px 7px}.quote-line .btn{padding:7px;min-height:44px}.catalogue-line{grid-template-columns:1fr 110px 36px}.kv-grid{gap:8px}.inline-form{flex-wrap:wrap}.inline-form .field{min-width:100%}.inline-form>.btn{width:100%}}
@media(max-width:400px){.topbar-context{max-width:150px}.main-content{padding-left:13px;padding-right:13px}.card{padding:16px}.form-grid{grid-template-columns:1fr}.plan-grid{grid-template-columns:1fr}.metric{padding:13px}.metric .label{font-size:.71rem}.priority-row{flex-wrap:wrap}.priority-row .grow{min-width:70%}.priority-actions{padding-left:19px;flex-direction:row;width:100%}.quote-line{grid-template-columns:1fr 60px 85px 28px}.quote-line .field label{font-size:.65rem}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}@media print{.sidebar,.topbar,.mobile-nav,.btn,.toast,.skip-link{display:none!important}.app-shell{display:block}.main-content{padding:0}.card{box-shadow:none;break-inside:avoid}.portal-shell{margin:0;max-width:none;padding:0}.customer-body{background:white}}
.top-more{position:relative;font-size:.79rem}.top-more>summary{cursor:pointer;padding:10px 12px;border-radius:8px;list-style:none}.top-more>summary:hover{background:#e8eee4}.top-more nav{position:absolute;right:0;top:40px;min-width:195px;border:1px solid var(--border);padding:6px;border-radius:11px;background:white;box-shadow:0 8px 30px #183b2515;z-index:110}.top-more nav a{display:block;padding:10px;border-radius:6px;text-decoration:none}.top-more nav a:hover{background:#edf3e8}.chat-state p{margin-top:5px;line-height:1.5}
