:root {
  color-scheme: light;
  --ink: #0f172a; /* slate-900 */
  --muted: #475569; /* slate-600 */
  --muted-light: #94a3b8; /* slate-400 */
  --line: #e2e8f0; /* slate-200 */
  --line-strong: #cbd5e1; /* slate-300 */
  --paper: #f8fafc; /* slate-50 */
  --panel: #ffffff;
  --panel-2: #f1f5f9; /* slate-100 */
  
  --brand: #0d9488; /* teal-600 */
  --brand-light: #2dd4bf; /* teal-400 */
  --brand-2: #0284c7; /* sky-600 */
  --brand-2-light: #38bdf8; /* sky-400 */
  
  --grad: linear-gradient(135deg, #0d9488 0%, #0284c7 100%);
  --grad-soft: linear-gradient(135deg, rgba(13, 148, 136, 0.05), rgba(2, 132, 199, 0.05));
  --grad-hover: linear-gradient(135deg, #0f766e 0%, #0369a1 100%);
  
  --shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 8px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.1), 0 8px 16px -4px rgba(15, 23, 42, 0.05);
  --radius: 16px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.25;
  margin: 0;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

.eyebrow {
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ---------- Topbar (Classic Fallback) ---------- */
.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 68px;
  justify-content: space-between;
  padding: 0 26px;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
}

.brand-mark {
  background: var(--grad);
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 6px 12px;
}

.brand-sub {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.partner-pill {
  align-items: center;
  display: flex;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  background: var(--panel-2);
  padding: 6px 14px;
  border-radius: 9999px;
  font-weight: 500;
}

.partner-pill span {
  align-items: center;
  background: var(--brand);
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  width: 24px;
}

/* ---------- Login Page Layout ---------- */
.login-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 68px);
  background: #ffffff;
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 80px;
  background: #ffffff;
  border-right: 1px solid var(--line);
}

.login-mark {
  align-items: center;
  background: var(--grad);
  border-radius: 12px;
  color: #ffffff;
  display: inline-flex;
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 900;
  height: 52px;
  justify-content: center;
  letter-spacing: 0.08em;
  margin-bottom: 30px;
  width: 120px;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

.login-panel h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px 0;
}

.login-panel .lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.login-form {
  display: grid;
  gap: 20px;
  max-width: 420px;
}

.login-form label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-form select,
.login-form input {
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  font-size: 14.5px;
  padding: 12px 14px;
  height: 48px;
  outline: none;
  transition: all 0.15s;
}

.login-form select:focus,
.login-form input:focus {
  border-color: var(--brand);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.login-form button {
  background: var(--grad);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  height: 48px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}

.login-form button:hover {
  background: var(--grad-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.25);
}

.login-aside {
  background: var(--grad-soft);
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.login-aside::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.08), transparent 70%);
  z-index: 0;
}

.login-aside p {
  color: var(--brand-2);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.login-aside h2 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
  position: relative;
  z-index: 1;
}

.login-aside ul {
  list-style: none;
  padding: 0;
  margin: 40px 0 0 0;
  display: grid;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.login-aside li {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s;
}

.login-aside li:hover {
  transform: translateX(4px);
}

.login-aside li span {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-2);
  background: rgba(2, 132, 199, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hint {
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
}

.hint code {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--brand-deep);
  font-weight: 600;
}

/* ---------- Portal Layout (Dashboard Site) ---------- */
.portal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  background: var(--paper);
}

/* Sidebar styling */
.portal-sidebar {
  background: #ffffff;
  border-right: 1px solid var(--line);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 10;
}

.portal-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.portal-brand-mark {
  background: var(--grad);
  color: #ffffff;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 8px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 8px rgba(13, 148, 136, 0.15);
}

.portal-brand-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  margin: 0;
}

.portal-brand-subtitle {
  font-size: 11px;
  color: var(--muted-light);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.portal-sidebar-search {
  position: relative;
  margin-bottom: 24px;
}

.portal-sidebar-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--muted-light);
  pointer-events: none;
}

.portal-sidebar-search input {
  width: 100%;
  height: 40px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding-left: 38px;
  padding-right: 12px;
  color: var(--ink);
  font-size: 13.5px;
  outline: none;
  transition: all 0.15s;
}

.portal-sidebar-search input:focus {
  background: #ffffff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.08);
}

/* Nav Menu */
.portal-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
  overflow-y: auto;
}

.nav-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
  color: var(--muted);
  font-weight: 550;
  font-size: 13.5px;
}

.nav-button:hover {
  background: var(--panel-2);
  color: var(--ink);
}

.nav-button.active {
  background: var(--grad-soft);
  color: var(--brand-deep);
  border-color: rgba(13, 148, 136, 0.15);
  font-weight: 700;
}

.nav-icon {
  font-size: 16px;
}

/* Sidebar Footer */
.portal-sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: grid;
  gap: 14px;
}

.confidential-badge {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 6px;
  border-radius: 6px;
  letter-spacing: 0.08em;
}

.logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.logout-btn:hover {
  background: #fef2f2;
  border-color: #fee2e2;
  color: #ef4444;
}

/* Content Area */
.portal-content {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
}

.portal-content-header {
  height: 68px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}

.bc-root {
  color: var(--muted-light);
  font-weight: 500;
}

.bc-separator {
  color: var(--muted-light);
}

.bc-current {
  color: var(--ink);
  font-weight: 600;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  background: rgba(13, 148, 136, 0.08);
  color: var(--brand-deep);
  padding: 6px 12px;
  border-radius: 9999px;
  font-weight: 600;
}

.status-indicator {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.portal-content-body {
  padding: 40px;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  gap: 40px;
}

/* Fade-in animation */
.fade-in {
  animation: fadeIn 0.35s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Content Sections ---------- */
.portal-content-section {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}

.section-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.section-badge {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--brand);
  background: rgba(13, 148, 136, 0.08);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-kicker {
  color: var(--brand-2);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 4px;
}

.section-card-header h2 {
  font-size: 24px;
  font-weight: 800;
}

/* Blocks styles */
.lead {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 500;
  margin: 0 0 24px 0;
}

.prose {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 20px 0;
}

.pull-quote {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  border-left: 4px solid var(--brand);
  padding-left: 20px;
  margin: 28px 0;
  background: var(--paper);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Label-Value Grid */
.label-value-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
  display: grid;
  gap: 4px;
}

.lv-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lv-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

/* Callout Box */
.callout-box {
  background: #f0fdfa; /* light teal */
  border: 1px solid #ccfbf1;
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
}

.callout-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.callout-icon {
  font-size: 18px;
}

.callout-header h4 {
  color: var(--brand-deep);
  font-size: 15px;
  font-weight: 700;
}

.callout-box p {
  margin: 0;
  font-size: 14px;
  color: #115e59;
}

/* List with check icons */
.block-card {
  margin-top: 30px;
}

.block-title {
  font-size: 17px;
  margin-bottom: 18px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 768px) {
  .check-list {
    grid-template-columns: 1fr;
  }
}

.check-list li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #10b981;
  font-weight: 900;
  font-size: 14px;
  background: rgba(16, 185, 129, 0.1);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Chips container */
.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.chip {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  transition: all 0.15s;
}

.chip:hover {
  background: rgba(13, 148, 136, 0.08);
  border-color: rgba(13, 148, 136, 0.2);
  color: var(--brand-deep);
}

/* TOC (Table of Contents Grid) */
.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.toc-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
  display: flex;
  gap: 16px;
  align-items: center;
}

.toc-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--brand-2-light);
}

.toc-n {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-2);
  background: rgba(2, 132, 199, 0.08);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toc-t {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 24px;
}

.member-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.01);
  transition: transform 0.2s, box-shadow 0.2s;
}

.member-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.member-header {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.avatar {
  background: var(--grad-soft);
  color: var(--brand);
  border: 1.5px solid rgba(13, 148, 136, 0.2);
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 800;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-header h4 {
  font-size: 16px;
  margin-bottom: 2px;
}

.member-header .role {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.member-tasks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.member-tasks li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  color: var(--muted);
}

.member-tasks li::before {
  content: "•";
  color: var(--brand);
  position: absolute;
  left: 8px;
  font-weight: 900;
  font-size: 18px;
  top: -2px;
}

/* Steps Flow */
.steps-flow {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.step-card {
  display: flex;
  gap: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.15s;
}

.step-card:hover {
  transform: translateX(4px);
  border-color: var(--brand-light);
}

.step-badge {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 900;
  background: var(--grad);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(13, 148, 136, 0.15);
}

.step-info h4 {
  font-size: 15px;
  margin-bottom: 6px;
}

.step-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 10px 0;
}

.deliverables {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--muted);
}

/* Ladder Flow (Maturity Ladder) */
.ladder-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.ladder-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.01);
  transition: all 0.2s;
  position: relative;
}

.ladder-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--line);
  border-radius: 12px 12px 0 0;
}

.ladder-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand-2-light);
}

.ladder-card:hover::before {
  background: var(--grad);
}

.ladder-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.ladder-card h4 {
  font-size: 16px;
  margin-bottom: 10px;
}

.ladder-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* Facts Grid */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.fact-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
}

.fact-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.fact-value {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--brand);
}

/* Phases Flow */
.phases-flow {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.phase-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
}

.phase-card h4 {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--ink);
}

.phase-card p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

/* Price Showcase */
.price-showcase {
  background: var(--grad-soft);
  border: 1px solid rgba(13, 148, 136, 0.15);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  margin: 24px 0;
}

.price-val {
  font-family: 'Sora', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--brand-deep);
  display: block;
  margin-bottom: 12px;
}

.price-description {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
}

/* Feature Info Cards */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.info-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.01);
  transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.info-card h4 {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--ink);
}

.info-card p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

/* Premium Table */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 24px;
}

.premium-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.premium-table th {
  background: var(--panel-2);
  color: var(--ink);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.premium-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.premium-table tr:last-child td {
  border-bottom: none;
}

.premium-table tr:hover td {
  background: rgba(0,0,0,0.01);
}

/* FAQ Accordion */
.faq-accordion {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.15s;
}

.faq-item[open] {
  border-color: var(--brand-light);
  box-shadow: var(--shadow);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  color: var(--ink);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question .chevron {
  transition: transform 0.2s;
  color: var(--muted-light);
  font-weight: bold;
}

.faq-item[open] .faq-question .chevron {
  transform: rotate(180deg);
  color: var(--brand);
}

.faq-answer {
  padding: 0 20px 18px 20px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.faq-answer p {
  margin: 14px 0 0 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Portal Hero Section ---------- */
.portal-hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.hero-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 50px;
  text-align: center;
  max-width: 720px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  top: -150px;
  left: -150px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.05), transparent 70%);
  z-index: 0;
}

.badge-tag {
  display: inline-block;
  background: var(--grad-soft);
  border: 1px solid rgba(13, 148, 136, 0.15);
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.hero-card h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--ink);
  position: relative;
  z-index: 1;
}

.hero-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 1;
}

.hero-grid-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 38px;
  position: relative;
  z-index: 1;
}

.stat-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.stat-num {
  font-family: 'Sora', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--brand-2);
  display: block;
  margin-bottom: 4px;
}

.stat-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.hero-cta-bar {
  position: relative;
  z-index: 1;
}

.btn-cta {
  background: var(--grad);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 30px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}

.btn-cta:hover {
  background: var(--grad-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.25);
}

/* ---------- Live Search Highlight ---------- */
.search-highlight {
  background: #fef08a; /* yellow-200 */
  color: #854d0e; /* yellow-800 */
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 600;
}

/* ---------- Instant Search Results Layout ---------- */
.search-results-layout {
  display: grid;
  gap: 24px;
}

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

.results-header h3 {
  font-size: 18px;
  color: var(--ink);
}

.clear-search-btn {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.15s;
}

.clear-search-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #ef4444;
}

.results-grid {
  display: grid;
  gap: 20px;
}

.search-result-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

.search-result-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-2-light);
  box-shadow: var(--shadow-lg);
}

.result-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.cat-tag {
  background: rgba(2, 132, 199, 0.08);
  color: var(--brand-2);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
}

.result-card-header h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

.result-card-body {
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.empty-search-state {
  text-align: center;
  padding: 60px 40px;
}

.empty-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 16px;
}

.empty-search-state h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.empty-search-state p {
  color: var(--muted);
  font-size: 14px;
}

/* Responsive adjustment for SPA layout */
@media (max-width: 900px) {
  .portal-layout {
    grid-template-columns: 1fr;
  }
  
  .portal-sidebar {
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  
  .portal-content {
    height: auto;
  }
  
  .portal-content-header {
    padding: 0 20px;
  }
  
  .portal-content-body {
    padding: 20px;
  }
  
  .login-shell {
    grid-template-columns: 1fr;
  }
  
  .login-panel {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 40px 24px;
  }
  
  .login-aside {
    padding: 40px 24px;
  }
}

/* ---------- Executive visual refresh ---------- */
:root {
  --ink: #111827;
  --muted: #4b5563;
  --muted-light: #9ca3af;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --paper: #f3f4f6;
  --panel: #ffffff;
  --panel-2: #f9fafb;
  --brand: #0f766e;
  --brand-deep: #134e4a;
  --brand-light: #5eead4;
  --brand-2: #1d4ed8;
  --brand-2-light: #93c5fd;
  --grad: linear-gradient(135deg, #0f766e 0%, #1d4ed8 100%);
  --grad-soft: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(29, 78, 216, 0.07));
  --grad-hover: linear-gradient(135deg, #115e59 0%, #1e40af 100%);
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow-lg: 0 18px 50px rgba(17, 24, 39, 0.12);
  --radius: 8px;
  --radius-sm: 6px;
}

body {
  background:
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  font-size: 15px;
}

.portal-page .topbar {
  display: none;
}

.portal-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  background: #f4f6f8;
}

.portal-sidebar {
  background: #0b1220;
  border-right: 0;
  box-shadow: 12px 0 30px rgba(15, 23, 42, 0.08);
  color: #e5e7eb;
  padding: 28px 22px;
}

.portal-sidebar-brand {
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 22px;
  padding-bottom: 22px;
}

.portal-brand-mark {
  background: #ffffff;
  border-radius: 6px;
  box-shadow: none;
  color: #0b1220;
  padding: 8px 11px;
}

.portal-brand-title {
  color: #ffffff;
  font-size: 16px;
}

.portal-brand-subtitle {
  color: #94a3b8;
}

.portal-sidebar-search input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #f8fafc;
}

.portal-sidebar-search input::placeholder {
  color: #94a3b8;
}

.portal-sidebar-search input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(94, 234, 212, 0.75);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.14);
}

.portal-sidebar-search .search-icon {
  color: #94a3b8;
  font-size: 15px;
}

.portal-nav {
  gap: 6px;
  padding-right: 2px;
}

.nav-button {
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 650;
  padding: 11px 12px;
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.nav-button.active {
  background: #ffffff;
  border-color: transparent;
  color: #0b1220;
}

.nav-icon {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 5px;
  display: inline-flex;
  flex: 0 0 28px;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  opacity: 0.82;
}

.portal-sidebar-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.confidential-badge {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
  border-radius: 5px;
  color: #fbbf24;
}

.logout-btn {
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #cbd5e1;
}

.logout-btn:hover {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.28);
  color: #fecaca;
}

.portal-content {
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 34rem),
    #f4f6f8;
}

.portal-content-header {
  background: rgba(244, 246, 248, 0.92);
  backdrop-filter: blur(14px);
  border-bottom-color: #dde3ea;
  height: 64px;
  padding: 0 42px;
}

.header-status {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
}

.status-indicator {
  animation: none;
}

.portal-content-body {
  gap: 28px;
  margin: 0;
  max-width: none;
  padding: 36px 42px 56px;
}

.portal-content-section,
.hero-card,
.search-result-card,
.member-card,
.info-card,
.toc-card,
.ladder-card,
.phase-card,
.faq-item {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.portal-content-section {
  border-color: #dfe5ec;
  padding: 30px;
}

.section-card-header {
  border-bottom-color: #edf0f3;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
}

.section-badge {
  background: #ecfdf5;
  border-radius: 6px;
  color: #047857;
  height: 34px;
  width: 34px;
}

.section-kicker,
.lv-label,
.fact-label,
.badge-tag,
.cat-tag {
  letter-spacing: 0.08em;
}

.section-card-header h2 {
  font-size: 25px;
  letter-spacing: -0.01em;
}

.lead {
  color: #374151;
  font-size: 18px;
}

.prose {
  color: #4b5563;
  font-size: 15.5px;
}

.pull-quote {
  background: #f8fafc;
  border-left-color: #0f766e;
  border-radius: 0 8px 8px 0;
  color: #111827;
}

.block-card,
.label-value-card,
.step-card,
.price-showcase,
.callout-box,
.fact-card {
  border-radius: 8px;
}

.label-value-card,
.step-card,
.fact-card {
  background: #f8fafc;
}

.check-list {
  gap: 14px 18px;
}

.check-list li::before {
  background: #dcfce7;
  border-radius: 5px;
  color: #15803d;
  content: "✓";
}

.chip {
  border-radius: 6px;
}

.portal-hero-section {
  justify-content: stretch;
  min-height: calc(100vh - 136px);
  width: 100%;
}

.hero-card {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(17, 24, 39, 0.88)),
    var(--grad);
  border: 0;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none;
  min-height: calc(100vh - 136px);
  padding: clamp(34px, 5vw, 72px);
  text-align: left;
  width: 100%;
}

.hero-card::after {
  display: none;
}

.hero-card h1 {
  color: #ffffff;
  font-size: clamp(34px, 4vw, 58px);
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 980px;
}

.hero-desc {
  color: #cbd5e1;
  margin-left: 0;
  max-width: 760px;
}

.badge-tag {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  color: #99f6e4;
}

.hero-grid-stats {
  max-width: 880px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  text-align: left;
}

.stat-num {
  color: #99f6e4;
}

.stat-lbl {
  color: #cbd5e1;
}

.btn-cta {
  background: #ffffff;
  border-radius: 6px;
  box-shadow: none;
  color: #0b1220;
}

.btn-cta:hover {
  background: #e5e7eb;
  box-shadow: none;
}

.table-container,
.premium-table th,
.premium-table td {
  border-color: #e5e7eb;
}

.premium-table th {
  background: #f8fafc;
}

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

  .portal-sidebar {
    border-bottom: 0;
    height: auto;
    position: relative;
  }

  .portal-content-header {
    padding: 0 20px;
  }

  .portal-content-body {
    padding: 24px 20px 40px;
  }

  .hero-card {
    padding: 34px 24px;
    min-height: auto;
  }

  .hero-card h1 {
    font-size: 32px;
  }

  .hero-grid-stats {
    grid-template-columns: 1fr;
  }
}

/* ---------- Full-viewport responsive layout hardening ---------- */
html,
body,
#app {
  min-height: 100%;
  width: 100%;
}

body {
  overflow-x: hidden;
}

.portal-layout {
  min-height: 100dvh;
  width: 100%;
}

.portal-content {
  min-width: 0;
  width: 100%;
}

.portal-content-body {
  align-content: start;
  box-sizing: border-box;
  max-width: none;
  min-height: calc(100dvh - 64px);
  padding: clamp(18px, 3vw, 44px);
  width: 100%;
}

.portal-content-body > *,
.portal-content-section,
.portal-hero-section,
.search-results-layout,
.results-grid {
  min-width: 0;
  width: 100%;
}

.portal-content-section {
  padding: clamp(20px, 3vw, 42px);
}

.section-card-body {
  min-width: 0;
  width: 100%;
}

.portal-hero-section {
  align-items: stretch;
  display: flex;
  min-height: calc(100dvh - 64px - clamp(36px, 6vw, 88px));
}

.hero-card {
  border-radius: 8px;
  min-height: inherit;
  width: 100%;
}

.hero-grid-stats,
.facts-grid,
.feature-cards,
.ladder-flow,
.toc-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  width: 100%;
}

.check-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.team-grid,
.steps-flow,
.phases-flow,
.faq-accordion {
  width: 100%;
}

.member-card,
.step-card,
.phase-card,
.info-card,
.fact-card,
.toc-card,
.ladder-card,
.label-value-card,
.callout-box,
.price-showcase,
.search-result-card {
  min-width: 0;
  width: 100%;
}

.premium-table {
  min-width: 720px;
}

@media (min-width: 1280px) {
  .portal-layout {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .portal-content-body {
    padding: 44px;
  }

  .portal-content-section {
    padding: 44px;
  }
}

@media (min-width: 1600px) {
  .portal-content-body {
    padding: 56px;
  }

  .hero-card {
    padding: 80px;
  }
}

@media (max-width: 900px) {
  .portal-layout {
    display: block;
  }

  .portal-sidebar {
    max-height: none;
    width: 100%;
  }

  .portal-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .portal-content-header {
    gap: 12px;
    height: auto;
    min-height: 58px;
    padding: 12px 18px;
  }

  .header-status {
    display: none;
  }

  .portal-content-body {
    min-height: auto;
    padding: 18px;
  }

  .portal-hero-section {
    min-height: auto;
  }

  .section-card-header,
  .member-header,
  .step-card,
  .result-card-header,
  .results-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .step-card {
    gap: 14px;
  }
}

@media (max-width: 560px) {
  .portal-sidebar {
    padding: 18px;
  }

  .portal-sidebar-brand {
    margin-bottom: 16px;
    padding-bottom: 16px;
  }

  .portal-nav {
    grid-template-columns: 1fr;
  }

  .portal-content-body {
    padding: 12px;
  }

  .portal-content-section,
  .hero-card,
  .search-result-card {
    border-radius: 6px;
    padding: 18px;
  }

  .hero-card h1 {
    font-size: 30px;
  }

  .lead {
    font-size: 16px;
  }

  .section-card-header h2 {
    font-size: 22px;
  }

  .breadcrumb {
    flex-wrap: wrap;
  }
}

.login-shell {
  min-height: calc(100dvh - 68px);
  width: 100%;
}

.login-panel,
.login-aside {
  min-width: 0;
  padding: clamp(28px, 6vw, 80px);
}

.login-form {
  max-width: 520px;
  width: 100%;
}

.journey-flow {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  width: 100%;
}

.journey-card {
  align-items: stretch;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0;
  grid-template-columns: 82px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

.journey-index {
  align-items: center;
  background: #0b1220;
  color: #99f6e4;
  display: flex;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
  justify-content: center;
}

.journey-content {
  min-width: 0;
  padding: 20px 22px;
}

.journey-owner {
  color: var(--brand);
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.journey-content h4 {
  font-size: 17px;
  margin-bottom: 7px;
}

.journey-content p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.workload-panel {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 22px;
  margin: 26px 0;
  padding: clamp(18px, 3vw, 28px);
  width: 100%;
}

.workload-chart {
  display: grid;
  gap: 16px;
  width: 100%;
}

.workload-bar-row {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(220px, 0.9fr) minmax(180px, 2fr) 64px;
  width: 100%;
}

.workload-person {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.workload-person strong,
.workload-person span {
  display: block;
}

.workload-person strong {
  color: var(--ink);
  font-size: 14px;
}

.workload-person span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.workload-initials {
  align-items: center;
  background: #0b1220;
  border-radius: 6px;
  color: #99f6e4;
  display: inline-flex;
  flex: 0 0 42px;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  height: 42px;
  justify-content: center;
}

.workload-track {
  background: #e5e7eb;
  border-radius: 999px;
  height: 18px;
  overflow: hidden;
  width: 100%;
}

.workload-fill {
  background: linear-gradient(90deg, #0f766e, #1d4ed8);
  border-radius: inherit;
  height: 100%;
  width: var(--w);
}

.workload-share {
  color: var(--ink);
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  text-align: right;
}

.workload-data-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.workload-data-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.workload-data-number {
  color: var(--brand);
  display: block;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}

.workload-data-card h4 {
  font-size: 15px;
  margin-bottom: 8px;
}

.workload-data-card p,
.workload-note {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
}

.workload-note {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

@media (max-width: 900px) {
  .login-shell {
    min-height: auto;
  }

  .login-panel,
  .login-aside {
    padding: 28px 20px;
  }

  .login-aside h2 {
    font-size: 32px;
  }

  .journey-card {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .workload-bar-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .workload-share {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .journey-card {
    grid-template-columns: 1fr;
  }

  .journey-index {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 12px 16px;
  }

  .journey-content {
    padding: 16px;
  }
}

.admin-settings-btn {
  width: 100%;
  margin-bottom: 12px;
}

.admin-panel .section-card-body {
  display: grid;
  gap: 22px;
}

.admin-status {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(13, 148, 136, 0.25);
  background: rgba(13, 148, 136, 0.08);
  color: #0f766e;
  border-radius: 8px;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN PANEL – Full CRUD
   ═══════════════════════════════════════════════════════════════ */

.admin-panel {
  padding: 28px;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Header */
.admin-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-panel-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-stats-row {
  display: flex;
  gap: 10px;
}

.admin-stat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 56px;
}

.admin-stat-chip span {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  font-family: 'Sora', sans-serif;
}

.admin-stat-chip--green { border-color: #86efac; background: #f0fdf4; color: #166534; }
.admin-stat-chip--green span { color: #15803d; }
.admin-stat-chip--blue { border-color: #93c5fd; background: #eff6ff; color: #1e40af; }
.admin-stat-chip--blue span { color: #1d4ed8; }

/* Tabs */
.admin-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 0;
}

.admin-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: none;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.admin-tab:hover { color: var(--ink); background: var(--panel-2); }
.admin-tab.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  background: rgba(13, 148, 136, 0.04);
}

.admin-tab-panel.hidden { display: none; }
.admin-tab-panel { display: flex; flex-direction: column; gap: 10px; }

/* Card wrapper */
.admin-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
  box-shadow: var(--shadow);
}

.admin-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

/* User accordion cards */
.admin-user-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.admin-user-card:hover { box-shadow: var(--shadow); }
.admin-user-card.expanded { border-color: var(--brand); }

.admin-user-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.admin-user-card-head:hover { background: var(--panel-2); }

.admin-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
}

.admin-user-info {
  flex: 1;
  min-width: 0;
}

.admin-user-info strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.admin-user-badges {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.admin-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  border: 1px solid;
}

.admin-badge--admin { background: #eff6ff; color: #1d4ed8; border-color: #93c5fd; }
.status--active { background: #f0fdf4; color: #15803d; border-color: #86efac; }
.status--inactive { background: #fef2f2; color: #b91c1c; border-color: #fca5a5; }

.admin-chevron {
  font-size: 0.7rem;
  color: var(--muted-light);
  transition: transform 0.2s;
  flex-shrink: 0;
}

/* Expanded edit form */
.admin-edit-form {
  padding: 18px 16px;
  border-top: 1px solid var(--line);
  background: var(--panel-2);
}

/* Form grid */
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.admin-form-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.admin-label > span {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.admin-label > span em {
  color: #ef4444;
  font-style: normal;
  margin-left: 2px;
}

.admin-label > small {
  font-size: 0.7rem;
  color: var(--muted-light);
}

.admin-label input {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font: inherit;
  font-size: 0.875rem;
  background: var(--panel);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.admin-label input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.admin-label input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-label--check {
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
  align-self: end;
  padding-bottom: 2px;
}

.admin-label--check input[type="checkbox"] {
  width: 17px;
  height: 17px;
  min-width: 17px;
  accent-color: var(--brand);
  cursor: pointer;
  padding: 0;
  border: none;
}

.admin-label--check > span {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
}

/* Form action buttons row */
.admin-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Buttons */
.admin-btn {
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.admin-btn:hover:not(:disabled) { background: var(--panel-2); }
.admin-btn:active:not(:disabled) { transform: scale(0.97); }
.admin-btn:disabled { opacity: 0.55; cursor: not-allowed; }

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

.admin-btn--primary:hover:not(:disabled) { background: #0f766e; border-color: #0f766e; }

.admin-btn--danger {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.admin-btn--danger:hover:not(:disabled) { background: #dc2626; border-color: #dc2626; }

.admin-btn--ghost-danger {
  background: none;
  border-color: transparent;
  color: #dc2626;
}

.admin-btn--ghost-danger:hover:not(:disabled) {
  background: #fef2f2;
  border-color: #fca5a5;
}

/* Delete confirm inline */
.admin-delete-confirm {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
}

.admin-self-note {
  font-size: 0.75rem;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-sm);
  padding: 5px 10px;
}

/* Empty state */
.admin-empty {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  font-size: 0.9rem;
  background: var(--panel-2);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line-strong);
}

/* Toast notification */
.admin-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
  pointer-events: none;
}

.admin-toast--visible { transform: translateY(0); opacity: 1; }
.admin-toast--success { background: #166534; color: #fff; }
.admin-toast--error { background: #991b1b; color: #fff; }

/* Create form wrapper */
.admin-create-form .admin-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .admin-panel { padding: 16px; }
  .admin-panel-header { flex-direction: column; }
  .admin-form-grid,
  .admin-form-grid.compact,
  .admin-create-form .admin-form-grid {
    grid-template-columns: 1fr;
  }
  .admin-stats-row { flex-wrap: wrap; }
}

/* ---------- BH10 OS Hub ---------- */
.hub-layout {
  background: #f7faf9;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.hub-sidebar {
  background: #0b1220;
  color: #e5edf6;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100vh;
  padding: 20px 14px;
  position: sticky;
  top: 0;
}

.hub-brand,
.hub-user-row,
.hub-topbar,
.home-welcome,
.home-banner,
.module-placeholder,
.home-status-card,
.home-module-card,
.home-recent-item {
  border-radius: 8px;
}

.hub-brand {
  align-items: center;
  display: flex;
  gap: 10px;
  padding: 8px 8px 14px;
}

.hub-brand-mark {
  align-items: center;
  background: #0d9488;
  color: #fff;
  display: inline-flex;
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  letter-spacing: 0.04em;
  width: 48px;
}

.hub-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.hub-brand-name {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.hub-brand-sub {
  color: #8da2b8;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.hub-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  padding-right: 2px;
}

.hub-nav-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hub-nav-module {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hub-nav-group-label {
  color: #8da2b8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0 10px;
  text-transform: uppercase;
}

.hub-nav-item {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  color: #dbe7f3;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 9px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  min-height: 42px;
  padding: 9px 10px;
  text-align: left;
  width: 100%;
}

.hub-nav-item:hover,
.hub-nav-item.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hub-nav-item.active {
  box-shadow: inset 3px 0 0 #2dd4bf;
}

.hub-nav-icon {
  font-size: 17px;
  line-height: 1;
  text-align: center;
}

.hub-nav-label {
  font-size: 13px;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-soon-badge,
.home-soon-tag,
.module-placeholder-tag {
  background: #fef3c7;
  color: #92400e;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  text-transform: uppercase;
}

.hub-expand-icon {
  color: #9fb0c4;
  font-size: 9px;
  font-weight: 900;
  justify-self: end;
}

.hub-inline-subnav {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 2px 0 4px 22px;
  padding-left: 8px;
}

.hub-subnav-item {
  grid-template-columns: 28px minmax(0, 1fr);
  min-height: 32px;
  padding: 6px 8px;
}

.hub-subnav-item .hub-nav-icon {
  color: #9fb0c4;
  font-size: 10px;
  font-weight: 900;
}

.hub-subnav-item .hub-nav-label {
  font-size: 12px;
  font-weight: 700;
}

.hub-subnav-item.active {
  background: rgba(45, 212, 191, 0.13);
  box-shadow: inset 2px 0 0 #2dd4bf;
}

.hub-sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hub-search-wrap {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  gap: 8px;
  padding: 9px 10px;
}

.hub-search-wrap input {
  background: transparent;
  border: 0;
  color: #fff;
  font: inherit;
  outline: 0;
  width: 100%;
}

.hub-search-wrap input::placeholder {
  color: #9fb0c4;
}

.hub-user-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  display: grid;
  gap: 9px;
  grid-template-columns: 36px minmax(0, 1fr) 34px;
  padding: 9px;
}

.hub-user-avatar {
  align-items: center;
  background: #14b8a6;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.hub-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hub-user-name,
.hub-user-role {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-user-name {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.hub-user-role {
  color: #9fb0c4;
  font-size: 11px;
}

.hub-logout-btn {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.hub-main {
  min-width: 0;
}

.hub-topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.hub-breadcrumb,
.hub-topbar-right {
  align-items: center;
  display: flex;
  gap: 8px;
}

.hub-bc-root,
.hub-online-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hub-bc-current {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.hub-bc-sep {
  color: var(--muted-light);
}

.hub-online-dot {
  background: #22c55e;
  border-radius: 999px;
  height: 8px;
  width: 8px;
}

.hub-confidential {
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 4px 7px;
}

.hub-content {
  margin: 0 auto;
  max-width: 1180px;
  padding: 28px;
  width: 100%;
}

.hub-content.admin-view {
  max-width: 1040px;
}

.home-dashboard {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.home-welcome {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 26px;
}

.home-greeting {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.home-subtitle {
  color: var(--muted);
  margin: 8px 0 0;
}

.home-date {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
  text-transform: capitalize;
}

.home-status-grid,
.home-modules-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-status-card,
.home-module-card,
.home-recent-item,
.home-banner,
.module-placeholder {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.home-status-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px;
}

.home-status-card span,
.home-status-card small,
.home-module-body p,
.home-recent-item small,
.module-placeholder p {
  color: var(--muted);
}

.home-status-card strong {
  color: #0f766e;
  font-size: 2rem;
  line-height: 1.1;
}

.home-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-section-title {
  font-size: 1rem;
}

.home-module-card {
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 48px minmax(0, 1fr);
  min-height: 150px;
  padding: 18px;
  position: relative;
  text-align: left;
}

.home-module-card:hover,
.home-recent-item:hover {
  border-color: #99f6e4;
  transform: translateY(-1px);
}

.home-module-icon,
.module-placeholder-icon {
  align-items: center;
  display: inline-flex;
  font-size: 24px;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.home-module-body {
  min-width: 0;
}

.home-module-body strong {
  display: block;
  font-size: 16px;
  margin-bottom: 5px;
}

.home-live-tag,
.home-soon-tag {
  bottom: 14px;
  position: absolute;
  right: 14px;
}

.home-live-tag {
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
}

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

.home-recent-item {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 14px;
  text-align: left;
}

.home-recent-index {
  align-items: center;
  background: #ecfeff;
  color: #0e7490;
  display: inline-flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.home-recent-item strong,
.home-recent-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-banner {
  align-items: center;
  display: flex;
  gap: 14px;
  padding: 18px;
}

.home-banner-icon {
  font-size: 28px;
}

.home-banner p {
  color: var(--muted);
  margin: 3px 0 0;
}

.module-placeholder {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 8vh auto 0;
  max-width: 560px;
  padding: 44px 34px;
  text-align: center;
}

.module-placeholder-icon {
  font-size: 32px;
  height: 68px;
  width: 68px;
}

.module-placeholder h2 {
  font-size: 2rem;
}

.module-placeholder-date {
  background: #f8fafc;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
}

/* ---------- Clients & Projects Operating Dashboards ---------- */
.projects-shell,
.clients-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.projects-loading {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  min-height: 260px;
  padding: 28px;
  text-align: center;
}

.projects-loading strong {
  color: var(--ink);
}

.projects-hero {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
}

.projects-hero h1 {
  font-size: clamp(1.7rem, 2.5vw, 2.5rem);
  margin-bottom: 8px;
}

.projects-hero p {
  color: var(--muted);
  margin: 0;
  max-width: 760px;
}

.projects-hero-actions {
  align-items: end;
  display: flex;
  gap: 10px;
}

.projects-hero-actions label,
.project-form-grid label,
.project-notes-label,
.project-stage-select {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  text-transform: uppercase;
}

.projects-hero-actions select,
.project-form-grid input,
.project-form-grid select,
.project-notes-label textarea,
.project-stage-select select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  min-height: 40px;
  padding: 9px 10px;
  text-transform: none;
}

.projects-kpi-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-kpi-card,
.projects-chart-card,
.project-create-card,
.projects-alert-card,
.project-kanban-column,
.clients-list-panel,
.client-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.project-kpi-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px;
}

.project-kpi-card span,
.project-kpi-card small,
.projects-chart-card p {
  color: var(--muted);
}

.project-kpi-card strong {
  color: #0f172a;
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
  line-height: 1.08;
}

.project-kpi-card.success strong { color: #047857; }
.project-kpi-card.warning strong { color: #b45309; }
.project-kpi-card.danger strong { color: #b91c1c; }

.projects-analytics-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.05fr 1fr 1fr;
}

.projects-chart-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 230px;
  padding: 18px;
}

.projects-chart-card h2,
.project-create-card h2,
.projects-alert-card h2,
.clients-list-header h2 {
  font-size: 1rem;
}

.projects-chart-card--donut {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
}

.project-donut {
  align-items: center;
  display: grid;
  justify-items: center;
  position: relative;
}

.project-donut svg {
  height: 140px;
  transform: rotate(-90deg);
  width: 140px;
}

.project-donut circle {
  fill: none;
  stroke-width: 4.2;
}

.donut-bg { stroke: #e2e8f0; }
.donut-fg { stroke: #0d9488; stroke-linecap: round; }

.project-donut > div {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: absolute;
}

.project-donut strong {
  font-size: 2rem;
}

.project-donut span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.project-health-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
}

.project-health-strip span {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  padding: 7px 9px;
}

.project-health-strip i {
  border-radius: 999px;
  height: 8px;
  width: 8px;
}

.project-health-strip .ok { background: #22c55e; }
.project-health-strip .warn { background: #f59e0b; }
.project-health-strip .bad { background: #ef4444; }

.project-bar-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 110px minmax(0, 1fr) 28px;
}

.project-bar-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-bar-row strong {
  font-size: 13px;
  text-align: right;
}

.project-bar-track {
  background: #eef2f7;
  border-radius: 999px;
  height: 9px;
  overflow: hidden;
}

.project-bar-track i {
  background: linear-gradient(90deg, #0d9488, #0284c7);
  display: block;
  height: 100%;
}

.projects-work-grid,
.clients-work-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
}

.project-create-card,
.projects-alert-card,
.clients-list-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.project-create-card p {
  color: var(--muted);
  margin: 4px 0 0;
}

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

.project-notes-label textarea {
  resize: vertical;
}

.project-status {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  padding: 10px;
}

.project-alert-item {
  border: 1px solid var(--line);
  border-left: 4px solid #94a3b8;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
}

.project-alert-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.project-alert-item small {
  color: var(--muted);
}

.project-alert-item.late { border-left-color: #ef4444; background: #fff1f2; }
.project-alert-item.urgent { border-left-color: #f59e0b; background: #fffbeb; }
.project-alert-item.ok { border-left-color: #22c55e; }

.project-kanban {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(230px, 1fr));
  overflow-x: auto;
  padding-bottom: 4px;
}

.project-kanban-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 360px;
  padding: 12px;
}

.project-kanban-column header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.project-kanban-column header h3 {
  font-size: 0.95rem;
}

.project-kanban-column header p {
  color: var(--muted);
  font-size: 12px;
  margin: 2px 0 0;
}

.project-kanban-column header > span {
  background: #f1f5f9;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  padding: 4px 8px;
}

.project-card-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-card,
.project-empty-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-card.late { border-color: #fecaca; background: #fff7f7; }
.project-card.urgent { border-color: #fde68a; background: #fffdf2; }

.project-card-top,
.project-card-meta {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.project-client,
.project-priority,
.project-deadline,
.client-status-pill {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 7px;
}

.project-client { background: #e0f2fe; color: #075985; }
.project-priority { background: #f1f5f9; color: var(--muted); }
.project-deadline.late { background: #fee2e2; color: #991b1b; }
.project-deadline.urgent { background: #fef3c7; color: #92400e; }
.project-deadline.ok { background: #dcfce7; color: #166534; }
.project-deadline.neutral { background: #f1f5f9; color: var(--muted); }

.project-card h4 {
  font-size: 0.98rem;
}

.project-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.project-card-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.project-empty-card,
.projects-empty-line {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.clients-list-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.clients-list-header span {
  background: #eef2ff;
  border-radius: 999px;
  color: #4338ca;
  font-weight: 900;
  padding: 4px 9px;
}

.client-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.client-card-head {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.client-avatar {
  align-items: center;
  background: #eef2ff;
  color: #4338ca;
  display: inline-flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.client-card-head h3 {
  font-size: 1rem;
}

.client-card-head p,
.client-contact-line {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.client-status-pill {
  background: #f1f5f9;
  color: var(--muted);
}

.client-card-metrics,
.client-contact-line {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.client-card-metrics span {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-size: 12px;
  padding: 9px;
}

.client-card-metrics strong {
  color: var(--ink);
  font-size: 15px;
}

@media (max-width: 1100px) {
  .hub-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .home-status-grid,
  .home-modules-grid,
  .projects-kpi-grid,
  .projects-analytics-grid,
  .projects-work-grid,
  .clients-work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-chart-card--donut {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hub-layout {
    display: block;
  }

  .hub-sidebar {
    min-height: auto;
    position: static;
  }

  .hub-nav {
    max-height: 52vh;
  }

  .hub-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px 18px;
  }

  .hub-content {
    padding: 18px;
  }

  .home-welcome {
    flex-direction: column;
    gap: 12px;
  }

  .home-date {
    text-align: left;
  }

  .home-status-grid,
  .home-modules-grid,
  .home-recent-list,
  .projects-kpi-grid,
  .projects-analytics-grid,
  .projects-work-grid,
  .clients-work-grid,
  .project-form-grid,
  .clients-grid,
  .client-card-metrics,
  .client-contact-line {
    grid-template-columns: 1fr;
  }

  .projects-hero {
    flex-direction: column;
  }

  .projects-hero-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .project-kanban {
    grid-template-columns: repeat(5, 260px);
  }
}
