/* Shared shell for every page in the product hub: design tokens, resets,
   the workspace (hub) sidebar, the main column, and the placeholder pages.
   Page-specific styles live next to their module (see css/roadmap/). */
:root{
  --sidebar:#1a2332; --sidebar-2:#141d29; --sidebar-line:rgba(255,255,255,.08);
  --primary:#15803d; --primary-2:#16a34a; --primary-bg:#f0fdf4; --primary-line:#bbf7d0;
  --bg:#f5f6f8; --surface:#ffffff; --surface-2:#fafbfc;
  --border:#e6e8eb; --border-2:#eef0f2;
  --text:#1d2430; --text-muted:#6b7280; --text-faint:#9aa1ac;
  --done:#15803d; --done-bg:#ecfdf3; --done-line:#bbf7d0;
  --prog:#b45309; --prog-bg:#fffbeb; --prog-line:#fde68a;
  --todo:#64748b; --todo-bg:#f1f5f9; --todo-line:#e2e8f0;
  --hi:#dc2626; --hi-bg:#fef2f2; --med:#d97706; --med-bg:#fff7ed; --lo:#6b7280; --lo-bg:#f3f4f6;
  --shadow:0 1px 2px rgba(16,24,40,.04),0 1px 3px rgba(16,24,40,.06);
  --shadow-lg:0 10px 30px rgba(16,24,40,.12),0 4px 8px rgba(16,24,40,.06);
  --radius:12px;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{font-family:'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:var(--bg);color:var(--text);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
input,select,textarea{font-family:inherit;font-size:inherit;color:inherit}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:#d4d8dd;border-radius:6px;border:2px solid var(--bg)}
::-webkit-scrollbar-thumb:hover{background:#bcc2c9}

.hub{display:flex;height:100vh;overflow:hidden}

/* ---------- Hub sidebar (workspace nav — Roadmap / Project Plan / Organisation Structure) ---------- */
.hub-sidebar{width:220px;flex-shrink:0;background:var(--sidebar);color:#e8edf3;display:flex;flex-direction:column;overflow:hidden;transition:width .18s ease}
.hub-top{padding:18px 16px 14px;border-bottom:1px solid var(--sidebar-line);display:flex;align-items:center;gap:8px}
.hub-brand{display:flex;align-items:center;gap:10px;flex:1;min-width:0}
.hub-mark{width:32px;height:32px;border-radius:9px;background:linear-gradient(135deg,var(--primary-2),var(--primary));display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 2px 8px rgba(21,128,61,.4)}
.hub-mark svg{width:18px;height:18px;stroke:#fff}
.hub-brand-txt{min-width:0;overflow:hidden}
.hub-brand-txt .t1{font-weight:700;font-size:14.5px;letter-spacing:-.2px;line-height:1.15;white-space:nowrap}
.hub-brand-txt .t2{font-size:10.5px;text-transform:uppercase;letter-spacing:.5px;color:#8b97a8;font-weight:600;margin-top:1px;white-space:nowrap}
.hub-toggle{flex-shrink:0;padding:6px;border-radius:7px;color:#8b97a8;transition:background .12s,color .12s}
.hub-toggle:hover{background:rgba(255,255,255,.08);color:#fff}
.hub-toggle svg{width:17px;height:17px;stroke:currentColor;display:block}
.hub-section-label{font-size:10.5px;text-transform:uppercase;letter-spacing:.7px;color:#6f7d90;font-weight:700;padding:16px 16px 8px;white-space:nowrap}
.hub-menu{padding:0 10px}
.hub-item{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:8px;margin-bottom:2px;color:#cdd5df;text-decoration:none;transition:background .12s,color .12s}
.hub-item:hover{background:rgba(255,255,255,.05);color:#fff}
.hub-item.active{background:rgba(22,163,74,.18);color:#fff}
.hub-item .ic{flex-shrink:0;width:18px;height:18px;display:flex}
.hub-item .ic svg{width:100%;height:100%;stroke:currentColor}
.hub-item.active .ic{color:var(--primary-2)}
.hub-item .lbl{flex:1;font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hub-item.active .lbl{font-weight:600}
.hub-item .badge{flex-shrink:0;font-size:10.5px;font-weight:700;color:var(--primary-2);background:rgba(22,163,74,.18);padding:2px 7px;border-radius:20px}

.hub-sidebar.collapsed{width:64px}
.hub-sidebar.collapsed .hub-brand-txt,
.hub-sidebar.collapsed .hub-section-label,
.hub-sidebar.collapsed .hub-item .lbl,
.hub-sidebar.collapsed .hub-item .badge{display:none}
.hub-sidebar.collapsed .hub-top{justify-content:center}
.hub-sidebar.collapsed .hub-brand{flex:0}
.hub-sidebar.collapsed .hub-item{justify-content:center}
.hub-sidebar.collapsed .hub-toggle svg{transform:rotate(180deg)}

/* ---------- Main column shell ---------- */
.main{flex:1;display:flex;flex-direction:column;overflow:hidden;min-width:0}
.page-head{padding:20px 26px 0}
.page-head h1{font-size:21px;font-weight:700;letter-spacing:-.4px}
.page-head .page-sub{font-size:12px;color:var(--text-faint);font-weight:500;margin-top:2px;text-transform:uppercase;letter-spacing:.4px}

/* ---------- Placeholder ("work in progress") pages ---------- */
.placeholder-main{align-items:center;justify-content:center;padding:26px}
.placeholder-panel{max-width:380px;text-align:center;color:var(--text-faint)}
.placeholder-panel svg{width:46px;height:46px;stroke:currentColor;opacity:.5;margin-bottom:16px}
.placeholder-panel h1{font-size:19px;font-weight:700;letter-spacing:-.3px;color:var(--text);margin-bottom:8px}
.placeholder-panel p{font-size:13.5px;line-height:1.6;margin-bottom:16px}
.wip-tag{display:inline-block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--prog);background:var(--prog-bg);padding:5px 12px;border-radius:20px}

@media(max-width:1100px){.hub-sidebar{width:190px}}
@media(max-width:720px){
  .hub{flex-direction:column}
  .hub-sidebar,.hub-sidebar.collapsed{width:100%;flex-direction:row;align-items:center}
  .hub-top{border-bottom:none;padding:10px 12px;flex-shrink:0}
  .hub-toggle{display:none}
  .hub-section-label{display:none}
  .hub-menu{display:flex;flex:1;padding:0 8px 0 0;overflow-x:auto;gap:2px}
  .hub-item{margin-bottom:0;white-space:nowrap;padding:8px 10px}
  .hub-item .lbl{display:none}
  .hub-sidebar.collapsed .hub-brand-txt{display:block}
  .hub-sidebar.collapsed .hub-top{justify-content:flex-start}
  .hub-sidebar.collapsed .hub-brand{flex:1}
  .hub-sidebar.collapsed .hub-item{justify-content:flex-start}
  .hub-sidebar.collapsed .hub-item .badge{display:inline-block}
}

@media(prefers-reduced-motion:reduce){
  .hub-sidebar{transition:none!important}
}
