/* GranCapital material foundation. Load after the shared components and calendar. */
:root{
  --bg:#0b0b0c;
  --paper:#141415;
  --dark:#0d0d0e;
  --input:#1b1b1d;
  --ink:#eeeef0;
  --muted:#a6a6ad;
  --surface-1:#141415;
  --surface-2:#1b1b1d;
  --surface-3:#222224;
  --brand-gold:#cfb573;
  --gold:var(--brand-gold);
  --gold-light:#cfb57314;
  --glass-bg:rgba(14,14,15,.88);
  --glass-panel:rgba(24,24,26,.82);
  --glass-control:rgba(255,255,255,.025);
  --glass-border:rgba(255,255,255,.11);
  --glass-seam:rgba(255,255,255,.055);
  --glass-shadow:inset 0 1px 0 var(--glass-seam),0 10px 32px rgba(0,0,0,.22);
  --glass-light:linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.006) 58%);
  --line:var(--glass-border);
  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:20px;
  --space-5:32px;
  --radius-control:7px;
  --radius-panel:12px;
  --control-inset:7px;
  color-scheme:dark;
}

body{
  background:radial-gradient(ellipse at 76% -28%,rgba(207,181,115,.025),transparent 66%),radial-gradient(ellipse at 12% -30%,rgba(134,159,174,.022),transparent 64%),var(--bg);
}

/* Navigation filters its own material; forms remain in the viewport coordinate space. */
.sidebar,.topbar{
  background:var(--glass-light),var(--glass-bg);
  border-color:var(--glass-border);
  box-shadow:inset 0 1px 0 var(--glass-seam);
  backdrop-filter:blur(14px) saturate(108%);
  -webkit-backdrop-filter:blur(14px) saturate(108%);
}
.sidebar{color:#aaaab1}
.nav-item.active{
  background:linear-gradient(145deg,rgba(207,181,115,.065),rgba(207,181,115,.025));
  border-color:#cfb5732b;
  color:#dfce9e;
  box-shadow:inset 0 1px 0 #ffffff04;
}
.nav-item.active>.icon{color:var(--brand-gold)}
.brand-mark{
  padding:3px;
  border-color:#cfb57332;
  border-radius:var(--radius-control);
  background:#080808;
  box-shadow:inset 0 1px 0 #ffffff04;
  overflow:hidden;
}
.brand-mark>img{display:block;width:100%;height:100%;object-fit:contain}
.sidebar-brand .brand-mark,.login-story .brand-mark{width:36px;height:36px}

/* The seam conveys glass without filtering ancestors of fixed date/selection popups. */
.modal-backdrop{
  background:rgba(0,0,0,.62);
  backdrop-filter:blur(10px) saturate(106%);
  -webkit-backdrop-filter:blur(10px) saturate(106%);
}
.modal,.task-dossier-modal{
  background:var(--glass-light),rgba(20,20,21,.94);
  border-color:var(--glass-border);
  border-radius:var(--radius-panel);
  box-shadow:inset 0 1px 0 var(--glass-seam),0 24px 70px #0006;
}
.task-dossier-modal,.client-details-panel{
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.modal-footer,.task-dossier-modal .modal-footer{
  background:var(--glass-light),rgba(20,20,21,.94);
  border-color:var(--glass-border);
}
.dossier-navigation-row{
  background:var(--glass-light),rgba(20,20,21,.9);
  border-color:#ffffff12;
  box-shadow:inset 0 1px 0 #ffffff03;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.dossier-tab-item,.dossier-tab-overflow>.dossier-more-tab,.modal-back{
  background:var(--glass-light),rgba(27,27,29,.55);
  border-color:var(--glass-border);
  border-radius:var(--radius-control);
  box-shadow:inset 0 1px 0 #ffffff03;
}
.dossier-tab-item:has(.active){border-color:#cfb57332;background:#cfb57308}
.dossier-overflow-menu{
  background:var(--glass-light),rgba(24,24,26,.92);
  border-color:#ffffff24;
  box-shadow:var(--glass-shadow);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

/* All record types share the material; semantic states retain their own tint. */
.panel,.stat-card,.work-frame{
  background:var(--glass-light),rgba(20,20,21,.86);
  box-shadow:inset 0 1px 0 #ffffff04;
}
.panel,.stat-card:not(.stat-warning){border-color:var(--glass-border)}
.dashboard-process-group{
  background:var(--glass-light),rgba(20,20,21,.42);
  border-color:#cfb5732e;
  box-shadow:inset 0 1px 0 var(--glass-seam);
}
.dashboard-process-group-title>span{
  background:var(--glass-light),rgba(20,20,21,.98);
  border-color:#cfb57336;
  color:#cfbd92;
  box-shadow:inset 0 1px 0 var(--glass-seam);
}
.record-card,.client-source-card,.process-action-card,.process-card{
  background:var(--glass-light),var(--glass-panel);
  border-color:var(--glass-border);
  box-shadow:inset 0 1px 0 var(--glass-seam),0 3px 12px #0002;
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}
.record-card:not(.card-in-progress):not(.card-important):not(.health-risk):not(.health-action_required):hover{
  background-color:rgba(34,34,36,.88);
  border-color:#ffffff24;
}
.process-card.health-risk{background:var(--glass-light),rgba(47,42,25,.9);border-color:#b69e4b40}
.process-card.health-action_required{background:var(--glass-light),rgba(48,31,29,.9);border-color:#b57e7240}
.process-card.health-risk:hover{background-color:rgba(56,49,28,.94);border-color:#c9af5b55}
.process-card.health-action_required:hover{background-color:rgba(57,35,32,.94);border-color:#cc8e8055}
.client-task-card.card-in-progress{background:var(--glass-light),rgba(27,40,49,.9);border-color:#7797aa38}
.client-task-card.card-important{background:var(--glass-light),rgba(41,37,25,.9);border-color:#af995c55}
.client-task-card.card-in-progress.card-important{background:var(--glass-light),rgba(27,40,49,.9);border-color:#af995c55}
.client-source-card .card-title,.client-source-card .card-title strong{
  display:block;
  min-width:0;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  overflow-wrap:normal;
}

/* Properties are quiet values, not large secondary actions. */
.process-pinned-property,.task-dossier-modal .task-relation-slot,.task-dossier-modal .task-property{
  background:var(--glass-light),var(--glass-control);
  border-color:#ffffff12;
  border-radius:var(--radius-control);
  box-shadow:inset 0 1px 0 #ffffff03;
}
.task-dossier-modal .task-property-value{gap:var(--space-2)}
.task-dossier-modal .task-property-value input[type=checkbox]{margin:0 0 0 var(--control-inset);align-self:center}
.task-dossier-modal .task-property-value #field-status,.task-dossier-modal .task-property-value #field-result{padding-left:var(--control-inset)}
.task-dossier-modal .task-property-value #task-template-field>select{padding-left:var(--control-inset)}
.task-dossier-modal .gc-date-trigger{padding-left:var(--control-inset)}
.client-pinned-properties{gap:var(--space-2)}
.client-pinned-properties .process-pinned-property{display:flex;flex-direction:column;padding:8px 9px;gap:4px;min-height:66px}
.client-pinned-properties .process-pinned-label{min-height:18px;font-size:11px;gap:5px}
.client-pinned-properties .process-pinned-label>.icon,.client-pinned-properties .process-pinned-label>label>.icon{width:13px;height:13px;min-width:13px;flex-shrink:0}
.client-pinned-properties .task-property-value .record-value-icon,.client-pinned-properties .task-property-value .icon{width:12px;height:12px;min-width:12px;flex-shrink:0}
.client-pinned-properties .task-property-value{min-height:28px;gap:6px;font-size:12px;line-height:1.5}
.client-pinned-properties .task-property-value>.form-field{gap:0;width:100%;min-width:0}
.client-dossier-modal .task-property-value .form-field>.form-label{display:none}
.client-pinned-properties .task-property-value>input,.client-pinned-properties .task-property-value>select{min-height:28px;padding:4px 7px;font-size:12px}
.client-pinned-properties .task-property-value>select{width:100%;max-width:100%}
.client-pinned-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}
.client-pinned-actions>.text-button{min-height:28px;padding:4px 6px;font-size:10px;line-height:1.4;white-space:nowrap;border-radius:5px;border-color:#ffffff16}
.client-dossier-photo-controls{gap:var(--space-2);margin-bottom:var(--space-3)}
.client-dossier-photo-controls>.text-button{min-height:28px;padding:3px 6px;color:#aba9a0;font-size:11px}
.client-dossier-modal .relation-picker{background:transparent;border-color:transparent;border-radius:5px}
.client-dossier-modal .relation-picker>summary{min-height:28px;padding:4px 7px;gap:6px;border:1px solid transparent;border-radius:5px;background:transparent;font-size:12px;line-height:1.5;color:#d0d0d5}
.client-dossier-modal .relation-picker>summary:before{font-size:14px;color:#929299}
.client-dossier-modal .relation-picker>summary:hover{background:rgba(255,255,255,.035);border-color:#ffffff0e}
.client-dossier-modal .relation-picker[open]>summary{background:#ffffff04;border-color:#ffffff16}
.client-dossier-modal .relation-picker .relation-count{font-size:9px;padding:1px 4px;background:#ffffff04;color:#95959c}
.relation-option[data-picker-client-id]>span{gap:var(--space-2);min-width:0}
.task-dossier-modal .relation-summary:has(.client-inline-avatar){display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:24px}
.task-dossier-modal .relation-summary>.client-inline-avatar{margin-right:var(--space-2);vertical-align:middle}
.client-option-avatar,.client-inline-avatar{flex-shrink:0}

/* Floating children stay in their original details/form; only their material filters. */
details.relation-picker[open][data-floating-picker]>.relation-picker-tools,
details.relation-picker[open][data-floating-picker]>.client-picker-search,
details.relation-picker[open][data-floating-picker]>.relation-options{
  background:rgba(24,24,26,.91);
  border-color:#ffffff24;
  backdrop-filter:blur(14px) saturate(108%);
  -webkit-backdrop-filter:blur(14px) saturate(108%);
}
details.relation-picker[open][data-floating-picker]>.relation-picker-tools{box-shadow:inset 0 1px 0 var(--glass-seam)}
details.relation-picker[open][data-floating-picker]>.relation-options{box-shadow:0 10px 28px #0005}
.client-picker-search input[data-client-picker-search],.client-picker-search input[data-catalog-picker-search]{background:transparent;border-color:transparent;color:#d0d0d5}
.client-picker-preview,.help-tooltip.help-popover,.discard-card,
.task-dossier-modal .gc-date-control .gc-date-popup{
  background:var(--glass-light),rgba(24,24,26,.87);
  border-color:#ffffff26;
  box-shadow:var(--glass-shadow);
  backdrop-filter:blur(18px) saturate(108%);
  -webkit-backdrop-filter:blur(18px) saturate(108%);
}
.client-dossier-modal{--client-details-width:300px}
.client-details-panel{background:var(--glass-light),rgba(19,19,20,.94);border-color:var(--glass-border);box-shadow:inset 1px 0 0 #ffffff03;backdrop-filter:none;-webkit-backdrop-filter:none}
.client-dossier-modal:has(.client-details-panel:not([hidden]))>.modal-close{right:calc(var(--client-details-width) + 18px);z-index:76}
.client-details-panel-heading{background:var(--glass-light),rgba(19,19,20,.97);border-color:var(--glass-border);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.client-details-panel .task-property-value{gap:4px}
.client-details-panel .relation-picker>summary{font-size:11px}
.client-details-panel .task-property-value>.form-field{gap:0;width:100%}
.client-dossier-cover:not([hidden])+.task-dossier-body .client-dossier-avatar{border-color:#141415}
.client-dossier-avatar,.client-picker-preview-photo{background:var(--glass-light),#1b1b1d;color:#c9c2af;border-color:var(--glass-border)}
.record-header-tools .client-details-toggle{color:#c6b58d;background:linear-gradient(145deg,#cfb57309,#cfb57303);border-color:#cfb57322;box-shadow:inset 0 1px 0 #ffffff03}
.record-header-tools .client-details-toggle:hover{color:#ead7a6;background:#cfb5730d;border-color:#cfb57342;text-decoration:none}
.record-header-tools .client-details-toggle[aria-expanded=true]{color:#e0ca98;background:#cfb57312;border-color:#cfb57342}
.record-header-tools .client-details-toggle:focus-visible{outline:2px solid var(--brand-gold);outline-offset:2px}
.client-dossier-heading .client-name-title::placeholder{color:#93918c;opacity:.8}
.client-dossier-heading .client-name-title:hover:not(:disabled){border-color:#ffffff0b}
.client-dossier-heading .client-name-title:focus{color:#f0eff0;background:#ffffff02;border-color:#cfb57335;box-shadow:0 0 0 2px #cfb57309;outline:none}
.record-relation-tools .relation-picker{background:var(--glass-light),#ffffff02;border-color:#ffffff15;border-radius:6px}
.record-relation-tools .relation-picker>summary{border-color:transparent;color:#c8c8ce}
.record-relation-tools .relation-picker>summary:hover{background:#ffffff03;border-color:#cfb57328}
.record-relation-tools .relation-picker[open]>summary{background:#cfb57306;border-color:#cfb5732a}
.client-process-tools>.text-button,.record-relation-tools>.text-button,
.client-process-tools .relation-picker>.record-link-trigger,
.record-relation-tools .relation-picker>.record-link-trigger{color:#c6b58d;background:transparent;border-color:transparent;box-shadow:none}
.client-process-tools>.text-button:hover:not(:disabled),.record-relation-tools>.text-button:hover:not(:disabled),
.client-process-tools .relation-picker>.record-link-trigger:hover,
.record-relation-tools .relation-picker>.record-link-trigger:hover,
.client-process-tools .relation-picker[open]>.record-link-trigger,
.record-relation-tools .relation-picker[open]>.record-link-trigger{color:#e1cc9b;background:transparent;border-color:transparent;text-decoration:none}
.record-link-trigger:focus-visible{outline:2px solid var(--brand-gold);outline-offset:3px}

/* Brand actions and keyboard focus are distinct from business-state colors. */
.button-primary{background:linear-gradient(145deg,#cfb57312,#cfb57304),#252218;color:#eadbb3;border-color:#cfb57350;box-shadow:inset 0 1px 0 #ffffff07}
.button-primary:hover:not(:disabled){background:linear-gradient(145deg,#cfb5731a,#cfb57308),#2e291b;border-color:#cfb57378}
.button-secondary{background:var(--glass-light),rgba(255,255,255,.025);border-color:#ffffff1a;color:#c8c8ce}
.task-direction-segments{background:var(--glass-light),rgba(27,27,29,.5);border-color:var(--glass-border);gap:3px}
.task-direction-segments>button[aria-pressed=true]{background:#cfb57312;color:#dfcc98;border-color:#cfb57335}
.gc-date-popup .gc-date-day-today{color:#ddc58c;border-color:#cfb5733b}
.gc-date-popup .gc-date-day-selected{background:#6f8fa63b;color:#e7eef3;border-color:#a1bac653}
.gc-date-popup .gc-date-actions>button:last-child{background:#cfb57312;color:#ddcc9e;border-color:#cfb57335}
.task-dossier-modal .gc-date-control .gc-date-popup .gc-date-input{background:#08080966;border-color:#ffffff1a;color:#dcdce1}
.task-dossier-modal .gc-date-control .gc-date-popup .gc-date-input:focus{background:#08080990;border-color:#cfb57350;box-shadow:0 0 0 2px #cfb5730d}
.task-dossier-modal .gc-date-control .gc-date-popup .gc-date-reminder>select{background:#141415;color:#cacad1;border-color:var(--glass-border)}
.gc-date-popup button:focus-visible,.client-picker-preview-close:focus-visible,.modal-back:focus-visible,.task-direction-segments>button:focus-visible{outline:2px solid var(--brand-gold);outline-offset:2px}

@media(max-width:900px){.client-dossier-modal{--client-details-width:330px}}
@media(max-width:580px){
  .client-dossier-modal{--client-details-width:320px}
  .sidebar,.topbar{backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}
  .modal-backdrop{backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
  .record-card,.client-source-card,.process-action-card,.process-card{backdrop-filter:none;-webkit-backdrop-filter:none}
  .client-picker-preview,.help-tooltip.help-popover,.discard-card,.task-dossier-modal .gc-date-control .gc-date-popup{backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
  .client-pinned-properties .process-pinned-property{padding:8px;min-height:64px}
  .client-pinned-properties .task-property-value,.client-pinned-properties .relation-picker>summary{font-size:11px}
  .client-pinned-actions>.text-button{font-size:10px;padding:4px 5px}
  .client-details-layout>.client-details-panel{background:var(--glass-light),rgba(19,19,20,.98);box-shadow:-10px 0 25px #0004}
}
@media(max-width:380px){
  .client-dossier-modal:has(.client-details-panel:not([hidden]))>.modal-close{right:58px}
}

@media(prefers-reduced-motion:reduce){
  .sidebar,.button,.nav-item,.record-card,.task-dossier-tab,.gc-date-trigger{transition:none;animation:none}
  .modal,.client-details-panel{scroll-behavior:auto}
}
@media(prefers-reduced-transparency:reduce){
  :root{--glass-bg:#101011;--glass-panel:#1b1b1d;--glass-control:#1b1b1d}
  .dashboard-process-group,.dashboard-process-group-title>span{background:#141415}
  .sidebar,.topbar,.modal-backdrop,.dossier-navigation-row,.dossier-overflow-menu,.record-card,.client-picker-preview,.help-tooltip.help-popover,.discard-card,.client-details-panel-heading,.task-dossier-modal .gc-date-control .gc-date-popup,details.relation-picker[open][data-floating-picker]>*{backdrop-filter:none;-webkit-backdrop-filter:none}
  .modal,.task-dossier-modal,.modal-footer,.task-dossier-modal .modal-footer,.dossier-navigation-row,.client-details-panel,.client-details-panel-heading{background:#141415}
  .client-picker-preview,.help-tooltip.help-popover,.discard-card,.dossier-overflow-menu,.task-dossier-modal .gc-date-control .gc-date-popup,details.relation-picker[open][data-floating-picker]>.relation-picker-tools,details.relation-picker[open][data-floating-picker]>.client-picker-search,details.relation-picker[open][data-floating-picker]>.relation-options{background:#1b1b1d}
}
@media(prefers-contrast:more){
  :root{--glass-border:#ffffff40;--ink:#ffffff;--muted:#c3c3ca;--glass-bg:#101011;--glass-panel:#1b1b1d}
  .dashboard-process-group,.dashboard-process-group-title>span{border-color:#cfb57366}
  .dashboard-process-group-title>span{color:#ead8ac}
  .task-property-label,.task-property-label>label,.process-pinned-label>label,.task-relation-label{color:#d2d2d8}
  .process-pinned-property,.task-dossier-modal .task-property,.task-dossier-modal .task-relation-slot,.dossier-tab-item,.dossier-tab-overflow>.dossier-more-tab,.relation-picker>summary{border-color:#ffffff38}
  .client-dossier-modal .relation-picker>summary{border-color:#ffffff38}
  .client-picker-preview,.help-tooltip.help-popover,.discard-card,.task-dossier-modal .gc-date-control .gc-date-popup{background:#1b1b1d;border-color:#ffffff50;backdrop-filter:none;-webkit-backdrop-filter:none}
}
@supports not (backdrop-filter:blur(1px)){
  :root{--glass-bg:#101011;--glass-panel:#1b1b1d}
  .dashboard-process-group,.dashboard-process-group-title>span{background:#141415}
  .client-picker-preview,.help-tooltip.help-popover,.discard-card,.task-dossier-modal .gc-date-control .gc-date-popup{background:#1b1b1d}
}
@media(forced-colors:active){
  .dashboard-process-group,.dashboard-process-group-title>span{background:Canvas;color:CanvasText;border-color:CanvasText;box-shadow:none}
  .work-heading-dot{background:CanvasText}
  .sidebar,.topbar,.modal,.modal-footer,.record-card,.client-details-panel,.client-details-panel-heading,.client-picker-preview,.discard-card,.task-dossier-modal .gc-date-control .gc-date-popup{background:Canvas;border-color:CanvasText;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
  .button-primary,.task-direction-segments>button[aria-pressed=true]{border-color:Highlight}
}

/* Page actions use a full row on smaller screens and wrap within the content width. */
@media(max-width:700px){
  .page-header{flex-wrap:wrap;align-items:flex-start}
  .page-header>div:first-child{flex:1 1 100%;min-width:0;max-width:100%}
  .page-header h1{overflow-wrap:anywhere}
  .page-header>.header-actions{flex:1 1 100%;width:100%;min-width:0;flex-wrap:wrap;justify-content:flex-start}
  .page-header>.header-actions>*{min-width:0;max-width:100%}
}

/* Laptop text keeps the existing hierarchy with a bounded half-pixel increase. */
@media(min-width:901px){
  body,.login-copy p{font-size:14.5px}
  .dashboard-process-group-title{font-size:14px}
  .work-frame-header :is(h2,h3){font-size:14.5px!important}
  .section-heading h2,.panel-heading h2{font-size:15.5px}

  /* Existing 13px record values, card titles and calendar trigger. */
  .card-title strong,.process-card .card-title strong,
  .client-source-content .card-title strong,.process-action-card .card-title strong,
  .client-picker-preview h3,.client-details-panel-heading h3,
  .dossier-task-section>h3,.empty-state h3,
  .task-relation-slot,.task-property-value,
  .task-property-value input:not([type=checkbox]),.task-property-value select,.task-property-value textarea,
  .task-relations .relation-picker>summary,.task-client-property .relation-picker>summary,
  .task-date-picker>summary,.task-health,.task-panel-empty,
  .task-linked-record,.task-linked-record>.link-button,
  .discard-card p,.login-card>p,.gc-date-trigger,.gc-date-calendar-heading>strong{font-size:13.5px}
  .task-date-editor input{font-size:13.5px!important}

  /* Existing 12px controls, table values and property labels. */
  .button,.link-button,.search-field input,
  table,td,.client-cell strong,.table-title strong,
  .page-header p,.client-notes p,.notice,.notice strong,.future-module p,.scope-list>div,
  .timeline-body>strong,.action-detail strong,.flow-banner strong,
  .tab,.task-dossier-tab,.dossier-overflow-choice,
  .details-grid dd,.process-preview strong,.role-card h3,
  .form-field input,.form-field select,.form-field textarea,
  .login-card label,.login-card input,.login-card select,.login-flow,
  .relation-picker>summary,.form-field .relation-option,
  .task-relations .relation-option,.task-client-property .relation-option,
  .record-link-option,.checkbox-field strong,
  .task-property>label,.task-property-label,.task-property-label>label,
  .process-pinned-property>label,.process-pinned-property .task-property-value select,
  .client-pinned-properties .task-property-value,
  .process-tab-panel .task-property-value>.muted,.client-tab-panel .task-property-value>.muted,
  .task-next-actions .text-button,.task-footer-next-actions .text-button,
  .task-linked-contact,.action-card-description,.client-card-phone,.client-load-more,
  .client-picker-preview-meta>a,
  .relation-picker input[data-client-picker-search],
  .client-tag-create>input,.reminder-toast .text-button,.help-tooltip.help-popover,
  .gc-date-popup,.gc-date-popup .gc-date-day,.gc-date-empty,
  .gc-date-control .gc-date-popup .gc-date-input,
  .gc-date-control .gc-date-popup .gc-date-month-year>select,
  .gc-date-control .gc-date-popup .gc-date-month-year>input{font-size:12.5px}

  /* Existing 11px navigation, card details and secondary property values. */
  .nav-item{font-size:12.5px}
  .brand small,.workspace-label,.future-nav,.user-panel strong,.breadcrumb,.avatar,
  .text-button,.back-button,.filter-select,.filter-pill,.result-count,
  .person-cell,.stack-cell,.table-note,.dossier-badges>.muted,
  .panel-heading p,.notice p,.compact-notice,.role-card p,.flow-banner p,
  .timeline-compact .timeline-body>strong,
  .form-field label,.form-label,.modal-heading p,.modal-error:not(:empty),.form-error,.event-changes dd,.demo-note p,
  .modal-footer .button,.panel-bottom-actions .button,.board-bottom-actions .button,
  .relation-links .link-button,.card-clients,.card-clients .link-button,
  .card-meta,.client-picker-task-content .card-meta,.section-empty,
  .kanban-heading h3,.task-property-section>h3,
  .process-priority,.process-card-client>.link-button,.process-last-action,.process-card-health,
  .process-card-broker,.action-card-state,.action-card-performer,
  .client-card-recency,.client-card-broker,.client-first-contact,.client-contact-timer,
  .client-photo-details>summary,.client-photo-preview .text-button,
  .process-pinned-label>label,.task-additional-properties>summary,
  .task-dossier-modal .task-relation-slot .form-label,.task-dossier-modal .task-relation-label,
  .overflow-check,.help-tooltip,.modal-back,
  .client-pinned-properties .text-button,.client-dossier-photo-controls input[type=file],
  .client-dossier-photo-controls .text-button,.client-dossier-photo-controls>label,
  .client-profile-section>summary,.task-preview-client,
  .client-picker-task-content .action-card-description,.client-picker-preview .process-last-action,
  .client-picker-preview-meta,
  .client-process-tools>.text-button,.record-relation-tools>.text-button,
  .client-process-tools .relation-picker>summary,.record-relation-tools .relation-picker>summary,
  .client-process-tools .relation-picker>.record-link-trigger,
  .record-relation-tools .relation-picker>.record-link-trigger,
  .client-details-toggle,.task-direction-segments>button,
  .client-details-panel .task-property-value,
  .client-details-panel .task-property-value input:not([type=checkbox]),
  .client-details-panel .task-property-value select,.client-details-panel .task-property-value textarea,
  .client-details-panel .relation-picker>summary,.client-details-panel .relation-options,
  .client-details-panel .form-field .relation-option,.client-details-document,
  .gc-date-popup .gc-date-entry-target,.gc-date-popup .gc-date-end-toggle,
  .gc-date-popup .gc-date-reminder,.gc-date-control .gc-date-popup .gc-date-reminder>select,
  .gc-date-error,.gc-date-popup .gc-date-actions>button{font-size:11.5px}

  /* Existing 10px metadata and compact actions. */
  .brand strong,.pilot-note strong,.user-panel small,.date-top,.connection,.workspace-footer,.avatar-dark,
  .eyebrow,.login-copy .eyebrow,.login-footer,.login-bottom,
  .stat-foot,.details-grid dt,.mini-stats span,.action-detail small,.action-date,
  .timeline-body>div,.timeline-compact .timeline-body>div,.timeline-client,.flow-steps,
  th,.client-cell small,.stack-cell small,.table-title small,.badge,.priority,.count-pill,
  .process-preview small,.module-foot,.form-helper,.event-changes dt,.checkbox-field small,
  .card-process,.card-foot,.card-foot .text-button,
  .kanban-heading>span:last-child,.kanban-empty,.audit-details>summary,
  .process-card-reference,.client-source-content .process-card-reference,.process-more-clients,
  .process-card-property,.process-status-tag,
  .process-card-actions .text-button,.client-card-actions .text-button,
  .work-frame-header .text-button,.dashboard-task-groups .section-heading .text-button,
  .section-actions .button,.client-work-tabs .filter-pill,
  .task-phone small,.task-device-reminder,.task-device-reminder .text-button,
  .client-picker-preview-tags .badge,.client-picker-task-content .card-tags .badge,
  .relation-count,.relation-picker-tools,.client-pinned-properties .badge,
  .client-pinned-actions .text-button,
  .client-details-panel .task-property-label,.client-details-panel .task-property-label>label,
  .client-details-photo>.text-button,.client-details-documents .text-button,
  .client-details-documents .muted,.gc-date-weekdays{font-size:10.5px}
  .client-source-tag{font-size:10.5px!important}

  /* Existing 9px counters and small state tags. */
  .sidebar-brand strong,.sidebar-brand .brand strong,.nav-heading,.nav-count,.future-nav small,.pilot-note span,
  .tiny-label,.filter-pill>span,.tab>span,.client-priority-extra,.action-date small,
  .dossier-header .eyebrow,.client-notes .eyebrow,.pilot-pill,.client-inline-avatar,
  .task-client-property .relation-count,.card-tags .badge,.process-card-tags .badge{font-size:9.5px}
  .workspace-label .tiny-label,.future-module>.tiny-label,.modal-heading .eyebrow{font-size:8.5px}

  /* These shared popovers retain their existing sizes above the compact tags. */
  .help-tooltip.help-popover{font-size:12.5px}
  .client-picker-task-content .card-tags .badge{font-size:10.5px}
  .task-property-value select,.task-property-value textarea{font-size:13.5px}
}
