/* EuroFire Atelier 17.0 · customer experience and sales workspace */
:root {
    --studio-ink: #191715;
    --studio-muted: #77736e;
    --studio-paper: #fff;
    --studio-canvas: #f7f5f2;
    --studio-line: rgba(39, 34, 29, .09);
    --studio-red: #ce2e26;
    --studio-red-dark: #a9201a;
    --studio-amber: #d39d69;
    --studio-green: #147255;
    --studio-radius: 25px;
    --studio-shadow: 0 24px 70px rgba(39, 31, 23, .08);
    --studio-ease: cubic-bezier(.2, .75, .2, 1);
}

body.experience-v17, body.admin-v17 {
    font-family: "DM Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--studio-canvas);
    color: var(--studio-ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.experience-v17 .container, .admin-v17 .container { width: min(1336px, calc(100% - 72px)); }
.experience-v17 .ef-site-header {
    background: rgba(250, 249, 247, .91);
    border-bottom: 1px solid rgba(37, 32, 27, .075);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.experience-v17 .header-inner { height: 84px; }
.experience-v17 .ef-brand { gap: 12px; color: var(--studio-ink); }
.experience-v17 .ef-brand img { width: 156px; height: 37px; object-fit: contain; }
.experience-v17 .brand-copy { padding-left: 12px; border-left: 1px solid var(--studio-line); }
.experience-v17 .brand-copy small { font-size: 8px; letter-spacing: .13em; color: #96918a; }
.experience-v17 .brand-copy strong { margin-top: 2px; font-size: 11px; font-weight: 600; }
.ef-desktop-nav { display: flex; align-items: center; gap: 29px; }
.ef-desktop-nav a, .experience-v17 .ef-account-link {
    color: #615d58;
    font-size: 12px;
    font-weight: 550;
    text-decoration: none;
    transition: color .18s;
}
.ef-desktop-nav a:hover, .experience-v17 .ef-account-link:hover { color: var(--studio-red); }
.experience-v17 .header-actions { gap: 14px; }
.experience-v17 .lang-select {
    color: #57534d;
    background: transparent;
    border: 0;
    padding: 8px 6px;
    font-size: 11px;
    font-weight: 650;
    cursor: pointer;
}
.ef-header-cta, .atelier-primary, .atelier-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    text-decoration: none;
    font-weight: 650;
    transition: transform .22s var(--studio-ease), background .22s, box-shadow .22s;
}
.ef-header-cta {
    min-height: 43px;
    padding: 0 17px;
    background: var(--studio-ink);
    color: #fff;
    border-radius: 11px;
    font-size: 12px;
}
.ef-header-cta:hover, .atelier-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(24, 21, 18, .16); }

/* Editorial landing page */
.atelier-hero { padding: 67px 0 74px; overflow: hidden; }
.atelier-hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 76px; align-items: center; min-height: 600px; }
.atelier-overline, .studio-kicker, .studio-panel-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #837d76;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.atelier-overline::before, .studio-kicker::before { width: 7px; height: 7px; border-radius: 50%; background: var(--studio-red); content: ""; }
.atelier-hero h1 { max-width: 600px; margin: 24px 0 20px; color: var(--studio-ink); font-size: clamp(47px, 6.15vw, 84px); font-weight: 600; letter-spacing: -.08em; line-height: .99; }
.atelier-hero h1 em { color: #aaa49e; font-style: normal; }
.atelier-description { max-width: 472px; margin: 0; color: #716d67; font-size: 16px; line-height: 1.8; }
.atelier-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin: 30px 0 34px; }
.atelier-primary, .atelier-secondary { min-height: 51px; padding: 0 20px; border-radius: 12px; font-size: 13px; }
.atelier-primary { background: var(--studio-red); color: #fff; }
.atelier-primary:hover { background: var(--studio-red-dark); }
.atelier-secondary { border: 1px solid rgba(36, 31, 27, .13); color: #48433d; }
.atelier-secondary:hover { border-color: #bbb3aa; background: rgba(255, 255, 255, .7); }
.atelier-proof { display: flex; flex-wrap: wrap; gap: 17px; color: #726d67; font-size: 11px; }
.atelier-proof span::before { margin-right: 7px; color: var(--studio-green); content: "✓"; }
.atelier-visual { position: relative; min-height: 620px; }
.atelier-image-main { position: absolute; inset: 0 0 0 53px; overflow: hidden; border-radius: 29px; background: #dedbd5; }
.atelier-image-main::after { position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(12, 11, 10, .46)); content: ""; }
.atelier-image-main img { width: 100%; height: 100%; object-fit: cover; object-position: 53% 52%; }
.atelier-image-caption { position: absolute; right: 25px; bottom: 24px; left: 26px; z-index: 1; display: flex; align-items: end; justify-content: space-between; color: #fff; }
.atelier-image-caption strong { display: block; font-size: 20px; font-weight: 550; }
.atelier-image-caption span { display: block; margin-top: 3px; color: rgba(255, 255, 255, .74); font-size: 11px; }
.atelier-image-caption i { display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid rgba(255, 255, 255, .38); border-radius: 50%; font-style: normal; }
.atelier-match-card { position: absolute; bottom: 71px; left: 0; z-index: 2; width: 230px; padding: 19px; background: rgba(255, 255, 255, .96); border: 1px solid rgba(255, 255, 255, .85); border-radius: 18px; box-shadow: 0 20px 55px rgba(32, 24, 18, .14); }
.atelier-match-top { display: flex; align-items: center; justify-content: space-between; }
.atelier-match-top span { color: #79746e; font-size: 10px; }
.atelier-match-top b { color: var(--studio-green); font-size: 11px; }
.atelier-match-track { height: 5px; margin: 12px 0 16px; overflow: hidden; background: #eae7e3; border-radius: 99px; }
.atelier-match-track i { display: block; width: 96%; height: 100%; background: linear-gradient(90deg, #d05243, #e89f65); border-radius: inherit; }
.atelier-match-card strong { display: block; font-size: 14px; }
.atelier-match-card small { display: block; margin-top: 3px; color: #817b74; font-size: 10px; }
.atelier-promise-strip { border-top: 1px solid var(--studio-line); border-bottom: 1px solid var(--studio-line); background: rgba(255, 255, 255, .34); }
.atelier-promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.atelier-promise-grid article { display: flex; align-items: center; gap: 12px; min-height: 83px; padding: 15px 20px; border-right: 1px solid var(--studio-line); }
.atelier-promise-grid article:first-child { padding-left: 0; }
.atelier-promise-grid article:last-child { border-right: 0; }
.atelier-promise-grid article > span { color: var(--studio-red); font-size: 19px; }
.atelier-promise-grid strong, .atelier-promise-grid small { display: block; }
.atelier-promise-grid strong { font-size: 11px; font-weight: 650; }
.atelier-promise-grid small { margin-top: 2px; color: #7d7872; font-size: 10px; }

/* Quotation studio */
.studio-section-intro { max-width: 710px; padding: 81px 0 35px; }
.studio-section-intro h2, .studio-editorial-head h2, .installation-copy h2 { margin: 13px 0 11px; font-size: clamp(35px, 5vw, 56px); font-weight: 550; letter-spacing: -.075em; line-height: 1.09; }
.studio-section-intro p, .studio-editorial-head p, .installation-copy p { margin: 0; color: #77726b; font-size: 14px; line-height: 1.8; }
.experience-v17 .wizard-section { margin-top: 0; padding-bottom: 86px; }
.experience-v17 .app-layout { grid-template-columns: minmax(0, 1fr) 334px; gap: 24px; }
.experience-v17 .wizard-shell, .experience-v17 .summary-card, .experience-v17 .page-card {
    background: #fff;
    border: 1px solid rgba(38, 33, 28, .075);
    border-radius: 22px;
    box-shadow: 0 14px 42px rgba(43, 35, 26, .045);
}
.experience-v17 .wizard-shell { min-width: 0; padding: 32px 35px 27px; }
.experience-v17 .wizard-progress { padding-bottom: 22px; border-bottom: 1px solid #efede9; }
.experience-v17 .progress-step .step-dot { width: 32px; height: 32px; border: 1px solid #dedbd6; background: #fff; color: #79746d; font-size: 11px; }
.experience-v17 .progress-step.active .step-dot { border-color: var(--studio-ink); background: var(--studio-ink); color: #fff; }
.experience-v17 .progress-step.done .step-dot { border-color: #f6e8e5; background: #f6e8e5; color: var(--studio-red); }
.experience-v17 .progress-step .step-label { color: #7a756e; font-size: 10px; font-weight: 550; }
.experience-v17 .progress-step.active .step-label { color: var(--studio-ink); }
.experience-v17 .progress-line span { background: var(--studio-red); }
.experience-v17 .section-heading { margin: 26px 0 22px; }
.experience-v17 .section-heading > span { width: 40px; height: 40px; border: 1px solid #ebe8e3; background: #faf9f7; color: #5b5550; font-size: 12px; }
.experience-v17 .section-heading h2 { font-size: 25px; font-weight: 600; letter-spacing: -.05em; }
.experience-v17 .section-heading p { max-width: 625px; margin-top: 5px; color: #77716a; font-size: 12px; line-height: 1.7; }
.experience-v17 .field-group > legend { margin-bottom: 11px; font-size: 12px; font-weight: 650; }
.experience-v17 .choice-card, .experience-v17 .check-card { border-color: #ebe8e4; border-radius: 13px; transition: border-color .18s, background .18s, box-shadow .18s, transform .18s; }
.experience-v17 .choice-card { min-height: 116px; padding: 16px; }
.experience-v17 .choice-card.compact { min-height: 70px; }
.experience-v17 .choice-card:hover, .experience-v17 .check-card:hover { transform: translateY(-1px); border-color: #d5c9be; }
.experience-v17 .choice-card:has(input:checked), .experience-v17 .check-card:has(input:checked) { border-color: #d45649; background: #fff8f6; box-shadow: 0 0 0 1px rgba(206, 46, 38, .08); }
.experience-v17 .choice-icon { font-size: 20px; }
.experience-v17 .choice-card strong, .experience-v17 .check-card strong { font-size: 12px; font-weight: 650; }
.experience-v17 .choice-card small, .experience-v17 .check-card small { color: #79746f; font-size: 10px; line-height: 1.5; }
.experience-v17 .premium-question-group { margin: 19px 0; padding: 21px; border: 1px solid #eeebe7; border-radius: 16px; background: #fff; }
.experience-v17 .question-group-head { margin-bottom: 15px; }
.experience-v17 .question-group-head > span { min-width: 51px; height: 24px; padding: 0 7px; background: #f7f5f2; color: #6c655e; font-size: 9px; }
.experience-v17 .question-group-head strong { font-size: 12px; }
.experience-v17 .question-group-head small { color: #7d7872; font-size: 10px; line-height: 1.55; }
.experience-v17 .form-grid label > span, .experience-v17 label > span { font-size: 11px; font-weight: 600; }
.experience-v17 input:not([type=checkbox]):not([type=radio]), .experience-v17 select, .experience-v17 textarea { min-height: 43px; border-color: #e7e3dd; border-radius: 10px; background: #fefdfc; font-family: inherit; font-size: 12px; }
.experience-v17 input:focus, .experience-v17 select:focus, .experience-v17 textarea:focus { border-color: #b43b31; outline-color: rgba(206, 46, 38, .12); }
.experience-v17 .btn { min-height: 44px; border-radius: 10px; font-family: inherit; font-size: 12px; font-weight: 650; }
.experience-v17 .btn.primary { background: var(--studio-red); }
.experience-v17 .btn.primary:hover { background: var(--studio-red-dark); }
.experience-v17 .wizard-actions { margin-top: 23px; border-top: 1px solid #eeebe7; background: rgba(255, 255, 255, .96); }
.experience-v17 .summary-card { top: 108px; padding: 0; overflow: hidden; }
.experience-v17 .summary-head { padding: 21px 20px 16px; border-bottom: 1px solid #efede9; }
.experience-v17 .summary-head > span { font-size: 13px; }
.experience-v17 .summary-head small { color: #7f7972; font-size: 10px; }
.experience-v17 .summary-product { margin: 14px; padding: 12px; background: #faf9f7; border-radius: 13px; }
.experience-v17 .summary-card dl { padding: 1px 18px; }
.experience-v17 .summary-card dt, .experience-v17 .summary-card dd { font-size: 11px; }
.experience-v17 .summary-total { margin: 12px 17px 0; padding: 15px 0; border-top: 1px solid #efede9; }
.experience-v17 .summary-total strong { font-size: 20px; }
.experience-v17 .summary-share-btn { width: calc(100% - 30px); margin: 7px 15px; border-radius: 10px; font-size: 10px; }
.experience-v17 .summary-safe { padding: 13px 16px 18px; font-size: 10px; }
.studio-heat-insight { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; margin-top: 15px; padding: 14px 15px; background: #f7f8f5; border: 1px solid #e8ebe2; border-radius: 12px; }
.studio-heat-insight strong { display: block; color: #364738; font-size: 11px; }
.studio-heat-insight small { display: block; margin-top: 3px; color: #69716a; font-size: 10px; }
.studio-heat-insight > span { color: #486750; font-size: 17px; }

/* Lower editorial experience */
.studio-editorial { padding: 80px 0 92px; border-top: 1px solid var(--studio-line); }
.studio-editorial-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.studio-editorial-head > div { max-width: 690px; }
.studio-editorial-head > a { color: var(--studio-ink); font-size: 12px; text-decoration: none; white-space: nowrap; }
.studio-process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.studio-process-card { min-height: 208px; padding: 23px; background: #fff; border: 1px solid var(--studio-line); border-radius: 17px; }
.studio-process-card > span { display: inline-grid; width: 34px; height: 34px; place-items: center; border: 1px solid #e9e6e2; border-radius: 50%; color: #6d6861; font-size: 11px; }
.studio-process-card h3 { margin: 24px 0 7px; font-size: 16px; font-weight: 600; }
.studio-process-card p { margin: 0; color: #736d66; font-size: 11px; line-height: 1.7; }
.studio-gallery-grid { display: grid; grid-template-columns: 1.08fr .92fr .92fr; gap: 17px; }
.studio-gallery-card { min-width: 0; text-decoration: none; }
.studio-gallery-image { height: 320px; overflow: hidden; background: #e6e2dc; border-radius: 17px; }
.studio-gallery-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s var(--studio-ease); }
.studio-gallery-card:hover img { transform: scale(1.055); }
.studio-gallery-card h3 { margin: 13px 0 3px; color: var(--studio-ink); font-size: 14px; font-weight: 600; }
.studio-gallery-card p { margin: 0; color: #78736c; font-size: 11px; }
.installation-banner { display: grid; grid-template-columns: 1fr .86fr; min-height: 358px; overflow: hidden; background: #191816; border-radius: 23px; }
.installation-copy { align-self: center; padding: 42px 49px; color: #fff; }
.installation-copy .studio-kicker { color: #d3cfc9; }
.installation-copy h2 { color: #fff; font-size: 42px; }
.installation-copy p { max-width: 440px; color: #c8c4bf; }
.installation-copy .atelier-primary { margin-top: 23px; }
.installation-image { overflow: hidden; }
.installation-image img { width: 100%; height: 100%; object-fit: cover; }

/* Public personal quote */
.experience-v17 .page-section { padding: 57px 0 94px; }
.experience-v17 .public-quote { max-width: 1100px; margin: 0 auto; }
.experience-v17 .quote-hero-card { padding: 32px 36px; background: #191816; border: 0; border-radius: 20px; }
.experience-v17 .quote-hero-card .eyebrow { color: #e8b68b; font-size: 10px; }
.experience-v17 .quote-hero-card h1 { color: #fff; font-size: 35px; font-weight: 550; letter-spacing: -.055em; }
.experience-v17 .quote-hero-card p, .experience-v17 .quote-status small { color: #c8c3bd; }
.experience-v17 .quote-assurance-grid { gap: 14px; margin: 19px 0; }
.experience-v17 .quote-assurance-grid > div { padding: 16px; border: 1px solid var(--studio-line); border-radius: 13px; background: #fff; }
.experience-v17 .quote-assurance-grid strong { font-size: 11px; }
.experience-v17 .quote-assurance-grid small { margin-top: 4px; font-size: 10px; line-height: 1.6; }
.experience-v17 .quote-public-grid { gap: 19px; }
.experience-v17 .quote-public-grid > .page-card { padding: 25px; }
.experience-v17 .selected-product-public { padding: 19px; border: 1px solid #eeebe7; border-radius: 15px; background: #fbfaf8; }
.experience-v17 .selected-product-public h2 { font-size: 24px; letter-spacing: -.045em; }
.experience-v17 .spec-chips span { border-radius: 8px; background: #f0ede8; color: #47423c; }
.experience-v17 .quote-notice { border-color: #eeebe6; border-radius: 13px; background: #fbfaf8; }
.quote-decision-profile { margin: 19px 0; padding: 18px; border: 1px solid #ece9e4; border-radius: 14px; background: #fff; }
.quote-decision-head .eyebrow { color: #976c56; font-size: 9px; letter-spacing: 1.1px; }
.quote-decision-head h3 { margin: 5px 0 15px; color: #28241f; font-size: 17px; font-weight: 570; }
.quote-decision-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.quote-decision-grid > div { min-width: 0; padding: 10px 0; border-top: 1px solid #efede9; }
.quote-decision-grid span, .quote-decision-grid strong { display: block; }
.quote-decision-grid span { color: #79736c; font-size: 10px; }
.quote-decision-grid strong { margin-top: 4px; color: #34302b; font-size: 11px; font-weight: 600; }
.quote-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.quote-review-card { min-width: 0; padding: 15px; border: 1px solid #eae7e2; border-radius: 13px; background: #fbfaf8; }
.quote-review-card.technical { border-color: #e5eadf; background: #f8faf6; }
.quote-review-card h4 { margin: 0 0 9px; color: #35312c; font-size: 11px; }
.quote-review-card ul { margin: 0; padding-left: 15px; color: #676159; font-size: 10px; line-height: 1.65; }
.quote-review-card li + li { margin-top: 6px; }
.experience-v17 .customer-package-scope { border: 1px solid #ebe8e3; border-radius: 15px; }
.experience-v17 .customer-package-total strong { color: var(--studio-ink); font-size: 23px; }
.experience-v17 .quote-actions-card { top: 107px; }
.experience-v17 .quote-actions-card h3 { font-size: 18px; }
.quote-message-panel { margin-top: 18px; padding: 17px; border: 1px solid #ece9e5; border-radius: 13px; background: #fbfaf8; }
.quote-message-panel h4 { margin: 0 0 5px; font-size: 13px; }
.quote-message-panel p { margin: 0 0 11px; color: #746f68; font-size: 10px; line-height: 1.6; }
.quote-message-panel textarea { width: 100%; min-height: 91px; padding: 10px; resize: vertical; }
.quote-message-panel .btn { width: 100%; margin-top: 9px; }
.quote-message-feedback { margin-top: 8px; color: var(--studio-green); font-size: 11px; }
.crm-reply-compose textarea { width: 100%; min-height: 108px; resize: vertical; }
.crm-reply-compose > .muted { margin: 2px 0 15px; font-size: 12px; line-height: 1.65; }
.crm-reply-compose form > .btn { margin-top: 10px; }

/* Footer */
.experience-v17 .ef-site-footer { padding: 53px 0 19px; background: #191816; color: #f4f1ee; }
.ef-footer-top { display: flex; align-items: start; justify-content: space-between; gap: 30px; padding-bottom: 42px; }
.ef-footer-brand > span { font-size: 23px; font-weight: 700; letter-spacing: .09em; }
.ef-footer-brand p { max-width: 340px; margin: 12px 0 0; color: #bdb7af; font-size: 12px; line-height: 1.7; }
.ef-footer-contact { display: grid; gap: 7px; text-align: right; }
.ef-footer-contact a, .ef-footer-contact span { color: #eeeae6; font-size: 12px; text-decoration: none; }
.ef-footer-contact span { color: #aaa49d; }
.ef-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 17px; border-top: 1px solid rgba(255, 255, 255, .11); }
.ef-footer-bottom > span, .experience-v17 .footer-links a { color: #b6b0aa; font-size: 10px; }

/* CRM shell */
.admin-v17 { min-height: 100vh; background: #f5f4f1; }
.admin-v17 .admin-shell { display: grid; grid-template-columns: 247px minmax(0, 1fr); min-height: 100vh; }
.admin-v17 .admin-sidebar { position: sticky; top: 0; display: flex; height: 100vh; flex-direction: column; padding: 21px 13px 14px; overflow: auto; background: #171615; border-right: 0; }
.admin-v17 .admin-brand { padding: 6px 8px 21px; border-bottom: 1px solid rgba(255, 255, 255, .085); }
.admin-v17 .admin-brand img { width: 129px; height: 30px; object-fit: contain; }
.admin-v17 .admin-brand > span { display: block; margin-top: 10px; }
.admin-v17 .admin-brand > span small { color: #a9a29b; font-size: 9px; letter-spacing: .1em; }
.admin-v17 .admin-brand > span strong { display: block; margin-top: 2px; color: #fff; font-size: 13px; font-weight: 550; }
.crm-nav-group { margin-top: 19px; }
.crm-nav-heading { margin: 0 8px 7px; color: #9d9790; font-size: 9px; font-weight: 650; letter-spacing: .11em; text-transform: uppercase; }
.admin-v17 .admin-sidebar nav a { display: flex; min-height: 37px; align-items: center; gap: 10px; margin: 2px 0; padding: 0 10px; border-radius: 8px; color: #cfc9c2; font-size: 11px; text-decoration: none; }
.admin-v17 .admin-sidebar nav a > span { width: 16px; color: #a9a29a; text-align: center; }
.admin-v17 .admin-sidebar nav a:hover { background: rgba(255, 255, 255, .055); }
.admin-v17 .admin-sidebar nav a.active { background: rgba(255, 255, 255, .095); color: #fff; }
.admin-v17 .admin-sidebar nav a.active > span { color: #f19676; }
.admin-v17 .admin-user { margin-top: auto; padding: 14px 5px 0; border-top: 1px solid rgba(255, 255, 255, .085); }
.admin-v17 .admin-main { min-width: 0; padding: 30px 33px 55px; }
.admin-v17 .admin-top { display: flex; min-height: 64px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.admin-v17 .admin-top .eyebrow { margin-bottom: 5px; color: #807970; font-size: 9px; }
.admin-v17 .admin-top h1 { margin: 0; font-size: 25px; font-weight: 600; letter-spacing: -.045em; }
.admin-v17 .admin-top-actions { display: flex; gap: 9px; }
.admin-v17 .admin-card { padding: 20px; border: 1px solid rgba(34, 30, 25, .07); border-radius: 14px; background: #fff; box-shadow: 0 9px 32px rgba(35, 30, 24, .035); }
.admin-v17 .admin-card h2, .admin-v17 .card-title h2 { font-size: 14px; font-weight: 650; }
.admin-v17 .metric-grid { gap: 13px; margin-bottom: 19px; }
.admin-v17 .metric-grid > div { padding: 18px; border: 1px solid rgba(35, 30, 25, .07); border-radius: 13px; background: #fff; }
.admin-v17 .metric-grid > div > small { color: #767069; font-size: 10px; }
.admin-v17 .metric-grid > div > strong { margin-top: 11px; font-size: 21px; letter-spacing: -.055em; }
.admin-v17 .btn { min-height: 38px; border-radius: 9px; font-family: inherit; font-size: 11px; }
.admin-v17 .data-table th { color: #77716a; font-size: 10px; font-weight: 600; }
.admin-v17 .data-table td { padding: 12px 9px; font-size: 11px; }
.admin-v17 .data-table td small { color: #78726c; font-size: 10px; }
.crm-overview-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 19px; padding: 21px 23px; border-radius: 14px; background: #191816; color: #fff; }
.crm-overview-banner h2 { margin: 3px 0 5px; font-size: 18px; font-weight: 550; }
.crm-overview-banner p { margin: 0; color: #c3bdb7; font-size: 11px; }
.crm-overview-banner .btn { background: #fff; color: #201d1a; }
.crm-kpi-foot { display: block; margin-top: 8px; color: #77716a; font-size: 9px; }
.crm-kpi-foot.positive { color: var(--studio-green); }
.crm-kpi-foot.alert { color: var(--studio-red); }

/* Sales pipeline */
.crm-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.crm-toolbar-start, .crm-toolbar-end { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.crm-search { min-width: 260px; min-height: 39px; padding: 0 11px; border: 1px solid #e2dfda; border-radius: 9px; background: #fff; font-family: inherit; font-size: 11px; }
.crm-toolbar select { min-height: 39px; padding: 0 10px; border: 1px solid #e2dfda; border-radius: 9px; background: #fff; font-size: 11px; }
.crm-board { display: grid; grid-auto-columns: minmax(245px, 280px); grid-auto-flow: column; align-items: start; gap: 13px; padding-bottom: 16px; overflow-x: auto; }
.crm-column { min-width: 0; padding: 12px; border: 1px solid #e9e6e1; border-radius: 13px; background: rgba(235, 232, 226, .58); }
.crm-column.crm-drop-active { border-color: #d17965; background: #fbefeb; }
.crm-column-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.crm-column-head h2 { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 11px; font-weight: 650; }
.crm-column-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--stage-color, #8a857e); }
.crm-column-count { color: #69645d; font-size: 10px; }
.crm-column-total { margin: 0 0 12px; color: #746e66; font-size: 10px; }
.crm-lead-card { position: relative; display: block; margin: 0 0 9px; padding: 12px; border: 1px solid rgba(35, 30, 25, .07); border-radius: 10px; background: #fff; color: var(--studio-ink); text-decoration: none; transition: transform .18s, box-shadow .18s; }
.crm-lead-card:hover { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(40, 33, 26, .08); }
.crm-lead-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.crm-lead-top > span:first-child { color: #79736c; font-size: 9px; }
.crm-priority { display: inline-block; padding: 3px 7px; border-radius: 99px; font-size: 9px; font-weight: 650; }
.crm-priority.urgent { background: #fde8e5; color: #ad3327; }
.crm-priority.high { background: #fff1e2; color: #97571a; }
.crm-priority.medium { background: #eaf0f6; color: #405d77; }
.crm-priority.low { background: #efeeeb; color: #6d6760; }
.crm-lead-card h3 { margin: 11px 0 3px; font-size: 12px; font-weight: 650; }
.crm-lead-card > p { margin: 0; color: #716b64; font-size: 10px; }
.crm-lead-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 0; }
.crm-lead-tags span { max-width: 100%; padding: 3px 6px; overflow: hidden; border-radius: 5px; background: #f3f1ed; color: #605b55; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.crm-lead-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 9px; border-top: 1px solid #efede9; }
.crm-lead-foot strong { font-size: 11px; }
.crm-lead-foot small { color: #77716b; font-size: 9px; }
.crm-overdue { color: var(--studio-red) !important; }
.crm-empty { padding: 18px 7px; color: #79736c; font-size: 10px; text-align: center; }
.crm-insights-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; margin-top: 18px; }
.crm-summary-table { width: 100%; border-collapse: collapse; }
.crm-summary-table td { padding: 10px 0; border-bottom: 1px solid #efede9; font-size: 11px; }
.crm-summary-table td:last-child { text-align: right; }
.crm-conversion-line { display: grid; grid-template-columns: 95px 1fr 41px; align-items: center; gap: 9px; margin: 12px 0; font-size: 10px; }
.crm-conversion-track { height: 7px; overflow: hidden; border-radius: 99px; background: #efede8; }
.crm-conversion-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #bc493b, #de9b75); }

/* Tasks and lead detail */
.crm-task-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.crm-task-filter { padding: 8px 11px; border: 1px solid #e6e2dd; border-radius: 8px; background: #fff; color: #5f5952; font-size: 10px; text-decoration: none; }
.crm-task-filter.active { border-color: #27231f; background: #27231f; color: #fff; }
.crm-task-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) 105px 100px 95px; align-items: center; gap: 11px; padding: 13px 0; border-bottom: 1px solid #efede9; }
.crm-task-toggle { width: 22px; height: 22px; border: 1px solid #d3cfc9; border-radius: 50%; background: #fff; color: var(--studio-green); cursor: pointer; }
.crm-task-toggle.completed { border-color: #dcebe4; background: #e7f1eb; }
.crm-task-main strong, .crm-task-main small { display: block; }
.crm-task-main strong { font-size: 11px; }
.crm-task-main small, .crm-task-meta { margin-top: 3px; color: #736d66; font-size: 10px; }
.crm-task-form, .crm-activity-form { display: grid; gap: 11px; margin-top: 13px; }
.crm-task-form input, .crm-task-form select, .crm-task-form textarea, .crm-activity-form select, .crm-activity-form textarea { width: 100%; min-height: 38px; padding: 8px 9px; border: 1px solid #e4e0db; border-radius: 8px; background: #fff; font-family: inherit; font-size: 11px; }
.crm-detail-top { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 17px; margin-bottom: 18px; padding: 23px; border: 1px solid #e7e4df; border-radius: 14px; background: #fff; }
.crm-detail-top h2 { margin: 8px 0 5px; font-size: 24px; font-weight: 600; letter-spacing: -.04em; }
.crm-detail-top p { margin: 0; color: #6c665f; font-size: 11px; }
.crm-detail-value { text-align: right; }
.crm-detail-value strong { display: block; font-size: 22px; letter-spacing: -.045em; }
.crm-detail-value small { display: block; margin-top: 5px; color: #716b64; font-size: 10px; }
.crm-score-ring { display: inline-grid; min-width: 37px; height: 25px; padding: 0 8px; place-items: center; border: 1px solid #d8e8df; border-radius: 7px; background: #eff7f2; color: #286346; font-size: 10px; }
.crm-timeline-event { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 11px; padding: 12px 0; border-bottom: 1px solid #efede9; }
.crm-timeline-icon { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 8px; background: #f3f1ed; color: #615a53; font-size: 12px; }
.crm-timeline-event strong, .crm-timeline-event small, .crm-timeline-event p { display: block; }
.crm-timeline-event strong { font-size: 11px; }
.crm-timeline-event small { margin-top: 2px; color: #777169; font-size: 9px; }
.crm-timeline-event p { margin: 7px 0 0; color: #555049; font-size: 10px; line-height: 1.6; }
.crm-customer-reply { margin: 10px 0; padding: 11px; border: 1px solid #f0dfda; border-radius: 9px; background: #fff7f5; }
.crm-stage-select { width: 100%; min-height: 40px; margin-bottom: 12px; padding: 0 9px; border: 1px solid #e3dfda; border-radius: 8px; background: #fff; }
.crm-inline-form { display: inline; }
.crm-note-counter { color: #77716b; font-size: 9px; }

@media (max-width: 1240px) {
    .experience-v17 .container, .admin-v17 .container { width: min(1180px, calc(100% - 48px)); }
    .ef-desktop-nav { gap: 16px; }
    .ef-desktop-nav a { font-size: 11px; }
    .atelier-hero-grid { gap: 47px; min-height: 510px; }
    .atelier-visual { min-height: 535px; }
    .admin-v17 .admin-main { padding-right: 22px; padding-left: 22px; }
}
@media (max-width: 1030px) {
    .ef-desktop-nav { display: none; }
    .atelier-hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .atelier-hero h1 { max-width: 720px; }
    .atelier-visual { min-height: 515px; }
    .atelier-image-main { left: 42px; }
    .experience-v17 .app-layout { grid-template-columns: 1fr; }
    .experience-v17 .summary-card { position: relative; top: auto; order: -1; }
    .admin-v17 .admin-shell { grid-template-columns: 205px minmax(0, 1fr); }
    .admin-v17 .metric-grid { grid-template-columns: repeat(3, 1fr); }
    .crm-insights-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .experience-v17 .container, .admin-v17 .container { width: calc(100% - 28px); }
    .experience-v17 .header-inner { height: 69px; }
    .experience-v17 .ef-brand img { width: 125px; height: 31px; }
    .experience-v17 .brand-copy, .experience-v17 .ef-account-link { display: none; }
    .experience-v17 .header-actions { gap: 5px; }
    .ef-header-cta { min-height: 37px; padding: 0 10px; font-size: 10px; }
    .atelier-hero { padding: 42px 0 48px; }
    .atelier-hero h1 { margin-top: 20px; font-size: 52px; }
    .atelier-description { font-size: 14px; }
    .atelier-actions { margin: 23px 0; }
    .atelier-primary, .atelier-secondary { min-height: 46px; padding: 0 15px; font-size: 11px; }
    .atelier-visual { min-height: 440px; }
    .atelier-image-main { left: 23px; border-radius: 20px; }
    .atelier-match-card { bottom: 44px; width: 194px; padding: 14px; }
    .atelier-promise-grid { grid-template-columns: repeat(2, 1fr); }
    .atelier-promise-grid article { min-height: 71px; padding: 10px; }
    .atelier-promise-grid article:first-child { padding-left: 4px; }
    .atelier-promise-grid article:nth-child(2) { border-right: 0; }
    .atelier-promise-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--studio-line); }
    .atelier-promise-grid strong { font-size: 10px; }
    .atelier-promise-grid small { font-size: 9px; }
    .studio-section-intro { padding: 59px 0 23px; }
    .studio-section-intro h2, .studio-editorial-head h2 { font-size: 37px; }
    .experience-v17 .wizard-shell { padding: 20px 14px 21px; border-radius: 17px; }
    .experience-v17 .wizard-progress { gap: 19px; }
    .experience-v17 .premium-question-group { padding: 14px; }
    .experience-v17 .choice-grid.four, .experience-v17 .choice-grid.three, .experience-v17 .form-grid.three, .experience-v17 .form-grid.two { grid-template-columns: 1fr; }
    .experience-v17 .goal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .experience-v17 .choice-card { min-height: 98px; padding: 12px; }
    .studio-editorial { padding: 60px 0 66px; }
    .studio-editorial-head { display: block; }
    .studio-editorial-head > a { display: inline-block; margin-top: 15px; }
    .studio-process-grid { grid-template-columns: 1fr; }
    .studio-process-card { min-height: 165px; }
    .studio-gallery-grid { grid-template-columns: 1fr; gap: 24px; }
    .studio-gallery-image { height: 305px; }
    .installation-banner { grid-template-columns: 1fr; }
    .installation-copy { padding: 35px 23px; }
    .installation-copy h2 { font-size: 35px; }
    .installation-image { height: 260px; }
    .experience-v17 .quote-hero-card { padding: 24px 21px; }
    .experience-v17 .quote-assurance-grid { grid-template-columns: 1fr; }
    .quote-review-grid { grid-template-columns: 1fr; }
    .experience-v17 .quote-public-grid > .page-card { padding: 17px; }
    .ef-footer-top { display: grid; }
    .ef-footer-contact { text-align: left; }
    .ef-footer-bottom { display: grid; }
    .admin-v17 .admin-shell { display: block; }
    .admin-v17 .admin-sidebar { position: relative; height: auto; padding-bottom: 11px; }
    .admin-v17 .admin-sidebar nav { display: flex; gap: 7px; overflow-x: auto; }
    .admin-v17 .crm-nav-group { flex: 0 0 auto; margin-top: 11px; }
    .admin-v17 .crm-nav-heading { display: none; }
    .admin-v17 .admin-sidebar nav a { display: inline-flex; margin: 0; white-space: nowrap; }
    .admin-v17 .admin-user { display: none; }
    .admin-v17 .admin-main { padding: 19px 12px 38px; }
    .admin-v17 .admin-top { align-items: start; gap: 10px; }
    .admin-v17 .admin-top-actions { flex-wrap: wrap; justify-content: end; }
    .admin-v17 .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .crm-overview-banner { display: grid; }
    .crm-task-row { grid-template-columns: 26px minmax(0, 1fr) 79px; gap: 7px; }
    .crm-task-row > :nth-child(4), .crm-task-row > :nth-child(5) { display: none; }
    .crm-detail-top { grid-template-columns: 1fr; }
    .crm-detail-value { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
