/* ==========================================================================
   ICH APPS FOUNDATION — MODERN INSTITUTIONAL DESIGN SYSTEM
   Classical Institutional Credibility + Crisp Modern Interactive UX
   ========================================================================== */
:root {
  --ich-navy: #0b2545;
  --ich-navy-deep: #071930;
  --ich-blue: #1d4ed8;
  --ich-blue-soft: #eff6ff;
  --ich-orange: #ea580c;
  --ich-orange-hover: #c2410c;
  --ich-orange-soft: #fff7ed;
  --ich-teal: #0f766e;
  --ich-teal-soft: #f0fdfa;
  --ich-green: #15803d;
  --ich-green-soft: #f0fdf4;
  --ich-amber: #b45309;
  --ich-amber-soft: #fffbeb;
  --ich-red: #b91c1c;
  --ich-red-soft: #fef2f2;
  --ich-bg: #f8fafc;
  --ich-surface: #ffffff;
  --ich-border: #e2e8f0;
  --ich-border-strong: #cbd5e1;
  --ich-text: #0f172a;
  --ich-muted: #475569;
  --ich-subtle: #64748b;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  --shadow-xs: 0 1px 2px rgba(11, 37, 69, 0.05);
  --shadow-sm: 0 4px 12px rgba(11, 37, 69, 0.06);
  --shadow-md: 0 12px 28px rgba(11, 37, 69, 0.10);
  --shadow-lg: 0 20px 44px rgba(11, 37, 69, 0.14);
  --font-sans: 'Plus Jakarta Sans', 'Noto Sans Telugu', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
}

/* Google Fonts everywhere: form controls, buttons, tables & code never fall back to browser defaults */
button, input, select, textarea, optgroup, option, table, th, td, h1, h2, h3, h4, h5, h6, label, legend {
  font-family: var(--font-sans);
}
code, kbd, samp, pre, .mono {
  font-family: var(--font-mono);
  font-size: 0.86em;
}
[lang="te"] body, :lang(te) { font-family: 'Noto Sans Telugu', 'Plus Jakarta Sans', sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ich-text);
  background: var(--ich-bg);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ich-blue); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--ich-navy); }
:focus-visible { outline: 3px solid rgba(29, 78, 216, 0.45); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- Top Utility Bar & App Switcher ---------- */
.ich-topbar {
  background: var(--ich-navy);
  color: #e2e8f0;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ich-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  flex-wrap: wrap;
  padding: 6px 0;
}
.app-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.08);
  padding: 3px;
  border-radius: var(--radius-pill);
}
.app-switcher a {
  color: #cbd5e1;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.78rem;
  white-space: nowrap;
}
.app-switcher a:hover { color: #fff; background: rgba(255,255,255,0.12); }
.app-switcher a.active { background: #fff; color: var(--ich-navy); }

.topbar-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lang-toggle {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.lang-toggle a {
  padding: 3px 10px;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.76rem;
}
.lang-toggle a.active { background: var(--ich-orange); color: #fff; }
.topbar-cin { color: #94a3b8; font-size: 0.76rem; letter-spacing: 0.02em; }

/* ---------- Primary Sticky Header ---------- */
.ich-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ich-border);
  box-shadow: var(--shadow-xs);
}
.ich-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}
.brand-link { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-link img { height: 48px; width: auto; object-fit: contain; border-radius: 6px; }
.ich-nav { display: flex; align-items: center; gap: 2px; }
.ich-nav a {
  color: var(--ich-text);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.ich-nav a:hover { background: var(--ich-blue-soft); color: var(--ich-blue); }
.ich-nav a.active { background: var(--ich-blue-soft); color: var(--ich-blue); }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mobile-toggle {
  display: none;
  background: var(--ich-surface);
  border: 1px solid var(--ich-border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-weight: 700;
  color: var(--ich-navy);
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
  line-height: 1.25;
  text-decoration: none;
  min-height: 42px;
}
.btn-sm { padding: 7px 13px; font-size: 0.83rem; min-height: 36px; }
.btn-lg { padding: 13px 24px; font-size: 1rem; min-height: 48px; }
.btn-primary { background: var(--ich-orange); color: #fff; box-shadow: 0 4px 14px rgba(234, 88, 12, 0.25); }
.btn-primary:hover { background: var(--ich-orange-hover); color: #fff; transform: translateY(-1px); }
.btn-navy { background: var(--ich-navy); color: #fff; }
.btn-navy:hover { background: var(--ich-navy-deep); color: #fff; transform: translateY(-1px); }
.btn-teal { background: var(--ich-teal); color: #fff; }
.btn-teal:hover { background: #0d625b; color: #fff; }
.btn-outline { background: var(--ich-surface); color: var(--ich-navy); border-color: var(--ich-border-strong); }
.btn-outline:hover { border-color: var(--ich-navy); background: var(--ich-bg); color: var(--ich-navy); }
.btn-ghost { background: transparent; color: var(--ich-muted); }
.btn-ghost:hover { background: var(--ich-bg); color: var(--ich-navy); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- Institutional Hero ---------- */
.ich-hero {
  background: linear-gradient(135deg, #0b2545 0%, #143b6b 58%, #1d4ed8 100%);
  color: #fff;
  padding: 64px 0 76px;
  position: relative;
  overflow: hidden;
}
.ich-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 20%, rgba(234, 88, 12, 0.18), transparent 45%),
              radial-gradient(circle at 12% 85%, rgba(15, 118, 110, 0.20), transparent 45%);
  pointer-events: none;
}
.ich-hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 36px; align-items: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: #f8fafc;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.ich-hero h1 { font-size: clamp(1.95rem, 3.6vw, 3rem); line-height: 1.15; margin: 0 0 16px; font-weight: 800; letter-spacing: -0.02em; }
.ich-hero p.lead { font-size: 1.08rem; color: #dbeafe; margin: 0 0 26px; max-width: 640px; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust-card {
  background: rgba(255, 255, 255, 0.98);
  color: var(--ich-text);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.4);
}
.hero-trust-card h3 { margin: 0 0 10px; font-size: 1.05rem; color: var(--ich-navy); }
.trust-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.88rem; color: var(--ich-muted); }
.trust-list li { display: flex; align-items: flex-start; gap: 10px; }
.trust-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ich-teal); margin-top: 7px; flex-shrink: 0; }

/* ---------- Page Banner (Inner Pages) ---------- */
.page-banner {
  background: linear-gradient(125deg, var(--ich-navy) 0%, #163a68 100%);
  color: #fff;
  padding: 40px 0;
}
.page-banner h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 800; }
.page-banner p { margin: 0; color: #cbd5e1; max-width: 720px; }
.breadcrumb { display: flex; gap: 8px; font-size: 0.82rem; color: #94a3b8; margin-bottom: 10px; }
.breadcrumb a { color: #cbd5e1; }

/* ---------- Sections, Cards & Grids ---------- */
.section { padding: 56px 0; }
.section-alt { background: #ffffff; border-top: 1px solid var(--ich-border); border-bottom: 1px solid var(--ich-border); }
.section-header { margin-bottom: 32px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-kicker { color: var(--ich-orange); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.section-title { font-size: clamp(1.45rem, 2.4vw, 2rem); color: var(--ich-navy); margin: 0 0 6px; font-weight: 800; letter-spacing: -0.015em; }
.section-sub { color: var(--ich-muted); margin: 0; max-width: 680px; }

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

.card {
  background: var(--ich-surface);
  border: 1px solid var(--ich-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cbd5e1; }
.card-media { width: 100%; height: 190px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 16px; background: #e2e8f0; }
.card-title { font-size: 1.15rem; font-weight: 700; color: var(--ich-navy); margin: 0 0 8px; }
.card-text { color: var(--ich-muted); font-size: 0.93rem; margin: 0 0 16px; flex: 1; }
.card-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--ich-border); margin-top: auto; flex-wrap: wrap; }

/* Pillar Accent Cards */
.pillar-card { position: relative; border-top: 4px solid var(--ich-navy); padding: 28px; }
.pillar-card.pillar-community { border-top-color: var(--ich-teal); }
.pillar-card.pillar-awards { border-top-color: var(--ich-orange); }
.pillar-card.pillar-vyapara { border-top-color: var(--ich-blue); }
.pillar-icon {
  width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.25rem; margin-bottom: 16px;
}
.pillar-community .pillar-icon { background: var(--ich-teal-soft); color: var(--ich-teal); }
.pillar-awards .pillar-icon { background: var(--ich-orange-soft); color: var(--ich-orange); }
.pillar-vyapara .pillar-icon { background: var(--ich-blue-soft); color: var(--ich-blue); }

/* ---------- Badges & Alerts ---------- */
.ich-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.01em;
}
.badge-success { background: var(--ich-green-soft); color: var(--ich-green); }
.badge-info { background: var(--ich-blue-soft); color: var(--ich-blue); }
.badge-warning { background: var(--ich-amber-soft); color: var(--ich-amber); }
.badge-danger { background: var(--ich-red-soft); color: var(--ich-red); }
.badge-neutral { background: #f1f5f9; color: #334155; }
.badge-teal { background: var(--ich-teal-soft); color: var(--ich-teal); }

.alert {
  padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid var(--ich-border);
  font-size: 0.92rem; margin-bottom: 18px; display: flex; gap: 12px; align-items: flex-start;
}
.alert-info { background: var(--ich-blue-soft); border-color: #bfdbfe; color: #1e3a8a; }
.alert-warning { background: var(--ich-amber-soft); border-color: #fde68a; color: #92400e; }
.alert-success { background: var(--ich-green-soft); border-color: #bbf7d0; color: #14532d; }
.alert-danger { background: var(--ich-red-soft); border-color: #fecaca; color: #7f1d1d; }

/* ---------- Forms & Inputs ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-weight: 600; font-size: 0.87rem; color: var(--ich-navy); }
.form-label .req { color: var(--ich-orange); }
.form-control, .form-select, textarea.form-control {
  width: 100%; padding: 10px 14px; font-family: inherit; font-size: 0.94rem;
  color: var(--ich-text); background: #fff; border: 1px solid var(--ich-border-strong);
  border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s;
}
.form-control:focus, .form-select:focus { border-color: var(--ich-blue); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14); outline: none; }
.form-help { font-size: 0.8rem; color: var(--ich-subtle); }
.form-error { font-size: 0.8rem; color: var(--ich-red); font-weight: 600; }

/* ---------- Universal 3-Letter Searchable Dropdown (+ Role-Gated Add New) ---------- */
.ich-ss-wrap { position: relative; width: 100%; }
.ich-ss-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.ich-ss-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; background: #fff; border: 1px solid var(--ich-border-strong);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 0.94rem; color: var(--ich-text);
  cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s; min-height: 42px;
}
.ich-ss-trigger:hover { border-color: var(--ich-blue); }
.ich-ss-wrap.open .ich-ss-trigger { border-color: var(--ich-blue); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14); }
.ich-ss-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.ich-ss-caret { font-size: 0.72rem; color: var(--ich-subtle); transition: transform .15s; }
.ich-ss-wrap.open .ich-ss-caret { transform: rotate(180deg); color: var(--ich-blue); }
.ich-ss-menu {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 120;
  background: #fff; border: 1px solid var(--ich-border-strong); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); overflow: hidden; min-width: 220px;
}
.ich-ss-wrap.open .ich-ss-menu { display: block; }
.ich-ss-search-box { padding: 8px; border-bottom: 1px solid var(--ich-border); background: #f8fafc; }
.ich-ss-search {
  width: 100%; padding: 8px 10px; font-family: inherit; font-size: 0.86rem;
  border: 1px solid var(--ich-border-strong); border-radius: 6px; background: #fff; color: var(--ich-text);
}
.ich-ss-search:focus { outline: none; border-color: var(--ich-blue); box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.14); }
.ich-ss-hint { font-size: 0.74rem; color: var(--ich-subtle); padding: 4px 2px 0; }
.ich-ss-list { max-height: 220px; overflow-y: auto; padding: 4px; }
.ich-ss-opt {
  padding: 8px 10px; border-radius: 6px; font-size: 0.88rem; cursor: pointer; color: var(--ich-text);
  display: flex; align-items: center; justify-content: space-between;
}
.ich-ss-opt:hover { background: var(--ich-blue-soft); color: var(--ich-navy); }
.ich-ss-opt.selected { background: var(--ich-navy); color: #fff; font-weight: 600; }
.ich-ss-empty { padding: 12px 10px; font-size: 0.84rem; color: var(--ich-subtle); text-align: center; }
.ich-ss-add-bar {
  padding: 8px; border-top: 1px solid var(--ich-border); background: #fff7ed;
  display: flex; flex-direction: column; gap: 6px;
}
.ich-ss-add-toggle {
  background: none; border: 1px dashed var(--ich-orange); color: var(--ich-orange-hover);
  padding: 6px 10px; border-radius: 6px; font-weight: 700; font-size: 0.8rem; cursor: pointer; text-align: left;
}
.ich-ss-add-toggle:hover { background: #ffedd5; }
.ich-ss-add-form { display: none; gap: 6px; align-items: center; }
.ich-ss-add-form.open { display: flex; }
.ich-ss-add-input {
  flex: 1; padding: 7px 10px; font-size: 0.84rem; border: 1px solid var(--ich-border-strong); border-radius: 6px;
}
.ich-ss-add-btn {
  padding: 7px 12px; font-size: 0.8rem; font-weight: 700; background: var(--ich-orange); color: #fff;
  border: 0; border-radius: 6px; cursor: pointer; white-space: nowrap;
}
.ich-ss-add-btn:hover { background: var(--ich-orange-hover); }

/* ---------- Workspace Header Icon Buttons, Hover Tooltips & Profile Dropdown ---------- */
.ich-icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f8fafc; border: 1px solid var(--ich-border); color: var(--ich-navy);
  cursor: pointer; transition: all .16s ease; text-decoration: none; padding: 0;
}
.ich-icon-btn:hover { background: var(--ich-blue-soft); border-color: #93c5fd; color: var(--ich-blue); transform: translateY(-1px); }
.ich-icon-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ich-icon-btn.ich-icon-logout { background: #fef2f2; border-color: #fecaca; color: var(--ich-red); }
.ich-icon-btn.ich-icon-logout:hover { background: var(--ich-red); border-color: var(--ich-red); color: #fff; }
.ich-icon-dot {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: var(--radius-pill); background: var(--ich-red); color: #fff;
  font-size: 0.68rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.ich-icon-dot-ok {
  position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ich-green); border: 1.5px solid #fff;
}

/* Smooth Hover Tooltips */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-4px);
  background: var(--ich-navy-deep); color: #fff; font-size: 0.75rem; font-weight: 600;
  padding: 5px 10px; border-radius: 6px; white-space: nowrap; pointer-events: none;
  opacity: 0; visibility: hidden; transition: opacity .15s ease, transform .15s ease;
  box-shadow: var(--shadow-md); z-index: 200;
}
[data-tooltip]:hover::after, [data-tooltip]:focus-visible::after {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}

/* User Profile Avatar Dropdown */
.ich-user-dropdown { position: relative; }
.ich-avatar-trigger {
  display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px 3px 4px;
  border-radius: var(--radius-pill); border: 1px solid var(--ich-border-strong); background: #fff;
  cursor: pointer; transition: all .15s ease; font-family: inherit;
}
.ich-avatar-trigger:hover { border-color: var(--ich-blue); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1); }
.ich-avatar-img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ich-blue-soft); background: #fff; }
.ich-user-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; width: 270px;
  background: #fff; border: 1px solid var(--ich-border-strong); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); z-index: 160; overflow: hidden;
}
.ich-user-dropdown.open .ich-user-menu { display: block; }
.ich-user-menu-head {
  padding: 14px 16px; background: #f8fafc; border-bottom: 1px solid var(--ich-border);
  display: flex; gap: 10px; align-items: center;
}
.ich-user-menu-body { padding: 6px; display: grid; gap: 2px; }
.ich-user-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px;
  border-radius: 8px; font-size: 0.88rem; font-weight: 600; color: var(--ich-text);
  background: none; border: 0; cursor: pointer; text-align: left; text-decoration: none; font-family: inherit;
}
.ich-user-menu-item:hover { background: var(--ich-blue-soft); color: var(--ich-blue); }
.ich-user-menu-item.danger { color: var(--ich-red); }
.ich-user-menu-item.danger:hover { background: var(--ich-red-soft); color: var(--ich-red); }
.ich-user-menu-item svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Multi-Step Wizard ---------- */
.wizard-steps { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.wizard-step {
  flex: 1; min-width: 120px; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--ich-border); background: #fff; font-size: 0.84rem; font-weight: 700; color: var(--ich-subtle);
  display: flex; align-items: center; gap: 8px;
}
.wizard-step.active { border-color: var(--ich-blue); background: var(--ich-blue-soft); color: var(--ich-navy); }
.wizard-step.done { border-color: var(--ich-teal); background: var(--ich-teal-soft); color: var(--ich-teal); }
.wizard-panel { display: none; }
.wizard-panel.active { display: block; }

/* ---------- Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--ich-border); border-radius: var(--radius-md); background: #fff; }
.ich-table { width: 100%; border-collapse: collapse; font-size: 0.89rem; text-align: left; }
.ich-table th { background: #f8fafc; color: var(--ich-navy); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--ich-border); white-space: nowrap; }
.ich-table td { padding: 12px 14px; border-bottom: 1px solid var(--ich-border); vertical-align: top; }
.ich-table tr:last-child td { border-bottom: 0; }
.ich-table tr:hover td { background: #f8fafc; }

/* ---------- Workspace Layout (Dashboards) ---------- */
.ws-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: calc(100vh - 116px); max-width: 100%; }
.ws-sidebar {
  background: var(--ich-navy); color: #e2e8f0; padding: 18px 12px 28px; display: flex; flex-direction: column; gap: 5px;
  position: sticky; top: 66px; height: calc(100vh - 66px); overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.22) transparent;
}
.ws-sidebar::-webkit-scrollbar { width: 6px; }
.ws-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.22); border-radius: 999px; }
@media (max-width: 900px) { .ws-sidebar { position: static; height: auto; overflow-y: visible; } }
.ws-sidebar-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em; color: #94a3b8; padding: 10px 10px 4px; font-weight: 700; }
.ws-sidebar a {
  color: #cbd5e1; padding: 9px 11px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.87rem; display: flex; align-items: center; justify-content: space-between;
}
.ws-sidebar a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.ws-sidebar a.active { background: var(--ich-orange); color: #fff; }
.ws-nav-group { border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 4px; margin-bottom: 3px; border-radius: 10px; transition: background .15s ease, border-color .15s ease; }
.ws-nav-group[open] {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-left: 3px solid var(--ich-orange);
  padding: 4px 4px 6px;
  margin: 4px 0 6px;
}
.ws-nav-group summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: #94a3b8;
  padding: 9px 10px; font-weight: 700; border-radius: 8px; user-select: none; transition: all .15s ease;
}
.ws-nav-group summary::-webkit-details-marker { display: none; }
.ws-nav-group summary:hover { background: rgba(255,255,255,0.08); color: #fff; }
.ws-nav-group summary::after { content: "▸"; font-size: 0.85rem; transition: transform .15s ease; }
.ws-nav-group[open] summary {
  color: #ffffff;
  background: rgba(234, 88, 12, 0.22);
  margin-bottom: 4px;
}
.ws-nav-group[open] summary::after { transform: rotate(90deg); color: #fdba74; }
.ws-nav-group-links {
  display: flex; flex-direction: column; gap: 3px;
  margin-left: 8px; padding: 3px 0 2px 8px;
  border-left: 2px solid rgba(255,255,255,0.16);
}
.ws-main { padding: 20px 22px; min-width: 0; max-width: 100%; overflow-x: clip; }
.kpi-card { background: #fff; border: 1px solid var(--ich-border); border-radius: var(--radius-md); padding: 18px 20px; }
.kpi-label { font-size: 0.8rem; color: var(--ich-subtle); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.kpi-value { font-size: 1.75rem; font-weight: 800; color: var(--ich-navy); margin-top: 4px; }

/* ---------- Tabs, Drawer & Toasts ---------- */
.tab-scroll-shell {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--ich-border);
  margin-bottom: 20px;
}
.tab-scroll-shell .tab-bar,
.tab-scroll-shell .tabs {
  margin-bottom: 0;
  border-bottom: 0;
  flex: 1;
  min-width: 0;
}
.tab-bar,
.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--ich-border);
  margin-bottom: 20px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar,
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 10px 16px; background: none; border: 0; border-bottom: 3px solid transparent;
  font-weight: 700; font-size: 0.9rem; color: var(--ich-muted); cursor: pointer;
  white-space: nowrap; flex-shrink: 0; transition: color .15s ease, border-color .15s ease;
}
.tab-btn:hover { color: var(--ich-navy); }
.tab-btn.active { color: var(--ich-blue); border-bottom-color: var(--ich-blue); }
.tab-scroll-arrow {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--ich-border); background: #fff; color: var(--ich-navy);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-xs); font-size: 1.05rem; line-height: 1;
  transition: all .15s ease; z-index: 2;
}
.tab-scroll-arrow:hover { background: var(--ich-blue-soft); border-color: #93c5fd; color: var(--ich-blue); }
.tab-scroll-arrow.left { margin-right: 6px; }
.tab-scroll-arrow.right { margin-left: 6px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(7, 25, 48, 0.55); z-index: 150;
  display: none; justify-content: flex-end;
}
.drawer-backdrop.open { display: flex; }
.drawer-panel {
  width: min(560px, 100%); background: #fff; height: 100%; overflow-y: auto; padding: 28px;
  box-shadow: var(--shadow-lg);
}

.toast-stack { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: grid; gap: 10px; max-width: 400px; }
.toast {
  background: var(--ich-navy); color: #fff; padding: 14px 18px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); font-size: 0.9rem; font-weight: 500; border-left: 4px solid var(--ich-orange);
  animation: slideIn .2s ease;
}
.toast.toast-success { border-left-color: #22c55e; }
.toast.toast-error { border-left-color: #ef4444; }
@keyframes slideIn { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ---------- Footer ---------- */
.ich-footer { background: var(--ich-navy-deep); color: #cbd5e1; padding: 52px 0 28px; margin-top: 48px; }
.ich-footer h4 { color: #fff; margin: 0 0 12px; font-size: 0.96rem; }
.ich-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 0.87rem; }
.ich-footer a { color: #94a3b8; }
.ich-footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 0.82rem; color: #94a3b8;
}

/* ---------- Progress Bar ---------- */
.progress { width: 100%; height: 8px; background: #e2e8f0; border-radius: var(--radius-pill); overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--ich-teal), var(--ich-blue)); border-radius: var(--radius-pill); }

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1024px) {
  .ich-hero-inner { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-shell { grid-template-columns: 1fr; }
  .ws-sidebar { flex-direction: row; flex-wrap: wrap; padding: 12px; }
  .ws-sidebar-title { display: none; }
}
@media (max-width: 820px) {
  .ich-nav {
    display: none; position: absolute; top: 74px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 14px 20px; border-bottom: 1px solid var(--ich-border); box-shadow: var(--shadow-md);
  }
  .ich-nav.open { display: flex; }
  .mobile-toggle { display: inline-flex; }
  .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .topbar-cin { display: none; }
}

/* ---------- Notifications: Header Bell Dropdown + Inbox Page ---------- */
[hidden] { display: none !important; }
.ich-notif-dropdown { position: relative; }
.ich-notif-dropdown.open .ich-notif-trigger::after { display: none; }
.ich-notif-panel {
  display: none; position: absolute; top: calc(100% + 10px); right: -60px; width: 380px; max-width: 92vw;
  background: #fff; border: 1px solid var(--ich-border-strong); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); z-index: 170; overflow: hidden;
}
.ich-notif-dropdown.open .ich-notif-panel { display: block; }
.ich-notif-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--ich-border); background: #f8fafc;
}
.ich-notif-head strong { color: var(--ich-navy); font-size: 0.95rem; }
.ich-notif-readall { background: none; border: 0; color: var(--ich-blue); font-weight: 600; font-size: 0.8rem; cursor: pointer; }
.ich-notif-readall:hover { text-decoration: underline; }
.ich-notif-list { max-height: 380px; overflow-y: auto; }
.ich-notif-empty { padding: 28px 16px; text-align: center; color: var(--ich-subtle); font-size: 0.88rem; }
.ich-notif-item {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px;
  border-bottom: 1px solid var(--ich-border); transition: background .15s ease;
}
.ich-notif-item:last-child { border-bottom: 0; }
.ich-notif-item:hover { background: #f8fafc; }
.ich-notif-item.unread { background: var(--ich-blue-soft); }
.ich-notif-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ich-notif-text strong { font-size: 0.86rem; color: var(--ich-navy); }
.ich-notif-text span { font-size: 0.8rem; color: var(--ich-muted); line-height: 1.45; }
.ich-notif-text small { font-size: 0.72rem; color: var(--ich-subtle); }
.ich-notif-eye {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ich-border); background: #fff; color: var(--ich-navy); transition: all .15s ease;
}
.ich-notif-eye:hover { background: var(--ich-navy); color: #fff; border-color: var(--ich-navy); }
.ich-notif-eye svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ich-notif-foot {
  display: block; text-align: center; padding: 11px; font-weight: 600; font-size: 0.85rem;
  border-top: 1px solid var(--ich-border); background: #f8fafc; color: var(--ich-blue);
}
.ich-notif-foot:hover { background: var(--ich-blue-soft); }

.nt-type {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
}
.nt-type svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nt-info { background: var(--ich-blue-soft); color: var(--ich-blue); }
.nt-success { background: var(--ich-green-soft); color: var(--ich-green); }
.nt-warning { background: var(--ich-amber-soft); color: var(--ich-amber); }
.nt-danger { background: var(--ich-red-soft); color: var(--ich-red); }

.nt-page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.nt-filter { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--ich-border); }
.nt-filter a {
  padding: 9px 16px; font-weight: 600; font-size: 0.88rem; color: var(--ich-muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 6px; align-items: center;
}
.nt-filter a.active { color: var(--ich-navy); border-bottom-color: var(--ich-orange); }
.nt-list { background: #fff; border: 1px solid var(--ich-border); border-radius: var(--radius-md); overflow: hidden; }
.nt-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-bottom: 1px solid var(--ich-border); }
.nt-item:last-child { border-bottom: 0; }
.nt-item:hover { background: #f8fafc; }
.nt-item.unread { background: var(--ich-blue-soft); border-left: 3px solid var(--ich-blue); }
.nt-body { flex: 1; min-width: 0; }
.nt-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nt-title { color: var(--ich-navy); font-size: 0.95rem; }
.nt-new { font-size: 0.68rem; font-weight: 700; color: #fff; background: var(--ich-orange); padding: 2px 8px; border-radius: var(--radius-pill); }
.nt-msg { margin: 4px 0 6px; font-size: 0.88rem; color: var(--ich-muted); }
.nt-time { font-size: 0.76rem; color: var(--ich-subtle); }
.nt-actions { display: flex; gap: 6px; flex-shrink: 0; }
.nt-eye:hover { background: var(--ich-navy); color: #fff; border-color: var(--ich-navy); }
.nt-empty { padding: 48px 20px; text-align: center; color: var(--ich-subtle); }
.nt-empty svg { width: 42px; height: 42px; stroke: var(--ich-border-strong); fill: none; stroke-width: 1.6; margin: 0 auto 8px; display: block; }

/* ---------- Community Stream, Reactions, Network & Messenger ---------- */
.stream-layout { display: grid; grid-template-columns: minmax(0, 1fr) 268px; gap: 16px; align-items: start; max-width: 100%; }
.stream-layout > * { min-width: 0; }
@media (max-width: 1040px) { .stream-layout { grid-template-columns: 1fr; } }

.composer-card { background: #fff; border: 1px solid var(--ich-border); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-xs); }
.composer-top { display: flex; gap: 12px; align-items: flex-start; }
.composer-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ich-blue-soft); flex-shrink: 0; }
.composer-input {
  width: 100%; border: 1px solid var(--ich-border); background: #f1f5f9; border-radius: 14px;
  padding: 11px 14px; font-size: 0.93rem; resize: vertical; min-height: 54px; transition: all .15s ease;
}
.composer-input:focus { background: #fff; border-color: var(--ich-blue); outline: none; box-shadow: 0 0 0 3px rgba(29,78,216,.1); }
.composer-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ich-border); }
.composer-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.composer-file-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--radius-pill);
  background: #f8fafc; border: 1px solid var(--ich-border); font-size: 0.84rem; font-weight: 600; color: var(--ich-navy); cursor: pointer;
}
.composer-file-btn:hover { background: var(--ich-blue-soft); border-color: #93c5fd; color: var(--ich-blue); }
.composer-preview { margin-top: 10px; position: relative; display: inline-block; }
.composer-preview img { max-height: 220px; border-radius: 10px; border: 1px solid var(--ich-border); }

.post-card { background: #fff; border: 1px solid var(--ich-border); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); overflow: hidden; }
.post-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 14px 16px 10px; }
.post-author { display: flex; gap: 10px; align-items: center; }
.post-author img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 1px solid var(--ich-border); }
.post-meta { font-size: 0.76rem; color: var(--ich-subtle); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.post-menu-wrap { position: relative; }
.post-menu-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--ich-muted);
  cursor: pointer; font-size: 1.2rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
.post-menu-btn:hover { background: #f1f5f9; color: var(--ich-navy); }
.post-menu {
  display: none; position: absolute; right: 0; top: 36px; min-width: 170px; background: #fff;
  border: 1px solid var(--ich-border-strong); border-radius: 10px; box-shadow: var(--shadow-md); padding: 6px; z-index: 40;
}
.post-menu-wrap.open .post-menu { display: grid; gap: 2px; }
.post-body { padding: 0 16px 12px; font-size: 0.94rem; color: var(--ich-text); white-space: pre-line; line-height: 1.55; }
.post-media { width: 100%; max-height: 460px; object-fit: cover; display: block; border-top: 1px solid var(--ich-border); border-bottom: 1px solid var(--ich-border); }
.post-stats {
  display: flex; justify-content: space-between; align-items: center; padding: 9px 16px;
  font-size: 0.82rem; color: var(--ich-subtle); border-bottom: 1px solid var(--ich-border);
}
.post-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px 10px; border-bottom: 1px solid var(--ich-border); }
.react-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 6px;
  border: 0; border-radius: 8px; background: transparent; color: var(--ich-muted);
  font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: all .14s ease;
}
.react-btn:hover { background: #f1f5f9; color: var(--ich-navy); }
.react-btn.active-like { background: var(--ich-blue-soft); color: var(--ich-blue); }
.react-btn.active-love { background: #fff1f2; color: #e11d48; }
.react-btn.active-dislike { background: var(--ich-red-soft); color: var(--ich-red); }

.post-comments { padding: 12px 16px 14px; background: #fafcff; display: grid; gap: 10px; }
.comment-row { display: flex; gap: 8px; align-items: flex-start; }
.comment-row img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; margin-top: 2px; }
.comment-bubble { background: #eef2f6; border-radius: 14px; padding: 8px 12px; font-size: 0.85rem; max-width: 100%; }
.comment-bubble strong { display: block; font-size: 0.82rem; color: var(--ich-navy); }
.comment-time { font-size: 0.7rem; color: var(--ich-subtle); margin-top: 2px; padding-left: 10px; }
.comment-form { display: flex; gap: 8px; align-items: center; }
.comment-form input {
  flex: 1; border: 1px solid var(--ich-border); background: #fff; border-radius: var(--radius-pill);
  padding: 8px 14px; font-size: 0.86rem;
}
.comment-form input:focus { border-color: var(--ich-blue); outline: none; }

/* Right Contacts Rail */
.contact-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px;
  border: 0; background: transparent; border-radius: 10px; cursor: pointer; text-align: left;
  transition: background .14s ease;
}
.contact-item:hover { background: #f1f5f9; }
.contact-avatar-wrap { position: relative; flex-shrink: 0; }
.contact-avatar-wrap img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--ich-border); }
.contact-dot { position: absolute; bottom: 1px; right: 1px; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }

/* Full-Page Messenger */
.msg-shell {
  display: grid; grid-template-columns: 265px minmax(0, 1fr); background: #fff;
  border: 1px solid var(--ich-border); border-radius: var(--radius-md); overflow: hidden; min-height: 500px; max-width: 100%; box-shadow: var(--shadow-xs);
}
.msg-shell > * { min-width: 0; }
@media (max-width: 820px) { .msg-shell { grid-template-columns: 1fr; } }
.msg-sidebar { border-right: 1px solid var(--ich-border); display: flex; flex-direction: column; background: #f8fafc; }
.msg-sidebar-head { padding: 14px; border-bottom: 1px solid var(--ich-border); background: #fff; }
.msg-list { flex: 1; overflow-y: auto; max-height: 470px; padding: 6px; display: grid; gap: 4px; align-content: start; }
.msg-peer {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0;
  background: transparent; border-radius: 10px; cursor: pointer; text-align: left; transition: background .14s ease;
}
.msg-peer:hover { background: #e2e8f0; }
.msg-peer.active { background: var(--ich-blue-soft); }
.msg-peer-info { flex: 1; min-width: 0; }
.msg-peer-info strong { display: block; font-size: 0.88rem; color: var(--ich-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-peer-info span { display: block; font-size: 0.77rem; color: var(--ich-subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-main { display: flex; flex-direction: column; min-height: 540px; }
.msg-head {
  padding: 12px 16px; border-bottom: 1px solid var(--ich-border); display: flex; justify-content: space-between;
  align-items: center; gap: 10px; background: #fff;
}
.msg-thread {
  flex: 1; padding: 16px; overflow-y: auto; max-height: 410px; display: flex; flex-direction: column; gap: 8px; background: #f8fafc;
}
.msg-bubble {
  max-width: 72%; padding: 10px 14px; border-radius: 18px; font-size: 0.9rem; line-height: 1.45; word-wrap: break-word;
}
.msg-bubble.mine { align-self: flex-end; background: var(--ich-blue); color: #fff; border-bottom-right-radius: 4px; }
.msg-bubble.theirs { align-self: flex-start; background: #fff; color: var(--ich-text); border: 1px solid var(--ich-border); border-bottom-left-radius: 4px; }
.msg-bubble-meta { font-size: 0.68rem; opacity: .78; margin-top: 4px; text-align: right; }
.msg-compose { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--ich-border); background: #fff; }
.msg-compose input {
  flex: 1; border: 1px solid var(--ich-border); border-radius: var(--radius-pill); padding: 10px 16px; font-size: 0.9rem; background: #f1f5f9;
}
.msg-compose input:focus { background: #fff; border-color: var(--ich-blue); outline: none; }

/* Floating Mini-Chat Dock (bottom-right) */
.chat-dock {
  position: fixed; bottom: 0; right: 24px; width: 330px; max-width: 92vw; background: #fff;
  border: 1px solid var(--ich-border-strong); border-bottom: 0; border-radius: 14px 14px 0 0;
  box-shadow: var(--shadow-lg); z-index: 180; display: flex; flex-direction: column; overflow: hidden;
}
.chat-dock-head {
  background: var(--ich-navy); color: #fff; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.chat-dock-body { height: 270px; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #f8fafc; }
.chat-dock-form { display: flex; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--ich-border); background: #fff; }
.chat-dock-form input { flex: 1; border: 1px solid var(--ich-border); border-radius: var(--radius-pill); padding: 7px 12px; font-size: 0.85rem; }

/* ---------- Global Bottom-Right Floating Chat Windows & Circular Chat Heads ---------- */
.gchat-root {
  position: fixed; bottom: 0; right: 18px; z-index: 220;
  display: flex; align-items: flex-end; gap: 12px; pointer-events: none;
}
.gchat-root > * { pointer-events: auto; }
.gchat-windows { display: flex; align-items: flex-end; gap: 10px; }
.gchat-rail { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-bottom: 16px; }
.gchat-heads { display: flex; flex-direction: column; gap: 10px; align-items: center; }

.gchat-head-bubble {
  position: relative; width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff;
  padding: 0; background: #fff; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.18);
  transition: transform .15s ease;
}
.gchat-head-bubble:hover { transform: scale(1.07); }
.gchat-head-bubble img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.gchat-head-bubble.has-unread { border-color: #16a34a; animation: gchatPulse 1.8s infinite; }
.gchat-head-close {
  position: absolute; top: -4px; right: -4px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 1px solid var(--ich-border-strong); color: var(--ich-navy);
  font-size: 11px; line-height: 1; display: none; align-items: center; justify-content: center; cursor: pointer;
}
.gchat-head-bubble:hover .gchat-head-close { display: inline-flex; }

.gchat-launcher-wrap { position: relative; }
.gchat-fab {
  position: relative; width: 52px; height: 52px; border-radius: 50%;
  background: #fff; color: var(--ich-navy); border: 1px solid var(--ich-border-strong);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 6px 20px rgba(11,37,69,.22); transition: all .18s ease;
}
.gchat-fab:hover { background: var(--ich-blue-soft); color: var(--ich-blue); transform: translateY(-2px); }
.gchat-fab.has-unread {
  background: #16a34a; color: #fff; border-color: #15803d; animation: gchatPulse 1.8s infinite;
}
@keyframes gchatPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55); }
  50% { box-shadow: 0 0 0 11px rgba(22, 163, 74, 0); }
}
.gchat-fab-dot {
  position: absolute; bottom: 3px; right: 3px; width: 11px; height: 11px;
  border-radius: 50%; background: #22c55e; border: 2px solid #fff;
}
.gchat-fab-badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: #ef4444; color: #fff; font-size: 0.72rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff;
}

.gchat-roster {
  position: absolute; bottom: 62px; right: 0; width: 320px; background: #fff;
  border: 1px solid var(--ich-border); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.18); overflow: hidden;
}
.gchat-roster-head {
  display: flex; justify-content: space-between; align-items: center; padding: 12px 14px;
  background: #fff; border-bottom: 1px solid var(--ich-border); font-size: 1rem; color: var(--ich-navy);
}
.gchat-roster-list { max-height: 340px; overflow-y: auto; padding: 6px; display: grid; gap: 2px; }
.gchat-contact {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0;
  background: transparent; border-radius: 10px; cursor: pointer; text-align: left; transition: background .14s ease;
}
.gchat-contact:hover { background: #f0f2f5; }
.gchat-contact.has-unread { background: #f0fdf4; }
.gchat-contact-info { flex: 1; min-width: 0; }
.gchat-contact-info strong { display: block; font-size: 0.87rem; color: var(--ich-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gchat-contact-info span { display: block; font-size: 0.76rem; color: var(--ich-subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gchat-unread-pill {
  background: #16a34a; color: #fff; font-size: 0.72rem; font-weight: 800;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
}

.gchat-window {
  width: 328px; max-width: 92vw; height: 420px; background: #fff;
  border: 1px solid var(--ich-border); border-bottom: 0; border-radius: 12px 12px 0 0;
  box-shadow: 0 10px 30px rgba(0,0,0,.18); display: flex; flex-direction: column; overflow: hidden;
}
.gchat-win-head {
  background: #fff; color: var(--ich-text); padding: 9px 10px; border-bottom: 1px solid var(--ich-border);
  display: flex; justify-content: space-between; align-items: center; gap: 8px; transition: background .2s ease;
}
.gchat-win-head.has-unread { background: #16a34a; color: #fff; }
.gchat-win-head.has-unread small { color: #dcfce7 !important; }
.gchat-win-head.has-unread .gchat-head-btn { color: #fff; }
.gchat-head-btn {
  width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent;
  color: var(--ich-blue); font-size: 1.15rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.gchat-head-btn:hover { background: rgba(29,78,216,.1); }
.gchat-win-body {
  flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 6px; background: #fff;
}
.gchat-row { display: flex; align-items: flex-end; gap: 6px; max-width: 82%; }
.gchat-row.mine { align-self: flex-end; flex-direction: row-reverse; }
.gchat-row.theirs { align-self: flex-start; }
.gchat-row img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.gchat-bubble { padding: 8px 12px; border-radius: 18px; font-size: 0.87rem; line-height: 1.4; word-break: break-word; }
.gchat-row.mine .gchat-bubble { background: #1d4ed8; color: #fff; border-bottom-right-radius: 4px; }
.gchat-row.theirs .gchat-bubble { background: #e4e6eb; color: #050505; border-bottom-left-radius: 4px; }
.gchat-time { font-size: 0.65rem; opacity: .72; margin-top: 2px; text-align: right; }

.gchat-win-form { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--ich-border); background: #fff; }
.gchat-win-form input {
  flex: 1; border: 0; background: #f0f2f5; border-radius: 999px; padding: 8px 14px; font-size: 0.86rem; outline: none;
}
.gchat-send-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: #1d4ed8;
  font-size: 1.05rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.gchat-send-btn:hover { background: var(--ich-blue-soft); }

/* ---------- Public Header Dropdown Menus & Awards Sub-Navigation ---------- */
.ich-nav-dd { position: relative; display: inline-flex; align-items: center; }
.ich-nav-dd > a::after { content: ' ▾'; font-size: 0.72em; opacity: 0.7; margin-left: 2px; }
.ich-nav-dd-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 245px; padding-top: 8px; z-index: 140;
}
.ich-nav-dd-inner {
  background: #fff; border: 1px solid var(--ich-border-strong); border-top: 3px solid var(--ich-orange);
  border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; display: grid; gap: 2px;
}
.ich-nav-dd:hover .ich-nav-dd-menu,
.ich-nav-dd:focus-within .ich-nav-dd-menu { display: block; }
.ich-nav-dd-inner a {
  display: block; padding: 8px 12px; border-radius: 7px; font-size: 0.86rem; font-weight: 600;
  color: var(--ich-navy); text-decoration: none; white-space: nowrap;
}
.ich-nav-dd-inner a:hover { background: var(--ich-blue-soft); color: var(--ich-blue); }
.ich-nav-dd-inner a.dd-highlight { background: var(--ich-orange-soft); color: var(--ich-orange); font-weight: 700; }
.ich-nav-dd-inner a.dd-highlight:hover { background: var(--ich-orange); color: #fff; }
.ich-nav-dd-sep { height: 1px; background: var(--ich-border); margin: 4px 6px; }

.awards-subnav {
  background: var(--ich-navy-deep); border-bottom: 1px solid rgba(255,255,255,.12);
}
.awards-subnav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 0; overflow-x: auto; scrollbar-width: none;
}
.awards-subnav-inner::-webkit-scrollbar { display: none; }
.awards-subnav-links { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.awards-subnav-links a {
  color: #cbd5e1; font-size: 0.83rem; font-weight: 600; padding: 6px 11px; border-radius: 7px;
  white-space: nowrap; transition: all .15s ease;
}
.awards-subnav-links a:hover,
.awards-subnav-links a.active { background: rgba(255,255,255,.14); color: #fff; }
.awards-subnav-cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
