/* TUPIQ: quiet material contrast, stronger hierarchy, compact working surfaces. */
.workspace-page:not(.inbox-page) { --bg: #f5f3ef; --navy: #112d3b; --ink: #172f3c; --muted: #617079; --line: #e5e1d9; }
.workspace-page:not(.inbox-page) .premium-layout .sidebar { background: linear-gradient(165deg, #173b4a 0%, #0c2532 70%); border-inline-end: 1px solid #b7986052; }
.workspace-page:not(.inbox-page) .brand-logo-surface { box-shadow: 0 3px 12px #0002; border-radius: 9px; }
.workspace-page:not(.inbox-page) .sidebar .nav-link { border-radius: 7px; }
.workspace-page:not(.inbox-page) .sidebar .nav-link.active { border-color: #c5a56d3d; color: #f2dfba; background: linear-gradient(90deg,#c4a36c0a,#c4a36c20); box-shadow: inset -2px 0 #c4a36c; }
.workspace-page:not(.inbox-page) .sidebar-create { background: linear-gradient(120deg,#e0c48e,#c6a465); border-color: #e2c99a; border-radius: 7px; box-shadow: 0 3px 10px #0002; }
.workspace-page:not(.inbox-page) .premium-layout .topbar { background: #fffaf3a6; border-bottom-color: #e3ddcf; }
.workspace-page:not(.inbox-page) .page-intro h2 { font-weight: 600; letter-spacing: -.5px; }
.workspace-page:not(.inbox-page) .panel { border-color: #e2ddd3; box-shadow: 0 2px 4px #142b3603, 0 8px 22px #142b3604; border-radius: 12px; }
.workspace-page:not(.inbox-page) .panel-header { background: linear-gradient(100deg,#fff,#fcfaf6); border-radius: 12px 12px 0 0; border-bottom-color: #e9e3d8; }
.workspace-page:not(.inbox-page) .panel-header h3 { font-weight: 600; }
.workspace-page:not(.inbox-page) .btn { border-radius: 7px; }
.workspace-page:not(.inbox-page) .btn-primary { background: linear-gradient(115deg,#24495a,#102c3a); border-color: #1e4153; box-shadow: 0 3px 7px #132f4018; }
.workspace-page:not(.inbox-page) .btn-primary:hover { background: #24495a; }
.workspace-page:not(.inbox-page) .settings-hub { box-shadow: none; }
.workspace-page:not(.inbox-page) .settings-hub-group { border-color: #e2ddd3; box-shadow: 0 4px 14px #152f3e04; }
.workspace-page:not(.inbox-page) .settings-hub-group > .panel-header { background: transparent; border-bottom: 1px solid #ece5d9; }
.workspace-page:not(.inbox-page) .settings-row-symbol { color: #8b6c39; background: #f5efdf; border: 1px solid #ebe1ca; border-radius: 8px; }
.workspace-page:not(.inbox-page) .settings-row:hover { background: #fcfaf5; }
.workspace-page:not(.inbox-page) th { background: #f8f6f1; color: #67747c; }
.workspace-page:not(.inbox-page) tbody tr:hover td { background: #fbf8f1; }
.workspace-page:not(.inbox-page) .workspace-tab.active { border-bottom-color: #a98345; }
.workspace-page:not(.inbox-page) .workspace-search { border-color: #e5dfd5; border-radius: 7px; }
.workspace-page:not(.inbox-page) .tag { border-radius: 5px; }

/* A short editorial masthead instead of an oversized promotional banner. */
.compact-home.dense-home .home-intro { position: relative; overflow: hidden; padding: 18px 22px; min-height: 116px; margin-bottom: 14px; border: 1px solid #234756; border-radius: 12px; background: radial-gradient(ellipse at 0 0,#52717a55,transparent 62%),linear-gradient(110deg,#112c38,#193e4d); box-shadow: 0 6px 18px #102c3a0a; }
.compact-home.dense-home .home-intro::after { content: ''; position: absolute; pointer-events: none; inset: 0; border-top: 2px solid #c1a06a; opacity: .8; }
.compact-home.dense-home .home-intro h2 { color: #fff9ef; font-size: clamp(22px,2vw,29px); letter-spacing: -.6px; }
.compact-home.dense-home .home-intro p { color: #c4d1d6; font-size: 12px; }
.home-brand-caption { display: flex; align-items: center; gap: 9px; color: #dfc28d; font-size: 10px; margin-bottom: 4px; }
.home-brand-caption b { font: 600 10px/1.5 'Segoe UI',sans-serif; letter-spacing: 2px; }
.home-brand-caption i { height: 1px; width: 24px; background: #d0af75; }
.compact-home.dense-home .home-actions .btn-primary { color: #102e3e; background: linear-gradient(120deg,#e6cea3,#caab72); border-color: #d9bf8b; box-shadow: 0 3px 10px #0002; }
.compact-home.dense-home .home-actions .btn-outline-dark { color: #edf3f4; border-color: #ffffff32; background: #ffffff08; }
.compact-home.dense-home .home-actions .btn-outline-dark:hover { background: #ffffff16; }
.compact-home.dense-home .home-metrics { gap: 10px; border: 0; border-radius: 0; overflow: visible; background: none; }
.compact-home.dense-home .home-metrics .metric { grid-template-columns: minmax(0,1fr) auto; min-height: 80px; padding: 12px 14px; gap: 3px 8px; background: #fff; border: 1px solid #e3ded4; border-radius: 10px; box-shadow: 0 3px 8px #1b344305; }
.compact-home.dense-home .home-metrics .metric:last-child { background: #f3f8f4; border-color: #dbe7dd; }
.compact-home.dense-home .metric-top .ui-icon { display: block; width: 15px; height: 15px; flex-basis: 15px; color: #9c7b46; }
.compact-home.dense-home .metric-top { justify-content: flex-start; gap: 8px; }
.compact-home.dense-home .home-metrics .metric strong { font-size: 30px; letter-spacing: -.5px; }
.compact-home.dense-home .home-metrics .metric-note { font-size: 10px; }
.home-resource-bar { padding-inline: 2px; border-color: #ded7ca; }
.home-resource-bar a { color: #536670; }
.home-resource-bar a:hover { color: #96723b; }
.home-quota { margin: 12px 0; padding: 14px 16px 10px; background: #fff; border: 1px solid #e2ddd3; border-radius: 10px; }
.home-quota-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.home-quota-heading h3 { margin: 0; font-size: 15px; }
.home-quota-heading p { margin: 3px 0 0; color: #687b84; font-size: 11px; }
.home-quota-heading .text-link { display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; font-size: 11px; }
.home-quota-grid { display: grid; grid-template-columns: 1.15fr repeat(4,1fr); gap: 8px; }
.home-quota-grid > div { padding: 9px 10px; border-radius: 7px; background: #f6f6f2; min-width: 0; }
.home-quota-grid small { display: block; color: #617580; font-size: 10px; }
.home-quota-grid strong { display: block; margin-top: 3px; font: 600 24px/1.3 'Segoe UI',sans-serif; overflow-wrap: anywhere; }
.home-quota-grid .home-quota-remaining { background: #eaf4ee; color: #255e4c; border: 1px solid #d7e6dc; }
.home-quota-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 9px; font-size: 10px; color: #687b84; }
.home-quota-help { margin-top: 7px; font-size: 11px; color: #617580; }
.home-quota-help summary { cursor: pointer; color: #8a6b3c; }
.home-quota-help p { margin: 6px 0 0; line-height: 1.8; }
.home-quota-warning { margin: 7px 0 0; color: #92652f; font-size: 11px; }
@media (max-width: 760px) {
  .home-quota { padding: 12px; }
  .home-quota-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-quota-grid .home-quota-remaining { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
  .home-quota-heading { align-items: flex-start; }
}
.compact-home.dense-home .home-campaigns .panel-header { padding: 12px 16px; }
.compact-home.dense-home .home-campaigns .panel-header h3 { font-size: 16px; }
.compact-home.dense-home .home-campaigns td { padding: 8px 16px; }
.compact-home.dense-home .home-campaigns td:first-child { width: 55%; }
.campaign-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.campaign-identity-mark { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid #e7dcc4; color: #93703a; background: linear-gradient(135deg,#faf6ed,#f0e8d7); border-radius: 8px; }
.campaign-identity-mark .ui-icon { width: 16px; height: 16px; }
.campaign-identity-copy { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; min-width: 0; }
.compact-home.dense-home .campaign-identity-copy .table-link { font-size: 13px; min-height: 34px; display: inline-flex; align-items: center; }
.compact-home.dense-home .home-campaigns .campaign-identity-copy small { margin: 0; font-size: 10px; }
.compact-home.dense-home .home-campaigns td.numeric { font: 500 15px/1.5 'Segoe UI',sans-serif; }
.compact-home.dense-home .home-campaigns td.numeric > small { display: block; margin-inline-start: 0; margin-top: 2px; white-space: normal; font-size: 10px; font-weight: 400; line-height: 1.6; color: #896247; }
.campaign-list-results { gap: 3px; }
.campaign-list-results > span { display: flex; align-items: baseline; gap: 6px; }
.campaign-list-results > small { line-height: 1.7; }
.campaign-list-results > small b { display: inline; font-size: inherit; line-height: inherit; font-weight: 600; }
.home-account-bar { background: #efeee8; border-color: #e0dccf; border-radius: 8px; }
.home-account-bar a > strong { color: #725831; }
.home-account-bar + .settings-disclosure { margin-top: 12px; }
.campaign-workspace--compact .campaign-live-panel { border-top: 2px solid #b99a63; }
.campaign-workspace--compact .campaign-live-grid--primary > div { border-radius: 8px; }
.workspace-page:not(.inbox-page) .campaign-mini-stats > div { border-color: #e2ddd3; box-shadow: 0 3px 8px #17313d05; }
@media (max-width: 1100px) {
  .compact-home.dense-home .home-intro { flex-wrap: wrap; gap: 14px; }
}
@media (max-width: 760px) {
  .compact-home.dense-home .home-intro { padding: 16px; min-height: 0; }
  .compact-home.dense-home .home-metrics { gap: 8px; }
  .compact-home.dense-home .home-metrics .metric { padding: 10px; min-height: 76px; }
  .compact-home.dense-home .metric-top .ui-icon { display: none; }
  .compact-home.dense-home .home-metrics .metric strong { font-size: 25px; }
  .compact-home.dense-home .home-campaigns td:first-child { width: auto; }
  .campaign-identity { gap: 8px; }
  .campaign-identity-mark { display: none; }
  .campaign-identity-copy { display: block; }
  .compact-home.dense-home .home-campaigns .campaign-identity-copy small { display: block; }
}
@media (prefers-reduced-motion: no-preference) {
  .workspace-page:not(.inbox-page) .settings-row, .home-resource-bar a { transition: background-color .16s,color .16s; }
}

.sidebar-brand-row .brand { min-width: 0; }
.sidebar .brand .workspace-product-lockup { display: block; width: 176px; max-width: 100%; height: auto; }
.sidebar .brand-product b { font-size: 18px; letter-spacing: .8px; }
.auth-layout--focus .auth-brand-surface.auth-product-lockup { width: 260px; padding: 0; border: 0; background: transparent; }
.auth-layout--focus .auth-mobile-brand.auth-product-lockup { width: 218px; max-width: 100%; }
.brand-settings .logo-preview { display: grid; place-items: center; padding: 22px; }
.brand-settings .logo-preview img { display: block; width: min(316px, 100%); max-height: 180px; object-fit: contain; }
.invoice-sheet .invoice-brand img { display: block; width: min(188px, 42vw); max-height: 76px; object-fit: contain; }
