:root {
  --bg: #0b131e;
  --slate: #111b29;
  --card: #131e2d;
  --elevated: #182538;
  --accent: #18a2d6;
  --accent-hi: #38bdf8;
  --emerald: #10b981;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --ink: #f1f5f9;
  --muted: #94a3b8;
  --border: rgba(203, 213, 225, 0.14);
  --border-hi: rgba(56, 189, 248, 0.45);
  --sidebar-w: 248px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  max-width: 100vw;
  overflow-x: clip;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 82% 14%, rgba(24, 162, 214, 0.14), transparent 44%),
    radial-gradient(circle at 16% 84%, rgba(148, 163, 184, 0.06), transparent 46%),
    linear-gradient(to right, rgba(24, 162, 214, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(24, 162, 214, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  background-attachment: fixed;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: #fff;
}

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

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

.kicker {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #22d3ee;
}

.muted { color: var(--muted); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* App Shell */
.desk-shell {
  display: flex;
  min-height: 100dvh;
}

.desk-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: rgba(11, 19, 30, 0.94);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
  z-index: 40;
}

.sidebar-brand {
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 11px;
}

.sidebar-brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--border);
  object-fit: cover;
  background: #0f172a;
}

.sidebar-brand-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  line-height: 1.15;
}

.sidebar-brand-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-hi);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nav-group-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  padding: 0 10px 4px;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-item {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 9px 11px;
  border-radius: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  transition: all 140ms ease;
}

.nav-item:hover {
  color: #fff;
  background: rgba(148, 163, 184, 0.08);
}

.nav-item.active {
  color: #04131f;
  background: linear-gradient(135deg, #38bdf8, #18a2d6);
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(24, 162, 214, 0.35);
}

.nav-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.15);
  color: #e2e8f0;
}

.nav-item.active .nav-badge {
  background: rgba(4, 19, 31, 0.18);
  color: #04131f;
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.desk-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.desk-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 19, 30, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.desk-content {
  flex: 1;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Mobile Sidebar Drawer */
.mobile-menu-btn {
  display: none;
  border: 1px solid var(--border);
  background: var(--slate);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  z-index: 35;
}

@media (max-width: 960px) {
  .mobile-menu-btn { display: inline-flex; }
  .desk-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }
  .desk-shell.sidebar-open .desk-sidebar { transform: translateX(0); }
  .desk-shell.sidebar-open .sidebar-backdrop { display: block; }
  .desk-content { padding: 14px; }
  .desk-topbar { padding: 10px 14px; }
}

/* Panels & Cards */
.panel {
  background: linear-gradient(180deg, rgba(19, 30, 45, 0.92), rgba(15, 24, 37, 0.94));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.28);
}

.panel-hover {
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.panel-hover:hover {
  transform: translateY(-2px);
  border-color: var(--border-hi);
  box-shadow: 0 14px 34px rgba(24, 162, 214, 0.14);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.section-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.section-logo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.35);
  flex-shrink: 0;
}

.section-title {
  font-size: 26px;
  line-height: 1.15;
}

.section-lede {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 68ch;
}

/* Grids */
.grid-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.kpi-card {
  background: linear-gradient(180deg, rgba(19, 30, 45, 0.94), rgba(14, 22, 34, 0.96));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-color 140ms ease, transform 140ms ease;
}

.kpi-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-1px);
}

.kpi-label {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.kpi-value {
  display: block;
  margin-top: 6px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

.company-card {
  background: linear-gradient(180deg, rgba(19, 30, 45, 0.95), rgba(13, 21, 33, 0.96));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: all 140ms ease;
}

.company-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
}

.company-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.project-card {
  background: linear-gradient(180deg, rgba(19, 30, 45, 0.94), rgba(13, 21, 33, 0.96));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.project-card.is-soon {
  border-style: dashed;
  background: rgba(15, 23, 42, 0.55);
}

.project-thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b131e;
  flex-shrink: 0;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 130ms ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, #38bdf8, #18a2d6);
  color: #03131e;
  box-shadow: 0 4px 16px rgba(24, 162, 214, 0.3);
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.07); text-decoration: none; }

.btn-secondary {
  background: rgba(30, 41, 59, 0.85);
  border-color: var(--border);
  color: #e2e8f0;
}
.btn-secondary:hover:not(:disabled) {
  border-color: var(--border-hi);
  color: #fff;
  text-decoration: none;
}

.btn-danger {
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.35);
  color: #fda4af;
}
.btn-danger:hover:not(:disabled) { background: rgba(244, 63, 94, 0.25); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--muted);
}
.btn-ghost:hover:not(:disabled) { background: rgba(148, 163, 184, 0.1); color: #fff; }

.btn-sm { padding: 6px 10px; font-size: 12px; border-radius: 9px; }

/* Sub-tabs & Filter Chips */
.subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  border: 1px solid var(--border);
  background: rgba(17, 27, 41, 0.9);
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 120ms ease;
}

.chip:hover { color: #fff; border-color: rgba(148, 163, 184, 0.4); }
.chip.active {
  background: var(--accent);
  color: #03131e;
  border-color: transparent;
  font-weight: 700;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.tone-sky { background: rgba(56, 189, 248, 0.14); color: #7dd3fc; border-color: rgba(56, 189, 248, 0.28); }
.tone-emerald { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.3); }
.tone-amber { background: rgba(245, 158, 11, 0.15); color: #fcd34d; border-color: rgba(245, 158, 11, 0.3); }
.tone-rose { background: rgba(244, 63, 94, 0.15); color: #fda4af; border-color: rgba(244, 63, 94, 0.3); }
.tone-slate { background: rgba(148, 163, 184, 0.14); color: #cbd5e1; border-color: rgba(148, 163, 184, 0.25); }

/* Inputs & Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field-full { grid-column: 1 / -1; }

.field label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.input, .select, .textarea {
  width: 100%;
  background: #0b131e;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  color: #f8fafc;
  padding: 9px 11px;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 120ms ease;
}

.input:focus, .select:focus, .textarea:focus {
  border-color: var(--accent-hi);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.textarea { min-height: 82px; resize: vertical; }

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(13, 21, 33, 0.9);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  padding: 11px 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: rgba(17, 27, 41, 0.92);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(203, 213, 225, 0.07);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(56, 189, 248, 0.04); }

/* Kanban Board */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 12px;
  overflow-x: auto;
}

@media (max-width: 1024px) {
  .kanban-board { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}

@media (max-width: 600px) {
  .kanban-board { grid-template-columns: 1fr; }
}

.kanban-col {
  background: rgba(15, 23, 36, 0.85);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
}

.kanban-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.kanban-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: border-color 120ms ease;
}

.kanban-card:hover { border-color: var(--border-hi); }

/* Topbar Search & User Pill */
.cmd-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--slate);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 11px;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
  min-width: 210px;
  justify-content: space-between;
}

.cmd-btn:hover { border-color: var(--border-hi); color: #fff; }

.kbd {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

@media (max-width: 640px) {
  .cmd-btn { min-width: 0; }
  .cmd-btn .cmd-label-long { display: none; }
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--slate);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px 4px 5px;
  font-size: 12.5px;
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #18a2d6);
  color: #03131e;
  font-weight: 800;
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Modals & Palette */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(4px);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-panel {
  width: 100%;
  max-width: 680px;
  max-height: 90dvh;
  background: var(--slate);
  border: 1px solid var(--border-hi);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.modal-panel.modal-lg { max-width: 860px; }

.modal-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.modal-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* Command Palette */
.palette-box {
  width: 100%;
  max-width: 580px;
  background: var(--slate);
  border: 1px solid var(--border-hi);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  align-self: flex-start;
  margin-top: 8vh;
}

.palette-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: #fff;
  padding: 15px 18px;
  font-size: 15px;
  outline: none;
}

.palette-list {
  max-height: 55dvh;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.palette-item {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}

.palette-item:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--border);
}

/* Login Screen */
.auth-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(180deg, rgba(17, 27, 41, 0.96), rgba(11, 19, 30, 0.98));
  border: 1px solid var(--border-hi);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Toasts */
.toast-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
}

.toast {
  background: var(--elevated);
  border: 1px solid var(--border-hi);
  color: #fff;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.toast.tone-error { border-color: rgba(244, 63, 94, 0.65); color: #fecdd3; }
.toast.tone-ok { border-color: rgba(16, 185, 129, 0.65); color: #a7f3d0; }

/* Printable Document Sheet */
.print-paper {
  background: #ffffff;
  color: #0f172a;
  border-radius: 14px;
  padding: 28px;
  border: 1px solid #cbd5e1;
}

.print-paper h1, .print-paper h2, .print-paper h3 { color: #0f172a; }
.print-paper table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.print-paper th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #475569;
  border-bottom: 2px solid #cbd5e1;
  padding: 8px 6px;
}
.print-paper td {
  padding: 9px 6px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
}

@media print {
  body { background: #fff !important; color: #0f172a !important; }
  #app, #toast-root, #palette-root, .modal-head, .modal-foot { display: none !important; }
  #modal-root, .modal-backdrop, .modal-panel, .modal-body {
    position: static !important;
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
    max-height: none !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    display: block !important;
  }
  .print-paper { border: none !important; padding: 0 !important; }
}

/* Utilities */
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.row-gap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stack-xs { display: flex; flex-direction: column; gap: 4px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-md { display: flex; flex-direction: column; gap: 14px; }
.text-right { text-align: right; }
.empty-box {
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 28px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

/* Proposal Document Uploader */
.upload-dropzone {
  border: 1.5px dashed rgba(148, 163, 184, 0.32);
  background: #0b131e;
  border-radius: 12px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.upload-dropzone:hover,
.upload-dropzone:focus-visible {
  outline: none;
  border-color: var(--accent-hi);
  background: rgba(56, 189, 248, 0.06);
}

.upload-dropzone.is-dragover {
  border-color: var(--accent-hi);
  background: rgba(56, 189, 248, 0.12);
}

.upload-dropzone-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
}

.upload-dropzone-sub {
  font-size: 12px;
  color: var(--muted);
}

.upload-status {
  margin-top: 6px;
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  color: #7dd3fc;
}

.attachment-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(17, 27, 41, 0.9);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
}

.attachment-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.attachment-name {
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attachment-sub {
  font-size: 11.5px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
}

.attachment-chip {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.28);
  color: #bae6fd;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
}