:root {
  --ink: #050505;
  --charcoal: #111111;
  --muted: #606060;
  --line: #e8e8e8;
  --paper: #ffffff;
  --soft: #f7f7f5;
  --gold: #FDC902;
  --gold-deep: #d9aa00;
  --gold-soft: #fff7d6;
  --gold-line: rgba(253, 201, 2, .34);
  --danger: #b42318;
  --ok: #027a48;
  --warn: #b54708;
  --shadow: 0 22px 70px rgba(0, 0, 0, .11);
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 0%, rgba(253, 201, 2, .16), transparent 30%),
    linear-gradient(180deg, #fff, var(--soft));
  font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

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

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  overflow: auto;
  padding: 24px 18px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 12%, rgba(253, 201, 2, .2), transparent 32%),
    linear-gradient(180deg, #050505, #111111);
  border-right: 1px solid rgba(253, 201, 2, .24);
  box-shadow: 18px 0 60px rgba(0, 0, 0, .14);
}

.sidebar h1 {
  margin: 0 0 26px;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0;
}

.sidebar h1::after {
  content: "Business OS";
  display: block;
  width: fit-content;
  margin-top: 9px;
  padding: 5px 9px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.sidebar-tagline {
  margin: -16px 0 20px;
  color: #d9d9d9;
  font-size: 12px;
  line-height: 1.45;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.testing-banner {
  position: sticky;
  top: 0;
  z-index: 99;
  padding: 10px 16px;
  color: #050505;
  background: var(--gold);
  font-weight: 750;
  text-align: center;
  border-bottom: 1px solid rgba(5,5,5,.12);
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.nav-group {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .035);
}

.nav-group summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 12px;
  color: #fff;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary::after {
  content: "+";
  margin-left: auto;
  color: var(--gold);
  font-weight: 750;
}

.nav-group[open] summary::after {
  content: "-";
}

.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  color: var(--ink);
  background: var(--gold);
  flex: 0 0 18px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.sidebar a {
  display: flex;
  align-items: center;
  min-height: 42px;
  margin: 0 7px 7px 42px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #ececec;
  font-size: 13px;
  font-weight: 650;
}

.sidebar a:hover,
.sidebar a.active {
  color: #050505;
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 14px 32px rgba(253, 201, 2, .24);
}

.main {
  position: relative;
  min-height: 100vh;
  margin-left: 248px;
  padding: 26px;
  padding-bottom: 90px;
}

.auth-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .045);
  backdrop-filter: blur(16px);
}

.topbar-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.layout-sign-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  color: var(--gold);
  font-size: 22px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  flex: 0 0 auto;
}

.layout-sign-toggle:focus-visible {
  outline: 2px solid rgba(253, 201, 2, .38);
  outline-offset: 3px;
  border-radius: 4px;
}

.topbar-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  flex: 0 0 auto;
}

.topbar-back:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.topbar strong {
  display: block;
  font-size: 18px;
  font-weight: 750;
}

.topbar span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  justify-content: flex-end;
}

.notification-bell-wrap {
  position: relative;
}

.notification-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  min-height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  box-shadow: none;
}

.notification-bell:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
}

.notification-bell-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  line-height: 1;
}

.notification-bell-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.notification-bell-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d62b2b;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(380px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .12);
  z-index: 200;
  overflow: hidden;
}

.notification-dropdown-head,
.notification-dropdown-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #fffdf3;
  border-bottom: 1px solid var(--line);
}

.notification-dropdown-actions {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  background: #fff;
}

.notification-dropdown-list {
  max-height: 320px;
  overflow: auto;
}

.notification-dropdown-item {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(5,5,5,.06);
  color: var(--ink);
}

.notification-dropdown-item strong,
.notification-dropdown-item span,
.notification-dropdown-item em {
  display: block;
}

.notification-dropdown-item strong {
  font-size: 13px;
  font-weight: 800;
}

.notification-dropdown-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.notification-dropdown-item em {
  margin-top: 6px;
  color: #9a9a9a;
  font-size: 11px;
  font-style: normal;
}

.notification-dropdown-empty {
  padding: 18px 14px;
  color: var(--muted);
  font-size: 13px;
}

.notification-toast-host {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 99999;
  display: grid;
  gap: 10px;
  width: min(340px, calc(100vw - 24px));
}

.notification-toast {
  padding: 0;
  border: 1px solid rgba(228, 196, 70, .38);
  border-left: 5px solid var(--gold);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.995) 0%, rgba(255,251,240,.98) 100%);
  box-shadow: 0 18px 40px rgba(0,0,0,.16);
  animation: toastIn .24s ease-out;
  cursor: pointer;
  overflow: hidden;
}

.notification-toast.priority-urgent,
.notification-toast.priority-high {
  border-left-color: #d62b2b;
}

.notification-toast.is-leaving {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease;
}

.notification-toast-head,
.notification-toast-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.notification-toast-shell {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  gap: 10px;
  align-items: start;
  padding: 12px 12px 10px;
}

.notification-toast-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, #111 0%, #232323 100%);
  color: var(--gold);
  border: 1px solid rgba(255, 193, 7, .45);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}

.notification-toast-content {
  min-width: 0;
}

.notification-toast-head strong {
  font-size: 12px;
  font-weight: 800;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #111;
}

.notification-toast-head span {
  color: #6b5600;
  background: rgba(255, 193, 7, .16);
  border: 1px solid rgba(255, 193, 7, .38);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.notification-toast-body {
  margin: 5px 0 7px;
  color: #555;
  font-size: 11px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notification-toast-foot em {
  color: #8a8a8a;
  font-size: 10px;
  font-style: normal;
}

.notification-toast-foot span {
  color: #111;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
}

.notification-toast-close {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #7a7a7a;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.notification-toast-close:hover {
  background: rgba(0,0,0,.07);
  color: #111;
}

.notification-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.notification-setting-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.notification-setting-card h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.notification-setting-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.notification-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.team-chat-dock {
  position: fixed;
  right: 16px;
  bottom: 90px;
  z-index: 99990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.team-chat-dock-launcher {
  position: relative;
  border: 0;
  border-radius: 18px;
  background: #111827;
  color: #fff;
  min-width: 84px;
  min-height: 46px;
  padding: 10px 16px;
  font-weight: 800;
  box-shadow: 0 18px 34px rgba(15, 23, 42, .22);
  cursor: pointer;
}

.team-chat-dock-launcher-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  letter-spacing: .02em;
}

.team-chat-dock-launcher-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold);
  color: #111;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.team-chat-dock-window {
  width: min(430px, calc(100vw - 24px));
  height: min(72vh, 680px);
  border: 1px solid #eadfb7;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 48px rgba(15, 23, 42, .18);
  display: flex;
  flex-direction: column;
}

.team-chat-dock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #fff9e8 0%, #fff 100%);
  border-bottom: 1px solid #efe6c7;
}

.team-chat-dock-head strong {
  display: block;
  font-size: 14px;
}

.team-chat-dock-head span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.team-chat-dock-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.team-chat-dock-actions button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.team-chat-dock iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.team-chat-dock.is-minimized .team-chat-dock-window,
.team-chat-dock.is-closed .team-chat-dock-window {
  display: none;
}

.team-chat-dock.is-closed .team-chat-dock-launcher {
  opacity: .88;
}

.team-chat-dock.is-expanded .team-chat-dock-window {
  width: min(560px, calc(100vw - 24px));
  height: min(82vh, 820px);
}

@media (max-width: 980px) {
  .team-chat-dock {
    right: 12px;
    left: 12px;
    bottom: 12px;
    align-items: stretch;
  }

  .team-chat-dock-window,
  .team-chat-dock.is-expanded .team-chat-dock-window {
    width: 100%;
    height: min(72vh, 680px);
  }
}

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

.dashboard-period-panel {
  margin-bottom: 16px;
}

.dashboard-period-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.dashboard-period-form select {
  width: 140px;
}

.dashboard-period-form input[type="date"] {
  width: 155px;
}

.dashboard-period-form button {
  width: auto;
  min-width: 88px;
  padding: 8px 14px;
}

.link-button {
  padding: 0;
  border: 0;
  color: #8f1d0f;
  background: transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  min-height: unset;
}

.link-button:hover {
  color: #b42318;
  text-decoration: underline;
  transform: none;
}

.back-to-top {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .16);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.profile-card {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  color: #050505;
  background: var(--gold);
  font-size: 13px;
  font-weight: 750;
  box-shadow: 0 14px 30px rgba(253, 201, 2, .2);
}

.profile-card:hover {
  background: #ffd740;
}

.topbar-logout {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid #050505;
  border-radius: var(--radius);
  color: #fff;
  background: #050505;
  font-size: 13px;
  font-weight: 750;
  box-shadow: 0 12px 26px rgba(5, 5, 5, .16);
}

.topbar-logout:hover {
  background: #1a1a1a;
}

body.nav-collapsed .sidebar {
  display: none;
}

body.nav-collapsed .main {
  margin-left: 0;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  margin: 0;
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-height: 32px;
  min-width: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}

.password-toggle:hover {
  color: #050505;
  background: rgba(5, 5, 5, .04);
}

.password-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.password-toggle .eye-off {
  display: none;
}

.password-toggle.is-visible .eye-open {
  display: none;
}

.password-toggle.is-visible .eye-off {
  display: block;
}

.danger-panel {
  border-color: rgba(180, 35, 24, .25);
}

.button.danger,
button.danger {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
}

.button.compact-dark-action,
button.compact-dark-action {
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 12px;
  color: #fff;
  background: #111;
  border-color: #111;
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
}

.button.compact-dark-action:hover,
button.compact-dark-action:hover {
  background: #000;
  border-color: #000;
}

.admin-account-card {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.login-card,
.panel {
  border: 1px solid var(--line);
  border-top-color: var(--gold-line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .07);
}

.login-card {
  width: min(460px, 100%);
  padding: 28px;
}

.login-card h1,
.panel h2,
.panel h3 {
  margin-top: 0;
}

.login-card h1 {
  font-size: 28px;
  line-height: 1.05;
  font-weight: 650;
}

.login-card p,
.muted {
  color: var(--muted);
}

.panel {
  padding: 20px;
}

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

.stat {
  position: relative;
  overflow: hidden;
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  border-top-color: var(--gold-line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .045);
}

.stat::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -44px;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: rgba(253, 201, 2, .16);
}

.stat > span:not(.dash-icon):not(.kpi-icon) {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.stat strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 9px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.stat small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.dashboard-stat {
  min-height: 148px;
  padding-left: 52px;
}

.dashboard-updates-grid,
.dashboard-support-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-updates-wrap {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.dashboard-group {
  overflow: hidden;
}

.dashboard-group-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.dashboard-group-summary::-webkit-details-marker {
  display: none;
}

.dashboard-group-summary::after {
  content: "-";
  margin-left: auto;
  color: var(--gold);
  font-size: 18px;
  font-weight: 750;
  line-height: 1;
  flex: 0 0 auto;
}

.dashboard-group:not([open]) .dashboard-group-summary::after {
  content: "+";
}

.section-sign-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  margin-left: auto;
  color: var(--gold);
  font-size: 18px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

.panel-auto-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.panel-auto-header-copy {
  min-width: 0;
}

.panel-auto-header-copy > .eyebrow:first-child {
  margin-top: 0;
}

.panel-auto-header-copy > h2:first-of-type,
.panel-auto-header-copy > h3:first-of-type {
  margin-top: 0;
}

.panel-collapsible-body {
  margin-top: 12px;
}

.panel.is-collapsed > .panel-collapsible-body {
  display: none;
}

.section-sign-toggle:focus-visible,
.dashboard-mini-toggle:focus-visible {
  outline: 2px solid rgba(253, 201, 2, .38);
  outline-offset: 3px;
  border-radius: 4px;
}

.dashboard-group-body {
  margin-top: 12px;
}

.dashboard-updates-grid .panel,
.dashboard-support-grid .panel {
  height: 100%;
}

.dashboard-updates-grid p,
.dashboard-support-grid p,
.my-day-panel .module-grid p {
  margin: 0 0 10px;
}

.dash-icon {
  position: absolute !important;
  z-index: 1;
  top: 14px;
  left: 14px;
  display: inline-grid !important;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: var(--ink) !important;
  background: var(--gold);
  font-size: 10px !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.dash-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.my-day-panel {
  margin-bottom: 14px;
  border-color: var(--gold-line);
  background:
    linear-gradient(135deg, rgba(253, 201, 2, .12), transparent 34%),
    #fff;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

a.stat {
  display: block;
  color: inherit;
}

a.stat:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 14px 0;
}

.report-actions {
  align-items: center;
}

.report-actions form {
  flex: 1 1 360px;
  min-width: 0;
}

.report-actions .report-action-button {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 0.92rem;
  line-height: 1.1;
}

.report-actions .report-action-button.secondary {
  padding: 7px 11px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #050505;
  background: var(--gold);
  box-shadow: 0 10px 22px rgba(253, 201, 2, .18);
  cursor: pointer;
  font-weight: 650;
}

.button:hover,
button:hover {
  transform: translateY(-1px);
}

button.is-loading,
.button.is-loading {
  opacity: 0.92;
  pointer-events: none;
}

.global-loading-indicator {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.96);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  font-size: 13px;
  font-weight: 600;
}

.global-loading-spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #ffc107;
  animation: global-spin 0.8s linear infinite;
}

@keyframes global-spin {
  to {
    transform: rotate(360deg);
  }
}

.secondary {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .16);
}

.danger {
  color: var(--danger);
  background: #fee4e2;
}

.notice {
  margin: 0 0 14px;
  padding: 11px 13px;
  border: 1px solid #abefc6;
  border-radius: var(--radius);
  color: var(--ok);
  background: #ecfdf3;
}

.notice.danger {
  color: var(--danger);
  border-color: #fecdca;
  background: #fee4e2;
}

table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .035);
}

th,
td {
  padding: 10px 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #050505;
  background: linear-gradient(180deg, var(--gold-soft), #fff);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

tr:last-child td { border-bottom: 0; }

form {
  display: grid;
  gap: 14px;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.compact-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 14px;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  font-weight: 700;
}

.checkline input {
  width: auto;
}

.comment-toggle {
  position: relative;
}

.comment-badge {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--danger);
  font-size: 11px;
  font-weight: 750;
}

.comments-panel {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: #fffdf2;
}

#transaction-form-shell.is-collapsed {
  display: none;
}

.comments-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.project-file-stack {
  display: grid;
  gap: 12px;
}

.project-file-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: 14px;
  background: #fffdfa;
}

.project-file-meta {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.project-file-name {
  display: block;
  min-width: 0;
  max-width: min(100%, 720px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
  font-size: 13px;
}

.project-file-status-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.project-file-uploaded {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.project-file-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.project-file-actions {
  display: grid;
  gap: 6px;
  align-content: start;
  justify-items: stretch;
  min-width: 0;
  width: 100%;
  margin-top: 0;
  padding-top: 8px;
  align-self: start;
  justify-self: stretch;
  border-top: 1px solid rgba(15, 15, 15, 0.08);
  padding-left: 0;
}

.project-file-actions form,
.project-file-actions .compact-review-form {
  margin: 0;
  display: block;
  width: 100%;
}

.txn-chip-link,
.txn-chip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 1px solid #e7d7a4;
  background: #fff9ea;
  color: #111;
  white-space: nowrap;
}

.txn-chip-button {
  cursor: pointer;
}

.txn-chip-button.primary {
  background: #ffc107;
  border-color: #ffc107;
}

.txn-chip-button.secondary {
  background: #fff;
}

.project-file-actions .compact-review-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
}

.project-review-actions {
  display: grid;
  gap: 8px;
  justify-items: stretch;
  align-content: start;
  width: 100%;
  min-width: 0;
}

.project-review-actions > form {
  margin: 0;
}

.project-review-actions .compact-review-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.project-review-actions .review-inline-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-review-actions .txn-chip-button,
.project-review-actions select {
  min-height: 32px;
  padding: 5px 11px;
  border-radius: 12px;
  font-size: 11px;
}

.project-review-actions .txn-chip-button {
  min-width: 0;
}

.project-review-actions .txn-chip-button.primary {
  font-weight: 700;
}

.project-review-actions select {
  width: auto;
  min-width: 148px;
}

.project-file-actions .button,
.project-file-actions button,
.project-file-actions select {
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 12px;
  font-size: 11px;
}

.project-file-actions select {
  min-width: 0;
  width: 100%;
  background: #fff;
}

.project-file-pick {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  justify-self: end;
  min-height: auto;
}

.project-file-pick input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #ffc107;
}

.project-file-action-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  align-items: stretch;
  justify-content: stretch;
  gap: 6px;
  width: min(100%, 360px);
  margin-top: 2px;
}

.project-file-action-pair {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(96px, 1fr)) !important;
  gap: 8px !important;
  width: min(100%, 220px) !important;
  justify-self: start !important;
}

.project-file-action-buttons form {
  margin: 0;
  display: block;
  width: 100%;
}

.project-file-action-buttons .txn-chip-button,
.project-file-action-buttons form .txn-chip-button {
  display: inline-flex !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 30px !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  border: 1px solid #e7d7a4 !important;
  background: #fff9ea !important;
  color: #111 !important;
  white-space: nowrap !important;
}

.project-file-action-buttons .txn-chip-button {
  text-align: center;
}

.project-file-actions .project-file-action-buttons {
  justify-self: end;
}

.project-file-actions .project-file-action-pair .txn-chip-button,
.project-file-actions .project-file-action-pair form .txn-chip-button {
  width: 100% !important;
}

.project-bulk-review-bar {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.project-delivery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.project-delivery-toolbar .project-bulk-review-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.project-delivery-toolbar .button,
.project-delivery-toolbar button {
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 11px;
}

.project-delivery-toolbar .txn-chip-button {
  min-width: 0;
}

.project-upload-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
}

.project-delivery-toolbar .txn-chip-button.secondary-dark,
.project-file-action-buttons .txn-chip-button.secondary-dark {
  background: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
}

.project-upload-inline input[type="file"] {
  max-width: 280px;
}

.project-upload-inline button {
  width: auto;
}

.project-delivery-toolbar .project-bulk-review-bar,
.project-delivery-toolbar .project-upload-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.project-bulk-review-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 6px;
  min-width: 220px;
}

.project-bulk-review-actions .txn-chip-button {
  width: 100%;
}

.project-bulk-hidden-inputs {
  display: none;
}

.project-chat-context {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.project-chat-context-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 15, 15, 0.08);
  border-radius: 12px;
  background: #fffdfa;
}

.project-chat-context-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.project-chat-context-item strong {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.project-chat-compose,
.project-chat-reply-form {
  gap: 10px;
}

.project-chat-thread-list {
  display: grid;
  gap: 12px;
}

.project-chat-thread {
  border: 1px solid rgba(15, 15, 15, 0.1);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.project-chat-thread summary {
  list-style: none;
}

.project-chat-thread summary::-webkit-details-marker {
  display: none;
}

.project-chat-thread-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  background: #fffdfa;
}

.project-chat-thread-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.project-chat-thread-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.project-chat-thread-preview {
  color: #1f2937;
  line-height: 1.5;
}

.project-chat-thread-body {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(15, 15, 15, 0.08);
  background: linear-gradient(180deg, #fffef9 0%, #ffffff 100%);
}

.project-chat-bubble {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.project-chat-bubble-thread {
  justify-self: start;
  border: 1px solid rgba(15, 15, 15, 0.08);
  background: #fff5cc;
}

.project-chat-replies {
  display: grid;
  gap: 10px;
}

.project-chat-bubble-reply {
  justify-self: end;
  border: 1px solid rgba(15, 15, 15, 0.08);
  background: #ffffff;
}

.project-chat-bubble-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.project-chat-bubble-message {
  line-height: 1.55;
  color: #111827;
}

.project-chat-empty {
  margin: 0;
}

.compact-review-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  justify-content: stretch;
}

@media (max-width: 900px) {
  .project-file-item {
    grid-template-columns: 1fr;
  }

  .project-chat-thread-summary,
  .project-chat-bubble-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-chat-bubble,
  .project-chat-bubble-thread,
  .project-chat-bubble-reply {
    max-width: 100%;
    justify-self: stretch;
  }

  .project-file-actions {
    min-width: 0;
    width: 100%;
    justify-items: stretch;
    padding-top: 10px;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(15, 15, 15, 0.08);
  }

  .project-file-pick,
  .project-file-action-buttons {
    justify-self: start;
    justify-content: flex-start;
  }

  .project-file-pick {
    justify-content: flex-start;
  }

  .project-file-actions .project-file-action-buttons {
    grid-template-columns: repeat(2, minmax(96px, 1fr)) !important;
    width: min(100%, 220px) !important;
    justify-self: start;
  }

  .project-file-actions .project-file-action-pair {
    grid-template-columns: repeat(2, minmax(96px, 1fr)) !important;
    width: min(100%, 220px) !important;
    justify-self: start !important;
  }

  .project-bulk-review-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .project-file-actions .compact-review-form {
    grid-template-columns: 1fr;
  }

  .project-review-actions {
    width: 100%;
  }

  .project-review-actions .compact-review-form {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .project-review-actions .review-inline-form {
    width: auto;
  }

  .project-review-actions .review-inline-form .txn-chip-button {
    width: auto;
  }

  .project-delivery-toolbar,
  .project-upload-inline {
    width: 100%;
  }

  .compact-review-form {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
}

.comments-panel-head h3 {
  margin: 0;
  font-weight: 600;
}

.comment-item {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  background: #fff;
}

.comment-form {
  margin-top: 14px;
}

.inline-form select {
  width: auto;
  min-width: 150px;
}

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

label {
  display: grid;
  gap: 7px;
  color: #151515;
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  outline: 3px solid rgba(253, 201, 2, .18);
}

textarea { min-height: 104px; }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #344054;
  background: #eef2f6;
  font-size: 12px;
  font-weight: 700;
}

.badge.paid,
.badge.completed,
.badge.active,
.badge.successful,
.badge.approved,
.badge.delivered {
  color: var(--ok);
  background: #dcfae6;
}

.badge.overdue,
.badge.rejected,
.badge.cancelled {
  color: var(--danger);
  background: #fee4e2;
}

.badge.pending,
.badge.draft,
.badge.sent,
.badge.in-progress,
.badge.follow-up,
.badge.not-yet-started,
.badge.on-hold {
  color: var(--warn);
  background: #fef0c7;
}

.split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
  align-items: start;
}

.preview-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 34px;
  border-radius: var(--radius);
  color: #fff;
  border: 1px solid rgba(253, 201, 2, .28);
  background:
    radial-gradient(circle at 86% 20%, rgba(253, 201, 2, .28), transparent 30%),
    linear-gradient(110deg, rgba(5, 5, 5, .98), rgba(17, 17, 17, .9));
  box-shadow: var(--shadow);
}

.preview-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
}

.preview-hero p {
  max-width: 740px;
  margin: 16px 0 0;
  color: #ececec;
  font-size: 17px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

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

.module-card {
  min-height: 124px;
  padding: 15px;
  border: 1px solid var(--line);
  border-top-color: var(--gold-line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .04);
}

.module-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
}

.module-card p {
  margin: 0;
  color: var(--muted);
}

.whatsapp-shell-panel {
  min-width: 0;
}

.whatsapp-browser-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.whatsapp-browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fcfcfb);
}

.whatsapp-browser-dots {
  display: inline-flex;
  gap: 6px;
}

.whatsapp-browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(5, 5, 5, .18);
}

.whatsapp-browser-dots span:nth-child(1) { background: rgba(180, 35, 24, .55); }
.whatsapp-browser-dots span:nth-child(2) { background: rgba(181, 71, 8, .55); }
.whatsapp-browser-dots span:nth-child(3) { background: rgba(2, 122, 72, .55); }

.whatsapp-browser-address {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.whatsapp-browser-frame-wrap {
  min-height: 74vh;
  background: #f8f8f7;
}

.whatsapp-browser-frame {
  display: block;
  width: 100%;
  min-height: 74vh;
  border: 0;
  background: #fff;
}


.app-footer {
  margin-top: 22px;
  padding: 16px 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.panel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.panel-title-row .eyebrow {
  margin-bottom: 8px;
  color: var(--gold-deep);
}

.panel-title-row h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.05;
}

.time-tracker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.time-tracker-actions form {
  margin: 0;
}

.time-tracker-table {
  width: 100%;
  border-collapse: collapse;
}

.time-tracker-table th,
.time-tracker-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.time-tracker-table th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.time-tracker-activity {
  display: grid;
  gap: 10px;
}

.time-tracker-activity-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.time-tracker-activity-item p {
  margin: 0;
}

.chart-chip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  color: #050505;
  background: var(--gold-soft);
  font-size: 12px;
  font-weight: 750;
}

.project-focus-panel {
  margin-top: 0;
  border-color: rgba(253, 201, 2, .24);
  background:
    linear-gradient(135deg, rgba(253, 201, 2, .08), transparent 42%),
    #fff;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

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

.dashboard-side {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 18px;
}

.side-panel h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.side-list-item {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.side-list-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.side-list-item strong {
  font-weight: 500;
}

.side-list-item span {
  font-size: 13px;
  line-height: 1.45;
}

.activity-feed-item a {
  color: inherit;
  text-decoration: none;
}

.activity-feed-item a:hover {
  color: var(--gold-strong);
}

.side-progress-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.side-progress-stat {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(253, 201, 2, .08);
}

.side-progress-stat span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.side-progress-stat strong {
  font-size: 22px;
  font-weight: 500;
}

.progress-meter {
  height: 12px;
  overflow: hidden;
  margin: 10px 0 12px;
  border-radius: 999px;
  background: #efefeb;
  box-shadow: inset 0 0 0 1px rgba(5, 5, 5, .06);
}

.progress-meter span {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #111);
}

.project-focus-panel .panel-title-row h2 {
  font-size: 18px;
}

.project-focus-panel .panel-title-row p {
  margin: 6px 0 0;
}

.project-focus-grid {
  margin-bottom: 14px;
}

.project-stat {
  padding-left: 54px;
  min-height: 92px;
  border-left: 4px solid var(--gold);
}

.kpi-icon {
  position: absolute;
  z-index: 1;
  top: 16px;
  left: 16px;
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 7px;
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 8px 18px rgba(253, 201, 2, .18);
}

.kpi-icon::before {
  font-size: 15px;
  font-weight: 750;
}

.project-icon-active::before { content: ">"; }
.project-icon-pending::before { content: "o"; }
.project-icon-today::before { content: "OK"; font-size: 10px; }
.project-icon-overdue::before { content: "!"; }

.project-focus-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-mini-list {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .72);
}

.project-mini-list h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
}

.project-mini-item {
  display: grid;
  gap: 5px;
  margin-bottom: 9px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.project-mini-item strong {
  font-weight: 600;
}

.project-mini-item span {
  color: var(--muted);
  font-size: 12px;
}

.chart-panel {
  overflow: hidden;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 13px;
  min-height: 240px;
  align-items: end;
  padding: 18px 12px 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(253, 201, 2, .08), transparent 40%),
    repeating-linear-gradient(0deg, transparent 0 49px, rgba(5, 5, 5, .055) 50px);
}

.bar-item {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  height: 205px;
  text-align: center;
}

.bar-value {
  color: #050505;
  font-size: 12px;
  font-weight: 750;
}

.bar-track {
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-width: 28px;
  overflow: hidden;
  border-radius: 999px 999px 6px 6px;
  background: #f0f0ed;
  box-shadow: inset 0 0 0 1px rgba(5, 5, 5, .04);
}

.bar-track i {
  display: block;
  width: 100%;
  height: var(--value);
  border-radius: inherit;
  background:
    linear-gradient(180deg, #ffe16a, var(--gold) 42%, #050505 160%);
  box-shadow: 0 16px 28px rgba(253, 201, 2, .28);
}

.bar-item strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pie-wrap {
  display: grid;
  gap: 22px;
  place-items: center;
  padding: 12px 0 4px;
}

.pie-chart {
  position: relative;
  width: min(260px, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(
      var(--gold) 0 38%,
      #050505 38% 65%,
      #8f8f8f 65% 85%,
      var(--gold-soft) 85% 100%
    );
  box-shadow:
    0 28px 58px rgba(0, 0, 0, .12),
    inset 0 0 0 1px rgba(5, 5, 5, .08);
}

.pie-chart::before {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.pie-chart::after {
  content: "NGN 4.8M";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #050505;
  font-size: 21px;
  font-weight: 750;
}

.dynamic-pie {
  background:
    conic-gradient(
      var(--gold) 0 var(--converted, 0%),
      #050505 var(--converted, 0%) var(--pending, 0%),
      #8f8f8f var(--pending, 0%) 100%
    );
}

.dynamic-pie::after {
  content: var(--label, "0%");
}

.chart-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.chart-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.chart-legend i {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 50%;
}

.legend-gold { background: var(--gold); }
.legend-black { background: #050505; }
.legend-gray { background: #8f8f8f; }
.legend-soft { background: var(--gold-soft); border: 1px solid var(--gold-line); }

.project-chat-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.project-chat-attachments a {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  text-decoration: none;
}

/* Dashboard refinement overrides: keep staff dashboard calm and scannable. */
.my-day-panel h2,
.project-focus-panel h2,
#admin-notices h2,
.panel-title-row h2 {
  font-weight: 500;
}

.dashboard-stat .stat-label,
.project-stat > span:not(.kpi-icon),
.my-day-panel .module-grid h3 {
  font-weight: 500;
  letter-spacing: .035em;
}

.dashboard-stat strong,
.project-stat strong,
.my-day-panel .stat strong {
  font-size: 19px;
  font-weight: 500;
}

.my-day-panel p strong,
#admin-notices p strong,
.project-mini-item strong {
  font-weight: 500;
}

.dash-icon {
  font-weight: 600 !important;
}

@media (max-width: 980px) {
  .sidebar {
    position: static;
    width: auto;
  }

  body.nav-collapsed .sidebar {
    display: none;
  }

  .main {
    margin-left: 0;
    padding: 16px;
  }

  .dashboard-shell,
  .grid,
  .dashboard-updates-grid,
  .dashboard-support-grid,
  .dashboard-lead-layout,
  .split,
  .form-grid,
  .module-grid,
  .compact-form,
  .bar-chart,
  .chart-legend {
    grid-template-columns: 1fr;
  }


  .dashboard-side {
    position: static;
  }


  .side-progress-grid {
    grid-template-columns: 1fr 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}
