:root {
  --bg: #090b10;
  --bg-elevated: #0f131c;
  --bg-card: #131824;
  --bg-card-hover: #181f2e;
  --border: #1e2738;
  --border-light: #2a364d;
  --ink: #f1f5f9;
  --ink-secondary: #94a3b8;
  --mute: #64748b;
  --primary: #3b82f6;
  --sky: #38bdf8;
  --emerald: #34d399;
  --rose: #fb7185;
  --radius: 10px;
  --radius-sm: 7px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', 'Noto Sans JP', -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

/* Header */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.brand-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-secondary);
  letter-spacing: 0.06em;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Buttons & Inputs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

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

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--bg-card);
  border-color: var(--border-light);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink-secondary);
}

.btn-ghost:hover {
  color: var(--ink);
  background: var(--bg-card);
}

.btn-danger {
  background: rgba(244, 63, 94, 0.14);
  color: var(--rose);
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-secondary);
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.select, .textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.textarea {
  width: 100%;
}

/* Progress Bar */
.sync-progress-wrap {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 8px 32px;
}

.sync-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-secondary);
  margin-bottom: 4px;
}

.sync-progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.sync-progress-fill {
  height: 100%;
  background: var(--primary);
  transition: width 0.2s ease;
}

/* Main Container */
.main-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 26px 28px 64px;
}

/* Compact Summary Strip with Period Picker */
.summary-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.summary-metrics {
  display: flex;
  align-items: center;
  gap: 32px;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.summary-label {
  font-size: 12px;
  color: var(--ink-secondary);
}

.summary-val-group {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.summary-val {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.summary-diff {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.summary-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.period-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

.period-presets {
  display: flex;
  gap: 4px;
}

.preset-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-secondary);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.preset-btn:hover {
  color: var(--ink);
}

.preset-btn.is-active {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

.period-dates {
  display: flex;
  align-items: center;
  gap: 6px;
  border-left: 1px solid var(--border);
  padding-left: 10px;
}

.date-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 12px;
  font-family: inherit;
  color-scheme: dark;
}

.date-sep {
  color: var(--mute);
  font-size: 12px;
}

.text-sky { color: #fff; }
.diff-up, .num-val.diff-up, .summary-diff.diff-up { color: #38bdf8 !important; }
.diff-down, .num-val.diff-down, .summary-diff.diff-down { color: #f87171 !important; }
.diff-neutral, .num-val.diff-neutral, .summary-diff.diff-neutral { color: var(--mute) !important; }

/* Toolbar */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.search-box input {
  width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
}

.search-box input:focus {
  border-color: var(--primary);
}

/* Table */
.accounts-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.accounts-table {
  width: 100%;
  border-collapse: collapse;
}

.accounts-table th {
  text-align: left;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.accounts-table th.num-col,
.accounts-table td.num-col {
  text-align: right;
  white-space: nowrap;
}

.summary-sub-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 6px;
}

.baseline-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.sub-er {
  font-size: 11.5px;
  color: var(--ink-secondary);
  margin-left: 4px;
  font-weight: 500;
}

.accounts-table tbody tr {
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s ease;
}

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

.accounts-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.accounts-table td {
  padding: 14px 18px;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}

.acct-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.acct-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
}

.acct-client-name {
  font-weight: 700;
  color: #fff;
  font-size: 14px;
}

.acct-handle {
  font-size: 12px;
  color: var(--ink-secondary);
  margin-left: 6px;
}

.num-val {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  width: 100%;
  max-width: 560px;
}

.modal-header, .drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
}

.modal-body {
  padding: 20px 22px;
}

.help-text {
  font-size: 12.5px;
  color: var(--ink-secondary);
  margin-bottom: 12px;
}

.help-text code {
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--sky);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

/* Detail Drawer */
.drawer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  width: 96vw;
  max-width: 1380px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.drawer-body {
  padding: 20px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.drawer-kpi-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.drawer-kpi-box .lbl {
  font-size: 11.5px;
  color: var(--ink-secondary);
}

.drawer-kpi-box .val {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-top: 2px;
}

.drawer-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.drawer-section-head h3 {
  font-size: 14px;
  font-weight: 700;
}

.mute-note {
  font-size: 12px;
  color: var(--ink-secondary);
}

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.post-text {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
}

.post-meta {
  font-size: 11.5px;
  color: var(--mute);
  margin-top: 4px;
}

.post-stats {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  text-align: right;
}

.post-stat-item .s-lbl {
  font-size: 11px;
  color: var(--mute);
  display: block;
}

.post-stat-item .s-val {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

/* ==================== Client Hub Tabs & Clean 2-Column 会社概要 Table ==================== */
.hub-tabs {
  display: flex;
  gap: 6px;
  padding: 0 24px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.hub-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--ink-secondary);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hub-tab:hover {
  color: #fff;
}

.hub-tab.is-active {
  color: var(--sky);
  border-bottom-color: var(--sky);
}

.overview-section {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.overview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.overview-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.overview-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border-light);
  font-size: 13.5px;
  line-height: 1.55;
}

.overview-table tr {
  border-bottom: 1px solid var(--border);
}

.overview-table th {
  width: 185px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink-secondary);
  font-weight: 600;
  text-align: left;
  padding: 11px 14px;
  border-right: 1px solid var(--border-light);
  vertical-align: middle;
  white-space: nowrap;
}

.overview-table td {
  padding: 11px 14px;
  color: var(--ink);
  background: var(--bg-card);
  vertical-align: middle;
  word-break: break-word;
}

.overview-table td a {
  color: var(--sky);
  text-decoration: underline;
  word-break: break-all;
}

.overview-table td a:hover {
  opacity: 0.85;
}

.overview-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: #fff;
  padding: 7px 10px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
}

.overview-input:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.unlinked-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
}

.crm-toast {
  font-size: 12.5px;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
}

.post-type-filter {
  display: inline-flex;
  gap: 4px;
}

.acct-meta-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 3px;
}

.acct-meta-pill {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--ink-secondary);
}

/* ==================== Weekly Report Tab & Printable Sheet ==================== */
.report-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.report-create-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
}

.report-form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: end;
}

.report-form-grid label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 6px;
  white-space: nowrap;
}

/* ==================== Clean, Easy-to-Read Weekly Report Document ==================== */
.report-paper {
  background: #ffffff;
  color: #0f172a;
  border-radius: 10px;
  padding: 36px 40px;
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  font-size: 13.5px;
  line-height: 1.75;
  outline: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  overflow-x: hidden;
}

.rpt-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 14px;
  margin-bottom: 22px;
}

.rpt-doc-title {
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.rpt-doc-sub {
  font-size: 13px;
  color: #475569;
  font-weight: 600;
}

.rpt-exec-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #0f172a;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 13.5px;
  color: #1e293b;
}

.rpt-exec-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.report-paper h2 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 28px 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #cbd5e1;
}

/* 縦にスッと読めるシンプル比較表（会社概要と同じく視線移動が少ない設計） */
.rpt-kv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 8px 0 22px 0;
  border: 1px solid #cbd5e1;
  font-variant-numeric: tabular-nums;
}

.rpt-kv-table th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  text-align: left;
  padding: 9px 14px;
  border: 1px solid #cbd5e1;
}

.rpt-kv-table td {
  padding: 9px 14px;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  vertical-align: middle;
}

.rpt-kv-table td.num {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}

.rpt-kv-table tr.sec-row td {
  background: #f8fafc;
  font-weight: 800;
  font-size: 12px;
  color: #475569;
  padding: 6px 14px;
}

.rpt-posts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin: 8px 0 22px 0;
  border: 1px solid #cbd5e1;
  font-variant-numeric: tabular-nums;
}

.rpt-posts-table th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  text-align: right;
  white-space: nowrap;
}

.rpt-posts-table th:nth-child(1),
.rpt-posts-table th:nth-child(2),
.rpt-posts-table td:nth-child(1),
.rpt-posts-table td:nth-child(2) {
  text-align: left;
}

.rpt-posts-table td {
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  text-align: right;
  color: #1e293b;
  vertical-align: top;
  line-height: 1.55;
}

.rpt-analysis-section {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 14px;
}

.rpt-analysis-section h3 {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.rpt-analysis-section ul {
  margin: 0 0 0 20px;
  padding: 0;
}

.rpt-analysis-section li {
  margin-bottom: 6px;
  font-size: 13px;
  color: #1e293b;
  line-height: 1.65;
}

.report-revise-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 10px;
}

.report-revise-bar .overview-input {
  flex: 1;
}

.outcomes-table th,
.outcomes-table td {
  padding: 10px 12px;
  vertical-align: middle;
}

.outcome-num-input {
  width: 92px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: #fff;
  padding: 5px 8px;
  font-size: 13.5px;
  font-weight: 700;
  text-align: right;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}

.outcome-num-input:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

/* ==================== Dashboard Mode Switcher (X指標 / 成果) ==================== */
.dash-mode-switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 4px 6px 4px 12px;
}

.dash-mode-label {
  font-size: 11.5px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.dash-mode-switch {
  display: inline-flex;
  background: #090d16;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 3px;
  gap: 4px;
}

.dash-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.16s ease;
  font-family: inherit;
  white-space: nowrap;
}

.dash-mode-btn .mode-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #475569;
  transition: all 0.16s ease;
}

.dash-mode-btn:hover:not(.is-active) {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
}

.dash-mode-btn.is-active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: #60a5fa;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.45);
}

.dash-mode-btn.is-active .mode-dot {
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
}

/* ==================== User Management Page & Slack Badges ==================== */
.users-page-wrap {
  padding-bottom: 40px;
}

.users-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.users-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.users-form-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 0.85fr 1.1fr 0.9fr;
  gap: 12px;
}

.my-clients-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 14px;
}

.login-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.login-user-card:hover {
  border-color: var(--sky);
  background: rgba(56, 189, 248, 0.08);
}

.login-user-card.is-current {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.1);
}

.users-form-grid label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-secondary);
  margin-bottom: 6px;
}

.slack-mention-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 9px;
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.slack-channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: #e2e8f0;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 3px 10px;
  border-radius: 6px;
}

@media (max-width: 920px) {
  .users-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==================== Real X Timeline Style Post Cards ==================== */
.x-timeline-list {
  display: flex;
  flex-direction: column;
  background: #000000;
  border: 1px solid #2f3336;
  border-radius: 12px;
  overflow: hidden;
}

.x-tl-card {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #2f3336;
  background: #000000;
  transition: background 0.15s ease;
}

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

.x-tl-card:hover {
  background: rgba(255, 255, 255, 0.03);
}

.x-tl-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #1e293b;
}

.x-tl-body {
  flex: 1;
  min-width: 0;
}

.x-tl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.x-tl-user {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.x-tl-name {
  font-size: 15px;
  font-weight: 700;
  color: #e7e9ea;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.x-tl-handle,
.x-tl-time {
  font-size: 14px;
  color: #71767b;
  white-space: nowrap;
}

.x-tl-open {
  font-size: 12px;
  color: #71767b;
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.x-tl-open:hover {
  color: #1d9bf0;
  background: rgba(29, 155, 240, 0.1);
}

.x-tl-text {
  font-size: 15px;
  line-height: 1.55;
  color: #e7e9ea;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 12px;
}

.x-tl-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 480px;
  color: #71767b;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.x-tl-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #71767b;
}

.x-tl-action svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.x-tl-action.act-imp {
  color: #1d9bf0;
  font-weight: 600;
}

@media (max-width: 860px) {
  .report-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}
