.dashboard-drilldown, .dashboard-drilldown * { text-decoration: none !important; }
.dashboard-drilldown { color: inherit; cursor: pointer; text-align: left; font: inherit; }
.dashboard-drilldown:hover { outline: 2px solid #a8b8ec; outline-offset: 1px; }
.dashboard-drilldown:focus-visible { outline: 3px solid #167347; outline-offset: 3px; }
.overview-controls { display:flex; align-items:stretch; gap:24px; margin:0 0 20px; min-width:0; letter-spacing:0; }
.overview-sources { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); flex:1; min-width:0; gap:16px; border-bottom:1px solid #dce3ec; }
.overview-sources button { appearance:none; border:0; border-bottom:3px solid transparent; background:transparent; padding:12px 4px 14px; min-width:0; color:#566477; text-align:left; cursor:pointer; font:inherit; letter-spacing:0; }
.overview-sources button > span { display:block; font-size:13px; font-weight:600; }
.overview-sources button strong { display:block; margin-top:7px; color:#182331; font-size:19px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.overview-sources button small { font-size:11px; font-weight:500; color:#667085; }
.overview-sources button[aria-pressed="true"] { border-bottom-color:#2563eb; color:#1d4ed8; }
.overview-sources button[data-overview-source="site"][aria-pressed="true"] { border-bottom-color:#16805d; color:#146d50; }
.overview-sources button[data-overview-source="paypal"][aria-pressed="true"] { border-bottom-color:#08769b; color:#07627f; }
.overview-sources button:focus-visible { outline:2px solid #167347; outline-offset:2px; }
.overview-currency { display:flex; flex-direction:column; justify-content:center; gap:5px; font-size:12px; color:#566477; }
.overview-currency select { min-width:90px; min-height:36px; border:1px solid #dce3ec; border-radius:6px; background:#fff; color:#182331; padding:5px 9px; font:inherit; }
.overview-source-warning { margin:0 0 14px; color:#855b19; font-size:12px; }
[data-overview-total], [data-overview-today], [data-overview-monthly] { overflow-wrap:anywhere; letter-spacing:0; }
@media(max-width:600px) {
  .overview-controls { flex-wrap:wrap; gap:12px; }
  .overview-sources { flex-basis:100%; gap:8px; }
  .overview-sources button > span { font-size:12px; }
  .overview-sources button strong { font-size:16px; }
  .overview-currency { flex-direction:row; align-items:center; margin-left:auto; }
}
.balance-embedded .table td { vertical-align: top; }
.balance-embedded .table td:first-child { min-width: 150px; max-width: 250px; }
.balance-embedded .table td:first-child code { white-space: normal; overflow-wrap: anywhere; }
.balance-embedded .balance-current-list { display: grid; gap: 12px; min-width: 190px; }
.balance-embedded .balance-current-line { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 3px 10px; }
.balance-embedded .balance-current-line span { font: 700 16px var(--mono,monospace); overflow-wrap: anywhere; }
.balance-embedded .balance-current-line small { grid-column: 1 / -1; color: #667085; }
.balance-status { margin-top: 6px; white-space: normal; overflow-wrap: anywhere; max-width: 280px; }
.balance-refresh { width: 36px; height: 36px; padding: 8px; }
.balance-embedded button img { width: 18px; height: 18px; flex-shrink: 0; }
.balance-embedded .panel-head { gap: 12px; flex-wrap: wrap; }
.balance-embedded .table th:last-child { width: 60px; }
@media(max-width:760px) {
  .balance-embedded .table { min-width: 620px; }
  .balance-embedded .table-wrap { overflow-x: auto; }
}

.dashboard-task-dialog.app-dialog { width: min(720px,calc(100vw - 24px)); max-width: calc(100vw - 24px); border-radius: 8px; }
.dashboard-task-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.dashboard-task-dialog > .panel { width: 100%; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.dashboard-task-dialog .modal-form { min-height: 0; display: flex; flex-direction: column; }
.dashboard-task-dialog .modal-form > .panel-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 24px; }
.dashboard-task-dialog .panel-head, .dashboard-task-dialog .modal-footer { flex-shrink: 0; }
.dashboard-task-dialog .panel-head { gap: 12px; }
.dashboard-task-dialog .panel-head h2 { font-size: 18px; letter-spacing: 0; }
.dashboard-task-dialog .modal-footer { padding: 14px 24px; }
.dashboard-tasks { min-width: 0; color: var(--ink,#263344); font-size: 13px; line-height: 1.6; letter-spacing: 0; overflow-wrap: anywhere; }
.dashboard-tasks .task-progress-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.dashboard-tasks [data-task-refresh-status] { min-width: 0; color: #667085; font-size: 12px; }
.dashboard-tasks [data-refresh-dashboard-tasks] { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; min-height: 36px; font-size: 12px; }
.dashboard-tasks [data-refresh-dashboard-tasks] img { width: 16px; height: 16px; flex-shrink: 0; }
.dashboard-tasks [data-refresh-dashboard-tasks][aria-disabled="true"] { opacity: .65; cursor: wait; }
.dashboard-tasks .task-progress-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; padding: 0 0 12px; border-bottom: 1px solid var(--border,#e5e7eb); }
.dashboard-tasks .task-progress-summary strong { font-size: 15px; }
.dashboard-tasks .task-progress-summary span { color: #667085; font-size: 12px; }
.dashboard-tasks .task-progress-section { min-width: 0; }
.dashboard-tasks .task-progress-item { min-width: 0; padding: 16px 0; border-bottom: 1px solid var(--border,#e5e7eb); }
.dashboard-tasks .task-progress-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.dashboard-tasks .task-progress-heading strong { font-size: 14px; }
.dashboard-tasks .task-progress-state { color: #475467; font-size: 12px; font-weight: 600; }
.dashboard-tasks .task-progress-context { display: flex; flex-wrap: wrap; gap: 3px 14px; margin: 5px 0 10px; color: #667085; font-size: 12px; }
.dashboard-tasks .task-progress-track { height: 6px; width: 100%; overflow: hidden; border-radius: 3px; background: #edf0f4; }
.dashboard-tasks .task-progress-track > span { display: block; width: 100%; height: 100%; background: #16805d; }
.dashboard-tasks .task-progress-track.is-indeterminate > span { width: 32%; background: #4366c6; animation: dashboard-task-pulse 1.8s ease-in-out infinite alternate; }
.dashboard-tasks [data-task-status="pending"] .task-progress-track > span { background: #8b95a5; }
.dashboard-tasks [data-task-status="completed"] .task-progress-state { color: #16704e; }
.dashboard-tasks [data-task-status="failed"] .task-progress-state { color: #b42318; }
.dashboard-tasks .task-progress-stages { list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding: 0; margin: 7px 0; color: #667085; font-size: 11px; }
.dashboard-tasks .task-progress-stages li { min-width: 0; }
.dashboard-tasks .task-progress-stages li:nth-child(2) { text-align: center; }
.dashboard-tasks .task-progress-stages li:last-child { text-align: right; }
.dashboard-tasks .task-progress-stages [aria-current="step"] { color: var(--ink,#263344); font-weight: 700; }
.dashboard-tasks .task-progress-detail, .dashboard-tasks .task-progress-refresh-error { padding: 8px 10px; margin: 10px 0; background: #fff4f2; border-left: 3px solid #d34d3e; color: #9b3228; font-size: 12px; }
.dashboard-tasks .has-warning .task-progress-detail { background: #fffaeb; color: #855b19; border-left-color: #cc9638; }
.dashboard-tasks .task-progress-refresh-error[hidden] { display: none; }
.dashboard-tasks .task-progress-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; color: #667085; font-size: 11px; font-variant-numeric: tabular-nums; }
.dashboard-tasks .task-progress-history { margin-top: 22px; }
.dashboard-tasks .task-progress-history h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0; }
.dashboard-tasks .task-progress-history h3 small { margin-left: 8px; color: #667085; font-size: 11px; font-weight: 400; }
.dashboard-tasks .task-progress-history-summary { margin: 5px 0; font-size: 12px; }
.dashboard-tasks .task-progress-history-limit { margin: 3px 0 0; font-size: 11px; color: #667085; }
.dashboard-tasks .task-progress-empty { margin: 0; padding: 22px 0; color: #667085; }
@keyframes dashboard-task-pulse { from { transform: translateX(0); } to { transform: translateX(212%); } }
@media(max-width:480px) {
  .dashboard-task-dialog .modal-form > .panel-body { padding: 16px; }
  .dashboard-task-dialog .panel-head, .dashboard-task-dialog .modal-footer { padding: 14px 16px; }
  .dashboard-tasks .task-progress-heading { align-items: flex-start; }
}
@media(prefers-reduced-motion:reduce) {
  .dashboard-tasks .task-progress-track.is-indeterminate > span { animation: none; }
}
