/* R53: compact shared geometry. Teal chrome and readable Calibri stay intact. */
body.crm-unified{--crm-control-height:36px}
body.crm-unified .module-layout.has-module-nav{grid-template-columns:196px minmax(0,1fr);gap:10px}
body.crm-unified .module-layout>.content{padding:12px 16px 60px 8px!important}
body.crm-unified .module-navigation{padding:8px;margin:12px 0 12px 10px;top:66px;max-height:calc(100dvh - 78px);border-radius:12px;scrollbar-width:thin}
body.crm-unified .module-navigation-toggle{font-size:14px;padding:6px 8px!important;min-height:34px}
body.crm-unified :is(.module-view-tabs,.module-section-links)>a,body.crm-unified .module-direct-actions>a{min-height:34px;padding:6px 7px!important;gap:7px;font-size:13px}
body.crm-unified .module-nav-caption{margin:10px 6px 5px;line-height:1.3}
body.crm-unified :is(.module-view-tabs,.module-section-links){gap:2px}
body.crm-unified .module-direct-actions{gap:4px;margin-top:6px}
body.crm-unified .module-primary .module-group-title{margin:6px 5px 3px;padding-top:6px}
body.crm-unified .module-primary>a{min-height:32px;padding:5px 7px!important}
body.crm-unified .module-primary .nav-icon{width:18px;height:18px;flex:0 0 18px}
body.crm-unified .module-switcher-panel{max-height:min(520px,calc(100dvh - 76px));overscroll-behavior:contain;scrollbar-width:thin}
body.crm-unified .topbar .global-search{min-width:140px}
body.crm-unified #main-content :is(.executive-header,.page-head){padding:10px 14px!important;min-height:0;margin-bottom:12px;border-radius:12px}
body.crm-unified #main-content :is(.executive-header,.page-head) h1{font-size:22px;line-height:1.2;margin:0 0 4px}
body.crm-unified #main-content :is(.executive-header,.page-head) p{font-size:13px;line-height:1.4;margin:3px 0}
body.crm-unified #main-content .executive-header .header-copy{gap:2px}
body.crm-unified #main-content .dashboard-header .header-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;align-items:baseline}
body.crm-unified #main-content .dashboard-header .header-copy>small{grid-column:2;grid-row:2}
body.crm-unified #main-content .dashboard-header .header-copy>p:not(.eyebrow){grid-column:1/-1;grid-row:3;max-width:none}
body.crm-unified #main-content :is(.panel,.form-panel){padding:12px;margin-bottom:12px;border-radius:10px}
body.crm-unified #main-content :is(.panel-head,.section-head){padding:6px 10px;gap:6px;margin-bottom:10px;min-height:0}
body.crm-unified #main-content :is(.panel-head,.section-head) :is(h2,h3){font-size:16px;line-height:1.3;margin:0}
body.crm-unified #main-content :is(.panel-head,.section-head)>p{flex-basis:100%;font-size:12px;line-height:1.45;margin:2px 0}
body.crm-unified #main-content :is(.button,.secondary,button,summary){white-space:normal;overflow-wrap:anywhere}
body.crm-unified #main-content :is(button,.button,.secondary):not(.link-button):not(.crm-chat-toggle){min-height:34px;padding:6px 10px;font-size:13px;line-height:1.4}
body.crm-unified #main-content :is(.form-grid,.ats-form-grid,.business-fields,.crm-settings-grid){gap:12px 16px;min-width:0}
body.crm-unified #main-content :is(.form-grid,.ats-form-grid,.business-fields,.crm-settings-grid)>:is(label,div){min-width:0}
body.crm-unified #main-content :is(.form-grid,.ats-form-grid,.business-fields,.crm-settings-grid,.toolbar) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=color]),select:not([multiple])){min-height:var(--crm-control-height);padding:7px 9px;font-size:14px;line-height:1.4;max-width:100%;box-sizing:border-box}
body.crm-unified #main-content :is(.form-grid,.ats-form-grid,.business-fields,.crm-settings-grid) textarea{min-height:86px;padding:8px 10px;font-size:14px;line-height:1.5;resize:vertical}
body.crm-unified #main-content :is(.form-grid,.ats-form-grid,.business-fields,.crm-settings-grid) label{font-size:13px;line-height:1.4;gap:4px}
body.crm-unified #main-content .premium-form .editor-section{padding:14px!important;margin:0 0 12px!important;border-radius:10px!important}
body.crm-unified #main-content .premium-form .section-head{padding:0 0 8px!important;margin:0 0 12px!important}
body.crm-unified #main-content .premium-form .section-head h2{font-size:17px!important}
body.crm-unified #main-content .premium-form :is(.form-grid,.ats-form-grid){gap:12px 16px!important}
body.crm-unified #main-content .premium-form .form-field{gap:4px!important}
body.crm-unified #main-content .premium-form .form-field label{font-size:13px!important}
body.crm-unified #main-content .premium-form :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),select:not([multiple])){min-height:var(--crm-control-height)!important;padding:7px 9px!important;font-size:14px!important;line-height:1.4}
body.crm-unified #main-content .premium-form textarea{min-height:86px!important;padding:8px 10px!important;font-size:14px!important}
body.crm-unified #main-content .premium-form select[multiple]{min-height:112px!important;padding:6px!important;font-size:14px!important}
body.crm-unified #main-content .premium-form input[type=file]{min-height:36px;padding:5px;white-space:normal}
body.crm-unified #main-content .premium-form .recovery-status{margin:6px 0 10px!important;line-height:1.4}
body.crm-unified #main-content .premium-form-footer{padding:8px 12px;gap:8px;margin-top:10px;border-radius:10px}
body.crm-unified #main-content .premium-form-footer :is(button,a){min-height:34px!important;padding:6px 10px!important;font-size:13px!important}
body.crm-unified #main-content .premium-form-footer .form-completion{min-width:120px}
body.crm-unified #main-content .premium-form-footer :is(.form-actions,.form-page-actions){gap:6px}
body.crm-unified #main-content .form-step-nav{gap:5px;margin-bottom:10px}
body.crm-unified #main-content .form-step-nav button{padding:6px 9px;min-height:34px}
body.crm-unified #main-content .form-actions{margin-top:12px;padding-top:8px;gap:6px}
body.crm-unified #main-content .workforce-config-form{max-width:none}
body.crm-unified #main-content .workforce-form-section{margin-block:10px;border-radius:10px}
body.crm-unified #main-content .workforce-form-section>summary{padding:9px 12px;font-size:14px}
body.crm-unified #main-content .workforce-form-section>.form-grid{padding:12px;gap:12px 16px}
body.crm-unified #main-content .crm-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body.crm-unified #main-content .crm-setting-field{gap:4px}
body.crm-unified #main-content :is(.crm-form-actions,.crm-review-button,.crm-saved){margin-top:10px;gap:7px}
body.crm-unified #main-content .crm-form-actions{grid-column:1/-1}
body.crm-unified #main-content .crm-lead-board{gap:12px;padding-bottom:12px}
body.crm-unified #main-content .crm-board-column{flex-basis:270px;padding:10px;border-radius:10px}
body.crm-unified #main-content .crm-lead-card{padding:10px;margin-top:8px;border-radius:8px}
body.crm-unified #main-content .crm-bulk-disclosure{margin:0 0 12px;border:1px solid var(--crm-line);border-radius:10px;background:#fff}
body.crm-unified #main-content .crm-bulk-disclosure>summary{padding:9px 12px;cursor:pointer;font-weight:600}
body.crm-unified .crm-bulk-count{margin-left:8px;font-weight:400;color:var(--crm-muted);font-size:12px}
body.crm-unified #main-content .crm-bulk-disclosure>.panel{margin:0;border:0}
body.crm-unified #main-content .attendance-recovery{padding:0;background:#fffcf3;border-left:3px solid #9b763a}
body.crm-unified .attendance-recovery>summary{padding:10px 12px;font-size:14px;font-weight:600;cursor:pointer}
body.crm-unified .attendance-recovery>summary span{font-size:12px;font-weight:400;margin-left:12px;color:#675c43}
body.crm-unified .attendance-recovery-body{padding:0 12px 10px;font-size:13px}
body.crm-unified .attendance-recovery-body p{margin:5px 0 8px;line-height:1.5}
body.crm-unified .attendance-original .toolbar{margin:0;padding:0}
body.crm-unified .attendance-original>p{margin:8px 0 0;font-size:13px;line-height:1.5}
body.crm-unified #main-content .compact-correction .form-grid>label:has(textarea){grid-column:1/-1}
body.crm-unified .topbar .user-menu>.account-panel{width:min(430px,calc(100vw - 24px));max-width:calc(100vw - 24px);min-width:0;max-height:calc(100dvh - 76px);padding:12px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;color:#193d43}
body.crm-unified .account-panel .menu-identity{padding:0 0 8px;margin-bottom:8px}
body.crm-unified .account-menu-group{margin:8px 0}
body.crm-unified .account-menu-group h3{margin:0 0 5px;padding:0;background:none;color:#52696e;font-size:11px;letter-spacing:.06em;text-transform:uppercase}
body.crm-unified .account-menu-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
body.crm-unified .topbar .account-menu-links>a{display:flex;align-items:center;min-width:0;min-height:34px;padding:6px 8px!important;background:#fff!important;color:#244d54!important;border:1px solid #d4e2e1!important;border-radius:6px;box-shadow:none!important;text-shadow:none!important;font-size:13px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;text-decoration:none}
body.crm-unified .topbar .account-menu-links>a:hover{background:#eaf3f1!important}
body.crm-unified .topbar .account-panel>form{margin-top:8px;border-top:1px solid #d4e2e1;padding-top:8px}
body.crm-unified .topbar .account-panel>form>button{width:100%;min-height:34px;background:#edf5f3!important;color:#244d54!important;border:1px solid #d4e2e1!important;box-shadow:none!important}
body.crm-unified .topbar #sticky-note-panel :is(.hanger-leaf,.hanger-add){background:#f8fbfa!important;color:#244d54!important;text-shadow:none!important;box-shadow:none!important}
body.crm-unified .topbar #sticky-note-panel :is(.hanger-leaf,.hanger-add):hover{background:#e4f1ef!important}
body.crm-unified .topbar #sticky-note-panel .hanger-leaf strong{color:#52696e!important}
body.crm-unified #personal-dashboard .pd-grid{grid-auto-rows:4px;gap:8px}
body.crm-unified #personal-dashboard .pd-grid>.panel{padding:0;margin:0}
body.crm-unified #personal-dashboard .panel-head{padding:5px 9px;min-height:30px;margin:0}
body.crm-unified #personal-dashboard .panel-head h2{font-size:14px}
body.crm-unified #personal-dashboard .pd-shortcuts{padding:7px 9px;gap:6px}
body.crm-unified #personal-dashboard .pd-shortcut>a{min-height:36px;padding:6px 8px!important}
body.crm-unified #personal-dashboard .pd-columns{padding:6px 9px}
body.crm-unified #personal-dashboard [data-widget=metrics] .pd-columns>a{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;padding:8px;gap:8px}
body.crm-unified #personal-dashboard [data-widget=metrics] .pd-columns strong{font-size:23px}
body.crm-unified #personal-dashboard .pd-row{padding:5px 0}
body.crm-unified #personal-dashboard .pd-toolbar{margin:6px 0}
body.crm-workbooks #home .sheets{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:12px;overflow:visible;min-height:0}
body.crm-workbooks #home .sheet-card{padding:14px;gap:10px;min-width:0;border:1px solid #d4e2e1;border-top:3px solid #287e80;border-radius:10px;box-shadow:0 3px 12px #193d4308}
body.crm-workbooks #home .sheet-card>a{font-size:17px;line-height:1.4;overflow-wrap:anywhere}
body.crm-workbooks .workbook-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0;font-size:13px}
body.crm-workbooks .workbook-meta div{min-width:0;overflow-wrap:anywhere}.workbook-meta dt{color:#52696e;font-size:12px}.workbook-meta dd{margin:2px 0 0}
body.crm-workbooks .workbook-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-top:2px}
body.crm-workbooks .workbook-actions{flex:0 1 auto;min-width:0}
body.crm-workbooks .workbook-actions[open]>div{display:grid;padding:6px 0 0;gap:5px}
body.crm-workbooks .workbook-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 12px}
body.crm-workbooks .workbook-toolbar label{display:flex;align-items:center;gap:6px;font-size:13px}
body.crm-workbooks .workbook-toolbar :is(input,select){min-height:34px;max-width:100%;min-width:0;border:1px solid #bdd4d0;border-radius:7px;padding:6px 8px;background:#fff;color:#193d43}
body.crm-workbooks .workbook-toolbar input{width:230px}.workbook-toolbar output{color:#52696e;font-size:12px}
body.crm-workbooks #home .shortcuts{gap:10px;margin-bottom:16px}
body.crm-workbooks #home .shortcut{width:180px;padding:10px;border:1px solid #d4e2e1;border-radius:10px;background:#fff}
body.crm-workbooks #home .shortcut>a{display:flex;align-items:center;gap:8px;text-align:left;min-height:36px;overflow-wrap:anywhere}
body.crm-workbooks #home .shortcut .icon{width:28px;height:28px;flex:0 0 28px}.crm-workbooks #home .shortcut .icon svg{width:26px;height:26px}
body.crm-workbooks .desk-top .btn{box-shadow:none!important;background:#ffffff12!important;color:#fff!important;border-color:#ffffff55!important}
body.crm-workbooks .sheet-card .btn{background:#edf5f3;color:#244d54;box-shadow:none}
@media(min-width:851px){body.crm-unified .module-layout.module-nav-collapsed{grid-template-columns:62px minmax(0,1fr)}body.crm-unified .module-nav-collapsed .module-navigation{width:50px;margin-left:8px;padding:5px}body.crm-unified .module-nav-collapsed :is(.module-view-tabs,.module-section-links)>a,body.crm-unified .module-nav-collapsed .module-direct-actions>a{min-height:36px;padding:7px!important}}
@media(min-width:1500px){body.crm-unified #main-content .premium-form :is(.form-grid,.ats-form-grid){grid-template-columns:repeat(var(--form-columns,3),minmax(0,1fr))!important}body.crm-unified #main-content :is(.crm-lead-filters,.compact-correction .form-grid){grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:850px){body.crm-unified .module-layout.has-module-nav{display:block}body.crm-unified .module-navigation{width:auto;position:static;margin:8px 12px 0;max-height:36dvh}body.crm-unified .module-layout>.content{padding:10px 12px 60px!important}body.crm-unified #main-content .dashboard-header .header-copy{grid-template-columns:1fr}body.crm-unified #main-content .dashboard-header .header-copy>small{grid-column:1;grid-row:4}body.crm-unified .topbar .user-menu>.account-panel{position:fixed;right:12px;top:60px}}
@media(max-width:760px){body.crm-unified #main-content .crm-settings-grid{grid-template-columns:minmax(0,1fr)}body.crm-unified #main-content .premium-form :is(.form-grid,.ats-form-grid){grid-template-columns:minmax(0,1fr)!important}body.crm-unified #main-content .premium-form .editor-section{padding:12px!important}body.crm-unified #main-content .premium-form-footer .form-completion{flex-basis:100%}body.crm-unified #main-content .premium-form :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),select:not([multiple]),textarea){font-size:16px!important}body.crm-unified .topbar .user-menu>.account-panel{max-height:calc(100dvh - 76px)}body.crm-workbooks .workbook-toolbar label{flex-wrap:wrap}body.crm-workbooks .workbook-toolbar input{width:100%}}
@media(pointer:coarse){body.crm-unified{--crm-control-height:44px}body.crm-unified #main-content :is(button,.button,.secondary),body.crm-unified #main-content .premium-form-footer :is(button,a),body.crm-unified .module-navigation a,body.crm-unified .account-menu-links>a{min-height:44px!important}}
@media(prefers-reduced-motion:reduce){body.crm-unified *,body.crm-workbooks *{scroll-behavior:auto!important}}

body.crm-workbooks #worksheet-tabs button.active{background:#e4f1ef!important;color:#164c52!important;border-color:#bdd8d5!important;box-shadow:inset 0 -2px #287e80!important}

body.crm-unified .module-nav-icon{width:20px;height:20px;flex-basis:20px}body.crm-unified .module-nav-icon svg{width:18px;height:18px}
