/* Titled feature blocks: one surface owns the heading, controls, and every state. */
:root {--block-padding:20px;--block-gap:16px;--block-radius:14px;--block-stack-gap:20px}
/* Reuse the error notice's muted red palette in both themes. */
:root {--notification-bg:var(--feedback-error-bg);--notification-text:var(--feedback-error)}
.attention-badge,.dashboard .dash-rail-heading h2>.attention-badge {
  display:inline-flex;align-items:center;justify-content:center;flex:none;
  min-width:20px;height:20px;padding:0 6px;border-radius:999px;
  background:var(--notification-bg);color:var(--notification-text);
  font-size:12px;font-weight:600;line-height:20px;font-variant-numeric:tabular-nums;
}
.feature-block {min-width:0;padding:var(--block-padding);border:0;border-radius:var(--block-radius);background:var(--surface-soft);box-shadow:none}
.page>.feature-block+.feature-block,.conversation-block,.dashboard-quick-start {margin-top:var(--block-stack-gap)}
.dashboard[data-layout] .dash-rail-card.feature-block {padding:var(--block-padding)}
.feature-block>.feature-block-header {display:flex;align-items:center;gap:12px;min-height:32px;margin:0;padding:0;border:0;background:transparent;flex-wrap:wrap}
.feature-block>.feature-block-header :is(h2,h3),.dashboard .feature-block>.feature-block-header h2 {margin:0;font-size:var(--font-section);font-weight:600;line-height:24px;letter-spacing:0}
.feature-block>.feature-block-header>.icon,.feature-block>.feature-block-header>.row>.icon {width:18px;height:18px;flex:none;color:var(--muted)}
.feature-block>.feature-block-body {min-width:0;margin:var(--block-gap) 0 0;padding:0;border:0}
.feature-block>.feature-block-body[hidden] {display:none}
.feature-block-body>.tabs:first-child,.feature-block-body>.filters:first-child,.feature-block-body>.workflow-toolbar:first-child {margin-top:0}
.feature-block-body .table-scroll,.feature-block-body .knowledge-grid,.feature-block-body .doc-list {background:var(--surface)}
.feature-block-body .table-scroll,.feature-block-body .doc-list {border-radius:12px}
.feature-block-body .table-footer {padding-bottom:0}
.block-empty-text {margin:0;color:var(--muted);font-size:var(--font-control);line-height:20px}

/* Collapsible title is part of the parent, rather than a detached title strip. */
.feature-block>.approval-entry {width:100%;text-align:left;flex-wrap:nowrap;border-radius:8px}
.feature-block>.approval-entry:hover {background:var(--hover)}
.feature-block>.approval-entry:focus-visible {outline:2px solid var(--focus-ring);outline-offset:4px}
.feature-block-body>.approval-grid {padding:0}
.feature-block-body>.approval-empty {padding:0;min-height:56px}
.feature-block-body>.approval-empty h3 {margin:0 0 4px;font-size:var(--font-body);line-height:21px}
.feature-block-body>.approval-empty p {line-height:20px}
.dashboard .feature-block>.dash-rail-heading {align-items:center;padding:0;margin:0}
.dashboard .feature-block>.dash-empty {min-height:56px;padding:0;border:0}
.dashboard .feature-block .dash-empty h3 {font-size:var(--font-body);font-weight:500;line-height:21px}
.dashboard .feature-block .dash-empty p {margin-top:4px;font-size:var(--font-control);line-height:20px}
.dashboard .feature-block>.quick-head {margin:0;padding:0;border:0}
.dashboard-quick-start .quick-card {background:var(--surface);border-color:transparent}
.dashboard-quick-start .quick-card:hover {background:var(--hover);transform:none}
.dashboard[data-layout=focus]>.dashboard-quick-start {display:none}
.dash-thinking {padding-left:0}
.doc-home.feature-block {margin-top:20px}
.mail-ai-summary.feature-block {padding:var(--block-padding)}
.mail-ai-summary.feature-block .feature-block-body>p {margin:0 0 12px}
.conversation-block .search-result {background:transparent}
.conversation-block .search-result:last-child {border-bottom:0}
.feature-block .erp-column {background:var(--surface);border-color:var(--border)}
.feature-block .erp-card {background:var(--surface-soft)}
.feature-block .erp-column.is-drag-over {background:var(--selected);border-color:var(--focus-ring)}
@media(max-width:650px){
  :root {--block-padding:16px}
  .feature-block>.feature-block-header {gap:8px}
  .feature-block>.feature-block-header h2 {min-width:0}
  .dashboard .feature-block>.quick-head .search-wrap {flex:1 1 160px;width:auto}
}

.pc-content>.feature-block+.feature-block {margin-top:var(--block-stack-gap)}
.feature-block>.feature-block-header.block-header-copy {display:block;min-height:0}
.block-header-copy p {font-size:var(--font-control);line-height:20px;color:var(--muted);margin:4px 0 0}
.feature-block-body>.pc-source-choices:first-child,.feature-block-body>.pc-trigger-choices:first-child {margin-top:0}
.feature-block-body>.pc-checks:last-child,.feature-block-body>.pc-route-note:last-child {margin-bottom:0}
