/* =========================================================================
   Compass — design tokens & global styles
   Direction: "chart room / navigation instrument" — deep teal-charcoal +
   brass accent (evokes a compass needle / surveying tools), cool paper-grey
   canvas, white cards. Deliberately avoids the cream+serif+terracotta and
   near-black+acid-green defaults, and the generic indigo/slate SaaS look.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  /* --- surfaces --- */
  --deep: #12242B;
  --deep-2: #1C3540;
  --deep-3: #24424F;
  --canvas: #EEF1F3;
  --card: #FFFFFF;
  --hairline: #DCE1E4;
  --hairline-dark: #2B4854;

  /* --- accent (brass / compass needle) --- */
  --brass: #B8823C;
  --brass-light: #E4B372;
  --brass-dark: #8C6329;
  --brass-wash: #FBF3E7;

  /* --- text --- */
  --ink: #16232A;
  --ink-soft: #384752;
  --muted: #5B6B76;
  --muted-2: #8695A0;
  --on-dark: #EAF1F4;
  --on-dark-muted: #9FB4BD;

  /* --- semantic status --- */
  --hot: #C1462B;
  --hot-wash: #FCEAE5;
  --warm: #B8823C;
  --warm-wash: #FBF3E7;
  --cold: #4A7A96;
  --cold-wash: #EAF1F5;
  --success: #2F7D5C;
  --success-wash: #E7F3EE;
  --danger: #B33A3A;
  --danger-wash: #FBEAEA;

  /* --- type --- */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  /* --- misc --- */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(18, 36, 43, 0.06);
  --shadow: 0 4px 16px rgba(18, 36, 43, 0.08);
  --shadow-lg: 0 12px 32px rgba(18, 36, 43, 0.14);
  --sidebar-width: 232px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

h1 { font-size: 1.9rem; font-weight: 600; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 0.75rem 0; }
a { color: var(--brass-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

::selection { background: var(--brass-light); color: var(--deep); }

/* visible keyboard focus everywhere — accessibility floor */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* =========================================================================
   App shell
   ========================================================================= */

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--deep);
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 20;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.35rem 1.25rem 1.1rem;
}

.sidebar-brand .mark { width: 30px; height: 30px; flex-shrink: 0; }
.sidebar-brand .wordmark {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--on-dark);
  letter-spacing: -0.01em;
}
.sidebar-brand .wordmark span { color: var(--brass-light); }

.sidebar-nav { padding: 0.5rem 0.75rem; flex: 1; }
.sidebar-section-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--on-dark-muted);
  padding: 1rem 0.75rem 0.35rem;
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--on-dark-muted);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 2px;
  transition: background 0.12s ease, color 0.12s ease;
}
.nav-item:hover { background: var(--deep-2); color: var(--on-dark); text-decoration: none; }
.nav-item.active { background: var(--deep-3); color: var(--brass-light); }
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; opacity: 0.9; }
.nav-item .count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255,255,255,0.08);
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
}
.nav-item.active .count { background: rgba(184, 130, 60, 0.25); color: var(--brass-light); }

.sidebar-foot {
  padding: 0.9rem 1.25rem 1.1rem;
  border-top: 1px solid var(--hairline-dark);
  font-size: 0.74rem;
  color: var(--on-dark-muted);
}

.main-area {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.page-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 2rem;
  background: var(--canvas);
  position: sticky;
  top: 0;
  z-index: 10;
}

.page-topbar .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  margin-bottom: 0.15rem;
  display: block;
}

.page-content { padding: 0 2rem 3rem; flex: 1; }

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.2s ease; }
  .sidebar.open { transform: translateX(0); }
  .main-area { margin-left: 0; }
  .page-content, .page-topbar { padding-left: 1rem; padding-right: 1rem; }
}

/* =========================================================================
   Cards / surfaces
   ========================================================================= */

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 1.25rem 1.4rem; }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--hairline);
}
.card-header h3 { font-size: 1rem; }
.card-header .subtitle { color: var(--muted); font-size: 0.8rem; margin-top: 0.1rem; }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 700px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* =========================================================================
   KPI stat cards
   ========================================================================= */

.kpi-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.3rem;
  position: relative;
  overflow: hidden;
}
.kpi-label {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.kpi-value {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}
.kpi-sub { font-size: 0.78rem; color: var(--muted-2); margin-top: 0.35rem; }
.kpi-sub.up { color: var(--success); }
.kpi-sub.down { color: var(--hot); }

/* =========================================================================
   Buttons
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.12s ease;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 15px; height: 15px; }

.btn-primary { background: var(--brass); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brass-dark); }

.btn-dark { background: var(--deep); color: var(--on-dark); }
.btn-dark:hover:not(:disabled) { background: var(--deep-2); }

.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--hairline); }
.btn-secondary:hover:not(:disabled) { border-color: var(--brass); color: var(--brass-dark); }

.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover:not(:disabled) { background: rgba(0,0,0,0.045); color: var(--ink); }

.btn-danger { background: var(--card); color: var(--danger); border-color: var(--danger-wash); }
.btn-danger:hover:not(:disabled) { background: var(--danger-wash); }

.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.78rem; }
.btn-icon { padding: 0.4rem; }

/* =========================================================================
   Badges
   ========================================================================= */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  line-height: 1.5;
  white-space: nowrap;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; }

.badge-hot { background: var(--hot-wash); color: var(--hot); }
.badge-hot .badge-dot { background: var(--hot); }
.badge-warm { background: var(--warm-wash); color: var(--brass-dark); }
.badge-warm .badge-dot { background: var(--brass); }
.badge-cold { background: var(--cold-wash); color: var(--cold); }
.badge-cold .badge-dot { background: var(--cold); }
.badge-success { background: var(--success-wash); color: var(--success); }
.badge-success .badge-dot { background: var(--success); }
.badge-danger { background: var(--danger-wash); color: var(--danger); }
.badge-danger .badge-dot { background: var(--danger); }
.badge-neutral { background: #EEF1F3; color: var(--muted); border: 1px solid var(--hairline); }

/* =========================================================================
   Avatars
   ========================================================================= */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
.avatar-sm { width: 28px; height: 28px; font-size: 0.7rem; }
.avatar-md { width: 38px; height: 38px; font-size: 0.85rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.2rem; }

/* =========================================================================
   Tables
   ========================================================================= */

.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.data-table thead th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}
.data-table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
}
.data-table tbody tr { transition: background 0.1s ease; }
.data-table tbody tr:hover { background: #FAFBFC; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.row-link { cursor: pointer; }

/* =========================================================================
   Forms
   ========================================================================= */

label.field-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 0.35rem; }
.field-hint { font-size: 0.76rem; color: var(--muted-2); margin-top: 0.3rem; }

.form-control, select.form-control, textarea.form-control {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.86rem;
  background: #fff;
  color: var(--ink);
}
.form-control:focus { outline: 2px solid var(--brass); outline-offset: 0; border-color: var(--brass); }
textarea.form-control { resize: vertical; min-height: 90px; }
.field-group { margin-bottom: 1.1rem; }

/* =========================================================================
   Kanban (Deals pipeline)
   ========================================================================= */

.kanban-board {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}
.kanban-col {
  min-width: 260px;
  width: 260px;
  flex-shrink: 0;
  background: rgba(0,0,0,0.02);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 220px);
}
.kanban-col-head {
  padding: 0.85rem 1rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.kanban-col-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.kanban-col-title { font-weight: 600; font-size: 0.85rem; flex: 1; }
.kanban-col-value { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.kanban-col-body { padding: 0 0.6rem 0.6rem; overflow-y: auto; flex: 1; }

.deal-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.55rem;
  cursor: grab;
  transition: box-shadow 0.12s ease, transform 0.12s ease;
}
.deal-card:hover { box-shadow: var(--shadow); }
.deal-card.dragging { opacity: 0.5; }
.deal-card .deal-title { font-weight: 600; font-size: 0.85rem; margin-bottom: 0.35rem; }
.deal-card .deal-company { font-size: 0.76rem; color: var(--muted); margin-bottom: 0.5rem; }
.deal-card .deal-value { font-family: var(--font-mono); font-weight: 600; font-size: 0.9rem; }
.deal-card .deal-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.5rem; }

/* =========================================================================
   Timeline
   ========================================================================= */

.timeline { position: relative; padding-left: 1.6rem; }
.timeline::before {
  content: ''; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 2px; background: var(--hairline);
}
.timeline-item { position: relative; padding-bottom: 1.15rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -1.6rem; top: 2px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--brass); border: 2px solid var(--card);
  box-shadow: 0 0 0 1px var(--hairline);
}
.timeline-time { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted-2); }
.timeline-desc { font-size: 0.86rem; margin-top: 0.15rem; }
.timeline-type-tag { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; margin-right: 0.4rem; }

/* =========================================================================
   Empty states
   ========================================================================= */

.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--muted); }
.empty-state svg { width: 44px; height: 44px; color: var(--muted-2); margin-bottom: 0.75rem; }
.empty-state h3 { color: var(--ink-soft); margin-bottom: 0.35rem; }
.empty-state p { max-width: 380px; margin-left: auto; margin-right: auto; }

/* =========================================================================
   Modal / dialog
   ========================================================================= */

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(18, 36, 43, 0.45);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 4vh 1rem; z-index: 100; overflow-y: auto;
}
.modal-panel {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
}
.modal-panel.wide { max-width: 760px; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--hairline);
}
.modal-body { padding: 1.3rem 1.4rem; }
.modal-foot {
  padding: 1rem 1.4rem; border-top: 1px solid var(--hairline);
  display: flex; justify-content: flex-end; gap: 0.6rem;
}

/* =========================================================================
   Toast
   ========================================================================= */

.toast-stack { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 200; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
  background: var(--deep); color: var(--on-dark); padding: 0.7rem 1.1rem; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); font-size: 0.85rem; display: flex; align-items: center; gap: 0.5rem;
  animation: toast-in 0.18s ease;
}
.toast.error { background: var(--danger); }
.toast.success { background: var(--success); }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================================================
   Score ring / pill
   ========================================================================= */

.score-pill {
  font-family: var(--font-mono); font-weight: 600; font-size: 0.78rem;
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.15rem 0.5rem; border-radius: 999px;
}

/* =========================================================================
   Compass rose signature motif
   ========================================================================= */

.compass-watermark {
  position: absolute;
  right: -30px;
  top: -30px;
  width: 220px;
  height: 220px;
  opacity: 0.05;
  pointer-events: none;
}

/* =========================================================================
   Simple SVG charts
   ========================================================================= */

.chart-bar-track { fill: var(--hairline); }
.chart-bar-fill { fill: var(--brass); }
.chart-axis-label { font-family: var(--font-mono); font-size: 9px; fill: var(--muted-2); }
.chart-line { fill: none; stroke: var(--brass); stroke-width: 2; }
.chart-dot { fill: var(--brass); }

/* =========================================================================
   Utility
   ========================================================================= */

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.35rem; }
.gap-2 { gap: 0.65rem; }
.gap-3 { gap: 1rem; }
.text-muted { color: var(--muted); }
.text-sm { font-size: 0.82rem; }
.text-xs { font-size: 0.74rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.w-full { width: 100%; }
.rotate-180 { transform: rotate(180deg); }

.section-title-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.1rem; }
.section-title-row h1 { margin-bottom: 0.2rem; }
.section-title-row .desc { color: var(--muted); font-size: 0.88rem; }

.tab-row { display: flex; gap: 0.3rem; border-bottom: 1px solid var(--hairline); margin-bottom: 1.25rem; }
.tab-item {
  padding: 0.6rem 0.2rem; margin-right: 1.2rem; font-size: 0.86rem; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; cursor: pointer;
}
.tab-item.active { color: var(--ink); border-color: var(--brass); }

.pipeline-bar-track { height: 8px; border-radius: 999px; background: var(--hairline); overflow: hidden; }
.pipeline-bar-fill { height: 100%; border-radius: 999px; }

/* =========================================================================
   Public portal pages (client-facing — calmer, document-like, no app chrome)
   ========================================================================= */

.portal-page-wrapper { background: #F6F5F1; min-height: 100vh; }

.portal-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
}
@media (max-width: 800px) { .portal-shell { grid-template-columns: 1fr; padding: 1.5rem 1rem 4rem; } }

.portal-side { position: sticky; top: 2rem; align-self: start; }
.portal-side-nav a {
  display: block; padding: 0.35rem 0; font-size: 0.82rem; color: var(--muted);
  border-left: 2px solid transparent; padding-left: 0.7rem; margin-left: -0.05rem;
}
.portal-side-nav a:hover, .portal-side-nav a.active { color: var(--brass-dark); border-color: var(--brass); text-decoration: none; }

.portal-brandline { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 2rem; }
.portal-brandline .mark { width: 22px; height: 22px; }
.portal-brandline .label { font-size: 0.82rem; color: var(--muted); }
.portal-live-badge {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; font-weight: 600;
  color: var(--success); background: var(--success-wash); padding: 0.2rem 0.6rem; border-radius: 999px;
}
.portal-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); animation: pulse-dot 1.8s infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.portal-title-block { margin-bottom: 2.5rem; }
.portal-eyebrow { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); margin-bottom: 0.5rem; }
.portal-title-block h1 { font-size: 2.1rem; }
.portal-prepared-for { color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; }

.portal-section { margin-bottom: 2.75rem; scroll-margin-top: 2rem; }
.portal-section h2 { font-size: 1.3rem; margin-bottom: 0.9rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--hairline); }
.portal-section-content { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.7; }
.portal-section-content ul, .portal-section-content ol { padding-left: 1.3rem; }
.portal-section-content li { margin-bottom: 0.35rem; }

.portal-metrics-row { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.1rem 0 1.4rem; }
.portal-metric-card {
  background: var(--brass-wash); border: 1px solid #EED9B8; border-radius: var(--radius);
  padding: 0.85rem 1.15rem; min-width: 130px;
}
.portal-metric-value { font-family: var(--font-mono); font-size: 1.35rem; font-weight: 600; color: var(--brass-dark); }
.portal-metric-label { font-size: 0.76rem; color: var(--muted); margin-top: 0.15rem; }
.portal-metric-sub { font-size: 0.7rem; color: var(--success); margin-top: 0.1rem; }

.portal-comments { border-top: 1px solid var(--hairline); padding-top: 1.5rem; margin-top: 2.5rem; }
.portal-comment { display: flex; gap: 0.7rem; margin-bottom: 1rem; }
.portal-comment-body { background: var(--canvas); border-radius: var(--radius); padding: 0.6rem 0.85rem; flex: 1; }
.portal-comment-author { font-weight: 600; font-size: 0.82rem; }
.portal-comment-time { font-size: 0.72rem; color: var(--muted-2); margin-left: 0.4rem; }
.portal-comment-text { font-size: 0.86rem; margin-top: 0.15rem; }

.portal-footer { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--hairline); font-size: 0.78rem; color: var(--muted-2); display: flex; justify-content: space-between; }
