/* appusage — ONLY additions on top of the canonical nha-ai design.css.
   The shell (.shell-header/.shell-curve/.shell-content), .tabs, .kpi-row/.kpi,
   .data-table and all tokens come from https://nha-ai.com/shared/design.css —
   do NOT redefine them here. */

[hidden] { display: none !important; }            /* beat component display rules (drawer/views) */

/* header right cluster */
.shell-right { display: flex; align-items: center; gap: 12px; }
.au-local-badge {
  font-size: 11px; font-weight: 700; letter-spacing: .3px; color: #fff;
  background: rgba(255,255,255,.14); padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}

/* intro + footnote */
.au-lede { color: var(--ink-soft); font-size: var(--text-base, 16px); margin: 4px 0 20px; }
.au-foot { color: var(--ink-faint); font-size: var(--text-sm, 14px); margin-top: 12px; }

/* a plain ringed card for the activity-by-app panel */
.au-card {
  background: var(--surface); border-radius: var(--radius-xl, 16px);
  box-shadow: var(--ring, inset 0 0 0 1px var(--line)); padding: 20px 22px; margin-bottom: 20px;
}
.au-card h2 { margin: 0 0 14px; font-family: 'DM Sans', sans-serif; font-size: var(--text-xl, 22px); color: var(--nha-blue); }

/* activity-by-app bars (not a canonical pattern) */
.au-bar-row { display: grid; grid-template-columns: 140px 1fr 140px; align-items: center; gap: 12px; padding: 7px 0; }
.au-bar-name { font-weight: 600; font-size: 14px; }
.au-bar-track { background: var(--line-soft); border-radius: 6px; height: 12px; overflow: hidden; }
.au-bar-fill { height: 100%; background: linear-gradient(90deg, var(--nha-cyan), var(--nha-blue)); border-radius: 6px; }
.au-bar-meta { font-size: 13px; color: var(--ink-soft); text-align: right; }

/* filters wrapper + search */
.au-filters { margin-bottom: 16px; }
.au-search { width: 100%; max-width: 380px; padding: 10px 14px; min-height: 44px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg, 10px); font: inherit; background: var(--surface); }
.au-search:focus { outline: none; border-color: var(--nha-blue); box-shadow: 0 0 0 3px rgba(0,56,101,.18); }

/* tables: secondary text + chips (rows clickable) */
.au-tablewrap { overflow-x: auto; }
.data-table tbody tr { cursor: pointer; }
.au-sub { color: var(--ink-soft); font-size: 12.5px; }
.au-chip { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: var(--nha-cyan-dim); color: var(--nha-blue-mid); margin: 1px 2px 1px 0; }
.au-chip.muted { background: var(--line-soft); color: var(--ink-soft); }

/* drawer drill-down */
.au-drawer { position: fixed; inset: 0; background: rgba(17,17,24,.4); display: flex; justify-content: flex-end; z-index: 50; }
.au-drawer-panel { width: min(560px, 100%); background: var(--surface); height: 100%; overflow-y: auto;
  padding: 26px 28px; box-shadow: -8px 0 30px rgba(0,0,0,.12); }
.au-drawer-close { position: absolute; top: 14px; right: 18px; font-size: 26px; line-height: 1;
  background: none; border: 0; cursor: pointer; color: var(--ink-soft); min-height: 44px; min-width: 44px; }
.au-drawer h3 { margin: 0 0 4px; font-family: 'DM Sans', sans-serif; color: var(--nha-blue); font-size: var(--text-xl, 22px); }
.au-timeline { margin-top: 16px; }
.au-tl-row { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.au-tl-when { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.au-tl-imp { color: var(--nha-orange); font-weight: 700; font-size: 12px; margin-top: 2px; }

.au-empty { color: var(--ink-soft); padding: 24px 4px; font-style: italic; }

@media (max-width: 640px) {
  .au-local-badge { display: none; }
  .au-bar-row { grid-template-columns: 100px 1fr 84px; }
}
