:root {
  --navy: #0f1e3c;
  --navy-light: #243d73;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --cream: #faf8f3;
  --white: #ffffff;
  --text: #1a1a2e;
  --border: #e2d9c5;
  --muted: #5c6470;
  --sidebar-width: 260px;
  --sidebar-width-collapsed: 76px;
  --topbar-height: 68px;
  --font-sans: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --text-base: 16px;
  --text-sm: 14px;
  --text-xs: 12px;
  --text-lg: 18px;
  --text-xl: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }

.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;
}

/* ─── LOGIN ─────────────────────────────────────── */
#login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--navy);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.05) 0%, transparent 50%);
  position: relative;
}

#login-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(255,255,255,0.015) 60px, rgba(255,255,255,0.015) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255,255,255,0.015) 60px, rgba(255,255,255,0.015) 61px);
}

.login-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 4px;
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  position: relative;
  backdrop-filter: blur(10px);
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo .brand {
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 32px);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 4px;
  display: block;
}
.login-logo .tagline {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}

.login-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
  text-align: center;
  margin-bottom: 28px;
  font-weight: 600;
}

#login-screen .form-group { margin-bottom: 18px; }
#login-screen .form-group label {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
  font-weight: 500;
}
#login-screen .form-group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  color: var(--white);
  font-size: 14px;
  font-family: var(--font-sans);
  transition: border-color 0.2s;
  outline: none;
}
#login-screen .form-group input:focus { border-color: var(--gold); }

.password-field {
  position: relative;
}
#login-screen .password-field input {
  padding-right: 48px;
}
.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  font-size: 15px;
  z-index: 2;
  transition: color 0.2s;
}
.password-toggle:hover,
.password-toggle:focus {
  color: var(--gold-light);
  outline: none;
}

#login-screen .form-group input:-webkit-autofill,
#login-screen .form-group input:-webkit-autofill:hover,
#login-screen .form-group input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--white);
  caret-color: var(--white);
  -webkit-box-shadow: 0 0 0 1000px rgba(15, 30, 60, 0.92) inset;
  box-shadow: 0 0 0 1000px rgba(15, 30, 60, 0.92) inset;
  transition: background-color 9999s ease-out 0s;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.2s, transform 0.1s;
}
.btn-login:hover { background: var(--gold-light); transform: translateY(-1px); }

.login-error {
  color: #fca5a5;
  font-size: 13px;
  text-align: center;
  margin-top: 12px;
  display: none;
}
.login-error.show { display: block; }

.login-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.login-footer i { color: rgba(201,168,76,0.5); font-size: 12px; }

/* ─── ADMIN LAYOUT (matches client portal) ─────── */
.admin-body {
  background: var(--cream);
  min-height: 100vh;
  font-size: var(--text-base);
  letter-spacing: -0.012em;
  overflow-x: clip;
}

/* Admin dashboard typography */
.admin-body .page-title {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.admin-body .content { padding: 28px 32px; min-width: 0; overflow-x: clip; }
.admin-body .panel {
  padding: 24px 26px;
  border-radius: 10px;
}
.admin-body .panel h2,
.admin-body .dash-panel h2,
.admin-body .card-title {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
}
.admin-body .panel h2 { margin-bottom: 16px; }
.admin-body .muted,
.admin-body .doc-section-sub,
.admin-body .card-sub,
.admin-body .dash-panel-sub,
.admin-body .field-hint {
  font-size: var(--text-sm);
  line-height: 1.55;
}
.admin-body .nav-item {
  font-size: var(--text-sm);
  font-weight: 500;
}
.admin-body .nav-item .icon { font-size: 16px; }
.admin-body .sidebar-logo .sub {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-align: left;
}
.admin-body .topbar-right { font-size: var(--text-sm); }
.admin-body .profile-trigger-name {
  font-size: var(--text-sm);
  font-weight: 600;
}
.admin-body .data-table thead th,
.admin-body .data-table tbody td,
.admin-body .milestone-table thead th,
.admin-body .milestone-table tbody td { font-size: var(--text-sm); }
.admin-body .cell-sub,
.admin-body .cell-date,
.admin-body .cell-strong { font-size: var(--text-sm); }
.admin-body .stat-box strong { font-size: 28px; letter-spacing: -0.03em; }
.admin-body .stat-box span,
.admin-body .panel-table-count,
.admin-body .table-pagination-meta,
.admin-body .table-pagination-single { font-size: 13px; }
.admin-body .form-group label { font-size: 13px; letter-spacing: 0.02em; }
.admin-body .form-group input,
.admin-body .form-group textarea,
.admin-body .form-group select {
  font-size: 15px;
  padding: 12px 14px;
  line-height: 1.45;
}
.admin-body .btn-primary,
.admin-body .btn-link { font-size: var(--text-sm); }
.admin-body .row-action-trigger {
  font-size: var(--text-sm);
  min-height: 32px;
  padding: 6px 12px;
}
.admin-body .row-action-item { font-size: var(--text-sm); padding: 9px 11px; }
.admin-body .alert { font-size: var(--text-sm); line-height: 1.55; }
.admin-body .pill { font-size: var(--text-sm); font-weight: 600; }
.admin-body .dash-stat-value { font-size: 30px; }
.admin-body .dash-stat-sub { font-size: 12px; }


.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,30,60,0.55);
  z-index: 150;
  opacity: 0;
  transition: opacity 0.25s;
}
.sidebar-overlay.open { display: block; opacity: 1; }

body.sidebar-open {
  overflow: hidden;
  touch-action: none;
}

.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-width);
  background: var(--navy);
  z-index: 200;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(201,168,76,0.15);
  transform: translateX(0);
  transition: transform 0.3s ease, width 0.22s ease;
}

html.sidebar-collapsed-pending,
body.admin-body.sidebar-collapsed {
  --sidebar-width: var(--sidebar-width-collapsed);
}

.sidebar-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-close {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}

.sidebar-collapse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  right: -13px;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  cursor: pointer;
  font-size: 11px;
  z-index: 210;
  box-shadow: 0 1px 6px rgba(15,30,60,0.25);
  transition: background 0.15s, color 0.15s;
}
.sidebar-collapse:hover {
  background: var(--gold);
  color: var(--navy);
}

.sidebar-logo {
  width: 100%;
  text-align: left;
}
.sidebar-logo .brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 3px;
}
.sidebar-logo-link {
  display: block;
  line-height: 0;
}
.sidebar-site-logo {
  display: block;
  height: 108px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
.sidebar-logo .sub {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 10px;
  font-weight: 600;
  text-align: left;
}

.sidebar-nav { padding: 12px 0 16px; flex: 1; overflow-y: auto; }

.nav-group { margin-top: 4px; }

.nav-section,
.nav-section-toggle {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  padding: 10px 24px 6px;
  margin-bottom: 2px;
  margin-top: 8px;
}

.nav-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: color 0.15s, background 0.15s;
}
.nav-section-toggle:hover { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.04); }
.nav-section-toggle i {
  font-size: 10px;
  transition: transform 0.2s ease;
}
.nav-group.is-collapsed .nav-section-toggle i { transform: rotate(-90deg); }
.nav-group-items {
  display: flex;
  flex-direction: column;
}
.nav-group.is-collapsed .nav-group-items { display: none; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: #ffffff;
  font-size: 13px;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.nav-item-label { min-width: 0; }
.nav-item:hover { background: rgba(255,255,255,0.06); color: #ffffff; }
.nav-item.active {
  background: rgba(201,168,76,0.08);
  color: var(--gold);
  border-left-color: var(--gold);
  font-weight: 500;
}
.nav-item .icon { width: 18px; text-align: center; font-size: 15px; flex-shrink: 0; }
.nav-item .icon-svg {
  height: 18px;
  flex-shrink: 0;
  display: block;
}

.nav-badge {
  margin-left: auto;
  background: var(--gold);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.btn-logout:hover { color: rgba(255,255,255,0.75); }

body.admin-body.sidebar-collapsed .sidebar-header { padding: 16px 10px 14px; align-items: center; }
body.admin-body.sidebar-collapsed .sidebar-logo { text-align: center; }
body.admin-body.sidebar-collapsed .sidebar-logo-link { display: flex; justify-content: center; }
body.admin-body.sidebar-collapsed .sidebar-site-logo {
  height: 42px;
  object-position: center;
}
html.sidebar-collapsed-pending .sidebar-logo .sub,
html.sidebar-collapsed-pending .nav-section-toggle,
html.sidebar-collapsed-pending .nav-item-label,
body.admin-body.sidebar-collapsed .sidebar-logo .sub,
body.admin-body.sidebar-collapsed .nav-section-toggle,
body.admin-body.sidebar-collapsed .nav-item-label {
  display: none;
}
body.admin-body.sidebar-collapsed .nav-group.is-collapsed .nav-group-items {
  display: flex;
}
body.admin-body.sidebar-collapsed .sidebar-nav { padding-top: 8px; }
body.admin-body.sidebar-collapsed .nav-item {
  justify-content: center;
  padding: 12px 0;
  border-left-width: 0;
  position: relative;
}
body.admin-body.sidebar-collapsed .nav-item.active {
  border-left-width: 0;
  box-shadow: inset 3px 0 0 var(--gold);
}
body.admin-body.sidebar-collapsed .nav-badge {
  position: absolute;
  top: 6px;
  right: 10px;
  min-width: 8px;
  height: 8px;
  padding: 0;
  font-size: 0;
  border-radius: 50%;
}
body.admin-body.sidebar-collapsed .sidebar-footer {
  padding: 12px 10px;
  display: flex;
  justify-content: center;
}
body.admin-body.sidebar-collapsed .btn-logout { justify-content: center; gap: 0; }
body.admin-body.sidebar-collapsed .sidebar-collapse {
  top: 18px;
  right: -13px;
  transform: translateY(0);
}
body.admin-body.sidebar-collapsed .sidebar-collapse i { transform: rotate(180deg); }

.main {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  max-width: calc(100% - var(--sidebar-width));
  min-height: 100vh;
  min-width: 0;
}

.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.menu-toggle {
  display: inline-flex;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 40px;
  height: 40px;
  color: var(--navy);
  cursor: pointer;
  font-size: 16px;
  align-items: center;
  justify-content: center;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 26px);
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}

.topbar-meta { white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}
.topbar-cycle { white-space: nowrap; font-weight: 500; color: var(--navy); }
.topbar-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
  flex-shrink: 0;
}

.profile-menu { position: relative; flex-shrink: 0; }

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 4px 12px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 24px;
  transition: box-shadow 0.15s, background 0.15s;
  font-family: inherit;
}

.profile-trigger-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
  line-height: 1.2;
}

.profile-trigger-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-trigger-username {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-trigger:hover,
.profile-trigger[aria-expanded="true"] {
  background: var(--cream);
  box-shadow: 0 0 0 1px var(--border);
}

.profile-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.profile-avatar-lg {
  width: 72px;
  height: 72px;
  font-size: 22px;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, calc(100vw - 32px));
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(15, 30, 60, 0.14), 0 2px 8px rgba(15, 30, 60, 0.08);
  z-index: 200;
  overflow: hidden;
  animation: profileDropIn 0.15s ease-out;
}

.profile-dropdown[hidden] { display: none !important; }

@keyframes profileDropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile-dropdown-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 16px;
}

.profile-dropdown-identity { min-width: 0; }

.profile-dropdown-rank {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-dropdown-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-dropdown-username {
  font-size: 12px;
  font-weight: 500;
  color: var(--navy);
  margin-top: 1px;
}

.profile-dropdown-email {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.profile-dropdown-divider {
  height: 1px;
  background: var(--border);
}

.profile-dropdown-footer { padding: 10px 0 8px; }

.profile-dropdown-ref {
  font-size: 10px;
  color: var(--muted);
  padding: 0 20px 8px;
  letter-spacing: 0.3px;
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text);
  transition: background 0.12s;
}

.profile-dropdown-item i {
  width: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.profile-dropdown-item:hover { background: var(--cream); }

.profile-dropdown-signout { color: #991b1b; }
.profile-dropdown-signout i { color: #991b1b; }

.profile-avatar.has-photo {
  background-color: var(--navy);
  background-size: cover;
  background-position: center 18%;
  background-repeat: no-repeat;
}

.profile-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.profile-manage-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 16px 12px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  transition: background 0.15s, border-color 0.15s;
}
.profile-manage-link:hover {
  background: var(--cream);
  border-color: var(--gold);
}

.profile-dropdown-menu { padding: 8px 0; }

.content { padding: 24px; min-width: 0; overflow-x: clip; }

/* ─── SETTINGS & FORMS ─────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 20px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.card-sub { font-size: 12px; color: var(--muted); margin-bottom: 20px; }

.settings-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: start;
}
.settings-nav { margin-bottom: 0; }
.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-top: 4px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--muted);
  transition: background 0.12s, color 0.12s;
}
.settings-nav-item:hover { background: var(--cream); color: var(--navy); }
.settings-nav-item.active {
  background: rgba(201, 168, 76, 0.12);
  color: var(--navy);
  font-weight: 500;
}
.settings-nav-item i { width: 16px; text-align: center; }
.settings-form { max-width: 420px; margin-top: 8px; }
.settings-form-wide {
  max-width: none;
  width: 100%;
}

.settings-form-sticky-save {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - var(--topbar-height) - 56px);
  min-height: 320px;
}

.settings-form-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  padding-bottom: 8px;
}

.settings-save-bar {
  flex-shrink: 0;
  z-index: 10;
  width: 100%;
  margin: 0;
  padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--cream);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(15, 30, 60, 0.06);
}

.settings-save-bar .btn-primary-full {
  width: 100%;
  min-height: 48px;
  font-size: 15px;
}

.onboarding-panel { padding: 24px 28px; }
.onboarding-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.onboarding-panel-head h2 { margin-bottom: 6px; }
.onboarding-cycle-badge {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy);
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.35);
}
.onboarding-layout {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.onboarding-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.onboarding-stat-card {
  padding: 22px 24px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #faf8f3;
  min-height: 140px;
}
.onboarding-stat-featured {
  background: linear-gradient(135deg, #0f1e3c 0%, #1a2f52 100%);
  border-color: rgba(201, 168, 76, 0.25);
  color: #fff;
}
.onboarding-stat-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.onboarding-stat-featured .onboarding-stat-label { color: rgba(255, 255, 255, 0.5); }
.onboarding-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  margin: 8px 0 6px;
  line-height: 1.1;
}
.onboarding-stat-value-sm { font-size: 28px; }
.onboarding-stat-hint {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.onboarding-stat-featured .onboarding-stat-hint { color: rgba(255, 255, 255, 0.55); }
.onboarding-signing-examples {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.onboarding-signing-examples li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}
.onboarding-signing-examples li span:last-child {
  color: var(--gold-light);
  font-weight: 600;
  white-space: nowrap;
}
.onboarding-progress {
  height: 6px;
  background: rgba(15, 30, 60, 0.1);
  border-radius: 99px;
  margin-top: 14px;
  overflow: hidden;
}
.onboarding-stat-featured .onboarding-progress { background: rgba(255, 255, 255, 0.12); }
.onboarding-progress-bar {
  height: 100%;
  background: var(--gold);
  border-radius: 99px;
  transition: width 0.25s ease;
}
.onboarding-fields-wrap {
  padding: 24px 26px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fffdf9;
}
.onboarding-fields-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}
.onboarding-fields.grid-2 {
  gap: 24px 32px;
}
.onboarding-fields .form-group { margin-bottom: 0; }
.onboarding-fields .field-hint {
  margin-top: 8px;
  line-height: 1.45;
}
@media (max-width: 768px) {
  .onboarding-stats { grid-template-columns: 1fr; }
  .onboarding-fields-wrap { padding: 20px 18px; }
}
@media (max-width: 640px) {
  .onboarding-panel { padding: 20px 18px; }
  .onboarding-panel-head { flex-direction: column; }
  .onboarding-fields.grid-2 { grid-template-columns: 1fr; }
}
.settings-photo-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.settings-photo-form { flex: 1; min-width: 220px; }
.settings-remove-photo { margin-top: 16px; }

.admin-body .form-group { margin-bottom: 16px; }
.admin-body .form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--muted);
}
.admin-body .form-group input,
.admin-body .form-group textarea,
.admin-body .form-group select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  background: var(--white);
  color: var(--text);
}
.admin-body .form-group input:focus,
.admin-body .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.admin-body .form-group input[type="date"],
.admin-body .form-group input[type="time"],
.admin-body .form-group input[type="datetime-local"] {
  padding-right: 48px;
  letter-spacing: 0.01em;
  color: var(--navy);
}
.date-time-field {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 12px;
}
.date-time-field > input {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 46px;
  border-radius: 12px !important;
  border: 1px solid #d8cfba !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(250,248,243,0.92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    0 1px 2px rgba(15, 30, 60, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}
.date-time-field > input:hover {
  border-color: rgba(15, 30, 60, 0.24) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    0 4px 14px rgba(15, 30, 60, 0.06);
}
.date-time-field.is-focused > input,
.date-time-field > input:focus {
  border-color: var(--gold) !important;
  box-shadow:
    0 0 0 4px rgba(201, 168, 76, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.85);
}
.date-time-field.is-empty > input {
  color: #6b7280;
}
.date-time-field.is-disabled > input {
  background: #f8f6f1;
  box-shadow: none;
}
.date-time-field-trigger {
  position: absolute;
  top: 50%;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: rgba(15, 30, 60, 0.06);
  color: var(--navy);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}
.date-time-field:hover .date-time-field-trigger,
.date-time-field.is-focused .date-time-field-trigger {
  background: rgba(201, 168, 76, 0.18);
  color: #8c6d20;
}
.date-time-field-trigger:hover {
  transform: translateY(-50%) scale(1.04);
}
.date-time-field-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18);
}
.date-time-field input::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.date-time-field input::-webkit-date-and-time-value,
.date-time-field input::-webkit-datetime-edit {
  text-align: left;
}
.date-time-field input::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}
.date-time-field--time > input {
  min-width: 160px;
}
.field-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
}
.client-manage-page .offline-amount-error {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 8px;
}
.client-manage-page .manage-form .form-group input.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.btn-text-danger {
  background: none;
  border: none;
  color: #991b1b;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  font-family: inherit;
}
.btn-text-danger:hover { text-decoration: underline; }

.alert-info { background: #e0f2fe; color: #0369a1; }

/* ─── DOCUMENT UPLOAD ──────────────────────────── */
.doc-upload-panel { margin-bottom: 20px; }
.doc-upload-intro { margin-bottom: 20px; }
.doc-section-sub { margin-bottom: 16px; }
.doc-section-gap { margin-top: 20px; }
.doc-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.doc-file-group { grid-column: 1 / -1; }
.label-required { color: #b91c1c; }
.label-optional { font-weight: 400; color: var(--muted); font-size: 11px; }
.doc-upload-confirm {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 6px;
  font-size: 13px;
  color: var(--navy);
}
.doc-upload-confirm i { color: var(--gold); }
.doc-empty-schedule {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #faf8f3;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--muted);
}
.doc-empty-schedule i { color: var(--gold); margin-top: 2px; }
.doc-empty-schedule p { margin: 0; line-height: 1.5; }

.inquiry-action-form { margin: 0; }
.inquiry-action-select {
  min-width: 140px;
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}
.checkbox-row { margin-bottom: 16px; }
.checkbox-label { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.admin-body .form-group.checkbox-row .checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  line-height: 1.4;
}
.admin-body .form-group.checkbox-row .checkbox-label input[type="checkbox"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--navy);
  cursor: pointer;
}

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

.password-mode-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.password-mode-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.password-mode-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 100%;
  padding: 16px 18px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.password-mode-card:hover .password-mode-card-inner {
  border-color: rgba(15, 30, 60, 0.28);
  box-shadow: 0 4px 14px rgba(15, 30, 60, 0.06);
}

.password-mode-card:has(input:checked) .password-mode-card-inner {
  border-color: var(--navy);
  background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
  box-shadow: 0 6px 18px rgba(15, 30, 60, 0.08);
}

.password-mode-card:has(input:focus-visible) .password-mode-card-inner {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.password-mode-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(15, 30, 60, 0.06);
  color: var(--navy);
  font-size: 16px;
  transition: background 0.2s ease, color 0.2s ease;
}

.password-mode-card:has(input:checked) .password-mode-icon {
  background: var(--navy);
  color: var(--gold);
}

.password-mode-copy {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.password-mode-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.password-mode-hint {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.password-mode-check {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--gold);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.password-mode-card:has(input:checked) .password-mode-check {
  opacity: 1;
  transform: scale(1);
}

.password-custom-panel {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--cream);
}

.admin-body .password-custom-panel .password-field input {
  padding-right: 48px;
}

.admin-body .password-custom-panel .password-toggle {
  color: var(--navy);
}

.admin-body .password-custom-panel .password-toggle:hover,
.admin-body .password-custom-panel .password-toggle:focus {
  color: var(--navy-light);
}

@media (max-width: 640px) {
  .password-mode-cards {
    grid-template-columns: 1fr;
  }
}

.engagement-info-panel {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--cream);
  font-size: 13px;
}

.engagement-info-panel > i {
  color: var(--gold);
  margin-top: 2px;
  flex-shrink: 0;
}

.engagement-info-alacarte {
  background: #fff;
}

.email-field-wrap input.email-taken {
  border-color: #dc2626;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.15);
}

.email-field-wrap input.email-available {
  border-color: #16a34a;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.12);
}

.admin-body .field-feedback {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.admin-body .field-feedback.is-available {
  color: #16a34a;
}

.admin-body .field-feedback.is-taken {
  color: #dc2626;
}

.admin-body .field-feedback.is-checking {
  color: var(--muted);
}

.admin-body .field-feedback .feedback-icon {
  font-weight: 700;
}

.setting-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.setting-toggle-copy {
  flex: 1;
  min-width: 0;
}

.setting-toggle-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
  cursor: pointer;
}

.setting-toggle-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.toggle-switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 48px;
  height: 28px;
  cursor: pointer;
}

.toggle-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d1d5db;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 30, 60, 0.18);
  transition: transform 0.2s ease;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--navy);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.toggle-switch input:focus-visible + .toggle-slider {
  box-shadow: 0 0 0 3px rgba(15, 30, 60, 0.18);
}

.form-actions { margin-top: 20px; }

/* Inquiries table — column widths */
.inquiries-panel { padding: 28px 32px; }
.inquiries-table { min-width: 1280px; }
.inquiries-table .col-date { width: 118px; }
.inquiries-table .col-name { width: 160px; }
.inquiries-table .col-email { width: 240px; }
.inquiries-table .col-phone { width: 140px; }
.inquiries-table .col-service { width: 220px; }
.inquiries-table .col-deadline { width: 118px; }
.inquiries-table .col-status { width: 120px; }
.inquiries-table .col-action { width: 104px; }
.inquiries-table .inquiry-name,
.inquiries-table .inquiry-email,
.inquiries-table .inquiry-service {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inquiries-table .inquiry-name { font-weight: 600; color: var(--navy); }
.inquiries-table .inquiry-email {
  color: var(--navy-light);
  text-decoration: none;
}
.inquiries-table .inquiry-email:hover {
  color: var(--navy);
  text-decoration: underline;
}

.row-action-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 8px 6px;
}

.inquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.inquiry-modal[hidden] { display: none !important; }
body.inquiry-modal-open { overflow: hidden; }
.inquiry-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 60, 0.55);
}
.inquiry-modal-card {
  position: relative;
  width: min(720px, 100%);
  max-height: min(88vh, 760px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(15, 30, 60, 0.18);
  overflow: hidden;
}
.inquiry-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--border);
}
.inquiry-modal-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--navy);
}
.inquiry-modal-sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.inquiry-modal-close {
  border: none;
  background: #faf8f3;
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}
.inquiry-modal-close:hover { background: #f3efe6; color: var(--navy); }
.inquiry-modal-table-wrap {
  padding: 0 24px;
  overflow: auto;
  flex: 1;
}
.inquiry-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.inquiry-detail-table th,
.inquiry-detail-table td {
  padding: 14px 0;
  border-bottom: 1px solid #f0ede8;
  vertical-align: top;
  text-align: left;
  font-size: var(--text-sm);
}
.inquiry-detail-table th {
  width: 140px;
  padding-right: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.inquiry-detail-table tr:last-child th,
.inquiry-detail-table tr:last-child td { border-bottom: none; }
.inquiry-detail-brief {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
  color: var(--text);
  background: #faf8f3;
  border-radius: 8px;
  padding: 14px 16px !important;
}
.inquiry-detail-empty {
  color: var(--muted);
  font-style: italic;
}
.inquiry-modal-foot {
  padding: 16px 24px 22px;
  border-top: 1px solid var(--border);
}

/* ─── CLIENT PROFILE MODAL ─────────────────────── */
.client-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.client-profile-modal[hidden] { display: none !important; }
body.client-profile-modal-open { overflow: hidden; }
.client-profile-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 60, 0.55);
}
.client-profile-modal-card {
  position: relative;
  width: min(760px, 100%);
  max-height: min(90vh, 820px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(15, 30, 60, 0.2);
  overflow: hidden;
}
.client-profile-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.15s;
}
.client-profile-modal-close:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}
.client-profile-hero {
  position: relative;
  flex-shrink: 0;
  padding: 24px 52px 22px 24px;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(201, 168, 76, 0.22) 0%, transparent 55%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  min-height: 132px;
}
.client-profile-hero-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--text-sm);
  z-index: 1;
}
.client-profile-hero-loading[hidden],
.client-profile-hero-content[hidden],
.client-profile-body[hidden],
.client-profile-foot[hidden] {
  display: none !important;
}
.client-profile-hero-content {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 84px;
}
.client-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(201, 168, 76, 0.45);
  color: var(--gold-light);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.client-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.client-profile-hero-text {
  min-width: 0;
  flex: 1;
  padding-top: 2px;
}
.client-profile-ref {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.client-profile-hero h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  word-break: break-word;
}
.client-profile-rank {
  margin: 4px 0 0;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.78);
}
.client-profile-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.client-profile-hero-meta .pill {
  font-size: 11px;
  padding: 4px 10px;
}
.client-profile-cycle {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.client-profile-body {
  padding: 22px 24px 8px;
  overflow: auto;
  flex: 1;
}
.client-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.client-profile-stat {
  padding: 14px 14px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #faf8f3;
  min-width: 0;
}
.client-profile-stat-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.client-profile-stat-value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.client-profile-stat-paid { color: #166534; }
.client-profile-stat-sub {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}
.client-profile-progress-bar {
  margin-top: 8px;
  min-width: 0;
}
.client-profile-section {
  margin-bottom: 18px;
}
.client-profile-section h4 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.client-profile-details {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
  margin: 0;
  font-size: var(--text-sm);
}
.client-profile-details dt {
  margin: 0;
  font-weight: 600;
  color: var(--muted);
}
.client-profile-details dd {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
  word-break: break-word;
}
.client-profile-details a {
  color: var(--navy-light);
  font-weight: 600;
  text-decoration: none;
}
.client-profile-details a:hover { color: var(--gold); text-decoration: underline; }
.client-profile-next-action {
  margin: 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: #faf8f3;
  border: 1px solid var(--border);
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--text);
  white-space: pre-wrap;
}
.client-profile-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 24px 22px;
  border-top: 1px solid var(--border);
  background: #fff;
}

@media (max-width: 720px) {
  .client-profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-profile-details { grid-template-columns: 1fr; gap: 2px 0; }
  .client-profile-details dt { margin-top: 8px; }
  .client-profile-hero {
    padding: 20px 48px 18px 20px;
  }
  .client-profile-hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

.engagement-switcher-panel .engagement-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.engagement-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #faf8f3;
}
.engagement-list-item.is-selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.25);
}
.engagement-list-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.engagement-list-main .pill { margin-right: 6px; }
.engagement-list-meta { margin: 0; font-size: 12px; }
.engagement-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}
.engagement-new-cycle {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.engagement-new-cycle summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
}
.engagement-new-cycle-form .btn-primary { margin-top: 12px; }

.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
}
.table-pagination-single {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.panel:has(.table-wrap) {
  min-width: 0;
  max-width: 100%;
}

.clients-table .col-money { min-width: 120px; width: auto; }
.clients-table .col-progress { min-width: 148px; width: auto; }
.clients-table .col-status { min-width: 120px; width: auto; }
.clients-table .col-action { min-width: 104px; width: auto; }
.clients-table .client-ref {
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.clients-table .client-name {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.clients-table .client-project {
  color: var(--muted);
  white-space: nowrap;
}
.clients-table .money-value {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--navy);
}
.clients-table .money-value-paid { color: #166534; }
.client-progress-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 108px;
}
.client-progress-pct {
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 34px;
  font-size: var(--text-sm);
}
.clients-table .progress-bar-sm {
  flex: 1;
  min-width: 56px;
  height: 5px;
  background: #ebe6da;
  border-radius: 99px;
  overflow: hidden;
}
.clients-table .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #d4b05c);
  border-radius: 99px;
}

.row-action-menu {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
  vertical-align: middle;
}
.row-action-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid #dde3ec;
  border-radius: 8px;
  background: #fff;
  color: var(--navy-light);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.row-action-trigger i {
  font-size: 9px;
  opacity: 0.85;
  transition: transform .15s;
}
.row-action-trigger[aria-expanded="true"] i { transform: rotate(180deg); }
.row-action-trigger:hover,
.row-action-trigger[aria-expanded="true"] {
  background: #f8fbff;
  border-color: #93b4e8;
  color: var(--navy);
  box-shadow: 0 1px 3px rgba(15, 30, 60, 0.06);
}
.row-action-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 196px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 30, 60, 0.1);
  padding: 4px;
  z-index: 30;
}
.row-action-dropdown.is-fixed {
  position: fixed;
  top: auto;
  right: auto;
  z-index: 500;
}
.row-action-item-form { margin: 0; }
.row-action-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.row-action-item:hover { background: #faf8f3; }
.row-action-item i { width: 14px; color: var(--muted); font-size: 12px; }
.row-action-item.danger { color: #991b1b; }
.row-action-item.danger:hover { background: #fef2f2; }

.pill-muted { background: #f3f4f6; color: #4b5563; }
.doc-row-actions-hidden { display: none; }

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.table-pagination-meta { margin: 0; font-size: 12px; color: var(--muted); }
.table-pagination-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.page-btn,
.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  gap: 6px;
}
.page-btn:hover,
.page-num:hover { background: #faf8f3; border-color: #d8ccb0; }
.page-btn.disabled,
.page-num.active { pointer-events: none; }
.page-btn.disabled { opacity: 0.45; }
.page-num.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.doc-forms-grid { margin-bottom: 20px; width: 100%; max-width: 100%; }
.doc-upload-form select,
.doc-upload-form input[type="number"],
.doc-upload-form .file-accumulator {
  width: 100%;
  max-width: 100%;
}
.doc-status-pill { text-transform: capitalize; }
.doc-row-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.doc-inline-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.doc-inline-file {
  max-width: 180px;
  font-size: 12px;
}

.file-accumulator-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafafa;
}
.file-accumulator-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.file-accumulator-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.file-accumulator-add:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.file-accumulator-empty {
  font-size: 13px;
}
.file-accumulator-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.file-accumulator-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.file-accumulator-name {
  min-width: 0;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-accumulator-remove {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.file-accumulator-remove:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.stat-box i { font-size: 22px; color: var(--gold); }
.stat-link {
  display: flex;
  gap: 14px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  width: 100%;
}
.stat-link:hover strong { color: var(--gold); }
.stat-box strong { display: block; font-size: 24px; }
.stat-box span { font-size: 12px; color: var(--muted); }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.grid-2 > * { min-width: 0; }
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  min-width: 0;
  max-width: 100%;
}
.panel h2 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
  width: 100%;
  border: 1px solid #e8e4dc;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 30, 60, 0.04);
}
.table-wrap:has(.clients-table) {
  scrollbar-gutter: stable;
}
.inquiry-modal-table-wrap {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.data-table,
.milestone-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  min-width: 640px;
  font-size: var(--text-sm);
}
.data-table thead th,
.milestone-table thead th {
  padding: 14px 16px;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: #f8f9fb;
  border-bottom: 1px solid #e8e4dc;
  white-space: nowrap;
  vertical-align: middle;
  text-align: left;
}
.data-table tbody td,
.milestone-table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
  line-height: 1.4;
  font-size: var(--text-sm);
  color: var(--text);
  border-bottom: 1px solid #f0ede8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
.data-table tbody tr:last-child td,
.milestone-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr,
.milestone-table tbody tr {
  position: relative;
  transition: background 0.15s ease;
}
.data-table tbody tr:hover td,
.milestone-table tbody tr:hover td { background: #fafbfc; }
.data-table .col-action,
.milestone-table .col-action {
  width: 104px;
  text-align: right;
  white-space: nowrap;
  overflow: visible;
  padding-right: 16px;
}
.data-table thead th.col-action,
.milestone-table thead th.col-action { text-align: right; }
.data-table .col-status,
.data-table thead th.col-status,
.milestone-table .col-status,
.milestone-table thead th.col-status {
  width: 120px;
  text-align: center;
  overflow: visible;
}
.data-table .col-money,
.data-table thead th.col-money,
.milestone-table .col-money,
.milestone-table thead th.col-money,
.milestone-table .m-amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.data-table .col-progress,
.data-table thead th.col-progress,
.milestone-table .col-progress,
.milestone-table thead th.col-progress { overflow: visible; }
.data-table td:has(input),
.data-table td:has(select),
.data-table td:has(textarea),
.data-table td:has(.row-action-menu),
.data-table td:has(.client-progress-cell),
.data-table td:has(.dash-inline-progress),
.data-table td:has(.milestone-badge),
.milestone-table td:has(.milestone-badge) {
  overflow: visible;
}

.data-table.clients-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}
.data-table.clients-table thead th,
.data-table.clients-table tbody td {
  overflow: visible;
  text-overflow: unset;
  max-width: none;
}
.data-table.clients-table .client-ref,
.data-table.clients-table .client-name,
.data-table.clients-table .client-project {
  overflow: visible;
  text-overflow: unset;
  white-space: nowrap;
}

.data-table.staff-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}
.data-table.staff-table thead th,
.data-table.staff-table tbody td {
  padding-left: 20px;
  padding-right: 20px;
  overflow: visible;
  text-overflow: unset;
  white-space: nowrap;
}
.staff-table .staff-col-name {
  min-width: 220px;
}
.staff-table .staff-col-email {
  min-width: 250px;
}
.staff-table .staff-col-phone {
  min-width: 170px;
}
.staff-table .staff-col-added {
  min-width: 140px;
}
.staff-table .col-status {
  min-width: 130px;
  width: auto;
}
.staff-table .col-action {
  min-width: 110px;
  width: auto;
}
.staff-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.staff-identity .cell-strong {
  white-space: nowrap;
}
.staff-job-title {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
#staff-view-notes {
  white-space: pre-wrap;
  line-height: 1.5;
}
.staff-table .staff-col-email a,
.staff-table .staff-col-phone a {
  color: var(--navy);
  font-weight: 500;
}
.staff-table .staff-col-email a:hover,
.staff-table .staff-col-phone a:hover {
  color: #8a6b1f;
  text-decoration: underline;
}

.submissions-table .col-milestone,
.submissions-table thead th.col-milestone {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 1px;
  width: 32%;
}
.submissions-table .col-milestone .cell-muted {
  color: var(--muted);
  font-weight: 400;
}

.submissions-table .submission-date-cell {
  white-space: normal;
  line-height: 1.35;
}

.submissions-table .submission-date-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.submissions-table td.col-action,
.submissions-table thead th.col-action {
  overflow: visible;
  text-overflow: unset;
}

.doc-manage-table td.col-action,
.doc-manage-table thead th.col-action {
  overflow: visible;
  text-overflow: unset;
}

.submission-row-unread {
  background: rgba(37, 99, 235, 0.06);
}

.submission-row-unread:hover {
  background: rgba(37, 99, 235, 0.1);
}

.submission-new-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563eb;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.submission-new-label {
  display: inline-block;
  margin-left: 0;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.submission-panel-new {
  color: #1d4ed8;
  font-weight: 700;
}

.panel-table-count-sep {
  margin: 0 6px;
  color: var(--muted);
}

.nav-badge-doc {
  background: #2563eb;
  color: #fff;
}

.data-table td:has(input),
.data-table td:has(select),
.data-table td:has(textarea) {
  white-space: normal;
}
.panel-table-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  min-width: 0;
}
[data-table-search-panel] {
  min-width: 0;
  max-width: 100%;
}
.panel-table-head h2 { margin-bottom: 4px; }
.panel-table-count {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted);
  background: #f8f9fb;
  border: 1px solid #e8e4dc;
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}
.cell-date {
  white-space: nowrap;
  color: var(--muted);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}
.cell-strong {
  color: var(--navy);
  font-weight: 600;
  font-size: var(--text-sm);
}
.cell-sub {
  color: var(--muted);
  font-size: var(--text-sm);
}
.cell-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cell-line .cell-muted {
  color: var(--muted);
  font-weight: 400;
}
.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
  vertical-align: middle;
}
.muted { color: var(--muted); font-size: var(--text-sm); line-height: 1.55; }
.inline-form select { padding: 6px 8px; font-size: 12px; border-radius: 4px; border: 1px solid var(--border); }
.alert { padding: 12px; border-radius: 6px; margin-bottom: 16px; font-size: 13px; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }
.stats-row-secondary { margin-bottom: 24px; }

/* ─── DASHBOARD ─────────────────────────────────── */
.dash-welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.dash-welcome-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.dash-welcome-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.dash-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.6;
}
.dash-notice i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.dash-notice-warn {
  background: rgba(254, 243, 199, 0.45);
  border-color: rgba(245, 158, 11, 0.35);
  border-left-color: #f59e0b;
}
.dash-notice-muted { color: var(--muted); }

.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.dash-stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.dash-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.dash-stat-card.gold::before { background: var(--gold); }
.dash-stat-card.navy::before { background: var(--navy); }
.dash-stat-card.green::before { background: #22c55e; }
.dash-stat-card.blue::before { background: #3b82f6; }
.dash-stat-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.dash-stat-value {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.dash-stat-sub { font-size: 11px; color: var(--muted); margin-top: 4px; }

.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 12px;
  overflow: hidden;
}
.progress-bar-lg { height: 6px; margin-top: 8px; }
.progress-bar-sm { height: 4px; margin-top: 0; min-width: 72px; }
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  border-radius: 2px;
}

.dash-ops-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.dash-ops-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 2px rgba(15, 30, 60, 0.04);
}
.dash-ops-chip:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(15, 30, 60, 0.06);
}
.dash-ops-chip i { color: var(--gold); font-size: 13px; }
.dash-ops-chip strong { font-size: 14px; color: var(--navy); }
.dash-ops-chip-alert {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(254, 243, 199, 0.35);
}

.dash-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
  padding: 6px 8px 0;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
}
.dash-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px 8px 0 0;
  margin-bottom: -1px;
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s;
}
.dash-tab:hover { color: var(--navy); background: rgba(255, 255, 255, 0.6); }
.dash-tab.active {
  color: var(--navy);
  background: var(--white);
  border-color: var(--border);
  border-bottom-color: var(--white);
  font-weight: 600;
}
.dash-tab i { font-size: 14px; }
.dash-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.dash-tab-badge-warn { background: #f59e0b; }
.dash-tab-badge-muted { background: #e5e7eb; color: var(--muted); }

.dash-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0 10px 10px 10px;
  padding: 24px 26px;
  margin-bottom: 20px;
  min-width: 0;
  box-shadow: 0 1px 3px rgba(15, 30, 60, 0.04);
}
.dash-panel h2 {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0;
}
.dash-panel-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.dash-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}
.dash-two-col > .dash-panel {
  min-width: 0;
  max-width: 100%;
}
.dash-two-col-spaced { margin-top: 20px; }

.dash-panel .table-wrap {
  max-width: 100%;
}

.dash-panel-table {
  min-width: 0;
  width: 100%;
}

.dash-panel-table thead th.col-progress,
.dash-panel-table .col-progress {
  width: 108px;
}

.dash-panel-table thead th.col-status,
.dash-panel-table .col-status {
  width: 92px;
}

.dash-panel-table .cell-service {
  max-width: 0;
}

.workstream-list, .deadline-list { display: flex; flex-direction: column; gap: 14px; }
.deadline-list-full { gap: 12px; }
.workstream-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 13px;
}
.workstream-name { font-weight: 600; color: var(--navy); }
.workstream-pct { font-size: 12px; color: var(--muted); font-weight: 600; }
.workstream-client, .workstream-cycle {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}
.workstream-client-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.workstream-client-ref {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.workstream-note { font-size: 11px; color: var(--muted); margin-top: 6px; }

.deadline-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--cream);
  border-left: 3px solid var(--navy);
}
.deadline-item.priority-urgent { background: rgba(254, 243, 199, 0.5); border-left-color: #f59e0b; }
.deadline-item.priority-urgent .deadline-date { color: #d97706; }
.deadline-item.priority-low { border-left-color: #d1d5db; }
.deadline-item.deadline-overdue {
  background: rgba(254, 226, 226, 0.45);
  border-left-color: #ef4444;
}
.deadline-info { flex: 1; min-width: 0; }
.deadline-title { font-size: 13px; font-weight: 600; color: var(--navy); }
.deadline-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.deadline-action-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}
.deadline-meta { text-align: right; flex-shrink: 0; }
.deadline-date { font-size: 12px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.deadline-days { font-size: 11px; color: var(--muted); margin-top: 2px; }

.workstream-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.workstream-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--cream);
}
.workstream-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.dash-inline-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.dash-inline-progress .progress-bar {
  flex: 1;
  min-width: 40px;
}
.dash-inline-progress span { font-size: var(--text-sm); font-weight: 600; color: var(--muted); white-space: nowrap; flex-shrink: 0; }

.dash-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
}
.dash-empty i { font-size: 32px; color: var(--border); margin-bottom: 12px; display: block; }
.dash-text-warn { color: #d97706; font-weight: 600; }

/* ─── Dashboard hero & analytics ─────────────────── */
.dash-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 26px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(15, 30, 60, 0.04) 0%, rgba(201, 168, 76, 0.08) 100%);
  border: 1px solid rgba(226, 217, 197, 0.85);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 30, 60, 0.04);
}
.dash-hero-main { flex: 1; min-width: 0; }
.dash-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.dash-hero-eyebrow i { font-size: 12px; }
.dash-hero-meta {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.dash-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
}
.dash-hero-stat-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.dash-hero-stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.dash-stats-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.dash-stat-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(15, 30, 60, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.dash-stat-card-link {
  text-decoration: none;
  color: inherit;
}
.dash-stat-card-link:hover,
.dash-stat-card:not(.dash-stat-card-link):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 30, 60, 0.08);
  border-color: rgba(201, 168, 76, 0.45);
}
.dash-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(15, 30, 60, 0.06);
  color: var(--navy);
  flex-shrink: 0;
  font-size: 16px;
}
.dash-stat-card.gold .dash-stat-icon { background: rgba(201, 168, 76, 0.15); color: #9a7b2e; }
.dash-stat-card.navy .dash-stat-icon { background: rgba(15, 30, 60, 0.1); color: var(--navy); }
.dash-stat-card.green .dash-stat-icon { background: rgba(34, 197, 94, 0.12); color: #15803d; }
.dash-stat-card.blue .dash-stat-icon { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; }
.dash-stat-body { flex: 1; min-width: 0; }

.dash-analytics {
  margin-bottom: 24px;
}
.dash-analytics-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.dash-analytics-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.dash-analytics-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.dash-charts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.dash-charts-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dash-chart-wide {
  grid-column: span 2;
}
.dash-chart-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  min-width: 0;
  box-shadow: 0 1px 3px rgba(15, 30, 60, 0.04);
  display: flex;
  flex-direction: column;
}
.dash-chart-head {
  margin-bottom: 14px;
}
.dash-chart-head h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0;
}
.dash-chart-head p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.dash-chart-body {
  flex: 1;
  min-height: 0;
}
.dash-chart-body-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: center;
}
.dash-chart-wrap {
  position: relative;
  width: 100%;
}
.dash-chart-wrap-line { height: 220px; }
.dash-chart-wrap-bar { height: 200px; }
.dash-chart-wrap-bar-h { height: 200px; }
.dash-chart-wrap-pie { height: 168px; max-width: 168px; margin: 0 auto; }

.dash-chart-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.dash-chart-legend-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
}
.dash-chart-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dash-chart-legend-label {
  font-weight: 500;
  color: var(--navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-chart-legend-value {
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.dash-chart-legend-value em {
  font-style: normal;
  font-weight: 500;
  font-size: 11px;
}

.manage-row-form { margin-bottom: 8px; }
.convert-steps {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
  color: var(--text);
}
.convert-steps li + li { margin-top: 6px; }
/* ─── Client create / convert forms ─────────────── */
.client-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.client-form-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 30, 60, 0.04);
}

.client-form-section-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, #faf8f3 100%);
  flex-wrap: wrap;
}

.client-form-section-head .convert-milestone-toolbar {
  margin-left: auto;
  flex-shrink: 0;
}

.client-form-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 11px;
  background: rgba(15, 30, 60, 0.06);
  color: var(--navy);
  font-size: 16px;
}

.client-form-section--milestones .client-form-section-icon {
  background: rgba(201, 168, 76, 0.14);
  color: #9a7b2e;
}

.client-form-section-head h2 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.client-form-section-head .doc-section-sub {
  margin: 0;
  font-size: 13px;
}

.client-form-section-body {
  padding: 22px 24px 24px;
}

.client-form-section-body .form-group:last-child {
  margin-bottom: 0;
}

.client-form-quote-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(201, 168, 76, 0.28);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.08) 0%, rgba(201, 168, 76, 0.02) 100%);
}

.client-form-quote-stat-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.client-form-quote-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

.client-form-quote-stat-hint {
  font-size: 12px;
  color: var(--muted);
  max-width: 220px;
  text-align: right;
  line-height: 1.45;
}

.client-form-options {
  display: grid;
  gap: 10px;
}

.client-form-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--cream);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.client-form-option:hover {
  border-color: rgba(15, 30, 60, 0.22);
  background: #fff;
}

.client-form-option:has(input:checked) {
  border-color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 30, 60, 0.06);
}

.client-form-option input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--navy);
  cursor: pointer;
}

.client-form-option-copy {
  flex: 1;
  min-width: 0;
}

.client-form-option-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}

.client-form-option-hint {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.client-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(15, 30, 60, 0.06);
}

.client-form-footer-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  max-width: 420px;
}

.client-form-footer .btn-primary {
  min-height: 46px;
  padding: 12px 22px;
  font-size: 14px;
}

.convert-milestone-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}

.convert-milestone-head h2 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.convert-milestone-head .doc-section-sub {
  margin: 0;
  font-size: 13px;
}

.convert-milestone-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.convert-milestone-wrap {
  border: 1px solid #e8e4dc;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.convert-milestone-table {
  min-width: 560px;
}

.convert-milestone-table thead th {
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
  background: #f4f5f7;
  border-bottom: 1px solid #e8e4dc;
  white-space: nowrap;
}

.convert-milestone-table tbody td {
  padding: 10px 12px;
  vertical-align: middle;
  border-bottom: 1px solid #f0ede6;
  background: #fff;
}

.convert-milestone-table tbody tr:nth-child(even) td {
  background: #fafbfc;
}

.convert-milestone-table tbody tr:hover td {
  background: #f5f3ee;
}

.convert-milestone-table tbody tr:last-child td {
  border-bottom: 1px solid #f0ede6;
}

.convert-milestone-table tfoot td {
  padding: 14px 12px;
  border-top: 2px solid #e8e4dc;
  background: linear-gradient(180deg, #faf8f3 0%, #f5f3ee 100%);
  vertical-align: middle;
}

.convert-milestone-total-label {
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.convert-milestone-total-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  text-align: right;
  white-space: nowrap;
}

.convert-milestone-table input {
  width: 100%;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid #e2d9c5;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.convert-milestone-table input:hover {
  border-color: rgba(15, 30, 60, 0.22);
}

.convert-milestone-table input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15, 30, 60, 0.08);
  background: #fff;
}

.convert-milestone-table input::placeholder {
  color: #a8b0bc;
}

.convert-milestone-table .input-order {
  width: 64px;
  text-align: center;
}

.convert-milestone-table thead th.col-deliverable {
  text-align: center;
}

.convert-milestone-table .col-money {
  width: 130px;
}

.convert-milestone-table .col-action,
.convert-milestone-table thead th.col-action,
.convert-milestone-table tbody td.col-action {
  width: 80px;
  min-width: 80px;
  max-width: 80px;
  text-align: center;
  padding-left: 10px;
  padding-right: 10px;
  white-space: nowrap;
  overflow: visible;
}

.convert-milestone-table thead th.col-action {
  letter-spacing: 0.04em;
}

.convert-milestone-table tbody td.col-action {
  vertical-align: middle;
}

.convert-milestone-table tbody td.col-action .btn-icon-danger {
  display: inline-flex;
  margin: 0 auto;
}

.convert-milestone-table th:nth-child(1),
.convert-milestone-table td:nth-child(1) {
  width: 96px;
}

.convert-milestone-table th:nth-child(2),
.convert-milestone-table td:nth-child(2) {
  width: 72px;
}

.convert-milestone-table .btn-icon-danger {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #b0b8c4;
  font-size: 13px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.convert-milestone-table .trash-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.convert-milestone-table .trash-icon svg {
  display: block;
  overflow: visible;
}

.convert-milestone-table .trash-lid {
  transform-origin: 12px 7px;
  transition: transform 0.24s cubic-bezier(0.34, 1.25, 0.64, 1);
}

.convert-milestone-table .btn-icon-danger:hover:not(:disabled) .trash-lid,
.convert-milestone-table .btn-icon-danger:focus-visible .trash-lid {
  transform: rotate(-38deg) translate(-1px, -2px);
}

.convert-milestone-table tbody tr:hover .btn-icon-danger {
  color: #94a3b8;
}

.convert-milestone-table .btn-icon-danger:hover:not(:disabled) {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  border-color: transparent;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.12);
  transform: scale(1.06);
}

.convert-milestone-table .btn-icon-danger:active:not(:disabled) {
  transform: scale(0.94);
  background: rgba(220, 38, 38, 0.16);
}

.convert-milestone-table .btn-icon-danger:focus-visible {
  outline: none;
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}

.convert-milestone-empty {
  margin: 14px 0 0;
  padding: 20px;
  font-size: 13px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: var(--cream);
}

.convert-form-actions {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .client-form-section-head,
  .client-form-section-body,
  .client-form-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .client-form-section-head .convert-milestone-toolbar {
    margin-left: 0;
    width: 100%;
  }

  .client-form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .client-form-footer .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .client-form-quote-stat {
    flex-direction: column;
    align-items: flex-start;
  }

  .client-form-quote-stat-hint {
    text-align: left;
    max-width: none;
  }
}
.manage-row-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.package-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.package-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--cream);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.package-card:hover,
.package-card.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.25);
}
.package-card.inactive { opacity: 0.65; }
.package-card-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
}
.package-card-title {
  font-weight: 600;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.35;
}
.package-card-price {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* ─── Packages catalog (modern) ─────────────────── */
.pkg-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.pkg-page-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
  line-height: 1.15;
}
.pkg-page-sub {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 56ch;
}
.pkg-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.pkg-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pkg-stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.pkg-stat-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.pkg-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.pkg-catalog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.pkg-catalog-card:hover {
  border-color: rgba(201, 168, 76, 0.45);
  box-shadow: 0 12px 32px -20px rgba(15, 30, 60, 0.35);
  transform: translateY(-2px);
}
.pkg-catalog-card.is-inactive { opacity: 0.72; }
.pkg-catalog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pkg-catalog-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.pkg-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pkg-badge-live {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.pkg-badge-muted {
  background: rgba(15, 30, 60, 0.06);
  color: var(--muted);
  border: 1px solid var(--border);
}
.pkg-catalog-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  line-height: 1.25;
}
.pkg-catalog-desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}
.pkg-catalog-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.pkg-catalog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
}
.pkg-catalog-meta i { color: var(--gold); margin-right: 4px; }
.pkg-catalog-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.pkg-delete-form { margin: 0; }
.pkg-catalog-hint {
  margin: 0;
  font-size: 11px;
}
.pkg-empty {
  text-align: center;
  padding: 48px 24px;
}
.pkg-empty i {
  font-size: 36px;
  color: var(--gold);
  margin-bottom: 12px;
}
.pkg-empty h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 8px;
}
.pkg-modal[hidden] { display: none !important; }
body.pkg-modal-open { overflow: hidden; }
.pkg-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pkg-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 60, 0.55);
  backdrop-filter: blur(2px);
}
.pkg-modal-wide {
  width: min(920px, 100%);
  max-height: min(94vh, 860px);
}
.pkg-modal--fullscreen {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}
.pkg-modal--fullscreen .pkg-modal-backdrop {
  background: rgba(15, 30, 60, 0.92);
}
.pkg-modal-shell--fullscreen {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
  border: none;
  box-shadow: none;
}
.pkg-modal-shell--fullscreen .pkg-modal-header {
  padding: 22px 28px;
  flex-shrink: 0;
}
.pkg-modal-shell--fullscreen .pkg-modal-header h3 {
  font-size: 18px;
  letter-spacing: 0.12em;
}
.pkg-modal-shell--fullscreen .pkg-modal-header-sub {
  font-size: 14px;
}
.pkg-modal-shell--fullscreen .pkg-modal-body-table {
  max-height: none;
  flex: 1;
  min-height: 0;
  padding: 24px 32px 28px;
  display: flex;
  flex-direction: column;
  background: #f4f6f9;
}
.pkg-schedule-editor {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 16px;
  width: 100%;
}
.pkg-schedule-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-shrink: 0;
}
.pkg-schedule-toolbar-text {
  flex: 1;
  min-width: 0;
}
.pkg-schedule-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.pkg-schedule-title i {
  color: var(--gold);
  font-size: 15px;
}
.pkg-schedule-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.pkg-schedule-search {
  margin-bottom: 0;
  flex-shrink: 0;
}
.pkg-schedule-search .packages-search {
  max-width: none;
}
.pkg-schedule-table-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 30, 60, 0.06);
  overflow: hidden;
}
.pkg-schedule-table-panel .table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin-bottom: 0;
}
.pkg-modal-shell--fullscreen .pkg-modal-body-table .pkg-form-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-bottom: 0;
  padding: 20px 28px;
  width: 100%;
  max-width: none;
}
.pkg-modal-shell--fullscreen .pkg-modal-body-table .table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin-bottom: 0;
}
.pkg-modal-shell--fullscreen .pkg-modal-footer {
  padding: 16px 32px;
  flex-shrink: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(15, 30, 60, 0.04);
}
.pkg-modal-shell--fullscreen .pkg-milestones-edit-table {
  table-layout: fixed;
  width: 100%;
  min-width: 100%;
}
.pkg-modal-shell--fullscreen .pkg-milestones-edit-table thead th {
  padding: 14px 16px;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8f9fb;
  box-shadow: 0 1px 0 #e8e4dc;
}
.pkg-modal-shell--fullscreen .pkg-milestones-edit-table tbody td {
  padding: 10px 14px;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  vertical-align: middle;
  background: var(--white);
}
.pkg-modal-shell--fullscreen .pkg-milestones-edit-table tbody tr:hover td {
  background: #fafbfc;
}
.pkg-modal-shell--fullscreen .pkg-milestones-edit-table input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #dde2ea;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pkg-modal-shell--fullscreen .pkg-milestones-edit-table input:hover {
  border-color: #c5cdd8;
}
.pkg-modal-shell--fullscreen .pkg-milestones-edit-table input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18);
}
.pkg-modal-shell--fullscreen .pkg-milestones-edit-table input::placeholder {
  color: #9ca3af;
}
.pkg-modal-shell--fullscreen .pkg-milestones-edit-table .input-order {
  width: 72px;
  min-width: 72px;
}
.pkg-modal-shell--fullscreen .pkg-milestones-edit-table th:nth-child(1),
.pkg-modal-shell--fullscreen .pkg-milestones-edit-table td:nth-child(1) {
  width: 90px;
  min-width: 90px;
}
.pkg-modal-shell--fullscreen .pkg-milestones-edit-table th:nth-child(2),
.pkg-modal-shell--fullscreen .pkg-milestones-edit-table td:nth-child(2) {
  width: 22%;
}
.pkg-modal-shell--fullscreen .pkg-milestones-edit-table th:nth-child(3),
.pkg-modal-shell--fullscreen .pkg-milestones-edit-table td:nth-child(3) {
  width: 14%;
}
.pkg-modal-shell--fullscreen .pkg-milestones-edit-table th:nth-child(4),
.pkg-modal-shell--fullscreen .pkg-milestones-edit-table td:nth-child(4) {
  width: 24%;
}
.pkg-modal-shell--fullscreen .pkg-milestones-edit-table th:nth-child(5),
.pkg-modal-shell--fullscreen .pkg-milestones-edit-table td:nth-child(5) {
  width: 110px;
  min-width: 110px;
}
.pkg-modal-shell--fullscreen .pkg-milestones-edit-table th:nth-child(6),
.pkg-modal-shell--fullscreen .pkg-milestones-edit-table td:nth-child(6) {
  width: 150px;
  min-width: 150px;
}
.pkg-modal-shell--fullscreen .pkg-milestones-edit-table th:nth-child(7),
.pkg-modal-shell--fullscreen .pkg-milestones-edit-table td:nth-child(7) {
  width: 80px;
  min-width: 80px;
}
.pkg-modal-shell--fullscreen .pkg-milestones-edit-table th:nth-child(8),
.pkg-modal-shell--fullscreen .pkg-milestones-edit-table td:nth-child(8) {
  width: 56px;
  min-width: 56px;
}
@media (max-width: 768px) {
  .pkg-schedule-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .pkg-schedule-toolbar-actions {
    justify-content: space-between;
  }
  .pkg-modal-shell--fullscreen .pkg-modal-body-table {
    padding: 16px;
  }
}
.pkg-modal-header-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}
.pkg-modal-body-table {
  max-height: min(58vh, 520px);
}
.pkg-schedule-hint {
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
  max-width: 52ch;
}
.pkg-milestones-empty {
  margin: 0 0 8px;
  padding: 20px;
  text-align: center;
  background: var(--cream);
  border-radius: 8px;
}
.pkg-modal-shell {
  position: relative;
  width: min(560px, 100%);
  max-height: min(92vh, 760px);
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px -24px rgba(15, 30, 60, 0.45);
  overflow: hidden;
}
.pkg-modal-shell form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

/* Full-screen schedule editor — must follow .pkg-modal-shell to win cascade */
#schedule-modal.pkg-modal--fullscreen {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}
#schedule-modal.pkg-modal--fullscreen .pkg-modal-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  border-radius: 0;
  border: none;
  box-shadow: none;
  flex: 1;
  align-self: stretch;
}
.pkg-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: var(--navy);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}
.pkg-modal-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.pkg-modal-header-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.pkg-modal-header-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(201, 168, 76, 0.35);
  color: var(--gold);
}
.pkg-modal-body {
  padding: 20px 22px;
  overflow: auto;
  flex: 1;
  background: #faf8f3;
}
.pkg-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 22px;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.pkg-form-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.pkg-form-section:last-child { margin-bottom: 0; }
.pkg-form-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.pkg-form-section-title i { color: var(--gold); font-size: 13px; }
.pkg-form-section .req { color: #dc2626; }
.pkg-modal-milestones {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.pkg-modal-milestones a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.pkg-modal-milestones a:hover { color: var(--gold); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--navy);
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-outline:hover {
  background: var(--cream);
  border-color: var(--gold);
}
.panel-table-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.client-resend-credentials-form { margin: 0; }
.packages-table {
  table-layout: auto;
  min-width: 720px;
}
.packages-table thead th,
.packages-table tbody td {
  padding: 18px 22px;
}
.packages-table thead th {
  white-space: normal;
  line-height: 1.35;
}
.packages-table tbody td {
  vertical-align: middle;
}
.packages-table .col-name {
  min-width: 260px;
  width: 34%;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  padding-right: 28px;
}
.packages-table .col-name .cell-strong {
  display: block;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.45;
  font-size: 14px;
}
.packages-table .col-money {
  width: 110px;
  padding-left: 20px;
  padding-right: 28px;
  text-align: right;
  white-space: nowrap;
}
.packages-table .col-money .money-value {
  display: block;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.th-stacked {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  line-height: 1.2;
}
.th-stacked-main {
  font-size: inherit;
  letter-spacing: inherit;
}
.th-stacked-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.9;
}
.packages-table .col-pricing {
  width: 150px;
  white-space: nowrap;
  padding-right: 28px;
}
.packages-table .col-milestones {
  width: 110px;
  text-align: center;
  white-space: nowrap;
  padding-left: 20px;
  padding-right: 20px;
}
.packages-table thead th.col-milestones { text-align: center; }
.packages-table .col-status {
  width: 100px;
  padding-left: 20px;
  padding-right: 28px;
}
.packages-table .col-action {
  width: 120px;
  padding-left: 20px;
}
.packages-programme-row td {
  padding: 0 !important;
  border-bottom: none !important;
  background: #f4f6f9;
}
.packages-programme-row:hover td { background: #f4f6f9 !important; }
.packages-programme-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px 10px;
}
.packages-programme-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.packages-programme-title {
  display: block;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
}
.packages-programme-count {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.packages-package-row td { border-top: none; }
.packages-package-row + .packages-programme-row td { padding-top: 8px; }
.pkg-programme-tag {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 10px;
  border-radius: 999px;
}
.packages-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.packages-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 420px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.packages-search:focus-within {
  border-color: rgba(201, 168, 76, 0.55);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}
.packages-search i {
  color: var(--muted);
  font-size: 14px;
  flex-shrink: 0;
}
.packages-search input {
  flex: 1;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--navy);
  outline: none;
  min-width: 0;
}
.packages-search input::placeholder { color: #9ca3af; }
.packages-search-meta {
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.packages-no-results {
  margin: 16px 0 0;
  padding: 20px;
  text-align: center;
  background: var(--cream);
  border-radius: 8px;
}
.packages-milestone-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.12);
  color: var(--navy);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pill-success {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.row-action-item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.pkg-modal-card {
  position: relative;
  width: min(640px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px -24px rgba(15, 30, 60, 0.45);
}
.pkg-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 0;
}
.pkg-modal-head h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 22px;
}
.pkg-modal-close {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  color: var(--muted);
  cursor: pointer;
}
.pkg-modal-close:hover { color: var(--navy); background: var(--cream); }
.pkg-modal-form { padding: 20px 24px 24px; }
.pkg-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.pkg-edit-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid, #1a2f5a) 100%);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 12px;
  padding: 22px 24px 0;
  margin-bottom: 20px;
  color: var(--white);
}
.pkg-edit-hero .pkg-back-link {
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 14px;
}
.pkg-edit-hero .pkg-back-link:hover { color: var(--gold); }
.pkg-edit-hero-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.pkg-edit-hero-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 8px;
  line-height: 1.15;
}
.pkg-edit-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.pkg-edit-hero .pkg-code-tag {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.25);
}
.pkg-edit-hero-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.pkg-edit-delete-form { margin: 0; }
.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-outline-light:hover {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}
.pkg-edit-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0 -24px;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}
.pkg-edit-stat {
  padding: 16px 24px;
  background: rgba(15, 30, 60, 0.35);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pkg-edit-stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.pkg-edit-stat-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pkg-edit-layout {
  display: block;
  margin-bottom: 16px;
}
.pkg-edit-form .pkg-form-section { margin-bottom: 14px; }
.pkg-edit-form-actions {
  padding-top: 4px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.pkg-edit-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pkg-edit-aside-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}
.pkg-edit-aside-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.pkg-edit-aside-value {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.pkg-edit-aside-value-sm {
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
}
.pkg-edit-aside-card p {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
}
.pkg-edit-aside-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 10px;
  font-size: 12px;
  color: var(--navy);
  line-height: 1.45;
}
.pkg-edit-aside-note i {
  color: var(--gold);
  margin-top: 2px;
  flex-shrink: 0;
}
.pkg-milestone-edit-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pkg-milestone-edit-title i { color: var(--gold); font-size: 14px; }
.pkg-milestones-read-table { margin-bottom: 0; }
.pkg-milestones-read-table .col-ref { width: 80px; }
.pkg-milestones-read-table .col-desc {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}
.pkg-milestones-edit-table input {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
}
.pkg-milestones-edit-table .input-order { width: 64px; }
.pkg-milestones-edit-table td {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  vertical-align: middle;
}
.pkg-edit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.pkg-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
  text-decoration: none;
}
.pkg-back-link:hover { color: var(--navy); }
.pkg-code-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}
.pkg-edit-panel h2,
.pkg-edit-summary h2 {
  font-size: 18px;
  margin-bottom: 16px;
}
.pkg-summary-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.pkg-summary-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
}
.pkg-summary-label { font-size: 12px; color: var(--muted); }
.pkg-summary-note { font-size: 13px; margin: 0 0 12px; }
.pkg-summary-warn {
  font-size: 13px;
  color: var(--navy);
  margin: 0;
  padding: 10px 12px;
  background: rgba(201, 168, 76, 0.1);
  border-radius: 8px;
}
.pkg-milestone-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.pkg-milestone-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--cream);
}
.pkg-milestone-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pkg-milestone-ref {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}
.pkg-milestone-card-head strong {
  flex: 1;
  font-size: 14px;
  color: var(--navy);
  min-width: 120px;
}
.pkg-milestone-amount {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.pkg-milestone-delete { margin: 0 0 0 auto; }
.pkg-milestone-meta {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
}
.pkg-milestones-empty {
  margin: 0 0 16px;
  padding: 16px;
  background: var(--cream);
  border-radius: 8px;
}
.pkg-milestone-table .input-order { width: 72px; }
.pkg-milestone-table .col-actions { width: 48px; text-align: center; }
.pkg-danger-zone {
  border-color: rgba(220, 38, 38, 0.2);
  background: rgba(254, 242, 242, 0.35);
}
.pkg-danger-zone h2 { color: #b91c1c; font-size: 18px; }
.pkg-danger-hint { margin-top: 10px; font-size: 12px; }
.btn-icon-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 8px;
  background: var(--white);
  color: #dc2626;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-icon-danger:hover:not(:disabled) {
  background: #fef2f2;
  border-color: rgba(220, 38, 38, 0.4);
}
.btn-icon-danger:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: 6px;
  background: #dc2626;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-danger:hover:not(:disabled) { background: #b91c1c; }
.btn-danger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.client-package-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.25);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}
.client-package-pill small {
  font-weight: 500;
  color: var(--muted);
}
.readonly-field {
  background: var(--cream);
  color: var(--muted);
  cursor: not-allowed;
}
.manage-row-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.manage-delete-form { margin-bottom: 12px; }
.manage-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}
.manage-subheading {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin: 16px 0 12px;
}

.milestone-filter-form { margin-top: 12px; }
.packages-toolbar-with-filters {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
}
.packages-toolbar-with-filters .packages-search {
  flex: 1 1 220px;
  max-width: 360px;
  align-self: flex-end;
}
.packages-toolbar-with-filters .packages-search-meta {
  align-self: flex-end;
  padding-bottom: 10px;
}
.payments-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}
.payments-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 150px;
}
.payments-filter-group label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.payments-filter-group select {
  min-width: 150px;
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  height: 42px;
}
.payments-filter-group select:focus {
  outline: none;
  border-color: rgba(201, 168, 76, 0.55);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}
.payments-filter-clear {
  align-self: flex-end;
  padding-bottom: 10px;
  white-space: nowrap;
}
.milestone-form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.milestone-field-wide { grid-column: span 2; }
.milestone-manage-card { margin-bottom: 16px; }
.milestone-admin-table { min-width: 960px; }

.milestone-report-panel { margin-bottom: 16px; }
.milestone-report-card { padding: 24px; }
.milestone-report-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}
.milestone-report-sub { font-size: var(--text-sm); color: var(--muted); margin-top: 4px; }
.milestone-report-note {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 16px 0 20px;
}
.milestone-table { min-width: 900px; }
.m-id {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
}
.m-name { font-weight: 500; }
.m-date, .m-deliverable { color: var(--muted); }
.m-amount { font-weight: 600; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.milestone-badge.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
}
.milestone-badge.done { background: #dcfce7; color: #166534; }
.milestone-badge.progress { background: #fef3c7; color: #92400e; }
.milestone-badge.pending { background: #dbeafe; color: #1e40af; }
.milestone-badge.upcoming { background: #f3f4f6; color: #6b7280; }

.milestone-template-table { min-width: 1080px; }
.milestone-template-table input {
  width: 100%;
  min-width: 88px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  font-size: var(--text-sm);
}
.doc-manage-table { min-width: 1040px; }
.doc-manage-table .col-status,
.doc-manage-table thead th.col-status {
  width: 168px;
  min-width: 168px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 16px;
}
.doc-manage-table .col-file,
.doc-manage-table thead th.col-file {
  width: 140px;
  min-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  padding-left: 12px;
  padding-right: 16px;
}
.doc-manage-table .col-status .pill,
.doc-manage-table .col-file .pill {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.template-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.action-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-approve, .btn-reject {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.btn-approve { background: #dcfce7; color: #166534; }
.btn-approve:hover { background: #bbf7d0; }
.btn-reject { background: #fee2e2; color: #991b1b; }
.btn-reject:hover { background: #fecaca; }
.pill-done { background: #dcfce7; color: #166534; }
.pill-progress { background: #fef3c7; color: #92400e; }
.pill-pending { background: #dbeafe; color: #1e40af; }
.bank-ref-code {
  display: inline-block;
  padding: 3px 8px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
button.btn-link {
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}
.btn-link:hover { color: var(--gold); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

.btn-sm { padding: 8px 14px; font-size: 12px; }

.hidden { display: none !important; }

.broadcast-panel { margin-bottom: 20px; }
.broadcast-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.broadcast-header h2 { margin-bottom: 4px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.broadcast-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.broadcast-form textarea,
.chat-compose textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  resize: vertical;
  min-height: 72px;
  outline: none;
}
.broadcast-form textarea:focus,
.chat-compose textarea:focus { border-color: var(--gold); }
.broadcast-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.form-status { margin-top: 12px; font-size: 13px; padding: 10px 12px; border-radius: 6px; }
.form-status.success { background: #dcfce7; color: #166534; }
.form-status.error { background: #fee2e2; color: #991b1b; }

.messages-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  min-height: 560px;
}
.client-picker { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.client-picker-head { padding: 16px; border-bottom: 1px solid var(--border); }
.client-picker-head h2 { font-size: 15px; margin-bottom: 12px; }
.client-select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  margin-bottom: 10px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}
.client-select:focus { outline: none; border-color: var(--gold); }
.client-picker-head input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
}
.client-list { overflow-y: auto; flex: 1; max-height: 520px; }
.client-list-empty { padding: 20px; }
.client-item {
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid #f0ebe0;
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}
.client-item:hover { background: #faf8f3; }
.client-item.active { background: rgba(201,168,76,.12); border-left: 3px solid var(--gold); }
.client-item-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 2px; }
.client-item strong { font-size: 14px; }
.client-ref { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.client-preview { display: block; font-size: 12px; color: #4b5563; line-height: 1.4; }
.client-time { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }
.unread-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-panel { display: flex; flex-direction: column; min-height: 560px; padding: 0; overflow: hidden; }
.chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  padding: 40px;
}
.chat-empty i { font-size: 40px; color: var(--gold); opacity: .6; }
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.chat-header-info { flex: 1; min-width: 0; }
.chat-header strong { display: block; font-size: 15px; }
.chat-header .muted { font-size: 12px; }

.chat-menu-wrap { position: relative; flex-shrink: 0; }
.chat-menu-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: border-color .15s, color .15s;
}
.chat-menu-btn:hover,
.chat-menu-btn[aria-expanded="true"] {
  border-color: var(--gold);
  color: var(--navy);
}
.chat-menu-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15,30,60,.12);
  padding: 6px;
  z-index: 20;
}
.chat-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.chat-menu-item:hover { background: #faf8f3; }
.chat-menu-item.danger { color: #991b1b; }
.chat-menu-item.danger:hover { background: #fee2e2; }
.chat-menu-item i { width: 16px; text-align: center; font-size: 13px; }
.chat-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.message-thread {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 420px;
  background: #faf8f3;
}
.chat-thread-empty { text-align: center; margin: auto; }
.chat-message { display: flex; gap: 10px; align-items: flex-start; }
.chat-message.outgoing { flex-direction: row-reverse; }
.chat-bubble-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.chat-bubble-avatar.admin { background: var(--navy); color: var(--gold); }
.chat-bubble-avatar.client { background: var(--gold); color: var(--navy); }
.chat-bubble {
  max-width: min(70%, 480px);
  padding: 11px 14px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.55;
  word-break: break-word;
}
.chat-message.incoming .chat-bubble {
  background: #fff;
  border: 1px solid var(--border);
  border-top-left-radius: 0;
}
.chat-message.outgoing .chat-bubble {
  background: var(--navy);
  color: rgba(255,255,255,.92);
  border-top-right-radius: 0;
}
.chat-meta { font-size: 10px; color: var(--muted); margin-top: 4px; }
.chat-message.outgoing .chat-meta { text-align: right; }
.chat-compose {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.chat-compose textarea { flex: 1; min-height: 44px; max-height: 120px; }
.chat-compose .btn-primary { width: auto; flex-shrink: 0; padding: 12px 18px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid #b89436;
  border-radius: 9px;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  box-shadow:
    0 1px 1px rgba(15, 30, 60, 0.08),
    0 4px 10px rgba(161, 124, 27, 0.18);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    filter 0.16s ease;
}
.btn-primary:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
  filter: none;
  transform: translateY(-1px);
  box-shadow:
    0 2px 2px rgba(15, 30, 60, 0.08),
    0 7px 16px rgba(15, 30, 60, 0.24);
}
.btn-primary:active {
  transform: translateY(0);
  filter: brightness(0.98);
  box-shadow: 0 2px 6px rgba(161, 124, 27, 0.18);
}
.btn-primary:focus-visible {
  outline: 3px solid rgba(201, 168, 76, 0.3);
  outline-offset: 3px;
}
.btn-primary:disabled,
.btn-primary[aria-disabled="true"] {
  opacity: 0.52;
  cursor: not-allowed;
  filter: grayscale(0.25);
  transform: none;
  box-shadow: none;
}
.btn-primary i {
  font-size: 0.92em;
}
.btn-primary.btn-sm {
  min-height: 38px;
  padding: 9px 15px;
  border-radius: 8px;
  font-size: 13px;
}

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    top: 0;
    height: 100dvh;
    max-height: 100dvh;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: block; }
  .sidebar-collapse { display: none; }
  html.sidebar-collapsed-pending,
  body.admin-body.sidebar-collapsed {
    --sidebar-width: 260px;
  }
  body.admin-body.sidebar-collapsed .sidebar-header { padding: 24px 20px 20px; align-items: flex-start; }
  body.admin-body.sidebar-collapsed .sidebar-logo { text-align: left; }
  body.admin-body.sidebar-collapsed .sidebar-logo-link { display: block; }
  body.admin-body.sidebar-collapsed .sidebar-site-logo {
    height: 108px;
    object-position: left center;
  }
  body.admin-body.sidebar-collapsed .sidebar-logo .sub,
  body.admin-body.sidebar-collapsed .nav-section-toggle,
  body.admin-body.sidebar-collapsed .nav-item-label {
    display: unset;
  }
  body.admin-body.sidebar-collapsed .nav-section-toggle { display: flex; }
  body.admin-body.sidebar-collapsed .nav-group.is-collapsed .nav-group-items { display: none; }
  body.admin-body.sidebar-collapsed .nav-item {
    justify-content: flex-start;
    padding: 12px 24px;
    border-left-width: 3px;
  }
  body.admin-body.sidebar-collapsed .nav-item.active { box-shadow: none; }
  body.admin-body.sidebar-collapsed .nav-badge {
    position: static;
    min-width: 20px;
    height: auto;
    padding: 2px 7px;
    font-size: 10px;
    border-radius: 10px;
  }
  body.admin-body.sidebar-collapsed .sidebar-footer {
    padding: 16px 24px;
    display: block;
  }
  body.admin-body.sidebar-collapsed .btn-logout { justify-content: flex-start; gap: 10px; }
  .menu-toggle { display: inline-flex; }
  .main {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
  }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .dash-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-stats-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .dash-chart-wide { grid-column: span 2; }
  .dash-charts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-two-col { grid-template-columns: 1fr; }
  .workstream-grid { grid-template-columns: 1fr; }
  .manage-row-grid { grid-template-columns: 1fr; }
  .milestone-form-grid { grid-template-columns: 1fr; }
  .milestone-field-wide { grid-column: auto; }
  .grid-2 { grid-template-columns: 1fr; }
  .messages-layout { grid-template-columns: 1fr; }
  .client-list { max-height: 280px; }
  .topbar-cycle { display: none; }
  .settings-layout { grid-template-columns: 1fr; }
  .doc-upload-grid { grid-template-columns: 1fr; }
  .package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pkg-stats-row { grid-template-columns: 1fr; }
  .pkg-edit-stat-row { grid-template-columns: 1fr; }
  .pkg-edit-hero-row { flex-direction: column; }
  .pkg-edit-hero-badges { flex-wrap: wrap; }
  .pkg-page-head { flex-direction: column; align-items: stretch; }
  .packages-toolbar { flex-direction: column; align-items: stretch; }
  .packages-search { max-width: none; }
}
@media (max-width: 768px) {
  .content { padding: 16px; }
  .dash-hero {
    padding: 18px 20px;
    flex-direction: column;
    align-items: stretch;
  }
  .dash-hero-meta {
    width: 100%;
    justify-content: flex-start;
  }
  .dash-hero-stat {
    flex: 1;
    min-width: 0;
  }
  .dash-charts-grid,
  .dash-charts-grid-2 {
    grid-template-columns: 1fr;
  }
  .dash-chart-wide { grid-column: auto; }
  .dash-chart-body-split {
    grid-template-columns: 1fr;
  }
  .dash-chart-wrap-pie {
    max-width: 200px;
    height: 180px;
  }
  .dash-chart-wrap-line { height: 200px; }
  .dash-chart-wrap-bar,
  .dash-chart-wrap-bar-h { height: 180px; }
  .dash-stat-card {
    padding: 16px;
  }
  .dash-stat-icon {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
  .settings-form-sticky-save {
    max-height: calc(100dvh - var(--topbar-height) - 32px);
  }
  .topbar { padding: 0 16px; }
  .topbar-meta { display: none; }
  .profile-trigger-identity { display: none; }
  .profile-dropdown { right: -8px; }
}
@media (max-width: 560px) {
  .stats-row { grid-template-columns: 1fr; }
  .dash-stats-grid,
  .dash-stats-grid-3 { grid-template-columns: 1fr; }
  .dash-tabs { gap: 4px; padding: 4px 4px 0; }
  .dash-tab { padding: 8px 12px; font-size: 12px; }
  .dash-analytics-head { flex-direction: column; align-items: flex-start; }
  .dash-chart-card { padding: 16px 18px; }
  .dash-chart-legend-item {
    grid-template-columns: 10px 1fr;
  }
  .dash-chart-legend-value {
    grid-column: 2;
    padding-left: 18px;
    font-size: 11px;
  }
  .deadline-item { flex-direction: column; align-items: flex-start; }
  .deadline-meta { text-align: left; }
  .package-grid { grid-template-columns: 1fr; }
}

/* ─── CLIENT MANAGE (modern accordion + forms) ─── */
.client-manage-page {
  --cm-radius: 12px;
  --cm-field-bg: #fff;
  --cm-field-border: #ddd4c4;
  --cm-field-focus: rgba(201, 168, 76, 0.35);
}
.client-manage-page .panel.manage-section,
.client-manage-page details.panel {
  padding: 0;
  overflow: hidden;
}
.client-manage-page .manage-section-summary {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px 16px;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(180deg, #fffefb 0%, #faf7f0 100%);
  border-bottom: 1px solid transparent;
}
.client-manage-page .manage-section-summary::-webkit-details-marker { display: none; }
.client-manage-page .manage-section[open] > .manage-section-summary {
  border-bottom-color: var(--border);
  background: #fff;
}
.client-manage-page .manage-section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  min-width: 0;
}
.client-manage-page .manage-section-title i {
  color: var(--gold);
  font-size: 16px;
}
.client-manage-page .manage-section-meta {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
.client-manage-page .manage-section-chevron {
  color: var(--muted);
  font-size: 12px;
  transition: transform 0.2s ease;
}
.client-manage-page .manage-section[open] > .manage-section-summary .manage-section-chevron {
  transform: rotate(180deg);
  color: var(--gold);
}
.client-manage-page .manage-section-body {
  padding: 18px 22px 22px;
}
.client-manage-page .manage-section-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.client-manage-page .manage-form .form-group label {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.client-manage-page .manage-form .form-group label.checkbox-label,
.client-manage-page .manage-form .form-group label.modern-check {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  margin-bottom: 0;
  font-weight: 500;
}
.client-manage-page .manage-form .form-group input:not([type="checkbox"]):not([type="radio"]),
.client-manage-page .manage-form .form-group textarea,
.client-manage-page .manage-form .select-wrap select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--cm-field-border);
  border-radius: 10px;
  background: var(--cm-field-bg);
  font: inherit;
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}
.client-manage-page .manage-form .form-group input:not([type="checkbox"]):not([type="radio"]):hover,
.client-manage-page .manage-form .form-group textarea:hover,
.client-manage-page .manage-form .select-wrap select:hover {
  border-color: #c9b896;
}
.client-manage-page .manage-form .form-group input:not([type="checkbox"]):not([type="radio"]):focus,
.client-manage-page .manage-form .form-group textarea:focus,
.client-manage-page .manage-form .select-wrap select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--cm-field-focus);
}
.client-manage-page .manage-form .form-group input:not([type="checkbox"]):not([type="radio"]):disabled,
.client-manage-page .manage-form .input-readonly,
.client-manage-page .manage-form .readonly-field {
  background: #f5f1e8;
  color: var(--muted);
  cursor: default;
  border-style: dashed;
}
.client-manage-page .select-wrap {
  position: relative;
}
.client-manage-page .select-wrap::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}
.client-manage-page .select-wrap select {
  padding-right: 36px;
  cursor: pointer;
  background-image: none;
}
.client-manage-page .manage-form-actions {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.client-manage-page .checkbox-label.modern-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--cm-field-border);
  border-radius: 10px;
  background: #fffefb;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  cursor: pointer;
}
.client-manage-page .offline-allocate-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}
.client-manage-page .offline-mode-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  height: auto;
}
.client-manage-page .offline-mode-option:has(input:checked) {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.28);
  background: #fff;
}
.client-manage-page .offline-mode-option strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
  margin-bottom: 2px;
}
.client-manage-page .offline-mode-option small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  white-space: normal;
}
@media (max-width: 720px) {
  .client-manage-page .offline-allocate-modes {
    grid-template-columns: 1fr;
  }
}
.client-manage-page .checkbox-label.modern-check span {
  flex: 1 1 auto;
  min-width: 0;
}
.client-manage-page .manage-form .form-group.checkbox-row .checkbox-label.modern-check input[type="checkbox"],
.client-manage-page .checkbox-label.modern-check input[type="checkbox"],
.client-manage-page .manage-form .form-group .checkbox-label.modern-check input[type="radio"],
.client-manage-page .checkbox-label.modern-check input[type="radio"] {
  appearance: auto;
  -webkit-appearance: auto;
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  flex: 0 0 18px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--gold);
  cursor: pointer;
}

.client-manage-page .manage-item-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.client-manage-page .manage-item-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.client-manage-page .manage-item-card[open] {
  border-color: rgba(201, 168, 76, 0.55);
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.12);
}
.client-manage-page .manage-item-summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  cursor: pointer;
  background: #fcfbf8;
}
.client-manage-page .manage-item-summary::-webkit-details-marker { display: none; }
.client-manage-page .manage-item-card[open] > .manage-item-summary {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.client-manage-page .manage-item-ref {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.12);
  border-radius: 6px;
  padding: 3px 8px;
  flex-shrink: 0;
}
.client-manage-page .manage-item-name {
  font-weight: 600;
  color: var(--navy);
  flex: 1 1 140px;
  min-width: 0;
}
.client-manage-page .manage-item-amount {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.client-manage-page .manage-item-due {
  font-size: 11px;
  color: #b45309;
  background: #fff7ed;
  border-radius: 999px;
  padding: 2px 8px;
}
.client-manage-page .manage-item-edit-icon {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.client-manage-page .manage-item-body {
  padding: 14px;
  background: #fff;
}
.client-manage-page .manage-item-body .manage-delete-form {
  margin-top: 8px;
  margin-bottom: 0;
}
.client-manage-page .manage-nested-add {
  margin-top: 16px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 0;
  background: #faf8f3;
}
.client-manage-page .manage-nested-add > summary {
  list-style: none;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.client-manage-page .manage-nested-add > summary::-webkit-details-marker { display: none; }
.client-manage-page .manage-nested-add > summary i { color: var(--gold); }
.client-manage-page .manage-nested-add[open] {
  padding: 0 14px 14px;
  border-style: solid;
  background: #fff;
}
.client-manage-page .manage-nested-add[open] > summary {
  padding-left: 0;
  padding-right: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.client-manage-page .engagement-new-cycle.manage-section {
  margin-top: 8px;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.client-manage-page .engagement-new-cycle .manage-section-summary {
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}
.client-manage-page .engagement-new-cycle .manage-section-body {
  padding-left: 0;
  padding-right: 0;
}
.client-manage-page .client-manage-split {
  align-items: start;
  margin-bottom: 20px;
}
.client-manage-page .client-manage-split > .manage-section {
  margin-bottom: 0;
}
@media (max-width: 900px) {
  .client-manage-page .manage-section-summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .client-manage-page .manage-section-meta {
    grid-column: 1;
    white-space: normal;
  }
  .client-manage-page .manage-section-chevron {
    grid-column: 2;
    grid-row: 1;
  }
}

/* ===== Docs manual (/docs) ===== */
.content:has(.docs-page) {
  padding: 0;
  max-width: none;
}
.docs-page {
  --docs-toc-width: 280px;
  --docs-ink: #0f1e3c;
  --docs-muted: #5c6470;
  --docs-line: #e8e0d2;
  --docs-surface: #fffefb;
  --docs-code-bg: #f4efe6;
  display: grid;
  grid-template-columns: var(--docs-toc-width) minmax(0, 1fr);
  min-height: calc(100vh - var(--topbar-height));
  background:
    linear-gradient(180deg, rgba(250, 248, 243, 0.95) 0%, #f7f3eb 100%);
}
.docs-toc {
  position: sticky;
  top: var(--topbar-height);
  align-self: start;
  height: calc(100vh - var(--topbar-height));
  overflow: auto;
  border-right: 1px solid var(--docs-line);
  background: var(--docs-surface);
  padding: 28px 0 40px;
  scrollbar-width: thin;
}
.docs-toc-head {
  padding: 0 22px 20px;
  border-bottom: 1px solid var(--docs-line);
  margin-bottom: 12px;
}
.docs-toc-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.docs-toc-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--docs-ink);
  line-height: 1.15;
  margin: 0 0 8px;
}
.docs-toc-sub {
  font-size: 13px;
  color: var(--docs-muted);
  line-height: 1.45;
  margin: 0 0 16px;
}
.docs-toc-search-wrap {
  position: relative;
}
.docs-toc-search-wrap > i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--docs-muted);
  font-size: 12px;
  pointer-events: none;
}
.docs-toc-search {
  width: 100%;
  padding: 10px 12px 10px 34px;
  border: 1px solid var(--docs-line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  color: var(--docs-ink);
}
.docs-toc-search:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.22);
}
.docs-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px 0;
}
.docs-toc-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--docs-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.docs-toc-link i {
  width: 14px;
  margin-top: 2px;
  text-align: center;
  font-size: 12px;
  opacity: 0.85;
  flex-shrink: 0;
}
.docs-toc-link:hover {
  background: rgba(15, 30, 60, 0.04);
  color: var(--docs-ink);
}
.docs-toc-link.active {
  background: rgba(201, 168, 76, 0.12);
  color: var(--docs-ink);
  border-left-color: var(--gold);
  font-weight: 600;
}
.docs-main {
  min-width: 0;
  padding: 40px 48px 80px;
  max-width: 880px;
}
.docs-hero {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--docs-line);
}
.docs-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}
.docs-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  color: var(--docs-ink);
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.docs-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--docs-muted);
  margin: 0 0 18px;
  max-width: 62ch;
}
.docs-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--docs-muted);
}
.docs-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.docs-hero-meta i { color: var(--gold); }
.docs-section {
  scroll-margin-top: calc(var(--topbar-height) + 24px);
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--docs-line);
}
.docs-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.docs-section > h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--docs-ink);
  line-height: 1.2;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}
.docs-section > h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--docs-ink);
  margin: 28px 0 10px;
  letter-spacing: 0.01em;
}
.docs-section p,
.docs-section li {
  font-size: 15px;
  line-height: 1.7;
  color: #2a3140;
}
.docs-section p { margin: 0 0 14px; }
.docs-section ul,
.docs-section ol {
  margin: 0 0 16px;
  padding-left: 1.35em;
}
.docs-section li { margin-bottom: 8px; }
.docs-section a {
  color: var(--navy-light);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(36, 61, 115, 0.28);
  text-underline-offset: 2px;
}
.docs-section a:hover {
  color: var(--navy);
  text-decoration-color: var(--gold);
}
.docs-section code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--docs-code-bg);
  border: 1px solid var(--docs-line);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--docs-ink);
}
.docs-callout {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--docs-line);
  background: #fff;
  border-left: 3px solid var(--gold);
  font-size: 14px;
  line-height: 1.55;
  color: #2a3140;
}
.docs-callout-info {
  background: #f7fafc;
  border-left-color: var(--navy-light);
}
.docs-callout-warn {
  background: #fff8f0;
  border-left-color: #c27a2c;
}
.docs-table-wrap {
  overflow-x: auto;
  margin: 16px 0 20px;
  border: 1px solid var(--docs-line);
  border-radius: 10px;
  background: #fff;
}
.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.docs-table th,
.docs-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--docs-line);
  vertical-align: top;
  line-height: 1.5;
}
.docs-table th {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--docs-muted);
  background: #faf7f1;
  font-weight: 700;
}
.docs-table tr:last-child td { border-bottom: none; }
.docs-footer-note {
  margin-top: 24px !important;
  font-size: 13px !important;
  color: var(--docs-muted) !important;
  font-style: italic;
}
@media (max-width: 980px) {
  .docs-page {
    grid-template-columns: 1fr;
  }
  .docs-toc {
    position: relative;
    top: 0;
    height: auto;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--docs-line);
    padding-bottom: 16px;
  }
  .docs-toc-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }
  .docs-main {
    padding: 28px 20px 64px;
  }
}
@media (max-width: 560px) {
  .docs-toc-nav {
    grid-template-columns: 1fr;
  }
}

/* ===== Munene centered confirm / alert dialog ===== */
body.munene-dialog-open { overflow: hidden; }
.munene-dialog {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.munene-dialog[hidden] { display: none !important; }
.munene-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 60, 0.55);
  backdrop-filter: blur(2px);
}
.munene-dialog-card {
  position: relative;
  z-index: 1;
  width: min(440px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(15, 30, 60, 0.28);
  overflow: hidden;
  animation: muneneDialogIn 0.18s ease-out;
}
@keyframes muneneDialogIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.munene-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 22px 10px;
}
.munene-dialog-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.munene-dialog-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}
.munene-dialog-close {
  border: none;
  background: transparent;
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  flex-shrink: 0;
}
.munene-dialog-close:hover {
  background: var(--cream);
  color: var(--navy);
}
.munene-dialog-body {
  padding: 4px 22px 8px;
}
.munene-dialog-message {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}
.munene-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 22px 22px;
}
.munene-dialog.is-danger .munene-dialog-eyebrow { color: #b45309; }
.munene-dialog .btn-danger,
button.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #991b1b;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.munene-dialog .btn-danger:hover,
button.btn-danger:hover {
  background: #7f1d1d;
}
