:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#1f2937;background:#f6f8fb;font-size:14px;--accent:#2563eb;--muted:#64748b;--border:#e2e8f0}
*{box-sizing:border-box}
body{margin:0}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.5}
a{color:inherit;text-decoration:none}
button,input,select,textarea{outline-offset:3px}
button:focus-visible,a:focus-visible{outline:2px solid var(--accent)}
input,select,textarea{border:1px solid #cbd5e1;border-radius:7px;background:#fff;padding:10px 12px;color:#334155;max-width:100%}
input:focus,textarea:focus,select:focus{outline:2px solid #dbeafe;border-color:#2563eb}
textarea{resize:vertical}
.topbar{height:76px;background:#fff;border-bottom:1px solid var(--border);padding:0 42px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{font-size:16px;font-weight:650;display:flex;align-items:center;gap:14px;white-space:nowrap}
.brand-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;color:white;background:var(--accent);font-size:16px}
.divider{font-weight:400;color:#c6ceca;margin:0 6px}
.identity{display:flex;align-items:center;gap:12px}
.identity label{color:var(--muted);font-size:12px}
.identity select{font-size:13px;background:#f8faf9}
.demo{background:#edf5ef;color:#5b7d67;font-size:11px;padding:5px 8px;border-radius:4px;margin-right:14px}
main{max-width:1440px;margin:0 auto;padding:28px 42px 30px}
.breadcrumb{font-size:12px;color:#64748b}
.breadcrumb span{margin:0 12px;color:#bfc7c2}
.page-heading{display:flex;align-items:center;justify-content:space-between;margin:34px 0 28px}
.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:#64748b}
h1{font-size:29px;letter-spacing:-.7px;margin:9px 0 10px;font-weight:650}
.page-heading p{color:var(--muted);margin:0;font-size:13px}
.primary,.secondary,.danger{border:1px solid transparent;border-radius:7px;padding:11px 18px;font-weight:550}
.primary{background:var(--accent);color:white;box-shadow:0 2px 4px #164e2f12}
.primary:hover{background:#1d4ed8}
.secondary{border-color:#cbd5e1;background:#fff;color:#334155}
.secondary:hover{background:#f1f5f9}
.danger{color:#b35449;background:#fff4f1;border-color:#f1d6ce}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:28px}
.stat{background:#fff;border:1px solid var(--border);padding:21px 24px;border-radius:10px;position:relative}
.stat:first-child{background:#eaf2ed;border-color:#dbe9df}
.stat .label{font-size:12px;color:#74827a;display:flex;justify-content:space-between}
.stat .stat-icon{font-size:15px;color:#8aab98}
.stat strong{font-size:32px;font-weight:600;display:block;margin:12px 0 7px;letter-spacing:-1px}
.stat small{color:#8d9992;font-size:11px}
.workspace{border:1px solid var(--border);background:white;border-radius:12px;overflow:hidden}
.section-top{padding:25px 26px 18px;display:flex;justify-content:space-between;align-items:center}
.section-top h2{font-size:16px;margin:0 0 7px;font-weight:650}
.section-top h2 span{font-size:11px;background:#f1f5f9;padding:3px 7px;border-radius:4px;margin-left:8px;color:#64748b}
.section-top p{font-size:12px;color:#64748b;margin:0}
.live-dot{font-size:12px;color:#829186}
.live-dot:before{content:"";display:inline-block;width:6px;height:6px;background:#70a68b;border-radius:100%;margin-right:8px}
.filters{padding:0 26px}
.tabs{display:flex;gap:26px;border-bottom:1px solid #e2e8f0}
.tabs button{border:0;background:none;color:#829087;font-size:13px;padding:17px 0 13px;border-bottom:2px solid transparent;white-space:nowrap}
.tabs button.active{border-bottom-color:var(--accent);color:var(--accent);font-weight:600}
.tabs button span{margin-left:6px;color:#a0ada4;font-size:11px}
.search-row{display:flex;align-items:center;gap:10px;padding:20px 0}
.search{position:relative;flex:1;max-width:340px}
.search input{padding-left:34px;width:100%;font-size:12px;background:#ffffff}
.search>span{position:absolute;left:12px;top:5px;font-size:24px;color:#64748b}
.search-row select{font-size:12px;min-width:130px}
.text-button{border:0;background:transparent;color:#475569;padding:10px;font-size:12px}
.table-wrap{overflow-x:auto}
table{border-collapse:collapse;width:100%;white-space:nowrap;text-align:left}
th{padding:14px 20px;background:#f8fafc;color:#64748b;font-size:11px;font-weight:500;border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0}
td{padding:20px;font-size:12px;color:#475569;border-bottom:1px solid #edf1f5}
th:first-child,td:first-child{padding-left:26px}
tbody tr:hover{background:#f8fafc}
td .title-link{color:#1e293b;font-weight:550;border:0;background:none;text-align:left;padding:0;display:block;font-size:13px;max-width:330px;white-space:normal;line-height:1.5}
td .meta{display:block;font-size:10px;color:#64748b;margin-top:6px}
.avatar{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#f0f3ee;color:#84937e;margin-right:7px;font-size:10px}
.badge{font-size:11px;display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:5px;white-space:nowrap}
.badge:before{content:"";width:4px;height:4px;border-radius:50%;background:currentColor}
.b-pending{background:#fff4dc;color:#a98330}
.b-scheduled{background:#f0edf9;color:#8876a8}
.b-developing{background:#eaf1fd;color:#5b80b7}
.b-acceptance{background:#edf5f5;color:#4c8f91}
.b-ready{background:#edf4e6;color:#789344}
.b-online{background:#eaf5ed;color:#4b9566}
.b-returned{background:#fff0e9;color:#bd8263}
.b-cancelled{background:#f0f2f0;color:#909a92}
.overdue{color:#b77c53}
.row-open{background:none;border:0;font-size:12px;color:#2563eb}
.table-footer{padding:16px 26px;display:flex;justify-content:space-between;font-size:11px;color:#64748b}
.prototype-note{text-align:center;font-size:11px;color:#64748b;margin-top:24px}
.empty{padding:50px;text-align:center;color:#92a096}
.empty>div{font-size:38px}
.empty h3{font-size:15px;color:#62776a}
.empty p{font-size:12px}
[hidden]{display:none!important}
.overlay{position:fixed;inset:0;background:#0f172a55;z-index:5;backdrop-filter:blur(2px)}
.drawer{position:fixed;right:0;top:0;bottom:0;background:#fff;width:min(660px,95vw);z-index:6;box-shadow:-10px 0 50px #17342416;overflow-y:auto;padding:28px 32px}
.drawer-top{display:flex;justify-content:space-between;align-items:center;color:#64748b;font-size:12px}
.icon{border:0;background:#f1f5f9;border-radius:6px;color:#64748b;font-size:24px;width:32px;height:32px;display:grid;place-items:center;line-height:1}
.drawer h2{font-size:22px;line-height:1.5;margin:18px 0 10px;overflow-wrap:anywhere}
.drawer-summary{display:flex;gap:12px;align-items:center;color:#64748b;font-size:12px;margin-bottom:26px}
.steps{display:flex;gap:4px;margin:24px 0;align-items:center}
.step{flex:1;font-size:10px;color:#a7b0aa;text-align:center}
.step:before{content:"";display:block;height:3px;background:#edf1ed;border-radius:3px;margin-bottom:9px}
.step.done{color:#54866a}
.step.done:before{background:#88b39a}
.step.current{color:var(--accent);font-weight:650}
.step.current:before{background:var(--accent)}
.detail-section{padding:22px 0;border-top:1px solid var(--border)}
.detail-section h3{margin:0 0 17px;font-size:14px;display:flex;align-items:center;justify-content:space-between}
.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.detail-label{color:#64748b;font-size:11px;margin-bottom:7px}
.detail-value{font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;color:#334155}
.full{grid-column:1/-1}
.notice{padding:12px 14px;background:#f1f5f9;color:#475569;border-radius:7px;font-size:12px;line-height:1.7}
.notice.warning{background:#fff8e9;color:#a08a55}
.actions{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}
.actions button{font-size:12px;padding:10px 13px}
.history-item{position:relative;padding:0 0 23px 19px;border-left:1px solid #e2e8f0;margin-left:5px;font-size:12px}
.history-item:before{content:"";position:absolute;left:-4px;top:3px;width:7px;height:7px;background:#94a3b8;border:2px solid #fff;border-radius:50%;box-sizing:content-box}
.history-item strong{font-size:12px;font-weight:550;color:#334155}
.history-item time{color:#64748b;float:right;font-size:10px}
.history-item p{color:#64748b;font-size:11px;line-height:1.8;margin:7px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.history-item details{font-size:11px;color:#64748b;margin-top:8px}
.history-item summary{cursor:pointer}
.history-item pre{white-space:pre-wrap;font:inherit;background:#f8fafc;padding:10px;overflow-wrap:anywhere}
.audit-change{padding:5px 8px;background:#f8fafc;border-radius:4px;color:#64748b;line-height:1.8;margin-top:7px;overflow-wrap:anywhere;white-space:pre-wrap}
.audit-change b{font-weight:500;color:#334155}
dialog{border:1px solid #e5ebe5;border-radius:14px;padding:0;width:min(620px,94vw);max-height:90vh;box-shadow:0 20px 80px #17342428;color:#1e293b}
dialog::backdrop{background:#0f172a55;backdrop-filter:blur(3px)}
.modal-heading{padding:23px 26px 18px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}
.modal-heading h2{font-size:19px;margin:5px 0}
.modal-body{padding:22px 26px;overflow-y:auto;max-height:65vh}
.modal-body label{display:block;font-size:12px;color:#475569;margin-bottom:18px}
.modal-body label input,.modal-body label textarea,.modal-body label select{display:block;width:100%;margin-top:8px;font-size:13px}
.modal-body input:disabled{background:#f5f7f4;color:#94a28f}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.form-intro{font-size:12px;color:#64748b;margin:0 0 23px}
.required{color:#b47b65}
.modal-body small{display:block;color:#64748b;font-size:10px;margin-top:6px}
.modal-footer{padding:17px 26px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:10px;background:#f8fafc}
.toast{position:fixed;z-index:30;bottom:28px;left:50%;transform:translateX(-50%);padding:13px 22px;background:#1e293b;color:white;border-radius:8px;box-shadow:0 4px 20px #0002;font-size:13px;max-width:90vw}
#actionDialog{width:min(480px,94vw)}

@media(min-width:1600px){main{padding-top:40px}
.page-heading{margin-top:42px}
.stat{padding:26px}
.section-top{padding-top:28px}
td{padding-top:24px;padding-bottom:24px}
}
@media(max-width:850px){.topbar{padding:0 20px}
.identity label,.demo{display:none}
main{padding:22px 18px}
.stats{gap:10px}
.stat{padding:18px 15px}
.section-top{padding:20px}
.filters{padding:0 20px}
.live-dot{display:none}
.tabs{gap:19px;overflow:auto}
.page-heading h1{font-size:24px}
.prototype-note{line-height:1.8}
.brand{font-size:14px;gap:7px}
}
@media(max-width:540px){.topbar{height:auto;min-height:72px;padding:14px;flex-wrap:wrap;gap:10px}
.identity select{font-size:11px;padding:8px}
.brand-icon{width:28px;height:28px}
.stats{grid-template-columns:repeat(2,1fr)}
.page-heading{align-items:flex-start;gap:16px}
.page-heading .primary{font-size:12px;white-space:nowrap;padding:10px}
.page-heading h1{font-size:21px}
.page-heading p{font-size:11px;line-height:1.7}
.search-row{flex-wrap:wrap}
.search{min-width:100%}
.table-footer{gap:16px;line-height:1.8}
.drawer{width:100%;padding:22px}
.drawer-summary{flex-wrap:wrap}
.form-grid{grid-template-columns:1fr;gap:0}
.modal-body{padding:20px}
.detail-grid{gap:16px}
.history-item time{float:none;display:block;margin-top:5px}
}


.upload-box{border:1px dashed #cbd5e1;border-radius:8px;padding:15px;margin:0 0 20px;background:#f8fafc}
.upload-title{font-size:12px;color:#334155;font-weight:600}
.upload-title span{font-weight:400;color:#64748b}
.upload-box p,.upload-box>small{font-size:11px;line-height:1.7;color:#64748b;margin:9px 0}
.upload-box>small{display:block}
.modal-body .file-picker{display:inline-block;position:relative;background:#eff6ff;border:1px solid #bfdbfe;border-radius:6px;padding:9px 12px;margin:3px 0;color:#1d4ed8;cursor:pointer;overflow:hidden}
.modal-body .file-picker input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.file-picker:focus-within{outline:2px solid #2563eb;outline-offset:2px}
.upload-item{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #e2e8f0;gap:12px;padding:4px 0;font-size:12px;overflow-wrap:anywhere}
.upload-item>span{min-width:0}
.upload-item small{display:inline!important;color:#64748b}
.upload-status{font-size:11px;color:#475569;line-height:1.6}
.stored-file{padding:10px 0;border-bottom:1px solid #e2e8f0}
.stored-file .detail-label{margin:5px 0 2px;line-height:1.7}
.file-download{display:block;background:#f8fafc;color:#1d4ed8;border:1px solid #dbeafe;border-radius:5px;font-size:12px;padding:8px 10px;text-align:left;max-width:100%;overflow-wrap:anywhere;margin:6px 0}
.file-download small{font-size:10px;color:#64748b;margin-left:5px}
.file-download:hover{background:#eff6ff}


/* Compact office layout: keep approvals readable at desk and mobile widths. */
:root{--accent:#2563eb;--muted:#64748b;--border:#e2e8f0;line-height:1.5}
.topbar{height:60px;padding:0 32px;gap:16px}
.brand{font-size:15px;gap:10px}.brand-icon{width:30px;height:30px;border-radius:6px}
.identity{gap:4px;font-size:12px}.identity>span{margin-right:12px;color:#475569}
main{max-width:1600px;padding:22px 32px 28px}
.breadcrumb{font-size:12px}.page-heading{margin:20px 0;gap:16px}
h1{font-size:24px;letter-spacing:0;margin:0 0 6px;font-weight:650}
.page-heading .eyebrow{display:none}.page-heading p{font-size:13px}
.primary,.secondary,.danger{padding:8px 14px;border-radius:5px;box-shadow:none;min-height:36px}
input,select,textarea{padding:8px 10px;border-radius:5px;min-height:36px}
.text-button{color:#475569;border-radius:4px;padding:8px 10px}.text-button:hover{background:#eff6ff;color:#1d4ed8}
.stats{gap:14px;margin-bottom:20px}.stat{padding:15px 18px;border-radius:6px;background:#fff}
.stat:first-child{background:#fff;border-color:var(--border)}
.stat .label{color:#475569;font-size:12px;font-weight:550}.stat .stat-icon{color:#94a3b8}
.stat strong{font-size:28px;line-height:1.2;margin:9px 0 5px;font-variant-numeric:tabular-nums;letter-spacing:0}
.stat small{color:#64748b;font-size:11px}.stat:nth-child(2){border-top:3px solid #d97706;padding-top:13px}
.stat:nth-child(2) strong,.stat:nth-child(2) .stat-icon{color:#a65b00}
.workspace{border-radius:6px}.section-top{padding:17px 20px 12px;gap:16px}
.section-top h2{font-size:15px;margin:0 0 4px}.section-top p{color:#64748b;margin:0}
.live-dot{font-size:12px;color:#64748b}.filters{padding:0 20px}
.tabs{gap:24px;border-bottom:1px solid var(--border)}.tabs button{color:#64748b;padding:11px 0;font-size:13px}
.tabs button.active{color:var(--accent);border-bottom-color:var(--accent);font-weight:600}
.tabs span{color:#64748b;background:#f1f5f9;border-radius:4px;padding:1px 5px;margin-left:6px}
.tabs .active span{color:#1d4ed8;background:#eff6ff}
.search-row{padding:13px 0;gap:10px}.search{max-width:360px}.search input,.search-row select{font-size:13px}
th{padding:10px 16px;font-size:12px;color:#475569;font-weight:600}
td{padding:12px 16px;font-size:13px;line-height:1.5}
th:first-child,td:first-child{padding-left:20px}
th:last-child,td:last-child{padding-right:20px;text-align:right}
td .title-link{font-size:13px;max-width:400px;font-weight:550}td .title-link:hover{color:#2563eb;text-decoration:underline}
td .meta{font-size:11px;margin-top:3px}.avatar{background:#f1f5f9;color:#475569;width:24px;height:24px}
.badge{font-size:12px;font-weight:550;padding:3px 8px;border-radius:4px;border:1px solid transparent}
.badge:before{width:5px;height:5px}.b-pending{background:#fff7e6;color:#925300;border-color:#f3cf84}
.b-returned{background:#fff1f2;color:#be123c;border-color:#fecdd3}
.b-scheduled{background:#f5f3ff;color:#6d28d9;border-color:#e9d5ff}
.b-developing{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}
.b-acceptance{background:#ecfeff;color:#0e7490;border-color:#a5f3fc}
.b-ready{background:#f0fdfa;color:#0f766e;border-color:#99f6e4}
.b-online{background:#f0fdf4;color:#15803d;border-color:#bbf7d0}
.b-cancelled{background:#f1f5f9;color:#64748b;border-color:#e2e8f0}
.row-open{color:#2563eb;padding:6px 0}.table-footer{padding:10px 20px;align-items:center;gap:12px;flex-wrap:wrap}
.prototype-note{margin-top:16px;color:#64748b}.empty{color:#64748b}.empty h3{color:#334155}
.drawer{padding:24px 28px}.drawer h2{font-size:21px}.drawer-summary{margin-bottom:18px}
.steps{margin:18px 0}.step{color:#64748b}.step.done{color:#475569}.step.done:before{background:#93b4f4}
.step.current{color:#1d4ed8}.step.current:before{background:#2563eb}
.detail-section{padding:18px 0}.detail-section h3{margin-bottom:14px}.detail-label{font-size:12px}
.detail-grid{gap:16px}.notice{border:1px solid #e2e8f0;border-radius:5px}
.notice.warning{background:#fffbeb;border-color:#fde68a;color:#92400e}
dialog{border-radius:8px;border-color:#e2e8f0}.modal-heading{padding:17px 22px}.modal-heading .eyebrow{display:none}
.modal-heading h2{font-size:18px}.modal-body{padding:20px 22px}.modal-body label{margin-bottom:15px}
.modal-footer{padding:13px 22px}.form-intro{margin-bottom:18px}.upload-box{border-radius:5px}
.history-item p,.history-item details{font-size:12px}.history-item time{font-size:11px}.actions{margin:16px 0}
@media(max-width:850px){main{padding:18px}.topbar{padding:0 18px}.stat{padding:14px}.stat:nth-child(2){padding-top:12px}.stat small{line-height:1.6;display:block}.stats{gap:10px}.section-top{padding:16px}.filters{padding:0 16px}.page-heading h1{font-size:22px}}
@media(max-width:540px){.topbar{height:auto;padding:12px 16px;flex-wrap:wrap;gap:8px}.identity{flex-wrap:wrap}.identity>span{margin-right:2px}.identity .text-button{padding:6px 8px}main{padding:16px 12px}.breadcrumb{display:none}.page-heading{margin:8px 0 16px}.page-heading h1{font-size:21px}.page-heading p{font-size:12px;line-height:1.6}.stats{grid-template-columns:repeat(2,1fr)}.stat strong{font-size:26px}.tabs{gap:18px}.tabs button{white-space:nowrap}.search-row{flex-wrap:wrap}.search{min-width:100%}.table-footer>span:last-child{width:100%}.drawer{padding:20px;width:100%}.drawer-summary{flex-wrap:wrap}.form-grid{grid-template-columns:1fr}.modal-body{padding:18px}.detail-grid{gap:14px}.table-footer{gap:6px 12px}.table-footer .text-button{padding:6px}}

@media(max-width:540px){
.requirements-table th:nth-child(2),.requirements-table td:nth-child(2),.requirements-table th:nth-child(4),.requirements-table td:nth-child(4),.requirements-table th:nth-child(5),.requirements-table td:nth-child(5),.requirements-table th:nth-child(6),.requirements-table td:nth-child(6){display:none}
.requirements-table{table-layout:fixed}.requirements-table th:first-child,.requirements-table td:first-child{width:auto;padding-left:14px;padding-right:8px}
.requirements-table th:nth-child(3),.requirements-table td:nth-child(3){width:84px;padding:10px 5px}
.requirements-table th:last-child,.requirements-table td:last-child{width:57px;padding:10px 12px 10px 0}
.requirements-table .meta{white-space:normal;overflow-wrap:anywhere;font-size:10px}
}

/* Hatc identity: original vector artwork, navy and green. */
.company-logo{display:block;width:100px;height:auto;flex-shrink:0;object-fit:contain}
.brand-caption{border-left:1px solid var(--border);padding-left:16px;margin-left:6px;font-size:14px;font-weight:500;color:#475569}
.brand .divider{margin:0 8px}.topbar{border-top:3px solid #09395f}
:root{--accent:#09395f}button:focus-visible,a:focus-visible{outline-color:#09395f}
.primary{background:#09395f}.primary:hover{background:#062d4c}
input:focus,textarea:focus,select:focus{border-color:#09395f;outline-color:#dbe8f2}
.tabs button.active{color:#09395f;border-bottom-color:#09395f}.tabs .active span{color:#09395f;background:#edf3f8}
.row-open,td .title-link:hover{color:#09395f}.file-picker:focus-within{outline-color:#09395f}
@media(max-width:540px){.company-logo{width:86px}.brand-caption{font-size:12px;padding-left:12px}.brand .divider{margin:0 4px}}

/* Leaders can open pending reviews directly from the list. */
.row-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px}
.row-review{min-height:30px;padding:4px 12px;font-size:12px;white-space:nowrap}
@media(max-width:540px){.requirements-table th:last-child,.requirements-table td:last-child{width:70px}.row-actions{flex-direction:column;gap:3px;align-items:flex-end}.row-review{padding:5px 10px}}

@media(max-width:540px){.requirements-table th:nth-child(7),.requirements-table td:nth-child(7){display:none}}
