/* Activity for auditing (Art and Conner, 2026-11-10), condensed like the
   Profile (Conner, 2026-11-10): the numbers are one tight strip, search and
   one Filters button share a row, and the receipts start right under the
   kind chips. Loaded after style.css, so these sit on top of its .act-* rules. */

/* The numbers at the top are buttons: a tap filters to that kind. */
.act-nums { display: flex; flex-wrap: nowrap; gap: 6px; margin: 10px 0 6px; }
/* Text keeps clear of the 20px corners (Conner, 2026-11-16: padding issues). */
.act-nums .act-num { flex: 1 1 0; min-width: 0; width: auto; padding: 12px var(--pad-tile); text-align: left; border: 1.5px solid transparent; box-shadow: none; font: inherit; cursor: pointer; }
.act-nums .act-num b { font-size: 20px; }
.act-nums .act-num span { display: block; margin-top: 2px; font-size: 11px; line-height: 1.2; overflow-wrap: anywhere; }
.act-nums .act-num:hover { border-color: var(--line-strong); }
.act-nums .act-num.on { border-color: var(--ink); }
.act-nums .act-num:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.act-nums + .small { margin: 0 0 6px; font-size: 12px; }

/* Search and the Filters button share a row. The three pickers open under
   it over the list, so they never push the receipts down. */
.act-tools { position: relative; display: flex; align-items: center; gap: 8px; margin: 8px 0 0; }
.act-q { flex: 1 1 0; min-width: 0; width: auto; box-sizing: border-box; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); color: var(--ink); font: 400 15px var(--sans); }
.act-filter { flex: none; }
.act-filter-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; box-sizing: border-box; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); color: var(--ink); font: 600 14px var(--sans); cursor: pointer; list-style: none; user-select: none; }
.act-filter-btn::-webkit-details-marker { display: none; }
.act-filter[open] > .act-filter-btn { border-color: var(--ink); }
.act-filter-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.act-filter-n { min-width: 18px; padding: 1px 6px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font: 700 11px var(--sans); text-align: center; }
.act-picks { position: absolute; z-index: 5; top: calc(100% + 6px); right: 0; width: min(340px, 100%); box-sizing: border-box; display: grid; gap: 10px; padding: 14px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18); }
.act-pick { display: grid; gap: 4px; min-width: 0; }
.act-pick > span { font: 700 11px var(--sans); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.act-pick select { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); color: var(--ink); font: 500 14px var(--sans); }

/* Kind chips, each with how many. */
.act-kinds { margin-top: 10px; }
.act-kinds button { display: inline-flex; align-items: center; gap: 6px; }
.act-kn { font-size: 12px; font-weight: 600; color: var(--muted); }
.act-kinds button.on .act-kn { color: inherit; opacity: 0.75; }

.act-count { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.act-clear { width: auto; padding: 0; border: none; background: none; box-shadow: none; color: var(--ink); font: 600 13px var(--sans); text-decoration: underline; cursor: pointer; }
.act-none { display: grid; gap: 10px; justify-items: start; margin-top: 16px; font-size: 14px; color: var(--muted); }
.act-none p { margin: 0; }

/* Each row: who and where under its title, then whether the rules held. */
.act-meta { display: block; padding: 3px 0 0 21px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.act-held { display: block; padding: 4px 0 0 21px; font-size: 13px; font-weight: 600; }
.act-held.ok { color: #0A7A45; }
.act-held.bad { color: var(--red); }
html.dark .act-held.ok { color: var(--ok-ink, #3DD68C); }

/* Before anything has happened: what the page is for. */
.act-empty-card { margin-top: 16px; padding: 20px 22px; background: var(--card); border-radius: var(--radius); color: var(--body); font-size: 15px; }
.act-empty-card h3 { margin: 0 0 8px; font: 700 18px var(--head); color: var(--ink); }
.act-empty-card p { margin: 8px 0 0; max-width: 62ch; }

@media (max-width: 560px) {
  .act-nums { gap: 4px; }
  .act-nums .act-num { padding: 8px var(--pad-tile); border-radius: 10px; }
  .act-nums .act-num b { font-size: 17px; }
  .act-nums .act-num span { font-size: 10px; }
  /* One line of chips that scrolls sideways, not four rows of them. Held to
     the screen's width, with a thin bar and a fade on the right so it's
     clear there's more. The end padding lets the last chip clear the fade. */
  .act-kinds { flex-wrap: nowrap; overflow-x: auto; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; padding: 0 28px 6px 0; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  .act-kinds::-webkit-scrollbar { height: 4px; }
  .act-kinds::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
  .act-kinds button { flex: none; }
  .act-line { padding: 12px 14px; }
  .act-row { align-items: flex-start; }
  .act-empty-card { padding: 16px; }
}

/* Caught by (the learning loop, 2026-11-15): what held a draft back, the
   line it caught, and the fixes. */
.act-caught { display: flex; flex-direction: column; gap: 4px; padding: 6px 0; }
.act-caught + .act-caught { border-top: 1px solid var(--line, rgba(0, 0, 0, 0.08)); }
.act-caught.hidden { color: var(--muted, #6b7280); }
.act-caught-line { color: var(--muted, #6b7280); }
.act-caught-fix { display: flex; flex-wrap: wrap; gap: 6px; }
.act-fix { font: inherit; font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line, rgba(0, 0, 0, 0.15)); background: transparent; color: inherit; cursor: pointer; }
.act-fix:hover { background: var(--hover, rgba(0, 0, 0, 0.04)); }

/* Names in a row that open their page (2026-11-16): the person, the space
   and the job. Ink and underlined, like the rest of the app's links. */
.act-link { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
.act-link:hover, .act-link:focus-visible { text-decoration-color: currentColor; }
.act-meta .act-link { color: var(--ink); }

/* Learned, passive capture v2 (Datum change 120; mockup
   docs/mockups/passive-capture-v2.html): what the owner's AI picked up,
   grouped Contacts, Tasks and Facts, each row with its own buttons. */
.lg { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.lg-title, .tl-shell .lg-title { margin: 0; font: 700 20px/1.2 var(--head); color: var(--ink); text-transform: none; letter-spacing: normal; }
.lg-title.lg-held { margin: 8px 0 4px; font-size: 17px; }
.lg-sub { margin: -6px 0 2px; }
.lg-tabs { margin: 2px 0 4px; }
.td-card-s.lg-group { padding: 6px var(--pad-card) 10px; border-radius: 16px; }
.lg-head { display: flex; align-items: baseline; gap: 8px; padding: 12px 0 6px; }
.lg-head h3 { margin: 0; font: 700 16px var(--head); color: var(--ink); }
.lg-all { margin-left: auto; font-weight: 600; }
.lg-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.lg-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lg-t b { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.lg-t .small { color: var(--muted); }
.lg-acts { flex: none; display: flex; gap: 8px; }
.lg-more { align-self: flex-start; margin-top: 4px; padding-top: 10px; width: 100%; text-align: left; border-top: 1px solid var(--line); font-weight: 600; }
@media (max-width: 560px) {
  .lg-row { flex-wrap: wrap; }
  .lg-acts { width: 100%; }
}

/* Nimbus printouts in an AI's reply (change 123, printouts.js). */
.po-bubble { padding: 0 !important; background: none !important; box-shadow: none !important; }
.po-card { border: 1px solid var(--line-strong); border-radius: 14px; padding: 11px 13px; background: var(--card); color: var(--ink); max-width: 420px; }
.po-top { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; }
.po-tick { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; color: #fff; background: #12B76A; flex: none; }
.po-held .po-tick { background: #B54708; }
.po-no .po-tick, .po-fake .po-tick { background: #E5484D; }
.po-brand { color: var(--muted); font-weight: 600; }
.po-sum { margin-top: 3px; font-size: 13px; color: var(--muted); }
.po-refs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.po-ref { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; border: 1px solid var(--line-strong); border-radius: 8px; padding: 3px 7px; background: var(--page); color: var(--ink); }
button.po-ref { cursor: pointer; }
.po-ref.po-bad { border-color: #E5484D; color: #B42318; background: #FDECEC; }
.po-warn { margin-top: 8px; font-size: 13px; color: #B42318; }
.po-code { margin-top: 8px; font: 600 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.po-look { border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.po-look.po-bad { background: #FDECEC; color: #8A1C1F; }
.po-look.po-bad b { display: block; color: #5C0F12; }
.act-po { display: block; padding: 4px 0 0 21px; }
.act-po .po-ref { margin-right: 6px; }
.act-meta .po-code-in { font: 600 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
