.role-dashboard { display: flex; flex-direction: column; gap: 14px; color: var(--ink); }
.rd-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rd-heading h1 { font-size: 23px; font-weight: 600; letter-spacing: -.6px; }
.rd-heading p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.rd-heading p span { margin-inline: 5px; }
.rd-actions { display: flex; gap: 8px; align-items: center; }
.role-dashboard .button { min-height: 34px; padding: 7px 10px; font-size: 12px; border-radius: 7px; gap: 6px; }
.rd-refresh { width: 34px; }
.rd-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--border); border-radius: 10px; background: #fff; overflow: hidden; }
.rd-metric { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px; min-width: 0; color: var(--ink); text-decoration: none; }
.rd-metric + .rd-metric { border-left: 1px solid var(--border); }
a.rd-metric:hover { background: #f8f9fc; }
.rd-metric-label { display: flex; gap: 7px; align-items: center; font-size: 12px; color: var(--muted); }
.rd-metric-label svg { flex-shrink: 0; }
.rd-metric strong { font-size: 26px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; letter-spacing: -.6px; }
.rd-metric small { font-size: 11px; color: var(--muted); line-height: 1.5; }
.rd-attention strong { color: #b55238; }
.rd-metric-skeleton { display: block; height: 30px; width: 60px; }
.rd-context { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); }
.rd-context > span { display: flex; flex-wrap: wrap; gap: 12px; }
.rd-context b { font-weight: 500; color: #536071; }
.rd-context nav { display: flex; flex-wrap: wrap; gap: 14px; }
.rd-link { display: inline-flex; align-items: center; gap: 3px; color: #7351b5; font-size: 12px; font-weight: 500; text-decoration: none; }
.rd-link:hover { text-decoration: underline; }
.rd-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(280px,1fr); gap: 14px; align-items: start; }
.rd-panel { background: #fff; border: 1px solid var(--border); border-radius: 10px; min-width: 0; overflow: hidden; }
.rd-panel-heading { min-height: 47px; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; gap: 8px; }
.rd-panel-heading h2 { font-size: 14px; font-weight: 600; }
.rd-toolbar { display: flex; gap: 8px; justify-content: space-between; padding: 0 14px 10px; }
.role-dashboard .search-field { flex: 1; width: auto; max-width: none; padding-inline: 9px; }
.role-dashboard .search-field input, .role-dashboard .direction-filter select { height: 32px; }
.rd-table-scroll { overflow: auto; }
.rd-table-scroll table { font-size: 12px; }
.rd-table-scroll th { padding: 9px 12px; font-size: 11px; }
.rd-table-scroll td { height: 42px; padding: 8px 12px; }
.rd-caller { display: flex; flex-direction: column; text-align: left; max-width: 190px; font-size: 12px; color: #423762; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 0; background: transparent; padding: 0; cursor: pointer; }
.rd-caller:hover { color: #7351b5; text-decoration: underline; }
.rd-caller small { color: var(--muted); font-weight: 400; margin-top: 2px; }
.rd-mobile-meta { display: none; }
.rd-agent { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.role-dashboard .direction { font-size: 11px; gap: 4px; }
.role-dashboard .badge { padding: 3px 6px; font-size: 10px; }
.rd-panel-footer { padding: 10px 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; }
.rd-task-summary { display: flex; flex-wrap: wrap; gap: 12px; padding: 0 14px 12px; font-size: 11px; color: var(--muted); }
.rd-task-summary b { font-weight: 600; font-variant-numeric: tabular-nums; }
.rd-overdue { color: #ad482e; font-size: 11px; flex-shrink: 0; }
.rd-task-list { list-style: none; padding: 0; margin: 0; }
.rd-task-list li { border-top: 1px solid var(--border); }
.rd-task { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; text-decoration: none; color: var(--ink); }
.rd-task:hover { background: #f8f9fc; }
.rd-task > div { min-width: 0; }
.rd-task strong { display: block; font-size: 12px; font-weight: 500; line-height: 1.5; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rd-task small { display: block; font-size: 11px; line-height: 1.5; color: var(--muted); margin-top: 3px; }
.rd-task-icon { color: var(--muted); flex-shrink: 0; }
.rd-empty { padding: 30px 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.rd-setup { border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.rd-setup summary { cursor: pointer; padding: 11px 14px; color: #536071; font-size: 12px; }
.rd-setup summary span { color: var(--muted); margin-left: 8px; font-size: 11px; }
.rd-setup .setup-guide { margin: 0; border: 0; }
.rd-footer { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; padding-top: 2px; }
.rd-unavailable { padding: 20px; }
.rd-unavailable h2 { font-size: 16px; }
.rd-unavailable p { margin: 8px 0 14px; color: var(--muted); font-size: 13px; }
.rd-summary-note { font-size: 12px; color: var(--muted); }
.role-dashboard :is(a,button,summary):focus-visible { outline: 2px solid #aa8ae2; outline-offset: 2px; }
.role-dashboard button.rd-link { border: 0; background: transparent; padding: 0; cursor: pointer; }
@media (max-width: 1180px) { .rd-grid { grid-template-columns: minmax(0,1fr); } .rd-task-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); } .rd-context { align-items: flex-start; flex-direction: column; } }
@media (max-width: 600px) {
  .role-dashboard { gap: 12px; }
  .rd-heading { align-items: flex-start; }
  .rd-heading h1 { font-size: 20px; }
  .rd-heading p { max-width: 180px; line-height: 1.5; }
  .rd-actions { flex-wrap: wrap; justify-content: flex-end; }
  .rd-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rd-metric { padding: 12px; }
  .rd-metric:nth-child(3) { border-left: 0; }
  .rd-metric:nth-child(n+3) { border-top: 1px solid var(--border); }
  .rd-metric strong { font-size: 23px; }
  .rd-task-list { grid-template-columns: minmax(0,1fr); }
  .rd-tasks { grid-row: 1; }
  .rd-calls { grid-row: 2; }
  .rd-table-scroll .rd-desktop-col { display: none; }
  .rd-table-scroll table { table-layout: fixed; }
  .rd-table-scroll th:first-child { width: 72%; }
  .rd-table-scroll td { height: 54px; }
  .rd-mobile-meta { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; }
  .rd-caller { max-width: 100%; }
  .rd-result { text-align: right; }
  .rd-result .badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
  .rd-toolbar { flex-wrap: wrap; }
  .role-dashboard .search-field { flex-basis: 100%; }
  .rd-table-scroll { max-height: 360px; }
  .rd-table-scroll th { position: sticky; top: 0; z-index: 1; }
  .rd-context > span { gap: 6px 10px; }
  .rd-panel-heading { flex-wrap: wrap; }
}
