:root{--ink:#082b60;--muted:#5c7186;--paper:#f4f8fc;--line:#dce6ef;--wood:#008b9b;--green:#082f6b;--cream:#e8f7fa;--red:#a74639;--white:#fff;--shadow:0 8px 30px #082f6b08}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.5 "Segoe UI",Arial,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}button:focus-visible,a:focus-visible{outline:3px solid #00a8b5;outline-offset:3px}input:focus,textarea:focus,select:focus{outline:2px solid #00a8b5;outline-offset:1px}a{color:var(--green)}button svg,a svg{width:18px;height:18px;flex-shrink:0}h1,h2,h3,p{margin:0}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:7px;padding:9px 14px;background:white;color:var(--ink);font-weight:600;transition:background .15s,box-shadow .15s}button:hover{background:#eaf5fa}.primary{background:var(--green);color:#fff;border-color:var(--green)}.primary:hover{background:#064b80}.ghost{background:transparent;border-color:transparent}.small{padding:6px 10px;font-size:12px}.danger{color:var(--red)}.muted{color:var(--muted)}.eyebrow{text-transform:uppercase;letter-spacing:1.9px;font-size:10px;font-weight:700;color:var(--muted)}.shell{display:grid;grid-template-columns:238px 1fr;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:#ffffff;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:35px 21px 20px}.brand{display:flex;align-items:center;gap:10px;margin-bottom:45px;padding:0 9px}.brand img{width:39px;height:39px}.brand strong{font:24px Georgia,serif;letter-spacing:-.5px;display:block}.brand small{display:block;letter-spacing:1.7px;text-transform:uppercase;font-size:8px;color:var(--muted);margin-top:2px}.sidebar .eyebrow{padding:0 13px;margin-bottom:12px}.nav{display:flex;flex-direction:column;gap:6px}.nav button{justify-content:flex-start;border:0;padding:12px;background:transparent;font-weight:500;color:#506780}.nav button.active{background:#e4f5f8;color:var(--green);font-weight:650}.nav svg{margin-right:6px}.nav .count{margin-left:auto;font-size:11px;background:#cbeef1;padding:0 6px;border-radius:4px}.side-note{margin-top:auto;border:1px solid var(--line);border-radius:9px;padding:15px;background:#edf7fb;font-size:12px}.side-note p{margin-top:8px;color:var(--muted)}.user{margin-top:20px;padding-top:18px;border-top:1px solid var(--line);display:flex;gap:9px;align-items:center}.avatar{width:33px;height:33px;display:grid;place-items:center;border-radius:50%;background:#d8f1f4;font-weight:650;font-size:12px}.user strong{font-size:12px}.user small{display:block;font-size:10px;color:var(--muted)}.user button{margin-left:auto;padding:5px}.main{grid-column:2;min-width:0}.topbar{height:76px;background:#ffffffdd;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px;font-size:12px;color:var(--muted)}.crumb{display:flex;gap:12px;align-items:center}.crumb strong{color:var(--ink);font-weight:500}.sync{display:flex;align-items:center;gap:7px;font-size:11px}.sync:before{content:'';width:6px;height:6px;border-radius:50%;background:#0095a8}.sync.offline{color:var(--red)}.sync.offline:before{background:var(--red)}.content{padding:34px 38px 42px;max-width:1700px;margin:auto}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-bottom:28px}.page-head h1{font:35px/1.2 Georgia,serif;letter-spacing:-.9px;margin-bottom:7px}.page-head p{font-size:13px;color:var(--muted)}.actions{display:flex;gap:9px;align-items:center}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:25px}.metric{padding:20px 21px 17px;background:white;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow)}.metric .label{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px}.metric .label svg{width:17px;height:17px;color:#438a9a}.metric .value{font:30px/1.3 Georgia,serif;margin:12px 0 6px;letter-spacing:-.8px}.metric .caption{font-size:10px;color:var(--muted)}.metric.alert .value{color:var(--red)}.grid-main{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px}.panel{border:1px solid var(--line);border-radius:10px;background:white;min-width:0;overflow:hidden;box-shadow:var(--shadow)}.panel-head{padding:20px 22px 17px;display:flex;justify-content:space-between;gap:15px;align-items:center}.panel h2{font-size:15px;font-weight:600}.panel-head p{font-size:11px;color:var(--muted);margin-top:4px}.panel-head button{font-size:11px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{text-align:left;background:#f5f9fc;font-size:9px;text-transform:uppercase;letter-spacing:1px;color:var(--muted);font-weight:650;padding:12px 18px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}td{padding:17px 18px;border-bottom:1px solid #eaf3fa;font-size:12px}tbody tr:last-child td{border:0}tbody tr:hover{background:#f7fbfe}td strong{font-weight:600}td small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.order-link{padding:0;border:0;border-radius:0;background:transparent;font-size:12px;color:var(--wood)}.order-link:hover{text-decoration:underline;background:transparent}.chip{padding:4px 8px;border-radius:5px;font-size:10px;font-weight:550;display:inline-flex;align-items:center;gap:5px;background:#eaf3f9;color:#395a72;white-space:nowrap}.chip:before{content:'';width:4px;height:4px;background:currentColor;border-radius:50%}.chip.proof{background:#f9efd9;color:#96712c}.chip.prod{background:#e0f1f5;color:#007d88}.chip.ready{background:#dff5f5;color:#007f90}.chip.complete{background:#eaf5fa;color:#61788d}.chip.hold{background:#f7e6e0;color:#a5614d}.chip.cancel{background:#edf3f8;color:#999}.due-red{color:var(--red);font-weight:650}.panel-foot{padding:14px 22px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);display:flex;justify-content:space-between;align-items:center}.empty{text-align:center;padding:47px 20px}.empty svg{width:34px;height:34px;color:#72a7b4;margin-bottom:14px}.empty h3{font:22px Georgia,serif;margin-bottom:8px}.empty p{font-size:12px;color:var(--muted);max-width:290px;margin:0 auto 17px}.rail{display:flex;flex-direction:column;gap:22px}.pipeline{padding:0 22px 20px}.pipeline button{display:block;border:0;background:transparent;padding:10px 0;width:100%;text-align:left;font-size:11px;font-weight:500}.pipeline .line-label{display:flex;justify-content:space-between}.bar{height:4px;border-radius:4px;background:#ecf5fa;margin-top:8px;overflow:hidden}.bar span{height:4px;display:block;background:#388493;border-radius:4px}.rail-note{padding:22px;background:#e4f2fa;border:1px solid #dcecf4;border-radius:10px}.rail-note .eyebrow{color:#087d92}.rail-note h3{font:23px/1.2 Georgia,serif;margin:12px 0 10px}.rail-note p{font-size:12px;color:#54718a}.rail-note button{margin-top:16px;background:#f2f8fc;border-color:#d5e9f1;font-size:11px}.collection{margin-top:22px;display:grid;grid-template-columns:1fr 1fr 1fr;border:1px solid var(--line);border-radius:10px;background:#ffffff}.collection>div{padding:20px 24px}.collection>div+div{border-left:1px solid var(--line)}.collection strong{display:block;margin-top:5px;font:24px Georgia,serif}.collection small{color:var(--muted);font-size:10px}.toolbar{display:flex;gap:10px;justify-content:space-between;margin-bottom:18px;flex-wrap:wrap}.toolbar .filters{display:flex;gap:10px;flex-wrap:wrap}.search{display:flex;gap:8px;align-items:center;background:white;border:1px solid var(--line);border-radius:7px;padding:0 12px}.search svg{width:16px;color:var(--muted)}.search input{border:0;background:transparent;padding:10px 0;width:220px;outline:none}select,input,textarea{border:1px solid #d8e4ef;border-radius:6px;padding:10px 11px;color:var(--ink);background:white;min-width:0}textarea{resize:vertical;min-height:82px}input::placeholder,textarea::placeholder{color:#889cac}.toolbar select{font-size:12px}.board{display:grid;grid-template-columns:repeat(4,minmax(210px,1fr));gap:15px;overflow-x:auto;align-items:start}.board-col{background:#eaf3fa;border:1px solid #e0edf4;border-radius:9px;padding:12px;min-height:310px}.board-title{display:flex;justify-content:space-between;font-size:11px;font-weight:650;padding:5px 2px 14px}.board-card{background:white;border:1px solid var(--line);border-radius:7px;padding:15px;display:block;text-align:left;width:100%;margin-bottom:11px;font-weight:400}.board-card strong{display:block;margin:8px 0 4px;font-size:13px}.board-card p{font-size:11px;color:var(--muted)}.board-card footer{display:flex;justify-content:space-between;align-items:center;margin-top:15px;font-size:10px}.board-col .no-work{text-align:center;padding:44px 8px;font-size:11px;color:var(--muted)}.notice{padding:12px 15px;border:1px solid #ead6af;background:#fbf4e4;font-size:12px;color:#8a692f;border-radius:7px;margin-bottom:16px}.error{padding:11px 13px;border-radius:6px;background:#faeae6;color:#9e4536;font-size:12px;margin-bottom:15px}.error:empty{display:none}dialog{padding:0;border:1px solid var(--line);border-radius:13px;width:min(1020px,calc(100vw - 30px));max-height:92vh;color:var(--ink);box-shadow:0 30px 100px #082b6050;background:var(--paper)}dialog::backdrop{background:#082b60a0;backdrop-filter:blur(3px)}.modal-head{padding:22px 27px;border-bottom:1px solid var(--line);background:white;display:flex;align-items:center;justify-content:space-between;gap:12px}.modal-head h2{font:26px Georgia,serif}.modal-head p{font-size:11px;color:var(--muted);margin-top:4px}.modal-head button{padding:6px}.modal-body{display:grid;grid-template-columns:1fr 245px;gap:22px;padding:24px 27px;max-height:calc(92vh - 180px);overflow-y:auto}.form-sections{display:flex;flex-direction:column;gap:21px}.form-section{background:white;border:1px solid var(--line);border-radius:9px;padding:20px}.section-title{display:flex;align-items:center;gap:9px;margin-bottom:18px;font-size:13px;font-weight:650}.section-title span{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#e8f4f8;font-size:10px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:550}.field.full{grid-column:1/-1}.field small{font-size:10px;color:var(--muted);font-weight:400}.form-grid input,.form-grid select,.form-grid textarea{width:100%;font-size:12px}.summary{background:#e4f1f8;border:1px solid #d6edf2;border-radius:9px;padding:20px;align-self:start;position:sticky;top:0}.summary h3{font:22px Georgia,serif;margin-bottom:20px}.summary-row{display:flex;justify-content:space-between;gap:10px;margin:11px 0;font-size:11px}.summary-row strong{font-weight:600}.summary .total{padding-top:13px;border-top:1px solid #c8e3ec;margin-top:16px;font-size:14px}.summary .balance{padding:13px 0;border-top:1px solid #c8e3ec;margin-top:15px;font-size:13px}.summary p{font-size:10px;color:#537f90;margin-top:16px}.modal-foot{padding:15px 27px;background:white;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}.modal-foot small{color:var(--muted);font-size:10px}.file-list{margin-top:8px}.file-line{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid #edf5fa;font-size:11px}.file-line a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-line button{padding:2px 5px}.auth-shell{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-art{background:#082b60;padding:64px 12%;display:flex;flex-direction:column;justify-content:center;color:#ffffff;position:relative;overflow:hidden}.auth-art:after{content:'';position:absolute;width:700px;height:700px;border:1px solid #00a8b530;border-radius:50%;bottom:-480px;left:-200px;box-shadow:0 0 0 45px #00a8b50d,0 0 0 90px #00a8b50d,0 0 0 135px #00a8b50d,0 0 0 180px #00a8b50d,0 0 0 225px #00a8b50d;pointer-events:none}.auth-art .brand{padding:0;margin-bottom:75px}.auth-art .brand strong{font-size:31px}.auth-art .brand small{color:#b7e5eb}.auth-art h1{font:51px/1.12 Georgia,serif;letter-spacing:-1px;max-width:430px}.auth-art p{margin-top:25px;font-size:14px;line-height:1.8;color:#c5e4ed;max-width:330px}.auth-art footer{margin-top:65px;color:#6edbe2;font-size:10px;letter-spacing:1.7px;text-transform:uppercase}.auth-content{padding:50px 12%;display:flex;align-items:center;justify-content:center}.auth-card{width:360px;max-width:100%}.auth-card h2{font:32px Georgia,serif;margin-bottom:9px}.auth-card>p{color:var(--muted);font-size:13px;margin-bottom:27px}.auth-card form{display:flex;flex-direction:column;gap:17px}.auth-card button{margin-top:6px}.auth-card small{display:block;font-size:10px;line-height:1.7;color:var(--muted);margin-top:23px}.team-form{padding:24px;display:grid;grid-template-columns:1fr 1fr;gap:15px;border-top:1px solid var(--line)}.team-form h3,.team-form .error{grid-column:1/-1}.team-form button{align-self:end;height:41px}.account-body{padding:24px;display:grid;gap:16px}#accountDialog{max-width:450px}.loading{padding:50px;color:var(--muted)}#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;border-radius:8px;padding:12px 20px;font-size:12px;z-index:20;box-shadow:0 8px 24px #0003;display:none;max-width:90vw}.page-note{margin-top:25px;font-size:10px;color:var(--muted);display:flex;gap:8px;align-items:center}.page-note svg{width:13px;height:13px}.only-mobile{display:none}.text-right{text-align:right}
@media(min-width:1450px){.content{padding-top:42px}.grid-main{grid-template-columns:minmax(0,1fr) 330px}.metrics{gap:20px}.metric{padding:24px}.metric .value{font-size:34px}}
@media(max-width:1150px){.shell{grid-template-columns:200px 1fr}.sidebar{width:200px;padding:25px 13px}.brand strong{font-size:21px}.brand img{width:32px}.brand{gap:7px}.content{padding:25px}.topbar{padding:0 25px}.grid-main{grid-template-columns:1fr}.rail{display:grid;grid-template-columns:1fr 1fr}.metrics{gap:10px}.metric{padding:16px}.metric .value{font-size:26px}.page-head h1{font-size:31px}.board{grid-template-columns:repeat(4,235px)}}
@media(max-width:760px){.shell{display:block}.sidebar{position:static;width:100%;padding:15px 18px;border-right:0;border-bottom:1px solid var(--line)}.sidebar .brand{margin:0 0 15px;padding:0}.sidebar>.eyebrow,.side-note,.sidebar .user{display:none}.nav{flex-direction:row;gap:2px;overflow:auto}.nav button{padding:8px 10px;white-space:nowrap;font-size:12px}.nav svg{width:15px;margin:0}.nav .count{display:none}.main{display:block}.topbar{height:47px;padding:0 20px;font-size:10px}.topbar>.date{display:none}.content{padding:25px 18px}.page-head{align-items:flex-start;flex-wrap:wrap;gap:17px}.page-head h1{font-size:31px}.page-head p{font-size:12px}.metrics{grid-template-columns:1fr 1fr;gap:10px}.metric .value{font-size:28px}.metric .caption{font-size:9px}.metric .label{font-size:11px}.metric .label svg{width:14px}.rail{grid-template-columns:1fr}.collection{grid-template-columns:1fr}.collection>div+div{border-left:0;border-top:1px solid var(--line)}.collection>div{padding:15px 20px}.collection strong{font-size:23px}.toolbar .search{flex:1}.search input{width:100%}.toolbar .filters{width:100%}.toolbar select{max-width:50%}.modal-body{display:block;padding:18px;max-height:calc(92vh - 174px)}.summary{position:static;margin-top:20px}.modal-head{padding:18px}.modal-head h2{font-size:23px}.modal-foot{padding:13px 18px}.modal-foot small{display:none}.modal-foot{justify-content:flex-end}.form-grid{gap:13px}.form-section{padding:16px}.field.full{grid-column:1/-1}.auth-shell{display:block}.auth-art{padding:32px 28px}.auth-art .brand{margin-bottom:25px}.auth-art h1{font-size:32px}.auth-art p,.auth-art footer{display:none}.auth-content{padding:35px 24px}.team-form{grid-template-columns:1fr}.only-mobile{display:inline-flex}.panel-head{padding:18px}.board{grid-template-columns:repeat(4,240px)}.page-note{font-size:9px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Custom Grit & Grain logo */
.brand.custom-brand{padding:0;display:block}.brand.custom-brand img{display:block;width:100%;height:auto;max-width:340px;background:#fff;border-radius:8px}.sidebar .brand.custom-brand{margin-bottom:24px}.auth .brand.custom-brand{width:100%;max-width:340px}

.square-panel{margin-top:18px;padding:20px;background:#fff;border:1px solid var(--line);border-radius:9px}.square-panel h3{margin-bottom:12px}.square-panel p{font-size:12px;margin:12px 0}.square-panel .field{margin:12px 0}.square-panel button{margin:4px 0;max-width:100%}

.auth-art .brand.custom-brand{max-width:340px;margin-bottom:38px}.primary{background:#082f6b;border-color:#082f6b}.primary:hover{background:#064b80;border-color:#064b80}.nav button.active{box-shadow:inset 3px 0 #00a8b5}.square-panel h3{color:#082f6b}
