/* Business workspaces: screen-only presentation; document/PDF layouts are unchanged. */
@media screen {
body.cp-shell :is(.company-screen,#insurance-screen,#insurance-policy-screen,#compliance-reminders-screen,#money-hub-screen,#xero-purchases-screen,#portal-help-screen,#beta-feedback-screen,#beta-ticket-reply-screen,.portal-draft-screen){font-family:'DM Sans','Segoe UI',Arial,sans-serif;color:#18312d}
body.cp-shell :is(.company-screen,#insurance-screen,#insurance-policy-screen,#compliance-reminders-screen,#money-hub-screen,#xero-purchases-screen,#portal-help-screen,#beta-feedback-screen,#beta-ticket-reply-screen,.portal-draft-screen,.org-card,.profile-card) :is(p,span,small,b,strong,dt,dd,label){font-family:'DM Sans','Segoe UI',Arial,sans-serif!important}
body.cp-shell :is(.company-screen,#insurance-screen,#insurance-policy-screen,#compliance-reminders-screen,#money-hub-screen,#xero-purchases-screen,#portal-help-screen,#beta-feedback-screen,#beta-ticket-reply-screen,.portal-draft-screen) main{max-width:1440px!important;padding:20px 28px 40px!important}
body.cp-shell :is(.company-screen,#insurance-screen,#insurance-policy-screen,#compliance-reminders-screen,#money-hub-screen,#xero-purchases-screen,#portal-help-screen,.portal-draft-screen) h1{font-size:22px!important;margin:0 0 9px!important}
body.cp-shell :is(.company-screen,#insurance-screen,#insurance-policy-screen,#compliance-reminders-screen,#money-hub-screen,#xero-purchases-screen,#portal-help-screen) h2{font-size:15px!important;margin:0 0 8px!important}
body.cp-shell :is(.company-screen,#insurance-screen,#insurance-policy-screen,#compliance-reminders-screen,#money-hub-screen,#xero-purchases-screen,#portal-help-screen) :is(p,span,small){overflow-wrap:anywhere}
body.cp-shell :is(.company-screen,#insurance-screen,#insurance-policy-screen,#compliance-reminders-screen,#money-hub-screen,#xero-purchases-screen,#portal-help-screen) .certificate-title{margin:0 0 16px!important;padding:0!important;min-height:0!important;background:none!important;border:0!important}
body.cp-shell :is(.company-screen,#insurance-screen,#insurance-policy-screen,#compliance-reminders-screen,#money-hub-screen,#xero-purchases-screen,#portal-help-screen) :is(main>p,.certificate-title>span,[data-body]>p){font-size:12px!important;line-height:1.6!important;margin:7px 0 12px!important;color:#73828d}
body.cp-shell :is(.company-screen,#insurance-policy-screen,#xero-purchases-screen,.org-card,.profile-card) :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=hidden]){width:100%;max-width:100%!important;min-width:0!important;min-height:36px!important;height:36px;padding:7px 10px!important;border:1px solid #dce4e8!important;border-radius:4px!important;background:#fff!important;color:#24413e!important;font:400 13px/1.45 'DM Sans','Segoe UI',Arial,sans-serif!important;box-sizing:border-box}
body.cp-shell :is(.company-screen,#insurance-policy-screen,#xero-purchases-screen,.org-card,.profile-card) textarea{height:72px!important;min-height:72px!important;resize:vertical}
body.cp-shell :is(.company-screen,#insurance-policy-screen,#xero-purchases-screen,.org-card,.profile-card) input[type=file]{height:auto!important;min-height:36px!important;font-size:12px!important}
body.cp-shell :is(.company-screen,#insurance-policy-screen,#xero-purchases-screen,.org-card,.profile-card) label{min-width:0!important;gap:5px!important;font-size:12px!important;font-weight:500!important;line-height:1.5!important;color:#344f5a}
body.cp-shell :is(.company-card,.insurance-policy-card,.insurance-policy-saved,.insurance-add-panel,.help-section,.help-search,.help-ticket-list,.help-welcome-card,.beta-price-card,.beta-feedback-form,.beta-ticket-thread){border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:12px 0!important;margin:0 0 12px!important}
body.cp-shell :is(.company-screen,#insurance-screen,#insurance-policy-screen,#compliance-reminders-screen,#money-hub-screen,#xero-purchases-screen,#portal-help-screen,.portal-draft-screen) :is(button,a):focus-visible{outline:3px solid #80c9ab!important;outline-offset:2px}
body.cp-shell :is(.company-tabs,.company-toolbar,.insurance-add-panel,.xero-purchase-actions,.money-hub-tabs,.help-tabs){display:flex;flex-wrap:wrap;align-items:center;gap:7px!important;padding:0!important;margin:12px 0 15px!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important}
body.cp-shell :is(.company-screen,#insurance-screen,#insurance-policy-screen,#compliance-reminders-screen,#money-hub-screen,#xero-purchases-screen,#portal-help-screen,.org-card,.profile-card,.portal-draft-screen) button:not([data-office-tab]):not(.renewal-reminder-row){min-height:34px;padding:7px 11px;border-radius:4px!important;box-shadow:none!important;font:500 12px/1.45 'DM Sans','Segoe UI',Arial,sans-serif!important;white-space:normal}
body.cp-shell :is(.company-tabs,.help-tabs,.money-hub-tabs) button{border:0!important;border-bottom:2px solid transparent!important;background:transparent!important;color:#71818b!important;border-radius:0!important;padding:8px 10px!important}
body.cp-shell :is(.company-tabs [aria-selected=true],.help-tabs button.active,.money-hub-tabs button.active){border-bottom-color:#009f61!important;color:#008b55!important;background:#edf7f1!important}
/* Company identity, accreditations and original document previews. */
body.cp-shell .company-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px 18px!important}.cp-shell .company-fields label{align-content:start}
body.cp-shell .company-card footer{margin:14px 0 0!important;gap:9px!important}
body.cp-shell .company-toolbar label{flex:0 1 340px;min-width:0}.cp-shell .company-toolbar .company-check{flex:0 0 auto}
body.cp-shell #company-business-screen .company-grid{display:block!important;border-top:1px solid #dfe6e9}
body.cp-shell #company-business-screen [data-accreditation]{display:grid!important;grid-template-columns:minmax(140px,.65fr) minmax(300px,1.8fr) auto;gap:7px 18px!important;padding:12px 0!important;margin:0!important;border:0!important;border-bottom:1px solid #dfe6e9!important;border-radius:0!important;background:none!important;box-shadow:none!important}
body.cp-shell #company-business-screen .company-accreditation-heading{justify-content:flex-start;align-self:center;gap:8px}.cp-shell #company-business-screen .company-accreditation-heading h2{font-size:14px!important;margin:0!important}
body.cp-shell #company-business-screen .company-accreditation-heading small{font-size:10px!important;border-radius:3px!important;padding:2px 6px!important}
body.cp-shell #company-business-screen [data-accreditation]>p{grid-column:1;font-size:12px!important;margin:0!important;color:#71818b}
body.cp-shell #company-business-screen [data-accreditation] dl{grid-column:2;grid-row:1 / span 2;display:grid!important;grid-template-columns:75px minmax(0,1fr) 90px minmax(0,1fr)!important;align-self:center;gap:5px 9px!important;margin:0!important;font-size:12px!important;line-height:1.5}
body.cp-shell #company-business-screen [data-accreditation] :is(dt,dd){margin:0!important;min-width:0;overflow-wrap:anywhere}
body.cp-shell #company-business-screen [data-edit]{grid-column:3;grid-row:1 / span 2;align-self:center}
body.cp-shell #company-business-screen .company-accreditation-notes{grid-column:1 / -1;margin:0!important;font-size:12px!important}
body.cp-shell #company-business-screen .company-documents{grid-column:1 / -1;display:flex!important;flex-wrap:wrap;gap:8px!important;margin:3px 0 0!important}
body.cp-shell #company-business-screen .company-documents button{width:auto!important;max-width:360px;display:flex!important;align-items:center;gap:9px!important;padding:6px 9px!important;border:1px solid #e0e7ea!important;background:#fff!important}
body.cp-shell #company-business-screen .company-certificate-thumbnail{width:42px!important;height:54px!important;flex:0 0 42px!important;border-radius:2px!important}
body.cp-shell #company-business-screen .company-certificate-caption{font-size:12px!important}.cp-shell #company-business-screen .company-certificate-caption small{font-size:11px!important;margin-top:2px!important}
body.cp-shell #company-accreditation-editor .company-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}.cp-shell #company-accreditation-editor form>h2{margin-top:16px!important}
body.cp-shell #company-document-preview :is(iframe,img){display:block;margin:12px auto 0!important;max-width:100%!important}.cp-shell #company-document-preview iframe{height:70vh!important;min-height:320px;border:1px solid #dfe6e9}
/* Insurance registers retain categories, renewal states and document actions. */
body.cp-shell #insurance-screen .insurance-heading{min-height:0!important;margin:0 0 12px!important;padding:0!important;background:none!important;border:0!important}.cp-shell #insurance-screen .insurance-heading:before,.cp-shell #insurance-screen .insurance-heading:after{display:none!important}
body.cp-shell #insurance-screen .insurance-summary-strip{min-height:46px;padding:10px 13px!important;gap:10px 24px!important;border:1px solid #e1e7eb!important;border-radius:4px!important;background:#fff!important;font-size:12px!important;margin:10px 0 14px}
body.cp-shell #insurance-screen .insurance-categories{display:grid;gap:16px!important}
body.cp-shell #insurance-screen .insurance-category-card{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;margin:0!important;padding:0!important}
body.cp-shell #insurance-screen .insurance-category-card>summary{min-height:37px!important;padding:7px 0!important;gap:10px!important;border-bottom:1px solid #dce4e8!important}
body.cp-shell #insurance-screen .insurance-category-icon{width:25px!important;height:25px!important;flex-basis:25px!important;border-radius:3px!important;background:#eaf5ee!important}.cp-shell #insurance-screen .insurance-category-icon svg{width:17px!important;height:17px!important}
body.cp-shell #insurance-screen .insurance-category-copy b{font-size:14px!important}.cp-shell #insurance-screen .insurance-category-copy small{display:none!important}
body.cp-shell #insurance-screen .insurance-category-count{font-size:10px!important;border-radius:3px!important;padding:3px 6px!important}
body.cp-shell #insurance-screen .insurance-saved-grid{display:block!important;padding:0!important}
body.cp-shell #insurance-screen .insurance-saved-card{display:grid!important;grid-template-columns:minmax(200px,1fr) minmax(280px,1.2fr) auto;align-items:center;gap:6px 16px!important;border:0!important;border-bottom:1px solid #e1e7eb!important;border-radius:0!important;background:transparent!important;padding:11px 0!important;box-shadow:none!important}
body.cp-shell #insurance-screen .insurance-saved-card>header{padding:0!important;gap:9px!important;min-height:0!important;background:none!important;border:0!important}
body.cp-shell #insurance-screen .insurance-saved-card>header>i{width:26px!important;height:26px!important;flex-basis:26px!important;border-radius:3px!important}.cp-shell #insurance-screen .insurance-saved-card>header>i svg{width:17px!important;height:17px!important}
body.cp-shell #insurance-screen .insurance-saved-card h2{font-size:13px!important;margin:0 0 2px!important}.cp-shell #insurance-screen .insurance-saved-card p{font-size:12px!important;margin:0!important}
body.cp-shell #insurance-screen .insurance-saved-card dl{grid-column:2;grid-row:1;display:flex!important;flex-wrap:wrap;gap:10px 25px!important;margin:0!important;border:0!important;font-size:12px!important}.cp-shell #insurance-screen .insurance-saved-card dt{font-size:10px!important;margin:0 0 2px!important}.cp-shell #insurance-screen .insurance-saved-card dd{font-size:12px!important;margin:0!important}
body.cp-shell #insurance-screen .insurance-renewal-badge{grid-column:3;grid-row:1;justify-self:end;font-size:10px!important;line-height:1.45!important;border-radius:3px!important;padding:3px 6px!important;margin:0!important}
body.cp-shell #insurance-screen .insurance-saved-card footer{grid-column:1 / -1;justify-content:flex-start;gap:6px!important;margin:0 0 0 35px!important;padding:0!important;border:0!important}.cp-shell #insurance-screen .insurance-saved-card footer button{min-height:29px!important;padding:5px 8px!important;font-size:11px!important;background:#fff!important}
body.cp-shell #insurance-policy-screen .insurance-policy-card{display:block!important}
body.cp-shell #insurance-policy-form{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 18px!important}
body.cp-shell #insurance-policy-form :is(.insurance-policy-notes,.insurance-document-input,footer,#insurance-policy-message){grid-column:1 / -1}.cp-shell #insurance-policy-screen .insurance-document-links{display:flex;flex-wrap:wrap;gap:7px!important;margin:7px 0!important}
body.cp-shell #compliance-reminders-screen [data-items]{padding:0!important;border:0!important;background:none!important}.cp-shell #compliance-reminders-screen .renewal-reminder-row{min-height:44px!important;padding:9px 0!important;gap:16px!important;border-radius:0!important;border-bottom:1px solid #dfe6e9!important;background:transparent!important;font-size:12px!important}
body.cp-shell #compliance-reminders-screen .renewal-reminder-row b{font-size:12px!important;font-weight:550!important}.cp-shell #compliance-reminders-screen .renewal-reminder-row small{font-size:11px!important;margin-top:3px!important}.cp-shell #compliance-reminders-screen .renewal-reminder-row strong{font-size:12px!important}
/* Financial summaries and purchase queues keep real statuses and all actions. */
body.cp-shell #money-hub-screen :is(.invoice-summary,.money-summary){display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));padding:0!important;gap:0!important;border:1px solid #dfe6e9!important;border-radius:4px!important;background:#fff!important;box-shadow:none!important;margin:12px 0 18px!important}
body.cp-shell #money-hub-screen .invoice-summary>:is(article,div){display:flex!important;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:3px 10px;min-height:54px!important;padding:9px 13px!important;border:0!important;border-right:1px solid #e4e9ec!important;border-radius:0!important;background:none!important}.cp-shell #money-hub-screen .invoice-summary article p{font-size:10px!important;margin:0!important}.cp-shell #money-hub-screen .invoice-summary article span{flex-basis:100%}
body.cp-shell #money-hub-screen .invoice-summary :is(b,strong){font-size:20px!important;line-height:1.2!important;margin:0!important}.cp-shell #money-hub-screen .invoice-summary :is(span,small){font-size:11px!important;line-height:1.4!important;margin:0!important}
body.cp-shell #money-hub-screen .office-card:not(.invoice-summary){padding:0!important;border:0!important;background:none!important;box-shadow:none!important}.cp-shell #money-hub-screen :is(.clean-register-head,.programme-board-head){min-height:34px!important;padding:8px 0!important;border-bottom:1px solid #dfe6e9!important;background:none!important}.cp-shell #money-hub-screen .programme-board-head h3{font-size:14px!important}
body.cp-shell #money-hub-screen :is(.invoice-row,.expense-row,.money-job-row,.material-invoice-row){min-height:40px!important;padding:9px 0!important;border-bottom:1px solid #e0e6e9!important;border-radius:0!important;background:none!important;font-size:12px!important}.cp-shell #money-hub-screen :is(.invoice-row,.expense-row,.money-job-row,.material-invoice-row) small{font-size:11px!important}
body.cp-shell #xero-purchases-screen :is([data-settings-form],[data-review-form]) form{max-width:960px!important;padding:12px 0!important;margin:8px 0 20px!important;border:0!important;border-bottom:1px solid #dfe6e9!important;border-radius:0!important;background:none!important;gap:11px!important}
body.cp-shell #xero-purchases-screen .xero-purchase-table{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}.cp-shell #xero-purchases-screen table{font-size:12px!important;border-collapse:collapse}.cp-shell #xero-purchases-screen :is(th,td){padding:9px 8px!important;border-bottom:1px solid #dfe6e9!important;background:transparent!important;line-height:1.5}.cp-shell #xero-purchases-screen th{font-size:10px!important;font-weight:600!important;color:#71818b}.cp-shell #xero-purchases-screen td button{min-height:30px!important;padding:5px 8px!important;font-size:11px!important}
/* Help is a searchable working guide, rather than a grid of large promotional tiles. */
body.cp-shell #portal-help-screen .help-welcome-card{display:flex;align-items:center;gap:18px;padding:10px 12px!important;border:1px solid #e0e7eb!important;border-radius:4px!important;background:#fff!important}.cp-shell #portal-help-screen .help-welcome-card :is(p,h3){display:none!important}.cp-shell #portal-help-screen .help-welcome-card span{font-size:12px!important;margin:0!important;line-height:1.5!important}.cp-shell #portal-help-screen .help-welcome-card button{flex-shrink:0}
body.cp-shell #portal-help-screen .help-search{display:grid;grid-template-columns:minmax(220px,430px) 1fr;align-items:end;gap:4px 18px;padding:10px 0!important}.cp-shell #portal-help-screen .help-search label{grid-column:1;font-size:12px!important}.cp-shell #portal-help-screen .help-search input{grid-column:1;min-width:0;max-width:100%;min-height:36px!important}.cp-shell #portal-help-screen .help-search p{grid-column:2;grid-row:2;font-size:11px!important;margin:0!important;color:#7a8993}
body.cp-shell #portal-help-screen .help-guide-grid{display:block!important}.cp-shell #portal-help-screen .help-section{margin:0!important;padding:0!important;border-bottom:1px solid #dfe6e9!important}.cp-shell #portal-help-screen .help-section summary{display:flex!important;align-items:center;gap:13px;min-height:40px!important;padding:8px 0!important;cursor:pointer;list-style:disclosure-closed}.cp-shell #portal-help-screen .help-section h3{font-size:12px!important;font-weight:550!important;margin:0!important;line-height:1.5!important}.cp-shell #portal-help-screen .help-topic-label{min-width:125px;color:#7b8992;font-size:10px!important}.cp-shell #portal-help-screen .help-section ol{font-size:12px!important;line-height:1.7!important;gap:7px!important;padding:0 0 0 22px!important;margin:4px 0 12px!important}.cp-shell #portal-help-screen .help-destination{margin-bottom:10px}
body.cp-shell #portal-help-screen .help-ticket-list{border-top:1px solid #dfe6e9!important;margin-top:18px!important}.cp-shell #portal-help-screen .help-ticket-list article{padding:10px 0!important;font-size:12px!important}.cp-shell #portal-help-screen .help-ticket-list article span{font-size:12px!important;margin-top:6px!important}.cp-shell .help-ticket-status{border-radius:3px!important;font-size:10px!important;padding:3px 6px!important}.cp-shell .beta-price-card{font-size:12px!important;border-bottom:1px solid #dfe6e9!important}.cp-shell :is(.beta-feedback-form,.beta-ticket-thread){max-width:900px!important}
/* Settings and personal profile remain dialogs; no identity or document asset changes. */
body.cp-shell :is(.org-modal,.profile-modal){z-index:32000!important;padding:calc(var(--portal-topbar-height,64px) + 16px) 20px 20px!important;background:#10252655!important;backdrop-filter:blur(3px)}
body.cp-shell :is(.org-card,.profile-card){width:min(880px,100%)!important;max-height:calc(100dvh - var(--portal-topbar-height,64px) - 40px)!important;overflow:auto!important;padding:22px!important;border:1px solid #dfe6e9!important;border-radius:6px!important;background:#fff!important;box-shadow:0 15px 55px #10252615!important;min-width:0;box-sizing:border-box}
body.cp-shell :is(.org-card,.profile-card) h2{font-size:20px!important;margin:0 0 10px!important}.cp-shell :is(.org-card,.profile-card) h3{font-size:14px!important;margin:0 0 10px!important}.cp-shell :is(.org-card,.profile-card)>p{font-size:11px!important;margin:0 0 6px!important}.cp-shell :is(.org-card,.profile-card) form{padding:13px 0!important;margin:0!important;border-top:1px solid #e3e8eb!important;border-radius:0!important;background:none!important;box-shadow:none!important;gap:11px!important}.cp-shell :is(.org-card,.profile-card) small{font-size:11px!important;line-height:1.6!important}.cp-shell .seat-banner{min-height:44px!important;padding:9px 11px!important;border-radius:4px!important;background:#f4f8f6!important;box-shadow:none!important;font-size:12px!important}
/* Private drafts and global command/help panels. */
body.cp-shell .portal-draft-screen{z-index:33000!important}.cp-shell .portal-draft-screen main{max-width:1100px!important}.cp-shell .portal-draft-screen article{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;padding:10px 0!important;margin:0!important;border:0!important;border-bottom:1px solid #dfe6e9!important;border-radius:0!important;background:transparent!important}.cp-shell .portal-draft-screen article>div{flex:1 1 250px;min-width:0}.cp-shell .portal-draft-screen article h2{font-size:13px!important;line-height:1.5!important;margin:0 0 3px!important}.cp-shell .portal-draft-screen article small{font-size:11px!important}.cp-shell .portal-draft-screen article button{margin:0!important;min-height:32px!important;font-size:11px!important}
body.cp-shell .portal-search-card{border-radius:6px!important;box-shadow:0 12px 45px #1025261a!important}.cp-shell .portal-search-heading{padding:14px 18px 11px!important;gap:10px!important}.cp-shell .portal-search-heading h2{font-size:16px!important;margin:0 0 3px!important}.cp-shell .portal-search-heading p{font-size:11px!important}.cp-shell .portal-search-mark{width:28px!important;height:28px!important;border-radius:4px!important}.cp-shell .portal-search-field{margin:0 18px!important}.cp-shell .portal-search-card input{min-height:38px!important;padding:8px 11px!important;border-radius:4px!important;font-size:14px!important}.cp-shell .portal-search-status{margin:9px 18px 5px!important}.cp-shell .portal-search-card [data-search-result]{min-height:44px!important;padding:7px 10px!important;border-radius:3px!important;gap:10px!important}.cp-shell .portal-search-result-icon{width:25px!important;height:25px!important;border-radius:4px!important}.cp-shell .portal-search-result-copy b{font-size:12px!important}.cp-shell .portal-search-result-copy small{font-size:11px!important}.cp-shell .portal-search-card footer{padding:10px 18px!important}.cp-shell .portal-shortcut-card dl{padding:0 18px 10px!important}.cp-shell .portal-shortcut-card dl>div{min-height:40px!important;padding:8px 0!important}.cp-shell .portal-shortcut-card dt{font-size:12px!important}.cp-shell .portal-shortcut-note{padding:10px 18px!important;font-size:11px!important}
body.cp-shell :is(.company-screen,#insurance-screen,#insurance-policy-screen,#compliance-reminders-screen,#money-hub-screen,#xero-purchases-screen,#portal-help-screen,.org-card,.profile-card,.portal-draft-screen) button:not([type=submit]):not(.renewal-reminder-row):not([aria-selected=true]):not(.active){appearance:none;border:1px solid #dbe4e7;background:#fff;color:#267b59}
body.cp-shell #insurance-screen .insurance-hub{background:none!important}
body.cp-shell #money-hub-screen .invoice-summary>article{position:relative;min-height:54px!important;height:54px!important;padding:9px 13px!important;flex-wrap:nowrap!important}.cp-shell #money-hub-screen .invoice-summary>article>span{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;flex-basis:auto!important}.cp-shell #money-hub-screen .invoice-summary>article>p{font-size:10px!important;line-height:1.4!important}
body.cp-shell :is(.org-card,.profile-card) p{font:400 12px/1.6 'DM Sans','Segoe UI',Arial,sans-serif!important;letter-spacing:0!important;text-transform:none!important;color:#73828d!important}.cp-shell :is(.org-card,.profile-card)>p:first-of-type{font-size:10px!important;font-weight:600!important;letter-spacing:.08em!important;color:#009f61!important}.cp-shell :is(.org-card,.profile-card) .portal-form-autosave p{font-size:11px!important;color:#345c4c!important}
body.cp-shell #portal-drafts-screen article{padding:6px 0!important}.cp-shell #portal-drafts-screen article>div{display:flex;align-items:center;gap:12px}.cp-shell #portal-drafts-screen article h2{margin:0!important}.cp-shell #portal-drafts-screen article small{white-space:nowrap}
@media(max-width:600px){body.cp-shell #money-hub-screen section.invoice-summary{grid-template-columns:minmax(0,1fr)!important}body.cp-shell #money-hub-screen .invoice-summary>article{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;min-height:50px!important;height:50px!important;border-right:0!important;border-bottom:1px solid #e4e9ec!important}.cp-shell #money-hub-screen .invoice-summary>article>p{font-size:11px!important;letter-spacing:0!important;word-break:normal!important;overflow-wrap:normal!important}.cp-shell #money-hub-screen .invoice-summary>article:last-child{border-bottom:0!important}body.cp-shell #money-hub-screen .invoice-register:has(#directors-job-list){max-width:100%;overflow-x:auto!important;overscroll-behavior-inline:contain}body.cp-shell #money-hub-screen .invoice-register:has(#directors-job-list)>:is(.programme-board-head,.clean-register-head,#directors-job-list){min-width:600px!important}.cp-shell #money-hub-screen #directors-job-list .invoice-row{display:grid!important;grid-template-columns:minmax(180px,1.4fr) repeat(3,minmax(100px,1fr))!important;gap:10px!important}.cp-shell #money-hub-screen .invoice-register:has(#directors-job-list)>.clean-register-head{display:grid!important;grid-template-columns:minmax(180px,1.4fr) repeat(3,minmax(100px,1fr))!important;gap:10px!important}body.cp-shell #insurance-screen .insurance-category-card>summary{display:flex!important;flex-wrap:nowrap!important;gap:8px!important}.cp-shell #insurance-screen .insurance-category-copy{flex:1;min-width:0}.cp-shell #insurance-screen .insurance-category-count{white-space:nowrap;flex:0 0 auto}.cp-shell #insurance-screen .insurance-chevron{flex:0 0 10px}body.cp-shell #portal-help-screen .help-tabs{max-width:100%;flex-wrap:nowrap!important;overflow-x:auto!important;gap:4px!important;padding-bottom:3px!important}.cp-shell #portal-help-screen .help-tabs button{flex:0 0 auto;white-space:nowrap!important}}
@media(max-width:1100px){body.cp-shell .company-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.cp-shell #insurance-screen .insurance-saved-card{grid-template-columns:minmax(160px,1fr) minmax(200px,1fr)}body.cp-shell #insurance-screen .insurance-renewal-badge{grid-column:1 / -1;grid-row:auto;justify-self:start;margin-left:35px!important}body.cp-shell #company-business-screen [data-accreditation]{grid-template-columns:minmax(140px,.8fr) minmax(260px,1.4fr)}body.cp-shell #company-business-screen [data-edit]{grid-column:1;grid-row:auto;justify-self:start}body.cp-shell #money-hub-screen .invoice-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){body.cp-shell :is(.company-screen,#insurance-screen,#insurance-policy-screen,#compliance-reminders-screen,#money-hub-screen,#xero-purchases-screen,#portal-help-screen,#beta-feedback-screen,#beta-ticket-reply-screen,.portal-draft-screen) main{padding:17px 14px 35px!important}body.cp-shell :is(.company-screen,#insurance-policy-screen,#xero-purchases-screen,.org-card,.profile-card) :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=hidden]){height:auto;min-height:44px!important;font-size:16px!important;padding:9px 10px!important}body.cp-shell :is(.company-screen,#insurance-screen,#insurance-policy-screen,#compliance-reminders-screen,#money-hub-screen,#xero-purchases-screen,#portal-help-screen,.org-card,.profile-card,.portal-draft-screen) button:not([data-office-tab]):not(.renewal-reminder-row){min-height:44px;padding:9px 10px}body.cp-shell .company-fields,body.cp-shell #company-accreditation-editor .company-fields,body.cp-shell #insurance-policy-form,.cp-shell .xero-purchase-fields{grid-template-columns:minmax(0,1fr)!important}body.cp-shell #company-business-screen [data-accreditation]{display:block!important;padding:12px 0!important}body.cp-shell #company-business-screen [data-accreditation] dl{grid-template-columns:90px minmax(0,1fr)!important;margin:8px 0!important}body.cp-shell #company-business-screen .company-documents button{width:100%!important;max-width:none}.cp-shell #company-business-screen .company-certificate-thumbnail{width:34px!important;height:44px!important;flex-basis:34px!important}body.cp-shell #insurance-screen .insurance-saved-card{grid-template-columns:minmax(0,1fr)!important;gap:7px!important}body.cp-shell #insurance-screen .insurance-saved-card dl{grid-column:1;grid-row:auto;margin-left:35px!important;gap:8px 20px!important}body.cp-shell #insurance-screen .insurance-renewal-badge{grid-column:1;grid-row:auto}body.cp-shell #insurance-screen .insurance-saved-card footer{margin-left:0!important;gap:6px!important}.cp-shell #insurance-screen .insurance-saved-card footer button{min-height:44px!important;font-size:11px!important}.cp-shell #compliance-reminders-screen .renewal-reminder-row{flex-direction:row!important;align-items:center!important;min-height:44px!important;gap:10px!important}.cp-shell #compliance-reminders-screen .renewal-reminder-row>span:last-child{flex:0 0 90px;text-align:right}.cp-shell #portal-help-screen .help-welcome-card{display:block!important;padding:10px!important}.cp-shell #portal-help-screen .help-welcome-card button{margin-top:8px!important;width:auto!important}.cp-shell #portal-help-screen .help-search{display:block!important}.cp-shell #portal-help-screen .help-search p{margin-top:6px!important}.cp-shell #portal-help-screen .help-section summary{display:block!important;padding:10px 0!important;min-height:44px!important}.cp-shell #portal-help-screen .help-topic-label{display:block;margin-bottom:2px}.cp-shell #portal-help-screen .help-section h3{font-size:12px!important}.cp-shell :is(.org-modal,.profile-modal){padding:calc(var(--portal-topbar-height,60px) + 8px) 10px 10px!important}.cp-shell :is(.org-card,.profile-card){padding:16px!important;max-height:calc(100dvh - var(--portal-topbar-height,60px) - 20px)!important}.cp-shell .portal-draft-screen article{display:block!important;padding:10px 0!important}.cp-shell .portal-draft-screen article button{min-height:40px!important;margin:7px 5px 0 0!important}.cp-shell #portal-drafts-screen article>div{display:block!important}.cp-shell #portal-drafts-screen article h2{margin:0 0 4px!important}.cp-shell .portal-search-heading{padding:13px 14px 10px!important}.cp-shell .portal-search-field{margin:0 14px!important}.cp-shell .portal-search-card input{min-height:44px!important;font-size:16px!important}.cp-shell .portal-shortcut-card dl{padding:0 14px 9px!important}.cp-shell .portal-shortcut-card dl>div{min-height:44px!important;gap:8px}.cp-shell .portal-shortcut-card dd{flex-wrap:wrap;justify-content:flex-end}.cp-shell .portal-search-card footer{padding:10px 14px!important}.cp-shell .portal-search-result-meta>kbd{display:none!important}}
@media(max-width:600px){body.cp-shell #insurance-screen .insurance-category-card>summary,body.cp-shell #xero-purchases-screen .xero-purchase-table td button,body.cp-shell .portal-draft-screen article button{min-height:44px!important}}
body.cp-shell :is(.company-screen,#insurance-screen,#insurance-policy-screen,#compliance-reminders-screen,#money-hub-screen,#xero-purchases-screen,#portal-help-screen,#beta-feedback-screen,#beta-ticket-reply-screen,.portal-draft-screen,.org-card,.profile-card)[hidden],body.cp-shell :is(.company-screen,#insurance-screen,#insurance-policy-screen,#compliance-reminders-screen,#money-hub-screen,#xero-purchases-screen,#portal-help-screen,#beta-feedback-screen,#beta-ticket-reply-screen,.portal-draft-screen,.org-card,.profile-card) [hidden]{display:none!important}
body.cp-shell :is(.company-screen,#insurance-policy-screen,#xero-purchases-screen,.org-card,.profile-card) :is(input,textarea)[readonly]{background:#f3f5f7!important;color:#74838d!important}body.cp-shell :is(.company-screen,#insurance-policy-screen,#xero-purchases-screen,.org-card,.profile-card) :is(input,textarea,select,button):disabled{opacity:.6;cursor:not-allowed}

@media(max-width:600px){body.cp-shell #portal-drafts-screen article:has([data-portal-draft-open]){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px!important;padding:10px 0!important}body.cp-shell #portal-drafts-screen article:has([data-portal-draft-open])>div{grid-column:1 / -1}body.cp-shell #portal-drafts-screen article:has([data-portal-draft-open])>button{width:100%!important;margin:0!important;padding:7px 5px!important;min-height:44px!important}}

/* Retain native visibility even when dense document rows use flex/grid. */
body.cp-shell :is(#company-business-screen,.cp-business-page,.company-screen,.org-card,.profile-card,.portal-draft-screen)[class][hidden],body.cp-shell :is(#company-business-screen,.cp-business-page,.company-screen,.org-card,.profile-card,.portal-draft-screen)[class] [hidden]{display:none!important}
/* Platform administration follows the same dense register and summary style. */
body.cp-shell :is(#platform-admin-screen,#platform-ticket-screen)>main{max-width:1200px!important;padding:16px 18px 32px!important}
body.cp-shell :is(#platform-admin-screen,#platform-ticket-screen) :is(h1,h2,h3,p,label,button,span,small,input,select,textarea){font-family:'DM Sans','Segoe UI',Arial,sans-serif!important}
body.cp-shell :is(#platform-admin-screen,#platform-ticket-screen) h1{font-size:22px!important;line-height:1.3!important}
body.cp-shell #platform-admin-screen .platform-admin-stats{gap:0!important;margin:0 0 16px!important;border:1px solid #dfe6ea;border-radius:4px;overflow:hidden;background:#fff}
body.cp-shell #platform-admin-screen .platform-admin-stats>article{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'label number' 'caption number';align-content:center;align-items:center;gap:2px 10px;min-height:54px;padding:7px 12px!important;border:0;border-right:1px solid #e3e9ec;border-radius:0!important;box-shadow:none!important}
body.cp-shell #platform-admin-screen .platform-admin-stats>article:last-child{border-right:0}
body.cp-shell #platform-admin-screen .platform-admin-stats p{grid-area:label;color:#425b66;font-size:11px!important;font-weight:500!important;letter-spacing:0!important;line-height:1.4}
body.cp-shell #platform-admin-screen .platform-admin-stats b{grid-area:number;font-size:22px!important;line-height:1!important;margin:0!important}
body.cp-shell #platform-admin-screen .platform-admin-stats span{grid-area:caption;font-size:10px!important;line-height:1.4;color:#7a8992}
body.cp-shell #platform-admin-screen :is(.platform-company-list,.platform-beta-tickets){padding:10px 12px!important;margin-bottom:12px!important;border-radius:4px!important;box-shadow:none!important}
body.cp-shell #platform-admin-screen .platform-company-head{padding:8px 7px!important;font-size:10px!important;letter-spacing:.03em}
body.cp-shell #platform-admin-screen .platform-company-rows article{padding:8px 7px!important;min-height:40px;gap:10px}
body.cp-shell #platform-admin-screen .platform-status{border-radius:3px!important;padding:3px 6px!important}
body.cp-shell #platform-admin-screen .platform-beta-tickets article{padding:9px 0!important;gap:10px}
body.cp-shell #platform-admin-screen button{min-height:32px;padding:6px 9px;border-radius:4px!important;font-size:12px!important}
body.cp-shell #platform-ticket-screen :is(.platform-ticket-original,.platform-ticket-form){padding:12px!important;border-radius:4px!important;box-shadow:none!important;margin:0 0 12px!important;gap:9px!important}
body.cp-shell #platform-ticket-screen :is(input,select,textarea){font-size:13px!important;border-radius:4px!important;padding:8px 10px!important;min-height:36px!important}
@media(max-width:600px){body.cp-shell #platform-admin-screen .platform-admin-stats{grid-template-columns:minmax(0,1fr)!important}body.cp-shell #platform-admin-screen .platform-admin-stats>article{min-height:50px;border-right:0;border-bottom:1px solid #e3e9ec}body.cp-shell #platform-admin-screen .platform-admin-stats>article:last-child{border-bottom:0}body.cp-shell #platform-admin-screen .platform-company-rows article{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}body.cp-shell #platform-admin-screen button{min-height:44px!important}body.cp-shell #platform-ticket-screen :is(input,select,textarea){font-size:16px!important;min-height:44px!important}}
body.cp-shell :is(#platform-admin-screen,#platform-ticket-screen)[hidden],body.cp-shell :is(#platform-admin-screen,#platform-ticket-screen)[id] [hidden]{display:none!important}
/* Keep the platform register compact while preserving every data column. */
body.cp-shell #platform-admin-screen .certificate-title{margin-bottom:12px!important}
body.cp-shell #platform-admin-screen .platform-company-list{padding:0!important}
body.cp-shell #platform-admin-screen .platform-register-heading{padding:9px 10px!important;gap:8px!important;align-items:center!important}
body.cp-shell #platform-admin-screen .platform-register-heading h3{font-size:14px!important;margin:0!important}
body.cp-shell #platform-admin-screen .platform-company-head,body.cp-shell #platform-admin-screen .platform-company-rows>.platform-company-row{grid-template-columns:var(--platform-company-columns);gap:6px 10px!important;padding:7px 10px!important}
body.cp-shell #platform-admin-screen .platform-company-actions>.platform-action{min-height:28px;padding:5px 7px!important;font-size:11px!important;line-height:1.35!important}
body.cp-shell #platform-admin-screen .platform-company-rows>.platform-company-row>.platform-members{margin-top:0;padding-top:2px}
body.cp-shell #platform-admin-screen .platform-member-name,body.cp-shell #platform-admin-screen .platform-member-head{font-family:'DM Sans','Segoe UI',Arial,sans-serif!important}
body.cp-shell #platform-admin-screen .platform-members .platform-member-row{min-height:42px!important;gap:6px 12px;padding:5px 8px!important;margin:0!important;border-radius:0!important;box-shadow:none!important}
@media(max-width:1200px){body.cp-shell #platform-admin-screen .platform-company-head{display:none!important}body.cp-shell #platform-admin-screen .platform-company-rows>.platform-company-row{grid-template-columns:repeat(5,minmax(0,1fr))!important}}
@media(max-width:900px){body.cp-shell #platform-admin-screen button,body.cp-shell #platform-admin-screen .platform-company-actions>.platform-action,body.cp-shell #platform-admin-screen .platform-members>summary{min-height:44px!important}body.cp-shell #platform-admin-screen .platform-company-actions>.platform-action{padding:7px!important}body.cp-shell #platform-admin-screen .platform-members .platform-member-row{min-height:54px!important}}
@media(max-width:800px){body.cp-shell #platform-admin-screen .platform-company-rows>.platform-company-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:8px 10px!important;gap:8px 12px!important}body.cp-shell #platform-admin-screen .platform-members .platform-member-row{padding:8px 0!important;gap:4px 9px}body.cp-shell #platform-admin-screen .platform-member-actions>.platform-action{padding:7px 6px!important}body.cp-shell #platform-admin-screen .platform-register-heading{align-items:flex-start!important}}
}
/* Owner engineer account actions share the existing Company settings list. */
.engineer-account-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0}
.engineer-account-actions>p{width:100%;font-size:13px;line-height:1.5;color:#657580}
.engineer-account-actions>button,.company-engineer-access-dialog button{min-height:44px;padding:9px 13px;border:1px solid #cbdad5;border-radius:5px;background:#fff;color:#167149;font:600 13px/1.4 Arial,sans-serif;cursor:pointer}
.engineer-remove-access{color:#a52c23!important;border-color:#e2b9b4!important;background:#fff!important}
[data-owner-engineer-accounts] .engineer-account-state{flex:none;align-self:center;padding:4px 8px;border-radius:4px;background:#eaf5ef;color:#26724e;font-size:11px;font-weight:650;letter-spacing:normal;white-space:nowrap}
[data-owner-engineer-accounts] .engineer-account-state[data-state=suspended]{background:#fff1d9;color:#805719}
[data-owner-engineer-accounts] .engineer-account-state[data-state=removed]{background:#f2eeee;color:#6e5353}
[data-owner-engineer-accounts] [data-engineer-access]>summary{display:flex;align-items:center;gap:10px}
[data-owner-engineer-accounts] .engineer-access-identity{flex:1;min-width:0;overflow-wrap:anywhere}
[data-owner-engineer-accounts] [data-engineer-account-status]{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
[data-owner-engineer-accounts] .inactive-engineer-accounts[hidden]{display:none!important}
.company-engineer-access-dialog{box-sizing:border-box;width:min(520px,calc(100vw - 32px));max-height:85dvh;overflow:auto;margin:auto;padding:24px;border:1px solid #cfd9dd;border-radius:9px;background:#fff;color:#183333;font:14px/1.6 Arial,sans-serif;box-shadow:0 20px 70px #10252630}
.company-engineer-access-dialog::backdrop{background:#10252688}
.company-engineer-access-dialog h2{margin:0 0 16px;font-size:21px;line-height:1.3}
.company-engineer-access-dialog p{overflow-wrap:anywhere}
.company-engineer-access-dialog footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:20px}
.company-engineer-access-dialog [data-access-action-status]{font-size:13px;color:#83521d}
.company-engineer-access-dialog [disabled]{opacity:.55;cursor:default}
@media(max-width:600px){[data-owner-engineer-accounts] [data-engineer-access]>summary{flex-wrap:wrap}.company-engineer-access-dialog{padding:20px}.engineer-account-actions>button{flex:1 1 140px}}
