/* CRM concept: 8px spacing rhythm; fluid cards, 48px controls, restrained motion. */
.crm190 {
 --crm-accent:var(--accent,#b81d24);--crm-ink:var(--text,#242122);
 --crm-surface:var(--surface,#fff);--crm-line:var(--border,#d1ccc8);
 --crm-soft:var(--ws-soft,#eeece9);--crm-tint:var(--ws-tint,#fbe9e9);
 --crm-muted:var(--muted,#625a5a);--crm-green:#247567;
 --crm-shadow:0 8px 32px #221f1f08;--crm-radius:20px;
 max-width:1360px;margin:0 auto;color:var(--crm-ink);font-size:15px;
}
.crm190 *{box-sizing:border-box;min-width:0}
.crm190 h1,.crm190 h2,.crm190 h3,.crm190 p{margin:0}
.crm190 h1{font-size:clamp(25px,2.8vw,36px);line-height:1.5;font-weight:800;letter-spacing:-.3px}
.crm190 h2{font-size:clamp(18px,2vw,23px);line-height:1.6;font-weight:750}
.crm190 h3{font-size:16px;line-height:1.7;font-weight:700}
.crm190 p{line-height:1.9;overflow-wrap:anywhere}
.crm190 small{font-size:12px;line-height:1.8;color:var(--crm-muted)}
.crm191-icon{width:22px;height:22px;flex:0 0 22px;vertical-align:middle;display:inline-block}
.crm190-heading{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 32px;border:1px solid var(--crm-line);border-radius:24px;background:var(--crm-surface);box-shadow:var(--crm-shadow);overflow:hidden}
.crm190-heading::after{content:'';position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 0 0,var(--crm-tint),transparent 65%);pointer-events:none}
.crm190-heading>div:first-child{flex:1;max-width:740px}
.crm190-heading h1{margin:12px 0 8px}
.crm190-heading p{color:var(--crm-muted);font-size:14px}
.crm190-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:700;color:var(--crm-accent)}
.crm191-dot{height:7px;width:7px;border-radius:50%;background:currentColor;box-shadow:0 0 0 5px var(--crm-tint)}
.crm190-badge{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--crm-line);background:var(--crm-tint);color:var(--crm-ink);padding:5px 12px;border-radius:24px;font-size:12px;font-weight:600;line-height:1.7;white-space:nowrap}
.crm190-heading>.crm190-badge{position:absolute;left:20px;top:16px;font-size:11px;background:var(--crm-surface)}
.crm191-hero-art{width:160px;height:136px;display:grid;place-items:center;position:relative;margin-top:16px;flex-shrink:0}
.crm191-hero-art::before{content:'';position:absolute;width:120px;height:120px;border-radius:50%;border:1px dashed var(--crm-line);background:var(--crm-surface);transform:rotate(-12deg)}
.crm191-hero-art>.crm191-product{transform:scale(1.8) rotate(-9deg);box-shadow:0 10px 24px #221f1f12}
.crm191-orbit{position:absolute;bottom:0;left:4px;height:44px;width:44px;border-radius:14px;display:grid;place-items:center;background:var(--crm-accent);color:white;box-shadow:0 5px 12px #221f1f14}
.crm190-notice{margin:16px 0;padding:12px 16px;border:1px dashed var(--crm-line);border-radius:12px;color:var(--crm-muted);background:var(--crm-surface);font-size:12px;line-height:1.9}
.crm190-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:6px;gap:8px;background:var(--crm-soft);border:1px solid var(--crm-line);border-radius:16px;margin:20px 0}
.crm190 button{font:inherit;cursor:pointer;touch-action:manipulation;transition:background-color 160ms ease,border-color 160ms ease,box-shadow 160ms ease,transform 160ms ease,color 160ms ease}
.crm190-switch button,.crm190-tabs button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px 16px;border:1px solid transparent;color:var(--crm-muted);background:transparent;border-radius:11px;font-weight:600;font-size:14px}
.crm190-switch button[aria-pressed=true]{background:var(--crm-surface);color:var(--crm-accent);border-color:var(--crm-line);box-shadow:0 3px 8px #221f1f0b;animation:crm191-select 180ms ease-out}
.crm190-switch button[aria-pressed=true]>.crm191-icon{stroke-width:2}
.crm190 :is(button,input,select,textarea,summary):focus-visible{outline:3px solid var(--crm-accent);outline-offset:3px}
.crm190 button:active:not(:disabled){transform:scale(.985)}
.crm190-summary{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;margin:20px 0;background:var(--crm-surface);border:1px solid var(--crm-line);border-radius:var(--crm-radius);box-shadow:var(--crm-shadow)}
.crm191-order-person{display:flex;align-items:center;gap:16px}
.crm191-avatar{width:64px;height:64px;flex:0 0 64px;display:grid;place-items:center;color:var(--crm-accent);background:var(--crm-tint);border:1px solid var(--crm-line);border-radius:20px}
.crm191-avatar svg{width:30px;height:30px}
.crm190-summary h2{margin:4px 0}
.crm190-summary p{font-size:12px;color:var(--crm-muted)}
.crm190-summary>div:last-child{display:flex;align-items:flex-start;gap:8px;flex-direction:column;flex-shrink:0}
.crm190-tabs{display:flex;gap:8px;padding:8px;background:var(--crm-surface);border:1px solid var(--crm-line);border-radius:16px;margin:20px 0 16px;overflow:auto;scrollbar-width:thin}
.crm190-tabs button{flex:1 0 auto;position:relative;white-space:nowrap;font-size:13px}
.crm190-tabs button[aria-current=page]{color:var(--crm-accent);background:var(--crm-tint);border-color:var(--crm-line);animation:crm191-select 180ms ease-out}
.crm190-tabs button[aria-current=page]::after{content:'';height:3px;width:24px;position:absolute;bottom:2px;left:calc(50% - 12px);border-radius:3px;background:var(--crm-accent)}
.crm191-content{animation:crm191-reveal 200ms ease-out}
.crm190-layout{display:grid;grid-template-columns:minmax(240px,300px) minmax(0,1fr);gap:24px;align-items:start}
.crm190-panel{padding:24px;background:var(--crm-surface);border:1px solid var(--crm-line);border-radius:var(--crm-radius);box-shadow:var(--crm-shadow)}
.crm190-panel>h2+p{margin-top:8px;color:var(--crm-muted);font-size:14px}
.crm190-layout>aside{position:sticky;top:16px}
.crm190-layout>aside>h3{padding-bottom:16px;border-bottom:1px solid var(--crm-line);margin-bottom:16px}
.crm190-item{position:relative;display:flex;align-items:center;text-align:right;gap:12px;padding:16px 12px;width:100%;min-height:112px;color:var(--crm-ink);background:var(--crm-surface);border:1px solid var(--crm-line);border-radius:16px;margin:12px 0;overflow:hidden}
.crm190-item[aria-pressed=true]{border-color:var(--crm-accent);box-shadow:inset -3px 0 0 var(--crm-accent),0 4px 14px #221f1f08;background:var(--crm-tint);animation:crm191-select 180ms ease-out}
.crm191-item-body{display:grid;gap:6px;flex:1}
.crm191-item-body>b{font-size:14px;line-height:1.7}
.crm191-item-body>span{font-size:13px;font-weight:600}
.crm191-item-body small{font-size:11px}
.crm191-item-check{align-self:flex-start;border:1px solid var(--crm-line);border-radius:50%;width:20px;height:20px;flex:0 0 20px;background:var(--crm-surface);display:grid;place-items:center}
.crm191-item-check svg{width:14px;height:14px}
.crm190-item[aria-pressed=true] .crm191-item-check{background:var(--crm-accent);border-color:var(--crm-accent);color:white}
.crm191-product{display:flex;align-items:center;justify-content:center;position:relative;gap:2px;width:52px;height:58px;flex:0 0 52px;background:linear-gradient(145deg,#f9f9f7,#dcdfe1);border:1px solid #c7cccf;border-radius:14px;overflow:hidden}
.crm191-product i{position:relative;height:35px;width:9px;display:block;background:linear-gradient(90deg,#53616b,#cbd2d5 48%,#64717a);transform:rotate(-26deg);border:1px solid #626f77;box-shadow:2px 3px 3px #26323a26}
.crm191-product.rebar i{border-radius:4px;background:repeating-linear-gradient(155deg,transparent 0 5px,#eef2f54d 5px 7px),linear-gradient(90deg,#52616d,#c3cdd2 55%,#596a76)}
.crm191-product.beam i{width:12px;clip-path:polygon(0 0,100% 0,100% 18%,66% 18%,66% 82%,100% 82%,100% 100%,0 100%,0 82%,34% 82%,34% 18%,0 18%);background:linear-gradient(90deg,#455865,#aebbc4 50%,#5b6f7e)}
.crm191-product i:nth-child(2){height:42px;z-index:1}
.crm191-product-title{display:flex;align-items:center;gap:12px}
.crm190-between{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:20px;border-bottom:1px solid var(--crm-line)}
.crm190-between h2{font-size:20px;margin-top:3px}
.crm190-track{display:flex;list-style:none;padding:24px 0;margin:0;gap:0}
.crm190-track li{position:relative;flex:1;text-align:center;display:grid;justify-items:center;gap:10px;color:var(--crm-muted);font-size:12px;line-height:1.5;isolation:isolate}
.crm190-track li:not(:last-child)::after{content:'';position:absolute;z-index:-1;height:2px;background:var(--crm-line);top:20px;right:calc(50% + 21px);width:calc(100% - 42px)}
.crm190-track li.reached:not(:last-child)::after{background:var(--crm-green)}
.crm190-track i{height:42px;width:42px;border-radius:14px;font-style:normal;background:var(--crm-surface);border:1px solid var(--crm-line);display:grid;place-items:center}
.crm190-track .reached{color:var(--crm-green)}
.crm190-track .reached i{background:#e7f4ef;color:#246758;border-color:#a4cfc0}
.crm190-track [aria-current=step] i{background:var(--crm-green);border-color:var(--crm-green);color:white;box-shadow:0 0 0 4px #2a84721a}
.crm191-progress{border:1px solid var(--crm-line);padding:16px;border-radius:12px;margin-bottom:16px;background:var(--crm-surface)}
.crm191-progress>div:first-child{display:flex;justify-content:space-between;gap:16px;font-size:12px;margin-bottom:10px}
.crm191-progress strong{color:var(--crm-green);font-size:16px}
.crm191-progress-track{height:8px;border-radius:8px;overflow:hidden;background:var(--crm-soft)}
.crm191-progress-track>span{height:100%;display:block;background:var(--crm-green);border-radius:inherit;transition:width 180ms ease}
.crm190-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.crm190-metrics>div{position:relative;display:grid;gap:8px;padding:16px 56px 16px 16px;border:1px solid var(--crm-line);border-radius:14px;background:var(--crm-surface)}
.crm191-metric-icon{position:absolute;right:14px;top:18px;color:var(--crm-muted);width:32px;height:32px;background:var(--crm-soft);border-radius:10px;display:grid;place-items:center}
.crm191-metric-icon svg{width:18px;height:18px}
.crm190-metrics>div:nth-child(2) .crm191-metric-icon,.crm190-metrics>div:nth-child(4) .crm191-metric-icon{color:#246758;background:#e7f4ef}
.crm190-metrics strong{font-size:24px;line-height:1.35;font-weight:750}
.crm190-metrics strong small{font-size:11px;font-weight:400;margin-right:4px}
.crm190-next{margin-top:16px!important;border:1px solid var(--crm-line);border-right:3px solid var(--crm-accent);border-radius:12px;padding:12px 16px;background:var(--crm-tint);font-size:13px}
.crm190 details{border:1px solid var(--crm-line);border-radius:14px;margin-top:16px;padding:0 16px 16px;background:var(--crm-surface)}
.crm190 summary{cursor:pointer;min-height:48px;padding:14px 0;color:var(--crm-ink);font-weight:600;font-size:13px;line-height:1.7}
.crm190 details:not([open]){padding-bottom:0}
.crm190 details>p{font-size:13px;border-top:1px dashed var(--crm-line);padding:12px 0}
.crm190-shipment{display:grid;gap:8px;position:relative;border:1px solid var(--crm-line);border-right:3px solid var(--crm-green);background:var(--crm-surface);padding:16px;border-radius:10px;margin:12px 0;font-size:13px}
.crm190-shipment span{color:var(--crm-muted)}
.crm190 form{display:grid;gap:16px;padding:20px;border:1px solid var(--crm-line);border-radius:16px;background:var(--crm-surface);margin-top:20px}
.crm190-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.crm190 label{display:grid;gap:8px;font-size:13px;font-weight:600;color:var(--crm-ink)}
.crm190 input,.crm190 textarea,.crm190 select{width:100%;font:inherit;font-size:16px;min-height:48px;padding:12px 14px;border:1px solid var(--crm-line);border-radius:10px;background:var(--crm-surface);color:var(--crm-ink);transition:border-color 160ms ease,box-shadow 160ms ease}
.crm190 textarea{min-height:104px;resize:vertical;line-height:1.8}
.crm190 input[type=file]{font-size:12px;border-style:dashed;line-height:1.9}
.crm190 .btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:48px;min-width:48px;border-radius:11px;padding:10px 18px;font-size:13px;font-weight:600;align-self:start;border:1px solid var(--crm-line);background:var(--crm-surface);color:var(--crm-ink)}
.crm190 form>.btn{justify-self:start}
.crm190 .btn.primary{background:var(--crm-accent);color:#fff;border-color:var(--crm-accent);box-shadow:0 4px 10px #b81d2414}
.crm190-docs,.crm190-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:24px}
.crm190-docs article{display:flex;flex-direction:column;align-items:flex-start;gap:12px;border:1px solid var(--crm-line);padding:24px;border-radius:16px;background:var(--crm-surface);transition:box-shadow 180ms ease,border-color 180ms ease}
.crm191-doc-icon{display:grid;place-items:center;height:48px;width:48px;border:1px solid var(--crm-line);background:var(--crm-tint);color:var(--crm-accent);border-radius:14px}
.crm191-doc-icon svg{width:24px;height:24px}
.crm190-docs article>p{font-size:13px;color:var(--crm-muted);flex:1}
.crm190-docs article>b{font-size:12px;color:var(--crm-muted);direction:ltr}
.crm190-docs article>.btn{margin-top:8px;width:100%}
.crm190-gallery article{display:flex;flex-direction:column;gap:12px;border:1px solid var(--crm-line);background:var(--crm-surface);border-radius:16px;padding:16px;overflow:hidden}
.crm190-gallery img{width:100%;height:220px;object-fit:contain;background:var(--crm-soft);border:1px solid var(--crm-line);border-radius:12px}
.crm190-gallery b{font-size:14px;overflow-wrap:anywhere}
.crm190-empty{grid-column:1/-1;display:grid;align-content:center;min-height:160px;text-align:center;padding:32px 20px;color:var(--crm-muted);border:1px dashed var(--crm-line);border-radius:16px;font-size:14px}
.crm190-chat{min-height:240px;max-height:480px;overflow:auto;border:1px solid var(--crm-line);border-radius:16px;margin-top:20px;padding:24px;background:var(--crm-soft);scrollbar-width:thin}
.crm190-chat>p{text-align:center;padding:40px 16px;color:var(--crm-muted);font-size:13px}
.crm190-chat article{width:fit-content;max-width:85%;padding:14px 18px;border:1px solid var(--crm-line);border-radius:16px 16px 4px 16px;margin:12px 0;background:var(--crm-surface);box-shadow:0 2px 6px #221f1f05;overflow-wrap:anywhere}
.crm190-chat article.customer{margin-right:auto;border-radius:16px 16px 16px 4px;background:var(--crm-tint)}
.crm190-chat article>b{font-size:12px;color:var(--crm-accent)}
.crm190-chat article>p{margin:6px 0;font-size:14px}
.crm190-chat article small{font-size:10px}
.crm190-status:empty{display:none}
.crm190-status:not(:empty){border:1px solid #a4cfc0;border-right:4px solid var(--crm-green);background:#e7f4ef;color:#235f51;padding:16px 20px;margin-top:20px;border-radius:12px;font-size:13px;line-height:1.9;animation:crm191-reveal 180ms ease-out}
.crm190 button:disabled{cursor:default;opacity:.5;box-shadow:none;transform:none}
.crm190[data-crm-view191=plan]>.crm190-panel{animation:crm191-reveal 200ms ease-out}
@media(hover:hover){.crm190 button:hover:not(:disabled){border-color:var(--crm-accent)}.crm190-item:hover:not([aria-pressed=true]){background:var(--crm-soft);transform:translateY(-2px)}.crm190-docs article:hover{box-shadow:var(--crm-shadow);border-color:var(--crm-accent)}.crm190-switch button:hover,.crm190-tabs button:hover{color:var(--crm-accent)}}
@keyframes crm191-select{from{box-shadow:0 0 0 3px var(--crm-tint)}to{box-shadow:0 0 0 0 transparent}}
@keyframes crm191-reveal{from{opacity:.6;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1250px){.crm190-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.crm190-metrics>div{padding:16px}.crm191-metric-icon{position:static;margin-bottom:2px}.crm190-metrics strong{font-size:22px}}
@media(max-width:900px){.crm190-layout{grid-template-columns:1fr}.crm190-layout>aside{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:20px}.crm190-layout>aside>h3,.crm190-layout>aside>small{grid-column:1/-1;margin:0}.crm190-item{margin:0}.crm190-heading{padding:24px}.crm190-summary{align-items:flex-start}.crm190-summary h2{font-size:18px}.crm190-summary>div:last-child{max-width:200px}}
@media(max-width:600px){.crm190{font-size:14px}.crm190-heading{padding:52px 20px 20px;gap:8px;border-radius:18px}.crm190-heading h1{font-size:25px}.crm191-hero-art{width:64px;height:100px;align-self:flex-end}.crm191-hero-art::before{width:72px;height:72px}.crm191-hero-art>.crm191-product{transform:rotate(-9deg) scale(.95)}.crm191-orbit{height:28px;width:28px;border-radius:9px;bottom:6px;left:-4px}.crm191-orbit svg{width:16px;height:16px}.crm190-heading>.crm190-badge{left:16px;top:14px}.crm190-notice{font-size:11px}.crm190-switch{gap:4px;padding:4px;margin:16px 0}.crm190-switch button{flex-direction:column;font-size:11px;padding:8px 5px;gap:6px;min-height:72px}.crm190-summary{flex-direction:column;padding:20px;gap:16px}.crm191-avatar{width:48px;height:48px;flex-basis:48px;border-radius:15px}.crm191-avatar svg{width:24px;height:24px}.crm190-summary>div:last-child{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;max-width:none;gap:8px}.crm190-summary>div:last-child>.btn{width:100%}.crm190-tabs{padding:6px;margin:16px 0}.crm190-tabs button{padding:10px 12px}.crm190-layout{gap:16px}.crm190-layout>aside{padding:16px;gap:8px}.crm190-item{padding:12px;flex-wrap:wrap;gap:8px;align-content:start}.crm190-item>.crm191-product{width:42px;height:44px;flex-basis:42px}.crm191-item-check{position:absolute;left:10px;top:10px}.crm191-item-body{flex-basis:100%}.crm191-item-body>b{font-size:12px}.crm191-item-body>span{font-size:12px}.crm191-item-body small{font-size:10px}.crm190-panel{padding:16px;border-radius:16px}.crm190-between{gap:8px;align-items:flex-start;flex-wrap:wrap}.crm191-product-title h2{font-size:18px}.crm190-between>.crm190-badge{margin-right:64px}.crm190-track{padding:24px 0}.crm190-track li{font-size:10px;gap:10px}.crm190-track i{height:32px;width:32px;border-radius:10px}.crm190-track i svg{width:17px;height:17px}.crm190-track li:not(:last-child)::after{top:15px;right:calc(50% + 17px);width:calc(100% - 34px)}.crm190-metrics{gap:8px}.crm190-metrics>div{padding:12px}.crm191-metric-icon{position:static;width:28px;height:28px}.crm190-metrics strong{font-size:21px}.crm190-metrics small{font-size:11px}.crm190-fields,.crm190-docs,.crm190-gallery{grid-template-columns:1fr}.crm190 form{padding:16px}.crm190-docs article{padding:20px}.crm190-chat{padding:12px}.crm190-chat article{max-width:95%}.crm190 form>.btn{width:100%}}
@media(prefers-reduced-motion:reduce){.crm190 *,.crm190 *::before,.crm190 *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.crm190 button:active:not(:disabled),.crm190-item:hover{transform:none}}

/* Customer preview opens a separate shell, never the employee workspace. */
.crm190-switch .crm192-customer-link{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px 16px;border:1px solid transparent;border-radius:11px;color:var(--crm-muted);text-decoration:none;font-size:14px;font-weight:600;transition:background-color 160ms,border-color 160ms}.crm190-switch .crm192-customer-link:hover{border-color:var(--crm-accent);color:var(--crm-accent);background:var(--crm-surface)}.crm190 .btn[href]{text-decoration:none}.crm190 a:focus-visible{outline:3px solid var(--crm-accent);outline-offset:3px}@media(max-width:600px){.crm190-switch .crm192-customer-link{flex-direction:column;font-size:11px;padding:8px 5px;gap:6px;min-height:72px}}@media(prefers-reduced-motion:reduce){.crm190-switch .crm192-customer-link{transition:none}}
