/* A lighter Dashboard experiment; other pages retain their existing controls. */
body .dashboard-controls-compact.tlpt-control-deck {
  margin: 14px 0 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
body .dashboard-controls-compact .dashboard-button-groups {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,2fr);
  align-items: start;
  gap: 16px;
}
body .dashboard-controls-compact.tlpt-control-deck .dashboard-category-tabs {
  grid-column: 1 / -1;
  grid-template-columns: repeat(5,minmax(0,1fr));
}
body .dashboard-controls-compact .dashboard-category-tab { padding: 12px; }
body .dashboard-controls-compact #dashboard-category-coffee > span[aria-hidden="true"] {
  inline-size:auto;
  min-inline-size:0;
  block-size:auto;
  border:0;
  background:none;
}
body .dashboard-controls-compact #dashboard-category-coffee .coffee-icon { font-size:1.5rem; }
body .dashboard-controls-compact .dashboard-metric-selector { max-width: none; }
body .dashboard-controls-compact .dashboard-metric-select-wrap { display: block; }
[data-dashboard-metric-group="coffee"] { min-height: 0; }
body .dashboard-controls-compact [data-dashboard-metric-group="coffee"] > label,
body .dashboard-controls-compact [data-dashboard-metric-group="coffee"] .dashboard-metric-select-wrap { display: none; }
body .dashboard-controls-compact .dashboard-metric-icon { display: none; }
.dashboard-event-filters { min-width: 0; }
body .dashboard-controls-compact .stat-scope { margin: 0; padding: 0; border: 0; }
body .dashboard-controls-compact .stat-scope-controls { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
body .dashboard-controls-compact .stat-scope-feedback { margin-top: 4px; gap: 0 12px; align-items: center; justify-content: flex-start; }
body .dashboard-controls-compact .stat-scope-summary { font-size: .8rem; }
body .dashboard-controls-compact .stat-scope-help { display: none; }
body .dashboard-controls-compact .stat-scope-help > summary { font-size: .8rem; font-weight: 500; }
body .dashboard-controls-compact [data-stat-reset] { min-height: 44px; padding: 6px 10px; border: 0; background: none; box-shadow: none; }
body .dashboard-controls-compact .dashboard-studio-strip {
  display: block; margin-top: 4px; padding-top: 10px;
  color: #c3d1dd; font-size: .9rem; line-height: 1.5; font-weight: 500;
}
body .dashboard-controls-compact .stat-career-note { margin: 12px 0 8px; color: #d7b4fa; font-size: .84rem; }
.dashboard-summary-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; margin-top: 8px; border-top: 1px solid #34414d; }
body .dashboard-controls-compact .dashboard-summary-row .dashboard-studio-strip { border: 0; padding-top: 6px; flex: 1 1 420px; }
.dashboard-help-button { min-height: 44px; padding: 8px 0; border: 0; background: none; color: #ffcf70; font: inherit; font-size: .84rem; font-weight: 650; cursor: pointer; }
.dashboard-help-dialog { width: min(720px, calc(100% - 32px)); max-height: min(85dvh,900px); box-sizing: border-box; padding: 0 24px 24px; border: 1px solid #786132; border-radius: 18px; background: #111b24; color: #d5dfe8; box-shadow: 0 24px 80px #0009; overflow: auto; }
.dashboard-help-dialog::backdrop { background: #03080dd9; }
.dashboard-help-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; padding: 20px 0 14px; background: #111b24; border-bottom: 1px solid #34414d; z-index: 1; }
.dashboard-help-header h2 { color: #fff; font-size: 1.25rem; line-height: 1.3; margin: 0; }
.dashboard-help-header .btn { flex-shrink: 0; min-height: 44px; }
.dashboard-help-dialog h3 { margin: 24px 0 8px; color: #ffcf70; font-size: 1rem; }
.dashboard-help-dialog p, .dashboard-help-dialog dd { font-size: .94rem; line-height: 1.6; }
.dashboard-help-dialog dt { margin: 16px 0 4px; font-weight: 750; color: #f3f6f8; }
.dashboard-help-dialog dd { margin: 0; }
.dashboard-help-dialog .dashboard-help-selected { color: #ffcf70; }
.dashboard-help-dialog details { margin-top: 18px; padding: 8px 12px; border: 1px solid #40505f; border-radius: 10px; }
.dashboard-help-dialog summary { min-height: 44px; align-content: center; cursor: pointer; font-size: .9rem; color: #e4ecf3; }
.dashboard-help-dialog :focus-visible { outline: 2px solid #ffcf70; outline-offset: 3px; }
.dashboard-narration { margin: 18px 0; padding: 14px 16px; border: 1px solid #635434; border-radius: 12px; background: #19232b; }
.dashboard-help-dialog .dashboard-narration h3 { margin: 0 0 6px; }
.dashboard-help-dialog .dashboard-narration p { margin: 6px 0 12px; font-size: .85rem; }
.dashboard-narration audio { display: block; width: 100%; max-width: 440px; min-height: 44px; }
.dashboard-help-dialog .dashboard-narration .dashboard-narration-status { margin-bottom: 0; color: #ffcf70; }
@media (max-width:700px) {
  .dashboard-help-dialog { padding: 0 16px 16px; }
  .dashboard-help-header h2 { font-size: 1.1rem; }
}
.dashboard-filter-toggle {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px; align-items: center;
  width: 100%; min-height: 52px; padding: 10px 0; text-align: left;
  border: 0; border-top: 1px solid #34414d; border-radius: 0; color: #f4f7fa; background: none; font: inherit; cursor: pointer;
}
.dashboard-filter-toggle > span:first-child { font-size: .9rem; font-weight: 750; }
.dashboard-filter-toggle [data-dashboard-filter-label] { grid-column: 1; color: #aebfce; font-size: .8rem; }
.dashboard-filter-toggle::after { content: "+"; grid-column: 2; grid-row: 1 / 3; color: #ffcf70; font-size: 1.4rem; }
.dashboard-filter-toggle[aria-expanded="true"]::after { content: "−"; }
.dashboard-filter-toggle.is-filtered [data-dashboard-filter-label] { color: #ffcf70; }
.dashboard-controls-compact [hidden] { display: none !important; }
@media (max-width:700px) {
  body .dashboard-controls-compact.tlpt-control-deck { margin: 12px 0 16px; padding: 0; }
  body .dashboard-controls-compact .dashboard-button-groups { grid-template-columns: minmax(0,1fr); gap: 12px; }
  body .dashboard-controls-compact.tlpt-control-deck .dashboard-category-tabs {
    grid-template-columns: repeat(6,minmax(0,1fr));
    gap: 8px;
  }
  body .dashboard-controls-compact .dashboard-category-tab { grid-column: span 2; }
  body .dashboard-controls-compact .dashboard-category-tab:nth-child(-n+2) { grid-column: span 3; }
  body .dashboard-controls-compact .dashboard-category-tab {
    padding: 9px 4px;
    font-size: .75rem;
    letter-spacing: .02em;
  }
  body .dashboard-controls-compact .dashboard-category-tab > span[aria-hidden="true"] { display: none; }
  body .dashboard-controls-compact #dashboard-category-coffee {
    flex-direction:column;
    gap:4px;
    padding:6px 4px;
    line-height:1.15;
  }
  body .dashboard-controls-compact #dashboard-category-coffee > span[aria-hidden="true"] {
    display:flex;
  }
  body .dashboard-controls-compact .stat-scope { padding: 10px 0 4px; }
  body .dashboard-controls-compact .stat-scope-controls { gap: 12px; }
  body .dashboard-controls-compact .stat-scope-help { margin-left: 0; }
  body .dashboard-controls-compact .dashboard-studio-strip { margin-top: 8px; }
}
@media (max-width:380px) {
  body .dashboard-controls-compact .stat-scope-controls { grid-template-columns: minmax(0,1fr); }
}
