/* ===========================
   FLATWorks Cockpit - Common CSS
   ベーストーン: flatworks-ja.jp 継承
   =========================== */

:root {
  --ink: #0F2540;
  --ink-800: #0a1929;
  --ink-700: #0d2035;
  --ink-600: #112840;
  --sky: #2A8FCC;
  --sky-light: #5CBEEA;
  --sky-dark: #1a6fa0;
  --white: #ffffff;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --orange: #ea580c;
  --purple: #7c3aed;
  --green: #059669;
  --blue: #2563eb;
  --sidebar-w: 240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans JP', 'Manrope', sans-serif;
  background: var(--ink);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===========================
   SCROLLBAR
   =========================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--ink-800); }
::-webkit-scrollbar-thumb { background: #1a3a5c; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--sky); }

/* ===========================
   LAYOUT
   =========================== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: var(--ink-800);
  border-right: 1px solid rgba(42,143,204,0.15);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-logo {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(42,143,204,0.15);
}
.sidebar-logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.sidebar-logo .logo-text {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  line-height: 1.2;
}
.sidebar-logo .logo-sub {
  font-size: 0.6875rem;
  color: var(--sky-light);
  font-weight: 500;
}

/* Company logo image in sidebar */
.sidebar-logo-img {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  flex-shrink: 0;
  /* screen: 暗い背景では白が透過し、ティール色が浮かび上がる */
  mix-blend-mode: screen;
  border-radius: 2px;
  transition: opacity 0.2s;
  opacity: 0.92;
}
.sidebar-logo a:hover .sidebar-logo-img { opacity: 1; }

/* Inline SVG nav icons for note / Stand.fm */
.nav-icon-img {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 3px;
  opacity: 0.85;
  transition: opacity 0.2s;
  /* ロボット画像は白背景なのでスケール小さく表示 */
  background: rgba(255,255,255,0.08);
}
.nav-item:hover .nav-icon-img,
.nav-item.active .nav-icon-img { opacity: 1; }

.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.5rem 1.25rem 0.25rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1.25rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}
.nav-item:hover {
  color: var(--white);
  background: rgba(42,143,204,0.08);
  border-left-color: var(--sky);
}
.nav-item.active {
  color: var(--sky-light);
  background: rgba(42,143,204,0.12);
  border-left-color: var(--sky-light);
}
.nav-item .nav-icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}
.nav-badge {
  margin-left: auto;
  background: var(--error);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.4rem;
  border-radius: 9999px;
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(42,143,204,0.15);
}
.user-info {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--sky), var(--sky-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.user-name { font-size: 0.8125rem; font-weight: 600; color: var(--text-main); }
.user-role { font-size: 0.6875rem; color: var(--text-muted); }

/* Main content */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Top header bar */
.top-header {
  background: var(--ink-800);
  border-bottom: 1px solid rgba(42,143,204,0.15);
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 1rem;
}

.page-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}

/* Countdown banner */
.countdown-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(42,143,204,0.12);
  border: 1px solid rgba(42,143,204,0.25);
  border-radius: 9999px;
  padding: 0.3rem 0.875rem;
  font-size: 0.75rem;
  color: var(--sky-light);
  font-weight: 700;
  white-space: nowrap;
}
.countdown-banner .days {
  font-size: 1rem;
  font-family: 'Manrope', sans-serif;
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.header-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
  position: relative;
}
.header-btn:hover { background: rgba(42,143,204,0.15); color: var(--sky-light); }
.header-btn .notif-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: var(--error);
  border: 1.5px solid var(--ink-800);
}

/* Page content */
.page-content {
  padding: 1.5rem;
  flex: 1;
}

/* ===========================
   COMMANDER ALERT BANNER
   =========================== */
.commander-alert {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.4);
  border-radius: 0.75rem;
  padding: 0.875rem 1.125rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  animation: pulse-alert 2s ease-in-out infinite;
}
@keyframes pulse-alert {
  0%, 100% { border-color: rgba(239,68,68,0.4); }
  50% { border-color: rgba(239,68,68,0.8); }
}
.commander-alert .alert-icon { font-size: 1.125rem; flex-shrink: 0; margin-top: 0.05rem; }
.commander-alert .alert-title { font-weight: 700; color: #fca5a5; font-size: 0.875rem; }
.commander-alert .alert-body { font-size: 0.8125rem; color: #fca5a5; margin-top: 0.125rem; opacity: 0.85; }

.gen-alert {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 0.75rem;
  padding: 0.875rem 1.125rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.gen-alert .alert-title { font-weight: 700; color: #6ee7b7; font-size: 0.875rem; }
.gen-alert .alert-body { font-size: 0.8125rem; color: #6ee7b7; margin-top: 0.125rem; opacity: 0.85; }

/* ===========================
   CARDS & GRIDS
   =========================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }

.card {
  background: var(--ink-800);
  border: 1px solid rgba(42,143,204,0.15);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: all 0.25s;
}
.card:hover {
  border-color: rgba(42,143,204,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.card-sm {
  background: var(--ink-800);
  border: 1px solid rgba(42,143,204,0.15);
  border-radius: 0.875rem;
  padding: 1rem;
}

/* KPI Stats (like flatworks-ja.jp) */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.kpi-card {
  background: var(--ink-800);
  border: 1px solid rgba(42,143,204,0.15);
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--sky-light));
  border-radius: 1rem 1rem 0 0;
}
.kpi-card:hover {
  border-color: rgba(42,143,204,0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.kpi-number {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--sky-light);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.kpi-unit { font-size: 0.875rem; color: var(--sky-light); font-weight: 700; }
.kpi-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-weight: 500;
}
.kpi-sub {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 0.375rem;
}

/* Agent cards */
.agent-card {
  background: var(--ink-800);
  border: 1px solid rgba(42,143,204,0.15);
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.agent-card:hover {
  border-color: rgba(42,143,204,0.35);
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(0,0,0,0.3);
}
.agent-card .agent-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 1rem 1rem 0 0;
}
.agent-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.agent-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.agent-model {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 500;
}
.agent-last-run {
  font-size: 0.6875rem;
  color: var(--text-muted);
}
.agent-day-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--sky-light);
  background: rgba(42,143,204,0.12);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  display: inline-block;
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  flex-shrink: 0;
}
.badge-active { background: rgba(16,185,129,0.15); color: #6ee7b7; }
.badge-active::before { background: #10b981; animation: pulse-dot 1.5s ease-in-out infinite; }
.badge-standby { background: rgba(245,158,11,0.15); color: #fcd34d; }
.badge-standby::before { background: #f59e0b; }
.badge-scheduled { background: rgba(42,143,204,0.15); color: var(--sky-light); }
.badge-scheduled::before { background: var(--sky); }
.badge-error { background: rgba(239,68,68,0.15); color: #fca5a5; }
.badge-error::before { background: var(--error); }
.badge-pending { background: rgba(245,158,11,0.15); color: #fcd34d; }
.badge-pending::before { background: #f59e0b; }
.badge-approved { background: rgba(16,185,129,0.15); color: #6ee7b7; }
.badge-approved::before { background: #10b981; }
.badge-rejected { background: rgba(239,68,68,0.15); color: #fca5a5; }
.badge-rejected::before { background: var(--error); }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Section headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.875rem;
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(42,143,204,0.1);
  border: 1px solid rgba(42,143,204,0.25);
  color: var(--sky-light);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.section-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
}
.section-link {
  font-size: 0.75rem;
  color: var(--sky-light);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s;
}
.section-link:hover { color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-weight: 700;
  border-radius: 0.5rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--sky), var(--sky-light));
  color: white;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(42,143,204,0.35);
}
.btn-success {
  background: rgba(16,185,129,0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16,185,129,0.3);
}
.btn-success:hover { background: rgba(16,185,129,0.25); }
.btn-danger {
  background: rgba(239,68,68,0.12);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.25);
}
.btn-danger:hover { background: rgba(239,68,68,0.22); }
.btn-warning {
  background: rgba(245,158,11,0.12);
  color: #fcd34d;
  border: 1px solid rgba(245,158,11,0.25);
}
.btn-warning:hover { background: rgba(245,158,11,0.22); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); color: var(--white); }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.75rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 0.9375rem; }

/* Progress bars */
.progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 9999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--sky), var(--sky-light));
  transition: width 0.6s ease;
}
.progress-fill-warning { background: linear-gradient(90deg, #f59e0b, #fcd34d); }
.progress-fill-success { background: linear-gradient(90deg, #059669, #10b981); }
.progress-fill-danger { background: linear-gradient(90deg, #dc2626, #ef4444); }

/* Tabs */
.tab-container {
  border-bottom: 1px solid rgba(42,143,204,0.15);
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}
.tab-item {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  text-decoration: none;
}
.tab-item:hover { color: var(--text-main); }
.tab-item.active {
  color: var(--sky-light);
  border-bottom-color: var(--sky-light);
}

/* Diff viewer */
.diff-viewer {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(42,143,204,0.15);
  border-radius: 0.5rem;
  padding: 0.875rem;
  font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
  font-size: 0.75rem;
  line-height: 1.6;
  overflow-x: auto;
}
.diff-del { color: #fca5a5; background: rgba(239,68,68,0.08); }
.diff-add { color: #6ee7b7; background: rgba(16,185,129,0.08); }

/* Toggle switches */
.toggle {
  position: relative;
  display: inline-block;
  width: 2.5rem;
  height: 1.375rem;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 9999px;
  transition: 0.3s;
  border: 1px solid rgba(255,255,255,0.15);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 1rem;
  height: 1rem;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--text-muted);
  border-radius: 9999px;
  transition: 0.3s;
}
.toggle input:checked + .toggle-slider { background: rgba(42,143,204,0.4); border-color: var(--sky); }
.toggle input:checked + .toggle-slider::before {
  transform: translate(1.125rem, -50%);
  background: var(--sky-light);
}

/* ===========================
   MOBILE OVERLAY
   =========================== */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar {
    transform: translateX(-240px);
    width: 240px;
  }
  .sidebar.open { transform: translateX(0); }
  .mobile-overlay.open { display: block; }
  .main-content { margin-left: 0; }
  .page-content { padding: 1rem; }
  .grid-2, .grid-3, .grid-4, .grid-5, .kpi-grid {
    grid-template-columns: 1fr;
  }
  .grid-2-mobile { grid-template-columns: repeat(2, 1fr) !important; }
  .top-header { padding: 0 1rem; }
  .countdown-banner .days { font-size: 0.875rem; }
  .countdown-banner { font-size: 0.6875rem; padding: 0.25rem 0.625rem; }
  .page-title { font-size: 0.875rem; }

  .kpi-number { font-size: 1.5rem; }
  .hamburger { display: flex !important; }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .agent-card { padding: 0.875rem; }
}

/* Mobile hamburger */
.hamburger {
  display: none;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.4s ease both; }
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.10s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.20s; }
.delay-5 { animation-delay: 0.25s; }

/* ===========================
   LETTER MODAL (Leader)
   =========================== */
.letter-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.letter-modal.open { display: flex; }
.letter-content {
  background: var(--ink-700);
  border: 1px solid rgba(42,143,204,0.25);
  border-radius: 1.25rem;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  position: relative;
}
.letter-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  transition: all 0.2s;
}
.letter-close:hover { background: rgba(255,255,255,0.15); color: var(--white); }

/* Chart placeholder */
.chart-placeholder {
  background: rgba(0,0,0,0.2);
  border: 1px dashed rgba(42,143,204,0.2);
  border-radius: 0.75rem;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Metric rows */
.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.8125rem;
}
.metric-row:last-child { border-bottom: none; }
.metric-label { color: var(--text-muted); }
.metric-value { font-weight: 700; color: var(--text-main); }
.metric-value.positive { color: #6ee7b7; }
.metric-value.negative { color: #fca5a5; }
.metric-value.warning { color: #fcd34d; }

/* ===========================
   SETTINGS ROW
   =========================== */
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  gap: 1rem;
}
.settings-row:last-child { border-bottom: none; }
.settings-info .settings-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}
.settings-info .settings-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}

/* ===========================
   PROPOSAL CARD
   =========================== */
.proposal-card {
  background: var(--ink-800);
  border: 1px solid rgba(42,143,204,0.15);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.25s;
  margin-bottom: 1rem;
}
.proposal-card:hover { border-color: rgba(42,143,204,0.3); }
.proposal-header {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.proposal-body { padding: 1rem 1.25rem; }
.proposal-footer {
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.625rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.15);
}

/* Text utilities */
.text-sky { color: var(--sky-light); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--white); }
.text-success { color: #6ee7b7; }
.text-warning { color: #fcd34d; }
.text-danger { color: #fca5a5; }
.text-orange { color: #fb923c; }
.font-bold { font-weight: 700; }
.font-mono { font-family: 'SF Mono', 'Monaco', monospace; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.w-full { width: 100%; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
