/*
 * ManAIger V1 — Application Stylesheet
 * Financial Compliance aesthetic: systematic, diagnostic, infrastructure-grade
 */

/* ─── Design Tokens — Light mode (default) ───────────────────────── */
:root {
  --navy:           #0B1120;
  --navy-mid:       #111827;
  --navy-border:    #1E2D45;
  --app-bg:         #E8EDF4;
  --surface:        #FFFFFF;
  --surface-subtle: #F8FAFC;
  --accent:         #2F6BFF;
  --accent-dim:     #1A4FCC;
  --accent-muted:   #EEF3FF;
  --text-primary:   #0F172A;
  --text-secondary: #64748B;
  --text-muted:     #94A3B8;
  --text-on-navy:   #CBD5E1;
  --border:         #E2E8F0;
  --border-strong:  #CBD5E1;
  --risk-high:      #DC2626;
  --risk-high-bg:   #FEF2F2;
  --risk-medium:    #D97706;
  --risk-medium-bg: #FFFBEB;
  --risk-low:       #64748B;
  --risk-low-bg:    #F8FAFC;
  --font-sans:      'DM Sans', system-ui, sans-serif;
  --font-mono:      'DM Mono', ui-monospace, monospace;
  --radius:         6px;
  --radius-lg:      10px;
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --panel-shadow:   0 1px 3px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.06);
}

/* ─── Design Tokens — Dark mode ──────────────────────────────────── */
:root[data-theme="dark"] {
  --app-bg:           #0D1117;
  --surface:          #161D2F;
  --surface-subtle:   #1A2236;
  --accent-muted:     rgba(47, 107, 255, 0.14);
  --text-primary:     #F1F5F9;
  --text-secondary:   #94A3B8;
  --text-muted:       #4E607A;
  --border:           #253047;
  --border-strong:    #2D3F5A;
  --risk-high-bg:     rgba(220, 38, 38, 0.12);
  --risk-medium-bg:   rgba(217, 119, 6, 0.10);
  --risk-low-bg:      #1A2236;
  --panel-shadow:     0 1px 4px rgba(0,0,0,0.35), 0 6px 24px rgba(0,0,0,0.20);
  /* Badge overrides for dark mode */
  --badge-analyzed-bg:     rgba(34, 197, 94, 0.10);
  --badge-analyzed-color:  #86EFAC;
  --badge-analyzed-border: rgba(34, 197, 94, 0.22);
  --badge-clear-bg:        rgba(34, 197, 94, 0.10);
  --badge-clear-color:     #86EFAC;
  --badge-clear-border:    rgba(34, 197, 94, 0.22);
  --badge-ambiguous-color: #FCD34D;
  --badge-ambiguous-border: rgba(217, 119, 6, 0.30);
}

/* ─── Design Tokens — Light mode badge defaults ──────────────────── */
:root {
  --badge-analyzed-bg:     #F0FDF4;
  --badge-analyzed-color:  #15803D;
  --badge-analyzed-border: #BBF7D0;
  --badge-clear-bg:        #F0FDF4;
  --badge-clear-color:     #15803D;
  --badge-clear-border:    #BBF7D0;
  --badge-ambiguous-color: #92400E;
  --badge-ambiguous-border: #FDE68A;
}

/* ─── Reset & Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Auth Layout ────────────────────────────────────────────────── */
body.auth-layout {
  background: var(--navy);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
}

/* ─── App Layout ─────────────────────────────────────────────────── */
body.app-layout {
  background: var(--app-bg);
  min-height: 100vh;
  transition: background 0.2s var(--ease-out-quart);
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ─── Top Navigation ─────────────────────────────────────────────── */
.topnav {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topnav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topnav__left { display: flex; align-items: center; gap: 32px; }
.topnav__right { display: flex; align-items: center; gap: 16px; }

.topnav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.topnav__logo-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.topnav__logo-text {
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.topnav__links { display: flex; gap: 4px; }

.topnav__link {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 400;
  padding: 5px 10px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.topnav__link:hover { color: var(--text-on-navy); background: rgba(255,255,255,0.05); text-decoration: none; }
.topnav__link--active { color: #fff; }

.topnav__org {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.topnav__avatar {
  width: 28px;
  height: 28px;
  background: var(--navy-border);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-on-navy);
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: default;
  user-select: none;
}

.topnav__signout {
  background: none;
  border: 1px solid var(--navy-border);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  padding: 4px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.topnav__signout:hover { color: var(--text-on-navy); border-color: rgba(255,255,255,0.2); }

.topnav__theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: none;
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.topnav__theme-toggle:hover {
  color: var(--text-on-navy);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}

.topnav__theme-toggle .icon-sun,
.topnav__theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"]  .topnav__theme-toggle .icon-sun  { display: block; }
:root[data-theme="light"] .topnav__theme-toggle .icon-moon { display: block; }

/* ─── Flash Messages ─────────────────────────────────────────────── */
.flash {
  padding: 12px 24px;
  font-size: 0.875rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
}
.flash--alert {
  background: var(--risk-high-bg);
  color: var(--risk-high);
  border-color: #FECACA;
}
.flash--notice {
  background: var(--accent-muted);
  color: var(--accent);
  border-color: rgba(47, 107, 255, 0.25);
}

/* Auth flash renders as a fixed toast so it doesn't push the centered form */
.flash--toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: 420px;
  min-width: 280px;
  z-index: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  pointer-events: auto;
}

/* ─── Panel / Card ───────────────────────────────────────────────── */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--panel-shadow);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.panel--compact { padding: 24px; }

/* ─── Forms ──────────────────────────────────────────────────────── */
.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.form-input {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 9px 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.2s, color 0.2s;
  width: 100%;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
}
.form-input::placeholder { color: var(--text-muted); }

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius);
  padding: 9px 18px;
  cursor: pointer;
  border: none;
  transition: background 0.15s, opacity 0.15s, transform 0.08s var(--ease-out-quart);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover  { text-decoration: none; }
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: var(--accent-dim); color: #fff; }

.btn--secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn--secondary:hover { background: var(--surface-subtle); }

.btn--ghost {
  background: transparent;
  color: var(--accent);
  padding-left: 0;
  padding-right: 0;
}
.btn--ghost:hover { opacity: 0.75; }

.btn--full { width: 100%; }

.btn--sm {
  font-size: 0.8125rem;
  padding: 6px 12px;
}

/* ─── Auth Panel ─────────────────────────────────────────────────── */
.auth-panel {
  width: 100%;
  max-width: 400px;
  padding: 0 16px;
}

.auth-panel__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.auth-panel__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.auth-panel__kicker-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.auth-panel__logo-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.auth-panel__logo-text {
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.auth-panel__card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35), 0 12px 40px rgba(0,0,0,0.22);
  animation: fade-up 0.45s var(--ease-out-quart) both;
  animation-delay: 60ms;
}

.auth-panel__heading {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.auth-panel__subheading {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.auth-panel__form { display: flex; flex-direction: column; gap: 18px; }

.auth-panel__error {
  background: var(--risk-high-bg);
  border: 1px solid #FECACA;
  border-radius: var(--radius);
  color: var(--risk-high);
  font-size: 0.875rem;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-panel__error-title {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.auth-panel__error-list {
  margin: 0;
  padding-left: 18px;
}

.auth-panel__error-list li {
  margin: 3px 0;
}

.auth-input {
  position: relative;
  width: 100%;
}

.auth-input__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.15s var(--ease-out-quart);
}

.auth-input:focus-within .auth-input__icon {
  color: var(--accent);
}

.auth-input__control {
  padding-left: 42px;
}

.auth-help {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: -2px;
}

.auth-panel__footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.auth-panel__footer-link {
  color: var(--accent);
  font-weight: 500;
}

.auth-panel__divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.auth-panel__back {
  margin-bottom: 20px;
}

.auth-panel__back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.auth-panel__back-link:hover {
  color: var(--text-on-navy);
  text-decoration: none;
}

/* ─── Light Mode ─────────────────────────────────────────────── */
/* theme toggling handled via data-theme attribute — see layout JS */

/* ─── Focus & Accessibility ──────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ─── Reduced Motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Flash Dismiss ──────────────────────────────────────────── */
.flash { cursor: pointer; }

/* ─── Page Header ────────────────────────────────────────────── */
.page-header {
  margin-bottom: 28px;
  animation: fade-up 0.35s var(--ease-out-quart) both;
}

.page-header__title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 6px;
}

.page-header__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ─── Intake Panel ───────────────────────────────────────────── */
.intake-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  margin-bottom: 40px;
  overflow: hidden;
  box-shadow: var(--panel-shadow);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  animation: fade-up 0.45s var(--ease-out-quart) both;
  animation-delay: 60ms;
}

.intake-panel__primary   { padding: 36px; }
.intake-panel__secondary { padding: 36px; }

.intake-panel__sep {
  width: 1px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.intake-panel__or {
  font-size: 0.6875rem;
  color: var(--text-muted);
  background: var(--surface);
  padding: 6px 0;
  writing-mode: vertical-lr;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.intake-panel__track {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.intake-panel__heading {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.intake-panel__body {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 360px;
}

.intake-panel__limit {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .intake-panel {
    grid-template-columns: 1fr;
  }
  .intake-panel__sep {
    width: auto;
    height: 1px;
  }
  .intake-panel__or {
    writing-mode: horizontal-tb;
    padding: 0 8px;
  }
}

/* ─── Drop Zone ──────────────────────────────────────────────── */
.drop-zone {
  position: relative;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  margin-bottom: 16px;
  text-align: center;
  min-height: 116px;
}

.drop-zone:hover,
.drop-zone--over {
  border-color: var(--accent);
  background: var(--accent-muted);
}

.drop-zone:hover { transform: translateY(-1px); }

.drop-zone__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.drop-zone__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  width: 100%;
}

.drop-zone__icon {
  color: var(--text-muted);
  display: block;
  flex-shrink: 0;
}

.drop-zone__primary {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
}

.drop-zone__secondary {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.drop-zone__selected {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease-out-quart), transform 0.2s var(--ease-out-quart);
}

.drop-zone__selected--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Clause Textarea ────────────────────────────────────────── */
.clause-textarea {
  resize: vertical;
  min-height: 136px;
}

/* ─── Analyses Section ───────────────────────────────────────── */
.analyses-section {
  margin-top: 8px;
  animation: fade-up 0.5s var(--ease-out-quart) both;
  animation-delay: 120ms;
}

.analyses-section__title {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* ─── Analyses Table ─────────────────────────────────────────── */
.analyses-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--panel-shadow);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.analyses-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

.analyses-table thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 20px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.analyses-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-primary);
  vertical-align: middle;
}

.analyses-table tbody tr:last-child td { border-bottom: none; }

.analyses-table tbody tr:hover td {
  background: var(--surface-subtle);
  transition: background 0.1s;
}

.analyses-table__name {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analyses-table__meta {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.analyses-table__null { color: var(--text-muted); }

.analyses-table__link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.analyses-table__link:hover { text-decoration: underline; }

.analyses-table__action { text-align: right; }

@media (max-width: 640px) {
  .analyses-table-wrap { overflow-x: auto; }
}

/* ─── Risk Badges ────────────────────────────────────────────── */
.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px 3px 6px;
  border-radius: 100px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.risk-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.risk-badge--high   { background: var(--risk-high-bg);   color: var(--risk-high);   border-color: #FECACA; }
.risk-badge--medium { background: var(--risk-medium-bg); color: var(--risk-medium); border-color: #FDE68A; }
.risk-badge--low    { background: var(--risk-low-bg);    color: var(--risk-low);    border-color: var(--border); }

.risk-badge--high   .risk-badge__dot { background: var(--risk-high); }
.risk-badge--medium .risk-badge__dot { background: var(--risk-medium); }
.risk-badge--low    .risk-badge__dot { background: var(--risk-low); }

/* ─── Status Badges ──────────────────────────────────────────── */
.status-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.status-badge--analyzing       { background: rgba(47,107,255,0.08); color: var(--accent);                  border-color: rgba(47,107,255,0.2); }
.status-badge--analyzed        { background: var(--badge-analyzed-bg); color: var(--badge-analyzed-color); border-color: var(--badge-analyzed-border); }
.status-badge--analysis_failed { background: var(--risk-high-bg);   color: var(--risk-high);               border-color: rgba(220,38,38,0.3); }
.status-badge--unreadable      { background: var(--risk-medium-bg); color: var(--risk-medium);             border-color: rgba(217,119,6,0.3); }
.status-badge--manual_review_required { background: rgba(126,34,206,0.08); color: #6b21a8; border-color: rgba(126,34,206,0.24); }

/* ─── Empty State ────────────────────────────────────────────── */
.empty-state {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  text-align: center;
  box-shadow: var(--panel-shadow);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.empty-state__icon {
  width: 40px;
  height: 40px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin: 0 auto 14px;
}

.empty-state__title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.empty-state__body {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Keyframes ──────────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes flash-enter {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

@keyframes row-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Flash Entrance ─────────────────────────────────────────── */
.flash {
  animation: flash-enter 0.25s var(--ease-out-quart) both;
}

/* ─── Analyzing Status Pulse ─────────────────────────────────── */
.status-badge--analyzing {
  position: relative;
  padding-left: 20px;
}

.status-badge--analyzing::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
  animation: status-pulse 1.6s ease-in-out infinite;
}

/* ─── Empty State Icon Float ─────────────────────────────────── */
.empty-state__icon {
  animation: icon-float 3.8s ease-in-out infinite;
}

/* ─── Table Row Stagger ──────────────────────────────────────── */
.analyses-table tbody tr {
  animation: row-in 0.22s var(--ease-out-quart) both;
}
.analyses-table tbody tr:nth-child(1) { animation-delay:   0ms; }
.analyses-table tbody tr:nth-child(2) { animation-delay:  40ms; }
.analyses-table tbody tr:nth-child(3) { animation-delay:  80ms; }
.analyses-table tbody tr:nth-child(4) { animation-delay: 120ms; }
.analyses-table tbody tr:nth-child(5) { animation-delay: 160ms; }
.analyses-table tbody tr:nth-child(6) { animation-delay: 200ms; }

/* ─── Drop Zone Drag Lift ────────────────────────────────────── */
.drop-zone {
  will-change: transform;
}

.drop-zone--over {
  transform: translateY(-1px) scale(1.01);
}

/* ════════════════════════════════════════════════════════════════
   PHASE 4 — REPORT FLOW COMPONENTS
   ════════════════════════════════════════════════════════════════ */

/* ─── Processing Screen ──────────────────────────────────────── */
.processing-screen {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.processing-screen__panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  width: 100%;
  max-width: 480px;
  animation: fade-up 0.4s var(--ease-out-quart) both;
}

.processing-screen__top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.processing-screen__eyebrow {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.processing-screen__title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.processing-screen__filename {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}

.processing-screen__divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}

.processing-screen__hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 20px;
  text-align: center;
}

/* Spinner */
.processing-spinner {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  position: relative;
}

.processing-spinner__ring {
  width: 44px;
  height: 44px;
  border: 2.5px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Processing Steps */
.processing-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.processing-steps__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.processing-steps__indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  background: var(--surface);
}

.processing-steps__item--done {
  color: var(--text-secondary);
}
.processing-steps__item--done .processing-steps__indicator {
  background: var(--badge-clear-bg);
  border-color: var(--badge-clear-border);
  color: var(--badge-clear-color);
}

.processing-steps__item--active {
  color: var(--text-primary);
  font-weight: 500;
}
.processing-steps__item--active .processing-steps__indicator {
  border-color: var(--accent);
  background: var(--accent-muted);
}

.processing-steps__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: status-pulse 1.4s ease-in-out infinite;
}

/* ─── Preface Screen ─────────────────────────────────────────── */
.preface-screen {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.preface-screen__panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  width: 100%;
  max-width: 540px;
  animation: fade-up 0.45s var(--ease-out-quart) both;
}

.preface-screen__header {
  margin-bottom: 32px;
}

.preface-screen__icon-wrap {
  width: 44px;
  height: 44px;
  background: var(--accent-muted);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}

.preface-screen__eyebrow {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.preface-screen__title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.2;
}

.preface-screen__intro {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.preface-domains {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.preface-domain {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}

.preface-domain:last-child { border-bottom: none; }
.preface-domain:hover { background: var(--surface-subtle); }

.preface-domain__index {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding-top: 2px;
  flex-shrink: 0;
  width: 20px;
}

.preface-domain__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}

.preface-domain__desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.preface-screen__note {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 24px;
  padding: 12px 14px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ─── Preface Extracted Text Preview ─────────────────────────── */
.preface-text-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
}

.preface-text-preview__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: var(--surface-subtle);
  transition: background 0.12s, color 0.12s;
}
.preface-text-preview__toggle::-webkit-details-marker { display: none; }
.preface-text-preview__toggle:hover { background: var(--border); color: var(--text-primary); }

.preface-text-preview__chevron {
  flex-shrink: 0;
  transition: transform 0.18s var(--ease-out-quart);
  color: var(--text-muted);
}
details[open] .preface-text-preview__chevron { transform: rotate(180deg); }

.preface-text-preview__chars {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 400;
}

.preface-text-preview__body {
  border-top: 1px solid var(--border);
  max-height: 320px;
  overflow-y: auto;
}

.preface-text-preview__content {
  margin: 0;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
}

.preface-screen__cta {
  width: 100%;
  justify-content: center;
  gap: 8px;
}

/* ─── Report Header ──────────────────────────────────────────── */
.report-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  animation: fade-up 0.35s var(--ease-out-quart) both;
}

.report-header__breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.report-header__back {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.report-header__back:hover { color: var(--text-primary); text-decoration: none; }

.report-header__back-sep { color: var(--text-muted); }

.report-header__back-current {
  color: var(--text-primary);
  font-weight: 500;
}

.report-header__title {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 620px;
}

/* report-header__title color handled by var(--text-primary) token */

.report-header__meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.report-header__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.report-header__meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.report-header__meta-value {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.report-header__meta-sep {
  color: var(--navy-border);
}

.report-header__fingerprint {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: help;
  border-bottom: 1px dashed var(--navy-border);
  padding-bottom: 1px;
  letter-spacing: 0.02em;
}

.report-header__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding-top: 28px;
}

.report-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Report risk summary badge */
.report-risk-summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 14px 6px 10px;
  border-radius: 100px;
  border: 1px solid transparent;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.report-risk-summary__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.report-risk-summary--high   { background: var(--risk-high-bg);   color: var(--risk-high);   border-color: #FECACA; }
.report-risk-summary--medium { background: var(--risk-medium-bg); color: var(--risk-medium); border-color: #FDE68A; }
.report-risk-summary--low    { background: var(--risk-low-bg);    color: var(--risk-low);    border-color: var(--border); }
.report-risk-summary--high   .report-risk-summary__dot { background: var(--risk-high); }
.report-risk-summary--medium .report-risk-summary__dot { background: var(--risk-medium); }
.report-risk-summary--low    .report-risk-summary__dot { background: var(--risk-low); }

@media (max-width: 768px) {
  .report-header { flex-direction: column; }
  .report-header__right { padding-top: 0; }
  .report-header__title { max-width: 100%; }
}

/* ─── Report Banners ─────────────────────────────────────────── */
.report-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 16px;
  animation: fade-up 0.3s var(--ease-out-quart) both;
}

.report-banner__icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.report-banner__body { flex: 1; }
.report-banner__body strong { font-weight: 600; }

.report-banner__cta {
  flex-shrink: 0;
  align-self: center;
}

.report-banner--amber {
  background: var(--risk-medium-bg);
  border-color: var(--badge-ambiguous-border);
  color: var(--badge-ambiguous-color);
}
.report-banner--amber .report-banner__icon { color: var(--risk-medium); }

.report-banner--blue {
  background: var(--accent-muted);
  border-color: rgba(47, 107, 255, 0.25);
  color: var(--accent-dim);
}
.report-banner--blue .report-banner__icon { color: var(--accent); }

/* ─── Domain Panels ──────────────────────────────────────────── */
.report-domains {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.domain-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: fade-up 0.4s var(--ease-out-quart) both;
}

.domain-panel__header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-subtle);
}

.domain-panel__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.domain-panel__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.domain-panel__sub-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.domain-panel__evidence {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.domain-panel__risk-count {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* Lens Status Badges */
.lens-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.lens-badge--clear         { background: var(--badge-clear-bg);    color: var(--badge-clear-color);    border-color: var(--badge-clear-border); }
.lens-badge--ambiguous     { background: var(--risk-medium-bg);    color: var(--badge-ambiguous-color); border-color: var(--badge-ambiguous-border); }
.lens-badge--not_evaluable { background: var(--surface-subtle);    color: var(--text-muted);            border-color: var(--border); }

.domain-panel__empty {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.domain-panel__clear-list {
  list-style: none;
  margin: 0;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.domain-panel__clear-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.domain-panel__clear-check {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--badge-clear-color);
}

/* ─── Risk Cards ─────────────────────────────────────────────── */
.risk-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.risk-card {
  display: flex;
  border-bottom: 1px solid var(--border);
  animation: fade-up 0.35s var(--ease-out-quart) both;
}

.risk-card:last-child { border-bottom: none; }

.risk-card__severity-bar {
  width: 3px;
  flex-shrink: 0;
}

.risk-card--high   .risk-card__severity-bar { background: var(--risk-high); }
.risk-card--medium .risk-card__severity-bar { background: var(--risk-medium); }
.risk-card--low    .risk-card__severity-bar { background: var(--risk-low); }

.risk-card__inner {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.risk-card__top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.risk-card__type-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Severity Badges */
.severity-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px 3px 6px;
  border-radius: 100px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.severity-badge__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.severity-badge--high   { background: var(--risk-high-bg);   color: var(--risk-high);   border-color: #FECACA; }
.severity-badge--medium { background: var(--risk-medium-bg); color: var(--risk-medium); border-color: #FDE68A; }
.severity-badge--low    { background: var(--risk-low-bg);    color: var(--risk-low);    border-color: var(--border); }
.severity-badge--high   .severity-badge__dot { background: var(--risk-high); }
.severity-badge--medium .severity-badge__dot { background: var(--risk-medium); }
.severity-badge--low    .severity-badge__dot { background: var(--risk-low); }

/* Risk Card sections */
.risk-card__section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.risk-card__field-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Clause excerpt — light blue, monospace */
.risk-card__clause {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--accent-dim);
  background: var(--accent-muted);
  border: 1px solid rgba(47, 107, 255, 0.15);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin: 0;
  border-left: 3px solid var(--accent);
}

.risk-card__quote-mark {
  color: var(--accent);
  font-style: normal;
  opacity: 0.6;
}

.risk-card__text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.risk-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.risk-card__parties {
  display: flex;
  align-items: center;
  gap: 8px;
}

.risk-card__party-list {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.risk-card__id {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ─── Report Footer ──────────────────────────────────────────── */
.report-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--navy-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  animation: fade-up 0.4s var(--ease-out-quart) both;
  animation-delay: 240ms;
}

.report-footer__engine {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.report-footer__provenance {
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  font-style: italic;
}

/* ─── Status Screens (Failed / Unreadable) ───────────────────── */
.status-screen {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.status-screen__panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  width: 100%;
  max-width: 440px;
  text-align: center;
  animation: fade-up 0.4s var(--ease-out-quart) both;
}

.status-screen__panel--error {
  border-color: #FECACA;
}

.status-screen__icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin: 0 auto 20px;
}

.status-screen__icon-wrap--error {
  background: var(--risk-high-bg);
  border-color: #FECACA;
  color: var(--risk-high);
}

.status-screen__title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.status-screen__body {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.status-screen__tip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background: var(--accent-muted);
  border: 1px solid rgba(47, 107, 255, 0.2);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 24px;
  text-align: left;
  line-height: 1.5;
}

.status-screen__tip svg { flex-shrink: 0; color: var(--accent); }

.status-screen__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status-screen__ref {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 20px;
  letter-spacing: 0.03em;
}

/* ─── Trust-layer additions (intake reassurance, delete, ownership) ─── */

.intake-panel__assurance {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.intake-panel__assurance li {
  padding-left: 14px;
  position: relative;
}
.intake-panel__assurance li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--text-muted);
}

.btn--destructive {
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  background: transparent;
}
.btn--destructive:hover {
  color: #b91c1c;
  border-color: #b91c1c;
  background: transparent;
}

.report-header__delete-form {
  display: inline-flex;
  margin: 0;
}

.report-header__ownership {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1.5;
  max-width: 360px;
  text-align: right;
}

.analyses-table__link--destructive {
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-strong);
  padding: 4px 10px;
  margin-left: 14px;
  font-size: 0.8125rem;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
}
.analyses-table__link--destructive:hover {
  color: #b91c1c;
  border-color: #b91c1c;
  background: rgba(185, 28, 28, 0.04);
}

.analyses-table__delete-form {
  display: inline;
  margin: 0;
}

@media (max-width: 768px) {
  .report-header__ownership {
    text-align: left;
    max-width: none;
  }
}
