/* TK Dale Wealth — Accelerator portal, dark mode. */
:root {
  --navy: #0b2138;
  --navy-elev: #102a45;
  --navy-rail: #0a1c30;
  --heritage: #1c4a77;
  --ivory: #f5f1e8;
  --brass: #b69243;
  --sage: #7b9887;
  --muted: rgba(245, 241, 232, 0.72);
  --soft: rgba(245, 241, 232, 0.5);
  --hair: rgba(245, 241, 232, 0.12);
  --rail-w: 240px;
}
* { box-sizing: border-box; }
/* The hidden attribute must win over explicit display (e.g. .login-wrap flex). */
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--navy);
  color: var(--ivory);
  font-family: -apple-system, "Manrope", "Segoe UI", sans-serif;
}
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; font-weight: 600; margin: 0; }
.muted { color: var(--muted); }
.soft { color: var(--soft); }

/* Login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { max-width: 420px; width: 100%; }
.login-logo { width: 96px; height: 96px; object-fit: contain; margin: 16px auto; display: block; }
.card { background: var(--navy-elev); border: 1px solid var(--hair); border-radius: 16px; padding: 20px; }
.center { text-align: center; }

button { font: inherit; cursor: pointer; border-radius: 999px; border: none; padding: 10px 22px; }
button.primary { background: var(--heritage); color: var(--ivory); }
button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--hair); }
.icon-btn { background: transparent; border: none; color: var(--ivory); font-size: 22px; padding: 4px 10px; display: none; }

/* Shell */
.topbar {
  height: 60px; display: flex; align-items: center; gap: 12px;
  padding: 0 18px; background: var(--navy-elev); border-bottom: 1px solid var(--hair);
  position: sticky; top: 0; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 10px; flex: 1; }
.brand-logo { width: 30px; height: 30px; object-fit: contain; }
.brand-name { font-family: "Playfair Display", Georgia, serif; font-size: 20px; }
.layout { display: flex; min-height: calc(100vh - 60px); }
.drawer {
  width: var(--rail-w); flex-shrink: 0; background: var(--navy-rail);
  border-right: 1px solid var(--hair); padding: 12px 0; overflow-y: auto;
}
.nav-group-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); padding: 14px 20px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 20px;
  color: var(--muted); cursor: pointer; font-size: 14px; border-left: 3px solid transparent;
}
.nav-item:hover { background: rgba(255,255,255,0.04); color: var(--ivory); }
.nav-item.active { color: var(--brass); border-left-color: var(--brass); background: rgba(182,146,67,0.08); }
.nav-item.sub { padding-left: 34px; font-size: 13px; }
.content { flex: 1; padding: 22px; max-width: 1100px; margin: 0 auto; width: 100%; }
.scrim { display: none; }

/* Dashboard */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.section-title { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.big-number { font-family: "Playfair Display", Georgia, serif; font-size: 46px; color: var(--brass); line-height: 1; }
.force-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.accel-btns { display: flex; flex-direction: column; gap: 10px; }
.pill-btn {
  background: var(--heritage); color: var(--ivory); border-radius: 999px;
  padding: 9px 18px; text-align: center; cursor: pointer; font-size: 14px; border: none;
}
.pill-btn:hover { background: #24597f; }
.pill-btn.brass { background: var(--brass); color: var(--navy); }
.wrap-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.gauge-wrap { text-align: center; }
.gauge-num { font-family: "Playfair Display", Georgia, serif; font-size: 26px; color: var(--brass); margin-top: -8px; }

/* Lists */
.row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-radius: 12px; background: var(--navy-elev);
  border: 1px solid var(--hair); margin-bottom: 8px; cursor: pointer;
}
.row:hover { border-color: var(--brass); }
.pill { background: var(--brass); color: var(--navy); border-radius: 999px; padding: 2px 10px; font-weight: 600; font-size: 13px; }
.qa { margin-bottom: 16px; }
.qa .q { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.back { color: var(--brass); cursor: pointer; display: inline-block; margin-bottom: 14px; }
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kanban h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-family: inherit; }
.kanban .kcard { background: var(--navy-elev); border: 1px solid var(--hair); border-radius: 10px; padding: 10px; margin-bottom: 8px; font-size: 13px; }
.empty { color: var(--soft); font-size: 13px; }

@media (max-width: 800px) {
  .icon-btn { display: block; }
  .grid2, .kanban { grid-template-columns: 1fr; }
  .drawer {
    position: fixed; top: 60px; bottom: 0; left: 0; z-index: 40;
    transform: translateX(-100%); transition: transform 0.2s ease;
  }
  .drawer.open { transform: translateX(0); }
  .scrim.open { display: block; position: fixed; inset: 60px 0 0 0; background: rgba(0,0,0,0.5); z-index: 35; }
}
