:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#223733;background:#f5f6f2;font-synthesis:none;--ink:#223733;--muted:#78857e;--green:#1a4e42;--line:#e4e8e0;--lime:#d6ed94;--paper:#fff;--orange:#a8612d}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}.shell{display:flex;min-height:100vh}.sidebar{width:228px;flex-shrink:0;background:#173e35;color:#e8f0e3;padding:36px 20px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:13px;letter-spacing:2.7px;font-weight:750;font-size:18px}.brand-mark{width:42px;height:42px;border-radius:12px;background:#d5ebad;color:#173e35;display:grid;place-items:center;font-size:35px;letter-spacing:-4px;padding-right:5px}.brand small{display:block;font-size:9px;font-weight:450;letter-spacing:3.5px;margin-top:6px;color:#a9c0b7}.workspace-label{font-size:9px;letter-spacing:1.5px;color:#a1bcb1;margin:52px 14px 16px}nav{display:flex;flex-direction:column;gap:7px}nav button{border:0;background:transparent;color:#b5ccc1;display:flex;align-items:center;gap:13px;text-align:left;padding:13px 15px;border-radius:8px;font-size:13px;font-weight:550}nav button.active{background:#2c5548;color:#f6ffe8}nav button:hover{background:#284d42}nav .nav-icon{font-size:17px;width:20px;text-align:center}nav .count{margin-left:auto;background:#d9edb1;color:#244536;min-width:19px;border-radius:5px;padding:2px 4px;font-size:10px;text-align:center}.sidebar-footer{margin-top:auto;font-size:11px;line-height:1.6;color:#b4c9bf}.sidebar-footer a{display:block;margin-top:16px;color:#e7f1df;font-size:11px}.sidebar-footer p{font-size:10px;color:#8daa9c}.connection-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#b6d888;margin-right:7px}.main-shell{margin-left:228px;width:calc(100% - 228px)}.demo-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 38px;background:#edeedb;color:#646b49;font-size:10px;border-bottom:1px solid #e1e4cd}.demo-banner b{letter-spacing:1px;margin-right:9px;font-size:9px}.demo-banner label{display:flex;align-items:center;gap:7px;white-space:nowrap}.demo-banner select{max-width:190px;border:1px solid #d2d6bf;padding:5px 7px;border-radius:5px;background:#f9faef;font-size:10px;color:#455d48}.topbar{height:76px;border-bottom:1px solid var(--line);padding:0 38px;display:flex;justify-content:space-between;align-items:center;background:rgba(255,255,255,.55)}.breadcrumb{font-size:12px;color:#8a958d;display:flex;gap:12px}.breadcrumb>span:last-child{color:#344e42}.topbar-right{display:flex;align-items:center;gap:19px}.mode-tag{font-size:8px;font-weight:700;color:#80917d;letter-spacing:1px}.avatar-button,.avatar{display:grid;place-items:center;border-radius:50%;background:#e0e9d7;color:#456144;font-weight:650;border:0}.avatar-button{width:34px;height:34px;font-size:11px}.avatar{width:36px;height:36px;font-size:11px;flex-shrink:0}.avatar.agent{background:#f0e7d7;color:#866335;border-radius:10px}.avatar.riley,.avatar.jace{background:#dfebe1;color:#315641}main{max-width:1450px;margin:0 auto;padding:35px 38px 24px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.eyebrow{font-size:9px;letter-spacing:1.6px;text-transform:uppercase;font-weight:650;color:#839078;margin-bottom:10px}h1{font-size:30px;letter-spacing:-1.2px;font-weight:550;line-height:1.2;margin:0 0 8px}h2{font-size:16px;font-weight:600;margin:0}h3{font-size:14px;margin:0 0 8px;font-weight:650}p{line-height:1.6}.subtitle{margin:0;font-size:12px;color:var(--muted)}.button{display:inline-flex;justify-content:center;align-items:center;gap:7px;border:1px solid var(--line);background:#fff;color:#355046;padding:11px 15px;border-radius:7px;font-size:11px;font-weight:600;min-height:39px}.button.primary{background:var(--green);border-color:var(--green);color:#fff}.button.primary:hover{background:#123f35}.button.light{background:#f1f5e9;border-color:#dfe7d5}.button.danger{color:#a05742;background:#fff7f3}.button.small{padding:7px 10px;min-height:31px;font-size:10px}.button:disabled{cursor:wait;opacity:.55}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:29px}.stat{background:#fff;border:1px solid var(--line);border-radius:10px;padding:20px 21px;min-height:114px}.stat-label{font-size:10px;color:#7c8a7e;display:flex;align-items:center;gap:8px}.stat-value{font-size:29px;letter-spacing:-1px;font-weight:550;margin-top:11px;line-height:1}.stat-note{font-size:9px;color:#909b90;margin-top:8px}.stat.highlight{background:#eaf0dd;border-color:#dbe4c9}.stat.highlight .stat-value{color:#496534}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 294px;gap:23px}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;gap:12px}.section-header .small-copy{font-size:10px;color:#8a9688}.filter-row{display:flex;align-items:center;gap:6px;margin:0 0 16px}.chip{font-size:10px;border:1px solid transparent;background:transparent;color:#86917f;padding:7px 12px;border-radius:6px}.chip.active{background:#e6eede;color:#49623c;border-color:#d8e1cf}.batch-list{display:flex;flex-direction:column;gap:12px}.batch-card{border:1px solid var(--line);background:#fff;border-radius:10px;padding:20px;transition:box-shadow .15s;cursor:pointer;position:relative;overflow:hidden}.batch-card:hover{box-shadow:0 5px 18px #263d3910}.batch-card:before{content:"";position:absolute;left:0;top:20px;bottom:20px;width:3px;background:#c3d8b2;border-radius:4px}.batch-card.urgent:before{background:#c68a64}.batch-card .card-top{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:12px}.batch-id{font-size:9px;letter-spacing:1px;color:#859181}.badges{display:flex;gap:6px;flex-wrap:wrap}.badge{font-size:8px;letter-spacing:.3px;border-radius:4px;padding:4px 6px;background:#f1f3ed;color:#7c8974;white-space:nowrap}.badge.high{background:#f4ecda;color:#967630}.badge.urgent,.badge.blocked{background:#f8eade;color:#a06439}.badge.in_progress{background:#eaf0e1;color:#667b43}.badge.complete,.badge.approved,.badge.active{background:#e3efe7;color:#397251}.badge.open{background:#f4ebda;color:#94763d}.badge.agent{background:#eee7f2;color:#856998}.batch-card h3{font-size:15px;letter-spacing:-.2px;margin-bottom:6px}.batch-description{font-size:10px;color:#889382;margin:0 0 18px;line-height:1.6}.batch-meta{display:flex;align-items:center;gap:16px;font-size:10px;color:#758372;flex-wrap:wrap}.owner{display:flex;align-items:center;gap:6px}.owner .avatar{width:23px;height:23px;font-size:8px}.batch-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:15px;padding-top:14px;border-top:1px solid #edf0e8;font-size:9px;color:#9aa391;gap:15px}.progress-block{display:flex;align-items:center;gap:9px;min-width:110px}.progress-track{width:76px;height:4px;background:#eef1e9;border-radius:4px;overflow:hidden}.progress-track i{display:block;height:100%;background:#7d9d66;border-radius:4px}.side-card{border:1px solid var(--line);border-radius:10px;background:#fff;padding:20px;margin-bottom:16px}.side-card.tint{background:#eaf0df;border-color:#dce6cd}.side-card p{font-size:11px;color:#839077;margin:8px 0 16px}.side-card h3{font-size:13px}.side-number{font-size:36px;color:#496631;letter-spacing:-1px;margin:18px 0 0}.side-card .button{width:100%}.side-icon{width:32px;height:32px;border-radius:9px;background:#dce6cb;display:grid;place-items:center;font-size:16px;color:#627a47;margin-bottom:17px}.mini-label{font-size:9px;text-transform:uppercase;letter-spacing:1px;color:#7d8f6a}.timeline-row{display:flex;align-items:flex-start;gap:10px;margin-top:18px;font-size:10px;color:#809174;line-height:1.6}.timeline-dot{flex-shrink:0;width:6px;height:6px;background:#acbe95;margin-top:5px;border-radius:50%}.timeline-row strong{display:block;color:#52694a;font-weight:550;font-size:10px}.notice{padding:13px 15px;background:#f2f1e5;border:1px solid #e6e5d5;border-radius:7px;color:#858162;font-size:10px;line-height:1.65}.notice.info{background:#edf3ed;border-color:#dfe8dc;color:#678060}.notice.danger{background:#faece4;border-color:#eadacc;color:#9a6649}.panel{background:white;border:1px solid var(--line);border-radius:10px;padding:24px}.panel p{font-size:12px;color:#809078}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px}.empty{padding:36px 24px;text-align:center;color:#899683;font-size:12px;border:1px dashed #d8e1cf;border-radius:9px}.empty strong{display:block;color:#536c47;font-size:15px;margin-bottom:8px}.chat-layout{display:grid;grid-template-columns:230px minmax(0,1fr);height:calc(100vh - 290px);min-height:450px;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:white}.thread-list{border-right:1px solid var(--line);padding:10px;overflow-y:auto}.thread-item{border:0;background:transparent;border-radius:7px;display:block;text-align:left;padding:13px 12px;width:100%;color:#6e8165;font-size:11px;margin-bottom:5px}.thread-item strong{display:block;font-size:11px;font-weight:550;line-height:1.5}.thread-item span{display:block;font-size:8px;margin-top:6px;color:#a0ab98;text-transform:uppercase;letter-spacing:.7px}.thread-item.active{background:#eaf0e2;color:#46613d}.conversation{display:flex;flex-direction:column;min-height:0;min-width:0}.conversation-header{padding:19px 23px;border-bottom:1px solid var(--line)}.conversation-header h3{font-size:12px;margin:0 0 5px}.conversation-header p{font-size:9px;color:#8c9984;margin:0}.messages{overflow:auto;flex:1;padding:23px;display:flex;flex-direction:column;gap:22px;min-height:120px}.message{display:flex;gap:10px}.message-body{min-width:0}.message-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:10px;margin-bottom:6px}.message-head strong{font-weight:600}.message-head time{font-size:8px;color:#a2ac9c}.message-text{font-size:11px;color:#718168;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.message.mock .message-text{background:#f5f3ed;padding:12px;border-radius:0 8px 8px 8px;color:#88734b}.message.event .message-text{padding:10px;border:1px solid #e1e9d9;border-radius:6px;background:#f6f9f2}.composer{padding:14px 20px 20px;border-top:1px solid var(--line)}.composer-top{display:flex;gap:9px;align-items:center;font-size:9px;color:#8b9784;margin-bottom:10px}.composer-top select{font-size:10px;padding:6px;border:1px solid var(--line);border-radius:5px;background:#f9faf5;max-width:190px;color:#5b7552}.compose-row{display:flex;gap:10px}.compose-row textarea{flex:1;min-height:54px;resize:vertical}.form-field{margin-bottom:16px}.form-field label{display:block;font-size:10px;font-weight:550;color:#667c5a;margin-bottom:7px}.form-field input,.form-field textarea,.form-field select,.compose-row textarea{width:100%;padding:11px 12px;border:1px solid #dce4d5;border-radius:6px;background:#fdfefa;color:#37522e;font-size:12px}.form-field textarea{min-height:90px;resize:vertical}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.help{font-size:9px;color:#97a18d;margin-top:6px;line-height:1.6}.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.request-card{padding:22px;border:1px solid var(--line);border-radius:9px;background:#fff;margin-bottom:13px}.request-card p{font-size:12px;color:#6e8164;line-height:1.75;white-space:pre-wrap}.request-meta{display:flex;justify-content:space-between;font-size:10px;gap:10px;color:#94a189;margin:13px 0}.request-card .request-context{font-size:9px;margin:12px 0 17px;color:#839576}.member-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.member-card{padding:21px;background:white;border:1px solid var(--line);border-radius:10px}.member-head{display:flex;align-items:center;gap:11px;margin-bottom:16px}.member-card h3{font-size:12px;margin:0 0 5px}.member-card .title{font-size:9px;color:#8c9b80;line-height:1.6;margin:15px 0}.member-card .scope{font-size:9px;color:#88927e;line-height:1.65;padding-top:13px;border-top:1px solid var(--line);min-height:47px}.member-card .button{margin-top:13px;width:100%}.catalogue-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:20px}.product-art{height:144px;border-radius:7px;display:flex;align-items:center;justify-content:center;background:#eff2e8;gap:16px;margin-bottom:20px;position:relative}.part-shape{width:75px;height:64px;border:2px solid #a5b19b;background:linear-gradient(140deg,#dae1d2,#b8c3ac);transform:rotate(-14deg) skew(8deg);box-shadow:5px 7px 0 #c0cab4;position:relative}.part-shape:after{content:"";position:absolute;inset:10px;border:1px dashed #85957b}.part-shape.lid{height:30px;width:82px;transform:rotate(13deg) skew(-6deg)}.art-caption{position:absolute;bottom:10px;font-size:8px;letter-spacing:1px;color:#97a088}.inventory-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:22px}.inventory-grid div{padding:13px;background:#f6f8f1;border-radius:7px}.inventory-grid strong{display:block;font-size:22px;font-weight:550;color:#627b4e;margin-bottom:5px}.inventory-grid span{font-size:8px;color:#919e84;text-transform:uppercase;letter-spacing:.6px}.detail-list{display:grid;grid-template-columns:120px 1fr;gap:11px;font-size:11px;line-height:1.7;margin-top:22px}.detail-list dt{color:#98a08f}.detail-list dd{margin:0;color:#526b43}.adapter{display:flex;justify-content:space-between;gap:15px;padding:17px 0;border-top:1px solid var(--line)}.adapter h3{font-size:11px;margin:0 0 5px}.adapter p{font-size:10px;margin:0;color:#92a087}.legal-footer{margin:20px 38px 28px;font-size:9px;color:#9ba58f}.loading{padding:80px;text-align:center;color:#91a080}#toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%) translateY(100px);padding:13px 20px;border-radius:8px;background:#274e3d;color:#f3f9ea;font-size:12px;z-index:100;box-shadow:0 6px 24px #183b3425;transition:transform .2s;max-width:90vw}#toast.visible{transform:translateX(-50%) translateY(0)}#toast.error{background:#8f5139}dialog{border:1px solid #dce5d3;border-radius:13px;padding:0;width:min(640px,calc(100vw - 30px));max-height:90vh;background:#fcfdf9;color:var(--ink);box-shadow:0 20px 90px #18352540}dialog::backdrop{background:#1f352a70;backdrop-filter:blur(2px)}.modal-head{padding:23px 26px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:start;gap:20px}.modal-head h2{font-size:18px;line-height:1.4}.modal-head p{font-size:10px;color:#829275;margin:8px 0 0}.close-button{border:0;background:#edf2e5;color:#7b906b;border-radius:50%;width:28px;height:28px;font-size:19px;flex-shrink:0}.modal-content{padding:24px 26px}.modal-content .notice{margin-bottom:21px}.divider{height:1px;background:var(--line);margin:24px 0}.issue-card{border-left:3px solid #d4ad72}.issue-card h3{font-size:11px}.issue-card p{font-size:10px}.status-error{color:#9d573a;font-size:12px}.day-summary{margin-top:25px;padding:20px 23px;background:#eef2e5;border-radius:9px;border:1px solid #e0e8d2}.day-summary p{font-size:11px;color:#7b8d69;margin:8px 0 0}.sr-only{position:absolute;clip:rect(0,0,0,0);height:1px;width:1px;overflow:hidden}
@media(min-width:1450px){main{padding:40px 50px}.topbar,.demo-banner{padding-left:50px;padding-right:50px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 320px}}
@media(max-width:1150px){.sidebar{width:190px;padding:30px 15px}.main-shell{margin-left:190px;width:calc(100% - 190px)}main{padding:28px 25px}.topbar,.demo-banner{padding-left:25px;padding-right:25px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 245px}.stat{padding:17px}.member-grid{grid-template-columns:repeat(2,1fr)}.chat-layout{grid-template-columns:185px minmax(0,1fr)}.catalogue-grid{grid-template-columns:1fr}.brand{font-size:15px}.stats{gap:10px}.stat-label{font-size:9px}}
@media(max-width:850px){.dashboard-grid{grid-template-columns:1fr}.dashboard-aside{display:grid;grid-template-columns:1fr 1fr;gap:15px}.side-card{margin:0}.stats{grid-template-columns:repeat(2,1fr)}.two-col{grid-template-columns:1fr}.chat-layout{height:calc(100vh - 280px)}.chat-layout{grid-template-columns:155px minmax(0,1fr)}.chat-layout .messages{padding:15px}.topbar-right .mode-tag{display:none}}
@media(max-width:640px){body{padding-bottom:73px}.sidebar{width:100%;height:65px;inset:auto 0 0;background:#fff;border-top:1px solid #dce4d5;padding:0 5px max(0px,env(safe-area-inset-bottom));z-index:20}.brand,.workspace-label,.sidebar-footer{display:none}nav{flex-direction:row;justify-content:space-around;height:65px;gap:0}nav button{flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:8px 2px;border-radius:0;color:#9aa891;font-size:8px;flex:1;position:relative}nav button.active{color:#2e613e;background:transparent}nav button.active:before{content:"";position:absolute;top:0;width:25px;height:2px;background:#547b42}nav button:hover{background:#f5f8f0}nav .nav-icon{font-size:18px}nav .count{position:absolute;top:4px;right:22%;font-size:7px;min-width:13px;padding:2px}.main-shell{margin:0;width:100%}.demo-banner{align-items:flex-start;padding:9px 16px;gap:10px;font-size:8px;line-height:1.5}.demo-banner>span{max-width:53%}.demo-banner b{display:block;margin:0;font-size:8px;letter-spacing:1px}.demo-banner label{font-size:8px;flex-direction:column;align-items:flex-end;gap:3px}.demo-banner select{max-width:150px;font-size:9px;padding:4px}.topbar{height:54px;padding:0 20px}.breadcrumb{font-size:10px}.avatar-button{width:29px;height:29px;font-size:9px}main{padding:27px 19px 15px}.page-heading{align-items:flex-start;gap:12px;margin-bottom:22px}h1{font-size:26px;letter-spacing:-.9px}.eyebrow{font-size:8px;margin-bottom:8px}.subtitle{font-size:10px;line-height:1.6;max-width:220px}.page-heading>.button{font-size:10px;padding:10px;min-height:36px;white-space:nowrap;margin-top:19px}.stats{gap:9px;margin-bottom:26px}.stat{padding:16px;min-height:101px}.stat-value{font-size:25px;margin-top:10px}.stat-label{font-size:9px}.stat-note{font-size:8px}.section-header h2{font-size:14px}.section-header .small-copy{font-size:8px}.batch-card{padding:17px}.batch-card h3{font-size:14px}.batch-description{font-size:10px;margin-bottom:14px}.batch-meta{font-size:9px;gap:12px}.batch-bottom{font-size:8px;gap:8px}.dashboard-aside{grid-template-columns:1fr}.side-card{padding:19px}.dashboard-grid{gap:23px}.side-number{font-size:30px}.legal-footer{font-size:8px;margin:16px 19px 10px;line-height:1.65}.chat-layout{display:flex;flex-direction:column;min-height:540px;height:calc(100dvh - 290px)}.thread-list{display:flex;gap:6px;overflow-x:auto;min-height:63px;border-right:0;border-bottom:1px solid var(--line);padding:8px}.thread-item{flex-shrink:0;width:135px;margin:0;padding:8px}.thread-item strong{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.thread-item span{font-size:7px;margin-top:3px}.conversation{flex:1}.conversation-header{padding:14px}.conversation-header h3{font-size:10px}.conversation-header p{font-size:8px}.messages{gap:17px}.message .avatar{width:27px;height:27px;font-size:9px}.message-head{font-size:9px}.message-text{font-size:10px}.composer{padding:12px}.compose-row{gap:6px}.compose-row .button{padding:10px}.composer-top{font-size:8px}.composer-top select{font-size:9px}.member-grid{grid-template-columns:1fr 1fr;gap:9px}.member-card{padding:15px 12px}.member-head{flex-direction:column;align-items:flex-start;gap:10px}.member-card h3{font-size:11px}.member-card .title,.member-card .scope{font-size:8px}.member-card .scope{min-height:62px}.badge{font-size:7px}.request-card{padding:17px}.request-card p{font-size:11px}.request-meta{font-size:8px}.panel{padding:20px}.detail-list{grid-template-columns:95px 1fr;font-size:10px}.inventory-grid{gap:8px}.inventory-grid div{padding:10px}.inventory-grid strong{font-size:19px}.inventory-grid span{font-size:7px}.form-row{grid-template-columns:1fr}.modal-head,.modal-content{padding:21px}.modal-head h2{font-size:16px}.modal-content .form-row{grid-template-columns:1fr 1fr}.modal-content .form-row .form-field select{font-size:10px}.day-summary{padding:17px}.day-summary p{font-size:10px}#toast{bottom:82px;font-size:11px;min-width:220px}.request-context{overflow-wrap:anywhere}}

.mt11{margin-top:11px!important}.mt12{margin-top:12px!important}.mt18{margin-top:18px!important}.mt20{margin-top:20px!important}.mt23{margin-top:23px!important}.mt27{margin-top:27px!important}.mb18{margin-bottom:18px!important}.mb20{margin-bottom:20px!important}.mb22{margin-bottom:22px!important}.m15{margin:15px!important}.full-width{max-width:none!important}.underlined{text-decoration:underline}.progress-track{appearance:none;border:0;display:block}.progress-track::-webkit-progress-bar{background:#eef1e9;border-radius:4px}.progress-track::-webkit-progress-value{background:#7d9d66;border-radius:4px}.progress-track::-moz-progress-bar{background:#7d9d66;border-radius:4px}

.connection-status{padding:9px 38px;border-bottom:1px solid #dfe6d7;background:#edf2e7;color:#738769;font-size:9px;line-height:1.6;display:flex;justify-content:space-between;align-items:center;gap:15px}.connection-status b{font-weight:600}.connection-status button{padding:12px 10px;border:0;background:transparent;color:#4c7348;text-decoration:underline;white-space:nowrap;font:inherit;font-size:11px;min-height:44px;display:inline-flex;align-items:center;touch-action:manipulation}.connection-status.unavailable{background:#f7eddf;border-color:#e9dcc8;color:#96724c}.connection-status.unavailable button{color:#8a6135}.connection-status.checking{background:#f2f1e8;color:#8f8b70}.connection-empty{max-width:600px;margin:35px auto}.connection-empty h1{font-size:26px}.connection-empty p{font-size:12px;line-height:1.8}.connection-status button:disabled{opacity:.5;cursor:wait}@media(max-width:640px){.connection-status{padding:8px 16px;font-size:10px;gap:10px;align-items:stretch}.connection-status button{font-size:12px;min-height:44px;padding:12px 8px}.connection-status span{max-width:70%;align-self:center}.chat-layout{height:calc(100dvh - 330px)}}

.stage-list{display:flex;flex-direction:column;gap:7px}.stage-row{display:flex;width:100%;align-items:center;gap:11px;border:1px solid #dfe7d8;background:#f8faf4;border-radius:7px;padding:13px 12px;text-align:left;color:#496c3c}.stage-row:hover{background:#eef4e7}.stage-number{width:24px;height:24px;border-radius:50%;background:#e4ecd9;color:#698653;display:grid;place-items:center;font-size:10px;flex-shrink:0}.stage-copy{flex:1;min-width:0}.stage-copy strong{display:block;font-size:11px;font-weight:600}.stage-copy small{display:block;font-size:9px;color:#8a9b7c;margin-top:4px;line-height:1.5}.stage-copy small.stage-wait{color:#a18a60;font-size:8px}.stage-arrow{color:#a7b79a;font-size:22px}.queue-list{display:flex;flex-direction:column;gap:9px}.queue-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:12px 0;border-bottom:1px solid #e7eddf}.queue-row strong{font-size:10px;font-weight:600;display:block}.queue-row small{display:block;font-size:9px;color:#8d9e7e;margin-top:5px;line-height:1.5}.production-batch+.production-batch{margin-top:30px;padding-top:22px;border-top:1px solid #e2e9d8}.production-batch .divider{margin:15px 0}.confirmation-check{display:flex;align-items:flex-start;gap:9px;font-size:10px;line-height:1.65;color:#6c845a}.confirmation-check input{margin-top:3px;accent-color:#3e713c}.badge.queued,.badge.pending{background:#f2eedb;color:#9a8848}.badge.claimed{background:#e7edf4;color:#687f98}.queue-row .badge{flex-shrink:0}@media(max-width:640px){.stage-row{gap:8px;padding:11px 9px}.stage-copy small{font-size:8px}.stage-copy strong{font-size:10px}.stage-number{width:21px;height:21px;font-size:9px}.stage-row .badge{font-size:6px}.confirmation-check{font-size:9px}}

.evidence-launch{margin-left:8px}.evidence-list{display:flex;flex-direction:column;gap:10px}.evidence-row{display:flex;align-items:center;gap:12px;text-align:left;width:100%;border:1px solid #e0e7d8;background:#f7faf2;border-radius:8px;padding:14px;color:#526f40}.evidence-row:hover{background:#edf3e3}.evidence-glyph{font-size:26px;color:#94a582;flex-shrink:0}.evidence-row-copy{flex:1;min-width:0}.evidence-row-copy strong{font-size:11px;display:block;overflow-wrap:anywhere}.evidence-row-copy small{display:block;font-size:9px;line-height:1.6;color:#8b9b7c;margin-top:6px;white-space:pre-wrap;overflow-wrap:anywhere}.evidence-row .badge{font-size:7px;flex-shrink:0}.evidence-image-frame{background:#edf1e6;border:1px solid #dde6d3;border-radius:8px;min-height:140px;display:grid;place-items:center;overflow:hidden}.evidence-photo{display:block;width:100%;height:auto;max-height:420px;object-fit:contain}.evidence-caption{font-size:12px;color:#5c7750;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin:17px 0 10px}.evidence-meta{font-size:9px;line-height:1.7;color:#91a082}.evidence-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:16px}.evidence-history article{border-left:2px solid #cfddbb;padding:12px 14px;margin-top:14px;background:#f6f9f0;border-radius:0 6px 6px 0}.evidence-history strong{font-size:10px;font-weight:600;color:#667e50}.evidence-history .section-header span{font-size:8px;color:#9baa8c}.evidence-history p{font-size:10px;color:#7f9170;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0}.evidence-history small{font-size:8px;color:#9cac8e}.evidence-history p.evidence-reason{color:#8c885e}.evidence-policy{font-size:9px}.evidence-policy b{font-size:10px}.form-field input[type=file]{padding:12px;font-size:10px;background:#f3f7eb}input[type=file]::file-selector-button{border:1px solid #cfdcbe;border-radius:5px;background:#e6efda;color:#537340;padding:7px 9px;margin-right:10px;font:inherit;cursor:pointer}@media(max-width:640px){.evidence-launch{margin:8px 0 0;display:flex}.evidence-row{padding:12px 10px;gap:9px}.evidence-row .badge{font-size:6px}.evidence-row-copy strong{font-size:10px}.evidence-row-copy small{font-size:8px}.evidence-glyph{font-size:22px}.evidence-photo{max-height:320px}.evidence-actions .button{font-size:9px}.evidence-caption{font-size:11px}}

/* Fusion designs (KettleBridge read-only) */
.fusion-designs-panel{margin:0 0 1.5rem;padding:1.1rem 1.2rem;border:1px solid rgba(20,44,41,.12);border-radius:16px;background:linear-gradient(180deg,#f4faf7,#eef6f2)}
.fusion-design-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));margin-top:.85rem}
.fusion-design-card{background:#fff;border:1px solid rgba(20,44,41,.1);border-radius:14px;padding:1rem 1.05rem;box-shadow:0 1px 0 rgba(20,44,41,.04)}
.fusion-design-card h3{margin:.35rem 0 .7rem;font-size:1.05rem}
.badge.fusion{background:#143c34;color:#e8f7f0;letter-spacing:.02em}
.fusion-compact{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem .85rem;margin:0 0 1rem;padding:.75rem 1rem;border-radius:12px;border:1px solid rgba(20,44,41,.12);background:#f3f8f5}
.fusion-compact strong{font-weight:650}
.fusion-compact .mini-label{margin-right:.15rem}
.fusion-more{border:0;background:transparent;color:#1a4e42;font:inherit;font-size:13px;font-weight:650;text-decoration:underline;padding:8px 0;min-height:44px;cursor:pointer;touch-action:manipulation}
.yard-camera-card{margin-top:1rem}
.yard-camera-card.offline{opacity:.92;border-style:dashed}
.badge.good{background:#d8f3e6;color:#0d3b2e}
.badge.hold{background:#f3e6d8;color:#6a3b12}
.store-fusion-price{margin:.15rem 0 .45rem;font-size:.95rem;color:#1a4e42}
.store-map-missing{border-style:dashed}
.store-unmatched{margin:.4rem 0 0;padding-left:1.1rem}
.store-unmatched li{margin:.35rem 0;overflow-wrap:anywhere}

.dxf-preview-thumb{width:56px;height:56px;border-radius:10px;border:1px solid rgba(20,44,41,.12);background:#f7faf8;object-fit:contain;display:block;cursor:zoom-in;flex:0 0 auto}
.dxf-preview-placeholder{width:56px;height:56px;border-radius:10px;border:1px dashed rgba(20,44,41,.22);background:linear-gradient(135deg,#eef6f2,#f7faf8);display:grid;place-items:center;color:#14322a;font-size:.7rem;letter-spacing:.04em;flex:0 0 auto}
.fusion-design-card .dxf-preview-row{display:flex;gap:.85rem;align-items:flex-start;margin:.35rem 0 .55rem}
.dxf-preview-large{max-width:100%;max-height:70vh;width:auto;height:auto;border:1px solid rgba(20,44,41,.12);border-radius:12px;background:#f7faf8;display:block;margin:0 auto}
.dxf-file-meta{font-size:.92rem;line-height:1.45}
.dxf-export-title{margin:0 0 .35rem;font-size:1.05rem}


/* Phone Tailscale / mobile Safari·Chrome polish
   Goal: readable Fusion + DXF cards, 44px+ taps, no broken side scroll. */
@media(max-width:640px){
.shell,.main-shell,main,#content{max-width:100%;overflow-x:hidden}
.fusion-designs-panel{padding:.85rem .8rem;margin:0 0 1.1rem;border-radius:14px}
.fusion-design-grid{grid-template-columns:1fr;gap:.8rem;margin-top:.7rem}
.fusion-design-card{padding:.85rem .9rem;border-radius:12px;min-width:0}
.fusion-design-card h3{font-size:1rem;line-height:1.35;overflow-wrap:anywhere;margin:.25rem 0 .55rem}
.fusion-design-card .section-header{align-items:flex-start;gap:8px;flex-wrap:wrap}
.fusion-design-card .detail-list{grid-template-columns:88px minmax(0,1fr);gap:8px;font-size:12px;margin-top:14px}.fusion-design-card .badge,.fusion-designs-panel .badge{font-size:11px;padding:5px 8px;letter-spacing:.2px}
.fusion-design-card .detail-list dd,.fusion-design-card .help,.dxf-file-meta{overflow-wrap:anywhere}
.fusion-design-card .help{font-size:11px;line-height:1.55}
.dxf-preview-row{gap:.7rem;align-items:center}
.dxf-preview-thumb,.dxf-preview-placeholder{width:108px;height:108px;min-width:108px;min-height:108px;border-radius:12px;font-size:.78rem;font-weight:650}
.dxf-preview-placeholder{touch-action:manipulation}
.dxf-export-title{font-size:1rem;overflow-wrap:anywhere}
.fusion-compact{flex-direction:column;align-items:flex-start;gap:.4rem .55rem;padding:.7rem .85rem}
.fusion-compact strong{font-size:13px;overflow-wrap:anywhere}
.fusion-compact span{font-size:10px;line-height:1.55;overflow-wrap:anywhere}
.catalogue-grid{gap:14px}
.catalogue-grid .panel{padding:16px;min-width:0}
.product-art{height:120px;margin-bottom:14px}
nav button{min-height:52px;min-width:0;padding:6px 1px;font-size:9px;gap:3px;touch-action:manipulation}
nav .nav-icon{font-size:19px}
.button{min-height:44px;padding:12px 14px;touch-action:manipulation}
.button.small{min-height:40px;padding:9px 12px}
.chip{min-height:40px;padding:10px 14px;font-size:11px;touch-action:manipulation}
.avatar-button{width:44px;height:44px;min-width:44px;min-height:44px}
.close-button{width:44px;height:44px;min-width:44px;min-height:44px;font-size:22px}
.demo-banner select{min-height:44px;font-size:13px;padding:8px 10px;max-width:min(180px,48vw)}
.batch-card,.stage-row,.evidence-row,.thread-item,.request-card{touch-action:manipulation}
.stats{grid-template-columns:1fr 1fr}
.member-grid{grid-template-columns:1fr}
.inventory-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.badge{font-size:11px;padding:5px 7px}.detail-list{font-size:12px}#toast{bottom:max(88px,calc(72px + env(safe-area-inset-bottom)));left:50%;right:auto;width:min(92vw,340px)}
dialog{width:min(100vw - 16px,640px);max-height:min(92dvh,920px)}
.modal-head .close-button{flex-shrink:0}
}
@media(max-width:390px){
nav button{font-size:8px}
.fusion-design-card .detail-list{grid-template-columns:78px minmax(0,1fr);font-size:12px}
.dxf-preview-thumb,.dxf-preview-placeholder{width:108px;height:108px;min-width:108px;min-height:108px}
}


/* Staff join (Tailscale workshop accounts) + banner invite link */
.demo-banner .banner-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.banner-join{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;border-radius:7px;background:#dfe8cf;color:#355046;font-size:11px;font-weight:650;touch-action:manipulation;white-space:nowrap}
.banner-join:hover{background:#d2dfbf}
body.join-page{position:relative;min-height:100vh;margin:0;background:#f5f6f2;overflow-x:clip}
body.join-page::before{content:"";position:absolute;z-index:0;left:0;right:0;top:0;height:210px;background:linear-gradient(180deg,#142c29 0%,#1f4339 100%);pointer-events:none}
.join-shell{position:relative;z-index:1;width:min(520px,100%);max-width:520px;margin:0 auto;padding:28px 18px 40px;box-sizing:border-box}
.join-card{width:100%;max-width:100%;min-width:0}
.join-brand{display:inline-flex;align-items:center;gap:12px;color:#e8f0e3;letter-spacing:2.4px;font-weight:750;font-size:16px;margin:8px 0 28px;min-height:44px}
.join-brand .brand-mark{width:42px;height:42px;border-radius:12px;background:#d5ebad;color:#173e35;display:grid;place-items:center;font-size:32px;letter-spacing:-4px;padding-right:5px}
.join-brand small{display:block;font-size:9px;font-weight:450;letter-spacing:3.2px;margin-top:5px;color:#a9c0b7}
.join-card{padding:28px 24px}
.join-card h1{font-size:26px;letter-spacing:-.8px;margin:0 0 10px}
.join-lead{font-size:13px;color:#6e8164;line-height:1.65;margin:0 0 16px}
.join-actions{justify-content:space-between;align-items:stretch;flex-wrap:wrap;gap:10px;margin-top:8px}
.join-actions .button{min-height:44px;flex:1 1 160px;touch-action:manipulation}
.join-card .form-field input,.join-card .form-field select{min-height:48px;font-size:16px;padding:12px 14px;touch-action:manipulation}
.join-card .form-field label{font-size:12px;margin-bottom:8px}
.join-footnote{margin:22px 4px 0;font-size:10px;color:#9aa891;line-height:1.6;text-align:center}
.join-switch{display:flex;gap:8px;margin:0 0 16px}
.join-switch button{flex:1;min-height:44px;border-radius:8px;border:1px solid #d5ddd0;background:#f7f8f4;color:#355046;font-size:13px;font-weight:650}
.join-switch button[aria-pressed="true"]{background:#173e35;color:#f3f7ef;border-color:#173e35}
.join-switch[hidden],#legacy-form[hidden]{display:none}
.member-card .form-actions{flex-wrap:wrap;margin-top:12px}
#signup-error,#signin-error,#reset-error{margin:4px 0 12px;font-size:12px}
.member-card .badge.workshop{background:#dce9df;color:#2f5d46}
.mode-tag.workshop{color:#3d6a52}
@media(max-width:640px){
  .demo-banner{flex-direction:column;align-items:stretch;padding:10px 16px;gap:8px}
  .demo-banner .banner-actions{justify-content:space-between}
  .banner-join{min-height:44px;font-size:12px}
  .join-shell{padding:20px 14px 36px}
  .join-card{padding:22px 16px}
  .join-actions .button{flex:1 1 100%}
}

.batch-card-main{display:flex;gap:14px;align-items:flex-start}
.batch-card-body{min-width:0;flex:1}
.part-thumb{width:64px;height:64px;border-radius:10px;border:1px solid rgba(20,44,41,.12);background:#f7faf8;object-fit:contain;flex:0 0 auto;display:block}
.part-thumb-card{width:72px;height:72px}
.part-thumb-lg{width:108px;height:108px;border-radius:12px}
.part-thumb-bom{width:48px;height:48px;border-radius:8px}
.part-thumb-inline{width:44px;height:44px;border-radius:8px}
.part-thumb-fallback{display:grid;place-items:center;color:#5a7264;font-size:18px;font-weight:650;background:linear-gradient(135deg,#eef6f2,#f7faf8)}
.cut-verify{margin:14px 0 18px;padding:14px;border:1px solid #dfe8dc;border-radius:10px;background:#f4f8f1}
.cut-verify-thumbs{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 8px}
.product-art.has-photo{flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:12px 10px 28px;background:#f7faf8}
.product-art.has-photo{height:auto;min-height:144px}
.product-art-img{max-width:100%;max-height:110px;object-fit:contain;display:block}
button.part-enlarge{appearance:none;border:1px solid rgba(20,44,41,.12);background:#f7faf8;padding:0;margin:0;border-radius:10px;cursor:zoom-in;line-height:0;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;touch-action:manipulation;color:#14322a;max-width:100%}
button.part-enlarge img{border:0;pointer-events:none;display:block}
.part-preview-icon{width:36px;height:28px;border:2px solid currentColor;border-radius:3px;display:block;position:relative}
.part-preview-icon:before{content:"";position:absolute;left:5px;right:5px;top:12px;border-top:2px dashed currentColor}
.part-preview-empty{text-align:center;padding:8px 4px 0}
.part-preview-empty .part-preview-icon{width:120px;height:88px;margin:0 auto 14px}
.part-preview-empty .part-preview-icon:before{top:42px;left:16px;right:16px}
.part-preview-empty strong{display:block;color:#223733;margin-bottom:6px}
.dxf-preview-copy{min-width:0;flex:1 1 0%;max-width:100%;overflow-wrap:anywhere}
.dxf-preview-row,.fusion-designs-panel,.fusion-design-card,.fusion-compact{min-width:0;max-width:100%}
.shell,.main-shell{min-width:0}
.fusion-design-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}
.fusion-design-card .detail-list dd,.dxf-file-meta{min-width:0;overflow-wrap:anywhere}
.dxf-preview-placeholder.has-preview{padding:0;overflow:hidden}
input.design-file-input{display:block;width:100%;max-width:100%;font-size:14px;margin-top:6px}
.fusion-design-card .button.danger{margin-top:12px}
.dxf-preview-placeholder.has-preview .dxf-preview-thumb{width:100%;height:100%;min-width:0;min-height:0;border:0}
#toast:not(.visible),#toast:empty{visibility:hidden;pointer-events:none}
.product-art-parts{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
@media(max-width:640px){
.batch-card-main{gap:10px}
.part-thumb-card{width:56px;height:56px}
.cut-verify{padding:12px}
.part-thumb-lg{width:96px;height:96px}
.product-art-img{max-height:96px}
.product-art.has-photo{height:auto;min-height:0}
.sidebar{z-index:40}
#toast{top:max(12px,env(safe-area-inset-top,0px));bottom:auto;z-index:30;width:min(92vw,340px);max-width:92vw;left:50%;right:auto;transform:translateX(-50%) translateY(-160%)}
#toast.visible{transform:translateX(-50%) translateY(0)}
.demo-banner,.topbar,.page-heading,.demo-banner label,.banner-actions{min-width:0;max-width:100%}
.demo-banner label{white-space:normal}
html,body{max-width:100%}
}
.join-steps{margin:8px 0 16px;padding-left:20px;font-size:13px;line-height:1.6;color:#355046}.join-steps li{margin-bottom:6px;overflow-wrap:anywhere}
.close-button:focus,.sms-close:focus{outline:none}
.close-button:focus-visible,.sms-close:focus-visible{outline:2px solid #1a4e42;outline-offset:3px}
