/* Activity uses the workspace palette and a compact, readable layout. */
:root { color-scheme: dark; --bg: #0c0f16; --panel: #121722; --line: #293143; --text: #e1e5ee; --muted: #a0aac0; --ready: #aa9cff; --verified: #5dcbaa; --progress: #e4b96b; --focus-ring: #aa9cff; --primary-text: #211936; --control-min: 44px; }
:root[data-theme="light"] { color-scheme: light; --bg: #f5f6fa; --panel: #ffffff; --line: #c5cbd8; --text: #202537; --muted: #535e73; --ready: #6145bd; --verified: #147753; --progress: #805800; --focus-ring: #6145bd; --primary-text: #ffffff; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); padding: 0 0 40px; font: 14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--ready); }
button, .btn { font: inherit; min-height: var(--control-min); padding: 11px 15px; cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; border-radius: 6px; }
.history-nav { min-height: 64px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 12px max(24px,calc((100% - 1080px) / 2)); gap: 20px; }
.history-brand { font-size: 13px; font-weight: 650; letter-spacing: .06em; white-space: nowrap; }
.history-brand span { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 9px; border-radius: 8px; background: var(--ready); color: var(--primary-text); font-size: 21px; }
.history-nav nav { display: flex; gap: 24px; font-size: 12px; }
.history-nav a { color: var(--muted); text-decoration: none; }
.history-nav [aria-current] { color: var(--text); }
.wrap { max-width: 1080px; padding: 32px 0 0; margin: 0 auto; }
.brand { color: var(--ready); font-size: 10px; letter-spacing: .15em; margin-bottom: 10px; }
h1 { font-size: 30px; font-weight: 600; letter-spacing: -.035em; margin: 0 0 8px; line-height: 1.2; }
.sub { color: var(--muted); font-size: 14px; max-width: 660px; margin: 0 0 22px; }
.auth { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 14px 18px; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.auth > span { flex: 1; min-width: 180px; }
.auth button { background: var(--ready); color: var(--primary-text); border: 1px solid var(--ready); border-radius: 7px; font-weight: 600; font-size: 12px; }
.auth-note { flex-basis: 100%; font-size: 11px; color: var(--muted); }
.empty { display: grid; grid-template-columns: 48px 1fr auto; gap: 4px 18px; align-items: center; padding: 30px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(110deg,#a99aff08,transparent 60%); }
.empty-icon { grid-row: 1 / 3; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #a99aff40; border-radius: 12px; color: var(--ready); background: #a99aff0a; font-size: 24px; }
.empty h2 { grid-column: 2; font-size: 18px; font-weight: 500; letter-spacing: -.02em; color: var(--text); margin: 0; }
.empty p { grid-column: 2; max-width: 440px; font-size: 13px; color: var(--muted); margin: 0; }
.empty .btn { grid-column: 3; grid-row: 1 / 3; display: inline-flex; align-items: center; text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 7px; font-size: 12px; white-space: nowrap; }
.row { display: block; color: inherit; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin-bottom: 12px; }
.row:hover, .empty .btn:hover { border-color: var(--ready); }
.row-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; }
.row-title { font-weight: 500; overflow-wrap: anywhere; }
.row-status { font-size: 11px; color: var(--ready); background: #aa9cff0d; border: 1px solid #aa9cff40; padding: 3px 9px; border-radius: 6px; }
.row-sub { margin-top: 6px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.row-action { font-size: 12px; color: var(--ready); margin-top: 12px; }
.evidence { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-top: 12px; }
.evidence-badge { font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 5px; border: 1px solid currentColor; }
.evidence-detail { font-size: 11px; color: var(--muted); flex: 1 1 12ch; }
.evidence--verified { color: var(--verified); }
.evidence--verified .evidence-badge { background: #5dcbaa14; }
.evidence--attributed { color: var(--ready); }
.evidence--observed, .evidence--none { color: var(--muted); }
.evidence--marked { color: var(--progress); }
.evidence--none .evidence-badge { border-style: dashed; }
.back { font-size: 12px; margin-top: 20px; display: inline-block; text-decoration: none; }
.note { font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 24px; }
@media (max-width: 1130px) { .wrap { margin: 0 24px; } }
@media (max-width: 720px) {
  .history-nav { padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
  .history-nav nav { gap: 18px; }
  .wrap { margin: 0 16px; padding-top: 24px; }
  h1 { font-size: 28px; }
  .empty { grid-template-columns: 40px 1fr; gap: 8px 14px; padding: 22px 18px; }
  .empty-icon { width: 40px; height: 40px; }
  .empty .btn { grid-column: 2; grid-row: auto; justify-self: start; margin-top: 10px; }
  .empty h2 { font-size: 17px; }
  .auth { padding: 14px; }
  .auth > span { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
