/* Phone-only foundation. Existing desktop/tablet cascade remains unchanged. */
@media (max-width:767px) {
 html[data-theme="light"] .app {
  --brand-bg:#FAF9F6;--brand-surface:#ffffff;--brand-surface-soft:#F3EDE4;
  --brand-input:#ffffff;--brand-gold:#684024;--brand-gold-hover:#302117;
  --brand-on-gold:#ffffff;--brand-gold-soft:#F3EDE4;--brand-text:#24211E;
  --brand-muted:#716A63;--brand-line:#E7E0D7;--brand-control-line:#9b8c7d;
 }
 html[data-theme="dark"] .app {
  --brand-bg:#191511;--brand-surface:#241e18;--brand-surface-soft:#30271f;
  --brand-input:#211a15;--brand-gold:#e4b779;--brand-gold-hover:#efc995;
  --brand-on-gold:#302117;--brand-gold-soft:#3d2d1f;--brand-text:#faf9f6;
  --brand-muted:#c7bdb1;--brand-line:#4c4034;--brand-control-line:#9e8b77;
 }
 html body .app.product-pages-shell .view {min-width:0;overflow-wrap:break-word;}
 html body .app.product-pages-shell .view :is(.primary,.secondary,.app-back) {
  min-height:44px;border-radius:10px!important;font-size:14px;line-height:1.35;
  padding:10px 14px;max-width:100%;white-space:normal;word-break:normal;
 }
 html body .app.product-pages-shell .view :is(.create-form-card,.workspace-card,.omni-board-card,.pages-settings-card,.crm-detail-card) {
  border-radius:14px!important;border-color:var(--brand-line)!important;
  box-shadow:0 2px 8px #30211708!important;
 }
 html body .app.product-pages-shell .view :is(input,select,textarea) {
  box-sizing:border-box;max-width:100%;min-width:0;font-size:16px;
  border-radius:10px!important;
 }
 html body .app.product-pages-shell .view :is(input:not([type=checkbox]):not([type=radio]),select) {min-height:44px;}
 html body .app.product-pages-shell .view :is(button,a,input,select,textarea):focus-visible {
  outline:2px solid var(--brand-gold);outline-offset:3px;
 }
 html body .app.product-pages-shell .view :is(h1,h2,h3) {overflow-wrap:break-word;}
 html body .app.product-pages-shell .view img {max-width:100%;}
}

/* COMPACT PHONE DEPLOY 20261104 */
/* Compact phone presentation only. No content removal, fixed content heights, or business behavior. */
@media (max-width:767px) {
 html body .app.product-pages-shell .topbar {min-height:52px!important;height:auto!important;padding:4px 14px!important;gap:8px!important;}
 html body .app.product-pages-shell .topbar #sidebarToggle {width:44px!important;height:44px!important;min-height:44px!important;padding:8px!important;border-radius:10px!important;}
 html body .app.product-pages-shell .topbar .product-crumb {font-size:12px!important;}
 html body .app.product-pages-shell #main {padding:14px!important;}
 html body .app.product-pages-shell .view :is(.product-head,.crm-head,.estimate-head,.omni-page-head,.pages-page-head,.create-page-topbar) {margin:0 0 12px!important;gap:8px!important;}
 html body .app.product-pages-shell .view :is(h1,.product-head h1) {font-size:23px!important;line-height:1.2!important;margin:0 0 6px!important;}
 html body .app.product-pages-shell .view :is(h2,.product-card h2) {font-size:17px!important;line-height:1.3!important;}
 html body .app.product-pages-shell .view :is(.product-sub,.phase20-heading p,.create-section-head p) {font-size:13px!important;line-height:1.45!important;margin:4px 0 8px!important;}
 html body .app.product-pages-shell .view :is(.product-eyebrow,.eyebrow) {font-size:10px!important;letter-spacing:1px!important;margin:0 0 6px!important;}
 html body .app.product-pages-shell .product-head {flex-direction:column!important;align-items:stretch!important;}
 html body .app.product-pages-shell .product-head>.product-actions {gap:8px!important;}
 html body .app.product-pages-shell .product-stats {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:0 0 12px!important;}
 html body .app.product-pages-shell .product-stats article {padding:0!important;min-height:0!important;}
 html body .app.product-pages-shell button.product-metric {padding:10px 12px!important;min-height:104px!important;}
 html body .app.product-pages-shell .product-stats strong {font-size:23px!important;line-height:1.25!important;margin:5px 0!important;overflow-wrap:anywhere;}
 html body .app.product-pages-shell .product-metric>span:first-child {font-size:12px!important;line-height:1.35!important;}
 html body .app.product-pages-shell .product-metric small {font-size:11px!important;line-height:1.35!important;}
 html body .app.product-pages-shell .product-hero {padding:14px!important;gap:8px!important;margin-bottom:12px!important;}
 html body .app.product-pages-shell .product-hero h2 {font-size:18px!important;margin:0 0 4px!important;}
 html body .app.product-pages-shell .product-hero p {font-size:12px!important;line-height:1.4!important;margin:4px 0!important;}
 html body .app.product-pages-shell .view :is(.product-card,.omni-board-card,.workspace-card,.create-form-card,.pages-settings-card,.project-hero-card) {margin-bottom:12px!important;}
 html body .app.product-pages-shell .view :is(.workspace-card,.create-form-card,.pages-settings-card,.project-hero-card) {padding:12px!important;}
 html body .app.product-pages-shell .view :is(.product-card,.omni-board-card)>header {padding:12px!important;gap:8px!important;}
 html body .app.product-pages-shell .product-card-body {padding:0 12px 12px!important;}
 html body .app.product-pages-shell .view :is(.product-empty,.omni-empty) {padding:12px!important;min-height:0!important;font-size:13px!important;line-height:1.45!important;}
 html body .app.product-pages-shell .view :is(.omni-work-row,.product-record) {padding:10px 12px!important;gap:8px!important;}
 html body .app.product-pages-shell .view :is(.crm-metrics,.project-summary,.omni-metrics) {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:0 0 12px!important;}
 html body .app.product-pages-shell .view :is(.crm-metrics,.project-summary,.omni-metrics)>:is(div,article) {padding:10px 12px!important;min-width:0;min-height:0!important;}
 html body .app.product-pages-shell .view :is(.crm-metrics,.project-summary,.omni-metrics) strong {font-size:21px!important;line-height:1.25!important;margin:4px 0!important;overflow-wrap:anywhere;}
 html body .app.product-pages-shell .view :is(.crm-toolbar,.estimate-toolbar,.project-tools) {padding:8px!important;gap:8px!important;margin-bottom:10px!important;}
 html body .app.product-pages-shell #customerList .crm-customer {padding:10px 12px!important;min-height:68px!important;gap:6px!important;}
 html body .app.product-pages-shell #dev29InvoiceList .dev29-invoice-row {padding:10px 12px!important;min-height:72px!important;gap:6px!important;}
 html body .app.product-pages-shell .view .create-form-grid {gap:10px!important;}
 html body .app.product-pages-shell .view .create-form-grid label {gap:4px!important;margin:0!important;}
 html body .app.product-pages-shell .view .create-section-head {margin-bottom:10px!important;gap:8px!important;}
 html body .app.product-pages-shell .view .app-back {margin-bottom:12px!important;}
 html body .app.product-pages-shell #project-workspace :is(.workspace-primary,.workspace-secondary,.workspace-actions) {gap:6px!important;margin:0 0 12px!important;}
 html body .app.product-pages-shell #project-workspace .workspace-primary button {min-height:44px!important;padding:8px!important;}
 html body .app.product-pages-shell .workspace-footer {margin-top:18px!important;padding:16px 0!important;}
 html body .app.product-pages-shell .workspace-footer :is(p,a) {font-size:12px!important;line-height:1.5!important;}
 html body .app.product-pages-shell .workspace-footer-top {gap:12px!important;}
 html body .app.product-pages-shell .workspace-footer-bottom {margin-top:12px!important;padding-top:12px!important;}
 html body .app.product-pages-shell #estimates.active .estimate-stats>div {padding:8px 10px!important;min-height:0!important;}
 html body .app.product-pages-shell #estimates.active .estimate-stats strong {font-size:19px!important;margin:3px 0!important;}
 html body .app.product-pages-shell #estimates.active #estimateList .estimate-row {padding:10px 12px!important;gap:4px 8px!important;min-height:0!important;}
 html body .app.product-pages-shell #estimates.active #estimateList .estimate-title {font-size:14px!important;line-height:1.3!important;}

 /* Second density pass: scoped to the six reviewed screens. */
 html body .app.product-pages-shell #invoices.active .crm-head h1 {font-size:23px!important;}
 html body .app.product-pages-shell #invoices.active .crm-metrics {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0!important;border:1px solid var(--brand-line);border-radius:12px;overflow:hidden;margin-bottom:12px!important;background:var(--brand-surface);}
 html body .app.product-pages-shell #invoices.active .crm-metrics>div {padding:9px 12px!important;border:0!important;border-radius:0!important;box-shadow:none!important;min-width:0;}
 html body .app.product-pages-shell #invoices.active .crm-metrics>div:nth-child(odd) {border-right:1px solid var(--brand-line)!important;}
 html body .app.product-pages-shell #invoices.active .crm-metrics>div:nth-child(n+3) {border-top:1px solid var(--brand-line)!important;}
 html body .app.product-pages-shell #invoices.active .crm-metrics strong {font-size:20px!important;line-height:1.3!important;margin:3px 0 0!important;overflow-wrap:anywhere;}
 html body .app.product-pages-shell #invoices.active #dev29InvoiceList .dev29-invoice-row {padding:10px 12px!important;gap:5px 10px!important;grid-template-columns:minmax(0,1fr) minmax(100px,.8fr)!important;align-items:start!important;}
 html body .app.product-pages-shell #invoices.active #dev29InvoiceList .dev29-invoice-row>div:first-child {grid-column:1;grid-row:1;min-width:0;}
 html body .app.product-pages-shell #invoices.active #dev29InvoiceList .pages-invoice-status {grid-column:2;grid-row:1;text-align:right;min-width:0;}
 html body .app.product-pages-shell #invoices.active #dev29InvoiceList .pages-record-date {grid-column:1;grid-row:2;align-self:center;font-size:12px!important;}
 html body .app.product-pages-shell #invoices.active #dev29InvoiceList .pages-invoice-total {grid-column:2;grid-row:2;text-align:right;min-width:0;}
 html body .app.product-pages-shell #invoices.active #dev29InvoiceList .pages-invoice-total>strong {font-size:16px!important;overflow-wrap:anywhere;}
 html body .app.product-pages-shell #invoices.active #dev29InvoiceList small {font-size:12px!important;line-height:1.35!important;margin:2px 0!important;}
 html body .app.product-pages-shell #invoices.active #dev29InvoiceList .pages-invoice-actions {grid-column:1/-1;grid-row:3;margin:0;}
 html body .app.product-pages-shell #invoices.active #dev29InvoiceList .pages-invoice-actions>summary {min-height:44px;display:flex;align-items:center;justify-content:flex-end;padding:4px 0;font-size:13px;}
 html body .app.product-pages-shell #invoices.active #dev29InvoiceList .pages-invoice-actions[open] .dev29-invoice-actions {position:static!important;flex-wrap:wrap;flex-direction:row!important;min-width:0!important;max-width:100%;gap:8px;padding:8px;}
 html body .app.product-pages-shell #estimates.active #estimateList .pages-estimate-row {padding:10px 12px!important;gap:4px 8px!important;}
 html body .app.product-pages-shell #estimates.active #estimateList .pages-record-title {font-size:14px!important;line-height:1.3!important;}
 html body .app.product-pages-shell #estimates.active #estimateList .dev2944-estimate-head>div:first-child {padding:0!important;margin:0!important;min-width:0;}
 html body .app.product-pages-shell #estimates.active #estimateList .pages-record-details>summary {min-height:44px!important;padding:4px 0!important;}
 html body .app.product-pages-shell #projects .project-tools {display:flex!important;flex-direction:column!important;align-items:stretch!important;padding:8px!important;gap:4px!important;}
 html body .app.product-pages-shell #projects .project-tools .project-search {width:100%!important;flex:0 0 auto!important;max-width:none!important;}
 html body .app.product-pages-shell #projects .filter-tabs {display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;max-width:100%;padding:0!important;gap:2px!important;}
 html body .app.product-pages-shell #projects .filter-tabs button {flex:0 0 auto;min-height:44px!important;padding:8px 10px!important;font-size:12px!important;}
 html body .app.product-pages-shell #projects .pages-jobs-layout {gap:12px!important;}
 html body .app.product-pages-shell #projects .pages-jobs-layout .project-cover {top:12px!important;right:12px!important;}
 html body .app.product-pages-shell #projects .pages-jobs-layout .project-body {padding:12px!important;gap:5px 10px!important;}
 html body .app.product-pages-shell #projects .pages-jobs-layout .project-body h3 {font-size:14px!important;line-height:1.35!important;margin:0 90px 0 0!important;}
 html body .app.product-pages-shell #projects .pages-jobs-layout .project-footer button {min-height:44px!important;padding:8px 10px!important;}
 html body .app.product-pages-shell #projects .pages-aside {padding:12px!important;margin-top:12px!important;}
 html body .app.product-pages-shell #projects .pages-aside h3 {font-size:14px!important;margin:0 0 6px!important;}
 html body .app.product-pages-shell #projects .pages-aside :is(p,li) {font-size:12px!important;line-height:1.45!important;margin:4px 0!important;}
 html body .app.product-pages-shell #projects .pages-aside ol {margin:6px 0!important;padding-left:20px!important;}
 html body .app.product-pages-shell #calendar .product-head {display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:start!important;gap:8px!important;}
 html body .app.product-pages-shell #calendar .product-head>button {min-height:44px!important;padding:8px 12px!important;}
 html body .app.product-pages-shell #calendar .product-record {display:flex!important;flex-direction:row!important;align-items:center!important;padding:10px 0!important;gap:8px!important;}
 html body .app.product-pages-shell #calendar .product-record>div {flex:1;min-width:0;}
 html body .app.product-pages-shell #calendar .product-record strong {font-size:14px!important;line-height:1.35!important;}
 html body .app.product-pages-shell #calendar .product-record small {font-size:12px!important;line-height:1.4!important;}
 html body .app.product-pages-shell #calendar .product-record>button {flex:0 0 auto!important;min-height:44px!important;max-width:85px;white-space:normal;font-size:12px!important;padding:6px!important;}
 html body .app.product-pages-shell #product-settings-page #appearanceSettings {padding:12px!important;margin:0 0 12px!important;border-radius:12px!important;}
 html body .app.product-pages-shell #product-settings-page #appearanceSettings h2 {font-size:16px!important;margin:0 0 4px!important;}
 html body .app.product-pages-shell #product-settings-page #appearanceSettings p {font-size:12px!important;line-height:1.4!important;margin:0 0 8px!important;}
 html body .app.product-pages-shell #product-settings-page #appearanceSettings [role=group] {display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:4px;padding:3px;border:1px solid var(--brand-line);border-radius:10px;}
 html body .app.product-pages-shell #product-settings-page #appearanceSettings button {min-height:44px!important;padding:6px!important;font-size:13px!important;line-height:1.3!important;min-width:0;}
 html body .app.product-pages-shell #product-settings-page .beta-settings-layout {gap:12px!important;}
 html body .app.product-pages-shell #product-settings-page .beta-settings-nav {gap:4px!important;padding:6px!important;border:1px solid var(--brand-line);border-radius:12px;background:var(--brand-surface);}
 html body .app.product-pages-shell #product-settings-page .beta-settings-nav button {min-height:44px!important;padding:8px 10px!important;font-size:13px!important;line-height:1.35!important;}
 html body .app.product-pages-shell #product-settings-page :is(#betaCompanyProfile,#betaPayments,#betaSubscription) {padding:12px!important;}
 html body .app.product-pages-shell #product-settings-page .beta-settings-content h2 {font-size:18px!important;}
 html body .app.product-pages-shell #product-settings-page .beta-settings-content h2+p {font-size:13px!important;line-height:1.45!important;margin-bottom:12px!important;}
 html body .app.product-pages-shell #product-settings-page #betaCompanyProfile .pages-settings-grid {gap:12px!important;}
 html body .app.product-pages-shell #product-settings-page .beta-company-logo {padding:10px!important;margin-bottom:12px!important;}
 html body .app.product-pages-shell #invoices.active #dev29InvoiceList .dev29-invoice-actions button {min-height:44px!important;padding:8px 10px!important;}
 /* Dense summaries: override legacy fixed minimums, keep full monetary values. */
 html body .app.product-pages-shell .view :is(.crm-metrics,.estimate-stats,.project-summary)>div {min-height:0!important;padding:7px 10px!important;}
 html body .app.product-pages-shell .view :is(.crm-metrics,.estimate-stats,.project-summary)>div>span {font-size:11px!important;line-height:1.25!important;margin:0!important;}
 html body .app.product-pages-shell .view :is(.crm-metrics,.estimate-stats,.project-summary)>div>strong {font-size:18px!important;line-height:1.2!important;letter-spacing:-.3px!important;margin:3px 0 0!important;font-variant-numeric:tabular-nums;}
 html body .app.product-pages-shell #invoices.active .crm-metrics>div {min-height:0!important;padding:7px 10px!important;}
 html body .app.product-pages-shell #invoices.active .crm-metrics>div>span {margin:0!important;line-height:1.25!important;}
 html body .app.product-pages-shell #invoices.active .crm-metrics>div>strong {font-size:18px!important;line-height:1.2!important;letter-spacing:-.3px!important;margin:3px 0 0!important;}
 html body .app.product-pages-shell #estimates.active .estimate-stats>div {min-height:0!important;padding:6px 10px!important;}
 html body .app.product-pages-shell #estimates.active .estimate-stats strong {font-size:18px!important;line-height:1.2!important;margin:2px 0 0!important;}
 html body .app.product-pages-shell #estimates.active .estimate-head {margin-bottom:10px!important;gap:8px!important;}
 html body .app.product-pages-shell #estimates.active .estimate-head h1 {font-size:23px!important;}
 html body .app.product-pages-shell .product-stats {gap:6px!important;}
 html body .app.product-pages-shell button.product-metric {min-height:0!important;padding:9px 10px!important;}
 html body .app.product-pages-shell .product-stats strong {font-size:19px!important;line-height:1.2!important;letter-spacing:-.3px!important;margin:3px 0!important;}
 html body .app.product-pages-shell .product-metric>span:first-child {font-size:11px!important;line-height:1.25!important;}
 html body .app.product-pages-shell .product-metric small {font-size:11px!important;line-height:1.25!important;}
 html body .app.product-pages-shell #invoices.active #dev29InvoiceList .dev29-invoice-row {gap:3px 8px!important;padding:9px 10px!important;}
 html body .app.product-pages-shell #invoices.active #dev29InvoiceList .dev29-package {font-size:10px!important;padding:3px 6px!important;margin:4px 0 0!important;line-height:1.2!important;}
 html body .app.product-pages-shell #invoices.active #dev29InvoiceList .pages-invoice-status>strong {padding:3px 6px!important;font-size:11px!important;line-height:1.3!important;}
 html body .app.product-pages-shell #invoices.active #dev29InvoiceList .pages-invoice-total>strong {font-size:15px!important;line-height:1.2!important;}
 html body .app.product-pages-shell #estimates.active #estimateList .pages-estimate-row {padding:9px 10px!important;gap:2px 8px!important;}
 html body .app.product-pages-shell #estimates.active #estimateList .pages-record-amount {font-size:15px!important;line-height:1.25!important;}
 html body .app.product-pages-shell #projects .project-tools {margin-bottom:10px!important;}
 html body .app.product-pages-shell #projects .pages-jobs-layout .project-meta strong {font-size:14px!important;}
 html body .app.product-pages-shell #calendar .product-card>header {padding:10px 12px!important;}
 html body .app.product-pages-shell #calendar .product-card-body {padding:0 12px 6px!important;}
 html body .app.product-pages-shell #product-settings-page .beta-settings-nav {gap:2px!important;padding:4px!important;}
 /* Compact record lists: shared information rows, no blank action-only row. */
 html body .app.product-pages-shell #invoices.active #dev29InvoiceList .dev29-invoice-row {grid-template-columns:minmax(0,1fr) minmax(100px,.7fr)!important;gap:2px 10px!important;padding:10px 12px!important;min-height:0!important;}
 html body .app.product-pages-shell #invoices.active #dev29InvoiceList .dev29-invoice-row>div:first-child {grid-column:1!important;grid-row:1/span 2!important;align-self:start!important;}
 html body .app.product-pages-shell #invoices.active #dev29InvoiceList .pages-invoice-status {grid-column:2!important;grid-row:1!important;}
 html body .app.product-pages-shell #invoices.active #dev29InvoiceList .pages-invoice-total {grid-column:2!important;grid-row:2!important;align-self:end!important;}
 html body .app.product-pages-shell #invoices.active #dev29InvoiceList .pages-record-date {grid-column:1!important;grid-row:3!important;align-self:center!important;}
 html body .app.product-pages-shell #invoices.active #dev29InvoiceList .pages-invoice-actions {grid-column:2!important;grid-row:3!important;align-self:center!important;min-width:0!important;}
 html body .app.product-pages-shell #invoices.active #dev29InvoiceList .pages-invoice-actions[open] {grid-column:1/-1!important;grid-row:4!important;}
 html body .app.product-pages-shell #invoices.active #dev29InvoiceList .dev29-invoice-row>div:first-child>strong {font-size:13px!important;line-height:1.3!important;}
 html body .app.product-pages-shell #invoices.active #dev29InvoiceList .dev29-invoice-row small {font-size:11px!important;line-height:1.3!important;margin:2px 0!important;}
 html body .app.product-pages-shell #invoices.active #dev29InvoiceList .pages-invoice-actions>summary {min-height:44px!important;padding:4px 0!important;}
 html body .app.product-pages-shell #estimates.active #estimateList .pages-estimate-row {grid-template-columns:minmax(0,1fr) minmax(90px,.6fr)!important;align-items:start!important;gap:2px 10px!important;padding:10px 12px!important;min-height:0!important;}
 html body .app.product-pages-shell #estimates.active #estimateList .dev2944-estimate-head>div:first-child {grid-column:1!important;grid-row:1/span 2!important;}
 html body .app.product-pages-shell #estimates.active #estimateList .dev2944-status {grid-column:2!important;grid-row:1!important;text-align:right!important;}
 html body .app.product-pages-shell #estimates.active #estimateList .pages-record-amount {grid-column:2!important;grid-row:2!important;align-self:end!important;text-align:right!important;}
 html body .app.product-pages-shell #estimates.active #estimateList .pages-record-date {grid-column:1!important;grid-row:3!important;align-self:center!important;font-size:11px!important;}
 html body .app.product-pages-shell #estimates.active #estimateList .pages-record-details {grid-column:2!important;grid-row:3!important;margin:0!important;padding:0!important;}
 html body .app.product-pages-shell #estimates.active #estimateList .pages-record-details[open] {grid-column:1/-1!important;grid-row:4!important;}
 html body .app.product-pages-shell #estimates.active #estimateList .pages-record-title {font-size:13px!important;line-height:1.3!important;margin:0 0 3px!important;}
 html body .app.product-pages-shell #estimates.active #estimateList .dev2944-estimate-head>div:first-child>strong:not(.pages-record-title),
 html body .app.product-pages-shell #estimates.active #estimateList .dev2944-estimate-head>div:first-child>span {font-size:11px!important;line-height:1.3!important;margin:2px 0!important;}
 html body .app.product-pages-shell #projects .pages-jobs-layout {margin-top:10px!important;}
 html body .app.product-pages-shell #projects .pages-jobs-layout .project-card {margin:0!important;min-height:0!important;}
 html body .app.product-pages-shell #projects .pages-jobs-layout .project-body {padding:10px 12px!important;gap:3px 8px!important;}
 html body .app.product-pages-shell #projects .pages-jobs-layout .project-body h3 {font-size:13px!important;line-height:1.3!important;}
 html body .app.product-pages-shell #projects .pages-jobs-layout .project-status {font-size:10px!important;padding:3px 6px!important;line-height:1.3!important;}
 html body .app.product-pages-shell #projects .pages-jobs-layout .project-customer {font-size:11px!important;line-height:1.3!important;}
 html body .app.product-pages-shell #projects .pages-jobs-layout .project-meta>div:nth-child(2) {gap:3px!important;flex-wrap:wrap;}
 html body .app.product-pages-shell #customers #customerList .crm-customer {grid-template-columns:minmax(0,1fr) auto!important;gap:3px 10px!important;padding:10px 12px!important;min-height:44px!important;}
 html body .app.product-pages-shell #customers #customerList .crm-customer-copy {grid-column:1!important;grid-row:1!important;}
 html body .app.product-pages-shell #customers #customerList .crm-customer-copy strong {font-size:13px!important;line-height:1.3!important;}
 html body .app.product-pages-shell #customers #customerList .crm-customer-copy>span {font-size:11px!important;line-height:1.3!important;margin:2px 0 0!important;}
 html body .app.product-pages-shell #customers #customerList :is(.pages-property,.pages-activity) {grid-column:1!important;font-size:11px!important;line-height:1.3!important;}
 html body .app.product-pages-shell #customers #customerList .pages-open {grid-column:2!important;grid-row:1/span 3!important;align-self:center!important;font-size:12px!important;}
 html body .app.product-pages-shell #calendar .product-record {padding:8px 0!important;gap:8px!important;min-height:44px!important;}
 html body .app.product-pages-shell .product-card-body .product-record {padding:8px 0!important;gap:8px!important;}
 html body .app.product-pages-shell .product-record :is(p,small) {font-size:11px!important;line-height:1.35!important;margin:3px 0!important;}
 html body .app.product-pages-shell #invoices.active #dev29InvoiceList .dev29-invoice-row>div {display:block!important;}
 html body .app.product-pages-shell #invoices.active #dev29InvoiceList .pages-invoice-status>strong {margin:0!important;}
 html body .app.product-pages-shell #estimates.active #estimateList .dev2944-estimate-head>div:first-child {display:block!important;}
 /* Estimate metadata: explicit non-overlapping tracks override legacy row placement. */
 html body .app.product-pages-shell #estimates.active #estimateList .pages-estimate-row {grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto auto!important;row-gap:4px!important;}
 html body .app.product-pages-shell #estimates.active #estimateList .pages-estimate-row>.dev2944-estimate-head>div:first-child {grid-column:1!important;grid-row:1/3!important;display:block!important;min-width:0!important;}
 html body .app.product-pages-shell #estimates.active #estimateList .pages-estimate-row>.dev2944-estimate-head>.dev2944-status {grid-column:2!important;grid-row:1!important;align-self:start!important;}
 html body .app.product-pages-shell #estimates.active #estimateList .pages-estimate-row>.pages-record-amount {grid-column:2!important;grid-row:2!important;align-self:end!important;}
 html body .app.product-pages-shell #estimates.active #estimateList .pages-estimate-row>.pages-record-date {grid-column:1!important;grid-row:3!important;align-self:center!important;}
 html body .app.product-pages-shell #estimates.active #estimateList .pages-estimate-row>.pages-record-details {grid-column:2!important;grid-row:3!important;align-self:center!important;}
 html body .app.product-pages-shell #estimates.active #estimateList .pages-estimate-row>.pages-record-details[open] {grid-column:1/-1!important;grid-row:4!important;}
 html body .app.product-pages-shell #estimates.active #estimateList .pages-estimate-row>.dev2944-estimate-head>div:first-child>:is(strong,span) {display:block!important;position:static!important;height:auto!important;min-height:0!important;}
 html body .app.product-pages-shell #estimates.active #estimateList .pages-estimate-row>.dev2944-estimate-head>div:first-child>.pages-record-title {line-height:1.35!important;margin:0 0 4px!important;}
}

/* Classic categorized footer, scoped to the shared legal footer. */
html body .app.product-pages-shell .workspace-legal-footer{margin:24px 24px 0!important;padding:24px 0 28px!important;border-top:1px solid var(--brand-line);background:transparent!important;}
html body .app.product-pages-shell .workspace-legal-footer .workspace-footer-top{display:grid!important;grid-template-columns:minmax(160px,1fr) 2fr;gap:32px!important;align-items:start!important;}
html body .app.product-pages-shell .workspace-legal-footer .footer-brand strong{font-size:18px!important;letter-spacing:-.4px;}
html body .app.product-pages-shell .workspace-legal-footer .footer-brand p{font-size:12px!important;margin:4px 0!important;line-height:1.5!important;}
html body .app.product-pages-shell .workspace-legal-footer nav{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px!important;border:0!important;background:transparent!important;}
html body .app.product-pages-shell .workspace-legal-footer .footer-link-group h2{font-size:12px!important;line-height:1.4!important;font-weight:650!important;color:var(--brand-text);margin:0 0 6px!important;}
html body .app.product-pages-shell .workspace-legal-footer nav a{display:flex!important;min-height:44px!important;padding:0!important;border:0!important;background:transparent!important;font-size:12px!important;line-height:1.4!important;font-weight:400!important;color:var(--brand-muted)!important;}
html body .app.product-pages-shell .workspace-legal-footer nav a:hover{color:var(--brand-gold)!important;}
html body .app.product-pages-shell .workspace-legal-footer .workspace-footer-bottom{display:block!important;text-align:center;border-top:1px solid var(--brand-line);margin-top:20px!important;padding-top:14px!important;}
html body .app.product-pages-shell .workspace-legal-footer .workspace-footer-bottom p{font-size:11px!important;line-height:1.5!important;margin:3px 0!important;color:var(--brand-muted);}
@media(max-width:767px){html body .app.product-pages-shell .workspace-legal-footer{margin:18px 14px 0!important;padding:18px 0 calc(94px + env(safe-area-inset-bottom))!important;}html body .app.product-pages-shell .workspace-legal-footer .workspace-footer-top{display:block!important;}html body .app.product-pages-shell .workspace-legal-footer nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px!important;margin-top:16px;}html body .app.product-pages-shell .workspace-legal-footer .workspace-footer-bottom{text-align:left;}}

@media(max-width:767px){
html body .app.product-pages-shell .workspace-legal-footer{margin-top:14px!important;padding-top:12px!important;}
html body .app.product-pages-shell .workspace-legal-footer .footer-brand strong{font-size:14px!important;}
html body .app.product-pages-shell .workspace-legal-footer .footer-brand p{font-size:11px!important;margin:2px 0!important;}
html body .app.product-pages-shell .workspace-legal-footer nav{grid-template-columns:1fr 1fr 1.25fr!important;gap:8px!important;margin-top:12px!important;}
html body .app.product-pages-shell .workspace-legal-footer .footer-link-group h2{font-size:11px!important;line-height:1.3!important;margin-bottom:2px!important;}
html body .app.product-pages-shell .workspace-legal-footer nav a{font-size:11px!important;line-height:1.35!important;min-height:44px!important;align-items:center!important;}
html body .app.product-pages-shell .workspace-legal-footer .workspace-footer-bottom{margin-top:8px!important;padding-top:8px!important;}
html body .app.product-pages-shell .workspace-legal-footer .workspace-footer-bottom p{font-size:10px!important;line-height:1.4!important;margin:2px 0!important;}
}

/* Keep text links visually close while retaining a 44px tap row. */
html body .app.product-pages-shell .workspace-legal-footer .footer-link-group{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:0!important;}
html body .app.product-pages-shell .workspace-legal-footer .footer-link-group h2{margin:0 0 2px!important;}
html body .app.product-pages-shell .workspace-legal-footer .footer-link-group a{margin:0!important;padding:0!important;min-height:32px!important;line-height:1.35!important;}
@media(pointer:coarse){html body .app.product-pages-shell .workspace-legal-footer .footer-link-group a{min-height:36px!important;}}

/* Dense text footer: 24px links with no inherited margins or coarse-pointer expansion. */
html body .app.product-pages-shell .workspace-legal-footer .footer-link-group a{height:auto!important;min-height:24px!important;padding:0!important;margin:0!important;line-height:1.25!important;}
html body .app.product-pages-shell .workspace-legal-footer .footer-link-group h2{margin:0 0 1px!important;line-height:1.25!important;}
html body .app.product-pages-shell .workspace-legal-footer nav{margin-top:8px!important;row-gap:4px!important;}
html body .app.product-pages-shell .workspace-legal-footer .workspace-footer-bottom{margin-top:6px!important;padding-top:6px!important;}
@media(max-width:767px){html body .app.product-pages-shell .workspace-legal-footer{padding-top:10px!important;}html body .app.product-pages-shell .workspace-legal-footer nav{margin-top:8px!important;}}

@media(max-width:767px){
html body .app.product-pages-shell[data-sidebar-mode=compact] #appSidebar{padding:8px!important;gap:8px!important;}
html body .app.product-pages-shell[data-sidebar-mode=compact] #appSidebar .classic-drawer-head{gap:6px!important;padding:0!important;margin:0!important;}
html body .app.product-pages-shell[data-sidebar-mode=compact] #appSidebar #sidebarClose{width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;border-radius:10px!important;}
html body .app.product-pages-shell[data-sidebar-mode=compact] #appSidebar .product-logo{margin:0!important;padding:4px 0!important;}
html body .app.product-pages-shell[data-sidebar-mode=compact] #appSidebar .product-logo img{width:38px!important;height:38px!important;object-fit:contain;}
html body .app.product-pages-shell[data-sidebar-mode=compact] #appSidebar .product-company{margin:0!important;padding:4px 0!important;border:0!important;min-height:0!important;}
html body .app.product-pages-shell[data-sidebar-mode=compact] #appSidebar .product-avatar{width:32px!important;height:32px!important;font-size:11px!important;border-radius:10px!important;}
html body .app.product-pages-shell[data-sidebar-mode=compact] #appSidebar #createBtn{min-height:66px!important;padding:6px 3px 25px!important;margin:0!important;box-shadow:none!important;border-radius:12px!important;}
html body .app.product-pages-shell[data-sidebar-mode=compact] #appSidebar #createBtn::after{font-size:25px!important;}
html body .app.product-pages-shell[data-sidebar-mode=compact] #appSidebar #createBtn::before{font-size:10px!important;line-height:1.15!important;bottom:7px!important;}
html body .app.product-pages-shell[data-sidebar-mode=compact] #appSidebar>nav{gap:2px!important;margin:0!important;padding:0!important;}
html body .app.product-pages-shell[data-sidebar-mode=compact] #appSidebar>nav .nav{min-height:54px!important;height:54px!important;padding:5px 2px!important;gap:3px!important;border-radius:10px!important;}
html body .app.product-pages-shell[data-sidebar-mode=compact] #appSidebar .classic-nav-icon svg{width:21px!important;height:21px!important;}
html body .app.product-pages-shell[data-sidebar-mode=compact] #appSidebar>nav .nav>span:last-of-type{font-size:10px!important;line-height:1.2!important;}
html body .app.product-pages-shell[data-sidebar-mode=compact] #appSidebar .sidebar-spacer{min-height:4px!important;flex:1 0 4px!important;}
html body .app.product-pages-shell[data-sidebar-mode=compact] #appSidebar>a.product-settings{min-height:36px!important;padding:6px!important;margin:0!important;font-size:0!important;}
html body .app.product-pages-shell[data-sidebar-mode=compact] #appSidebar>a.product-settings::after{content:'⚙︎'!important;font-family:Arial,sans-serif!important;font-size:23px!important;line-height:1!important;}
html body .app.product-pages-shell[data-sidebar-mode=compact] #appSidebar .profile{margin:0!important;padding:8px 0 0!important;}
html body .app.product-pages-shell[data-sidebar-mode=compact] #appSidebar .profile .avatar{width:30px!important;height:30px!important;font-size:11px!important;}
html body .app.product-pages-shell[data-sidebar-mode=compact] #appSidebar #authLogoutBtn{min-height:36px!important;height:36px!important;padding:4px!important;margin:0!important;border-radius:10px!important;}
html body .app.product-pages-shell[data-sidebar-mode=compact] #appSidebar #authLogoutBtn::after{content:'↪︎'!important;font-family:Arial,sans-serif!important;font-size:22px!important;line-height:1!important;}
}
