* { box-sizing: border-box; }
html { min-width: 0; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: #eef2f6; color: #0f172a; }
a { color: inherit; text-decoration: none; }

.login-page { min-height: 100vh; display: grid; place-items: center; background: #e8eef3; padding: 28px; }
.auth-shell { width: min(1040px, 100%); min-height: 640px; display: grid; grid-template-columns: 44% 56%; background: #fff; border: 1px solid #d9e2ea; border-radius: 8px; overflow: hidden; box-shadow: 0 24px 70px rgba(15,23,42,.18); }
.auth-shell-wide { width: min(1180px, 100%); grid-template-columns: 38% 62%; }
.auth-brand { position: relative; padding: 42px; background: linear-gradient(160deg, #0b1220 0%, #0f766e 100%); color: #fff; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.auth-logo { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); font-weight: 900; letter-spacing: .04em; margin-bottom: 24px; }
.auth-logo-img { width: 88px; height: 64px; object-fit: contain; margin-bottom: 22px; border-radius: 8px; background: rgba(255,255,255,.92); padding: 6px; }
.auth-kicker { display: block; color: #0f766e; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.auth-brand .auth-kicker { color: #99f6e4; }
.auth-brand h1 { margin: 0; font-size: 38px; line-height: 1.12; }
.auth-brand p { margin: 18px 0 0; color: #d9f7f2; line-height: 1.65; font-size: 16px; }
.auth-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 34px; }
.auth-points.stacked { grid-template-columns: 1fr; }
.auth-points div { padding: 14px; border-radius: 8px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.14); min-width: 0; }
.auth-points strong { display: block; font-size: 18px; }
.auth-points span { display: block; margin-top: 4px; color: #ccfbf1; font-size: 12px; font-weight: 700; line-height: 1.35; }
.auth-card { padding: 44px; align-self: center; min-width: 0; }
.auth-card.register-card { align-self: stretch; overflow-y: auto; }
.auth-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.company-mini { display: flex; align-items: center; gap: 10px; min-width: 0; color: #0f172a; }
.company-mini span { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; background: #0f766e; color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .04em; }
.company-mini img { width: 46px; height: 38px; object-fit: contain; flex: 0 0 auto; }
.company-mini strong { font-size: 14px; overflow-wrap: anywhere; }
.back-home { flex: 0 0 auto; color: #0f766e; font-size: 13px; font-weight: 900; }
.auth-card h2 { margin: 0 0 8px; color: #0f172a; font-size: 30px; line-height: 1.2; }
.auth-card p { margin: 0 0 24px; color: #64748b; line-height: 1.55; }
.auth-submit { width: 100%; min-height: 44px; margin-top: 4px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; color: #0f766e; font-weight: 900; }
.auth-links.single { justify-content: center; }
.auth-demo { margin-top: 22px; padding: 14px; border-radius: 8px; background: #f8fafc; border: 1px solid #e2e8f0; color: #475467; display: grid; gap: 5px; font-size: 13px; }
.auth-demo strong { color: #0f172a; margin-bottom: 2px; }
.login-card { width: 100%; max-width: 430px; background: #fff; border-radius: 8px; padding: 32px; box-shadow: 0 24px 70px rgba(0,0,0,.24); }
.login-help { margin: 18px 0 0 !important; }
.login-help a { color: #0f766e; font-weight: 800; }

.shell { display: flex; min-height: 100vh; }
.sidebar-backdrop, .menu-toggle, .sidebar-close { display: none; }
.sidebar {
  width: 292px;
  background: linear-gradient(180deg, #0b1220 0%, #111827 54%, #0e2924 100%);
  color: #e5e7eb;
  padding: 18px 14px;
  position: fixed;
  inset: 0 auto 0 0;
  overflow-y: auto;
  box-shadow: 10px 0 34px rgba(15,23,42,.22);
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid rgba(153,246,228,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}
.brand > div:last-child { min-width: 0; }
.brand-logo { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; background: #0f766e; color: #fff; font-size: 15px; letter-spacing: .04em; box-shadow: inset 0 -10px 20px rgba(0,0,0,.16); }
.brand-logo-img { width: 54px; height: 48px; flex: 0 0 auto; object-fit: contain; border-radius: 8px; background: rgba(255,255,255,.96); padding: 4px; }
.brand span { display: block; color: #99f6e4; font-size: 12px; font-weight: 700; margin-top: 4px; }

.nav-group { margin-bottom: 9px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.07); }
.nav-group:last-child { border-bottom: 0; }
.nav-heading {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  margin: 0;
  padding: 11px 12px;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  border-radius: 7px;
  background: rgba(255,255,255,.045);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-heading::-webkit-details-marker { display: none; }
.nav-heading::after { content: "+"; width: 22px; height: 22px; display: grid; place-items: center; color: #99f6e4; border-radius: 50%; background: rgba(153,246,228,.08); font-size: 16px; line-height: 1; }
.nav-group[open] .nav-heading { background: rgba(15,118,110,.30); color: #fff; }
.nav-group[open] .nav-heading::after { content: "-"; }
.nav-items { padding-top: 7px; }
.nav a {
  display: block;
  padding: 10px 12px 10px 16px;
  border-radius: 7px;
  margin-bottom: 4px;
  color: #d1d5db;
  border-left: 3px solid transparent;
  font-size: 14px;
  font-weight: 700;
}
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a.active { background: linear-gradient(90deg, #0f766e, #0d9488); color: #fff; border-left-color: #99f6e4; box-shadow: 0 10px 24px rgba(13,148,136,.22); }
.sidebar-note { margin-top: 22px; padding: 13px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.sidebar-note strong { display: block; font-size: 13px; }
.sidebar-note span { display: block; color: #99f6e4; font-size: 12px; margin-top: 4px; }

.main { margin-left: 292px; width: calc(100% - 292px); min-width: 0; }
.topbar {
  min-height: 76px;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid #dbe3ea;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(10px);
}
.topbar-title span { display: block; color: #64748b; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.topbar-title strong { display: block; color: #0f172a; font-size: 18px; margin-top: 3px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.profile-menu { position: relative; flex: 0 0 auto; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; }
button.user-chip { cursor: pointer; font: inherit; color: inherit; }
.user-chip strong { display: block; line-height: 1.1; }
.user-chip small { display: block; color: #0f766e; font-weight: 800; margin-top: 2px; }
.user-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: #0f172a; color: #fff; font-size: 12px; font-weight: 900; }
.profile-caret {
  width: 9px;
  height: 9px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(45deg);
  margin: -4px 2px 0 4px;
  flex: 0 0 auto;
}
.profile-menu.open .profile-caret { transform: rotate(225deg); margin-top: 3px; }
.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 250px;
  padding: 8px;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(15,23,42,.18);
  display: none;
  z-index: 30;
}
.profile-menu.open .profile-dropdown { display: block; }
.profile-dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 22px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid #dbe3ea;
  border-top: 1px solid #dbe3ea;
  transform: rotate(45deg);
}
.profile-dropdown-head { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid #eef2f6; margin-bottom: 6px; }
.profile-dropdown-head strong { display: block; line-height: 1.15; }
.profile-dropdown-head small { display: block; color: #0f766e; font-weight: 800; margin-top: 3px; }
.profile-dropdown a, .dropdown-logout {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 7px;
  padding: 10px 11px;
  background: transparent;
  color: #334155;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.profile-dropdown a:hover, .dropdown-logout:hover { background: #f1f5f9; color: #0f766e; }
.dropdown-logout { color: #b42318; border-top: 1px solid #eef2f6; margin-top: 6px; }
.role-pill { display: inline-block; padding: 5px 9px; border-radius: 999px; background: #ecfdf5; color: #0f766e; font-size: 12px; font-weight: 800; }

.content { padding: 32px; max-width: 1280px; margin: 0 auto; width: 100%; overflow: hidden; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page-kicker { display: block; color: #0f766e; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 7px; }
.page-title { margin: 0; font-size: 34px; line-height: 1.15; letter-spacing: 0; }
.hero-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
  border: 1px solid #d1fae5;
  border-left: 5px solid #0f766e;
  border-radius: 8px;
  padding: 20px 22px;
  margin-bottom: 20px;
  box-shadow: 0 12px 30px rgba(16,24,40,.06);
}
.hero-strip strong { font-size: 18px; }
.hero-strip p { margin: 8px 0 0; color: #475467; line-height: 1.55; }

.grid { display: grid; gap: 18px; }
.stats { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  background: #fff;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(15,23,42,.06);
  min-width: 0;
}
.card h2 { margin: 0 0 18px; font-size: 26px; }
.alert-card { border-left: 5px solid #dc2626; background: #fffafa; }
.alert-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.alert-head h2 { margin-bottom: 0; }
.accent-card { border-top: 4px solid #0f766e; display: flex; align-items: center; gap: 16px; }
.accent-card.green { border-top-color: #16a34a; }
.accent-card.blue { border-top-color: #2563eb; }
.accent-card.amber { border-top-color: #d97706; }
.metric-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; background: #ecfdf5; color: #0f766e; font-weight: 900; }
.metric-icon.green { background: #f0fdf4; color: #16a34a; }
.metric-icon.blue { background: #eff6ff; color: #2563eb; }
.metric-icon.amber { background: #fffbeb; color: #d97706; }
.stat-label { color: #64748b; font-size: 14px; margin-bottom: 7px; font-weight: 700; }
.stat-value { font-size: 34px; line-height: 1; font-weight: 900; color: #0f172a; }
.small-stat { font-size: 22px; }
.management-stats { margin: 18px 0; }
.management-list-card { margin-top: 18px; padding: 26px; }
.member-filter-bar {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.member-filter-bar .btn { align-self: end; }
.assignment-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}
.assignment-queue-card { padding: 24px; min-width: 0; }
.assignment-filter-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.assignment-filter-card .field { margin-bottom: 0; min-width: 0; }
.assignment-table-wrap { overflow-x: auto; }
.assignment-table { min-width: 980px; }
.assignment-table th, .assignment-table td {
  padding: 12px 14px;
  font-size: 13px;
}
.assignment-table td:nth-child(3),
.assignment-table td:nth-child(4),
.assignment-table td:nth-child(5) {
  white-space: normal;
  line-height: 1.35;
}
.assignment-manage-card {
  position: sticky;
  top: 112px;
  padding: 22px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}
.assignment-manage-card h2 { margin: 4px 0 8px; font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
.assignment-manage-card h3 { margin: 18px 0 6px; }
.assignment-case-list div { padding: 10px; }
.assignment-case-list strong { font-size: 12px; line-height: 1.35; }
.admin-command-hero { align-items: center; }
.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}
.latest-app-card { grid-column: 1 / -1; }
.ops-action-grid { display: grid; gap: 12px; }
.ops-action-grid a {
  display: block;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.ops-action-grid strong { display: block; color: #0f172a; font-size: 16px; }
.ops-action-grid span { display: block; margin-top: 4px; color: #64748b; font-size: 13px; }
.compact-table { min-width: 720px; }
.compact-table th, .compact-table td { padding: 11px 13px; font-size: 13px; }

.toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; align-items: end; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { color: #344054; font-size: 13px; font-weight: 700; }
input[type=text], input[type=number], select, textarea, .input { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; min-height: 40px; }
input[readonly] { background: #f8fafc; }
.pin-select { background: #fff; }
.btn { display: inline-block; border: 0; border-radius: 7px; padding: 10px 14px; background: #0f766e; color: #fff; font-weight: 800; cursor: pointer; }
.btn.secondary { background: #334155; }
.btn.light { background: #e5e7eb; color: #111827; }
.btn.success-action { background: #067647; }
.message { padding: 10px 12px; border-radius: 6px; background: #ecfdf3; color: #067647; margin-bottom: 16px; }
.error { background: #fef3f2; color: #b42318; }

.table-wrap { width: 100%; overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 8px; }
.table { width: 100%; min-width: 760px; border-collapse: collapse; background: #fff; }
.table th { text-align: left; background: #f8fafc; color: #334155; font-size: 13px; font-weight: 900; }
.table th, .table td { padding: 14px 16px; border-bottom: 1px solid #e5e7eb; vertical-align: middle; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #f8fafc; }
.grid-action { display: inline-block; margin-right: 8px; color: #0f766e; font-weight: 900; }
.grid-action.danger { color: #dc2626; }
.status { display: inline-block; padding: 6px 10px; border-radius: 999px; background: #eef4ff; color: #3538cd; font-size: 12px; font-weight: 900; }
.status.success { background: #ecfdf3; color: #067647; }
.status.warning { background: #fffbeb; color: #b54708; }
.status.info { background: #eff6ff; color: #175cd3; }
.status.danger { background: #fef3f2; color: #b42318; }
.status.neutral { background: #eef4ff; color: #3538cd; }
.two-col { grid-template-columns: 360px minmax(0, 1fr); align-items: start; }
.two-form-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.check-row { display: flex; gap: 8px; align-items: center; margin: 8px 0 18px; color: #344054; font-weight: 700; }
.field-help { display: block; margin-top: 6px; color: #64748b; font-size: 12px; line-height: 1.4; }
.profile-box h2 { margin-top: 0; }
.profile-box p { margin: 10px 0; color: #475467; }
.doc-list { display: grid; gap: 12px; }
.doc-list > div { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border: 1px solid #e5e7eb; border-radius: 8px; background: #f8fafc; }
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 18px; }
.timeline-step { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; color: #64748b; }
.timeline-step span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #e2e8f0; font-weight: 900; }
.timeline-step.done { border-color: #99f6e4; background: #ecfdf5; color: #0f766e; }
.timeline-step.done span { background: #0f766e; color: #fff; }
.muted { color: #64748b; line-height: 1.5; margin-top: -6px; }
.service-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; padding: 22px; border: 1px solid #d1fae5; border-left: 5px solid #0f766e; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(15,23,42,.06); }
.service-summary h2 { margin: 0 0 8px; font-size: 28px; }
.service-summary p { margin: 0; color: #475467; line-height: 1.55; }
.summary-price { min-width: 160px; padding: 14px; border-radius: 8px; background: #ecfdf5; text-align: right; }
.summary-price span { display: block; color: #0f766e; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.summary-price strong { display: block; color: #0f172a; font-size: 28px; margin-top: 4px; }
.doc-upload-list { display: grid; gap: 12px; }
.doc-upload-card { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: center; padding: 14px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; }
.doc-upload-card.uploaded { border-color: #99f6e4; background: #ecfdf5; }
.doc-upload-info strong { display: block; margin-bottom: 8px; }
.doc-preview { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: #475467; font-size: 13px; overflow-wrap: anywhere; }
.doc-preview img { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; border: 1px solid #cbd5e1; background: #fff; }
.doc-file-link { color: #0f766e; font-weight: 900; }
.doc-upload-control { display: grid; gap: 8px; }
.tracking-extra { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e2e8f0; }
.tracking-extra h3 { margin: 0 0 10px; font-size: 18px; }
.tracking-extra p { margin: 0; color: #475467; line-height: 1.6; }
.status-history-list { display: grid; gap: 10px; }
.status-history-item { padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; }
.status-history-item strong { display: block; color: #0f172a; font-size: 15px; }
.status-history-item p { margin: 5px 0; color: #334155; }
.status-history-item span { display: block; color: #64748b; font-size: 12px; font-weight: 800; }
.application-remark {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  background: #eef2ff;
}
.application-remark span {
  display: block;
  color: #4338ca;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.application-remark p { margin: 4px 0 0; color: #1e293b; font-size: 13px; line-height: 1.45; }
.manage-remark { margin: 12px 0 16px; }
.dashboard-remark { margin-top: 0; }
.customer-services-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 22px;
  padding: 26px;
  border: 1px solid #ccfbf1;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15,118,110,.95), rgba(15,23,42,.96)),
    #0f766e;
  color: #fff;
  box-shadow: 0 18px 42px rgba(15,23,42,.16);
}
.customer-services-copy { min-width: 0; }
.customer-services-copy .page-kicker { color: #99f6e4; }
.customer-services-copy h1 { margin: 0; max-width: 760px; font-size: 34px; line-height: 1.12; letter-spacing: 0; }
.customer-services-copy p { max-width: 760px; margin: 14px 0 0; color: #d9f7f2; line-height: 1.65; }
.customer-service-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 160px)); gap: 12px; margin-top: 22px; }
.customer-service-stats div { padding: 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(255,255,255,.10); }
.customer-service-stats strong { display: block; font-size: 24px; line-height: 1; }
.customer-service-stats span { display: block; margin-top: 6px; color: #ccfbf1; font-size: 12px; font-weight: 800; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 24px; }
.report-wide { grid-column: 1 / -1; }
.report-filter-card { margin: 20px 0; }
.report-grid .table { min-width: 0; }
.report-grid .compact-table { min-width: 0; }
.report-grid .table th,
.report-grid .table td { white-space: normal; }
.report-wide .compact-table { min-width: 720px; }
.report-wide .table th,
.report-wide .table td { white-space: nowrap; }
.staff-workbench { grid-template-columns: minmax(0, 1fr) 360px; }
.staff-table td:first-child,
.staff-table td:nth-child(5) { white-space: normal; line-height: 1.35; }
.staff-manage-card .check-list { max-height: 230px; overflow-y: auto; padding: 10px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; }
.franchise-partner-table td:nth-child(8) { white-space: normal; min-width: 260px; line-height: 1.35; }
.franchise-partner-table td:first-child { white-space: normal; min-width: 180px; }
.reset-warning { border-color: #fecaca; background: linear-gradient(135deg, #fff 0%, #fff7ed 100%); }
.reset-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; margin-top: 20px; }
.reset-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; margin-top: 12px; }
.reset-option.locked { display: block; border-color: #fecaca; background: #fff7ed; }
.reset-option strong { display: block; color: #0f172a; }
.reset-option span { display: block; margin-top: 4px; color: #64748b; font-size: 13px; line-height: 1.45; }
.reset-confirm-card { position: sticky; top: 112px; }
.reset-preserve-list { margin: 8px 0 0; padding-left: 18px; color: #475467; line-height: 1.8; }
.btn.danger { background: #b42318; }
.customer-services-panel { padding: 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(255,255,255,.10); display: grid; gap: 10px; align-content: center; }
.customer-services-panel strong { font-size: 18px; }
.customer-services-panel span { color: #d9f7f2; font-weight: 800; }
.customer-services-panel a { margin-top: 4px; padding: 10px 12px; border-radius: 7px; background: #fff; color: #0f766e; font-weight: 900; text-align: center; }
.customer-service-browser { display: grid; gap: 16px; }
.service-search-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15,23,42,.06);
}
.service-search-card .field { margin-bottom: 0; }
.service-search-input { min-height: 46px !important; font-size: 15px; }
.service-category-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px; }
.service-category-strip span { flex: 0 0 auto; padding: 9px 12px; border: 1px solid #dbe3ea; border-radius: 999px; background: #fff; color: #334155; font-size: 13px; font-weight: 900; box-shadow: 0 8px 18px rgba(15,23,42,.04); }
.service-category-strip b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 6px; border-radius: 999px; background: #ecfdf5; color: #0f766e; font-size: 12px; }
.modern-service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.modern-service-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 20px;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15,23,42,.07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.modern-service-card:hover { transform: translateY(-3px); border-color: #99f6e4; box-shadow: 0 20px 46px rgba(15,23,42,.12); }
.service-card-topline { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
.service-category-pill { max-width: 65%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 7px 9px; border-radius: 999px; background: #ecfdf5; color: #0f766e; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.service-fee { color: #0f172a; font-size: 20px; font-weight: 900; white-space: nowrap; }
.modern-service-card h2 { margin: 0; font-size: 22px; line-height: 1.2; }
.modern-service-card p { margin: 10px 0 16px; color: #64748b; line-height: 1.55; }
.required-docs { margin-top: auto; padding-top: 12px; border-top: 1px solid #eef2f6; }
.required-docs strong { display: block; margin-bottom: 9px; color: #344054; font-size: 13px; }
.required-docs div { display: flex; flex-wrap: wrap; gap: 7px; }
.doc-chip { display: inline-flex; max-width: 100%; padding: 6px 8px; border-radius: 999px; background: #f8fafc; border: 1px solid #e2e8f0; color: #475467; font-size: 12px; font-weight: 800; }
.service-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.service-card-footer span { color: #0f766e; font-size: 12px; font-weight: 900; line-height: 1.35; }
.service-card-footer .btn { flex: 0 0 auto; }
.empty-state { padding: 24px; border: 1px dashed #cbd5e1; border-radius: 8px; background: #fff; text-align: center; color: #64748b; }
.empty-state strong { display: block; color: #0f172a; font-size: 20px; margin-bottom: 6px; }
.customer-page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
  padding: 26px;
  border: 1px solid #d1fae5;
  border-left: 5px solid #0f766e;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
  box-shadow: 0 14px 34px rgba(15,23,42,.08);
}
.customer-page-hero.compact { padding: 22px; }
.customer-page-hero h1 { margin: 0; color: #0f172a; font-size: 34px; line-height: 1.15; letter-spacing: 0; }
.customer-page-hero p { max-width: 760px; margin: 10px 0 0; color: #475467; line-height: 1.6; }
.hero-actions-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.customer-hero-card { min-width: 260px; padding: 18px; border-radius: 8px; background: #0f172a; color: #fff; display: grid; gap: 9px; box-shadow: 0 18px 38px rgba(15,23,42,.18); }
.customer-hero-card strong { font-size: 18px; }
.customer-hero-card span { color: #ccfbf1; font-weight: 800; }
.customer-stat-grid .card { min-height: 116px; }
.modern-form-card { border-top: 4px solid #0f766e; }
.modern-form-card h2 { margin-bottom: 8px; }
.application-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.application-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 20px;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15,23,42,.07);
}
.application-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.app-no { display: inline-block; margin-bottom: 8px; color: #0f766e; font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.application-card h2 { margin: 0; font-size: 22px; line-height: 1.2; }
.app-status.success { background: #ecfdf3; color: #067647; }
.app-status.warning { background: #fffbeb; color: #b54708; }
.app-status.info { background: #eff6ff; color: #175cd3; }
.app-status.danger { background: #fef3f2; color: #b42318; }
.app-status.neutral { background: #eef4ff; color: #3538cd; }
.application-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.application-meta div { padding: 12px; border-radius: 8px; background: #f8fafc; border: 1px solid #eef2f6; min-width: 0; }
.application-meta span { display: block; color: #64748b; font-size: 11px; font-weight: 900; text-transform: uppercase; margin-bottom: 5px; }
.application-meta strong { display: block; overflow: hidden; text-overflow: ellipsis; color: #0f172a; font-size: 13px; line-height: 1.35; }
.mini-timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(68px, 1fr)); gap: 8px; margin-top: auto; }
.mini-timeline span { display: grid; gap: 6px; justify-items: center; color: #94a3b8; font-size: 11px; font-weight: 900; text-align: center; }
.mini-timeline b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #e2e8f0; color: #64748b; }
.mini-timeline span.done { color: #0f766e; }
.mini-timeline span.done b { background: #0f766e; color: #fff; }
.application-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tracking-card { margin-top: 20px; padding: 22px; border: 1px solid #d1fae5; border-radius: 8px; background: #fff; box-shadow: 0 16px 38px rgba(15,23,42,.08); }
.tracking-card h2 { margin: 0 0 14px; font-size: 28px; }
.tracking-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 18px; }
.tracking-summary div { padding: 13px; border-radius: 8px; background: #f8fafc; border: 1px solid #eef2f6; }
.tracking-summary span { display: block; color: #64748b; font-size: 11px; font-weight: 900; text-transform: uppercase; margin-bottom: 5px; }
.tracking-summary strong { display: block; color: #0f172a; overflow-wrap: anywhere; }
.customer-empty { display: grid; justify-items: center; gap: 10px; }
.customer-empty .btn { margin-top: 4px; }
.document-locker { display: grid; gap: 16px; }
.document-locker-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.document-locker-head h2 { margin-bottom: 8px; }
.document-search { box-shadow: none; background: #f8fafc; }
.document-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.document-card {
  display: grid;
  grid-template-rows: 150px minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
}
.document-thumb { display: grid; place-items: center; background: linear-gradient(135deg, #f8fafc, #ecfdf5); border-bottom: 1px solid #eef2f6; }
.document-thumb.image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.document-thumb.file span { width: 78px; height: 78px; display: grid; place-items: center; border-radius: 8px; background: #0f172a; color: #fff; font-size: 18px; font-weight: 900; letter-spacing: .04em; box-shadow: 0 18px 34px rgba(15,23,42,.20); }
.document-info { padding: 16px; min-width: 0; }
.doc-type { display: inline-block; margin-bottom: 9px; padding: 5px 8px; border-radius: 999px; background: #ecfdf5; color: #0f766e; font-size: 11px; font-weight: 900; }
.document-info h3 { margin: 0; color: #0f172a; font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }
.document-info p { margin: 8px 0 0; color: #64748b; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.document-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.document-meta span { padding: 10px; border-radius: 8px; background: #f8fafc; border: 1px solid #eef2f6; color: #475467; font-size: 12px; font-weight: 800; }
.document-meta b { display: block; margin-bottom: 4px; color: #64748b; font-size: 10px; text-transform: uppercase; }
.document-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px 16px; }
.document-actions .btn { text-align: center; }
.application-doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; margin-top: 18px; }
.app-doc-stats { margin-bottom: 0; }
.app-doc-list { display: grid; gap: 12px; margin-top: 16px; }
.app-doc-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 230px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.app-doc-row.uploaded { border-color: #99f6e4; background: #f0fdfa; }
.app-doc-row.missing { border-color: #fed7aa; background: #fff7ed; }
.app-doc-preview {
  height: 92px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dbe3ea;
  color: #0f766e;
  font-weight: 900;
}
.app-doc-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-doc-title-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.app-doc-title-row h3 { margin: 4px 0 0; font-size: 18px; line-height: 1.25; }
.app-doc-main p { margin: 8px 0; color: #475467; overflow-wrap: anywhere; }
.app-doc-upload { display: grid; gap: 8px; }
.compact-actions { padding: 0; margin-top: 10px; }
.additional-doc-list { display: grid; gap: 10px; margin-top: 12px; }
.additional-doc-item { padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; }
.additional-doc-item strong { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.additional-doc-item p { margin: 5px 0 0; color: #64748b; font-size: 13px; }
.franchise-dashboard-layout { margin-top: 20px; }
.franchise-assignment-list { display: grid; gap: 12px; }
.franchise-assignment-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.franchise-assignment-card h3 { margin: 4px 0 0; font-size: 19px; line-height: 1.25; }
.franchise-assignment-card p { margin: 7px 0 0; color: #64748b; font-size: 13px; }
.franchise-document-section { margin: 18px 0 22px; padding-top: 16px; border-top: 1px solid #e2e8f0; }
.franchise-document-section h3, .fulfillment-box h3 { margin: 4px 0 8px; font-size: 20px; }
.franchise-document-gallery { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.compact-document-card { grid-template-rows: 112px minmax(0, 1fr) auto; }
.compact-document-card .document-info { padding: 13px; }
.compact-document-card .document-info h3 { font-size: 17px; }
.compact-document-card .document-meta { grid-template-columns: 1fr; gap: 6px; }
.fulfillment-box {
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.fulfillment-box .btn { width: 100%; margin-top: 8px; text-align: center; }
.franchise-filter-bar {
  display: grid;
  grid-template-columns: 190px 150px 150px minmax(220px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.franchise-filter-bar .field { margin-bottom: 0; }
.franchise-filter-bar .btn { white-space: nowrap; }
.franchise-status-update { margin: 18px 0 22px; }
.status-update-bar {
  grid-template-columns: 240px 170px minmax(280px, 1fr) auto;
  align-items: end;
}
.status-note-field textarea {
  min-height: 82px;
  resize: vertical;
}
.filter-summary {
  margin: 8px 0 14px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}
.franchise-case-card { padding: 26px; }
.franchise-case-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e2e8f0;
}
.franchise-case-head h2 { margin: 4px 0 6px; font-size: 28px; line-height: 1.2; }
.franchise-case-head p { margin: 0; color: #64748b; line-height: 1.5; max-width: 760px; }
.franchise-case-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) repeat(3, minmax(220px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.franchise-case-grid .wide { grid-column: span 2; }
.franchise-case-grid > div {
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.franchise-case-grid > div span { display: block; color: #64748b; font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.franchise-case-grid > div strong { display: block; margin-top: 5px; color: #0f172a; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.kyc-doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.kyc-doc { display: block; padding: 16px; border: 1px solid #cbd5e1; border-radius: 8px; background: #f8fafc; color: #0f766e; font-weight: 900; text-align: center; }
.btn.danger, .alert.danger { background: #dc2626; color: #fff; }
.review-panel { margin-top: 22px; }
.franchise-info-card {
  padding: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.customer-primary-card { background: #f0fdfa; border-color: #99f6e4; }
.franchise-info-card h3 { margin: 5px 0 12px; font-size: 22px; line-height: 1.2; }
.franchise-info-card p { margin: 8px 0 0; color: #334155; line-height: 1.55; overflow-wrap: anywhere; }
.customer-note-card { grid-column: 1 / -1; background: #eef2ff; border-color: #c7d2fe; }
.customer-note-card p { color: #1e293b; font-weight: 700; }
.case-info-list { display: grid; gap: 8px; }
.case-info-list div { padding: 9px; border-radius: 8px; background: #fff; border: 1px solid #eef2f6; }
.case-info-list span { display: block; color: #64748b; font-size: 10px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.case-info-list strong { display: block; margin-top: 3px; color: #0f172a; font-size: 13px; overflow-wrap: anywhere; }
.application-chat-shell { padding: 0; overflow: hidden; }
.chat-thread {
  min-height: 420px;
  max-height: 62vh;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
  background: #f8fafc;
}
.chat-message { display: flex; }
.chat-message.mine { justify-content: flex-end; }
.chat-message.theirs { justify-content: flex-start; }
.chat-bubble {
  width: min(680px, 82%);
  padding: 13px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
}
.chat-message.mine .chat-bubble { background: #ecfdf5; border-color: #99f6e4; }
.chat-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.chat-meta strong { color: #0f172a; }
.chat-meta span { color: #64748b; font-size: 12px; font-weight: 800; }
.chat-bubble p { margin: 0; color: #1e293b; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-attachment {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  border: 1px solid #dbe3ea;
}
.chat-attachment span { flex: 1 1 220px; color: #334155; font-weight: 900; overflow-wrap: anywhere; }
.chat-attachment a { color: #0f766e; font-weight: 900; }
.chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.chat-compose .field { margin-bottom: 0; }
.dashboard-hero { padding: 22px; align-items: stretch; }
.dashboard-hero h1 { font-size: 28px; max-width: 620px; }
.dashboard-hero p { font-size: 15px; max-width: 680px; }
.dashboard-hero .btn { padding: 9px 12px; font-size: 13px; }
.dashboard-hero .customer-hero-card { min-width: 260px; align-content: center; }
.customer-hero-card a { margin-top: 6px; padding: 9px 11px; border-radius: 7px; background: #fff; color: #0f766e; font-weight: 900; text-align: center; }
.customer-stat-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 18px; }
.customer-stat-grid .card { min-height: 96px; padding: 16px; }
.customer-stat-grid .metric-icon { width: 42px; height: 42px; }
.customer-stat-grid .stat-value { font-size: 28px; }
.customer-stat-grid .small-stat { font-size: 18px; }
.dashboard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; margin-top: 18px; }
.section-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.section-title-row h2 { margin: 0; font-size: 22px; }
.dashboard-request-list { display: grid; gap: 12px; }
.dashboard-request-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 14px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; }
.dashboard-request-card h3 { margin: 0; font-size: 17px; line-height: 1.25; }
.dashboard-request-card p { margin: 7px 0 0; color: #64748b; font-size: 13px; line-height: 1.35; }
.dashboard-mini-timeline { grid-column: 1 / -1; margin-top: 0; }
.dashboard-mini-timeline b { width: 24px; height: 24px; font-size: 12px; }
.dashboard-request-actions { grid-column: 1 / -1; display: flex; gap: 10px; }
.dashboard-request-actions .btn { padding: 8px 11px; font-size: 13px; }
.dashboard-side-stack { display: grid; gap: 18px; }
.dashboard-big-number { margin: 8px 0; color: #0f172a; font-size: 42px; line-height: 1; font-weight: 900; }
.dashboard-delivery-list { display: grid; gap: 10px; }
.dashboard-delivery-list div { padding: 11px; border-radius: 8px; background: #f8fafc; border: 1px solid #eef2f6; }
.dashboard-delivery-list strong { display: block; margin-bottom: 5px; }
.dashboard-delivery-list span { color: #64748b; font-size: 13px; line-height: 1.35; }
.quick-link-list { display: grid; gap: 8px; margin-top: 12px; }
.quick-link-list a { padding: 10px 11px; border-radius: 7px; background: #f8fafc; border: 1px solid #eef2f6; color: #0f766e; font-weight: 900; }

@media (max-width: 1000px) {
  .login-page { padding: 18px; align-items: start; }
  .auth-shell, .auth-shell-wide { grid-template-columns: 1fr; min-height: 0; }
  .auth-brand { padding: 30px; }
  .auth-brand h1 { font-size: 30px; }
  .auth-points { grid-template-columns: 1fr; }
  .auth-card { padding: 30px; }
  body.sidebar-open { overflow: hidden; }
  .sidebar {
    position: fixed;
    width: min(330px, 88vw);
    transform: translateX(-105%);
    transition: transform .22s ease;
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.52);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
    z-index: 18;
  }
  body.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .sidebar-close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-left: auto;
    border: 1px solid rgba(153,246,228,.18);
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
  }
  .shell { display: block; }
  .main { margin-left: 0; width: 100%; }
  .topbar { position: sticky; top: 0; padding: 10px 12px; align-items: center; gap: 10px; }
  .menu-toggle {
    display: inline-grid;
    place-items: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15,23,42,.08);
    cursor: pointer;
  }
  .menu-toggle span {
    width: 20px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: #0f172a;
  }
  .topbar-title { min-width: 0; }
  .topbar-title span { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar-title strong { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar-actions { margin-left: auto; }
  .content { padding: 20px; }
  .stats, .two-col, .customer-services-hero { grid-template-columns: 1fr; }
  .customer-page-hero { display: block; }
  .customer-page-hero .btn, .customer-page-hero .status { margin-top: 14px; }
  .dashboard-layout, .application-doc-layout, .assignment-workbench, .admin-dashboard-grid, .report-grid, .reset-layout { grid-template-columns: 1fr; }
  .app-doc-row { grid-template-columns: 100px minmax(0, 1fr); }
  .app-doc-upload { grid-column: 1 / -1; }
  .franchise-assignment-card { grid-template-columns: 1fr; }
  .assignment-filter-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .franchise-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .franchise-case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chat-compose { grid-template-columns: 1fr; }
  .customer-service-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .page-heading, .hero-strip { display: block; }
  .topbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; }
  .topbar-actions { display: flex; margin-top: 0; }
  .user-chip { margin-bottom: 0; }
  .profile-trigger { width: 42px; height: 42px; justify-content: center; padding: 0; }
  .profile-trigger > span:not(.user-avatar) { display: none; }
  .profile-dropdown { position: fixed; top: 62px; right: 10px; width: min(290px, calc(100vw - 20px)); }
  .profile-dropdown::before { right: 18px; }
  .page-title { font-size: 26px; }
  .auth-card h2 { font-size: 26px; }
  .auth-card-top { align-items: flex-start; }
  .auth-links { display: grid; text-align: center; }
  .two-form-cols { grid-template-columns: 1fr; }
  .hero-strip .status { margin-top: 14px; }
  .service-summary, .doc-upload-card { display: block; }
  .summary-price { margin-top: 14px; text-align: left; }
  .doc-upload-control { margin-top: 12px; }
  .customer-services-hero { padding: 20px; }
  .customer-services-copy h1 { font-size: 28px; }
  .customer-service-stats, .service-search-card { grid-template-columns: 1fr; }
  .customer-page-hero { padding: 20px; }
  .customer-page-hero h1 { font-size: 28px; }
  .dashboard-hero h1 { font-size: 24px; }
  .dashboard-request-card { grid-template-columns: 1fr; }
  .dashboard-request-actions { display: grid; }
  .dashboard-request-actions .btn { width: 100%; text-align: center; }
  .application-card-grid { grid-template-columns: 1fr; }
  .application-meta, .tracking-summary { grid-template-columns: 1fr; }
  .application-actions { display: grid; }
  .application-actions .btn { width: 100%; text-align: center; }
  .document-locker-head { display: block; }
  .document-locker-head .status { margin-top: 10px; }
  .app-doc-row { grid-template-columns: 1fr; }
  .app-doc-preview { height: 150px; }
  .app-doc-title-row { display: block; }
  .app-doc-title-row .status { margin-top: 8px; }
  .franchise-document-gallery { grid-template-columns: 1fr; }
  .franchise-case-card { padding: 18px; }
  .franchise-case-head { display: block; }
  .franchise-case-head .status { margin-top: 10px; }
  .franchise-filter-bar { grid-template-columns: 1fr; }
  .assignment-manage-card { position: static; }
  .assignment-filter-card { grid-template-columns: 1fr; }
  .franchise-filter-bar .btn { width: 100%; text-align: center; }
  .franchise-case-grid { grid-template-columns: 1fr; }
  .chat-bubble { width: 100%; }
  .chat-meta { display: block; }
  .chat-meta span { display: block; margin-top: 4px; }
  .service-card-footer { display: grid; }
  .service-card-footer .btn { width: 100%; text-align: center; }
}
