.workspace-panel{padding:26px;margin-top:26px;scroll-margin-top:20px}.workspace-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}.workspace-heading h2{font-size:1.35rem;margin:0}.workspace-heading .eyebrow{margin-bottom:10px}.workspace-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.workspace-grid .field{min-width:0}.workspace-grid .field-help{margin:7px 0 0}.workspace-narrow{max-width:320px}.workspace-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:22px 0}.workspace-summary .stat{padding:16px}.workspace-summary .stat-value{font-size:1.55rem;overflow-wrap:anywhere}.workspace-summary .stat-label{display:block;line-height:1.45}.workspace-details{border-top:1px solid var(--line);padding:18px 0 0;margin-top:20px}.workspace-details>summary{cursor:pointer;font-weight:650;margin-bottom:14px}.workspace-details>summary:focus-visible{outline:3px solid #728bac;outline-offset:3px}.workspace-details .notice{margin-top:16px;margin-bottom:0}.workspace-subheading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-top:25px}.workspace-subheading h3{margin-bottom:12px}.workspace-table-wrap{overflow:auto}.workspace-table{width:100%;border-collapse:collapse;font-size:.875rem;text-align:left}.workspace-table th{color:var(--muted);font-weight:650;border-bottom:1px solid var(--line);padding:12px 10px;background:var(--canvas);white-space:nowrap}.workspace-table td{padding:12px 10px;border-bottom:1px solid var(--line);vertical-align:top}.workspace-table td:first-child{min-width:190px}.workspace-table td small{display:block;color:var(--muted);margin-top:4px}.workspace-cards{display:grid;gap:12px}.workspace-card{border:1px solid var(--line);border-radius:9px;padding:18px;overflow-wrap:anywhere}.workspace-card h3{margin:0 0 8px}.workspace-card p{margin-bottom:10px}.workspace-card p:last-child{margin-bottom:0}.workspace-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.workspace-card-heading .status-tag{margin:0;white-space:normal}.workspace-card-alert{border-left:4px solid #bd7b16}.workspace-card-alert[data-severity="high"],.workspace-card-alert[data-severity="critical"]{border-left-color:var(--error)}.workspace-card-resolved{border-left-color:var(--success)}.workspace-evidence{display:flex;flex-wrap:wrap;gap:8px 20px;list-style:none;padding:0;margin:12px 0;font-size:.875rem;color:var(--muted)}.workspace-evidence strong{color:var(--ink)}.workspace-answer{border-top:1px solid var(--line);padding-top:16px;margin-top:16px}.workspace-answer .field{margin-bottom:16px}.workspace-answer .field-help{margin-bottom:14px}.workspace-answer .workspace-grid{gap:0 14px}.workspace-answer .notice{margin:14px 0 0}.workspace-check{display:flex;align-items:flex-start;gap:10px;margin-bottom:20px;font-size:.9375rem;font-weight:650;cursor:pointer}.workspace-check input{width:19px;height:19px;flex:0 0 19px;margin:3px 0 0;accent-color:var(--accent)}.workspace-connection{margin:22px 0 26px;padding:20px 0 0;border-top:1px solid var(--line)}.workspace-connection legend{padding:0 8px 0 0;font-size:1rem;font-weight:650}.workspace-connection .field-help{margin-bottom:18px}.workspace-connection .field .field-help{margin:7px 0 0;font-size:.8125rem}.workspace-test-result{font-size:.875rem;margin:10px 0 0;min-height:0}.workspace-test-result[data-type="error"]{color:var(--error)}.workspace-test-result[data-type="success"]{color:var(--success)}.workspace-actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px}.workspace-actions .field-help{margin:0}.workspace-footnote{color:var(--muted);font-size:.8125rem}.workspace-order-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}.workspace-alert-history{font-size:.875rem;background:#f4f7fa;padding:12px;border-radius:6px;white-space:pre-wrap}.workspace-profile-row{padding-top:8px}.workspace-sources-link{font-size:.875rem;overflow-wrap:anywhere}.workspace-card .workspace-dim{font-size:.875rem;color:var(--muted)}#analytics-empty{margin-top:16px}#connections-message{margin:18px 0 0}@media(max-width:850px){.workspace-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.workspace-panel{padding:20px 14px}.workspace-heading{display:block}.workspace-heading button{margin-top:14px}.workspace-grid{grid-template-columns:1fr}.workspace-summary{gap:8px}.workspace-summary .stat{padding:13px 10px}.workspace-summary .stat-value{font-size:1.25rem}.workspace-summary .stat-label{font-size:.75rem}.workspace-card{padding:14px}.workspace-card-heading{display:block}.workspace-card-heading .status-tag{margin-bottom:10px}.workspace-order-actions{display:grid}.workspace-actions{align-items:stretch}.workspace-actions .button{width:100%}.workspace-subheading{display:block}}
.workspace-row-action{padding:8px 12px;min-height:36px;font-size:.8125rem;white-space:nowrap}.workspace-unavailable{color:var(--error)!important}.workspace-replacement{margin-top:20px;background:var(--canvas)}.workspace-replacement form>.button{margin-right:12px;margin-top:8px}.workspace-replacement form>.notice{margin-top:16px;margin-bottom:0}.workspace-replacement-preview{margin:20px 0 10px;border:1px solid var(--line);border-radius:7px;padding:16px;background:var(--surface,#fff)}.workspace-replacement-preview h4{margin:0 0 10px}.workspace-replacement-preview p{margin:0 0 8px}.workspace-month{border:1px solid var(--line);border-radius:8px;padding:16px;margin:12px 0}.workspace-month>summary,.workspace-feedback-disclosure>summary{cursor:pointer;font-weight:650;line-height:1.5}.workspace-month>summary:focus-visible,.workspace-feedback-disclosure>summary:focus-visible{outline:3px solid #728bac;outline-offset:4px}.workspace-month[open]>summary{margin-bottom:14px}.workspace-feedback-disclosure{border-top:1px solid var(--line);padding-top:14px;margin-top:14px}.workspace-feedback-disclosure .workspace-answer{border:0;padding-top:14px;margin-top:0}.workspace-history .workspace-table td:nth-child(2){min-width:150px}@media(max-width:600px){.workspace-month{padding:12px}.workspace-replacement form>.button{width:100%;margin-right:0}.workspace-replacement .workspace-card-heading>.button{width:100%;margin-top:8px}}
.workspace-analogs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.workspace-analog{border:1px solid var(--line);border-radius:7px;padding:14px;background:var(--surface,#fff)}.workspace-analog h4{margin:0 0 8px;font-size:.9375rem}.workspace-analog p{margin:0 0 10px}.workspace-analog .button{display:block;margin-top:12px;width:100%;font-size:.8125rem}.workspace-replacement [data-analogs-message]{margin:12px 0}@media(max-width:600px){.workspace-analogs{grid-template-columns:1fr}}
.workspace-order-progress{background:var(--canvas);border:1px solid var(--line);border-radius:8px;padding:16px;margin:6px 0 18px}.workspace-order-progress h4{margin:0 0 8px;font-size:1rem}.workspace-order-elapsed{font-variant-numeric:tabular-nums;font-weight:650}.workspace-order-steps{list-style:none;display:grid;gap:10px;margin:14px 0;padding:0}.workspace-order-step{border-left:3px solid #c9d3df;padding:5px 0 5px 12px}.workspace-order-step[data-status="done"]{border-color:var(--success)}.workspace-order-step[data-status="running"]{border-color:var(--accent);background:var(--surface,#fff)}.workspace-order-step[data-status="error"]{border-color:var(--error)}.workspace-order-step-heading{display:flex;justify-content:space-between;gap:14px;font-size:.875rem}.workspace-order-step-heading span{color:var(--muted);font-size:.8125rem}.workspace-order-step-time{display:block;color:var(--muted);font-size:.8125rem;margin-top:4px;font-variant-numeric:tabular-nums}.workspace-order-step p{margin:6px 0 0}.workspace-order-progress .notice{margin:12px 0 0}@media(max-width:600px){.workspace-order-progress{padding:12px}.workspace-order-step-heading{display:block}.workspace-order-step-heading span{display:block;margin-top:3px}}

/* Owner delivery and manual 1C payment confirmations. */
.workspace-product-photo{display:block;width:96px;height:96px;flex:0 0 96px;padding:3px;border:1px solid var(--line);border-radius:8px;background:#fff;cursor:zoom-in;overflow:hidden}
.workspace-product-photo .workspace-product-thumbnail{display:block;width:100%;height:100%;padding:0;border:0;border-radius:4px;object-fit:contain}
.workspace-product-photo:hover:not(:disabled){border-color:var(--accent)}
.workspace-product-photo:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
body:has(.workspace-product-dialog[open]){overflow:hidden}
.workspace-product-dialog{width:min(1000px,calc(100vw - 32px));height:min(900px,calc(100vh - 32px));height:min(900px,calc(100dvh - 32px));max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--surface,#fff);color:var(--ink);font:inherit;box-shadow:0 24px 80px #0008;overflow:auto}
.workspace-product-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:16px}
.workspace-product-dialog::backdrop{background:#000a}
.workspace-product-dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;min-width:0}
.workspace-product-dialog-identity{min-width:0;overflow-wrap:anywhere}
.workspace-product-dialog-identity h2{font-size:1.125rem;line-height:1.4;margin:0 0 6px}
.workspace-product-dialog-sku{color:var(--muted);font-size:.8125rem;margin:0}
body.portal-admin .workspace-product-dialog-close{flex:0 0 auto;min-height:44px;min-width:44px;padding:10px 14px;font-size:.875rem;white-space:nowrap}
.workspace-product-dialog-frame{position:relative;display:grid;min-width:0;min-height:0;overflow:hidden;border-radius:10px;background:#fff}
.workspace-product-dialog-image{display:block;grid-area:1/1;width:100%;height:100%;min-height:0;object-fit:contain}
.workspace-product-dialog-frame[aria-busy="true"]::after{content:"";position:absolute;left:50%;top:50%;width:48px;height:48px;box-sizing:border-box;border:5px solid #dce3ee;border-top-color:var(--accent,#635bff);border-radius:50%;box-shadow:0 0 0 12px #fff,0 0 24px 12px #0003;transform:translate(-50%,-50%);animation:workspace-product-photo-spin .8s linear infinite;pointer-events:none;z-index:1}
.workspace-product-dialog:has(.workspace-product-dialog-frame[aria-busy="true"]) .workspace-product-dialog-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes workspace-product-photo-spin{to{transform:translate(-50%,-50%) rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.workspace-product-dialog-frame[aria-busy="true"]::after{animation:none}}
.workspace-product-dialog-status{color:var(--muted);font-size:.875rem;line-height:1.5;margin:0}
@media(max-width:600px){.workspace-product-photo{width:88px;height:88px;flex-basis:88px}.workspace-product-dialog{width:calc(100vw - 24px);max-width:calc(100vw - 24px);height:calc(100vh - 24px);height:calc(100dvh - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:14px;border-radius:14px}.workspace-product-dialog[open]{gap:12px}.workspace-product-dialog-header{gap:10px}.workspace-product-dialog-identity h2{font-size:1rem}body.portal-admin .workspace-product-dialog-close{padding:10px;font-size:.8125rem}}
.followup-overview{margin:24px 0}.followup-overview .notice{margin-bottom:0}.workspace-followup{margin:16px 0;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--canvas)}.workspace-followup h4{font-size:1rem;margin:0 0 12px}.workspace-followup-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px;margin:0 0 16px}.workspace-followup-dates div{min-width:0}.workspace-followup-dates dt{color:var(--muted);font-size:.8125rem}.workspace-followup-dates dd{margin:3px 0 0;font-weight:650}.workspace-delivery-form .field{max-width:260px;margin-bottom:12px}.workspace-delivery-form .workspace-order-actions{margin-top:8px}.workspace-order-contents{margin-top:18px;border-top:1px solid var(--line);padding-top:16px}.workspace-order-contents>summary{font-weight:650;cursor:pointer;line-height:1.5}.workspace-order-contents[open]>summary{margin-bottom:14px}.workspace-order-contents>summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px}.workspace-product{display:flex;align-items:center;gap:12px;min-width:0}.workspace-product-name{min-width:0}.workspace-product-thumbnail{width:96px;height:96px;flex:0 0 96px;object-fit:contain;border:1px solid var(--line);border-radius:8px;background:#fff;padding:3px}.workspace-product-thumbnail[hidden]{display:none}.workspace-order-contents .workspace-table td:not(:first-child){white-space:nowrap}.workspace-payment-followup .workspace-order-actions{align-items:center}@media(max-width:600px){.workspace-followup{padding:12px}.workspace-followup-dates{grid-template-columns:1fr;gap:10px}.workspace-delivery-form .field{max-width:none}.workspace-product{gap:8px}.workspace-product-thumbnail{width:88px;height:88px;flex-basis:88px}.workspace-followup .workspace-order-actions .button{width:100%}}
