/* Scoped dashboard and read-only attention lists; application typography is inherited. */
.control-attention-ready .control-attention-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;grid-column:1/-1;min-width:0}
.control-attention-ready .control-attention-group>h2{display:block;grid-column:1/-1;margin:4px 0 2px;font-size:14px;line-height:1.35}
.control-attention-ready .control-attention-group .control-status{width:100%;min-height:42px}
.control-attention-ready:not(.control-collapsed) .control-quotes-group{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr))}
.control-attention-ready:not(.control-collapsed) .control-quotes-group>h2{grid-column:1/-1}
.control-attention-compact{display:none}
.control-attention-ready.control-collapsed,.control-attention-ready.control-collapsed.control-has-plan,.control-attention-ready.control-collapsed.control-has-quotes{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 28px!important}
.control-attention-ready.control-collapsed #controlCompactPlan,.control-attention-ready.control-collapsed #controlQuotesGroup{display:none!important}
.control-attention-ready.control-collapsed .control-attention-compact{display:none!important}
.control-attention-chip{display:inline-flex;align-items:center;justify-content:space-between;gap:7px;min-height:34px;padding:6px 9px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--text);font:inherit;font-size:12px;line-height:1.3;text-align:left}
.control-attention-chip strong{font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}
.control-attention-chip[data-tone=review] strong{color:var(--planner-review-ink)}
.control-attention-chip[data-tone=late] strong{color:var(--control-late-ink)}
.control-attention-chip:disabled{opacity:.65}
.control-attention-ready .control-status .control-full-label{min-width:0;overflow-wrap:anywhere}
.attention-dialog{width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--text)}
.attention-dialog::backdrop{background:rgba(0,0,0,.55)}
.attention-dialog-heading{display:flex;align-items:start;justify-content:space-between;gap:12px}
.attention-dialog-heading h2{font-size:1.15rem;line-height:1.35;margin:4px 0 10px}
.attention-dialog-heading button{flex:none;min-height:38px}
.attention-filters{margin:4px 0 10px}
.attention-filters select{margin:0;width:100%;font:inherit}
.attention-items{display:grid;gap:10px}
.attention-entry{min-width:0;padding:12px;border:1px solid var(--line);border-radius:11px;background:var(--input)}
.attention-source{display:block;width:100%;padding:0;border:0;border-radius:0;min-height:42px;text-align:left;background:none;color:var(--text);font:inherit;overflow-wrap:anywhere}
.attention-source strong{display:block;font-size:.95rem;line-height:1.4}
.attention-source small{display:block;margin-top:5px;color:var(--muted);font-size:.8rem;line-height:1.45}
.attention-source.contact-action{border-radius:6px;min-height:44px}
.attention-contact-hint{margin:0;font-size:.85rem;line-height:1.5}
.contact-quick{min-width:0;margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.contact-quick[hidden]{display:none!important}
.contact-quick-actions{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.contact-quick .contact-quick-actions>button{flex:1 1 auto;min-width:0;min-height:44px;margin:0;padding:8px 12px;width:auto;max-width:100%;font-size:.85rem;line-height:1.35;white-space:normal}
.contact-quick-confirm{margin:0 0 8px;font-size:.9rem;line-height:1.45;font-weight:600}
.contact-quick-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
.contact-quick-fields>label{display:block;min-width:0;margin:0;font-size:.8rem;line-height:1.4}
.contact-quick-fields input{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:44px;margin:5px 0 0;font:inherit}
.contact-quick .contact-quick-text{display:block;min-width:0;margin:0;font-size:.85rem;line-height:1.4}
.contact-quick-text textarea{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:88px;margin:5px 0 0;resize:vertical;font:inherit;line-height:1.45}
.contact-quick .contact-quick-limit{display:block;margin:5px 0 10px;font-size:.8rem;line-height:1.4;color:var(--muted);font-variant-numeric:tabular-nums;text-align:right}
.contact-quick .contact-quick-limit.is-over-limit{color:var(--error);font-weight:650}
.contact-quick .contact-quick-hint{margin:7px 0 10px;font-size:.8rem;line-height:1.45}
.contact-quick-message{margin:8px 0 0;font-size:.85rem;line-height:1.45;color:var(--text);overflow-wrap:anywhere}
@media(max-width:480px){.contact-quick-fields{grid-template-columns:minmax(0,1fr)}}
.attention-entry .record-sync{margin:10px 0 0;padding:10px 0 0;border:0;border-top:1px solid var(--line);border-radius:0;background:none}
.attention-paging{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}
.attention-paging button{min-height:40px}
.attention-dialog [hidden],.control-attention-ready [hidden]{display:none!important}
.workday-entry{min-width:0}
.workday-entry.workday-entry-sync{padding:12px;border:1px solid var(--line);border-radius:11px;background:var(--input)}
.workday-entry-sync>.workday-item{padding:0;border:0;background:none;min-height:42px}
.workday-entry-sync>.record-sync{padding:10px 0 0;margin:10px 0 0;border:0;border-top:1px solid var(--line);border-radius:0;background:none}
.workday-group:focus{outline:2px solid var(--accent);outline-offset:3px}

#controlSummary:not([data-stale="true"]) :is(.control-status,.control-attention-chip)[data-has-items="true"] > :is(strong,.control-compact-value),
#workflowQueuesZone #jobCostsShortcut[data-has-items="true"] > strong{
  text-shadow:0 0 5px color-mix(in srgb,currentColor 25%,transparent);
}
#controlSummary:not([data-stale="true"]) :is(.control-status,.control-attention-chip)[data-has-items="true"],
#workflowQueuesZone #jobCostsShortcut[data-has-items="true"]{
  position:relative;
}
#controlSummary:not([data-stale="true"]) :is(.control-status,.control-attention-chip)[data-has-items="true"]::after,
#workflowQueuesZone #jobCostsShortcut[data-has-items="true"]::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  opacity:.62;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 30%,transparent),
    0 0 9px color-mix(in srgb,currentColor 20%,transparent);
}
#controlSummary:not([data-stale="true"]) :is(#controlJobsOverdue,#controlTasksOverdue)[data-has-items="true"]::after{
  box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 46%,transparent),
    0 0 10px color-mix(in srgb,currentColor 30%,transparent);
}
@media(prefers-reduced-motion:no-preference){
  #controlSummary:not([data-stale="true"]) :is(.control-status,.control-attention-chip)[data-has-items="true"] > :is(strong,.control-compact-value),
  #workflowQueuesZone #jobCostsShortcut[data-has-items="true"] > strong{
    animation:control-count-glow 2.6s ease-in-out infinite alternate;
  }
  #controlSummary:not([data-stale="true"]) :is(.control-status,.control-attention-chip)[data-has-items="true"]::after,
  #workflowQueuesZone #jobCostsShortcut[data-has-items="true"]::after{
    animation:control-tile-glow 2.6s ease-in-out infinite alternate;
  }
  #controlSummary:not([data-stale="true"]) :is(#controlJobsOverdue,#controlTasksOverdue).control-overdue-increased[data-has-items="true"]::after{
    animation:control-tile-glow 2.6s ease-in-out infinite alternate,
      control-overdue-rise .72s ease-in-out 2;
  }
  #controlSummary :is(.control-status,.control-attention-chip)[data-tone="review"] > :is(strong,.control-compact-value),
  #controlSummary :is(.control-status,.control-attention-chip)[data-tone="review"]::after{animation-delay:-1.1s}
}
@keyframes control-count-glow{
  from{text-shadow:0 0 4px color-mix(in srgb,currentColor 17%,transparent)}
  to{text-shadow:0 0 10px color-mix(in srgb,currentColor 58%,transparent)}
}
@keyframes control-tile-glow{
  from{opacity:.38}
  to{opacity:.88}
}
@keyframes control-overdue-rise{
  50%{
    box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 84%,transparent),
      0 0 14px color-mix(in srgb,currentColor 58%,transparent);
  }
}
