:root {
  --blue: #04243b;
  --blue-2: #0b3554;
  --gold: #ca964d;
  --gold-soft: #f4eadb;
  --paper: #ffffff;
  --surface: #f5f7fa;
  --line: #e3e8ee;
  --text: #11324a;
  --muted: #5c7082;
  --green: #1f8a4c;
  --red: #b42318;
  --amber: #b86b00;
  --shadow: 0 16px 38px rgba(4, 36, 59, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: var(--text);
  background: var(--surface);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
a,
input,
select,
textarea {
  min-width: 0;
}

.is-hidden {
  display: none !important;
}

.login-screen {
  display: grid;
  grid-template-columns: minmax(420px, 46vw) minmax(0, 54vw);
  min-height: 100vh;
  background:
    linear-gradient(90deg, #fff 0%, #fff 46%, rgba(4, 36, 59, 0.92) 46%, rgba(4, 36, 59, 0.98) 100%),
    url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1400&q=70") center/cover;
}

.login-brand {
  position: absolute;
  top: 28px;
  left: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-brand strong,
.login-brand small {
  display: block;
}

.login-brand strong {
  color: var(--blue);
}

.login-brand small {
  margin-top: 4px;
  color: var(--muted);
}

.login-card {
  align-self: center;
  width: min(430px, calc(100% - 72px));
  margin: 86px auto 40px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin-bottom: 10px;
  font-size: 34px;
}

.login-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.login-form .primary-btn {
  width: 100%;
}

.demo-access {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 13px;
  border-radius: 8px;
  background: var(--surface);
}

.demo-access strong {
  color: var(--blue);
}

.demo-access span {
  color: var(--muted);
  font-size: 14px;
}

.login-side {
  align-self: center;
  justify-self: center;
  width: min(620px, calc(100% - 72px));
  padding: 40px 0;
  color: #fff;
}

.login-side h2 {
  max-width: 620px;
  color: #fff;
  font-size: 32px;
  line-height: 1.18;
}

.login-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.login-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
  font-size: 14px;
}

.login-benefits svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 22px;
  color: #fff;
  background: var(--blue);
}

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 10px;
  color: var(--blue);
  background: var(--gold);
  font-weight: 700;
}

.brand-mark.small {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 13px;
}

.brand strong,
.profile strong,
.sidebar-panel strong {
  display: block;
}

.brand small,
.sidebar-panel small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.35;
}

.nav-list {
  display: grid;
  gap: 7px;
}

.nav-item,
.role-btn,
.primary-btn,
.secondary-btn,
.ghost-btn,
.icon-btn {
  border: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 13px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  text-align: left;
}

.nav-item svg,
.primary-btn svg,
.secondary-btn svg,
.ghost-btn svg,
.icon-btn svg,
.search-box svg,
.metric-card svg,
.upload-box svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.nav-item:hover,
.nav-item.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.sidebar-panel {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.status-dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: #35d07f;
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 22px 26px 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  color: var(--blue);
  font-size: 30px;
  line-height: 1.1;
}

h2 {
  color: var(--blue);
  font-size: 30px;
  line-height: 1.16;
}

h3 {
  margin-bottom: 0;
  color: var(--blue);
  font-size: 21px;
}

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

.icon-btn {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: var(--blue);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 10px;
  color: #fff;
  background: var(--red);
  font-size: 11px;
  line-height: 18px;
}

.notifications-popover {
  position: absolute;
  top: 74px;
  right: 220px;
  z-index: 35;
  width: 340px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.notifications-popover.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.popover-header {
  padding: 4px 4px 10px;
  border-bottom: 1px solid var(--line);
}

.popover-header strong,
.popover-header small {
  display: block;
}

.popover-header strong {
  color: var(--blue);
}

.popover-header small {
  margin-top: 3px;
  color: var(--muted);
}

.notification-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.notification-list button {
  display: grid;
  gap: 6px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  color: var(--text);
  background: var(--surface);
  text-align: left;
}

.notification-list button:hover {
  border-color: rgba(202, 150, 77, 0.65);
  background: #fff;
}

.notification-list strong {
  color: var(--blue);
}

.notification-list small {
  color: var(--muted);
  line-height: 1.35;
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  text-align: left;
}

.profile span,
.user-list span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--blue-2);
  font-size: 12px;
  font-weight: 700;
}

.profile small {
  color: var(--muted);
}

.profile svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.official-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 7px 10px;
  border: 1px solid rgba(202, 150, 77, 0.35);
  border-radius: 8px;
  color: var(--blue);
  background: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(4, 36, 59, 0.05);
}

.official-link strong,
.official-link small {
  display: block;
}

.official-link small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.official-link svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.view {
  display: none;
  min-width: 0;
}

.view.is-visible {
  display: block;
}

.hero-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 210px;
  margin-bottom: 18px;
  padding: 30px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(4, 36, 59, 0.96), rgba(11, 53, 84, 0.78)),
    url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1400&q=70") center/cover;
  box-shadow: var(--shadow);
}

.hero-band h2,
.hero-band p {
  max-width: 720px;
  color: #fff;
}

.hero-band h2 {
  margin-bottom: 12px;
}

.hero-band p:not(.eyebrow) {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.metrics-grid,
.content-grid,
.admin-layout,
.form-grid {
  display: grid;
  gap: 16px;
}

.metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.dashboard-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.dashboard-filters h3 {
  font-size: 18px;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--blue);
  background: #fff;
  font-weight: 700;
}

.filter-chip.is-active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.metric-card,
.panel,
.form-panel,
.kanban-column,
.doc-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.metric-card {
  padding: 18px;
}

.metric-card span {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 8px;
  color: var(--gold);
  background: var(--gold-soft);
}

.metric-card small,
.participation-summary small,
table th,
.card-meta,
.doc-card small {
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin-top: 7px;
  color: var(--blue);
  font-size: 27px;
}

.content-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.panel,
.form-panel {
  padding: 20px;
}

.panel-note {
  max-width: 820px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.panel-header,
.toolbar,
.form-actions,
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.primary-btn {
  color: #fff;
  background: var(--gold);
}

.secondary-btn {
  color: var(--blue);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.ghost-btn {
  color: var(--blue);
  background: var(--surface);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.action-list,
.timeline,
.user-list,
.status-config,
.doc-grid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.action-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.action-item strong {
  color: var(--blue);
}

.action-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: 100%;
  height: 26px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.badge.red {
  color: var(--red);
  background: #feecea;
}

.badge.gold {
  color: var(--amber);
  background: #fff3df;
}

.badge.green {
  color: var(--green);
  background: #e9f7ef;
}

.badge.blue {
  color: var(--blue);
  background: #e7eef4;
}

.timeline div {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
}

.timeline span {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.timeline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.form-panel {
  max-width: 980px;
}

.form-intro p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.65;
}

.form-grid {
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.client-type-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.type-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 0;
  border-radius: 7px;
  color: var(--blue);
  background: transparent;
  font-weight: 700;
}

.type-toggle svg {
  width: 18px;
  height: 18px;
}

.type-toggle.is-active {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(4, 36, 59, 0.12);
}

label {
  display: grid;
  gap: 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.field-note {
  display: block;
  margin-top: 2px;
  max-width: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

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

textarea {
  resize: vertical;
}

.wide {
  grid-column: 1 / -1;
}

.upload-box {
  border: 1px dashed #c7d2de;
  border-radius: 8px;
  padding: 16px;
  background: #fbfcfe;
}

.upload-box small {
  color: var(--muted);
  font-weight: 400;
}

.document-checklist-panel {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.document-checklist {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.checklist-upload-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 0.7fr) 92px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.checklist-upload-row div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 4px 10px;
  align-items: center;
}

.doc-number {
  grid-row: 1 / 3;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: var(--gold);
  background: var(--gold-soft);
  font-weight: 700;
}

.checklist-upload-row strong {
  color: var(--blue);
}

.checklist-upload-row small {
  color: var(--muted);
  font-weight: 400;
}

.checklist-upload-row input {
  padding: 9px;
  background: #fff;
}

.upload-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 7px;
  color: var(--red);
  background: #feecea;
  font-size: 12px;
  font-weight: 700;
}

.upload-status.is-uploaded {
  color: var(--green);
  background: #e9f7ef;
}

.form-actions {
  justify-content: flex-end;
  margin-top: 20px;
}

.toolbar {
  margin-bottom: 14px;
}

.ops-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  margin-bottom: 14px;
  padding: 22px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
}

.ops-hero h2,
.ops-hero p {
  color: #fff;
}

.ops-hero h2 {
  margin-bottom: 8px;
}

.ops-hero p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.goal-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.goal-card small,
.goal-card p {
  color: rgba(255, 255, 255, 0.75);
}

.goal-card strong {
  display: block;
  margin: 8px 0 12px;
  color: #fff;
  font-size: 28px;
}

.goal-bar,
.mini-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.goal-bar span,
.mini-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
}

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

.ops-insights article {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.ops-insights span {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 8px;
  color: var(--gold);
  background: var(--gold-soft);
}

.ops-insights svg {
  width: 18px;
  height: 18px;
}

.ops-insights small {
  color: var(--muted);
}

.ops-insights strong {
  display: block;
  margin-top: 5px;
  color: var(--blue);
  font-size: 23px;
}

.ops-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  margin-bottom: 14px;
}

.funnel-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.funnel-bars,
.focus-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.funnel-row {
  display: grid;
  grid-template-columns: 130px 1fr 28px;
  gap: 10px;
  align-items: center;
}

.funnel-row span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.funnel-row div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface);
}

.funnel-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
}

.funnel-row strong {
  color: var(--blue);
  text-align: right;
}

.focus-list div {
  padding: 12px;
  border-radius: 8px;
  background: var(--surface);
}

.focus-list strong,
.focus-list small {
  display: block;
}

.focus-list strong {
  color: var(--blue);
}

.focus-list small {
  margin-top: 5px;
  color: var(--muted);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(520px, 100%);
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.search-box input {
  border: 0;
  padding: 12px 0;
  outline: none;
}

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

.kanban-column {
  min-width: 0;
  min-height: 580px;
  padding: 12px;
}

.column-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: var(--blue);
  font-weight: 700;
}

.column-title small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.column-title span {
  display: grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 7px;
  background: var(--surface);
  font-size: 12px;
}

.operation-card {
  appearance: none;
  display: grid;
  gap: 10px;
  min-width: 0;
  width: 100%;
  margin-bottom: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  text-align: left;
  box-shadow: 0 8px 20px rgba(4, 36, 59, 0.05);
  overflow: hidden;
}

.operation-card:hover,
.operation-card:focus,
.operation-card:focus-visible {
  border-color: rgba(202, 150, 77, 0.65);
  background: #fff;
  color: var(--text);
  outline: none;
}

.operation-card strong {
  color: var(--blue);
  min-width: 0;
  overflow-wrap: anywhere;
}

.operation-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.operation-card small {
  color: var(--muted);
  line-height: 1.35;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.mini-progress {
  background: var(--surface);
}

.card-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
}

.card-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-wrap {
  width: 100%;
  margin-top: 16px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.pending-cards {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

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

.pending-stats article {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pending-stats span {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 8px;
  color: var(--gold);
  background: var(--gold-soft);
}

.pending-stats svg {
  width: 18px;
  height: 18px;
}

.pending-stats small {
  color: var(--muted);
}

.pending-stats strong {
  display: block;
  margin-top: 5px;
  color: var(--blue);
  font-size: 23px;
}

.pending-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.3fr) minmax(130px, 0.6fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.pending-card h3,
.pending-card p {
  margin-bottom: 0;
}

.pending-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
}

.pending-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.45;
}

.pending-objective {
  margin-top: 6px;
}

.pending-meta {
  display: grid;
  gap: 8px;
}

.pending-meta small {
  color: var(--muted);
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  font-size: 12px;
  text-transform: uppercase;
}

.document-folders {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.portfolio-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.portfolio-filter {
  display: flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.filter-btn {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.filter-btn.is-active {
  color: #fff;
  background: var(--blue);
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.client-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.client-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.client-card-header > div {
  min-width: 0;
}

.client-card-header h3,
.client-card-header p {
  margin-bottom: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.client-card-header p:not(.eyebrow) {
  margin-top: 6px;
  color: var(--muted);
}

.client-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  min-width: 0;
}

.client-summary div {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: var(--surface);
}

.client-summary small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
}

.client-summary strong {
  display: block;
  color: var(--blue);
  overflow-wrap: anywhere;
}

.client-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 8px;
  min-width: 0;
}

.client-actions .primary-btn,
.client-actions .secondary-btn {
  min-width: 0;
  padding-right: 11px;
  padding-left: 11px;
}

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

.contract-history {
  display: grid;
  gap: 10px;
}

.contract-history article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.contract-history strong,
.contract-history small {
  display: block;
}

.contract-history small {
  margin-top: 4px;
  color: var(--muted);
}

.contract-history p {
  margin: 8px 0 0;
}

.drawer-actions.compact {
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
}

.danger-btn {
  color: var(--red);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 7px;
  color: var(--blue);
  background: #e7eef4;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.tag-list.in-drawer {
  margin-top: 12px;
}

.doc-folder {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.doc-folder-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
}

.doc-folder-header h3,
.doc-folder-header p {
  margin-bottom: 0;
}

.doc-folder-header p:not(.eyebrow) {
  margin-top: 6px;
  color: var(--muted);
}

.doc-list {
  display: grid;
}

.doc-list.compact {
  gap: 8px;
}

.doc-list.compact .doc-row {
  grid-template-columns: 42px 1fr auto auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.checklist-in-drawer {
  margin-top: 10px;
}

.doc-row {
  display: grid;
  grid-template-columns: 48px minmax(240px, 1fr) minmax(120px, auto) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

.doc-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: var(--gold);
  background: var(--gold-soft);
  font-weight: 700;
}

.doc-row small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
}

.doc-row strong {
  color: var(--blue);
}

.inline-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 7px;
  padding: 0 10px;
  color: var(--blue);
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.inline-upload input {
  display: none;
}

.doc-action {
  min-height: 36px;
  padding: 0 12px;
}

.participation-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.participation-summary div {
  padding: 16px;
  border-radius: 8px;
  background: var(--surface);
}

.participation-summary strong {
  display: block;
  margin-top: 6px;
  color: var(--blue);
  font-size: 24px;
}

.admin-layout {
  grid-template-columns: 1fr 1fr;
}

.desk-list {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.desk-card {
  display: block;
  padding: 0;
  border: 1px solid #d6e0ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 31, 52, 0.08);
  overflow: hidden;
}

.desk-card-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 22px;
  border-bottom: 1px solid #d6e0ea;
  background: linear-gradient(135deg, #f8fbfd 0%, #ffffff 62%);
}

.desk-card-header h3,
.desk-card-header p {
  margin: 0;
}

.desk-card-header p:not(.eyebrow) {
  margin-top: 6px;
  color: var(--muted);
}

.desk-card-header h3 {
  font-size: 28px;
  line-height: 1.1;
}

.desk-card-status {
  display: grid;
  gap: 5px;
  justify-items: end;
  text-align: right;
  min-width: 150px;
}

.desk-card-status strong,
.desk-card-status small {
  display: block;
}

.desk-card-status small {
  color: var(--muted);
}

.desk-card-status strong {
  color: var(--blue);
}

.desk-card-divider {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 22px;
  border-bottom: 1px solid #d6e0ea;
  background: #eef4f8;
}

.desk-card-divider span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desk-card-divider strong {
  color: var(--blue);
}

.desk-divider-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.desk-divider-actions .secondary-btn {
  min-height: 36px;
  padding: 0 12px;
}

.desk-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 22px 20px;
  background: #fff;
}

.desk-info-box {
  min-width: 0;
  padding: 16px;
  border: 1px solid #dbe4ec;
  border-radius: 8px;
  background: #f7fafc;
}

.desk-info-box p,
.desk-info-box dl,
.desk-info-box dd {
  margin: 0;
}

.desk-info-box strong {
  display: block;
  margin: 10px 0 10px;
  overflow-wrap: anywhere;
  color: var(--blue);
  font-size: 18px;
  line-height: 1.15;
}

.desk-info-box dl {
  display: grid;
  gap: 6px;
}

.desk-info-box dl div {
  display: grid;
  gap: 1px;
}

.desk-info-box dt {
  color: var(--muted);
  font-size: 12px;
}

.desk-info-box dd {
  color: var(--blue);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.desk-section-title {
  padding: 18px 22px 0;
  border-top: 1px solid #e6edf3;
}

.desk-section-title h4 {
  margin: 4px 0 0;
  color: var(--blue);
  font-size: 18px;
}

.desk-doc-list {
  display: grid;
  gap: 10px;
  padding: 14px 22px 22px;
}

.desk-doc-row {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 130px 330px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #dbe4ec;
  border-radius: 8px;
  background: #f7fafc;
}

.desk-doc-main small,
.desk-doc-main span,
.desk-doc-meta small {
  display: block;
  color: var(--muted);
}

.desk-doc-main strong {
  display: block;
  margin: 4px 0;
  color: var(--blue);
}

.desk-doc-meta {
  display: grid;
  gap: 5px;
  justify-items: start;
}

.desk-doc-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}

.desk-doc-actions button {
  min-height: 38px;
  padding: 0 10px;
  white-space: nowrap;
}

.desk-doc-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

@media (max-width: 980px) {
  .desk-info-grid,
  .desk-doc-row {
    grid-template-columns: 1fr;
  }

  .desk-card-divider,
  .desk-divider-actions,
  .closing-grid,
  .installment-row {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.empty-state strong,
.empty-state span {
  display: block;
}

.empty-state span {
  margin-top: 4px;
  color: var(--muted);
}

.user-list div {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 4px 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.user-list span {
  grid-row: 1 / 3;
}

.user-list small {
  color: var(--muted);
}

.status-config {
  grid-template-columns: repeat(2, 1fr);
}

.status-config span {
  padding: 12px;
  border-radius: 8px;
  color: var(--blue);
  background: var(--surface);
  font-weight: 700;
}

.detail-drawer,
.profile-drawer,
.chat-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 20;
  width: min(520px, 100vw);
  height: 100vh;
  padding: 22px;
  background: #fff;
  box-shadow: -18px 0 45px rgba(4, 36, 59, 0.16);
  transform: translateX(105%);
  transition: transform 0.2s ease;
  overflow-y: auto;
}

.detail-drawer.is-open,
.profile-drawer.is-open,
.chat-drawer.is-open {
  transform: translateX(0);
}

.chat-drawer {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}

.chat-context {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.chat-context strong,
.chat-context small {
  display: block;
}

.chat-context small {
  margin-top: 4px;
  color: var(--muted);
}

.chat-messages {
  display: grid;
  align-content: end;
  gap: 10px;
  margin: 16px 0;
  overflow-y: auto;
}

.chat-message {
  max-width: 84%;
  padding: 11px 12px;
  border-radius: 8px;
}

.chat-message small {
  display: block;
  margin-bottom: 5px;
  font-weight: 700;
}

.chat-message p {
  margin-bottom: 0;
  line-height: 1.45;
}

.chat-message.is-mesa {
  justify-self: start;
  background: var(--surface);
}

.chat-message.is-user {
  justify-self: end;
  color: #fff;
  background: var(--blue);
}

.chat-message.is-user small,
.chat-message.is-user p {
  color: #fff;
}

.chat-form {
  display: grid;
  grid-template-columns: 42px 1fr 52px;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.chat-form .primary-btn {
  min-width: 0;
  padding: 0;
}

.floating-chat {
  position: fixed;
  right: 22px;
  bottom: 120px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  color: #fff;
  background: var(--gold);
  box-shadow: var(--shadow);
  font-weight: 700;
}

.floating-chat svg {
  width: 18px;
  height: 18px;
}

.campaign-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 36, 59, 0.62);
  backdrop-filter: blur(4px);
}

.campaign-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  width: min(980px, 100%);
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(4, 36, 59, 0.32);
}

.campaign-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.campaign-media {
  position: relative;
  min-height: 430px;
  background: var(--blue);
}

.campaign-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.campaign-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 36, 59, 0.58), rgba(4, 36, 59, 0.06));
}

.campaign-logo {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 1;
  padding: 9px 12px;
  border-radius: 8px;
  color: #fff;
  background: rgba(4, 36, 59, 0.72);
  font-weight: 700;
}

.campaign-content {
  align-self: center;
  padding: 34px;
}

.campaign-content h2 {
  margin-bottom: 12px;
  font-size: 36px;
}

.campaign-content p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.campaign-goal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0 12px;
}

.campaign-goal div {
  padding: 13px;
  border-radius: 8px;
  background: var(--surface);
}

.campaign-goal small {
  color: var(--muted);
}

.campaign-goal strong {
  display: block;
  margin-top: 5px;
  color: var(--blue);
  font-size: 22px;
}

.campaign-progress {
  margin-bottom: 20px;
  background: #dce4ec;
}

.action-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 36, 59, 0.62);
  backdrop-filter: blur(4px);
}

.action-card {
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(4, 36, 59, 0.28);
}

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

.action-card h2 {
  margin: 0;
  font-size: 26px;
}

.action-card label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 800;
}

.action-card textarea,
.action-card select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--blue);
  background: #fff;
  font: inherit;
  font-weight: 600;
}

.action-card textarea {
  resize: vertical;
}

.action-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.closing-fields {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.closing-alert {
  display: grid;
  gap: 4px;
}

.closing-alert strong {
  color: var(--blue);
}

.closing-alert span {
  color: var(--muted);
}

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

.closing-participation {
  padding: 12px;
  border-radius: 8px;
  color: var(--blue);
  background: #fff;
}

.closing-participation small,
.closing-participation strong {
  display: block;
}

.closing-participation strong {
  margin-top: 4px;
  font-size: 24px;
}

.installment-builder {
  display: grid;
  gap: 10px;
}

.installment-builder-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.installment-builder-header strong {
  color: var(--blue);
}

.installment-builder-header .secondary-btn {
  min-height: 34px;
  padding: 0 10px;
}

.installment-rows {
  display: grid;
  gap: 10px;
}

.installment-row {
  display: grid;
  grid-template-columns: 0.7fr 1fr 42px;
  gap: 10px;
  align-items: end;
}

.installment-row label {
  margin-top: 0;
}

.installment-row .icon-btn {
  width: 42px;
  height: 42px;
}

.drawer-body {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.partner-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.partner-card span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
}

.partner-card strong,
.partner-card small {
  display: block;
}

.partner-card small {
  margin-top: 4px;
  color: var(--muted);
}

.partner-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.partner-stats div {
  padding: 10px;
  border-radius: 8px;
  background: #fff;
}

.partner-stats small {
  display: block;
  color: var(--muted);
}

.partner-stats strong {
  display: block;
  margin-top: 5px;
  color: var(--blue);
}

.drawer-section label + label,
.drawer-section label + button {
  margin-top: 10px;
}

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

.bank-grid + button {
  margin-top: 12px;
}

.check-row {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 400;
}

.check-row input {
  width: auto;
}

.institutional-footer {
  margin: auto -26px 0;
  padding: 16px 26px 14px;
  border-radius: 0;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(4, 36, 59, 1) 0%, rgba(4, 36, 59, 0.98) 62%, rgba(202, 150, 77, 0.95) 62%, rgba(202, 150, 77, 0.95) 100%);
  overflow: hidden;
}

.help-hero {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 30px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.help-hero h2 {
  margin-bottom: 0;
}

.help-search {
  width: min(620px, 100%);
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.help-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.help-grid span {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 8px;
  color: var(--gold);
  background: var(--gold-soft);
}

.help-grid svg {
  width: 22px;
  height: 22px;
}

.help-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.footer-links a {
  color: #fff;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

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

.footer-channels div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-channels svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.footer-channels p,
.footer-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.25;
  font-size: 12px;
}

.footer-channels strong {
  color: #fff;
}

.footer-copy {
  display: none;
  gap: 8px;
  max-width: 1120px;
  font-size: 12px;
}

.drawer-section {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.drawer-section h3 {
  margin-bottom: 12px;
  font-size: 17px;
}

.drawer-section p {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.mini-upload {
  margin-top: 12px;
  padding: 13px;
  border: 1px dashed #c7d2de;
  border-radius: 8px;
  background: #fff;
}

.drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 78px;
  z-index: 30;
  max-width: 360px;
  padding: 13px 15px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .login-screen {
    grid-template-columns: minmax(380px, 48vw) minmax(0, 52vw);
  }

  .login-side {
    width: min(520px, calc(100% - 48px));
  }

  .login-side h2 {
    font-size: 28px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

  .metrics-grid,
  .content-grid,
  .admin-layout,
  .doc-grid,
  .client-grid,
  .ops-insights,
  .ops-panel,
  .pending-stats,
  .help-grid,
  .footer-channels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .pending-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

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

  .institutional-footer .footer-channels {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .institutional-footer .footer-channels p {
    font-size: 11px;
  }
}

@media (max-width: 760px) {
  .login-screen {
    grid-template-columns: 1fr;
    background: #fff;
  }

  .login-brand {
    position: static;
    padding: 22px 22px 0;
  }

  .login-card {
    width: calc(100% - 36px);
    margin: 28px auto;
  }

  .login-side {
    padding: 22px;
    background: var(--blue);
  }

  .login-side h2 {
    font-size: 28px;
  }

  .campaign-card {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 36px);
    overflow-y: auto;
  }

  .campaign-media {
    min-height: 150px;
  }

  .campaign-content {
    padding: 18px;
  }

  .campaign-content h2 {
    font-size: 24px;
  }

  .campaign-goal {
    grid-template-columns: 1fr;
  }

  .main {
    padding: 18px 18px 0;
  }

  .topbar,
  .hero-band,
  .toolbar,
  .dashboard-filters,
  .portfolio-toolbar,
  .panel-header,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .profile {
    width: 100%;
  }

  .official-link {
    width: 100%;
  }

  .notifications-popover {
    top: 160px;
    right: 18px;
    width: min(340px, calc(100vw - 36px));
  }

  .nav-list,
  .metrics-grid,
  .content-grid,
  .form-grid,
  .admin-layout,
  .doc-grid,
  .client-grid,
  .ops-insights,
  .ops-panel,
  .pending-stats,
  .help-grid,
  .participation-summary,
  .client-type-switch,
  .bank-grid {
    grid-template-columns: 1fr;
  }

  .checklist-upload-row {
    grid-template-columns: 1fr;
  }

  .portfolio-filter,
  .client-actions,
  .client-summary,
  .client-edit-grid,
  .footer-channels {
    grid-template-columns: 1fr;
  }

  .institutional-footer {
    margin-right: -18px;
    margin-left: -18px;
    padding: 14px 18px;
  }

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

  .footer-links {
    gap: 14px;
  }

  .floating-chat {
    bottom: 18px;
  }

  .portfolio-filter {
    display: grid;
  }

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

  .nav-item {
    min-height: 48px;
  }

  .hero-band {
    padding: 22px;
  }

  .pending-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .doc-folder-header,
  .doc-row {
    grid-template-columns: 1fr;
  }

  .doc-folder-header {
    display: grid;
  }

  h1,
  h2 {
    font-size: 26px;
  }
}
