:root{--background:#f4f5f7;--foreground:#111;--muted:#5f646d;--line:#dfe3e8;--panel:#fff;--accent:#111;--danger:#b42318;--surface-soft:#f8fafc;--shadow:0 16px 45px #0f172a14}*{box-sizing:border-box}body{background:var(--background);color:var(--foreground);margin:0;font-family:Arial,Helvetica,sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.shell{min-height:100vh}.topbar{border-bottom:1px solid var(--line);color:#fff;background:#111;justify-content:space-between;align-items:center;gap:24px;padding:18px 28px;display:flex}.brand{letter-spacing:0;font-size:22px;font-weight:800}.topbar-actions{color:#d7d7d2;align-items:center;gap:16px;font-size:14px;display:flex}.content{width:min(1280px,100vw - 32px);margin:0 auto;padding:32px 0 48px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:24px}.panel.full-width{grid-column:1/-1}.panel-heading{justify-content:space-between;gap:16px;display:flex}.auth-page{background:#111;place-items:center;min-height:100vh;padding:24px;display:grid}.auth-panel{background:#fff;border-radius:8px;width:min(440px,100%);padding:28px}.auth-panel h1,.page-title h1{margin:0;font-size:32px}.page-title{justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:24px;display:flex}.page-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:12px;display:flex}.muted{color:var(--muted)}.field{gap:8px;margin-top:18px;display:grid}.field.compact{margin-top:0}.field label{font-weight:700}.field input,.field select,.field textarea{border:1px solid var(--line);width:100%;color:var(--foreground);background:#fff;border-radius:8px;padding:12px 14px}.button{color:#fff;cursor:pointer;background:#111;border:1px solid #111;border-radius:8px;justify-content:center;align-items:center;min-height:42px;padding:0 16px;font-weight:700;display:inline-flex}.button.compact-button{min-height:34px;padding:0 12px;font-size:13px}.button.secondary{color:#111;background:#fff}.button.danger{border-color:var(--danger);background:var(--danger)}.error{color:var(--danger);margin-top:16px}.status-action{gap:8px;display:grid}.status-pill{color:#4b5563;text-align:center;white-space:nowrap;background:#f3f6fa;border:1px solid #d7dee8;border-radius:6px;justify-content:center;align-items:center;min-height:24px;padding:3px 8px;font-size:12px;font-weight:800;line-height:16px;display:inline-flex}.status-pill.signed,.status-pill.application-status-signed,.status-pill.application-status-live{color:#166534;background:#ecfdf3;border-color:#86efac}.status-pill.application-status-objection{color:#9a3412;background:#fff7ed;border-color:#fed7aa}.status-pill.application-status-credit_fail_reject_previous_contract{color:#b42318;background:#fef2f2;border-color:#fecaca}.status-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.status-card-option{border:1px solid var(--line);color:#111;cursor:pointer;text-align:left;background:#fff;border-radius:8px;flex-direction:column;justify-content:space-between;align-items:flex-start;gap:12px;width:100%;min-height:86px;padding:12px;font-weight:850;display:flex}.status-card-option:hover{background:#f8fafc;border-color:#c7ced8}.status-card-option:disabled{cursor:not-allowed;opacity:.72}.status-card-option.selected{border-color:#111;box-shadow:0 0 0 2px #11111114}.status-card-option.application-status-credit_fail_reject_previous_contract{grid-column:1/-1;min-height:74px}.status-card-icon{color:#4b5563;justify-content:center;align-items:center;display:inline-flex}.status-card-option.application-status-signed .status-card-icon,.status-card-option.application-status-live .status-card-icon{color:#166534}.status-card-option.application-status-objection .status-card-icon{color:#9a3412}.status-card-option.application-status-credit_fail_reject_previous_contract .status-card-icon{color:#b42318}.live-indicator{border:1px solid var(--line);color:var(--muted);background:#fff;border-radius:999px;align-items:center;gap:8px;padding:8px 12px;font-size:13px;font-weight:800;display:inline-flex}.live-indicator:before{content:"";background:#a0a7b2;border-radius:999px;width:8px;height:8px}.live-indicator.live:before{background:#22c55e}.live-indicator.offline:before{background:#ef4444}.dashboard-stack,.workspace-stack{gap:20px;display:grid}.metric-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.dashboard-overview,.worklist-table-wrap,.empty-state,.info-section,.workspace-card{background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:8px}.dashboard-overview{gap:18px;padding:22px;display:grid}.dashboard-overview-head{justify-content:space-between;align-items:flex-start;gap:18px;display:flex}.dashboard-overview-head h1{margin:0;font-size:38px;line-height:1}.dashboard-overview-head p{margin:8px 0 0;font-weight:700}.metric-grid{border:1px solid var(--line);background:#fbfcfd;border-radius:8px;grid-template-columns:repeat(6,minmax(0,1fr));display:grid;overflow:hidden}.metric-card{appearance:none;border-right:1px solid var(--line);color:#111;cursor:pointer;text-align:left;background:#fbfcfd;border-top:0;border-bottom:0;border-left:0;border-radius:0;gap:6px;width:100%;min-width:0;height:100%;margin:0;padding:14px 16px 16px;display:grid;position:relative}.metric-card:last-child{border-right:0}.metric-card:hover,.metric-card.active{color:#000;background:#fff;border-right-color:#fff}:is(.metric-card:has(+.metric-card:hover),.metric-card:has(+.metric-card.active)){border-right-color:#fff}.metric-card.active:after{content:"";pointer-events:none;background:#111;border-radius:999px 999px 0 0;height:3px;position:absolute;bottom:0;left:16px;right:16px}.metric-card span{color:var(--muted);text-transform:uppercase;font-size:13px;font-weight:800}.metric-card strong{font-size:28px;line-height:1}.worklist-toolbar{border-top:1px solid var(--line);grid-template-columns:minmax(260px,1fr) 220px;align-items:end;gap:12px;padding-top:18px;display:grid}.worklist-toolbar .field input,.worklist-toolbar .field select{border-radius:7px;min-height:38px;font-size:14px;font-weight:700}.dashboard-select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m7 10 5 5 5-5' stroke='%23111111' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;padding-right:40px}.load-more-sentinel{border-top:1px solid var(--line);min-height:54px;color:var(--muted);place-items:center;font-size:13px;font-weight:800;display:grid}.worklist-table-wrap{overflow:hidden}.worklist-table{border-collapse:collapse;width:100%}.worklist-table th,.worklist-table td{border-bottom:1px solid var(--line);text-align:left;vertical-align:middle;padding:14px 16px}.worklist-table th{color:#4b5563;text-transform:uppercase;background:#f0f2f5;font-size:12px}.table-sort{appearance:none;color:inherit;cursor:pointer;font:inherit;letter-spacing:inherit;text-align:left;text-transform:inherit;background:0 0;border:0;align-items:center;gap:6px;padding:0;font-weight:900;display:inline-flex}.table-sort:hover,.table-sort.active{color:#111}.table-sort-icon{color:#9ca3af;font-size:13px;line-height:1}.table-sort.active .table-sort-icon{color:#111}.worklist-table tbody tr{cursor:pointer}.worklist-table tbody tr:hover{background:#f8fafc}.worklist-table td span,.note-preview span{color:var(--muted);margin-top:3px;font-size:13px;display:block}.note-preview strong{font-size:13px}.empty-state{padding:28px}.workspace-header{justify-content:space-between;align-items:flex-start;gap:24px;display:flex}.workspace-header h1{margin:8px 0 6px;font-size:34px}.back-link{color:var(--muted);font-size:14px;font-weight:800}.workspace-layout{grid-template-columns:minmax(0,1fr) minmax(360px,420px);align-items:start;gap:18px;display:grid}.workspace-main{gap:16px;display:grid}.workspace-side{gap:16px;display:grid;position:sticky;top:18px}.info-section,.workspace-card{padding:20px}.info-section h2,.workspace-card h2{margin:0;font-size:20px}.section-heading{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px;padding-bottom:14px;display:flex}.missing-badge,.section-heading span{color:var(--muted);cursor:pointer;background:#fff;border:1px solid #d7dee8;border-radius:999px;flex:none;padding:4px 8px;font-size:12px;font-weight:850}.missing-badge:hover{color:#111;border-color:#111}.missing-modal{z-index:60;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.missing-modal-backdrop{background:#1111118a;border:0;position:absolute;inset:0}.missing-modal-panel{z-index:1;border:1px solid var(--line);background:#fff;border-radius:8px;width:min(420px,100%);position:relative;overflow:hidden;box-shadow:0 24px 80px #0000003d}.missing-modal-header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:flex-start;gap:16px;padding:16px;display:flex}.missing-modal-header strong,.missing-modal-header span{display:block}.missing-modal-header span{color:var(--muted);margin-top:3px;font-size:13px;font-weight:700}.missing-field-list{gap:8px;margin:0;padding:16px;list-style:none;display:grid}.missing-field-list li{background:#fbfcfd;border:1px solid #edf0f4;border-radius:8px;padding:10px;font-weight:800}.card-heading{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px;display:flex}.card-heading p{margin:4px 0 0}.detail-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0;display:grid}.detail-row{background:#fbfcfd;border:1px solid #edf0f4;border-radius:8px;min-width:0;padding:10px}.detail-row dt{color:var(--muted);text-transform:uppercase;font-size:12px;font-weight:800}.detail-row dd{overflow-wrap:anywhere;margin:4px 0 0;font-size:15px;font-weight:700;line-height:1.25}.summary-section{gap:18px;display:grid}.summary-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:flex-start;gap:16px;padding-bottom:16px;display:flex}.summary-head div,.summary-item{gap:5px;min-width:0;display:grid}.summary-head span,.summary-item span{color:var(--muted);letter-spacing:.02em;text-transform:uppercase;font-size:12px;font-weight:900}.summary-head strong{overflow-wrap:anywhere;font-size:28px;line-height:1.05}.summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 18px;display:grid}.summary-item{border-left:2px solid #e8edf3;padding-left:12px}.summary-item strong{overflow-wrap:anywhere;font-size:16px;line-height:1.25}.document-list,.notes-list{gap:12px;display:grid}.document-row,.note-attachment{border:1px solid var(--line);background:var(--surface-soft);border-radius:8px;justify-content:space-between;align-items:center;gap:14px;padding:10px;display:flex}.document-row span,.note-attachment span{margin-top:3px;display:block}.file-preview-button{min-width:0;color:inherit;cursor:pointer;text-align:left;background:0 0;border:0;flex:1;grid-template-columns:54px minmax(0,1fr);align-items:center;gap:12px;padding:0;display:grid}.file-preview-button:hover .file-copy strong{text-underline-offset:3px;text-decoration:underline}.file-thumb{border:1px solid var(--line);color:#111;background:#fff;border-radius:8px;place-items:center;width:54px;height:54px;margin-top:0;display:grid;overflow:hidden}.file-thumb-image{object-fit:cover;width:100%;height:100%}.file-thumb .file-thumb-fallback{color:#111;justify-content:center;align-items:center;width:100%;height:100%;margin-top:0;line-height:1;display:flex}.file-thumb .file-kind-pdf{color:#b42318;letter-spacing:0;background:#fff7f7;border:1px solid #fecaca;font-size:16px;font-weight:900}.pdf-badge{color:#b42318;letter-spacing:0;background:#fff;border:1px solid #fecaca;border-radius:6px;place-items:center;width:38px;height:30px;font-size:12px;font-weight:900;display:grid}.pdf-badge-large{border-radius:10px;width:96px;height:120px;font-size:24px;box-shadow:0 12px 30px #b423181a}.note-image-row{background:#fff;padding:0;display:block;position:relative;overflow:hidden}.note-image-row .file-preview-button{text-align:left;width:100%;display:block}.note-image-row .file-thumb{aspect-ratio:16/10;border:0;border-bottom:1px solid var(--line);background:#f4f5f7;border-radius:0;width:100%;height:auto;margin-top:0}.note-image-row .file-copy{gap:4px;margin-top:0;padding:12px 14px;display:grid}.note-image-row .file-copy strong{font-size:15px;text-decoration:none}.note-image-row .download-file-button{background:#ffffffeb;border-color:#11111114;min-width:34px;min-height:34px;position:absolute;bottom:12px;right:12px;box-shadow:0 8px 24px #0f172a1f}.note-image-row .file-preview-button:hover .file-copy strong{text-decoration:none}.note-image-row .file-preview-button:hover .file-thumb-image{transform:scale(1.015)}.file-copy{min-width:0;display:block}.file-copy strong,.file-copy span{text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:100%;display:block;overflow:hidden}.file-thumb-image{transition:transform .16s}.icon-button{border:1px solid var(--line);color:#111;cursor:pointer;background:#fff;border-radius:8px;justify-content:center;align-items:center;min-width:38px;min-height:38px;padding:0 10px;font-size:13px;font-weight:800;display:inline-flex}.icon-button:hover{border-color:#111}.download-file-button{flex:none}.file-modal{z-index:50;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.file-modal-backdrop{cursor:default;background:#111111b8;border:0;position:absolute;inset:0}.file-modal-panel{z-index:1;border:1px solid var(--line);background:#fff;border-radius:8px;grid-template-rows:auto minmax(0,1fr);width:min(980px,100%);max-height:min(860px,100vh - 48px);display:grid;position:relative;overflow:hidden;box-shadow:0 24px 80px #00000047}.file-modal-header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:16px;padding:14px 16px;display:flex}.file-modal-header strong,.file-modal-header span{display:block}.file-modal-header span{color:var(--muted);margin-top:3px;font-size:13px}.file-modal-actions{align-items:center;gap:8px;display:flex}.file-modal-body{background:#f4f5f7;place-items:center;min-height:420px;display:grid;overflow:auto}.file-modal-body img{object-fit:contain;max-width:100%;max-height:calc(100vh - 160px);display:block}.file-modal-pdf-frame{background:#fff;border:0;width:100%;height:100%;min-height:calc(100vh - 170px)}.file-modal-empty{max-width:360px;color:var(--muted);text-align:center;place-items:center;gap:8px;padding:34px;display:grid}.file-modal-empty svg{color:#111}.file-modal-empty strong{color:#111;overflow-wrap:anywhere}.file-modal-pdf{gap:12px}.notes-card{align-content:start}.note-composer{background:#fff;border:1px solid #dfe3e8;border-radius:8px;gap:0;margin-top:18px;display:grid;overflow:hidden}.note-composer:focus-within{border-color:#c7ced8;box-shadow:0 10px 28px #0f172a0f}.note-composer label{color:#5f646d;letter-spacing:.04em;text-transform:uppercase;padding:12px 14px 0;font-size:11px;font-weight:900}.note-composer textarea{color:#111;resize:vertical;background:0 0;border:0;border-radius:0;width:100%;min-height:92px;padding:8px 14px 12px;font-size:15px;line-height:1.45}.note-composer textarea:focus{outline:none}.note-composer-footer{background:#fff;border-top:1px solid #dfe3e8;justify-content:space-between;align-items:center;gap:12px;padding:8px 10px;display:flex}.note-file-control{flex:1;align-items:center;gap:10px;min-width:0;display:flex}.hidden-file-input{display:none}.note-attach-button{color:#4b5563;cursor:pointer;background:#fff;border:0;border-radius:0;justify-content:center;align-items:center;min-width:32px;min-height:32px;padding:0;transition:border-color .12s,color .12s,transform .12s;display:inline-flex}.note-attach-button:hover{color:#111;background:#fff;transform:translateY(-1px)}.note-attach-button:active{transform:translateY(0)}.note-file-control .muted{text-overflow:ellipsis;white-space:nowrap;color:#5f646d;font-size:13px;font-weight:800;overflow:hidden}.note-composer textarea::placeholder{color:#a0a7b2}.note-composer-actions{flex:none;align-items:center;gap:10px;display:flex}.note-composer-actions .muted{color:#5f646d;text-align:right;min-width:52px;font-size:12px;font-weight:800}.note-send-button{color:#111;background:0 0;border:0;border-radius:7px;min-width:34px;min-height:34px;padding:0}.note-send-button:hover{color:#000;background:0 0}.note-send-button:disabled{color:#a0a7b2;cursor:not-allowed;background:0 0}.note-composer .pending-files{background:#fff;border-top:1px solid #dfe3e8;padding:10px}.notes-list{max-height:420px;padding-right:4px;overflow:auto}.note-entry{border:1px solid var(--line);background:#fff;border-radius:8px;padding:14px}.note-entry.from-office{color:#111;background:#f8fafc;border-color:#cfd6e1}.note-entry.from-office .muted,.note-entry.from-office .note-meta{color:#5f646d}.note-entry.from-office .note-meta strong{color:#111}.note-entry p{white-space:pre-wrap;margin:10px 0 0;line-height:1.5}.note-meta{color:var(--muted);flex-wrap:wrap;gap:8px;font-size:12px;display:flex}.note-attachments{gap:10px;margin-top:12px;display:grid}.notes-empty{border:1px dashed var(--line);color:var(--muted);border-radius:8px;gap:4px;padding:18px;display:grid}.status-pill.provisioning-in_progress{color:#1d4ed8;background:#eff6ff;border-color:#bfdbfe}.status-pill.provisioning-blocked{color:#b42318;background:#fef2f2;border-color:#fecaca}.status-pill.provisioning-provisioned,.status-pill.job-provided{color:#166534;background:#ecfdf3;border-color:#86efac}.office-workflow{align-content:start}.workflow-actions{justify-content:space-between;align-items:center;gap:12px;margin-top:18px;display:flex}.timeline-list{gap:14px;margin-top:22px;display:grid}.timeline-entry{border:1px solid var(--line);border-radius:8px;padding:16px}.timeline-entry p{margin-bottom:0;line-height:1.5}.timeline-entry-meta{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.provided-box{border:1px solid var(--line);background:#f7f7f4;border-radius:8px;margin-top:14px;padding:14px}.chat-panel{gap:18px;display:grid}.chat-list{gap:14px;display:grid}.chat-message{border:1px solid var(--line);border-radius:8px;max-width:min(760px,100%);padding:16px}.chat-message.from-office{color:#fff;background:#111;justify-self:end}.chat-message.from-office .muted,.chat-message.from-office .chat-meta{color:#d7d7d2}.chat-message.from-merchant{background:#f7f7f4;justify-self:start}.chat-message p{margin-bottom:0;line-height:1.5}.chat-meta{color:var(--muted);flex-wrap:wrap;gap:10px;font-size:13px;display:flex}.chat-attachments{gap:10px;margin-top:14px;display:grid}.chat-attachment{border:1px solid var(--line);color:#111;background:#fff;border-radius:8px;justify-content:space-between;align-items:center;gap:14px;padding:12px;display:flex}.chat-attachment span{margin-top:3px;display:block}.pending-files{flex-wrap:wrap;gap:10px;display:flex;overflow:visible}.pending-file{border:1px solid var(--line);text-overflow:ellipsis;white-space:nowrap;text-align:center;background:#eeeeea;border-radius:999px;justify-content:center;align-items:center;max-width:100%;min-height:32px;padding:5px 18px;font-size:13px;font-weight:700;line-height:1.1;display:inline-flex;position:relative}.pending-file-remove{color:#111;cursor:pointer;opacity:0;background:#fff;border:1px solid #d7dee8;border-radius:999px;place-items:center;width:20px;height:20px;padding:0;font-size:14px;font-weight:900;line-height:1;transition:opacity .12s,transform .12s;display:grid;position:absolute;top:-8px;right:-8px;transform:scale(.88)}.pending-file:hover .pending-file-remove,.pending-file:focus-within .pending-file-remove{opacity:1;transform:scale(1)}.pending-file-remove:hover{border-color:#111}.file-actions{flex-wrap:wrap;gap:10px;margin-bottom:10px;display:flex}.file-name{margin-bottom:4px;display:inline-block}.table{border-collapse:collapse;border:1px solid var(--line);background:#fff;border-radius:8px;width:100%;overflow:hidden}.table th,.table td{border-bottom:1px solid var(--line);text-align:left;vertical-align:top;padding:14px}.table th{text-transform:uppercase;background:#eeeeea;font-size:13px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.section{gap:12px;display:grid}.kv{border-bottom:1px solid var(--line);grid-template-columns:180px 1fr;gap:10px;padding-bottom:10px;display:grid}.kv dt{color:var(--muted)}.kv dd{overflow-wrap:anywhere;margin:0}@media (max-width:760px){.topbar,.page-title,.workspace-header{flex-direction:column;align-items:stretch}.metric-grid,.worklist-toolbar,.workspace-layout,.detail-list{grid-template-columns:1fr}.workspace-side{position:static}.grid,.kv{grid-template-columns:1fr}.table,.worklist-table-wrap{display:block;overflow-x:auto}.document-row,.note-attachment{align-items:center}.file-modal{padding:12px}.file-modal-panel{max-height:calc(100vh - 24px)}.file-modal-header{flex-direction:column;align-items:flex-start}.file-modal-actions{justify-content:space-between;width:100%}}.landing-page{background:#f4f5f7;place-items:center;min-height:100vh;padding:24px;display:grid}.landing-panel{text-align:center;justify-items:center;gap:14px;width:min(520px,100%);display:grid}.landing-logo,.auth-logo{color:#111}.landing-panel h1{margin:0;font-size:clamp(44px,8vw,72px);line-height:.95}.landing-panel p{max-width:440px;color:var(--muted);margin:0;font-size:18px;line-height:1.45}.staff-link,.button{color:#fff;cursor:pointer;background:#111;border:1px solid #111;border-radius:8px;justify-content:center;align-items:center;min-height:42px;padding:0 16px;font-weight:800;display:inline-flex}.staff-link{color:#111;background:0 0;min-height:36px;margin-top:10px;font-size:14px}.button:disabled{cursor:not-allowed;opacity:.65}.auth-logo{margin-bottom:12px}.shop-form{gap:20px;display:grid}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.wide-field{grid-column:1/-1}.field textarea,.field select,.field input{width:100%}.field textarea{resize:vertical}.nested-form-block{border-top:1px solid var(--line);margin-top:18px;padding-top:18px}.nested-form-block h3{margin:0 0 14px;font-size:18px}.confirmation-list,.form-actions{gap:12px;display:grid}.check-row{color:#111;align-items:flex-start;gap:10px;font-weight:700;display:flex}.check-row input{flex:none;width:18px;height:18px;margin-top:1px}.readonly-status{align-items:center;min-height:48px;display:flex}.shop-application-list{gap:10px;display:grid}.shop-application-row{border:1px solid var(--line);background:#fbfcfd;border-radius:8px;justify-content:space-between;align-items:center;gap:18px;padding:14px;display:flex}.shop-application-row>div{gap:5px;display:grid}.shop-application-row span,.shop-application-row small{color:var(--muted)}@media (max-width:760px){.dashboard-overview-head,.workspace-header,.shop-application-row{flex-direction:column;align-items:stretch}.form-grid,.metric-grid{grid-template-columns:1fr}}
