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

:root {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --border: #e0e2e6;
  --text: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --accent: #2563eb;
  --green: #16a34a;
  --red: #dc2626;
  --yellow: #ca8a04;
  --orange: #ea580c;
  --blue: #2563eb;
  --badge-green-bg: rgba(22,163,74,0.1);
  --badge-red-bg: rgba(220,38,38,0.1);
  --badge-yellow-bg: rgba(202,138,4,0.1);
  --badge-dim-bg: #f1f3f5;
  --progress-bg: #f1f3f5;
  --toggle-bg: #f8f9fa;
  --noise-opacity: 0.035;
  --grid-color: rgba(160,168,180,0.6);
  --gradient-wash: linear-gradient(to bottom, rgba(230,233,240,0.3) 0%, transparent 60%);
  --theme-bg: rgba(255,255,255,0.92);
  --hover-tint: rgba(37,99,235,0.04);
  --modal-backdrop: rgba(0,0,0,0.3);
  --radius: 6px;
}

html.dark {
  --bg: #0f1115;
  --surface: #1a1d24;
  --border: #2a2d35;
  --text: #e4e5e7;
  --text-secondary: #9ca0a8;
  --text-muted: #6b7074;
  --accent: #5b9aff;
  --green: #34d399;
  --red: #f87171;
  --yellow: #fbbf24;
  --orange: #fb923c;
  --blue: #5b9aff;
  --badge-green-bg: rgba(52,211,153,0.12);
  --badge-red-bg: rgba(248,113,113,0.12);
  --badge-yellow-bg: rgba(251,191,36,0.12);
  --badge-dim-bg: #23262e;
  --progress-bg: #23262e;
  --toggle-bg: #23262e;
  --noise-opacity: 0.012;
  --grid-color: rgba(90,96,110,0.7);
  --gradient-wash: linear-gradient(to bottom, rgba(20,22,28,0.4) 0%, transparent 60%);
  --theme-bg: rgba(26,29,36,0.92);
  --hover-tint: rgba(91,154,255,0.04);
  --modal-backdrop: rgba(0,0,0,0.6);
}

body {
  background: var(--bg);
  font-family: 'IBM Plex Serif', Georgia, serif;
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  scrollbar-gutter: stable;
  transition: background 0.3s, color 0.3s;
}

body, body * { font-weight: 400; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  opacity: var(--noise-opacity);
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50vh;
  z-index: 0;
  pointer-events: none;
  background: var(--gradient-wash);
}

.grid-lines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  justify-content: center;
}

.grid-lines-inner {
  width: 1120px;
  max-width: 100vw;
  display: flex;
  justify-content: space-between;
  padding: 0;
}

.grid-line {
  width: 1px;
  background: repeating-linear-gradient(to bottom, var(--grid-color) 0px, var(--grid-color) 4px, transparent 4px, transparent 10px);
}

#app {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

.theme-bar {
  position: fixed;
  top: 1rem;
  right: 2rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--theme-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.2rem 0.3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.3s, border-color 0.3s;
}

.theme-bar .font-options {
  display: flex;
  gap: 0.15rem;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s;
}

.theme-bar.expanded .font-options {
  max-width: 400px;
  opacity: 1;
}

.theme-bar .font-name {
  padding: 0.25rem 0.5rem;
  font-size: 0.55rem;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s;
  border-radius: 10px;
}

.theme-bar .font-name:hover { color: var(--text); }
.theme-bar.expanded .font-name { display: none; }

.theme-opt {
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.55rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  font-family: inherit;
}

.theme-opt:hover {
  color: var(--text);
  background: var(--progress-bg);
}

.theme-opt.active {
  color: var(--accent);
  background: rgba(37,99,235,0.08);
}

html.dark .theme-opt.active {
  background: rgba(91,154,255,0.12);
}

.theme-sep {
  width: 1px;
  height: 13px;
  background: var(--border);
  margin: 0 0.1rem;
  flex-shrink: 0;
  align-self: center;
}

.dark-btn {
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}

.dark-btn:hover {
  color: var(--text);
  background: var(--progress-bg);
}

.page-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.page-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.page-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.page-header-title {
  font-size: 22px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-header-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.page-header-nav a,
.page-header-nav span {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
  background: transparent;
  border-radius: 0;
}

.page-header-nav a:hover,
.page-header-nav span:hover {
  color: var(--text);
}

.page-header-nav .active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: transparent;
}

.page-header-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.page-header-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  min-height: 28px;
  flex-wrap: wrap;
}

.page-header-back {
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  transition: color 0.15s;
}

.page-header-back:hover { color: var(--text); }

.project-switcher {
  font-size: 13px;
  padding: 3px 8px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  max-width: 250px;
}

.project-switcher:focus {
  outline: none;
  border-color: var(--accent);
}

.page-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.page-status-draft {
  background: var(--badge-yellow-bg);
  color: var(--yellow);
}

.page-status-final {
  background: var(--badge-green-bg);
  color: var(--green);
}

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

.header h1 {
  font-size: 24px;
  color: var(--text);
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  text-decoration: none;
}

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

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

.btn-primary:hover {
  opacity: 0.9;
  background: var(--accent);
}

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

.btn-danger {
  color: var(--red);
  background: transparent;
}

.btn-danger:hover {
  background: var(--badge-red-bg);
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

input, select, textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
}

label {
  font-size: 12px;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 4px;
}

.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.form-group {
  flex: 1;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.project-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 1.25rem 0;
  cursor: pointer;
  transition: all 0.2s;
  transform: none;
}

.project-card:hover {
  border-bottom-color: var(--accent);
  transform: none;
}

.project-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text);
}

.project-card .meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.auth-screen {
  max-width: 400px;
  margin: 80px auto;
  text-align: center;
}

.auth-screen h2 {
  margin-bottom: 8px;
  color: var(--text);
}

.auth-screen p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 14px;
}

.auth-screen input {
  width: 100%;
  margin-bottom: 12px;
}

.auth-screen .btn {
  width: 100%;
  justify-content: center;
}

.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  width: 100%;
}

.tab {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: all 0.15s;
  border-left: none;
  border-right: none;
  border-top: none;
  background: transparent;
  border-radius: 0;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  background: transparent;
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.gantt-container {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.gantt-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.gantt-table th {
  position: sticky;
  top: 0;
  background: var(--surface);
  padding: 8px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.gantt-table td {
  padding: 6px 12px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.gantt-table tr:hover td {
  background: var(--hover-tint);
}

.gantt-table tr.milestone td {
  font-size: 12px;
  color: var(--text-secondary);
  padding-left: 32px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 10px;
  letter-spacing: 0.03em;
}

.badge-NW {
  background: rgba(37,99,235,0.2);
  color: var(--accent);
}

html.dark .badge-NW {
  background: rgba(91,154,255,0.2);
  color: var(--accent);
}

.badge-JD {
  background: rgba(234,88,12,0.2);
  color: var(--orange);
}

.badge-VR {
  background: rgba(22,163,74,0.2);
  color: var(--green);
}

html.dark .badge-VR {
  background: rgba(52,211,153,0.2);
  color: var(--green);
}

.badge-PR {
  background: rgba(234,88,12,0.2);
  color: var(--orange);
}

.badge-V\+J {
  background: rgba(202,138,4,0.2);
  color: var(--yellow);
}

html.dark .badge-V\+J {
  background: rgba(251,191,36,0.2);
  color: var(--yellow);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 11px;
  transition: all 0.15s;
  padding: 0;
  line-height: 1;
}

.theme-toggle:hover {
  background: var(--progress-bg);
  color: var(--text);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
}

.status-pending {
  background: var(--badge-dim-bg);
  color: var(--text-secondary);
}

.status-in_progress {
  background: rgba(37,99,235,0.12);
  color: var(--accent);
}

html.dark .status-in_progress {
  background: rgba(91,154,255,0.12);
  color: var(--accent);
}

.status-done {
  background: var(--badge-green-bg);
  color: var(--green);
}

.status.clickable {
  cursor: pointer;
  user-select: none;
  transition: transform 0.1s, box-shadow 0.1s;
}

.status.clickable:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 2px var(--accent);
}

.status.clickable:active {
  transform: scale(0.95);
}

.gantt-bar-cell {
  position: relative;
  min-width: 300px;
}

.gantt-bar-bg {
  position: relative;
  height: 22px;
  width: 100%;
}

.gantt-bar {
  position: absolute;
  height: 18px;
  border-radius: 4px;
  top: 2px;
  min-width: 4px;
  transition: all 0.2s;
}

.gantt-bar.orig {
  background: rgba(107,114,128,0.25);
  border: 1px solid rgba(107,114,128,0.4);
}

.gantt-bar.curr {
  background: rgba(37,99,235,0.3);
  border: 1px solid rgba(37,99,235,0.5);
}

html.dark .gantt-bar.curr {
  background: rgba(91,154,255,0.3);
  border: 1px solid rgba(91,154,255,0.5);
}

.gantt-bar.done {
  background: rgba(22,163,74,0.3);
  border: 1px solid rgba(22,163,74,0.5);
}

html.dark .gantt-bar.done {
  background: rgba(52,211,153,0.3);
  border: 1px solid rgba(52,211,153,0.5);
}

.gantt-bar.milestone-bar {
  height: 12px;
  top: 5px;
  border-radius: 2px;
  opacity: 0.6;
}

.gantt-week-markers {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.gantt-week-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
  opacity: 0.4;
}

.gantt-header-weeks {
  position: relative;
  height: 18px;
  font-size: 11px;
  color: var(--text-secondary);
}

.gantt-month-label {
  position: absolute;
  top: 0;
  font-size: 11px;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.gantt-header-tick {
  position: absolute;
  top: 12px;
  bottom: 0;
  width: 1px;
  background: var(--border);
  opacity: 0.4;
}

.gantt-header-tick.month-tick {
  top: 0;
  opacity: 0.7;
}

.table-container {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

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

.data-table th {
  position: sticky;
  top: 0;
  background: var(--surface);
  padding: 10px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.data-table tr:hover td {
  background: var(--hover-tint);
}

.data-table .editable {
  cursor: pointer;
  border-radius: 4px;
  padding: 2px 6px;
  margin: -2px -6px;
}

.data-table .editable:hover {
  background: var(--progress-bg);
}

.inline-input {
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--text);
  padding: 2px 6px;
  font-size: 13px;
  width: 100%;
  outline: none;
}

.budget-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.budget-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.budget-card .label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.budget-card .value {
  font-size: 24px;
  margin-top: 4px;
}

.budget-card .value.green { color: var(--green); }
.budget-card .value.yellow { color: var(--yellow); }
.budget-card .value.blue { color: var(--accent); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--modal-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.modal h2 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--text);
}

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

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.settings-row:last-child {
  border-bottom: none;
}

.today-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--red);
  z-index: 2;
}

.today-label {
  position: absolute;
  top: -14px;
  font-size: 9px;
  color: var(--red);
  white-space: nowrap;
  transform: translateX(-50%);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-state h3 {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 8px;
}

.empty-state p {
  margin-bottom: 24px;
}

.date {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.date.overdue { color: var(--red); }
.date.shifted { color: var(--yellow); }

.money {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.file-dir {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 9999px;
  white-space: nowrap;
}

.dir-in {
  background: var(--badge-green-bg);
  color: var(--green);
}

.dir-out {
  background: rgba(37,99,235,0.12);
  color: var(--accent);
}

html.dark .dir-out {
  background: rgba(91,154,255,0.12);
  color: var(--accent);
}

.badge-dim {
  background: var(--badge-dim-bg);
  color: var(--text-secondary);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 9999px;
  white-space: nowrap;
}

.journal-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.journal-entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  transition: border-color 0.15s;
}

.journal-entry:hover {
  border-color: var(--accent);
}

.journal-entry-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.journal-type {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 9999px;
  white-space: nowrap;
}

.journal-type-call {
  background: var(--badge-yellow-bg);
  color: var(--yellow);
}

.journal-type-decision {
  background: rgba(168,85,247,0.12);
  color: #a855f7;
}

.journal-type-approval {
  background: var(--badge-green-bg);
  color: var(--green);
}

.journal-type-note {
  background: var(--badge-dim-bg);
  color: var(--text-secondary);
}

.journal-date {
  font-size: 12px;
  color: var(--text-secondary);
}

.journal-content {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  white-space: pre-wrap;
}

.colophon {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.colophon a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.colophon a:hover {
  color: var(--text);
}

@media (max-width: 768px) {
  #app {
    padding: 1.5rem 1rem;
  }
  .header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .page-header-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-header-actions {
    width: 100%;
  }
  .page-header-nav {
    width: 100%;
    justify-content: flex-start;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-switcher {
    max-width: 100%;
  }
  .theme-bar {
    top: 0.75rem;
    right: 1rem;
  }
}
```