/* Accounts, contact reveal and activity (research/56). Kept in its own file,
   loaded after site.css, so the design pass on site.css merges cleanly.
   Semantic class names only; colors come from site.css tokens. */

/* ---- Contact block: Show phone ---- */
.contact-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.reveal-form { margin: 0; display: contents; }
.contact-actions .reveal-form { display: block; }
.reveal-out { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 44px; }
.reveal-out[hidden] { display: none; }
.reveal-number { font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.reveal-btn[hidden], .reveal-copy[hidden] { display: none !important; }
.reveal-number { white-space: nowrap; }
.listing-action-bar .reveal-form { display: flex; flex: 1.3 1 0; min-width: 0; }
.listing-action-bar .reveal-form .btn { flex: 1; min-width: 0; }
.listing-action-bar .reveal-out { justify-content: center; flex: 1; min-width: 0; }
.listing-action-bar .reveal-number { flex: 1; min-width: 0; font-size: 0.82rem; padding-inline: 2px; overflow: hidden; text-overflow: ellipsis; }
.reveal-page .reveal-number a { font-size: 1.6rem; }

/* ---- Vendor dashboard: tile definitions and weekly bars ---- */
.stat-tile .stat-def { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 4px; line-height: 1.3; }
.week-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 110px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.week-bar { display: flex; gap: 2px; align-items: flex-end; height: 100%; }
.week-bar span { display: block; flex: 1; min-height: 2px; border-radius: 3px 3px 0 0; }
.week-bar-views, .legend-views::before { background: var(--ink-2); }
.week-bar-clicks, .legend-clicks::before { background: var(--gold); }
.legend-views::before, .legend-clicks::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; }
.click-sources { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---- Listing: relay note, requested line, notes box ---- */
.relay-note { margin-bottom: 8px; }
.requested-line { font-weight: 600; color: var(--ink-2); margin: 6px 0 10px; }
.consent-line { margin-top: 10px; font-size: 0.85rem; }
.notes-box { margin-top: 28px; }
.notes-form textarea { width: 100%; min-height: 96px; }
.notes-form .btn { margin-top: 8px; }
.notes-status { margin-left: 8px; }
.me-badge { margin: 6px 6px 0 0; }

/* ---- Signup sheet (nudge.js): a bottom sheet on phones, a corner card on
   wider screens. No backdrop, no scroll lock, page stays usable. ---- */
.nudge-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  max-height: 45vh; overflow-y: auto;
  background: var(--surface); color: var(--text);
  border-top: 1px solid var(--line); border-radius: 16px 16px 0 0;
  box-shadow: 0 -6px 24px rgba(18, 63, 58, 0.16);
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
}
.has-action-bar .nudge-sheet { bottom: 64px; }
.nudge-title { font-size: 1.15rem; margin: 0 32px 6px 0; }
.nudge-title:focus { outline: none; }
.nudge-lead { margin: 0 0 10px; }
.nudge-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); }
.nudge-form input[type="email"] { width: 100%; }
.nudge-form .btn, .nudge-sheet .google-btn { margin-top: 8px; }
.nudge-marketing { font-size: 0.9rem; margin-top: 6px; }
.nudge-fine { font-size: 0.8rem; margin: 8px 0 0; }
.nudge-actions { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.nudge-never { border: 0; background: transparent; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 0.85rem; padding: 10px 0; }
.nudge-done { font-weight: 600; }
@media (min-width: 768px) {
  .nudge-sheet, .has-action-bar .nudge-sheet {
    left: auto; right: 24px; bottom: 24px; width: 360px; max-height: 80vh;
    border: 1px solid var(--line); border-radius: 12px;
  }
}
@media (min-width: 900px) {
  .has-action-bar .nudge-sheet { bottom: 24px; }
}

/* ---- Account pages ---- */
.account-layout { display: grid; grid-template-columns: 1fr; gap: 20px; }
.account-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.account-nav a { text-decoration: none; color: var(--ink); padding: 8px 2px; }
.account-nav a.active { font-weight: 700; border-bottom: 2px solid var(--clay); }
.account-signout { margin: 0 0 0 auto; }
@media (min-width: 900px) {
  .account-layout { grid-template-columns: 200px 1fr; }
  .account-nav { flex-direction: column; align-items: stretch; border-bottom: 0; border-right: 1px solid var(--line); padding: 0 16px 0 0; }
  .account-signout { margin: 16px 0 0; }
}
.account-summary { list-style: none; padding: 0; display: grid; gap: 8px; }
.account-form fieldset { border: 0; padding: 0; margin: 16px 0; }
.account-form legend { font-weight: 600; margin-bottom: 6px; }
.checkbox-columns { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 4px 12px; }
.saved-list { display: grid; gap: 16px; }
.saved-remove { margin-top: 6px; }
.request-log, .notes-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.request-item, .note-item { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 12px 14px; background: var(--surface); }
.request-copy, .note-body { white-space: pre-wrap; margin: 6px 0 0; }
.request-status { font-weight: 600; margin: 4px 0 0; }
.settings-block { margin: 24px 0; }
.value-list { padding-left: 20px; }
.value-list li { margin: 6px 0; }
.google-btn { margin-bottom: 12px; }

/* research/59 hand-off: the phone contact bar hides while the request form is
   on screen (tracker.js toggles .bar-away). */
.listing-action-bar { transition: transform .2s ease, visibility .2s; }
.listing-action-bar.bar-away { transform: translateY(110%); visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .listing-action-bar { transition: none; } }

/* rc-overnight merge: the design gives Request info twice the width, which
   clipped a revealed number. Once revealed, the number takes the most room
   and Website goes icon-only (its accessible name stays). */
@media (max-width: 900px) {
  .listing-action-bar:has(.reveal-out:not([hidden])) .reveal-form { flex: 2 1 0; }
  .listing-action-bar:has(.reveal-out:not([hidden])) .btn-primary { flex: 1.4 1 0; }
  .listing-action-bar:has(.reveal-out:not([hidden])) a[data-track="web"] { flex: 0 0 48px; padding-inline: 0; }
  .listing-action-bar:has(.reveal-out:not([hidden])) .bar-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .listing-action-bar .reveal-number { text-overflow: clip; font-size: 0.9rem; }
}
