.crm-header-button{display:flex;align-items:center;gap:9px;min-height:44px;padding:8px 14px;border:1px solid var(--ink);border-radius:6px;font-size:14px;font-weight:600;white-space:nowrap}.crm-header-button span{font-size:12px;min-width:22px;padding:3px 5px;background:var(--ink);color:#fff;border-radius:4px}.crm-unit-button{min-height:44px;border:1px solid #b9c7ba;border-radius:5px;padding:10px 14px;font-size:14px;font-weight:500;background:#eef3eb}.detail-info .crm-unit-button{width:100%;margin-top:12px}.selected-actions{flex-wrap:wrap}.selected-actions .crm-unit-button{grid-column:2}.crm-dialog{padding:0;width:min(1220px,calc(100% - 40px));max-width:none;max-height:94dvh;border:0;border-radius:12px;background:#f7f8f4;color:var(--ink);box-shadow:0 24px 100px #122b2d50;overflow:auto}.crm-dialog::backdrop{background:#0b2122a8;backdrop-filter:blur(5px)}.crm-dialog .crm-heading{padding:24px 30px 20px;position:sticky;top:0;background:#f7f8f4;z-index:2;border-bottom:1px solid var(--line)}.crm-heading h2{font:32px var(--serif);margin:7px 0 0}.crm-heading .round-button{width:44px;height:44px}.crm-storage-note{padding:12px 30px;background:#eaf0e6;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:#466044}.crm-storage-note>div{display:flex;gap:16px;flex-wrap:wrap}.crm-storage-note button{font-size:13px;min-height:32px;padding:4px 0;text-decoration:underline;text-underline-offset:4px}.crm-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:22px 30px}.crm-stat{padding:16px 18px;border:1px solid var(--line);border-radius:6px;background:#fff}.crm-stat span{display:block;font-size:14px;color:var(--muted);line-height:1.5}.crm-stat strong{display:block;font:30px var(--serif);margin-top:5px;font-variant-numeric:tabular-nums}.crm-stat.overdue strong{color:#99592d}.crm-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.85fr);gap:28px;padding:0 30px 30px}.crm-directory{min-width:0}.crm-directory-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px}.crm-directory-top h3{margin:0;font-size:18px;font-weight:500}.crm-directory-top h3 span{font-size:13px;padding:3px 6px;border-radius:4px;background:#e5ebdf;margin-left:4px}.crm-dialog .primary-button{min-height:44px;font-size:14px;padding:12px 16px}.crm-filters{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:12px;margin-bottom:14px}.crm-dialog label{display:block;font-size:14px;font-weight:500;line-height:1.5}.crm-dialog input:not([type=checkbox]),.crm-dialog select,.crm-dialog textarea{display:block;box-sizing:border-box;min-width:0;width:100%;padding:11px 12px;min-height:44px;border:1px solid #cfd8cc;border-radius:5px;background:#fff;color:var(--ink);font:16px var(--sans);margin-top:6px}.crm-dialog textarea{resize:vertical;line-height:1.6;max-height:400px}.crm-dialog input[type=checkbox]{width:18px;height:18px;margin:0;accent-color:var(--ink)}.crm-dialog label.crm-due-filter{display:flex;align-items:center;gap:8px;grid-column:1/-1;min-height:32px;font-weight:400}.crm-list{display:flex;flex-direction:column;gap:10px;max-height:540px;overflow-y:auto;padding:2px}.crm-lead{display:block;flex:0 0 auto;height:auto;min-width:0;line-height:1.5;text-align:left;width:100%;border:1px solid var(--line);padding:16px;background:#fff;border-radius:7px;transition:border-color .15s}.crm-lead:hover{border-color:#8ea28a}.crm-lead.active{border-color:#355949;box-shadow:inset 3px 0 #355949;background:#f0f5ec}.crm-lead-top{display:flex;justify-content:space-between;align-items:start;gap:10px}.crm-lead-top strong{min-width:0;font-size:17px;font-weight:600;overflow-wrap:anywhere}.crm-stage-pill{flex-shrink:0;max-width:100%;font-size:12px;padding:4px 7px;white-space:nowrap;background:#edf0ec;color:#405340;border-radius:4px}.crm-stage-pill.offer{background:#f8ebd6;color:#785325}.crm-stage-pill.won{background:#dfeedd;color:#305b35}.crm-stage-pill.lost{background:#f1e8e4;color:#785b50}.crm-lead-contact{display:block;color:var(--muted);font-size:14px;margin:8px 0 12px;overflow-wrap:anywhere}.crm-lead-bottom{overflow-wrap:anywhere;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:13px;color:#576c5d}.crm-followup.overdue{color:#9a5027;font-weight:600}.crm-editor{padding:24px;background:#fff;border:1px solid var(--line);border-radius:8px;align-self:start;min-width:0}.crm-editor-heading h3{font:27px var(--serif);margin:7px 0 20px}.crm-editor-heading>p:last-child:not(.eyebrow){font-size:12px;color:var(--muted);margin:-10px 0 20px;line-height:1.6}.crm-form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}#crm-form>label,#crm-form>.crm-form-row{margin-bottom:16px}.crm-field-hint{font-size:12px;line-height:1.6;color:var(--muted);margin:-6px 0 16px}.crm-form-actions+.crm-field-hint{margin:12px 0 0}.crm-unit-summary{padding:12px 14px;background:#f1f5ed;border-left:3px solid #99ad8b;margin:-2px 0 18px}.crm-unit-summary strong,.crm-unit-summary span{display:block}.crm-unit-summary strong{font-size:18px}.crm-unit-summary span{font-size:12px;color:#586f54;margin-top:5px;line-height:1.6}.crm-form-actions{display:flex;gap:12px;align-items:center;justify-content:space-between}.crm-delete{color:#8f4638;min-height:44px;text-decoration:underline;font-size:14px}.crm-form-error{font-size:14px;line-height:1.5;color:#913e30;background:#fff0e9;padding:12px;border-radius:4px}.crm-feedback{margin:0;padding:12px 30px;background:#dcebd8;color:#274d31;font-size:14px;line-height:1.5}.crm-feedback.error{background:#fff0e9;color:#913e30}.crm-empty{padding:42px 20px;border:1px dashed #c4cebd;border-radius:6px;text-align:center;line-height:1.7;color:var(--muted);font-size:14px}.crm-empty strong{display:block;color:var(--ink);font:24px var(--serif);margin-bottom:7px}.crm-dialog textarea:focus-visible{outline:3px solid #b58846;outline-offset:3px}body:has(#crm-dialog[open]){overflow:hidden}
@media(max-width:1150px){.topbar .demo-tag{display:none}.crm-layout{grid-template-columns:minmax(0,1fr) minmax(320px,1fr);gap:20px}.crm-form-row{grid-template-columns:1fr;gap:16px}.crm-storage-note{align-items:flex-start;flex-direction:column;gap:3px}}
@media(max-width:760px){.crm-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0}.crm-dialog .crm-heading{padding:18px 20px}.crm-heading h2{font-size:27px}.crm-storage-note{padding:10px 20px}.crm-storage-note>div{gap:20px}.crm-storage-note button{min-height:44px}.crm-stats{padding:16px 20px;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}.crm-stat{padding:12px}.crm-stat strong{font-size:26px}.crm-layout{grid-template-columns:1fr;padding:0 20px 25px;gap:22px}.crm-list{max-height:290px}.crm-editor{padding:20px}.crm-feedback{padding:12px 20px}.crm-filters{grid-template-columns:1fr}.crm-directory-top{flex-wrap:wrap}.crm-form-row{grid-template-columns:1fr 1fr;gap:12px}.crm-header-button{padding:8px 10px;gap:7px}.topbar .header-actions{gap:9px}.crm-lead-top{flex-wrap:wrap}}
@media(max-width:440px){.crm-form-row{grid-template-columns:1fr}.topbar .brand{min-width:0;gap:8px}.topbar .brand small{font-size:8px;letter-spacing:1px}.topbar .header-actions #video-button{font-size:0;min-width:36px;min-height:44px;justify-content:center}.topbar .header-actions #video-button span{font-size:24px}.crm-form-actions{flex-wrap:wrap}.crm-editor{padding:18px}.crm-stats,.crm-layout{padding-left:14px;padding-right:14px}.crm-storage-note{font-size:12px}.crm-stage-pill{white-space:normal}.crm-lead-bottom{flex-direction:column}.selected-actions .crm-unit-button{flex:1}}
.crm-tour-pill{display:inline-block;margin-top:10px;padding:4px 8px;border-radius:999px;background:#f3e7cc;color:#6d5a35;font-size:11px;letter-spacing:.04em}
.crm-tour-link{margin:0 0 16px;padding:12px 14px;background:#f7f4ec;border-left:3px solid #d8bd85}
.crm-tour-link .eyebrow{margin:0 0 8px;font-size:11px;letter-spacing:.18em;color:#9c8252}
.crm-tour-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.crm-tour-row input{flex:1 1 180px;min-width:0;margin-top:0}
.crm-tour-row button,.crm-tour-row a{min-height:44px;padding:0 12px;display:inline-flex;align-items:center;border:1px solid #23475933;border-radius:5px;background:#fff;color:#234759;text-decoration:none;font:600 13px/1 Arial,sans-serif;cursor:pointer}

@media(max-width:380px){.topbar{height:auto;min-height:68px;padding-top:10px;padding-bottom:10px;gap:8px;flex-wrap:wrap}.topbar .header-actions{margin-left:auto}.crm-storage-note>div{gap:12px}}
.language-switch{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid #c9d3c6;border-radius:6px;background:#eef2e9;flex-shrink:0}.language-switch button{min-width:40px;min-height:38px;padding:8px;font-size:13px;font-weight:600;border-radius:4px;color:#63735c}.language-switch button.active{background:var(--ink);color:#fff}.crm-heading-actions{display:flex;align-items:center;gap:14px}.topbar .brand{min-width:200px}.topbar .header-actions{gap:12px}.crm-heading .eyebrow{font-size:12px}.crm-heading h2{overflow-wrap:anywhere}
@media(max-width:1100px){.topbar .project-title{display:none}}
@media(max-width:599px){.topbar{height:auto;min-height:100px;display:flex;flex-wrap:wrap;padding-top:12px;padding-bottom:12px;gap:10px}.topbar .brand{min-width:0}.topbar .header-actions{width:100%;margin-left:0;justify-content:space-between;gap:8px}.language-switch button{min-height:38px;min-width:42px}.topbar .header-actions #video-button{font-size:12px}.topbar .header-actions #video-button span{font-size:22px}.crm-heading-actions{gap:8px;flex-wrap:wrap;justify-content:flex-end}.crm-heading{gap:12px;align-items:flex-start}.crm-heading h2{font-size:25px}.crm-heading .language-switch button{min-width:35px}.crm-dialog .crm-heading{padding:16px 14px}.crm-heading-actions .round-button{width:40px;height:40px}.crm-storage-note>div{gap:12px}.crm-storage-note button{font-size:12px}}
@media(max-width:360px){.crm-heading-actions{max-width:90px}.crm-heading h2{font-size:23px}.topbar .header-actions #video-button{font-size:0}}

/* Customer rows must retain their content height inside the scrollable list. */
.crm-lead-bottom>span{min-width:0;max-width:100%}
/* CRM now lives in the standalone Sales Hub (crm-hub.html); the in-Explorer meeting tools stay available to signed-in sales staff only. */
body[data-sales-authorized="false"] #crm-button{display:none}
