:root{font-family:Segoe UI,Arial,sans-serif;color:#23362d;background:#f4f6f3;font-size:15px}*{box-sizing:border-box}body{margin:0}header{display:flex;align-items:center;gap:24px;padding:22px 5vw;background:#20332a;color:white}.brand{font-size:25px;font-weight:750;color:white;text-decoration:none}.brand span{font-size:11px;letter-spacing:2px;margin-left:16px;font-weight:400}#identity{margin-left:auto;font-size:13px}main{max-width:1240px;margin:38px auto;padding:0 24px}h1{font-size:34px;line-height:1.2;margin:8px 0 16px}h2{font-size:20px}p{line-height:1.6}.eyebrow{letter-spacing:1.6px;font-size:11px;font-weight:700;color:#64766a}.subtle{color:#65726a;font-size:13px}button{padding:12px 18px;border:1px solid #c9d3cc;border-radius:7px;background:white;color:#23362d;font:inherit;font-weight:600;cursor:pointer}button:hover{background:#edf3ee}button:disabled{opacity:.5;cursor:wait}.primary{background:#285b43;border-color:#285b43;color:white}.primary:hover{background:#19472f}input,textarea,select{font:inherit;padding:11px;border:1px solid #c5d1c9;border-radius:6px;background:white;width:100%;color:#21382a}textarea{min-height:85px;resize:vertical}label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600;margin-bottom:15px}.check{flex-direction:row;align-items:center}.check input{width:auto}summary{cursor:pointer;font-weight:650;padding:10px 0}details{margin:15px 0}.login-card{max-width:480px;margin:7vh auto;padding:32px;background:white;border-radius:15px;border:1px solid #dce5de}.login-card button{width:100%}.panel,.project-card{background:white;padding:24px;border:1px solid #dce5de;border-radius:12px;margin:18px 0}.heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:25px 0}.summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.metric{padding:20px;background:white;border:1px solid #dce5de;border-radius:10px}.metric strong{display:block;font-size:28px;margin:7px 0}.project-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:18px}.project-card{margin:0}.project-card h2{line-height:1.4}.urgent{border-left:4px solid #b34932}.tag{display:inline-block;padding:5px 9px;border-radius:5px;background:#edf3ee;font-size:12px}.overdue{color:#a23125;background:#fff0eb}.filters,.inline-form,.upload-row{display:flex;gap:18px;align-items:end;flex-wrap:wrap}.filters{margin:28px 0}.filters label:first-child{flex:1}.two-cols,.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 22px}.spec-row{display:grid;grid-template-columns:minmax(200px,1.8fr) 100px minmax(190px,1fr);gap:16px;padding:17px 0;border-bottom:1px solid #e1e7e2}.spec-row p{white-space:pre-wrap;margin:0}.spec-row label{margin:0}.spec-row textarea{min-height:65px}.sticky-actions{position:sticky;bottom:0;z-index:2;display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:18px;background:#eff5f0;border:1px solid #cbdacf;border-radius:10px}.sticky-actions span{margin-right:auto;font-size:13px}.dropzone{padding:16px;border:2px dashed #a9c3b1;border-radius:9px;flex:1}.dropzone span{font-weight:400;color:#65726a}.dropzone.dragover{background:#e5f2e8}#message:not(:empty){padding:16px;background:#fff1de;border-radius:8px;margin-bottom:18px;white-space:pre-wrap}#invite-result{overflow-wrap:anywhere;white-space:pre-wrap}.file-row{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #e1e7e2}.source-field{white-space:pre-wrap;padding:12px 0;border-bottom:1px solid #e1e7e2}.source-field img{max-width:100%}footer{text-align:center;color:#768077;padding:30px;font-size:12px}[hidden]{display:none!important}@media(max-width:700px){header{flex-wrap:wrap}.brand span{display:block;margin:3px 0}.summary-grid,.field-grid,.two-cols{grid-template-columns:1fr}.spec-row{grid-template-columns:1fr}.heading{align-items:start;flex-direction:column}.sticky-actions{flex-wrap:wrap}.sticky-actions span{width:100%}main{padding:0 14px}.panel{padding:18px}}
:root{--compact-field:108px}
#offer-fields input,#offer-fields select{padding:8px 10px;height:37px;min-width:0}
#offer-fields label{margin-bottom:4px;gap:5px}
#offer-fields details{padding-bottom:12px;border-bottom:1px solid #e1e7e2}
#offer-fields .commercial-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 18px}
#offer-fields .remarks-field{grid-column:1/-1}
#offer-fields .remarks-field textarea{min-height:205px;line-height:1.4}
#offer-fields .improvements-field{height:76px;min-height:76px;max-height:76px;resize:none;overflow-y:auto;line-height:1.4}
#offer-fields .short-input{max-width:90px}
#offer-fields .packaging-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 18px;max-width:820px}
#offer-fields .packaging-grid input{max-width:var(--compact-field)}
#offer-fields .prices-grid{grid-template-columns:repeat(6,minmax(90px,1fr));gap:14px;max-width:780px}
#offer-fields .prices-grid input{max-width:var(--compact-field)}
#offer-fields .line-grid{grid-template-columns:1fr;gap:9px}
#offer-fields .line-grid label{display:grid;grid-template-columns:175px minmax(0,1fr);align-items:center}
.matrix-wrap{overflow:auto;max-width:100%}.offer-matrix{border-collapse:collapse;width:100%;font-size:13px;text-align:left}.offer-matrix th{font-weight:600;color:#65726a;padding:8px 8px 8px 0;vertical-align:bottom}.offer-matrix td{padding:4px 8px 4px 0}.offer-matrix td:first-child{white-space:nowrap}.offer-matrix th:first-child{width:32px}.offer-matrix .numeric{font-variant-numeric:tabular-nums}
.logistics-matrix{max-width:540px}.logistics-matrix th:first-child{width:180px}.logistics-matrix th:not(:first-child){width:115px}
.options-matrix th:nth-child(3){width:110px}.options-matrix th:nth-child(4){width:135px}.materials-matrix th:nth-child(2){width:30%}
.tooling-matrix .offer-matrix{min-width:1700px}.tooling-matrix input{min-width:100px!important}.tooling-matrix th:nth-child(4),.tooling-matrix th:nth-child(6){width:160px}
.spec-changes{margin:16px 0}.spec-changes h3{font-size:16px}.spec-diff{white-space:pre-wrap;background:#faf8ef;border-left:3px solid #c49b43;padding:12px;line-height:1.6;max-height:260px;overflow:auto}.spec-diff ins{background:#deefdf;text-decoration:none}.spec-diff del{background:#f8dfd9;color:#883d2d}.spec-changed{background:#fff9e8;border-left:3px solid #c49b43;padding-left:12px;padding-right:12px}.change-tag{display:inline-block;margin:0 0 8px 10px;border-radius:4px;background:#f6e7b9;padding:3px 7px;font-size:11px}.change-notice{padding:12px;background:#fff1de;border-radius:6px}
@media(max-width:900px){#offer-fields .commercial-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#offer-fields .packaging-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#offer-fields .prices-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){#offer-fields .commercial-grid{grid-template-columns:1fr}#offer-fields .packaging-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#offer-fields .line-grid label{display:flex}.options-matrix .offer-matrix{min-width:520px}.materials-matrix .offer-matrix{min-width:480px}.logistics-matrix .offer-matrix{min-width:440px}}
:root{--spec-columns:minmax(0,1.8fr) 95px minmax(180px,1fr)}
#offer-fields .commercial-price-row{grid-column:1/-1;display:flex;align-items:end;flex-wrap:wrap;gap:14px 22px}
#offer-fields .commercial-price-row label{white-space:nowrap}
#offer-fields .commercial-price-row input,#offer-fields .commercial-price-row select{width:120px}
#offer-fields .prices-grid{align-items:end;max-width:850px}
#offer-fields .prices-grid label{white-space:nowrap;font-size:12px}
.spec-column-headings,#specifications .spec-row{display:grid;grid-template-columns:var(--spec-columns);gap:8px 16px;align-items:start}
.spec-column-headings{font-size:12px;font-weight:600;color:#65726a;padding:18px 0 8px}
#specifications .spec-row{padding-top:13px;padding-bottom:17px}
#specifications .spec-row input,#specifications .spec-row select{height:36px;min-height:0;padding:7px 9px;align-self:start;font-size:13px;min-width:0}
#specifications .requested-spec{line-height:36px;white-space:nowrap;overflow:auto;min-width:0;font-size:13px}
#specifications .previous-spec{grid-column:1/-1;color:#b02925;font-size:12px;line-height:1.5;padding:0 0 2px;white-space:pre-wrap}
#specifications .uploaded-spec{grid-column:1/-1;font-size:12px;color:#65726a}
@media(max-width:650px){.spec-column-headings{display:none}#specifications .spec-row{grid-template-columns:minmax(0,1fr) 95px}#specifications .spec-alternative{grid-column:1/-1}#offer-fields .commercial-price-row{gap:12px}}
#project-tasks{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
#project-tasks .metric{padding:14px 12px}
#project-tasks .metric strong{font-size:21px;margin:7px 0}
#project-tasks .metric span,#project-tasks .metric small{font-size:12px}
#project-tasks .metric.deadline-overdue{border-color:#d89b91;background:#fff5f2}
#project-tasks .deadline-overdue strong,#project-tasks .deadline-overdue small{color:#b02925}
@media(max-width:700px){#project-tasks{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Logo and red/black palette from the official Grizzly Tools website. */
:root{color:#0f110c;background:#f2f2f2}
header{background:white;color:#0f110c;border-bottom:4px solid #e6192d;padding:14px 5vw}
.brand{display:flex;align-items:center;color:#0f110c}.brand img{width:180px;height:auto;display:block}.brand span{color:#525252}
button,input,textarea,select{color:#0f110c;border-color:#d5d5d5}
button:hover{background:#f2f2f2}.primary{background:#e6192d;border-color:#e6192d;color:white}.primary:hover{background:#bf1425}
.eyebrow,.subtle{color:#626262}.panel,.project-card,.metric,.login-card{border-color:#dedede}
.tag{background:#f2f2f2}.overdue{color:#c41225;background:#fff0f1}.urgent{border-left-color:#e6192d}
.sticky-actions{background:#fbfbfb;border-color:#dedede}.dropzone{border-color:#bdbdbd}.dropzone.dragover{background:#fff0f1}
#project-tasks .deadline-overdue strong,#project-tasks .deadline-overdue small{color:#c41225}

/* Dense project list: project identity above, smaller deadlines below. */
#project-cards{display:flex;flex-direction:column;gap:8px}
#project-cards .project-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 16px;padding:12px 16px;border-radius:8px}
.project-info{display:flex;align-items:baseline;gap:16px;min-width:0}
.project-info h2{font-size:18px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.project-meta{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#626262;flex-shrink:0;max-width:50%}
.project-deadlines{grid-column:1;display:flex;gap:18px;font-size:11px;line-height:18px;overflow-x:auto;white-space:nowrap;color:#626262}
.project-deadlines .deadline-late{color:#c41225;font-weight:650}
#project-cards button{grid-column:2;grid-row:1/3;padding:8px 12px;align-self:center;font-size:13px}
.participation-panel{padding:14px 20px;display:grid;grid-template-columns:185px minmax(0,1fr);gap:5px 18px;align-items:center}
.participation-panel h2{margin:0;font-size:18px}
.participation-panel .two-cols{grid-template-columns:minmax(180px,.8fr) minmax(0,1.4fr);gap:18px}
.participation-panel label{margin:0;gap:4px;font-size:12px}
.participation-panel select,.participation-panel textarea{height:35px;min-height:35px;padding:6px 9px;font-size:13px}
.participation-panel .subtle{grid-column:2;margin:0;font-size:11px;line-height:1.3}
#specifications .spec-section-title{font-size:14px;background:#f2f2f2;border-left:3px solid #e6192d;padding:8px 12px;margin:14px 0 0;line-height:1.4}
#specifications .spec-info{color:#626262;font-size:12px;overflow:hidden;margin:8px 0}
@media(max-width:700px){.project-info{gap:8px}.project-info h2{font-size:16px}.project-meta{font-size:12px}.participation-panel{grid-template-columns:1fr}.participation-panel .subtle{grid-column:1}.participation-panel .two-cols{grid-template-columns:1fr 1fr}}

/* Collapsed review keeps the completion count visible without the long list. */
.spec-review-panel{padding:12px 20px}
.spec-review-panel>summary{font-size:18px;padding:6px 0}
#spec-summary{font-size:12px;font-weight:400;margin-left:18px}
#specifications .spec-row{padding-top:6px;padding-bottom:8px;gap:4px 12px}
#specifications .spec-row input,#specifications .spec-row select{height:30px;padding:4px 7px;font-size:12px}
#specifications .requested-spec{line-height:30px;font-size:12px}
#specifications .spec-section-title{padding:5px 9px;margin:8px 0 0;font-size:13px}
#specifications .previous-spec{font-size:12px;line-height:1.4}

.view-switch{display:flex;gap:4px;margin-bottom:15px}.view-switch button{padding:10px 14px}.view-switch [aria-pressed=true]{background:#e6192d;color:white;border-color:#e6192d}
#project-cards .project-card{grid-template-columns:48px minmax(0,1fr) auto;column-gap:12px}
.project-picture{grid-column:1;grid-row:1/3;width:48px;height:48px;background:#f7f7f7;border:1px solid #ececec;border-radius:5px;display:flex;align-items:center;justify-content:center;overflow:hidden;font-size:10px;color:#777;text-align:center}
.project-picture img{width:100%;height:100%;object-fit:contain}
.project-info{grid-column:2}.project-deadlines{grid-column:2}#project-cards button{grid-column:3}
#project-cards.cards-view{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:16px}
#project-cards.cards-view .project-card{display:flex;flex-direction:column;gap:10px;padding:14px}
.cards-view .project-picture{height:150px;width:100%;font-size:13px}
.cards-view .project-info{display:block}.cards-view .project-info h2{white-space:normal;font-size:18px}.cards-view .project-meta{display:block;max-width:none;margin-top:4px;font-size:12px}
.cards-view .project-deadlines{display:grid;grid-template-columns:1fr 1fr;gap:4px 10px;white-space:normal;overflow:visible}
#project-cards.cards-view button{align-self:flex-end;margin-top:auto}

.project-priority{font-size:14px;color:#444;white-space:nowrap;flex-shrink:0;letter-spacing:1px}.cards-view .project-priority{display:inline-block;margin-top:5px}

/* Touch layouts retain compact desktop rows while keeping mobile inputs readable. */
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,a:focus-visible{outline:2px solid #e6192d;outline-offset:3px}
main,.panel,.field-grid>*,.filters>*{min-width:0}input,select,textarea{max-width:100%}
.file-row{gap:12px;flex-wrap:wrap;overflow-wrap:anywhere}
@media(max-width:700px){
 header{gap:12px;padding:12px 14px}.brand{flex-wrap:wrap;gap:6px}.brand img{width:140px}.brand span{font-size:10px;margin:0}
 #identity{margin-left:0;overflow-wrap:anywhere;flex:1 1 140px}main{margin:20px auto;padding:0 12px}
 h1{font-size:27px;overflow-wrap:anywhere}h2{font-size:18px}.heading{gap:12px;margin:18px 0}
 button,summary{min-height:44px}button{font-size:14px;padding:10px 12px}
 input:not([type=checkbox]):not([type=radio]),textarea,select,#offer-fields input,#offer-fields select,#specifications .spec-row input,#specifications .spec-row select,.participation-panel select,.participation-panel textarea{font-size:16px;min-height:44px;height:auto}
 input[type=checkbox]{width:20px;height:20px;flex-shrink:0}
 .panel,.participation-panel{padding:14px}.login-card{padding:20px;margin:24px auto}
 .filters{gap:10px;margin:16px 0}.filters label{flex:1 1 140px;min-width:0}.filters label:first-child{flex-basis:100%}
 .view-switch{margin-bottom:0}.participation-panel .two-cols{grid-template-columns:1fr}
 #project-tasks .metric{padding:12px 10px}#project-tasks .metric strong{font-size:20px}
 #summary.summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 #summary .metric{padding:10px;min-width:0}#summary .metric span{display:block;font-size:11px;line-height:1.4;min-height:31px}#summary .metric strong{font-size:24px;margin:3px 0}
 #project-cards .project-card{grid-template-columns:44px minmax(0,1fr);padding:12px;gap:8px}
 #project-cards .project-picture{width:44px;height:44px;grid-row:1}
 #project-cards .project-info{flex-wrap:wrap;align-items:start;gap:4px 8px}
 #project-cards .project-info h2{white-space:normal;overflow-wrap:anywhere;width:100%;font-size:16px}
 #project-cards .project-meta{max-width:100%;white-space:normal;overflow-wrap:anywhere}
 #project-cards .project-deadlines{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:5px 10px;white-space:normal;overflow:visible;font-size:12px}
 #project-cards button{grid-column:1/-1;grid-row:auto;justify-self:end;min-height:44px}
 #project-cards.cards-view{grid-template-columns:1fr}#project-cards.cards-view .project-picture{width:100%;height:150px}
 #offer-fields .prices-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #offer-fields .packaging-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #offer-fields .commercial-grid{grid-template-columns:1fr}
 #offer-fields .line-grid label{display:flex;align-items:stretch}
 #offer-fields .commercial-price-row label{white-space:normal;flex:1 1 120px}
 #offer-fields .commercial-price-row input,#offer-fields .commercial-price-row select{width:100%}
 .spec-column-headings{display:none}#specifications .spec-row{grid-template-columns:minmax(0,1fr) 95px;gap:8px;padding:12px 0}
 #specifications .requested-spec{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;font-size:14px}
 #specifications .spec-alternative{grid-column:1/-1}#specifications .previous-spec{font-size:13px}
 #spec-summary{display:block;margin:5px 0 0}.sticky-actions{padding:10px;gap:8px;padding-bottom:max(10px,env(safe-area-inset-bottom));flex-wrap:wrap}
 .sticky-actions span{flex-basis:100%}.sticky-actions button{flex:1}
 .upload-row>*{max-width:100%;min-width:0}.upload-row label{flex-basis:100%}
 .offer-matrix{font-size:13px}.matrix-wrap{overscroll-behavior-x:contain}
}
