/* Historical CRM components reflowed for the existing 400 / 420 story card.
   Illustrations only: no controls, no zoom, no additional motion. */
.crm-screen{container-type:inline-size;box-sizing:border-box;width:100%;height:100%;padding:clamp(12px,3vw,18px);display:flex;flex-direction:column;gap:10px;color:#163348;background:linear-gradient(180deg,#fff 0 24%,#f0f8f4 100%);font-family:var(--f-display,inherit);font-size:13px;line-height:1.3;text-align:left;overflow:hidden}
.crm-screen *{box-sizing:border-box}
.crm-screen :is(strong,small,span,p){margin:0;line-height:inherit}
.crm-screen strong{font-weight:700;letter-spacing:-.025em;color:#163348}
.crm-screen small{font-size:12px;font-weight:500;color:#5c747d}
.crm-screen .crm-icon{width:20px;height:20px;flex:none;display:block}
.crm-brand{display:flex;align-items:center;justify-content:space-between;gap:7px;min-height:25px;flex:none}
.crm-brand>span:first-child{display:flex;align-items:center;gap:6px;min-width:0}
.crm-brand img{display:block;width:26px;height:26px;object-fit:contain}
.crm-brand strong{font-size:19px;white-space:nowrap}
.crm-screen .crm-example{font-size:12px;font-weight:650;line-height:1.1;letter-spacing:.01em;color:#526d73;border:1px solid #d8e7e1;border-radius:5px;padding:4px 5px;white-space:nowrap;background:#fff}
.crm-heading{min-width:0;display:flex;flex-direction:column;gap:3px;flex:none}
.crm-crumb{font-size:12px;color:#59747a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crm-screen .crm-title{font-size:clamp(17px,5.6cqw,25px);line-height:1.12;letter-spacing:-.045em;overflow-wrap:anywhere}
.crm-main{min-height:0;flex:1;display:flex;flex-direction:column;gap:8px;justify-content:center}
.crm-card-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;min-width:0;font-size:12px;line-height:1.2;flex:none}
.crm-card-heading strong{font-size:13px}
.crm-card-heading>span{font-size:12px;color:#607b7a;white-space:nowrap}
.crm-foot{display:flex;align-items:center;gap:6px;padding-top:7px;border-top:1px solid #d3e4dc;min-height:22px;flex:none;font-size:12px;line-height:1.2;color:#3a6b60}
.crm-screen .crm-foot .crm-icon{width:15px;height:15px;color:#2e9278}
.crm-field{display:flex;align-items:center;gap:9px;min-width:0;padding:8px 10px;background:#fff;border:1px solid #d8e8e1;border-radius:11px;flex:none}
.crm-field>div{min-width:0;display:flex;flex-direction:column;gap:2px}
.crm-field strong{font-size:clamp(13px,4.1cqw,16px);line-height:1.2;overflow-wrap:anywhere}
.crm-field-icon{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:8px;background:#e8f7ef;color:#26856f}

/* The free account's site record shows supplied location/access information.
   Floor plans and numbered stations are reserved for the contract figure. */
.crm-site-main{justify-content:stretch}
.crm-place-record{display:flex;flex:1;min-height:0;flex-direction:column;justify-content:space-between;gap:12px;padding:13px;border:1px solid #d6e7df;border-radius:13px;background:#fff}
.crm-place-identity{display:flex;align-items:center;gap:11px;min-width:0}
.crm-place-icon{display:grid;place-items:center;width:46px;height:46px;flex:none;border:1px solid #bfdfd1;border-radius:13px;background:linear-gradient(140deg,#e0f5e9,#e8f6fa);color:#27856e}
.crm-screen .crm-place-icon .crm-icon{width:28px;height:28px}
.crm-place-identity>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.crm-place-identity strong{font-size:clamp(15px,4.7cqw,20px);line-height:1.15}
.crm-place-zones{display:flex;flex-direction:column;gap:7px;padding-top:10px;border-top:1px solid #e0ebe5}
.crm-place-zone-list{display:flex;flex-wrap:wrap;gap:5px}
.crm-place-zone-list>span{padding:5px 7px;border:1px solid #d7e7de;border-radius:6px;background:#f3f9f5;color:#385f53;font-size:12px;line-height:1.2}
.crm-place-meta{display:grid;grid-template-columns:1fr 1fr;gap:9px;flex:none}
.crm-place-meta>div{display:flex;flex-direction:column;gap:5px;min-width:0;padding:10px;border:1px solid #d6e7df;border-radius:11px;background:#fff}
.crm-place-meta small{display:flex;align-items:center;gap:5px;font-size:12px}
.crm-screen .crm-place-meta .crm-icon{width:14px;height:14px;color:#508679}
.crm-place-meta strong{font-size:13px;line-height:1.2;overflow-wrap:anywhere}

/* Responsive room geometry for the separate contract illustration. */
.crm-screen .crm-plan{position:relative;display:grid;grid-template-columns:1.1fr 1fr;grid-template-rows:1fr 1fr;gap:4px;min-height:96px;flex:1;border:2px solid #638f85;border-radius:5px;background:#e3eee9;overflow:hidden}
.crm-plan-room{position:relative;min-width:0;min-height:0;border:1px solid #97b8ae;background:#f6fbf8}
.crm-plan-room--1{grid-row:1/3;background:#e6f4ed}.crm-plan-room--2{background:#edf7fa}.crm-plan-room--3{background:#f9f5e9}
.crm-plan-label{position:absolute;top:7px;left:7px;right:5px;font-size:12px;line-height:1.15!important;color:#35574f;font-weight:600}
.crm-screen .crm-plan-pin{position:absolute;bottom:7px;right:8px;top:auto;left:auto;width:21px;height:21px;margin:0;display:grid;place-items:center;border:2px solid white;border-radius:50%;background:#347d6d;color:#fff;font-size:12px;font-weight:700;line-height:1;box-shadow:0 1px 3px #16334825}
.crm-plan-room--2 .crm-plan-label,.crm-plan-room--3 .crm-plan-label{top:50%;right:36px;transform:translateY(-50%)}
.crm-screen .crm-plan-room--2 .crm-plan-pin,.crm-screen .crm-plan-room--3 .crm-plan-pin{top:50%;bottom:auto;transform:translateY(-50%)}
.crm-plan-room--2 .crm-plan-pin{background:#3c8ca2}.crm-plan-room--3 .crm-plan-pin{background:#ad8650}
.crm-plan-door{position:absolute;width:17px;height:14px;border:1px solid #8faea4;border-left:0;background:#fff;z-index:1}
.crm-plan-door--one{left:calc(52.38% - 9px);top:26%;border-radius:0 100% 0 0}.crm-plan-door--two{left:calc(52.38% - 9px);bottom:17%;border-radius:0 100% 0 0}

/* Historical scene-line order card and its separate total. */
.crm-screen .crm-order-line{display:block;min-width:0;margin:0;padding:11px 12px;border:1px solid #d6e7df;border-radius:13px;background:#fff}
.crm-treatment{display:flex;align-items:center;gap:9px;min-width:0}
.crm-treatment>div{min-width:0;display:flex;flex-direction:column;gap:4px}
.crm-treatment strong{font-size:clamp(14px,4.6cqw,19px);line-height:1.15}
.crm-treatment>div>span{font-size:12px;color:#577480}
.crm-scope{display:flex;gap:7px;align-items:center;font-size:12px;color:#577480;border-top:1px solid #e0ebe6;margin-top:8px;padding-top:8px}
.crm-screen .crm-scope .crm-icon{width:17px;height:17px}
.crm-price{display:flex;align-items:center;justify-content:space-between;gap:9px;border:1px solid #bfe5d7;border-radius:13px;background:#e5f7ee;padding:10px 12px;flex:none}
.crm-price>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.crm-price strong{font-size:clamp(29px,9.5cqw,44px);letter-spacing:-.06em;line-height:1}
.crm-price strong>span{font-size:.58em;margin-left:2px}
.crm-price small{font-size:12px;color:#4b7165;letter-spacing:0}
.crm-passages{display:flex;flex-direction:column;gap:2px;font-size:clamp(13px,4cqw,16px);font-weight:700;text-align:right;color:#247d67;white-space:nowrap}
.crm-order-generic .crm-order-line{padding:0 10px}.crm-order-generic .crm-field{border:0;padding:9px 0;background:none;border-radius:0}.crm-order-generic .crm-field+.crm-field{border-top:1px solid #e0ebe6}
.crm-order-check{display:flex;flex-direction:column;gap:3px;padding:10px 12px;background:#e5f7ee;border:1px solid #bfe5d7;border-radius:11px;font-size:12px;color:#4b7165}.crm-order-check strong{font-size:14px}

/* Historical next-passage and agenda blocks; no fabricated dates, automatic
   reminders or assigned technician promises. */
.crm-screen .crm-next{display:flex;align-items:center;gap:12px;padding:12px;background:#fff7e9;border:1px solid #e6d4b6;border-radius:13px}
.crm-next>div{display:flex;flex-direction:column;gap:4px;min-width:0}.crm-next small{color:#856b43}.crm-next strong{font-size:clamp(14px,4.5cqw,18px);color:#72552b;line-height:1.15}
.crm-calendar-symbol{position:relative;display:grid;place-items:center;width:42px;height:43px;flex:none;border:1px solid #d0b283;border-top:9px solid #dec090;border-radius:7px;color:#9c773b;background:#fffdf7}
.crm-calendar-symbol:before,.crm-calendar-symbol:after{content:'';position:absolute;top:-12px;width:3px;height:8px;background:#a98655;border-radius:3px}.crm-calendar-symbol:before{left:9px}.crm-calendar-symbol:after{right:9px}
.crm-screen .crm-agenda{display:grid;gap:0;border:1px solid #d7e6df;background:#fff;border-radius:12px;padding:0 11px}
.crm-screen .crm-ag{display:flex;align-items:center;gap:9px;padding:10px 0;min-width:0}.crm-ag+.crm-ag{border-top:1px solid #e0ebe6}.crm-ag>div{display:flex;flex-direction:column;gap:2px;min-width:0}.crm-ag strong{font-size:clamp(13px,4cqw,16px);line-height:1.2}
.crm-ag-mark{display:grid;place-items:center;flex:none;width:25px;height:29px;border-radius:6px;background:#e8f4ef;color:#377c68;font-size:12px;font-weight:700}

/* Historical document stack: a report sheet, recommendations, and invoice. */
.crm-document-list{gap:7px}.crm-screen .crm-document{display:block;position:relative;min-width:0;padding:10px;background:#fff;border:1px solid #d6e7df;border-radius:11px}
.crm-document-heading{display:flex;align-items:center;gap:9px;min-width:0}.crm-document-heading>div{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.crm-document strong{font-size:clamp(13px,4.1cqw,17px);line-height:1.2}.crm-document small{font-size:12px;line-height:1.2}
.crm-file-icon{display:grid;place-items:center;flex:none;width:30px;height:34px;border-radius:7px;color:#267f69;background:#e8f7ef}.crm-document:nth-child(2) .crm-file-icon{color:#287c94;background:#e4f5fb}.crm-document:nth-child(3) .crm-file-icon{color:#6076b2;background:#edf0fe}
.crm-file-mark{display:grid;place-items:center;width:17px;height:17px;flex:none;border-radius:50%;background:#e7f7ee;color:#399e7b}.crm-screen .crm-file-mark .crm-icon{width:12px;height:12px}
.crm-document--report{box-shadow:0 3px 0 -1px #e2ede7}.crm-paper-lines{display:grid;gap:4px;margin:8px 2px 0 39px}.crm-paper-lines i{display:block;height:3px;background:#e8efeb;border-radius:3px;width:100%}.crm-paper-lines i:nth-child(2){width:82%}.crm-paper-lines i:nth-child(3){width:58%}

/* Historical multi-site view: summary strip, site statuses and dossiers. */
.crm-portfolio-main{justify-content:stretch}.crm-screen .crm-figures{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px 10px;border:1px solid #d5e6dd;background:#e8f6ee;border-radius:10px;color:#4a7367;font-size:12px}.crm-figures>span:first-child{display:flex;align-items:baseline;gap:5px}.crm-figures strong{font-size:20px;line-height:1;color:#237e64}
.crm-screen .crm-sites{display:flex;flex-direction:column;gap:0;flex:1;padding:0 10px;border:1px solid #d6e7df;border-radius:12px;background:#fff;min-height:0}
.crm-screen .crm-site-row{display:flex;align-items:center;gap:8px;min-width:0;padding:10px 0;border:0;border-bottom:1px solid #dce9e4;border-radius:0;background:none;flex:1}.crm-site-row:last-child{border-bottom:0}.crm-site-row>div{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.crm-site-row strong{font-size:clamp(13px,4.1cqw,16px);line-height:1.15;overflow-wrap:anywhere}.crm-site-row small{font-size:12px;line-height:1.2}
.crm-site-status{display:flex;align-items:center;gap:5px}.crm-site-status i{display:block;width:6px;height:6px;flex:none;border-radius:50%;background:#37a180}.crm-site-status--1 i{background:#d0a051}.crm-site-status--2 i{background:#829cb3}.crm-folder-mark{color:#71998a;flex:none}.crm-screen .crm-folder-mark .crm-icon{width:17px;height:17px}

/* Standalone contract illustration: natural height, never a scaled story card. */
.crm-screen--contract{height:auto;min-height:0;max-width:640px;margin-inline:auto;aspect-ratio:auto;overflow:visible;gap:17px;padding:20px;border:1px solid #cfe2d8;border-radius:22px;background:linear-gradient(145deg,#f9fcfa,#eef7f3)}
.crm-screen--contract .crm-title{font-size:clamp(21px,5.6cqw,28px)}.crm-screen--contract .crm-crumb{white-space:normal;overflow:visible}
.crm-contract-scope{display:flex;flex-wrap:wrap;gap:7px;font-size:12px}.crm-contract-scope span{padding:6px 9px;border:1px solid #bfe1d2;border-radius:7px;color:#23745b;background:#e2f5eb;font-weight:600}.crm-contract-scope span+span{background:#eef5fb;color:#4f7089;border-color:#cfdde9}
.crm-contract-grid{display:grid;grid-template-columns:1.08fr 1fr;gap:13px;min-width:0}.crm-contract-plan,.crm-contract-records{display:flex;flex-direction:column;gap:10px;min-width:0;padding:12px;border:1px solid #d1e2d8;border-radius:13px;background:#fff}.crm-contract-plan .crm-plan{flex:none;min-height:175px}
.crm-screen .crm-plan--stations .crm-plan-pin{width:26px;height:26px;right:6px;bottom:7px;font-size:12px}.crm-screen .crm-plan-pin--0,.crm-station-pin--0{background:#278767!important}.crm-screen .crm-plan-pin--1,.crm-station-pin--1{background:#b88b38!important}.crm-screen .crm-plan-pin--2,.crm-station-pin--2{background:#6d86a1!important}
.crm-screen .crm-plan-note{font-size:12px;line-height:1.4;color:#617971}.crm-screen .crm-stations{display:flex;flex-direction:column;flex:1;gap:0}.crm-screen .crm-station{display:flex;align-items:center;gap:8px;padding:12px 0;flex:1;border:0;border-bottom:1px solid #e2ece6;border-radius:0;background:none}.crm-station:last-child{border-bottom:0}.crm-station>div{display:flex;flex-direction:column;gap:4px;min-width:0}.crm-station strong{font-size:13px;line-height:1.2}.crm-station small{font-size:12px;line-height:1.3}.crm-station-pin{display:grid;place-items:center;flex:none;width:27px;height:27px;border-radius:50%;color:#fff;font-size:12px;font-weight:700}
.crm-screen .crm-contract-agenda{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0 12px;border:1px solid #d3e3da;border-radius:12px;background:#fff}.crm-contract-agenda .crm-ag+.crm-ag{border:0;border-left:1px solid #dce8e1;padding-left:12px}.crm-contract-agenda .crm-ag strong{font-size:13px}.crm-screen .crm-contract-note{font-size:12px;line-height:1.5;color:#4e6d63}

@container (max-width:310px){
 .crm-brand{min-height:22px}.crm-brand img{width:22px;height:22px}.crm-brand strong{font-size:17px}.crm-screen .crm-example{padding:3px 4px}.crm-heading{gap:2px}.crm-screen .crm-title{font-size:17px}.crm-main{gap:6px}.crm-foot{padding-top:5px;min-height:20px}
 .crm-field{padding:6px 8px;gap:7px}.crm-field-icon{width:26px;height:26px}.crm-screen .crm-field-icon .crm-icon{width:18px;height:18px}.crm-screen .crm-plan{min-height:76px}.crm-card-heading strong{font-size:12px}.crm-plan-label{top:5px;left:5px}.crm-screen .crm-plan-pin{width:18px;height:18px;right:5px;bottom:4px;border-width:1px}.crm-plan-door{width:13px;height:11px;left:calc(52.38% - 7px)}
 .crm-place-record{padding:8px;gap:7px}.crm-place-identity{gap:8px}.crm-place-icon{width:30px;height:30px;border-radius:9px}.crm-screen .crm-place-icon .crm-icon{width:21px;height:21px}.crm-place-identity>div{gap:2px}.crm-place-zones{padding-top:6px;gap:5px}.crm-place-zone-list{gap:4px}.crm-place-zone-list>span{padding:3px 5px}.crm-place-meta{gap:6px}.crm-place-meta>div{padding:7px;gap:3px}
 .crm-screen .crm-order-line{padding:8px 9px}.crm-treatment{gap:7px}.crm-treatment>div{gap:3px}.crm-scope{padding-top:6px;margin-top:6px;gap:5px}.crm-price{padding:8px 10px}.crm-price strong{font-size:29px}.crm-order-generic .crm-order-line{padding:0 8px}.crm-order-generic .crm-field{padding:7px 0}.crm-order-check{padding:8px 10px}
 .crm-screen .crm-next{padding:9px;gap:9px}.crm-calendar-symbol{width:32px;height:34px;border-top-width:7px}.crm-calendar-symbol:before,.crm-calendar-symbol:after{top:-10px}.crm-calendar-symbol:before{left:6px}.crm-calendar-symbol:after{right:6px}.crm-screen .crm-ag{padding:7px 0;gap:7px}.crm-screen .crm-agenda{padding-inline:9px}.crm-ag-mark{width:23px;height:27px}
 .crm-document-list{gap:6px}.crm-screen .crm-document{padding:7px 8px}.crm-document-heading{gap:7px}.crm-file-icon{width:26px;height:29px}.crm-document-heading>div{gap:2px}.crm-file-mark{width:15px;height:15px}.crm-paper-lines{gap:3px;margin:6px 2px 0 33px}.crm-paper-lines i{height:2px}
 .crm-screen .crm-figures{padding:7px 8px}.crm-figures strong{font-size:17px}.crm-screen .crm-sites{padding:0 8px}.crm-screen .crm-site-row{padding:6px 0;gap:6px}.crm-site-row>div{gap:2px}.crm-folder-mark{display:none}
}
@container (max-width:460px){
 .crm-contract-grid{grid-template-columns:1fr}.crm-contract-plan .crm-plan{min-height:175px}.crm-contract-records .crm-station{padding:10px 0}.crm-screen .crm-contract-agenda{grid-template-columns:1fr;gap:0}.crm-contract-agenda .crm-ag+.crm-ag{border-left:0;border-top:1px solid #dce8e1;padding-left:0}
}
@media(max-width:360px){.crm-screen{gap:8px}.crm-screen--contract{padding:14px;gap:13px}}
