/* MGRe Version Dashboard — Design System
   See ../DESIGN.md for full specification */

/* ── Design Tokens (Notion-inspired warm neutrals) ── */
:root {
  --bg: #ffffff;
  --surface: #f6f5f4;
  --surface-alt: #eeecea;
  --card-bg: #ffffff;

  --text: rgba(0, 0, 0, 0.9);
  --text-secondary: #615d59;
  --text-tertiary: #a39e98;

  --accent: #EA5539;
  --accent-hover: #d14a31;
  --accent-light: #fef2f0;

  --link: #0075de;
  --link-light: #f2f9ff;

  --success: #2a9d99;
  --success-light: #eef9f8;
  --warning: #dd5b00;
  --warning-light: #fff4eb;
  --danger: #d44332;
  --danger-light: #fef2f0;

  --border: rgba(0, 0, 0, 0.1);
  --divider: rgba(0, 0, 0, 0.05);
  --ring: 0 0 0 1px rgba(0, 0, 0, 0.08);
  --ring-hover: rgba(0, 0, 0, 0.04) 0px 4px 18px, rgba(0, 0, 0, 0.027) 0px 2px 8px;
  --shadow-elevated: rgba(0, 0, 0, 0.04) 0px 4px 18px, rgba(0, 0, 0, 0.03) 0px 2px 8px, rgba(0, 0, 0, 0.02) 0px 1px 3px;

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;

  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Monaco, monospace;
}

/* ── Reset ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Page Header ── */
.page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}
.page-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.page-header p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ── Header / Navigation ── */
.header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header h1 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nav-link {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  font-weight: 500;
}
.nav-link:hover {
  color: var(--text);
  background: var(--surface);
}
.nav-link.active {
  background: var(--text);
  color: #fff;
}
.header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-tertiary);
}
.header-meta .stale-warning {
  color: var(--warning);
  font-weight: 500;
}

/* ── Search & Filters ── */
.toolbar {
  padding: 12px 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.search-box {
  flex: 1;
  min-width: 200px;
  max-width: 360px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  color: var(--text);
}
.search-box::placeholder { color: var(--text-tertiary); }
.search-box:focus {
  border-color: var(--link);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

/* Branch filter */
.branch-filter select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font);
  background: var(--card-bg);
  color: var(--text);
  font-weight: 500;
}

/* Version filter */
.version-filter { display: flex; gap: 4px; align-items: center; }
.version-filter select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font);
  background: var(--card-bg);
  color: var(--text);
}
.version-input {
  width: 90px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font);
  color: var(--text);
}
.version-input:focus {
  border-color: var(--link);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
  outline: none;
}
.version-clear {
  background: none;
  border: none;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-tertiary);
  padding: 4px;
}
.version-clear:hover { color: var(--danger); }

/* Filter buttons */
.filter-group { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-btn {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  font-size: 12px;
  font-family: var(--font);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn:hover {
  border-color: var(--text-tertiary);
  color: var(--text);
}
.filter-btn.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* Assignment banner */
.assignment-banner {
  background: var(--link-light);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--link);
}
.assignment-banner button {
  background: none;
  border: 1px solid var(--link);
  border-radius: var(--radius);
  color: var(--link);
  font-size: 12px;
  font-family: var(--font);
  padding: 4px 12px;
  cursor: pointer;
}
.assignment-banner button:hover {
  background: var(--link);
  color: #fff;
}

/* Dashboard changelog banner (#220) */
.changelog-banner {
  margin: 8px 24px 0;
  padding: 10px 14px;
  background: var(--link-light);
  border: 1px solid var(--link);
  border-radius: var(--radius);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.changelog-banner-content { flex: 1; min-width: 0; }
.changelog-banner-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--link);
  margin-bottom: 6px;
}
.changelog-banner-body { display: flex; flex-direction: column; gap: 6px; }
.changelog-entry { font-size: 12px; color: var(--text); line-height: 1.5; }
.changelog-entry-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.changelog-entry-date { font-size: 11px; color: var(--text-tertiary); font-family: var(--font-mono); }
.changelog-entry-title { font-weight: 500; color: var(--text); }
.changelog-entry-desc { color: var(--text-secondary); margin-top: 2px; }
.changelog-entry-links { margin-top: 2px; font-size: 11px; }
.changelog-entry-links a {
  color: var(--link);
  text-decoration: none;
  margin-right: 8px;
}
.changelog-entry-links a:hover { text-decoration: underline; }
.changelog-banner-overflow {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
  font-style: italic;
}
.changelog-banner-dismiss {
  background: none;
  border: 0;
  color: var(--link);
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  line-height: 1;
  flex-shrink: 0;
}
.changelog-banner-dismiss:hover { background: rgba(0, 117, 222, 0.1); }
.changelog-banner-dismiss:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
@media (max-width: 768px) {
  .changelog-banner { margin: 8px 16px 0; }
}

/* View toggle */
.view-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.view-toggle-btn {
  padding: 5px 14px;
  font-size: 13px;
  border: none;
  background: var(--card-bg);
  cursor: pointer;
  color: var(--text-secondary);
  font-family: var(--font);
  font-weight: 500;
  transition: all 0.15s;
  white-space: nowrap;
}
.view-toggle-btn:not(:last-child) {
  border-right: 1px solid var(--border);
}
.view-toggle-btn.active {
  background: var(--text);
  color: #fff;
}
.view-toggle-btn:hover:not(.active) {
  background: var(--surface);
}
.assigned-count {
  margin-left: 4px;
  font-size: 11px;
  opacity: 0.7;
}

/* Star assignment */
.star-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
  color: #d1d5db;
  transition: color 0.15s;
  vertical-align: middle;
  margin: -8px 0 -8px -10px;
  padding: 0;
  flex-shrink: 0;
}
.star-toggle:hover { color: var(--warning); }
.star-toggle:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.star-toggle.active { color: var(--warning); }

/* Outdated badge on view toggle */
.view-all-badge {
  display: inline-block;
  background: var(--warning);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 1px 5px;
  margin-left: 6px;
  vertical-align: middle;
}

.result-count {
  font-size: 12px;
  color: var(--text-tertiary);
  padding: 0 24px 8px;
}

/* ── Table ── */
.table-container { padding: 0 24px 24px; overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--ring);
}
thead th {
  background: var(--surface);
  padding: 8px 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
thead th:hover { background: var(--surface-alt); }
thead th .sort-indicator { margin-left: 4px; opacity: 0.3; }
thead th.sorted .sort-indicator { opacity: 1; }
tbody tr {
  cursor: pointer;
  transition: background 0.1s;
  border-bottom: 1px solid var(--divider);
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--surface); }
tbody tr.selected { background: var(--link-light); }
tbody td {
  padding: 9px 12px;
  white-space: nowrap;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
tbody td:nth-child(n+2):nth-child(-n+7) {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-secondary);
}
td a { color: var(--link); text-decoration: none; }
td a:hover { text-decoration: underline; }

/* Dev diff indicator (EAP 等で使用、develop と master を矢印で並べる旧表現) */
.dev-diff {
  font-size: 12px;
  color: var(--link);
  font-family: var(--font-mono);
}

/* Main table summary 表示 (master 主役 + develop 補助) */
.dev-diff-summary {
  margin-left: 6px;
  font-size: 11px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.legend-item .dev-diff-summary { margin-left: 0; }

.legend-master {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.legend-master-label {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Legend */
.legend {
  padding: 0 24px 8px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-tertiary);
}
.legend-item { display: inline-flex; align-items: center; gap: 6px; }

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
}
.badge-outdated { background: var(--danger-light); color: var(--danger); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-ok { background: var(--success-light); color: var(--success); }
.badge-plan { background: var(--link-light); color: var(--link); }
.badge-auth-type { background: #f5f3ff; color: #6d28d9; }
.badge-new { background: var(--success-light); color: var(--success); }
.badge-removed { background: var(--danger-light); color: var(--danger); }
.badge-dev { background: #e0e7ff; color: #4338ca; }
.badge-unpublished { background: var(--surface-alt); color: var(--text-secondary); }
.recent-change-item[aria-disabled="true"] { cursor: default; opacity: 0.6; }
.recent-change-item[aria-disabled="true"]:hover { background: transparent; }

/* ── Drawer ── */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 200;
}
.drawer-overlay.open { display: block; }
.drawer {
  position: fixed;
  top: 0;
  right: -500px;
  width: 480px;
  max-width: 100vw;
  height: 100vh;
  background: var(--card-bg);
  box-shadow: var(--shadow-elevated);
  z-index: 201;
  transition: right 0.25s ease;
  overflow-y: auto;
}
.drawer.open { right: 0; }
.drawer-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--card-bg);
  z-index: 1;
}
.drawer-header h2 { font-size: 15px; font-weight: 600; }
.drawer-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-tertiary);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.drawer-close:hover { background: var(--surface); color: var(--text); }
.drawer-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}
.drawer-tab {
  padding: 10px 16px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  color: var(--text-tertiary);
  transition: all 0.15s;
  font-weight: 500;
}
.drawer-tab:hover { color: var(--text-secondary); }
.drawer-tab.active {
  color: var(--text);
  border-bottom-color: var(--text);
}
.drawer-content { padding: 20px; }
.drawer-section { margin-bottom: 20px; }
.drawer-section h3 {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.version-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--divider);
}
.version-label { color: var(--text-secondary); font-size: 13px; }
.version-value { font-weight: 500; font-size: 13px; font-family: var(--font-mono); }
.version-value.diff { color: var(--accent); }

/* Assignees (担当者) */
.assignee-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}
.assignee-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.assignee-name {
  font-size: 13px;
}
.assignee-email {
  font-size: 12px;
  color: var(--link);
  margin-left: auto;
}
.assignee-empty {
  color: var(--text-secondary);
  font-size: 13px;
}

/* History timeline */
.history-timeline {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--border);
  margin-left: 6px;
}
.history-entry {
  position: relative;
  padding: 5px 0 5px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.history-dot {
  position: absolute;
  left: -27px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--card-bg);
}
.history-dot.current { background: var(--accent); }
.history-date { font-size: 12px; color: var(--text-tertiary); min-width: 80px; }
.history-ver { font-size: 13px; font-weight: 500; font-family: var(--font-mono); position: relative; }
.history-current-label { font-size: 11px; color: var(--accent); margin-left: 4px; }
.history-empty { color: var(--text-tertiary); font-size: 13px; font-style: italic; padding: 12px 0; }
.history-ver-trigger {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--link);
  font: inherit;
  text-decoration: none;
  border-radius: 3px;
}
.history-ver-trigger:hover { text-decoration: underline; }
.history-ver-trigger:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
.history-ver-trigger[aria-expanded="true"] { text-decoration: underline; }
.history-ver-popover {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 30;
  min-width: 220px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  padding: 8px;
}
.history-popover-title {
  font-size: 12px;
  color: var(--text-tertiary);
  padding: 4px 8px;
}
.history-popover-body { display: flex; flex-direction: column; }
.history-popover-item {
  display: block;
  padding: 6px 8px;
  border-radius: 4px;
  color: var(--link);
  text-decoration: none;
  font-size: 13px;
  font-family: var(--font-mono);
}
.history-popover-item:hover { background: var(--link-light); }
.history-popover-changes { font-family: inherit; font-size: 12px; }
.history-popover-muted {
  padding: 6px 8px;
  color: var(--text-tertiary);
  font-size: 12px;
  font-style: italic;
}
.history-popover-divider {
  margin: 6px 0;
  border-top: 1px solid var(--border);
}

/* Simulator */
.simulator {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
}
.simulator select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font);
  margin-bottom: 12px;
}
.simulator-result { font-size: 13px; }
.simulator-result .requirement { padding: 8px 12px; margin-bottom: 6px; border-radius: var(--radius); }
.requirement.needed { background: var(--warning-light); border-left: 3px solid var(--warning); }
.requirement.ok { background: var(--success-light); border-left: 3px solid var(--success); }

/* Feature list */
.feature-list { list-style: none; }
.feature-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.feature-list .feature-name { font-size: 13px; }
.feature-list .feature-status { font-size: 12px; }

/* ── States ── */
.loading { text-align: center; padding: 40px; color: var(--text-tertiary); }
.error-state { text-align: center; padding: 40px; color: var(--danger); }
.error-state button {
  margin-top: 12px;
  padding: 8px 16px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
}
.error-state button:hover { background: #1f2937; }
.empty-state { text-align: center; padding: 40px; color: var(--text-tertiary); }

/* ── Responsive: mobile cards ── */
@media (max-width: 768px) {
  .header { padding: 0 16px; }
  .toolbar { padding: 12px 16px; }
  .search-box { max-width: 100%; }
  .table-container { padding: 0 16px 16px; }
  .drawer { width: 100vw; }
  table { display: none; }
  .card-list { display: block; }
  .card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 8px;
    box-shadow: var(--ring);
    cursor: pointer;
  }
  .card-name { font-weight: 600; margin-bottom: 6px; font-size: 14px; }
  .card-versions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; font-size: 12px; }
  .card-versions span { color: var(--text-secondary); }
  .card-versions strong { display: block; font-family: var(--font-mono); }
}
@media (min-width: 769px) {
  .card-list { display: none; }
}

/* ── Recent changes panel ── */
.recent-changes-panel {
  margin: 0 24px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
}
.recent-changes-summary {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.recent-changes-summary::-webkit-details-marker { display: none; }
.recent-changes-summary::before {
  content: '▶';
  font-size: 9px;
  transition: transform 0.2s;
  color: var(--text-tertiary);
}
details.recent-changes-panel[open] > .recent-changes-summary::before {
  transform: rotate(90deg);
}
.recent-changes-count {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 1px 6px;
}
.recent-changes-body { padding: 0 16px 12px; }
.recent-changes-empty {
  font-size: 13px;
  color: var(--text-tertiary);
  font-style: italic;
  padding: 4px 0;
}
.recent-change-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 8px;
  margin: 2px 0;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font);
  color: var(--text);
  transition: background 0.1s;
}
.recent-change-item:hover { background: var(--surface); }
.recent-change-item:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
.recent-change-date {
  color: var(--text-tertiary);
  font-size: 12px;
  min-width: 80px;
  flex-shrink: 0;
}
.recent-change-name { font-weight: 500; margin-right: 4px; }
.recent-change-detail { color: var(--text-secondary); font-size: 12px; }
.recent-changes-more {
  display: block;
  padding: 6px 8px;
  font-size: 12px;
  color: var(--link);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}
.recent-changes-more:hover { text-decoration: underline; }

/* Change indicator */
.change-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}
tr.recent-change td:first-child { background: var(--accent-light); }
.card.recent-change { border-left: 3px solid var(--accent); }

@media (max-width: 768px) {
  .recent-changes-panel { margin: 0 16px 8px; }
}

/* ── Inline help tooltips ── */
.help-tooltip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-tertiary);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 4px;
  vertical-align: middle;
  transition: all 0.15s;
}
.help-tooltip-btn:hover {
  border-color: var(--link);
  color: var(--link);
  background: var(--link-light);
}
.help-tooltip-popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-elevated);
  z-index: 150;
  width: 280px;
  font-size: 13px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: break-word;
}
.help-tooltip-title { font-weight: 600; margin-bottom: 4px; color: var(--text); }
.help-tooltip-body { color: var(--text-secondary); }

/* ── Floating feedback button ── */
.feedback-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-elevated);
  z-index: 9999;
  transition: background 0.15s;
}
.feedback-fab:hover { background: #1f2937; }
