/*
 * Readability layer
 * Keeps the compact visual system while enforcing comfortable text sizes.
 */
body{font-size:15px;line-height:1.5}

/* Navigation and application chrome */
.workspace strong,.user-mini strong{font-size:13px}
.workspace small,.user-mini small{font-size:11px!important}
.nav-label{font-size:11px;letter-spacing:.09em}
.nav-link{font-size:13px;height:43px}
.nav-count{font-size:11px}
.global-search input{font-size:13px}
.global-search kbd{font-size:11px}
.quick-create,.btn{font-size:12px}
.btn-small{font-size:11px}
.page-heading p{font-size:13px}

/* Shared card typography */
.panel-head h2{font-size:16px}
.panel-head p,.panel-head>a{font-size:12px}
.trial-banner strong{font-size:13px}
.trial-banner span,.trial-banner>a{font-size:11px}
.metric-card>small{font-size:12px}
.metric-card>p{font-size:11px}
.metric-change{font-size:11px}
.pipeline-summary span{font-size:11px}
.pipeline-label{font-size:12px}
.pipeline-row>small{font-size:10px}
.agenda-item strong{font-size:12px}
.agenda-item span{font-size:10px}
.date-tile span{font-size:9px}
.compact-row strong,.compact-row>b{font-size:12px}
.compact-row span{font-size:10px}
.activity-item p{font-size:12px}
.activity-item small{font-size:10px}

/* Filters, pipelines, badges, and tables */
.filter-search input{font-size:12px}
.filter-pills a,.filter-pills button{font-size:12px}
.filter-pills b{font-size:10px}
.lead-summary small{font-size:11px}
.kanban-head>span{font-size:12px}
.lead-card h3{font-size:14px}
.lead-card p{font-size:11px}
.lead-card>strong{font-size:13px}
.lead-card-top>span,.lead-card-bottom>span:last-child{font-size:10px}
.kanban-add{font-size:11px}
.source,.status{font-size:10px}
.table-row{font-size:12px}
.table-head{font-size:10px}
.table-row>span>small,.person-cell>span small{font-size:10px}
.portal-active{font-size:11px}

/* Forms and modals */
.modal-kicker,.auth-kicker{font-size:10px}
.modal>p{font-size:13px}
.form-grid label,.form-stack label,.auth-form label,.settings-form label,.quote-form label,.review-public form>label{font-size:12px}
.form-grid input,.form-grid select,.form-grid textarea,
.form-stack input,.form-stack select,.form-stack textarea,
.auth-form input,.settings-form input,.settings-form select,
.quote-form input,.quote-form textarea,.quote-form select,.review-public textarea{font-size:13px}
.form-grid label small{font-size:11px}
.quick-grid small{font-size:11px}
.dropzone span,.file-drop span{font-size:11px}
.dropzone b,.file-drop b{font-size:13px}
.line-head{font-size:11px}
.line-row b,.quote-totals{font-size:12px}
.add-line{font-size:12px}

/* Lead and client details */
.breadcrumb{font-size:11px}
.lead-hero p,.client-profile p{font-size:12px}
.contact-inline a{font-size:12px}
.hero-value small{font-size:10px}
.tabs button{font-size:12px}
.tabs b{font-size:10px}
.timeline-title,.timeline-item p,.note-box{font-size:12px}
.side-card h3{font-size:14px}
.stage-steps span{font-size:11px}
.detail-list dt{font-size:10px}
.detail-list dd,.body-copy{font-size:12px}
.related-link b{font-size:11px}
.related-link small{font-size:10px}

/* Calendar: the area that needed the largest correction */
.calendar-toolbar .today,.cal-view button{font-size:11px}
.mini-head{font-size:12px}
.mini-days small{font-size:10px}
.mini-days i{font-size:11px;height:27px}
.calendar-side h3{font-size:12px}
.check-row{font-size:11px!important}
.upcoming-box b{font-size:11px}
.upcoming-box small{font-size:10px}
.calendar-weekdays{height:46px}
.calendar-weekdays b{font-size:11px}
.cal-cell{min-height:128px;padding:9px}
.cal-number{font-size:11px;width:24px;height:24px}
.cal-event{padding:6px;margin-top:5px;gap:2px}
.cal-event b{font-size:11px;line-height:1.25}
.cal-event span{font-size:10px;line-height:1.25}

/* Automation and review screens */
.automation-hero h2{font-size:16px}
.automation-hero p{font-size:12px}
.automation-saving small{font-size:10px}
.automation-tabs button{font-size:12px}
.automation-card h3{font-size:14px}
.automation-flow small{font-size:9px}
.automation-flow b{font-size:11px}
.automation-card-main>p{font-size:11px}
.automation-stats>small{font-size:10px}
.rating-card small,.review-stat small{font-size:11px}
.review-line b{font-size:12px}
.review-line span,.review-line small{font-size:10px}
.review-item p{font-size:12px}
.pending-review{font-size:11px}
.preview-label{font-size:9px}
.phone-mock p,.phone-mock textarea,.phone-mock button{font-size:10px}
.message-preview small{font-size:9px}
.message-preview p,.tax-note{font-size:11px}

/* Files, messages, clients, and settings */
.photo-card h3{font-size:13px}
.photo-card p,.photo-type{font-size:10px}
.client-overview small{font-size:11px}
.portal-promo b{font-size:12px}
.client-kpis small{font-size:10px}
.copy-field input,.copy-field button{font-size:10px}
.file-row b{font-size:11px}
.file-row small,.muted-copy{font-size:10px}
.message-sidebar>button{font-size:12px}
.message-sidebar>a{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:9px;color:var(--muted);font-size:12px;text-decoration:none}.message-sidebar>a.active{background:#ebe8ff;color:#584fc7;font-weight:700}.error-copy{color:#b43b3b!important}
.message-list-head span{font-size:10px}
.message-row b,.message-row strong{font-size:12px}
.message-row small{font-size:10px}
.message-row p{font-size:11px}
.settings-nav a{font-size:12px}
.settings-head p{font-size:12px}
.business-logo b{font-size:12px}
.business-logo small{font-size:10px}
.integration-card h3{font-size:13px}
.integration-card p{font-size:11px}
.connected{font-size:10px}
.webhook-info b{font-size:12px}
.webhook-info p{font-size:10px}
.current-plan small{font-size:10px}
.current-plan h2 b,.current-plan p{font-size:11px}
.plans p,.plans li{font-size:11px}
.plans article>span{font-size:9px}
.empty-state h3{font-size:14px}
.empty-state p{font-size:11px}
.search-results h3{font-size:11px}
.search-results b{font-size:12px}
.search-results small{font-size:10px}
.help-grid h3{font-size:14px}
.help-grid p{font-size:12px}
.help-grid b{font-size:11px}

/* Authentication and customer-facing pages */
.eyebrow{font-size:10px}
.story-proof small{font-size:11px}
.proof-avatars span{font-size:9px}
.story-card strong{font-size:12px}
.story-card p{font-size:10px}
.auth-box>p{font-size:12px}
.label-link{font-size:11px}
.auth-switch{font-size:11px}
.demo-hint b{font-size:10px}
.demo-hint span{font-size:11px}
.legal{font-size:10px}
.public-top>span{font-size:10px}
.public-welcome>span,.review-public article>span{font-size:10px}
.public-welcome p{font-size:12px}
.document{font-size:12px}
.document-head p{font-size:10px}
.document-title strong{font-size:12px}
.document-meta small{font-size:9px}
.document-meta b{font-size:12px}
.document-meta span{font-size:10px}
.document-table th{font-size:9px}
.document-table td{font-size:11px}
.document-note b,.document-terms b{font-size:11px}
.document-note p,.document-terms p{font-size:10px}
.summary-totals>div{font-size:11px}
.summary-totals small{font-size:9px}
.accept-box small,.accepted-banner span{font-size:11px}
.public-footer,.public-toast{font-size:10px}
.portal-company b{font-size:13px}
.portal-company small{font-size:10px}
.portal-side nav a{font-size:11px}
.portal-contact small,.portal-contact a,.portal-contact span{font-size:10px}
.portal-contact b{font-size:12px}
.portal-main header p{font-size:11px}
.portal-welcome span{font-size:9px}
.portal-welcome p{font-size:11px}
.portal-stats small{font-size:10px}
.portal-section-head span{font-size:10px}
.portal-doc-list b,.portal-doc-list strong{font-size:11px}
.portal-doc-list small{font-size:10px}
.portal-appointment b{font-size:11px}
.portal-appointment span{font-size:10px}
.portal-file b{font-size:11px}
.portal-file small{font-size:10px}
.review-public article>p{font-size:12px}
.review-public>small{font-size:10px}

@media(max-width:570px){
  body{font-size:14px}
  .cal-event b{font-size:10px}
  .cal-event span{font-size:9px}
}

/* Functional screens added during production hardening */
.cal-view a{display:inline-flex;align-items:center;justify-content:center;padding:8px 13px;border-radius:9px;color:var(--muted);font-size:12px;text-decoration:none}
.cal-view a.active{background:#fff;color:var(--ink);box-shadow:0 2px 8px rgba(30,25,55,.08)}
.calendar-full{overflow:hidden}.cal-event{display:flex;text-decoration:none;color:inherit}
.calendar-compat{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important}
.availability-list{display:grid;gap:9px}.availability-list>div{display:grid;grid-template-columns:1fr 120px 20px 120px;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line)}
.agenda-manager{padding:8px 20px}.agenda-manager article{display:flex;align-items:center;gap:14px;padding:15px 4px;border-bottom:1px solid var(--line)}.agenda-manager article>i{width:4px;height:42px;border-radius:6px}.agenda-manager article .grow{display:flex;flex-direction:column}.agenda-manager article span,.agenda-manager article small{font-size:12px;color:var(--muted)}
.notification-list{padding:8px 18px}.notification-row{display:flex;align-items:center;gap:14px;padding:16px 6px;border-bottom:1px solid var(--line);text-decoration:none;color:inherit}.notification-row.unread{background:#faf9ff}.notification-row p{margin:3px 0;color:var(--muted);font-size:13px}.notification-row small{font-size:11px;color:var(--muted)}.notification-row>i{width:8px;height:8px;background:#6f63e7;border-radius:50%}
.report-filter{display:flex;align-items:end;gap:12px;margin-bottom:18px}.report-filter label{display:grid;gap:5px;font-size:12px;color:var(--muted)}.report-filter input{border:1px solid var(--line);padding:9px 11px;border-radius:9px;background:#fff}.report-table{padding:4px 20px 16px}.report-table>div{display:grid;grid-template-columns:1fr 1fr auto;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid var(--line);font-size:12px}
.help-hero button{margin-left:auto}.help-article{padding:28px;max-width:850px}.help-article ol{display:grid;gap:18px;padding-left:24px}.help-article li{padding-left:8px;line-height:1.65}.help-article .form-alert{margin-top:28px}
.legal-page{background:#f7f6fb;padding:40px 20px}.legal-document{max-width:820px;margin:auto;background:#fff;border:1px solid #e8e5ef;border-radius:20px;padding:42px;box-shadow:0 18px 60px rgba(35,29,66,.08)}.legal-document h1{margin:38px 0 8px}.legal-document h2{margin-top:30px;font-size:19px}.legal-document p{font-size:14px;line-height:1.75;color:#5f5b6c}.legal-document .form-alert{margin:28px 0}
.business-logo img{width:70px;height:70px;object-fit:contain;border-radius:14px;border:1px solid var(--line);background:#fff}.btn-danger{background:#fff0f0!important;color:#b43b3b!important;border:1px solid #f1caca!important}
.consent-box{display:grid;gap:8px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#faf9ff}.consent-box>b{font-size:13px}.consent-box small{font-size:11px;color:var(--muted)}
@media print{.sidebar,.topbar,.page-heading,.quote-status-strip,.page-actions,.public-footer{display:none!important}.main-area,.content-wrap,.document-wrap{margin:0!important;padding:0!important;width:100%!important}.document{box-shadow:none!important;border:0!important}}
@media(max-width:700px){.availability-list>div{grid-template-columns:1fr 1fr}.availability-list>div>span{display:none}.agenda-manager article{align-items:flex-start;flex-wrap:wrap}.report-filter{align-items:stretch;flex-direction:column}.report-table>div{grid-template-columns:1fr auto}.report-table>div strong{grid-column:2}.legal-document{padding:24px}}

/* High-readability pass: core UI text should remain comfortable on wide screens. */
body{font-size:16px}
.workspace strong,.user-mini strong{font-size:14px}
.workspace small,.user-mini small{font-size:12px!important;line-height:1.35}
.nav-label{font-size:11px}
.nav-link{font-size:14px;height:45px}
.nav-count{font-size:12px;min-width:21px;height:21px}
.global-search input{font-size:14px}
.global-search kbd{font-size:12px}
.quick-create,.btn{font-size:13px}
.btn-small{font-size:12px}
.page-heading p{font-size:14px}

.panel-head h2{font-size:17px}
.panel-head p,.panel-head>a{font-size:13px}
.trial-banner strong{font-size:14px}
.trial-banner span,.trial-banner>a{font-size:12px}
.metric-card>small{font-size:13px}
.metric-card>p{font-size:12px}
.metric-change{font-size:12px}
.pipeline-summary span{font-size:12px}
.pipeline-label{font-size:13px}
.pipeline-row>small{font-size:11px}
.agenda-item strong{font-size:13px}
.agenda-item span{font-size:11px}
.date-tile span{font-size:10px}
.compact-row strong,.compact-row>b{font-size:13px}
.compact-row span{font-size:11px}
.activity-item p{font-size:13px}
.activity-item small{font-size:11px}

.filter-search input{font-size:13px}
.filter-pills a,.filter-pills button{font-size:13px}
.filter-pills b{font-size:11px}
.lead-summary small{font-size:12px}
.lead-summary strong{font-size:17px}
.kanban-head>span{font-size:13px}
.kanban-head b{font-size:11px}
.lead-card{padding:14px}
.lead-card h3{font-size:15px}
.lead-card p{font-size:12px;line-height:1.45}
.lead-card>strong{font-size:14px}
.lead-card-top>span,.lead-card-bottom>span:last-child{font-size:11px}
.kanban-add{font-size:12px;height:38px}
.source,.status{font-size:11px;padding:5px 8px}
.table-row{font-size:13px}
.table-head{font-size:11px}
.table-row>span>small,.person-cell>span small{font-size:11px}
.portal-active{font-size:12px}

.modal-kicker,.auth-kicker{font-size:11px}
.modal>p{font-size:14px}
.form-grid label,.form-stack label,.auth-form label,.settings-form label,.quote-form label,.review-public form>label{font-size:13px}
.form-grid input,.form-grid select,.form-grid textarea,
.form-stack input,.form-stack select,.form-stack textarea,
.auth-form input,.settings-form input,.settings-form select,
.quote-form input,.quote-form textarea,.quote-form select,.review-public textarea{font-size:14px}
.form-grid label small{font-size:12px}
.quick-grid small{font-size:12px}
.dropzone span,.file-drop span{font-size:12px}
.dropzone b,.file-drop b{font-size:14px}
.line-head{font-size:12px}
.line-row b,.quote-totals{font-size:13px}
.add-line{font-size:13px}

.breadcrumb{font-size:12px}
.lead-hero p,.client-profile p{font-size:13px}
.contact-inline a{font-size:13px}
.hero-value small{font-size:11px}
.tabs button,.tabs span{font-size:13px}
.tabs b{font-size:11px}
.timeline-title,.timeline-item p,.note-box{font-size:13px}
.side-card h3{font-size:15px}
.stage-steps span{font-size:12px}
.detail-list dt{font-size:11px}
.detail-list dd,.body-copy{font-size:13px}
.related-link b{font-size:12px}
.related-link small{font-size:11px}

.calendar-toolbar .today,.cal-view a,.cal-view button{font-size:12px}
.mini-head{font-size:13px}
.mini-days small{font-size:11px}
.mini-days i{font-size:12px}
.calendar-side h3{font-size:13px}
.check-row{font-size:12px!important}
.upcoming-box b{font-size:12px}
.upcoming-box small{font-size:11px}
.calendar-weekdays b{font-size:12px}
.cal-number{font-size:12px}
.cal-event b{font-size:12px;line-height:1.35}
.cal-event span{font-size:11px;line-height:1.35}

.automation-hero h2{font-size:17px}
.automation-hero p{font-size:13px}
.automation-saving small{font-size:11px}
.automation-tabs a,.automation-tabs span{font-size:13px}
.automation-card h3{font-size:15px}
.automation-flow small{font-size:10px}
.automation-flow b{font-size:12px}
.automation-card-main>p{font-size:12px}
.automation-stats>small{font-size:11px}
.rating-card small,.review-stat small{font-size:12px}
.review-line b{font-size:13px}
.review-line span,.review-line small{font-size:11px}
.review-item p{font-size:13px}
.pending-review{font-size:12px}
.message-preview p,.tax-note{font-size:12px}

.photo-card h3{font-size:14px}
.photo-card p,.photo-type{font-size:11px}
.client-overview small{font-size:12px}
.portal-promo b{font-size:13px}
.client-kpis small{font-size:11px}
.copy-field input,.copy-field button{font-size:12px}
.file-row b{font-size:12px}
.file-row small,.muted-copy{font-size:11px}
.message-sidebar>a,.message-sidebar>button{font-size:13px}
.message-list-head span{font-size:11px}
.message-row b,.message-row strong{font-size:13px}
.message-row small{font-size:11px}
.message-row p{font-size:12px}
.settings-nav a{font-size:13px}
.settings-head p{font-size:13px}
.business-logo b{font-size:13px}
.business-logo small{font-size:11px}
.integration-card h3{font-size:14px}
.integration-card p{font-size:12px}
.connected{font-size:11px}
.plans p,.plans li{font-size:12px}
.empty-state h3{font-size:15px}
.empty-state p{font-size:12px}
.search-results h3{font-size:12px}
.search-results b{font-size:13px}
.search-results small{font-size:11px}
.help-grid h3{font-size:15px}
.help-grid p{font-size:13px}
.help-grid b{font-size:12px}

/* Authentication screens: keep supporting copy comfortably readable. */
.auth-kicker{font-size:12px;color:#574bc5;letter-spacing:.1em}
.auth-box>p{font-size:15px;line-height:1.55;color:#656273}
.auth-form{gap:17px}
.auth-form label{font-size:14px;color:#474453}
.auth-form input{font-size:16px;min-height:48px;background:#fff;color:#242336}
.auth-form input::placeholder{color:#777482;opacity:1}
.label-link{font-size:13px;color:#574bc5}
.password-toggle{top:6px;color:#656273}
.auth-switch{font-size:14px;color:#656273;line-height:1.5}
.auth-switch a{color:#574bc5;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.demo-hint{padding:12px}
.demo-hint b{font-size:12px;color:#574bc5}
.demo-hint span{font-size:14px;color:#474453}
.legal{font-size:12px;color:#656273;line-height:1.55;text-align:center}
.legal a{color:#474453;text-decoration:underline;text-underline-offset:2px}
.eyebrow{font-size:11px}
.story-proof small{font-size:12px;line-height:1.4}
.proof-avatars span{font-size:10px}
.story-card strong{font-size:13px}
.story-card p{font-size:12px}
.form-alert{font-size:13px;line-height:1.45;padding:11px 12px}

/* Clientivo identity: a connected C for client relationships and workflow. */
.brand-mark{position:relative;display:inline-block;width:34px;height:28px;flex:0 0 auto;color:var(--purple);transform:none}
.brand-mark:before{content:"";position:absolute;left:0;top:1px;width:18px;height:18px;border:4px solid currentColor;border-right-color:transparent;border-radius:50%}
.brand-mark i{position:absolute;display:block;margin:0;background:currentColor;border-radius:999px;opacity:1}
.brand-mark i:nth-child(1){left:14px;top:11px;width:7px;height:7px}
.brand-mark i:nth-child(2),.brand-mark i:nth-child(3){left:18px;top:13px;width:11px;height:3px;transform-origin:0 50%}
.brand-mark i:nth-child(2){transform:rotate(-34deg)}
.brand-mark i:nth-child(3){transform:rotate(34deg)}
.brand-mark i:nth-child(2):after,.brand-mark i:nth-child(3):after{content:"";position:absolute;right:-3px;top:-3px;width:7px;height:7px;border:2px solid currentColor;border-radius:50%;background:#fff}
.auth-story .brand-mark{color:#fff}
.auth-story .brand-mark i:nth-child(2):after,.auth-story .brand-mark i:nth-child(3):after{background:#8179e4}
.brand>span:not(.brand-mark),.auth-brand,.auth-mobile-brand,.landing-brand,.mock-brand{letter-spacing:-.45px}

@media(max-width:570px){
  body{font-size:15px}
  .nav-link{font-size:14px}
  .metric-card>small{font-size:12px}
  .cal-event b{font-size:11px}
  .cal-event span{font-size:10px}
}

/* Mobile application shell: thumb-friendly navigation and contained scrolling. */
.mobile-nav,.sidebar-scrim{display:none}

@media(max-width:820px){
  html,body{max-width:100%;overflow-x:hidden}
  body:not(.auth-page):not(.public-page):not(.legal-page){min-height:100dvh}
  .app-shell{min-height:100dvh}
  .main-area{min-width:0;padding-bottom:calc(78px + env(safe-area-inset-bottom))}
  .content-wrap{padding:20px 14px 30px}

  .topbar{height:64px;padding:0 12px;gap:8px;top:0}
  .menu-toggle,.quick-create{width:42px;height:42px;min-width:42px;border-radius:12px}
  .global-search{height:44px;min-width:0;margin-left:0;padding:0 11px;border-radius:13px}
  .global-search input{min-width:0;font-size:14px;text-overflow:ellipsis}
  .top-actions{gap:6px}

  .page-heading{margin-bottom:20px;gap:14px}
  .page-heading h1{font-size:25px;line-height:1.18;letter-spacing:-.7px}
  .page-heading p{font-size:14px;line-height:1.5;margin-top:6px}
  .page-actions{gap:8px}
  .page-actions .btn,.toolbar .btn{min-height:44px}
  .panel,.metric-card,.mini-stat{border-radius:18px}
  .panel-head{padding:18px 17px 14px}
  .dashboard-grid,.dashboard-grid.lower{gap:12px;margin-bottom:12px}

  .sidebar{width:min(86vw,320px);padding-bottom:calc(18px + env(safe-area-inset-bottom));z-index:80}
  .sidebar-scrim{position:fixed;inset:0;z-index:79;border:0;background:rgba(31,27,55,.36);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
  .sidebar.open + .sidebar-scrim{display:block}
  body.sidebar-visible{overflow:hidden}

  .mobile-nav{position:fixed;z-index:70;left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom));height:66px;padding:6px 7px;display:grid;grid-template-columns:repeat(5,1fr);align-items:center;background:rgba(255,255,255,.88);border:1px solid rgba(255,255,255,.96);border-radius:20px;box-shadow:0 14px 38px rgba(39,33,76,.20),inset 0 1px 0 #fff;backdrop-filter:blur(24px) saturate(145%);-webkit-backdrop-filter:blur(24px) saturate(145%)}
  .mobile-nav>a,.mobile-nav>button{position:relative;height:52px;min-width:0;border:0;border-radius:14px;background:transparent;color:#777388;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font:700 10px "DM Sans",sans-serif;text-decoration:none}
  .mobile-nav svg{width:20px;height:20px}
  .mobile-nav .active{color:#5f54d4;background:rgba(235,232,255,.78)}
  .mobile-nav>a>b{position:absolute;top:3px;left:calc(50% + 7px);min-width:17px;height:17px;padding:0 4px;border:2px solid #fff;border-radius:10px;background:#6f63e7;color:#fff;display:grid;place-items:center;font-size:9px}
  .mobile-nav .mobile-create{color:#fff;overflow:visible}
  .mobile-nav .mobile-create:before{content:"";position:absolute;inset:0 7px;border-radius:15px;background:linear-gradient(145deg,#766aee,#4e43c2);box-shadow:0 8px 20px rgba(85,73,203,.31);z-index:-1}

  .toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;overflow:visible}
  .toolbar .filter-search{width:100%;min-width:0;height:44px}
  .toolbar .filter-pills{grid-column:1/-1;max-width:100%;overflow-x:auto;padding:1px 0 4px;scrollbar-width:none}
  .toolbar .filter-pills::-webkit-scrollbar{display:none}
  .toolbar .filter-pills a,.toolbar .filter-pills button{min-height:38px;padding-inline:13px}
  .toolbar .view-toggle{grid-column:2;grid-row:1;margin-left:0}

  .data-table{border-radius:18px;scroll-snap-type:x proximity;overscroll-behavior-inline:contain}
  .table-row{scroll-snap-align:start}
  .kanban{grid-template-columns:repeat(5,min(82vw,340px));gap:12px;scroll-snap-type:x mandatory;scroll-padding-inline:1px;overscroll-behavior-inline:contain;padding-bottom:16px}
  .kanban-col{min-height:430px;scroll-snap-align:start;border-radius:18px;padding:11px}
  .kanban-head{height:42px}
  .kanban-add{height:42px}
}

@media(max-width:570px){
  .content-wrap{padding-inline:13px}
  .metrics-grid,.metrics-compact{gap:10px}
  .metric-card{min-height:124px;padding:15px}
  .metric-value{font-size:20px}
  .page-actions{width:100%;display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}
  .page-actions .btn{width:100%;padding-inline:12px}
  .page-actions .btn span{display:inline}

  .lead-summary{display:grid;grid-template-columns:1fr 1fr;overflow:hidden}
  .lead-summary>div{min-width:0;padding:13px 14px;align-items:flex-start;flex-direction:column;gap:3px}
  .lead-summary>div:nth-child(2){border-right:0}
  .lead-summary>div:nth-child(n+3){grid-column:1/-1;border-top:1px solid var(--line);border-right:0;flex-direction:row;align-items:baseline}
  .lead-summary strong{font-size:16px;line-height:1.25;overflow-wrap:anywhere}

  .calendar-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:10px}
  .cal-nav{display:grid;grid-template-columns:42px 42px auto minmax(0,1fr);gap:6px;width:100%}
  .cal-nav>a{height:42px;padding:0 10px;font-size:12px}
  .cal-nav h2{min-width:0;margin:0 0 0 5px;align-self:center;text-align:right;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .cal-view{width:100%;padding:4px}
  .cal-view a,.cal-view button{flex:1;min-height:38px;font-size:12px}
  .calendar-grid{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity}
  .calendar-weekdays,.calendar-cells{width:700px;min-width:700px;grid-template-columns:repeat(7,minmax(0,1fr))}
  .cal-cell{min-width:0;min-height:100px;padding:6px;scroll-snap-align:start}
  .cal-event{min-width:0;min-height:32px;padding:5px}

  .modal-backdrop{align-items:flex-end;padding:0}
  .modal{width:100%;max-height:92dvh;border-radius:24px 24px 0 0;padding:25px 18px calc(22px + env(safe-area-inset-bottom));animation:mobile-modal-in .24s ease-out}
  .modal-close{width:40px;height:40px;right:14px;top:14px}
  .form-actions{position:sticky;bottom:calc(-22px - env(safe-area-inset-bottom));margin:8px -18px calc(-22px - env(safe-area-inset-bottom));padding:12px 18px calc(12px + env(safe-area-inset-bottom));background:rgba(255,255,255,.91);border-top:1px solid var(--line);backdrop-filter:blur(18px)}
  .form-actions .btn{min-height:44px;flex:1}
  @keyframes mobile-modal-in{from{transform:translateY(35px);opacity:.5}to{transform:translateY(0);opacity:1}}
}

@media(max-width:360px){
  .content-wrap{padding-inline:11px}
  .global-search input{font-size:13px}
  .page-heading h1{font-size:23px}
  .metrics-grid,.metrics-compact{grid-template-columns:1fr}
  .mobile-nav{left:6px;right:6px}
  .mobile-nav>a,.mobile-nav>button{font-size:9px}
}
