/*
 * Portal view stylesheet (collaborator-facing).
 *
 * Spec: .claude/specs/meeting-domain-redesign/ FR-01.
 * Extracted from inline <style> at pwa/views/portal.js:44-75.
 * 2 hex literals (#fff button foreground × 2) tokenized via var(--color-on-primary).
 *
 * AUTH NOTE: this stylesheet ships under collaborator-context auth (the
 * portal tab is gated server + client-side via `meData.isCollaborator &&
 * allowed.has('portal')` per pwa/index.html line 4615). The redesign does
 * NOT alter auth semantics — pure CSS extraction + token migration.
 */

.ptl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
}

.ptl-header h1 {
  font-size: 22px;
  font-weight: 700;
}

.ptl-new-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  background: var(--link);
  color: var(--color-on-primary);
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-tight);
}

.ptl-filter-bar { padding: 8px 16px; }

.ptl-list {
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  gap: var(--space-snug);
}

/* Card body content (slotted into uxAccentCard). */
.ptl-card-meta {
  font-size: 13px;
  color: var(--hint);
  display: flex;
  gap: var(--space-sm);
}

.ptl-card-desc {
  font-size: 14px;
  color: var(--hint);
  margin-top: var(--space-base);
}

.ptl-card-host { cursor: pointer; }

.ptl-card-host:active { transform: scale(0.98); }

.ptl-detail { padding: var(--space-gutter); }

.ptl-detail-back {
  display: flex;
  align-items: center;
  gap: var(--space-base);
  font-size: 14px;
  color: var(--link);
  cursor: pointer;
  margin-bottom: var(--space-gutter);
  border: none;
  background: none;
  font-weight: 600;
}

.ptl-detail-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.ptl-detail-pill {
  display: inline-block;
  margin-bottom: var(--space-sm);
}

.ptl-detail-field {
  font-size: 14px;
  color: var(--hint);
  margin-bottom: var(--space-tight);
}

.ptl-detail-field b { color: var(--text); }

.ptl-timeline { margin-top: var(--space-wide); }

.ptl-timeline-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.ptl-comment-row {
  display: flex;
  gap: var(--space-base);
  margin-top: var(--space-gutter);
}

.ptl-comment-row input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--hint);
  font-size: 14px;
  background: var(--bg2);
  color: var(--text);
  outline: none;
}

.ptl-comment-row input:focus { border-color: var(--link); }

.ptl-comment-row button {
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--link);
  color: var(--color-on-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* Form fields inside the uxBottomSheet body. */
.ptl-form-group { margin-bottom: var(--space-gutter); }

.ptl-form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--hint);
  margin-bottom: var(--space-tight);
  display: block;
}

.ptl-form-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--hint);
  font-size: 15px;
  background: var(--bg2);
  color: var(--text);
  outline: none;
  box-sizing: border-box;
}

.ptl-form-input:focus { border-color: var(--link); }

.ptl-form-textarea {
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
}

.ptl-form-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--hint);
  font-size: 15px;
  background: var(--bg2);
  color: var(--text);
  outline: none;
  appearance: none;
}

.ptl-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  color: var(--hint);
}

/* ── meeting-domain-redesign Phase 2 sweep (2026-05-03) ─────────────────
   Fallback shells used when ux-primitives haven't loaded yet (offline
   first-paint / cold-cache). After base.css landed (2026-05-03), the
   no-args empty-fallback uses .base-empty-fallback directly via
   composition. Per-view classes here only declare DIFFERENCES from base.
*/

/* Activity-row fallback when uxAgendaItem isn't available. */
.ptl-activity-row-fallback {
  margin-bottom: var(--space-snug);
}
.ptl-activity-row-fallback-action {
  font-weight: 600;
}
.ptl-activity-row-fallback-detail {
  color: var(--hint);
  font-size: 13px;
}
.ptl-activity-row-fallback-time {
  color: var(--hint);
  font-size: 12px;
}
.ptl-activity-empty {
  color: var(--hint);
  font-size: 14px;
}

/* Detail field with extra top spacing (e.g. description block). */
.ptl-detail-field--with-gap {
  margin-top: var(--space-sm);
}

/* Form fallback shell when uxBottomSheet isn't loaded yet. */
.ptl-form-fallback {
  padding: var(--space-gutter);
}
