:root {
  --agro-bg: #18231d;
  --agro-panel: #233229;
  --agro-gold: #ECB74C;
  --agro-gold-dark: #D4A03D;
  --agro-text: #EAEAEA;
  --agro-muted: rgba(234, 234, 234, .70);
  --agro-muted-2: rgba(234, 234, 234, .55);
  --agro-line: rgba(255, 255, 255, .06);
  --agro-line-strong: rgba(255, 255, 255, .10);
  --agro-radius: .75rem;
  --agro-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--agro-bg);
}

body {
  color: var(--agro-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: #171717;
  background: rgba(236, 183, 76, .82);
}

img {
  max-width: 100%;
}

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

input,
textarea,
select {
  font-size: 16px !important;
}

.card-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, .03) 0%, rgba(255, 255, 255, .02) 100%) !important;
  border: 1px solid var(--agro-line) !important;
  border-radius: var(--agro-radius) !important;
  box-shadow: var(--agro-shadow) !important;
}

.card-hover {
  transition: transform .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease;
}

.card-hover:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, .03) 100%) !important;
  border-color: rgba(236, 183, 76, .25) !important;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, .35) !important;
  transform: translateY(-2px);
}

.btn-primary,
.btn-gold {
  background: rgba(236, 183, 76, .60) !important;
  color: #fff !important;
  border-color: rgba(236, 183, 76, .20) !important;
  box-shadow: none !important;
}

.btn-primary:hover:not(:disabled),
.btn-gold:hover:not(:disabled) {
  background: rgba(236, 183, 76, .75) !important;
  filter: none !important;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .18) !important;
}

.btn-primary:disabled,
.btn-gold:disabled {
  opacity: .52;
  cursor: not-allowed;
}

.btn-outline,
.btn-secondary {
  color: var(--agro-gold) !important;
  background: transparent !important;
  border: 1px solid rgba(236, 183, 76, .40) !important;
}

.btn-outline:hover,
.btn-secondary:hover {
  color: var(--agro-gold) !important;
  background: rgba(236, 183, 76, .10) !important;
  border-color: rgba(236, 183, 76, .60) !important;
}

.custom-select,
.form-select,
select {
  color: #fff;
  border-color: rgba(255, 255, 255, .10);
}

.custom-select:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(236, 183, 76, .52) !important;
  box-shadow: 0 0 0 2px rgba(236, 183, 76, .10) !important;
  outline: none;
}

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, .05);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  background: var(--agro-gold);
  border-radius: 999px;
}

.reserve-fill {
  background: rgba(236, 183, 76, .30);
  border-radius: 999px;
}

#mainLayout {
  max-width: 1440px;
  gap: 24px;
}

#mainLayout aside nav a {
  font-family: Inter, system-ui, sans-serif !important;
}

#mainLayout .nav-link-active {
  color: var(--agro-gold) !important;
  background: rgba(236, 183, 76, .10) !important;
  border: 1px solid rgba(236, 183, 76, .18) !important;
  border-right: 1px solid rgba(236, 183, 76, .18) !important;
}

#mainLayout > aside img[alt="AGROVELES"] + span,
#mobileMenu img[alt="AGROVELES"] + span,
.mobile-menu img[alt="AGROVELES"] + span,
#mainLayout > aside img[alt="АГРОВЕЛЕС ИНВЕСТИЦИИ АГРО"] + span,
#mobileMenu img[alt="АГРОВЕЛЕС ИНВЕСТИЦИИ АГРО"] + span,
.mobile-menu img[alt="АГРОВЕЛЕС ИНВЕСТИЦИИ АГРО"] + span {
  display: none !important;
}

#mainLayout #projectsGrid > .card-panel {
  border-radius: var(--agro-radius) !important;
}

#mainLayout #projectsGrid > .card-panel > div:last-child {
  background: linear-gradient(180deg, rgba(35, 35, 35, .96), rgba(31, 31, 31, .96)) !important;
}

#mainLayout #projectsGrid img {
  mix-blend-mode: normal !important;
  opacity: .92 !important;
}

#mainLayout #projectsGrid .card-panel:hover img {
  opacity: 1 !important;
}

@media (max-width: 920px) {
  #mainLayout {
    display: block;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* MMAT style pass: production mirror visual rescue, 2026-06-28. */
:root {
  --agro-bg: #18231d;
  --agro-bg-2: #203026;
  --agro-panel: #233229;
  --agro-panel-2: #2a3b30;
  --agro-card: rgba(37, 52, 43, .95);
  --agro-card-strong: rgba(43, 61, 50, .97);
  --agro-gold: #d8ad57;
  --agro-gold-dark: #b98935;
  --agro-green: #86a66f;
  --agro-green-soft: rgba(134, 166, 111, .18);
  --agro-text: #f4efe6;
  --agro-muted: rgba(244, 239, 230, .70);
  --agro-muted-2: rgba(244, 239, 230, .50);
  --agro-line: rgba(223, 216, 198, .13);
  --agro-line-strong: rgba(223, 216, 198, .20);
  --agro-radius: 20px;
  --agro-radius-lg: 26px;
  --agro-shadow: 0 22px 70px rgba(0, 0, 0, .28);
  --agro-shadow-soft: 0 18px 44px rgba(0, 0, 0, .20);
}

html {
  background: var(--agro-bg) !important;
}

body,
body.ag-wow {
  color: var(--agro-text) !important;
  background:
    linear-gradient(180deg, rgba(216, 173, 87, .060) 0%, transparent 22rem),
    linear-gradient(135deg, rgba(134, 166, 111, .080) 0%, transparent 34rem),
    linear-gradient(180deg, #18231d 0%, #1f2e25 48%, #162119 100%) !important;
  font-family: Onest, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-variant-numeric: tabular-nums;
}

body.ag-wow {
  --wow-bg: var(--agro-bg);
  --wow-panel: var(--agro-panel);
  --wow-line: var(--agro-line);
  --wow-text: var(--agro-text);
  --wow-muted: var(--agro-muted);
  --wow-muted-2: var(--agro-muted-2);
  --wow-gold: var(--agro-gold);
  --wow-gold-strong: #e3bd67;
  --wow-shadow: var(--agro-shadow-soft);
}

.text-muted,
body.ag-wow .text-muted,
.wow-page-subtitle,
.project-detail-page .stat-note,
.project-detail-page .panel-caption,
.project-detail-page .timeline-item p,
.project-detail-page .document-item p,
.project-detail-page .material-item p,
.project-detail-page .ticket-item p,
.project-detail-page .note-item {
  color: var(--agro-muted) !important;
}

.text-muted2,
body.ag-wow .text-muted2,
.small-muted,
.project-detail-page .small-muted {
  color: var(--agro-muted-2) !important;
}

.text-gold,
body.ag-wow .text-gold {
  color: #e2be6c !important;
}

.card-panel,
body.ag-wow .card-panel,
.project-detail-page .panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .018)),
    var(--agro-card) !important;
  border: 1px solid var(--agro-line) !important;
  border-radius: var(--agro-radius-lg) !important;
  box-shadow: var(--agro-shadow-soft) !important;
  backdrop-filter: blur(16px);
}

.card-hover:hover,
body.ag-wow .card-hover:hover {
  transform: translateY(-3px);
  border-color: rgba(216, 173, 87, .28) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .052), rgba(255, 255, 255, .026)),
    var(--agro-card-strong) !important;
}

.btn-primary,
.btn-gold,
body.ag-wow .btn-gold,
.project-detail-page .cta,
.button-primary {
  color: #11180f !important;
  background: linear-gradient(135deg, #e0ba68 0%, #c99a44 100%) !important;
  border: 1px solid rgba(255, 230, 172, .34) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .20) !important;
  font-weight: 700 !important;
}

.btn-primary:hover:not(:disabled),
.btn-gold:hover:not(:disabled),
body.ag-wow .btn-gold:hover:not(:disabled),
.project-detail-page .cta:hover,
.button-primary:hover {
  transform: translateY(-1px);
  filter: none !important;
  background: linear-gradient(135deg, #eccb7a 0%, #d6a74d 100%) !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .24) !important;
}

.btn-outline,
.btn-secondary,
.button-secondary,
.wow-outline-btn,
.wow-soft-btn,
.project-detail-page .ghost,
.project-detail-page .cta-secondary {
  color: var(--agro-text) !important;
  background: rgba(255, 255, 255, .035) !important;
  border: 1px solid var(--agro-line-strong) !important;
  box-shadow: none !important;
}

.btn-outline:hover,
.btn-secondary:hover,
.button-secondary:hover,
.wow-outline-btn:hover,
.wow-soft-btn:hover,
.project-detail-page .ghost:hover,
.project-detail-page .cta-secondary:hover {
  color: #fff !important;
  background: rgba(134, 166, 111, .10) !important;
  border-color: rgba(134, 166, 111, .32) !important;
}

input,
textarea,
select,
.field,
.input-field,
.custom-select,
.form-select {
  color: var(--agro-text) !important;
  background: rgba(255, 255, 255, .035) !important;
  border: 1px solid var(--agro-line-strong) !important;
  border-radius: 15px !important;
}

input:focus,
textarea:focus,
select:focus,
.field:focus,
.input-field:focus,
.custom-select:focus,
.form-select:focus {
  border-color: rgba(216, 173, 87, .46) !important;
  box-shadow: 0 0 0 4px rgba(216, 173, 87, .10) !important;
}

#statusScreen,
body.ag-wow #statusScreen,
body.ag-wow #loaderScreen,
body.ag-wow #authScreen {
  background:
    linear-gradient(180deg, rgba(216, 173, 87, .075), transparent 32rem),
    linear-gradient(135deg, rgba(134, 166, 111, .075), transparent 34rem),
    var(--agro-bg) !important;
}

#mainLayout,
body.ag-wow #mainLayout {
  max-width: 1540px !important;
  gap: 30px !important;
  padding-top: 28px !important;
  padding-bottom: 44px !important;
}

#mainLayout > aside,
body.ag-wow #mainLayout > aside {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .040), rgba(255, 255, 255, .016)),
    rgba(32, 48, 38, .98) !important;
  border: 1px solid rgba(223, 216, 198, .12) !important;
  border-radius: 28px !important;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .24) !important;
}

#mainLayout > aside nav > a,
body.ag-wow #mainLayout > aside nav > a {
  min-height: 52px !important;
  border-radius: 15px !important;
  color: rgba(244, 239, 230, .66) !important;
  font-family: Onest, Inter, system-ui, sans-serif !important;
  font-weight: 600;
}

#mainLayout > aside nav > a:hover,
body.ag-wow #mainLayout > aside nav > a:hover {
  color: var(--agro-text) !important;
  background: rgba(255, 255, 255, .045) !important;
  border-color: rgba(255, 255, 255, .055) !important;
}

#mainLayout .nav-link-active,
body.ag-wow #mainLayout .nav-link-active {
  color: #fff4d9 !important;
  background: linear-gradient(90deg, rgba(216, 173, 87, .18), rgba(134, 166, 111, .08)) !important;
  border: 1px solid rgba(216, 173, 87, .24) !important;
  box-shadow: inset 3px 0 0 rgba(216, 173, 87, .92) !important;
}

#mainLayout > aside img,
body.ag-wow #mainLayout > aside img {
  filter: saturate(.92) contrast(.98);
}

.profile-quick-access {
  padding: 22px !important;
  border-radius: 26px !important;
  background:
    linear-gradient(180deg, rgba(216, 173, 87, .04), rgba(255, 255, 255, .014)),
    rgba(18, 26, 21, .92) !important;
  border: 1px solid rgba(223, 216, 198, .10) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22) !important;
}

.profile-quick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.profile-quick-head h2 {
  margin: 0;
  color: var(--agro-text);
  font-family: "Jeju Myeongjo", Georgia, serif;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
}

.profile-quick-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(223, 216, 198, .09);
  border-radius: 18px;
  background: rgba(0, 0, 0, .16);
}

.profile-quick-metric {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  padding: 13px 14px;
  text-decoration: none;
}

.profile-quick-metric + .profile-quick-metric {
  border-left: 1px solid rgba(223, 216, 198, .08);
}

.profile-quick-metric span {
  color: var(--agro-muted-2);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.profile-quick-metric strong {
  overflow: hidden;
  color: #e7c36f;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-quick-metric:nth-child(2) strong {
  color: var(--agro-text);
}

.profile-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-quick-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  color: var(--agro-text);
  text-decoration: none;
  border: 1px solid rgba(223, 216, 198, .075);
  border-radius: 17px;
  background: rgba(255, 255, 255, .025);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.profile-quick-row:hover {
  transform: translateY(-1px);
  border-color: rgba(216, 173, 87, .26);
  background: rgba(134, 166, 111, .09);
}

.profile-quick-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: #dfbd73;
  border: 1px solid rgba(216, 173, 87, .14);
  border-radius: 13px;
  background: rgba(216, 173, 87, .075);
}

.profile-quick-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
}

.profile-quick-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.profile-quick-copy strong {
  overflow: hidden;
  color: var(--agro-text);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-quick-copy small {
  overflow: hidden;
  color: var(--agro-muted-2);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-quick-arrow {
  width: 16px;
  height: 16px;
  color: rgba(244, 239, 230, .42);
  stroke-width: 1.8;
}

/* MMAT mirror-only home dashboard polish, 2026-06-28.
   Keeps the main page compact without changing the shared app shell. */
body.app-home-polish #mainLayout {
  grid-template-columns: minmax(0, 236px) minmax(0, 1fr) !important;
  gap: 24px !important;
}

body.app-home-polish main {
  gap: 24px !important;
}

body.app-home-polish .home-quick-card {
  align-self: stretch;
  justify-content: flex-start !important;
  padding: 18px !important;
  border-radius: 22px !important;
  background:
    linear-gradient(180deg, rgba(216, 173, 87, .04), rgba(255, 255, 255, .012)),
    rgba(24, 35, 29, .88) !important;
}

body.app-home-polish .home-quick-card h3 {
  margin-bottom: 14px !important;
  color: var(--agro-text) !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
}

body.app-home-polish #quickActions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 9px !important;
}

body.app-home-polish .home-quick-action {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  min-height: 48px !important;
  align-items: center !important;
  gap: 9px !important;
  padding: 8px 10px !important;
  color: var(--agro-text) !important;
  text-align: left !important;
  text-decoration: none !important;
  border: 1px solid rgba(223, 216, 198, .09) !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, .026) !important;
  box-shadow: none !important;
  transition: background .18s ease, border-color .18s ease, transform .18s ease !important;
}

body.app-home-polish .home-quick-action:hover {
  transform: translateY(-1px) !important;
  border-color: rgba(216, 173, 87, .25) !important;
  background: rgba(134, 166, 111, .09) !important;
}

body.app-home-polish .home-quick-action > svg:first-child {
  width: 30px !important;
  height: 30px !important;
  padding: 7px !important;
  color: #dfbd73 !important;
  border: 1px solid rgba(216, 173, 87, .14) !important;
  border-radius: 11px !important;
  background: rgba(216, 173, 87, .07) !important;
  stroke-width: 1.7 !important;
}

body.app-home-polish .home-quick-action span {
  overflow: hidden;
  color: var(--agro-muted) !important;
  font-size: 10px !important;
  font-weight: 750 !important;
  line-height: 1.1 !important;
  letter-spacing: .045em !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.app-home-polish .home-quick-chevron {
  display: none !important;
  width: 12px !important;
  height: 12px !important;
  color: rgba(244, 239, 230, .40) !important;
  stroke-width: 2 !important;
}

body.app-home-polish #contextActions {
  margin-top: 12px !important;
  gap: 7px !important;
}

body.app-home-polish #contextActions a {
  min-height: 36px !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  font-size: 10px !important;
  letter-spacing: .06em !important;
}

body.app-home-polish .home-projects-card {
  align-self: start !important;
  min-height: 224px !important;
  padding: 22px !important;
  border-radius: 24px !important;
}

body.app-home-polish .home-projects-card > div:first-child {
  margin-bottom: 18px !important;
}

body.app-home-polish .home-projects-card h3 {
  font-size: 19px !important;
  line-height: 1.2 !important;
}

body.app-home-polish .home-project-empty {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 132px;
  margin-top: 4px;
  padding: 18px;
  border: 1px solid rgba(223, 216, 198, .10);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(216, 173, 87, .055), rgba(134, 166, 111, .040)),
    rgba(255, 255, 255, .020);
}

body.app-home-polish .home-project-empty-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: #dfbd73;
  border: 1px solid rgba(216, 173, 87, .16);
  border-radius: 14px;
  background: rgba(216, 173, 87, .075);
}

body.app-home-polish .home-project-empty-icon svg {
  width: 21px;
  height: 21px;
}

body.app-home-polish .home-project-empty-copy {
  min-width: 0;
}

body.app-home-polish .home-project-empty-copy p {
  margin: 0 0 5px;
  color: var(--agro-text);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.2;
}

body.app-home-polish .home-project-empty-copy span {
  display: block;
  max-width: 34rem;
  color: var(--agro-muted-2);
  font-size: 12px;
  line-height: 1.45;
}

body.app-home-polish .home-project-empty-action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 13px;
  font-family: Onest, Inter, system-ui, sans-serif !important;
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  body.app-home-polish #quickActions {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 760px) {
  body.app-home-polish main {
    gap: 20px !important;
  }

  body.app-home-polish .home-quick-card,
  body.app-home-polish .home-projects-card {
    padding: 18px !important;
    border-radius: 20px !important;
  }

  body.app-home-polish #quickActions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.app-home-polish .home-quick-action {
    grid-template-columns: 28px minmax(0, 1fr) !important;
    min-height: 46px !important;
    gap: 8px !important;
  }

  body.app-home-polish .home-quick-action > svg:first-child {
    width: 28px !important;
    height: 28px !important;
    padding: 6px !important;
  }

  body.app-home-polish .home-quick-chevron {
    display: none !important;
  }

  body.app-home-polish #compNameHero {
    overflow: visible !important;
    font-size: 26px !important;
    line-height: 1.12 !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }

  body.app-home-polish .home-project-empty {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 0;
    padding: 16px;
  }

  body.app-home-polish .home-project-empty-action {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.catalog-access-panel {
  padding: 16px !important;
  border-radius: 22px !important;
  background:
    linear-gradient(180deg, rgba(216, 173, 87, .035), rgba(255, 255, 255, .015)),
    rgba(12, 17, 14, .88) !important;
  border: 1px solid rgba(223, 216, 198, .08) !important;
  box-shadow: none !important;
}

.catalog-access-panel .rounded-full {
  width: 38px !important;
  height: 38px !important;
  background: rgba(216, 173, 87, .10) !important;
  color: #dfbd73 !important;
}

.catalog-access-panel #sbUserName {
  color: #f7f1e7 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
}

.catalog-access-panel #sbAccessLabel {
  color: rgba(244, 239, 230, .46) !important;
  font-size: 9px !important;
  letter-spacing: .18em !important;
}

.catalog-access-primary,
.catalog-access-secondary {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 13px;
  font-family: Onest, Inter, system-ui, sans-serif !important;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: .015em;
}

.catalog-access-primary {
  color: #182014 !important;
  background: linear-gradient(135deg, #dfbd73 0%, #c79742 100%) !important;
  border: 1px solid rgba(255, 230, 172, .28) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18) !important;
}

.catalog-access-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #eccd82 0%, #d2a34b 100%) !important;
}

.catalog-access-secondary {
  color: rgba(244, 239, 230, .78) !important;
  background: rgba(255, 255, 255, .026) !important;
  border: 1px solid rgba(223, 216, 198, .11) !important;
}

.catalog-access-secondary:hover {
  color: #fff !important;
  background: rgba(134, 166, 111, .10) !important;
  border-color: rgba(134, 166, 111, .28) !important;
}

.wow-topbar,
.wow-filter-shell {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018)),
    rgba(17, 25, 20, .92) !important;
  border: 1px solid var(--agro-line) !important;
  border-radius: 24px !important;
  box-shadow: var(--agro-shadow-soft) !important;
}

.catalog-public-mode .wow-topbar {
  border-color: rgba(216, 173, 87, .18) !important;
  background:
    linear-gradient(135deg, rgba(216, 173, 87, .10), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018)),
    rgba(17, 25, 20, .95) !important;
}

.wow-topbar h1,
.wow-page-title,
.project-detail-page #projectTitle {
  color: #fffaf0 !important;
  letter-spacing: -.035em !important;
  text-wrap: balance;
}

.catalog-public-lead,
.wow-page-subtitle,
.project-detail-page #projectDescription {
  max-width: 58rem;
  color: rgba(244, 239, 230, .76) !important;
}

.wow-filter-label {
  color: rgba(244, 239, 230, .58) !important;
  letter-spacing: .14em !important;
}

.wow-pager-btn,
.wow-mobile-menu-button,
.wow-icon-button {
  background: rgba(255, 255, 255, .035) !important;
  border: 1px solid var(--agro-line) !important;
  border-radius: 14px !important;
}

#projectsGrid {
  gap: 28px !important;
  align-items: stretch;
}

#mainLayout #projectsGrid > .card-panel,
body.ag-wow #projectsGrid > .card-panel {
  isolation: isolate;
  border-radius: 24px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .030), rgba(255, 255, 255, .012)),
    rgba(37, 52, 43, .96) !important;
  border-color: rgba(223, 216, 198, .13) !important;
  box-shadow: 0 22px 56px rgba(0, 0, 0, .26) !important;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

#mainLayout #projectsGrid > .card-panel:hover,
body.ag-wow #projectsGrid > .card-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(216, 173, 87, .26) !important;
  box-shadow: 0 30px 72px rgba(0, 0, 0, .34) !important;
}

#mainLayout #projectsGrid > .card-panel > div:first-child {
  height: 210px !important;
  background: #19251f !important;
}

#mainLayout #projectsGrid > .card-panel > div:last-child,
body.ag-wow #projectsGrid > .card-panel > div:last-child {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .006)),
    #203026 !important;
  padding: 22px !important;
}

#mainLayout #projectsGrid img,
body.ag-wow #projectsGrid img {
  opacity: .98 !important;
  filter: saturate(.92) contrast(1.04) brightness(.96) !important;
}

#mainLayout #projectsGrid .bg-gradient-to-t {
  background: linear-gradient(180deg, rgba(12, 18, 14, 0) 18%, rgba(12, 18, 14, .34) 58%, rgba(12, 18, 14, .86) 100%) !important;
}

#projectsGrid .catalog-mobile-chip {
  color: #fff2cd !important;
  background: rgba(39, 56, 45, .82) !important;
  border: 1px solid rgba(216, 173, 87, .24) !important;
  border-radius: 999px !important;
  backdrop-filter: blur(12px);
}

#projectsGrid .catalog-mobile-meta {
  color: rgba(244, 239, 230, .70) !important;
}

#projectsGrid .catalog-mobile-summary {
  min-height: 42px;
  color: rgba(244, 239, 230, .66) !important;
}

.catalog-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}

.catalog-card-metric {
  min-width: 0;
  padding: 10px 11px 9px;
  border-radius: 14px;
  border: 1px solid rgba(223, 216, 198, .08);
  background: rgba(255, 255, 255, .028);
}

.catalog-card-metric span {
  display: block;
  margin-bottom: 4px;
  color: rgba(244, 239, 230, .48);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.catalog-card-metric strong {
  display: block;
  overflow: hidden;
  color: #fff7e8;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#projectsGrid .catalog-mobile-action,
#projectsGrid .wow-outline-btn,
#projectsGrid .action-btn,
#projectsGrid .action-btn-gold {
  min-height: 44px;
  border-radius: 14px !important;
  font-size: 12px !important;
  letter-spacing: .04em !important;
}

#projectsGrid [id^="actions-"] {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

#projectsGrid [id^="actions-"] > * {
  margin-top: 0 !important;
}

#projectsGrid [id^="actions-"] .catalog-mobile-action {
  white-space: normal;
  line-height: 1.22;
  text-wrap: balance;
}

#projectsGrid [id^="actions-"] .flex,
#projectsGrid [id^="dyn-tail-"] {
  min-width: 0;
}

#projectsGrid [id^="dyn-tail-"] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#projectsGrid [id^="dyn-tail-"] > .catalog-mobile-meta {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

#registerWrapper #successBox,
#registerWrapper #errorBox,
#statusScreen #statusText,
#inlineError #inlineErrorMsg {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.5;
}

.project-detail-page .project-shell-header {
  gap: 18px !important;
  margin-bottom: 4px;
}

.project-detail-page .wow-detail-breadcrumbs {
  color: rgba(244, 239, 230, .58) !important;
}

.project-detail-page #projectTitle {
  max-width: 960px;
  font-size: clamp(38px, 5.1vw, 72px) !important;
  line-height: .94 !important;
}

.project-detail-page #projectDescription {
  max-width: 760px;
  font-size: 17px !important;
  line-height: 1.62 !important;
}

.project-detail-page .status-pill,
.project-detail-page .chip {
  color: #ffe2a0 !important;
  background: rgba(216, 173, 87, .105) !important;
  border-color: rgba(216, 173, 87, .22) !important;
  border-radius: 999px !important;
}

.project-detail-page .hero.card-panel {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(216, 173, 87, .075), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, .034), rgba(255, 255, 255, .014)),
    rgba(17, 25, 20, .96) !important;
  border-color: rgba(216, 173, 87, .14) !important;
}

@media (min-width: 1024px) {
  .project-detail-page.public-view .hero {
    grid-template-columns: minmax(0, .94fr) minmax(390px, .86fr) !important;
    gap: 28px !important;
    padding: 30px !important;
    align-items: stretch;
  }

  .project-detail-page.public-view .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .project-detail-page.public-view .hero-stats > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

.project-detail-page .hero-meta {
  align-content: start;
  gap: 18px !important;
}

.project-detail-page .eyebrow {
  color: rgba(244, 239, 230, .58) !important;
  font-size: 11px !important;
  letter-spacing: .20em !important;
}

.project-detail-page .hero-actions {
  margin-top: 4px;
}

.project-detail-page .hero-stats {
  gap: 12px !important;
}

.project-detail-page .stat-card,
.project-detail-page .overview-card,
.project-detail-page .mini-card,
.project-detail-page .timeline-item,
.project-detail-page .gallery-item,
.project-detail-page .document-item,
.project-detail-page .material-item,
.project-detail-page .ticket-item,
.project-detail-page .note-item {
  background: rgba(255, 255, 255, .030) !important;
  border-color: rgba(223, 216, 198, .095) !important;
}

.project-detail-page .stat-card {
  min-height: 112px !important;
  padding: 18px !important;
}

.project-detail-page .stat-label {
  color: rgba(244, 239, 230, .52) !important;
}

.project-detail-page .stat-value,
.project-detail-page .overview-card strong,
.project-detail-page .mini-card strong {
  color: #fff8ea !important;
  letter-spacing: -.025em !important;
}

.project-detail-page.public-view .stat-value {
  max-width: 100%;
  font-size: clamp(25px, 1.72vw, 30px) !important;
  overflow-wrap: anywhere;
  word-break: normal;
}

.project-detail-page.public-view .stat-card.compact .stat-value {
  max-width: none !important;
}

.project-detail-page .overview-card strong.is-copy,
.project-detail-page .mini-card strong.is-copy {
  font-size: clamp(17px, 1.4vw, 19px) !important;
  font-weight: 650 !important;
  line-height: 1.28 !important;
}

.project-detail-page .cover-card {
  min-height: 390px !important;
  border-radius: 22px !important;
  border-color: rgba(223, 216, 198, .12) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
}

.project-detail-page .cover-card::before {
  background:
    linear-gradient(180deg, rgba(8, 12, 9, .02) 0%, rgba(8, 12, 9, .12) 38%, rgba(8, 12, 9, .86) 100%),
    linear-gradient(135deg, rgba(216, 173, 87, .10), transparent 56%) !important;
}

.project-detail-page .cover-card img {
  filter: saturate(.96) contrast(1.03) brightness(.98) !important;
}

.project-detail-page .cover-card-content h2 {
  max-width: 13ch;
  font-size: clamp(34px, 3.4vw, 54px) !important;
  line-height: .94 !important;
  color: #fff8ea !important;
}

.project-detail-page .cover-card-content p {
  color: rgba(244, 239, 230, .78) !important;
}

.project-detail-page .layout {
  gap: 26px !important;
}

.project-detail-page .panel {
  padding: 28px !important;
}

.project-detail-page .panel-title {
  color: #fff8ea !important;
  font-size: clamp(26px, 2.2vw, 34px) !important;
  letter-spacing: -.025em !important;
}

.auth-panel,
.register-shell .card-panel,
body:not(.ag-wow) .card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .042), rgba(255, 255, 255, .018)),
    rgba(17, 25, 20, .96) !important;
  border-color: rgba(223, 216, 198, .10) !important;
}

@media (max-width: 1180px) {
  #mainLayout,
  body.ag-wow #mainLayout {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

@media (max-width: 920px) {
  #mainLayout,
  body.ag-wow #mainLayout {
    display: block !important;
    padding: 22px 18px 36px !important;
  }

  .wow-topbar,
  .wow-filter-shell {
    border-radius: 22px !important;
  }

  #projectsGrid {
    gap: 22px !important;
  }

  #mainLayout #projectsGrid > .card-panel > div:first-child {
    height: 194px !important;
  }

  .catalog-card-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalog-card-metric {
    padding: 9px 9px 8px;
  }

  .catalog-card-metric strong {
    font-size: 11.5px;
  }

  .project-detail-page #projectTitle {
    font-size: clamp(34px, 9vw, 52px) !important;
  }

  .project-detail-page.public-view .hero,
  .project-detail-page .hero {
    grid-template-columns: 1fr !important;
    padding: 22px !important;
  }

  .project-detail-page .hero-stats {
    grid-template-columns: 1fr !important;
  }

  .project-detail-page .cover-card {
    min-height: 290px !important;
  }

  .project-detail-page .layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 430px) {
  body,
  body.ag-wow {
    background:
      linear-gradient(180deg, rgba(216, 173, 87, .06) 0%, transparent 22rem),
      var(--agro-bg) !important;
  }

  #mainLayout,
  body.ag-wow #mainLayout {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .catalog-public-mode .wow-topbar h1,
  .wow-topbar h1 {
    font-size: clamp(31px, 9vw, 38px) !important;
  }

  .wow-filter-shell {
    gap: 14px !important;
  }

  .catalog-card-metrics {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .catalog-card-metric {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }

  .catalog-card-metric span {
    margin: 0;
  }

  .catalog-card-metric strong {
    text-align: right;
  }

  .project-detail-page .panel {
    padding: 22px !important;
  }
}

/* MMAT action-flow palette normalization, mirror-only, 2026-06-28.
   Keeps legacy Tailwind action screens from falling back to the old black/gold theme. */
#mainContent,
#mainLayout {
  color: var(--agro-text) !important;
}

#mainContent {
  width: min(100%, 1120px) !important;
  padding-top: 28px !important;
  padding-bottom: 44px !important;
}

#mainContent header,
#mainLayout header {
  color: var(--agro-text) !important;
}

#fullScreenOverlay,
#statusScreen {
  color: var(--agro-text) !important;
  background:
    linear-gradient(180deg, rgba(216, 173, 87, .066) 0%, transparent 24rem),
    linear-gradient(135deg, rgba(134, 166, 111, .084) 0%, transparent 34rem),
    #18231d !important;
}

[class*="bg-[#1B1B1B]"] {
  background-color: #18231d !important;
}

[class*="bg-[#232323]"],
[class*="bg-[#2a2a2a]"] {
  background-color: #233229 !important;
}

[class*="bg-black/"] {
  background-color: rgba(255, 255, 255, .060) !important;
}

[class*="bg-white/5"],
[class*="bg-white/10"],
[class*="bg-white/[0.02]"],
[class*="bg-white/[0.04]"],
[class*="bg-white/[0.05]"] {
  background-color: rgba(255, 255, 255, .056) !important;
}

[class*="border-white/5"],
[class*="border-white/10"],
[class*="border-white/20"] {
  border-color: var(--agro-line) !important;
}

[class*="text-white/20"],
[class*="text-white/30"] {
  color: rgba(244, 239, 230, .34) !important;
}

#quoteLoaderOverlay {
  background: rgba(24, 35, 29, .78) !important;
}

#mobileMenu > div:first-child {
  background: rgba(18, 27, 22, .62) !important;
}

#mobileMenu > div:last-child {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .044), rgba(255, 255, 255, .018)),
    rgba(32, 48, 38, .98) !important;
  border-right: 1px solid var(--agro-line) !important;
}

.pdf-container {
  background: #203026 !important;
}

footer {
  background: transparent !important;
  border-color: var(--agro-line) !important;
}

/* Shared shell files use their own legacy variables. Override them from the same source of truth. */
:root {
  --bg: var(--agro-bg);
  --panel: var(--agro-panel);
  --gold: var(--agro-gold);
  --gold-dark: var(--agro-gold-dark);
  --text: var(--agro-text);
  --muted: var(--agro-muted);
  --muted-2: var(--agro-muted-2);
  --line: var(--agro-line);
  --line-strong: var(--agro-line-strong);
}

.admin-shell {
  color: var(--agro-text) !important;
  background:
    linear-gradient(180deg, rgba(216, 173, 87, .060) 0%, transparent 24rem),
    linear-gradient(135deg, rgba(134, 166, 111, .080) 0%, transparent 34rem),
    linear-gradient(180deg, #18231d 0%, #1f2e25 52%, #162119 100%) !important;
}

.admin-panel,
.admin-sidebar,
.admin-header,
.admin-card,
.admin-table-wrap,
.admin-ticket-card,
.admin-login-card,
.admin-detail-item,
.admin-debug-panel,
.admin-debug-modal-card,
.data-panel,
.metric-card,
.detail-card,
.mobile-card,
.lead-card,
.journey-card,
.quote-stat-card,
.project-invest-form-card,
.project-invest-offer-card,
.investment-summary-card,
.form-panel,
.state-box-shell,
.investor-challenge-card,
.status-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .042), rgba(255, 255, 255, .018)),
    var(--agro-card) !important;
  border-color: var(--agro-line) !important;
  box-shadow: var(--agro-shadow-soft) !important;
}

.admin-sidebar,
.sidebar,
.mobile-menu-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .044), rgba(255, 255, 255, .018)),
    rgba(32, 48, 38, .98) !important;
  border-color: var(--agro-line) !important;
}

.admin-project-cover-frame,
.admin-stage-inline-frame,
.admin-stage-media-frame,
.admin-project-cover-inline-frame {
  background:
    linear-gradient(145deg, rgba(216, 173, 87, .070), rgba(134, 166, 111, .060)),
    var(--agro-panel-2) !important;
  border-color: var(--agro-line) !important;
}

.admin-nav-link:hover,
.admin-nav-link.is-active,
.nav-link:hover,
.nav-link.is-active,
.agro-investor-nav-link:hover,
.agro-investor-nav-link.is-active {
  color: #fff8ea !important;
  background: linear-gradient(90deg, rgba(216, 173, 87, .16), rgba(134, 166, 111, .08)) !important;
  border-color: rgba(216, 173, 87, .24) !important;
}

.admin-table th,
.data-table th {
  background: rgba(255, 255, 255, .030) !important;
  border-color: var(--agro-line) !important;
}

.admin-table td,
.data-table td {
  border-color: var(--agro-line) !important;
}

.admin-table tbody tr:hover,
.data-table tbody tr:hover {
  background: rgba(255, 255, 255, .035) !important;
}

.admin-field,
.field,
.form-input,
.form-select,
.investor-challenge-input {
  color: var(--agro-text) !important;
  background: rgba(255, 255, 255, .042) !important;
  border-color: var(--agro-line-strong) !important;
}

.admin-empty,
.admin-debug-modal,
.investor-challenge-modal,
.mobile-menu-bg {
  background: rgba(13, 20, 16, .72) !important;
}

.admin-debug-modal-card,
.admin-empty--warning {
  background:
    linear-gradient(180deg, rgba(216, 173, 87, .070), rgba(255, 255, 255, .018)),
    var(--agro-card) !important;
}

/* MMAT nav elements rollout, mirror-only, 2026-06-28.
   Makes the user-cabinet sidebar anatomy consistent across legacy static pages. */
@media (min-width: 1181px) {
  body:not(.ag-shell-premium) #mainLayout {
    max-width: 1480px !important;
    grid-template-columns: 236px minmax(0, 1fr) !important;
    gap: 24px !important;
    padding: 20px 24px 30px !important;
  }

  body:not(.ag-shell-premium) #mainLayout > aside {
    top: 20px !important;
    width: 236px !important;
    height: calc(100vh - 40px) !important;
    margin-top: 8px !important;
    padding: 20px 0 14px !important;
  }

  body:not(.ag-shell-premium) #mainLayout > aside > .flex.items-center:first-child,
  body:not(.ag-shell-premium) #mainLayout > aside > a.brand:first-child {
    display: grid !important;
    align-items: start !important;
    gap: 10px !important;
    margin: 0 0 16px !important;
    padding: 0 6px 4px !important;
  }

  body:not(.ag-shell-premium) #mainLayout > aside > .flex.items-center:first-child img[alt*="AGROVELES"],
  body:not(.ag-shell-premium) #mainLayout > aside > .flex.items-center:first-child img[alt*="АГРОВЕЛЕС"],
  body:not(.ag-shell-premium) #mainLayout > aside > a.brand:first-child img {
    width: min(100%, 164px) !important;
    max-width: 164px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: left center !important;
  }

  body:not(.ag-shell-premium) #mainLayout > aside .mt-auto .flex.items-center.gap-3 {
    margin-bottom: 10px !important;
  }

  body:not(.ag-shell-premium) #mainLayout > aside .mt-auto #logoutBtn,
  body:not(.ag-shell-premium) #mainLayout > aside .mt-auto [data-agro-logout="1"],
  body:not(.ag-shell-premium) #mainLayout > aside .mt-auto .identity-logout-btn {
    margin-top: 0 !important;
  }
}

#mainLayout > aside,
body.ag-wow #mainLayout > aside {
  width: 100%;
  min-height: 0 !important;
  overflow: hidden !important;
}

#mainLayout > aside nav,
body.ag-wow #mainLayout > aside nav,
#mainLayout > aside .agro-investor-nav,
body.ag-wow #mainLayout > aside .agro-investor-nav {
  flex: 1 1 auto;
  min-height: 0;
  gap: 6px !important;
  padding-right: 8px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: none;
}

#mainLayout > aside nav::-webkit-scrollbar,
#mainLayout > aside .agro-investor-nav::-webkit-scrollbar {
  display: none;
}

#mainLayout > aside nav > a,
body.ag-wow #mainLayout > aside nav > a,
#mainLayout > aside .agro-investor-nav-link,
body.ag-wow #mainLayout > aside .agro-investor-nav-link {
  position: relative;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 50px !important;
  padding: 0 16px !important;
  border: 1px solid transparent !important;
  border-radius: 17px !important;
  background: transparent !important;
  color: rgba(244, 239, 230, .62) !important;
  font-family: Onest, Inter, system-ui, sans-serif !important;
  font-size: 14.5px !important;
  font-weight: 560 !important;
  line-height: 1.18 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transform: none !important;
}

#mainLayout > aside nav > a svg,
body.ag-wow #mainLayout > aside nav > a svg,
#mainLayout > aside .agro-investor-nav-icon,
body.ag-wow #mainLayout > aside .agro-investor-nav-icon {
  width: 19px !important;
  height: 19px !important;
  flex: 0 0 19px !important;
  color: rgba(244, 239, 230, .66) !important;
  stroke-width: 1.55 !important;
}

#mainLayout > aside nav > a:hover,
body.ag-wow #mainLayout > aside nav > a:hover,
#mainLayout > aside .agro-investor-nav-link:hover,
body.ag-wow #mainLayout > aside .agro-investor-nav-link:hover {
  color: rgba(255, 249, 237, .92) !important;
  background: rgba(255, 255, 255, .040) !important;
  border-color: rgba(223, 216, 198, .070) !important;
  transform: none !important;
}

#mainLayout .nav-link-active,
#mainLayout > aside nav > a.nav-link-active,
#mainLayout > aside nav > a.is-active,
#mainLayout > aside nav > a[aria-current="page"],
body.ag-wow #mainLayout .nav-link-active,
body.ag-wow #mainLayout > aside nav > a.nav-link-active,
body.ag-wow #mainLayout > aside nav > a.is-active,
body.ag-wow #mainLayout > aside nav > a[aria-current="page"],
#mainLayout > aside .agro-investor-nav-link.is-active,
#mainLayout > aside .agro-investor-nav-link[aria-current="page"] {
  color: #fff7e9 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .040), rgba(255, 255, 255, .022)),
    rgba(255, 255, 255, .028) !important;
  border: 1px solid rgba(223, 216, 198, .115) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .018) !important;
}

#mainLayout .nav-link-active::before,
#mainLayout > aside nav > a.nav-link-active::before,
#mainLayout > aside nav > a.is-active::before,
#mainLayout > aside nav > a[aria-current="page"]::before,
body.ag-wow #mainLayout .nav-link-active::before,
body.ag-wow #mainLayout > aside nav > a.nav-link-active::before,
body.ag-wow #mainLayout > aside nav > a.is-active::before,
body.ag-wow #mainLayout > aside nav > a[aria-current="page"]::before,
#mainLayout > aside .agro-investor-nav-link.is-active::before,
#mainLayout > aside .agro-investor-nav-link[aria-current="page"]::before {
  content: none !important;
}

#mainLayout .nav-link-active svg,
#mainLayout > aside nav > a.nav-link-active svg,
#mainLayout > aside nav > a.is-active svg,
#mainLayout > aside nav > a[aria-current="page"] svg,
body.ag-wow #mainLayout .nav-link-active svg,
#mainLayout > aside .agro-investor-nav-link.is-active .agro-investor-nav-icon,
#mainLayout > aside .agro-investor-nav-link[aria-current="page"] .agro-investor-nav-icon {
  color: #fff3d7 !important;
}

#mainLayout > aside .mt-auto,
#mainLayout > aside .catalog-access-panel,
#mainLayout > aside .project-sidebar-identity,
#mainLayout > aside .agro-identity-card,
body.ag-wow #mainLayout > aside .mt-auto,
body.ag-wow #mainLayout > aside .catalog-access-panel,
body.ag-wow #mainLayout > aside .project-sidebar-identity,
body.ag-wow #mainLayout > aside .agro-identity-card {
  margin-top: 14px !important;
  padding: 16px !important;
  border-radius: 23px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .052), rgba(255, 255, 255, .025)),
    rgba(42, 52, 43, .92) !important;
  border: 1px solid rgba(223, 216, 198, .085) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18) !important;
}

#mainLayout > aside .identity-logout-btn,
#mainLayout > aside [data-agro-logout="1"],
#mainLayout > aside #logoutBtn,
#mainLayout > aside #sidebarLogoutBtn,
body.ag-wow #mainLayout > aside .identity-logout-btn,
body.ag-wow #mainLayout > aside [data-agro-logout="1"],
body.ag-wow #mainLayout > aside #logoutBtn,
body.ag-wow #mainLayout > aside #sidebarLogoutBtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 42px !important;
  margin-top: 12px !important;
  padding: 0 14px !important;
  border-radius: 13px !important;
  border: 1px solid rgba(223, 216, 198, .120) !important;
  background: rgba(255, 255, 255, .026) !important;
  color: rgba(244, 239, 230, .66) !important;
  font-family: Onest, Inter, system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 540 !important;
  line-height: 1.15 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

#mainLayout > aside .identity-logout-btn:hover,
#mainLayout > aside [data-agro-logout="1"]:hover,
#mainLayout > aside #logoutBtn:hover,
#mainLayout > aside #sidebarLogoutBtn:hover,
body.ag-wow #mainLayout > aside .identity-logout-btn:hover,
body.ag-wow #mainLayout > aside [data-agro-logout="1"]:hover,
body.ag-wow #mainLayout > aside #logoutBtn:hover,
body.ag-wow #mainLayout > aside #sidebarLogoutBtn:hover {
  color: #fff7e9 !important;
  background: rgba(255, 255, 255, .045) !important;
  border-color: rgba(223, 216, 198, .18) !important;
}

.agro-mobile-identity-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .052), rgba(255, 255, 255, .025)),
    rgba(31, 35, 32, .92);
  border: 1px solid rgba(223, 216, 198, .10);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}

.agro-mobile-identity-row {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.agro-mobile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  color: #dfbd73;
  background: rgba(216, 173, 87, .12);
}

.agro-mobile-avatar svg {
  width: 20px;
  height: 20px;
}

.agro-mobile-copy {
  min-width: 0;
}

.agro-mobile-name {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff7e9;
  font-family: Onest, Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
}

.agro-mobile-role {
  margin: 3px 0 0;
  color: rgba(244, 239, 230, .50);
  font-family: Onest, Inter, system-ui, sans-serif;
  font-size: 9.5px;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.agro-mobile-identity-card .identity-logout-btn,
.agro-mobile-identity-card [data-agro-logout="1"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border-radius: 13px !important;
  border: 1px solid rgba(223, 216, 198, .120) !important;
  background: rgba(255, 255, 255, .026) !important;
  color: rgba(244, 239, 230, .66) !important;
  font-family: Onest, Inter, system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 540 !important;
}

@media (max-height: 900px) and (min-width: 921px) {
  #mainLayout > aside nav,
  #mainLayout > aside .agro-investor-nav {
    gap: 3px !important;
    padding-right: 5px !important;
  }

  #mainLayout > aside nav > a,
  #mainLayout > aside .agro-investor-nav-link {
    min-height: 40px !important;
    padding: 0 12px !important;
    border-radius: 13px !important;
    font-size: 13px !important;
  }

  #mainLayout > aside nav > a svg,
  #mainLayout > aside .agro-investor-nav-icon {
    width: 17px !important;
    height: 17px !important;
    flex-basis: 17px !important;
  }

  #mainLayout > aside .mt-auto,
  #mainLayout > aside .catalog-access-panel,
  #mainLayout > aside .project-sidebar-identity,
  #mainLayout > aside .agro-identity-card {
    padding: 12px !important;
    border-radius: 19px !important;
  }
}

@media (max-width: 920px) {
  #mobileMenu.fixed.inset-0 > .absolute.top-0.left-0.bottom-0 {
    width: min(330px, 85vw) !important;
    max-width: 330px !important;
    padding: 20px 18px 22px !important;
    gap: 16px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .044), rgba(255, 255, 255, .018)),
      rgba(32, 48, 38, .98) !important;
    border-right: 1px solid rgba(223, 216, 198, .12) !important;
  }

  #mobileMenu.fixed.inset-0 > .absolute.top-0.left-0.bottom-0 > .flex:first-child {
    min-height: 74px !important;
    align-items: flex-start !important;
  }

  #mobileMenu.fixed.inset-0 img[src*="agroveles-brand"] {
    width: 128px !important;
    max-width: 128px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: left center !important;
  }

  body.investments-polish #mobileMenu.fixed.inset-0 img[src*="agroveles-brand"] {
    width: 156px !important;
    max-width: 156px !important;
  }

  #mobileMenu.fixed.inset-0 button[onclick*="toggleMenu"] {
    color: #dfbd73 !important;
  }

  #mobileMenu.fixed.inset-0 button[onclick*="toggleMenu"] svg {
    width: 24px !important;
    height: 24px !important;
    stroke-width: 1.8 !important;
  }

  #mobileMenu.fixed.inset-0 nav,
  #mobileMenu.fixed.inset-0 .agro-investor-nav {
    gap: 10px !important;
    padding-right: 0 !important;
  }
}

/* MMAT inner pages rollout, mirror-only, 2026-06-28.
   Final shared layer for investor/admin/manager route shells. */
body.ag-shell-premium,
body.admin-shell,
body.ag-wow {
  color: var(--agro-text) !important;
  background:
    linear-gradient(180deg, rgba(216, 173, 87, .055) 0%, transparent 23rem),
    linear-gradient(135deg, rgba(134, 166, 111, .085) 0%, transparent 36rem),
    linear-gradient(180deg, #18231d 0%, #1f2e25 48%, #162119 100%) !important;
}

body.ag-shell-premium .hero-shell,
body.ag-shell-premium .shell-toolbar,
body.ag-shell-premium .subnav,
body.ag-shell-premium .data-panel,
body.ag-shell-premium .metric-card,
body.ag-shell-premium .detail-card,
body.ag-shell-premium .mobile-card,
body.ag-shell-premium .rail-card,
body.ag-shell-premium .filters,
body.ag-shell-premium .table-wrap,
body.admin-shell .admin-panel,
body.admin-shell .admin-card,
body.admin-shell .admin-table-wrap,
body.admin-shell .admin-header,
body.admin-shell .admin-detail-item,
body.admin-shell .form-panel,
body.admin-shell .state-box-shell,
body.ag-wow .card-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .046), rgba(255, 255, 255, .020)),
    rgba(37, 52, 43, .94) !important;
  border: 1px solid rgba(223, 216, 198, .13) !important;
  border-radius: 20px !important;
  box-shadow: 0 18px 52px rgba(0, 0, 0, .22) !important;
}

body.ag-shell-premium .hero-shell {
  min-height: auto !important;
}

body.ag-shell-premium .subnav,
body.ag-shell-premium .shell-toolbar {
  border-radius: 16px !important;
}

body.ag-shell-premium .page-title,
body.ag-shell-premium .hero-spotlight-title,
body.ag-shell-premium .rail-title,
body.admin-shell .admin-page-title,
body.admin-shell .admin-section-title {
  color: #fff7e9 !important;
  letter-spacing: 0 !important;
}

body.ag-shell-premium .page-subtitle,
body.ag-shell-premium .hero-spotlight-text,
body.ag-shell-premium .rail-text,
body.ag-shell-premium .metric-note,
body.ag-shell-premium .cell-subtitle,
body.ag-shell-premium .detail-label,
body.admin-shell .admin-muted,
body.admin-shell .admin-kpi-label {
  color: rgba(244, 239, 230, .66) !important;
}

body.ag-shell-premium .metric-value,
body.ag-shell-premium .detail-value,
body.ag-shell-premium .lead-metric-value,
body.ag-shell-premium .quote-stat-value,
body.ag-shell-premium .numeric,
body.ag-shell-premium .amount,
body.admin-shell .admin-kpi-value,
body.admin-shell .numeric {
  color: #fff7e9 !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: 0 !important;
  max-width: 100%;
  overflow-wrap: anywhere;
}

body.ag-shell-premium .btn,
body.admin-shell .admin-button,
body.admin-shell .link-button,
body.admin-shell button[type="submit"] {
  border-radius: 13px !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}

body.ag-shell-premium .btn-gold,
body.admin-shell .admin-button-primary,
body.admin-shell button[type="submit"] {
  color: #1b1b1b !important;
  background: linear-gradient(180deg, #e1bd6a, #c7963f) !important;
  border-color: rgba(216, 173, 87, .35) !important;
}

body.ag-shell-premium .btn-outline,
body.admin-shell .admin-button-secondary,
body.admin-shell .link-button {
  color: #e3bd67 !important;
  background: rgba(255, 255, 255, .030) !important;
  border-color: rgba(223, 216, 198, .16) !important;
}

body.ag-shell-premium .form-input,
body.ag-shell-premium .form-select,
body.admin-shell .admin-field,
body.admin-shell input,
body.admin-shell select,
body.admin-shell textarea {
  color: #fff7e9 !important;
  background: rgba(255, 255, 255, .045) !important;
  border-color: rgba(223, 216, 198, .16) !important;
  border-radius: 13px !important;
}

body.ag-shell-premium .skeleton,
body.admin-shell .skeleton {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .032) 25%, rgba(216, 173, 87, .095) 50%, rgba(255, 255, 255, .032) 75%) !important;
  background-size: 220% 100% !important;
}

body.ag-shell-premium .data-table,
body.admin-shell .admin-table,
body.admin-shell .data-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

body.ag-shell-premium .data-table th,
body.admin-shell .admin-table th,
body.admin-shell .data-table th {
  color: rgba(244, 239, 230, .58) !important;
  background: rgba(255, 255, 255, .025) !important;
  border-color: rgba(223, 216, 198, .10) !important;
}

body.ag-shell-premium .data-table td,
body.admin-shell .admin-table td,
body.admin-shell .data-table td {
  border-color: rgba(223, 216, 198, .09) !important;
}

body.ag-shell-premium .mobile-card + .mobile-card,
body.ag-shell-premium .detail-card + .detail-card,
body.admin-shell .admin-panel + .admin-panel {
  margin-top: 12px;
}

@media (max-width: 760px) {
  body.ag-shell-premium .hero-shell,
  body.ag-shell-premium .shell-toolbar,
  body.ag-shell-premium .data-panel,
  body.ag-shell-premium .metric-card,
  body.ag-shell-premium .detail-card,
  body.ag-shell-premium .mobile-card,
  body.admin-shell .admin-panel,
  body.admin-shell .admin-card {
    border-radius: 16px !important;
  }

  body.ag-shell-premium .page-title,
  body.admin-shell .admin-page-title {
    font-size: clamp(24px, 8vw, 34px) !important;
    line-height: 1.05 !important;
  }
}

/* MMAT catalog shell repair, mirror-only, 2026-06-28.
   Keeps /projects/ aligned with the internal app shell without touching live production. */
body.ag-catalog-shell #mainLayout {
  max-width: 1480px !important;
  grid-template-columns: 236px minmax(0, 1fr) !important;
  gap: 24px !important;
}

body.ag-catalog-shell #mainLayout > aside {
  height: calc(100vh - 40px) !important;
  max-height: none !important;
  border-radius: 20px;
}

body.ag-catalog-shell #mainLayout > aside > div:first-child {
  display: grid !important;
  align-items: start !important;
  gap: 10px !important;
  margin: 0 0 12px !important;
  padding: 0 16px 14px !important;
  border-bottom: 1px solid rgba(223, 216, 198, .055) !important;
}

body.ag-catalog-shell #mainLayout > aside > div:first-child img {
  width: min(100%, 164px) !important;
  max-width: 164px !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: left center !important;
}

body.ag-catalog-shell .wow-topbar {
  align-items: flex-start !important;
  gap: 22px !important;
  padding: 2px 0 4px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.ag-catalog-shell .wow-topbar h1 {
  font-size: clamp(34px, 3.6vw, 48px) !important;
  line-height: 1.02 !important;
  letter-spacing: 0 !important;
}

body.ag-catalog-shell .catalog-public-lead {
  max-width: 50rem !important;
  margin-top: 8px;
  color: rgba(244, 239, 230, .68) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

body.ag-catalog-shell .catalog-public-desktop-actions {
  align-self: flex-start;
  gap: 12px !important;
  padding-top: 6px;
}

body.ag-catalog-shell .wow-readable-btn,
body.ag-catalog-shell .wow-soft-btn,
body.ag-catalog-shell .wow-outline-btn {
  min-height: 42px !important;
  padding: 0 16px !important;
  border-radius: 14px !important;
  letter-spacing: 0 !important;
}

body.ag-catalog-shell .wow-profile-chip {
  max-width: 286px !important;
  min-height: 46px !important;
  padding: 4px 6px 4px 15px !important;
  border-radius: 16px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .040), rgba(255, 255, 255, .018)),
    rgba(20, 25, 21, .78) !important;
  border-color: rgba(223, 216, 198, .12) !important;
  box-shadow: none !important;
}

body.ag-catalog-shell .wow-profile-meta {
  min-width: 0 !important;
  max-width: 216px !important;
}

body.ag-catalog-shell .wow-profile-title {
  overflow: hidden !important;
  color: rgba(255, 247, 233, .88) !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.ag-catalog-shell .wow-avatar {
  width: 38px !important;
  height: 38px !important;
  border-radius: 13px !important;
}

body.ag-catalog-shell .wow-filter-shell {
  display: flex !important;
  min-height: 62px !important;
  padding: 11px 14px !important;
  border-radius: 18px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .042), rgba(255, 255, 255, .018)),
    rgba(36, 52, 42, .84) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18) !important;
}

body.ag-catalog-shell .wow-filter-label {
  font-size: 10px !important;
  letter-spacing: .16em !important;
}

body.ag-catalog-shell #filterStatus,
body.ag-catalog-shell #filterLimit {
  min-height: 40px !important;
  border-radius: 13px !important;
  background-color: rgba(12, 18, 14, .40) !important;
}

body.ag-catalog-shell .wow-pager {
  gap: 8px !important;
}

body.ag-catalog-shell .wow-pager-btn {
  width: 40px !important;
  height: 40px !important;
  border-radius: 13px !important;
}

body.ag-catalog-shell #projectsGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
}

body.ag-catalog-shell #mainLayout #projectsGrid > .card-panel,
body.ag-catalog-shell #projectsGrid > .card-panel {
  min-width: 0;
  opacity: 1 !important;
  animation: none !important;
  border-radius: 20px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .034), rgba(255, 255, 255, .014)),
    rgba(35, 50, 41, .94) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22) !important;
}

body.ag-catalog-shell #mainLayout #projectsGrid > .card-panel:hover,
body.ag-catalog-shell #projectsGrid > .card-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 54px rgba(0, 0, 0, .28) !important;
}

body.ag-catalog-shell #mainLayout #projectsGrid > .card-panel > div:first-child,
body.ag-catalog-shell #projectsGrid > .card-panel > div:first-child {
  height: 176px !important;
}

body.ag-catalog-shell #mainLayout #projectsGrid > .card-panel > div:last-child,
body.ag-catalog-shell #projectsGrid > .card-panel > div:last-child {
  padding: 18px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .020), rgba(255, 255, 255, .006)),
    rgba(32, 48, 38, .96) !important;
}

body.ag-catalog-shell #projectsGrid .catalog-mobile-chip {
  max-width: calc(100% - 8px);
  padding: 6px 10px !important;
  border-radius: 999px !important;
  font-size: 10px !important;
  letter-spacing: .07em !important;
  line-height: 1.1 !important;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: keep-all;
}

body.ag-catalog-shell #projectsGrid .catalog-mobile-meta {
  color: rgba(244, 239, 230, .62) !important;
  line-height: 1.35 !important;
}

body.ag-catalog-shell #projectsGrid .catalog-mobile-summary {
  min-height: 38px;
  margin-bottom: 14px !important;
  color: rgba(244, 239, 230, .64) !important;
  line-height: 1.45 !important;
}

body.ag-catalog-shell .catalog-card-metrics {
  gap: 7px;
  margin-bottom: 14px;
}

body.ag-catalog-shell .catalog-card-metric {
  padding: 9px 9px 8px;
  border-radius: 12px;
}

body.ag-catalog-shell .catalog-card-metric span {
  margin-bottom: 5px;
  font-size: 9px;
  letter-spacing: .12em;
}

body.ag-catalog-shell .catalog-card-metric strong {
  min-height: 28px;
  overflow: visible;
  font-size: 12px;
  line-height: 1.16;
  text-overflow: clip;
  white-space: normal;
}

body.ag-catalog-shell #projectsGrid [id^="actions-"] {
  gap: 10px;
}

body.ag-catalog-shell #projectsGrid .catalog-mobile-action,
body.ag-catalog-shell #projectsGrid .wow-outline-btn,
body.ag-catalog-shell #projectsGrid .action-btn,
body.ag-catalog-shell #projectsGrid .action-btn-gold {
  min-height: 42px;
  border-radius: 13px !important;
  font-size: 11.5px !important;
  letter-spacing: 0 !important;
}

body.ag-catalog-shell .catalog-access-panel {
  display: grid !important;
  gap: 12px !important;
  padding: 14px !important;
}

body.ag-catalog-shell .catalog-access-panel > .flex {
  min-width: 0;
  margin-bottom: 0 !important;
  gap: 10px !important;
}

body.ag-catalog-shell .catalog-access-panel .rounded-full {
  width: 38px !important;
  height: 38px !important;
}

body.ag-catalog-shell .catalog-access-panel #sbUserName {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 247, 233, .88) !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal !important;
}

body.ag-catalog-shell .catalog-access-panel #sbAccessLabel {
  max-width: 100%;
  overflow: hidden;
  font-size: 9px !important;
  text-overflow: ellipsis;
  white-space: nowrap !important;
}

body.ag-catalog-shell #sidebarLogoutBtn,
body.ag-catalog-shell .catalog-access-primary,
body.ag-catalog-shell .catalog-access-secondary {
  min-height: 40px !important;
  margin-top: 0 !important;
  border-radius: 13px !important;
}

@media (max-width: 1280px) {
  body.ag-catalog-shell #projectsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1023px) {
  body.ag-catalog-shell #mainLayout {
    display: block !important;
    padding: 18px 16px !important;
  }

  body.ag-catalog-shell .wow-topbar {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start !important;
    gap: 14px !important;
    margin-bottom: 18px !important;
  }

  body.ag-catalog-shell .catalog-shell-toggle {
    padding-top: 2px;
  }

  body.ag-catalog-shell .wow-topbar h1 {
    font-size: clamp(30px, 9vw, 42px) !important;
  }

  body.ag-catalog-shell .catalog-public-lead {
    font-size: 13px !important;
    line-height: 1.42 !important;
  }
}

@media (max-width: 760px) {
  body.ag-catalog-shell #projectsGrid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  body.ag-catalog-shell .wow-filter-shell {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 10px !important;
    min-height: 0 !important;
    padding: 12px !important;
    border-radius: 16px !important;
  }

  body.ag-catalog-shell .catalog-filter-primary {
    display: grid !important;
    grid-template-columns: 60px minmax(0, 1fr);
    align-items: center;
    gap: 10px !important;
    width: 100% !important;
  }

  body.ag-catalog-shell .catalog-filter-secondary {
    display: grid !important;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
    gap: 10px !important;
    width: 100% !important;
  }

  body.ag-catalog-shell .catalog-filter-limit {
    width: 100% !important;
    max-width: none !important;
  }

  body.ag-catalog-shell .catalog-filter-limit #filterLimit {
    width: 100% !important;
  }

  body.ag-catalog-shell .catalog-filter-secondary .wow-pager {
    display: grid !important;
    grid-template-columns: 40px minmax(32px, 1fr) 40px;
    align-items: center;
    gap: 8px !important;
    width: 100% !important;
  }

  body.ag-catalog-shell #mainLayout #projectsGrid > .card-panel > div:first-child,
  body.ag-catalog-shell #projectsGrid > .card-panel > div:first-child {
    height: 170px !important;
  }

  body.ag-catalog-shell .catalog-card-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.ag-catalog-shell .catalog-card-metric:nth-child(3) {
    grid-column: 1 / -1;
  }

  body.ag-catalog-shell .catalog-card-metric strong {
    min-height: 0;
  }
}

/* MMAT mirror app-shell overlap guard, 2026-06-28.
   Normalizes dense inner-cabinet panels after the shared visual pass. */
body.ag-shell-premium.shell-redesign-v1 .main {
  gap: 20px !important;
}

body.ag-shell-premium.shell-redesign-v1 .hero-shell,
body.ag-shell-premium.shell-redesign-v1 .shell-toolbar,
body.ag-shell-premium.shell-redesign-v1 .filters,
body.ag-shell-premium.shell-redesign-v1 .data-panel {
  position: relative;
  isolation: isolate;
}

body.ag-shell-premium.shell-redesign-v1 .hero-shell {
  overflow: visible !important;
  padding-bottom: 20px !important;
}

body.ag-shell-premium.shell-redesign-v1 .page-title {
  line-height: 1.12 !important;
  padding-bottom: .04em;
  overflow: visible;
}

body.ag-shell-premium.shell-redesign-v1 .hero-side,
body.ag-shell-premium.shell-redesign-v1 .hero-spotlight,
body.ag-shell-premium.shell-redesign-v1 .hero-actions,
body.ag-shell-premium.shell-redesign-v1 .top-actions {
  min-width: 0;
}

body.ag-shell-premium.shell-redesign-v1 .top-actions {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
}

body.ag-shell-premium.shell-redesign-v1 .hero-actions {
  align-items: stretch;
}

body.ag-shell-premium.shell-redesign-v1 .hero-actions .btn,
body.ag-shell-premium.shell-redesign-v1 .subnav-link,
body.ag-shell-premium.shell-redesign-v1 .filters .btn,
body.ag-shell-premium.shell-redesign-v1 .identity-logout-btn {
  line-height: 1.2 !important;
  white-space: normal;
}

body.ag-shell-premium.shell-redesign-v1 .shell-toolbar {
  margin-top: 0 !important;
}

body.ag-shell-premium.shell-redesign-v1 .subnav {
  min-height: 48px;
  align-items: center;
}

body.ag-shell-premium.shell-redesign-v1 .filters {
  align-items: end;
}

body.ag-shell-premium.shell-redesign-v1 .data-panel .panel-head {
  position: relative;
  z-index: 2;
}

body.ag-shell-premium.shell-redesign-v1 .state-box {
  isolation: isolate;
}

body.ag-shell-premium.shell-redesign-v1 .side-user,
body.ag-shell-premium.shell-redesign-v1 .side-user-row,
body.ag-shell-premium.shell-redesign-v1 .side-user-row > .truncate {
  min-width: 0;
}

body.ag-shell-premium.shell-redesign-v1 .side-user-name {
  line-height: 1.28 !important;
}

@media (max-width: 760px) {
  body.ag-shell-premium.shell-redesign-v1 .main {
    gap: 22px !important;
  }

  body.ag-shell-premium.shell-redesign-v1 .hero-shell {
    padding: 20px 18px !important;
    gap: 18px !important;
  }

  body.ag-shell-premium.shell-redesign-v1 .hero-copy {
    padding-right: 0;
  }

  body.ag-shell-premium.shell-redesign-v1 .hero-topline {
    padding-right: 0;
  }

  body.ag-shell-premium.shell-redesign-v1 .top-actions {
    display: none !important;
  }

  body.ag-shell-premium.shell-redesign-v1 .top-actions .icon-button {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
  }

  body.ag-shell-premium.shell-redesign-v1 .hero-side {
    display: block !important;
    position: static !important;
  }

  body.ag-shell-premium.shell-redesign-v1 .hero-spotlight {
    margin-top: 0 !important;
  }

  body.ag-shell-premium.shell-redesign-v1 .hero-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-top: 0 !important;
  }

  body.ag-shell-premium.shell-redesign-v1 .hero-actions .btn {
    min-height: 54px !important;
    padding: 10px 14px !important;
    justify-content: center !important;
    text-align: center;
  }

  body.ag-shell-premium.shell-redesign-v1 .shell-toolbar,
  body.ag-shell-premium.shell-redesign-v1 .filters,
  body.ag-shell-premium.shell-redesign-v1 .data-panel {
    clear: both;
  }
}

@media (max-width: 420px) {
  body.ag-shell-premium.shell-redesign-v1 .hero-copy {
    padding-right: 0;
  }

  body.ag-shell-premium.shell-redesign-v1 .page-title {
    font-size: clamp(27px, 8vw, 32px) !important;
    line-height: 1.13 !important;
  }
}

/* Mirror-only project detail cleanup: calmer first project card, less repeated chrome. */
.project-detail-page .project-header-hint {
  display: none !important;
}

.project-detail-page .hero.card-panel,
.project-detail-page .hero.card-panel.project-deal-card,
.project-detail-page.public-view .hero,
.project-detail-page.private-view .hero {
  overflow: hidden !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px) !important;
  align-items: stretch !important;
  gap: 22px !important;
  padding: 24px !important;
  border-radius: 24px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .032), rgba(255, 255, 255, .012)),
    rgba(17, 27, 21, .97) !important;
  border-color: rgba(222, 214, 194, .10) !important;
  box-shadow: 0 20px 52px rgba(4, 10, 7, .16) !important;
}

.project-detail-page .hero.card-panel::after {
  display: none !important;
}

.project-detail-page .hero-meta {
  display: grid !important;
  align-content: center !important;
  gap: 16px !important;
  min-width: 0;
}

.project-detail-page .hero .eyebrow {
  display: none !important;
}

.project-detail-page .hero-badges {
  order: 1;
  margin: 0 !important;
  gap: 8px !important;
}

.project-detail-page .hero-badges .chip:not(:first-child) {
  display: none !important;
}

.project-detail-page .hero-badges .chip,
.project-detail-page .hero .chip {
  min-height: 30px !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  color: rgba(245, 220, 164, .92) !important;
  background: rgba(216, 173, 87, .075) !important;
  border-color: rgba(216, 173, 87, .16) !important;
  font-size: 9.5px !important;
  letter-spacing: .13em !important;
}

.project-detail-page .hero-stats {
  order: 2;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  margin: 0 !important;
  overflow: hidden;
  padding: 15px 0;
  border-top: 1px solid rgba(222, 214, 194, .09);
  border-bottom: 1px solid rgba(222, 214, 194, .09);
  border-radius: 0;
  background: transparent;
}

.project-detail-page.public-view .hero-stats,
.project-detail-page.private-view .hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.project-detail-page.public-view .hero-stats > :last-child:nth-child(odd),
.project-detail-page.private-view .hero-stats > :last-child:nth-child(odd) {
  grid-column: auto !important;
}

.project-detail-page .hero-stats .stat-card {
  min-height: 0 !important;
  padding: 0 18px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.project-detail-page .hero-stats .stat-card:not(:last-child) {
  border-right: 1px solid rgba(222, 214, 194, .075) !important;
}

.project-detail-page .hero-stats .stat-label {
  color: rgba(244, 239, 230, .46) !important;
  font-size: 9.5px !important;
  letter-spacing: .12em !important;
}

.project-detail-page .hero-stats .stat-value,
.project-detail-page.public-view .hero-stats .stat-value {
  margin: 6px 0 4px !important;
  color: #fff7e8 !important;
  font-size: clamp(20px, 1.55vw, 27px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.02em !important;
  overflow-wrap: anywhere;
}

.project-detail-page .hero-stats .stat-note {
  color: rgba(244, 239, 230, .58) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.project-detail-page .hero-actions {
  order: 3;
  margin: 0 !important;
  gap: 10px !important;
}

.project-detail-page .hero-actions > :nth-child(n + 3) {
  display: none !important;
}

.project-detail-page .hero-actions .cta,
.project-detail-page .hero-actions .cta-secondary {
  min-height: 42px !important;
  padding: 0 16px !important;
  border-radius: 13px !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

.project-detail-page .hero-actions .cta-secondary {
  color: rgba(244, 239, 230, .80) !important;
  background: rgba(255, 255, 255, .018) !important;
  border-color: rgba(244, 239, 230, .11) !important;
}

.project-detail-page .hero .cover-card {
  order: 0 !important;
  align-self: stretch;
  min-height: 0 !important;
  aspect-ratio: 16 / 10;
  border-radius: 18px !important;
  border-color: rgba(222, 214, 194, .10) !important;
  background: rgba(255, 255, 255, .02) !important;
  box-shadow: none !important;
}

.project-detail-page .hero .cover-card::before {
  background:
    linear-gradient(180deg, rgba(8, 13, 9, .02), rgba(8, 13, 9, .12)),
    linear-gradient(135deg, rgba(216, 173, 87, .08), transparent 58%) !important;
}

.project-detail-page .hero .cover-card img {
  filter: saturate(.94) contrast(1.02) brightness(.98) !important;
}

.project-detail-page .hero .cover-card-content {
  display: none !important;
}

@media (max-width: 1100px) {
  .project-detail-page .hero.card-panel,
  .project-detail-page .hero.card-panel.project-deal-card,
  .project-detail-page.public-view .hero,
  .project-detail-page.private-view .hero {
    grid-template-columns: 1fr !important;
  }

  .project-detail-page .hero .cover-card {
    order: -1 !important;
    min-height: 240px !important;
  }
}

@media (max-width: 720px) {
  .project-detail-page .hero.card-panel,
  .project-detail-page .hero.card-panel.project-deal-card,
  .project-detail-page.public-view .hero,
  .project-detail-page.private-view .hero {
    padding: 18px !important;
    gap: 16px !important;
    border-radius: 20px !important;
  }

  .project-detail-page .hero-stats {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 0;
    border: 1px solid rgba(222, 214, 194, .09);
    border-radius: 16px;
    background: rgba(255, 255, 255, .018);
  }

  .project-detail-page.public-view .hero-stats,
  .project-detail-page.private-view .hero-stats {
    grid-template-columns: 1fr !important;
  }

  .project-detail-page .hero-stats .stat-card {
    padding: 14px 16px !important;
  }

  .project-detail-page .hero-stats .stat-card:not(:last-child) {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(222, 214, 194, .075) !important;
  }

  .project-detail-page .hero .cover-card {
    min-height: 210px !important;
    aspect-ratio: 16 / 9;
  }

  .project-detail-page .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100%;
  }
}

/* MMAT sidebar polish, mirror-only, 2026-06-28.
   Tightens the app rail without changing the existing navigation contract. */
body.ag-shell-premium.shell-redesign-v1 .sidebar,
body:not(.ag-shell-premium) #mainLayout > aside {
  border-radius: 20px !important;
  border: 1px solid rgba(223, 216, 198, .105) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .032), rgba(255, 255, 255, .012)),
    rgba(31, 48, 38, .91) !important;
  box-shadow: 0 22px 54px rgba(0, 0, 0, .24) !important;
}

body.ag-shell-premium.shell-redesign-v1 .brand,
body:not(.ag-shell-premium) #mainLayout > aside > .flex.items-center:first-child,
body:not(.ag-shell-premium) #mainLayout > aside > a.brand:first-child {
  margin-bottom: 12px !important;
  padding: 0 16px 14px !important;
  border-bottom: 1px solid rgba(223, 216, 198, .055) !important;
}

body.ag-shell-premium.shell-redesign-v1 .brand-lockup,
body:not(.ag-shell-premium) #mainLayout > aside > .flex.items-center:first-child img[alt*="AGROVELES"],
body:not(.ag-shell-premium) #mainLayout > aside > .flex.items-center:first-child img[alt*="АГРОВЕЛЕС"],
body:not(.ag-shell-premium) #mainLayout > aside > a.brand:first-child img {
  max-width: 164px !important;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .20)) !important;
}

body.ag-shell-premium.shell-redesign-v1 .side-nav,
#mainLayout > aside nav,
body.ag-wow #mainLayout > aside nav,
#mainLayout > aside .agro-investor-nav,
body.ag-wow #mainLayout > aside .agro-investor-nav {
  gap: 2px !important;
  padding: 0 10px !important;
}

body.ag-shell-premium.shell-redesign-v1 .agro-investor-nav-link,
#mainLayout > aside nav > a,
body.ag-wow #mainLayout > aside nav > a,
#mainLayout > aside .agro-investor-nav-link,
body.ag-wow #mainLayout > aside .agro-investor-nav-link {
  min-height: 40px !important;
  gap: 11px !important;
  padding: 0 10px !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  color: rgba(244, 239, 230, .60) !important;
  font-size: 13px !important;
  font-weight: 570 !important;
  line-height: 1.12 !important;
}

body.ag-shell-premium.shell-redesign-v1 .agro-investor-nav-icon,
#mainLayout > aside nav > a svg,
body.ag-wow #mainLayout > aside nav > a svg,
#mainLayout > aside .agro-investor-nav-icon,
body.ag-wow #mainLayout > aside .agro-investor-nav-icon {
  width: 17px !important;
  height: 17px !important;
  flex: 0 0 17px !important;
  color: rgba(244, 239, 230, .56) !important;
  stroke-width: 1.62 !important;
}

body.ag-shell-premium.shell-redesign-v1 .agro-investor-nav-link:hover,
#mainLayout > aside nav > a:hover,
body.ag-wow #mainLayout > aside nav > a:hover,
#mainLayout > aside .agro-investor-nav-link:hover,
body.ag-wow #mainLayout > aside .agro-investor-nav-link:hover {
  color: rgba(255, 249, 237, .94) !important;
  background: rgba(255, 255, 255, .030) !important;
  border-color: rgba(223, 216, 198, .070) !important;
}

body.ag-shell-premium.shell-redesign-v1 .agro-investor-nav-link.is-active,
body.ag-shell-premium.shell-redesign-v1 .agro-investor-nav-link[aria-current="page"],
#mainLayout .nav-link-active,
#mainLayout > aside nav > a.nav-link-active,
#mainLayout > aside nav > a.is-active,
#mainLayout > aside nav > a[aria-current="page"],
body.ag-wow #mainLayout .nav-link-active,
body.ag-wow #mainLayout > aside nav > a.nav-link-active,
body.ag-wow #mainLayout > aside nav > a.is-active,
body.ag-wow #mainLayout > aside nav > a[aria-current="page"],
#mainLayout > aside .agro-investor-nav-link.is-active,
#mainLayout > aside .agro-investor-nav-link[aria-current="page"] {
  color: #fff6e7 !important;
  background: rgba(255, 255, 255, .040) !important;
  border-color: rgba(223, 216, 198, .095) !important;
  box-shadow: none !important;
}

body.ag-shell-premium.shell-redesign-v1 .agro-investor-nav-link.is-active::before,
body.ag-shell-premium.shell-redesign-v1 .agro-investor-nav-link[aria-current="page"]::before,
#mainLayout .nav-link-active::before,
#mainLayout > aside nav > a.nav-link-active::before,
#mainLayout > aside nav > a.is-active::before,
#mainLayout > aside nav > a[aria-current="page"]::before,
body.ag-wow #mainLayout .nav-link-active::before,
body.ag-wow #mainLayout > aside nav > a.nav-link-active::before,
body.ag-wow #mainLayout > aside nav > a.is-active::before,
body.ag-wow #mainLayout > aside nav > a[aria-current="page"]::before,
#mainLayout > aside .agro-investor-nav-link.is-active::before,
#mainLayout > aside .agro-investor-nav-link[aria-current="page"]::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 10px !important;
  bottom: 10px !important;
  width: 2px !important;
  border-radius: 999px !important;
  background: #d8ad57 !important;
}

body.ag-shell-premium.shell-redesign-v1 .agro-investor-nav-link.is-active .agro-investor-nav-icon,
body.ag-shell-premium.shell-redesign-v1 .agro-investor-nav-link[aria-current="page"] .agro-investor-nav-icon,
#mainLayout .nav-link-active svg,
#mainLayout > aside nav > a.nav-link-active svg,
#mainLayout > aside nav > a.is-active svg,
#mainLayout > aside nav > a[aria-current="page"] svg,
body.ag-wow #mainLayout .nav-link-active svg,
#mainLayout > aside .agro-investor-nav-link.is-active .agro-investor-nav-icon,
#mainLayout > aside .agro-investor-nav-link[aria-current="page"] .agro-investor-nav-icon {
  color: #e6bf6a !important;
}

body.ag-shell-premium.shell-redesign-v1 .side-user,
#mainLayout > aside .mt-auto,
#mainLayout > aside .catalog-access-panel,
#mainLayout > aside .project-sidebar-identity,
#mainLayout > aside .agro-identity-card,
body.ag-wow #mainLayout > aside .mt-auto,
body.ag-wow #mainLayout > aside .catalog-access-panel,
body.ag-wow #mainLayout > aside .project-sidebar-identity,
body.ag-wow #mainLayout > aside .agro-identity-card {
  margin: 12px 10px 0 !important;
  padding: 10px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, .026) !important;
  border: 1px solid rgba(223, 216, 198, .080) !important;
  box-shadow: none !important;
}

body.ag-shell-premium.shell-redesign-v1 .side-user-row,
#mainLayout > aside .mt-auto .flex.items-center.gap-3,
#mainLayout > aside .agro-identity-row {
  gap: 8px !important;
  margin-bottom: 8px !important;
}

body.ag-shell-premium.shell-redesign-v1 .avatar,
#mainLayout > aside .avatar,
#mainLayout > aside .agro-mobile-avatar,
#mainLayout > aside .mt-auto .rounded-full {
  width: 32px !important;
  height: 32px !important;
  flex-basis: 32px !important;
  border-radius: 9px !important;
  background: rgba(216, 173, 87, .105) !important;
}

body.ag-shell-premium.shell-redesign-v1 .avatar svg,
#mainLayout > aside .avatar svg,
#mainLayout > aside .agro-mobile-avatar svg {
  width: 15px !important;
  height: 15px !important;
}

body.ag-shell-premium.shell-redesign-v1 .side-user-name,
#mainLayout > aside .side-user-name,
#mainLayout > aside .agro-mobile-name,
#mainLayout > aside .mt-auto p:first-child {
  color: #fff6e8 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  line-height: 1.18 !important;
}

body.ag-shell-premium.shell-redesign-v1 .side-user-role,
#mainLayout > aside .side-user-role,
#mainLayout > aside .agro-mobile-role,
#mainLayout > aside .mt-auto p:last-child {
  color: rgba(244, 239, 230, .48) !important;
  font-size: 8.5px !important;
  letter-spacing: .12em !important;
  line-height: 1.15 !important;
}

body.ag-shell-premium.shell-redesign-v1 .identity-logout-btn,
#mainLayout > aside .identity-logout-btn,
#mainLayout > aside [data-agro-logout="1"],
#mainLayout > aside #logoutBtn,
#mainLayout > aside #sidebarLogoutBtn,
body.ag-wow #mainLayout > aside .identity-logout-btn,
body.ag-wow #mainLayout > aside [data-agro-logout="1"],
body.ag-wow #mainLayout > aside #logoutBtn,
body.ag-wow #mainLayout > aside #sidebarLogoutBtn {
  min-height: 34px !important;
  margin-top: 6px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  color: rgba(244, 239, 230, .64) !important;
  background: transparent !important;
  border-color: rgba(223, 216, 198, .105) !important;
  font-size: 10.8px !important;
  font-weight: 600 !important;
  letter-spacing: .04em !important;
}

@media (max-height: 820px) and (min-width: 921px) {
  body.ag-shell-premium.shell-redesign-v1 .brand,
  body:not(.ag-shell-premium) #mainLayout > aside > .flex.items-center:first-child,
  body:not(.ag-shell-premium) #mainLayout > aside > a.brand:first-child {
    margin-bottom: 9px !important;
    padding-bottom: 11px !important;
  }

  body.ag-shell-premium.shell-redesign-v1 .agro-investor-nav-link,
  #mainLayout > aside nav > a,
  #mainLayout > aside .agro-investor-nav-link {
    min-height: 36px !important;
    font-size: 12.5px !important;
  }
}

@media (max-width: 920px) {
  body.ag-shell-premium.shell-redesign-v1 .mobile-menu-panel,
  #mobileMenu.fixed.inset-0 > .absolute.top-0.left-0.bottom-0 {
    width: min(330px, 85vw) !important;
    max-width: 330px !important;
    padding: 20px 18px 22px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .030), rgba(255, 255, 255, .010)),
      rgba(31, 48, 38, .985) !important;
  }

  body.ag-shell-premium.shell-redesign-v1 .mobile-menu-head {
    margin-bottom: 20px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid rgba(223, 216, 198, .060) !important;
  }

  body.ag-shell-premium.shell-redesign-v1 .mobile-brand-lockup {
    width: min(100%, 128px) !important;
    max-width: 128px !important;
  }

  body.ag-shell-premium.shell-redesign-v1 .mobile-menu-panel .agro-investor-nav {
    gap: 3px !important;
  }

  body.ag-shell-premium.shell-redesign-v1 .mobile-menu-panel .agro-investor-nav-link,
  #mobileMenu.fixed.inset-0 nav > a,
  #mobileMenu.fixed.inset-0 .agro-investor-nav-link {
    min-height: 52px !important;
    padding: 0 14px !important;
    border-radius: 16px !important;
    font-size: 14px !important;
  }

  body.ag-shell-premium.shell-redesign-v1 .mobile-menu-footer {
    margin-top: 18px !important;
    padding-top: 16px !important;
  }
}

/* MMAT mirror button cleanup, 2026-06-28.
   Keeps app-shell actions quiet and removes the heavy reset-filter rectangle. */
body.ag-shell-premium.shell-redesign-v1 .btn,
body.ag-shell-premium.shell-redesign-v1 .hero-actions .btn,
body.ag-shell-premium.shell-redesign-v1 .state-actions .btn,
body.ag-shell-premium.shell-redesign-v1 .card-actions .btn {
  min-height: 38px !important;
  min-width: 0 !important;
  max-width: 100%;
  padding: 0 13px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 620 !important;
  line-height: 1.18 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap;
  box-shadow: none !important;
}

body.ag-shell-premium.shell-redesign-v1 .btn svg,
body.ag-shell-premium.shell-redesign-v1 .hero-actions .btn svg,
body.ag-shell-premium.shell-redesign-v1 .state-actions .btn svg,
body.ag-shell-premium.shell-redesign-v1 .card-actions .btn svg {
  width: 15px !important;
  height: 15px !important;
  flex: 0 0 15px;
  stroke-width: 1.8 !important;
}

body.ag-shell-premium.shell-redesign-v1 .btn-gold,
body.ag-shell-premium.shell-redesign-v1 .btn-primary,
body.ag-shell-premium.shell-redesign-v1 .hero-actions .btn-gold,
body.ag-shell-premium.shell-redesign-v1 .hero-actions .btn-primary {
  color: #162018 !important;
  background: linear-gradient(180deg, #dfbd70 0%, #c89b49 100%) !important;
  border-color: rgba(231, 198, 125, .34) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .20) !important;
}

body.ag-shell-premium.shell-redesign-v1 .btn-gold:hover:not(:disabled),
body.ag-shell-premium.shell-redesign-v1 .btn-primary:hover:not(:disabled),
body.ag-shell-premium.shell-redesign-v1 .hero-actions .btn-gold:hover:not(:disabled),
body.ag-shell-premium.shell-redesign-v1 .hero-actions .btn-primary:hover:not(:disabled) {
  color: #111711 !important;
  background: linear-gradient(180deg, #e7c67d 0%, #d2a352 100%) !important;
  border-color: rgba(236, 210, 151, .44) !important;
  transform: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22) !important;
}

body.ag-shell-premium.shell-redesign-v1 .btn-outline,
body.ag-shell-premium.shell-redesign-v1 .btn-secondary,
body.ag-shell-premium.shell-redesign-v1 .hero-actions .btn-outline,
body.ag-shell-premium.shell-redesign-v1 .hero-actions .btn-secondary,
body.ag-shell-premium.shell-redesign-v1 .card-actions .btn-outline,
body.ag-shell-premium.shell-redesign-v1 .card-actions .btn-secondary {
  color: rgba(244, 239, 230, .78) !important;
  background: rgba(255, 255, 255, .022) !important;
  border-color: rgba(223, 216, 198, .105) !important;
}

body.ag-shell-premium.shell-redesign-v1 .btn-outline:hover:not(:disabled),
body.ag-shell-premium.shell-redesign-v1 .btn-secondary:hover:not(:disabled),
body.ag-shell-premium.shell-redesign-v1 .hero-actions .btn-outline:hover:not(:disabled),
body.ag-shell-premium.shell-redesign-v1 .hero-actions .btn-secondary:hover:not(:disabled),
body.ag-shell-premium.shell-redesign-v1 .card-actions .btn-outline:hover:not(:disabled),
body.ag-shell-premium.shell-redesign-v1 .card-actions .btn-secondary:hover:not(:disabled) {
  color: #fff8ec !important;
  background: rgba(134, 166, 111, .085) !important;
  border-color: rgba(159, 190, 134, .24) !important;
  transform: none !important;
}

body.ag-shell-premium.shell-redesign-v1 .hero-actions {
  gap: 8px !important;
}

body.ag-shell-premium.shell-redesign-v1 .hero-actions .btn {
  width: auto !important;
  min-height: 39px !important;
  padding-inline: 14px !important;
}

body.ag-shell-premium.shell-redesign-v1 .filters {
  grid-template-columns: repeat(4, minmax(150px, 1fr)) minmax(0, auto) !important;
  gap: 12px !important;
  padding: 15px !important;
}

body.ag-shell-premium.shell-redesign-v1 .filters .form-input,
body.ag-shell-premium.shell-redesign-v1 .filters .form-select,
body.ag-shell-premium.shell-redesign-v1 .filters .form-textarea {
  min-height: 40px !important;
  border-radius: 10px !important;
}

body.ag-shell-premium.shell-redesign-v1 .filters > button[data-reset],
body.ag-shell-premium.shell-redesign-v1 .filters .btn[data-reset] {
  align-self: end;
  justify-self: end;
  width: auto !important;
  min-height: 40px !important;
  padding: 0 9px !important;
  color: rgba(244, 239, 230, .56) !important;
  background: transparent !important;
  border-color: transparent !important;
  border-radius: 9px !important;
}

body.ag-shell-premium.shell-redesign-v1 .filters > button[data-reset]:hover,
body.ag-shell-premium.shell-redesign-v1 .filters .btn[data-reset]:hover {
  color: #e4bd68 !important;
  background: rgba(216, 173, 87, .065) !important;
  border-color: rgba(216, 173, 87, .12) !important;
}

body.ag-shell-premium.shell-redesign-v1 .filters > button[data-reset] svg,
body.ag-shell-premium.shell-redesign-v1 .filters .btn[data-reset] svg {
  width: 14px !important;
  height: 14px !important;
}

body.ag-shell-premium.shell-redesign-v1 .state-actions {
  gap: 8px !important;
}

body.ag-shell-premium.shell-redesign-v1 .state-actions .btn[data-reset-empty-docs],
body.ag-shell-premium.shell-redesign-v1 .state-actions .btn[data-reset-balance-history],
body.ag-shell-premium.shell-redesign-v1 .state-actions .btn[data-reset-notifications],
body.ag-shell-premium.shell-redesign-v1 .state-actions .btn[data-reset-payouts] {
  width: auto !important;
  min-width: 0 !important;
  min-height: 34px !important;
  padding: 0 8px !important;
  color: rgba(244, 239, 230, .58) !important;
  background: transparent !important;
  border-color: transparent !important;
  font-size: 12px !important;
  gap: 6px !important;
}

body.ag-shell-premium.shell-redesign-v1 .state-actions .btn[data-reset-empty-docs]:hover,
body.ag-shell-premium.shell-redesign-v1 .state-actions .btn[data-reset-balance-history]:hover,
body.ag-shell-premium.shell-redesign-v1 .state-actions .btn[data-reset-notifications]:hover,
body.ag-shell-premium.shell-redesign-v1 .state-actions .btn[data-reset-payouts]:hover {
  color: #e4bd68 !important;
  background: rgba(216, 173, 87, .060) !important;
  border-color: rgba(216, 173, 87, .16) !important;
}

@media (max-width: 760px) {
  body.ag-shell-premium.shell-redesign-v1 .btn,
  body.ag-shell-premium.shell-redesign-v1 .hero-actions .btn,
  body.ag-shell-premium.shell-redesign-v1 .state-actions .btn,
  body.ag-shell-premium.shell-redesign-v1 .card-actions .btn {
    white-space: normal;
  }

  body.ag-shell-premium.shell-redesign-v1 .filters {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 14px !important;
  }

  body.ag-shell-premium.shell-redesign-v1 .filters > button[data-reset],
  body.ag-shell-premium.shell-redesign-v1 .filters .btn[data-reset] {
    justify-self: start;
    width: auto !important;
    min-height: 34px !important;
    margin-top: -2px;
    padding: 0 6px !important;
  }
}

body:not(.ag-shell-premium) #mainLayout .btn-gold,
body:not(.ag-shell-premium) #mainLayout .btn-primary,
body:not(.ag-shell-premium) #mainLayout .btn-outline,
body:not(.ag-shell-premium) #mainLayout .btn-secondary,
body:not(.ag-shell-premium) #mainLayout .state-action-button {
  min-height: 38px !important;
  min-width: 0 !important;
  max-width: 100%;
  padding: 0 13px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 620 !important;
  line-height: 1.18 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap;
  box-shadow: none !important;
}

body:not(.ag-shell-premium) #mainLayout .btn-gold,
body:not(.ag-shell-premium) #mainLayout .btn-primary {
  color: #162018 !important;
  background: linear-gradient(180deg, #dfbd70 0%, #c89b49 100%) !important;
  border: 1px solid rgba(231, 198, 125, .34) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .20) !important;
}

body:not(.ag-shell-premium) #mainLayout .btn-outline,
body:not(.ag-shell-premium) #mainLayout .btn-secondary {
  color: rgba(244, 239, 230, .78) !important;
  background: rgba(255, 255, 255, .022) !important;
  border: 1px solid rgba(223, 216, 198, .105) !important;
}

body:not(.ag-shell-premium) #mainLayout .btn-outline:hover,
body:not(.ag-shell-premium) #mainLayout .btn-secondary:hover {
  color: #fff8ec !important;
  background: rgba(134, 166, 111, .085) !important;
  border-color: rgba(159, 190, 134, .24) !important;
  transform: none !important;
}

body:not(.ag-shell-premium) #mainLayout button[onclick*="resetFilters"].btn-outline,
body:not(.ag-shell-premium) #mainLayout .state-action-button {
  width: auto !important;
  min-height: 34px !important;
  padding: 0 8px !important;
  color: rgba(244, 239, 230, .58) !important;
  background: transparent !important;
  border-color: transparent !important;
  font-size: 12px !important;
  gap: 6px !important;
}

body:not(.ag-shell-premium) #mainLayout button[onclick*="resetFilters"].btn-outline:hover,
body:not(.ag-shell-premium) #mainLayout .state-action-button:hover {
  color: #e4bd68 !important;
  background: rgba(216, 173, 87, .060) !important;
  border-color: transparent !important;
}

body.investments-polish #mainLayout .investments-tabs a,
body.investments-polish #mainLayout #stateActions .btn-gold,
body.investments-polish #mainLayout #stateActions .btn-outline {
  min-height: 38px !important;
  min-width: 0 !important;
  padding: 0 13px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 620 !important;
  line-height: 1.18 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
}

body.investments-polish #mainLayout .investments-tabs a {
  color: rgba(244, 239, 230, .78) !important;
  background: rgba(255, 255, 255, .022) !important;
  border-color: rgba(223, 216, 198, .105) !important;
}

body.investments-polish #mainLayout .investments-tabs a:first-child {
  color: #162018 !important;
  background: linear-gradient(180deg, #dfbd70 0%, #c89b49 100%) !important;
  border-color: rgba(231, 198, 125, .34) !important;
}

body.investments-polish #mainLayout #btnReset.btn-outline {
  width: auto !important;
  min-height: 34px !important;
  padding: 0 8px !important;
  color: rgba(244, 239, 230, .58) !important;
  background: transparent !important;
  border-color: transparent !important;
  border-radius: 9px !important;
  font-size: 12px !important;
  font-weight: 620 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body.investments-polish #mainLayout #btnReset.btn-outline:hover {
  color: #e4bd68 !important;
  background: rgba(216, 173, 87, .060) !important;
  border-color: transparent !important;
}

/* Mirror-only universal navigation fallback: pages without a native sidebar/drawer. */
.agro-universal-menu-button {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 92;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #f4dfaa;
  border: 1px solid rgba(223, 216, 198, .14);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .028)),
    rgba(16, 25, 20, .88);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .30);
  backdrop-filter: blur(16px);
  cursor: pointer;
}

.agro-universal-menu-button[hidden] {
  display: none !important;
}

.agro-universal-menu-button svg,
.agro-universal-menu-close svg,
.agro-universal-menu-link svg {
  width: 19px;
  height: 19px;
}

.agro-universal-menu-button:hover,
.agro-universal-menu-close:hover {
  color: #fff6df;
  border-color: rgba(216, 173, 87, .32);
  background:
    linear-gradient(180deg, rgba(216, 173, 87, .14), rgba(255, 255, 255, .032)),
    rgba(16, 25, 20, .94);
}

.agro-universal-menu-button:focus-visible,
.agro-universal-menu-close:focus-visible,
.agro-universal-menu-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px rgba(216, 173, 87, .45), 0 0 0 5px rgba(216, 173, 87, .14);
}

.agro-universal-menu {
  position: fixed;
  inset: 0;
  z-index: 160;
  pointer-events: none;
}

.agro-universal-menu[hidden] {
  display: none !important;
}

.agro-universal-menu-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(7, 10, 8, .72);
  backdrop-filter: blur(9px);
  transition: opacity .22s ease;
}

.agro-universal-menu-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(86vw, 354px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 22px 24px;
  color: var(--agro-text);
  border-right: 1px solid rgba(223, 216, 198, .14);
  border-radius: 0 24px 24px 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018)),
    #142119;
  box-shadow: 26px 0 70px rgba(0, 0, 0, .44);
  transform: translateX(-102%);
  transition: transform .24s cubic-bezier(.22, .61, .36, 1);
}

body.agro-universal-menu-open {
  overflow: hidden;
}

body.agro-universal-menu-open .agro-universal-menu {
  pointer-events: auto;
}

body.agro-universal-menu-open .agro-universal-menu-backdrop {
  opacity: 1;
}

body.agro-universal-menu-open .agro-universal-menu-panel {
  transform: translateX(0);
}

.agro-universal-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.agro-universal-menu-logo {
  width: min(100%, 160px);
  height: auto;
  max-height: 42px;
  object-fit: contain;
  object-position: left center;
}

.agro-universal-menu-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  color: #f4dfaa;
  border: 1px solid rgba(223, 216, 198, .12);
  border-radius: 13px;
  background: rgba(255, 255, 255, .034);
  cursor: pointer;
}

.agro-universal-menu-copy {
  padding: 2px 2px 0;
}

.agro-universal-menu-eyebrow {
  color: rgba(216, 173, 87, .80);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.agro-universal-menu-title {
  margin-top: 7px;
  color: #fff8ea;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: 0;
}

.agro-universal-menu-nav {
  min-height: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: none;
}

.agro-universal-menu-nav::-webkit-scrollbar {
  display: none;
}

.agro-universal-menu-link {
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  color: rgba(244, 239, 230, .72);
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.18;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.agro-universal-menu-link:hover {
  color: #fff8ea;
  border-color: rgba(223, 216, 198, .10);
  background: rgba(255, 255, 255, .04);
  transform: translateX(2px);
}

.agro-universal-menu-link.is-active {
  color: #fff8ea;
  border-color: rgba(216, 173, 87, .18);
  background: linear-gradient(90deg, rgba(216, 173, 87, .15), rgba(255, 255, 255, .032));
}

.agro-universal-menu-link.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 2px;
  border-radius: 999px;
  background: #e4bd68;
}

.agro-universal-menu-link-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  color: currentColor;
}

@media (max-width: 760px) {
  .agro-universal-menu-button {
    top: 14px;
    left: 14px;
    width: 42px;
    height: 42px;
  }

  .agro-universal-menu-panel {
    width: min(88vw, 332px);
    padding: 20px 18px 22px;
    border-radius: 0 22px 22px 0;
  }

  .agro-universal-menu-logo {
    max-width: 136px;
  }

  .agro-universal-menu-link {
    min-height: 50px;
    font-size: 15px;
  }
}

/* MMAT unified typography + catalog chip polish, mirror-only, 2026-06-28.
   Uses the same Onest UI face as the menu across mirror platform shells. */
body.ag-wow,
body.ag-shell-premium,
body.admin-shell,
body.manager-shell,
body[class*="route-"],
body[class*="investor-"],
body.ag-wow .font-serif,
body.ag-shell-premium .font-serif,
body.admin-shell .font-serif,
body.manager-shell .font-serif,
body[class*="route-"] .font-serif,
body[class*="investor-"] .font-serif,
body.ag-wow h1,
body.ag-wow h2,
body.ag-wow h3,
body.ag-wow p,
body.ag-wow a,
body.ag-wow button,
body.ag-wow input,
body.ag-wow select,
body.ag-wow textarea,
body.ag-shell-premium h1,
body.ag-shell-premium h2,
body.ag-shell-premium h3,
body.ag-shell-premium p,
body.ag-shell-premium a,
body.ag-shell-premium button,
body.ag-shell-premium input,
body.ag-shell-premium select,
body.ag-shell-premium textarea,
body.admin-shell h1,
body.admin-shell h2,
body.admin-shell h3,
body.admin-shell p,
body.admin-shell a,
body.admin-shell button,
body.admin-shell input,
body.admin-shell select,
body.admin-shell textarea,
body.manager-shell h1,
body.manager-shell h2,
body.manager-shell h3,
body.manager-shell p,
body.manager-shell a,
body.manager-shell button,
body.manager-shell input,
body.manager-shell select,
body.manager-shell textarea {
  font-family: Onest, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body.ag-catalog-shell .wow-profile-chip {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

body.ag-catalog-shell .catalog-public-desktop-actions {
  align-self: center !important;
  padding-top: 0 !important;
}

body.ag-catalog-shell .wow-profile-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: stretch !important;
  min-height: 0 !important;
}

body.ag-catalog-shell .wow-profile-title {
  display: block !important;
  margin: 0 !important;
  line-height: 1.08 !important;
}

body.ag-catalog-shell #projectsGrid [id^="dyn-tail-"] .catalog-mobile-meta {
  min-height: 20px !important;
  height: 20px !important;
  padding: 0 9px !important;
  border-radius: 999px !important;
  font-size: 9.5px !important;
  font-weight: 620 !important;
  line-height: 1 !important;
  letter-spacing: .10em !important;
}

@media (max-width: 639px) {
  body.ag-catalog-shell #projectsGrid [id^="dyn-tail-"] .catalog-mobile-meta {
    min-height: 20px !important;
    height: 20px !important;
    padding: 0 9px !important;
    font-size: 9.5px !important;
    line-height: 1 !important;
  }
}

/* MMAT profile/company legacy sidebar fix, mirror-only, 2026-06-28.
   Covers nested #mainLayout sidebars whose brand row sits inside a p-5 wrapper. */
body:not(.ag-shell-premium) #mainLayout > aside > div.p-5:first-child {
  height: 100% !important;
  min-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 18px 10px 14px !important;
  box-sizing: border-box !important;
}

body:not(.ag-shell-premium) #mainLayout > aside > div.p-5:first-child > .flex.items-center:first-child {
  width: 100% !important;
  min-height: 104px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  margin: 0 0 10px !important;
  padding: 0 8px 14px !important;
  border-bottom: 1px solid rgba(223, 216, 198, .060) !important;
}

body:not(.ag-shell-premium) #mainLayout > aside > div.p-5:first-child > .flex.items-center:first-child img[src*="agroveles-brand"],
body:not(.ag-shell-premium) #mainLayout > aside > div.p-5:first-child > .flex.items-center:first-child img[alt*="AGROVELES"],
body:not(.ag-shell-premium) #mainLayout > aside > div.p-5:first-child > .flex.items-center:first-child img[alt*="АГРОВЕЛЕС"] {
  width: min(100%, 184px) !important;
  max-width: 184px !important;
  height: auto !important;
  max-height: 92px !important;
  display: block !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .22)) saturate(.96) contrast(.98) !important;
}

body:not(.ag-shell-premium) #mainLayout > aside > div.p-5:first-child > .flex.items-center:first-child img[src*="agroveles-brand"] + span,
body:not(.ag-shell-premium) #mainLayout > aside > div.p-5:first-child > .flex.items-center:first-child img[alt*="AGROVELES"] + span,
body:not(.ag-shell-premium) #mainLayout > aside > div.p-5:first-child > .flex.items-center:first-child img[alt*="АГРОВЕЛЕС"] + span {
  display: none !important;
}

body:not(.ag-shell-premium) #mainLayout > aside > div.p-5:first-child > nav {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  padding: 0 8px !important;
}

body:not(.ag-shell-premium) #mainLayout > aside > div.p-5:first-child > .mt-auto {
  margin: 12px 8px 0 !important;
}

@media (max-height: 820px) and (min-width: 921px) {
  body:not(.ag-shell-premium) #mainLayout > aside > div.p-5:first-child {
    padding-top: 14px !important;
    padding-bottom: 12px !important;
  }

  body:not(.ag-shell-premium) #mainLayout > aside > div.p-5:first-child > .flex.items-center:first-child {
    min-height: 94px !important;
    margin-bottom: 8px !important;
    padding-bottom: 12px !important;
  }

  body:not(.ag-shell-premium) #mainLayout > aside > div.p-5:first-child > .flex.items-center:first-child img[src*="agroveles-brand"],
  body:not(.ag-shell-premium) #mainLayout > aside > div.p-5:first-child > .flex.items-center:first-child img[alt*="AGROVELES"],
  body:not(.ag-shell-premium) #mainLayout > aside > div.p-5:first-child > .flex.items-center:first-child img[alt*="АГРОВЕЛЕС"] {
    max-width: 172px !important;
    max-height: 86px !important;
  }
}

@media (max-width: 920px) {
  body:not(.ag-shell-premium) #mainLayout > aside.fixed {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    width: min(86vw, 332px) !important;
    max-width: 332px !important;
    height: 100dvh !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 22px 22px 0 !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .034), rgba(255, 255, 255, .012)),
      rgba(31, 48, 38, .985) !important;
    border-right: 1px solid rgba(223, 216, 198, .12) !important;
    box-shadow: 24px 0 60px rgba(0, 0, 0, .42) !important;
  }

  body:not(.ag-shell-premium) #mainLayout > aside.fixed > div.p-5:first-child {
    height: 100dvh !important;
    min-height: 100dvh !important;
    padding: 18px 12px 20px !important;
  }

  body:not(.ag-shell-premium) #mainLayout > aside.fixed > div.p-5:first-child > .flex.items-center:first-child {
    min-height: 92px !important;
    padding-bottom: 14px !important;
  }

  body:not(.ag-shell-premium) #mainLayout > aside.fixed > div.p-5:first-child > .flex.items-center:first-child img[src*="agroveles-brand"],
  body:not(.ag-shell-premium) #mainLayout > aside.fixed > div.p-5:first-child > .flex.items-center:first-child img[alt*="AGROVELES"],
  body:not(.ag-shell-premium) #mainLayout > aside.fixed > div.p-5:first-child > .flex.items-center:first-child img[alt*="АГРОВЕЛЕС"] {
    max-width: 156px !important;
    max-height: 78px !important;
  }
}

/* MMAT mirror-only balance field polish, 2026-06-28.
   Keeps native select/date controls selectable, but renders them as calm platform fields. */
body.balance-mirror-polish #filterForm.balance-filter-form {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  max-width: 100% !important;
}

body.balance-mirror-polish .balance-filter-field {
  display: grid !important;
  gap: 5px !important;
  min-width: 0 !important;
}

body.balance-mirror-polish .balance-select-field {
  flex: 1 1 154px !important;
  max-width: 184px !important;
}

body.balance-mirror-polish .balance-date-field {
  flex: 0 1 132px !important;
}

body.balance-mirror-polish .balance-filter-label {
  display: block !important;
  padding-left: 2px !important;
  color: rgba(234, 234, 234, .48) !important;
  font-size: 9px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
}

body.balance-mirror-polish .balance-select-shell,
body.balance-mirror-polish .balance-date-shell {
  position: relative !important;
  min-height: 38px !important;
  display: flex !important;
  align-items: center !important;
  border: 1px solid rgba(223, 216, 198, .12) !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .026)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04) !important;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease !important;
}

body.balance-mirror-polish .balance-select-shell:focus-within,
body.balance-mirror-polish .balance-date-shell:focus-within {
  border-color: rgba(236, 183, 76, .52) !important;
  background: rgba(255, 255, 255, .07) !important;
  box-shadow: 0 0 0 2px rgba(236, 183, 76, .10), inset 0 1px 0 rgba(255, 255, 255, .05) !important;
}

body.balance-mirror-polish .balance-select-shell::after {
  content: "" !important;
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  width: 7px !important;
  height: 7px !important;
  border-right: 1.5px solid rgba(236, 183, 76, .82) !important;
  border-bottom: 1.5px solid rgba(236, 183, 76, .82) !important;
  transform: translateY(-65%) rotate(45deg) !important;
  pointer-events: none !important;
}

body.balance-mirror-polish #filterForm select {
  width: 100% !important;
  min-height: 38px !important;
  padding: 0 34px 0 12px !important;
  color: rgba(255, 248, 234, .92) !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  font-size: 13px !important;
  font-weight: 580 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer !important;
}

body.balance-mirror-polish #filterForm select option {
  color: #fff8ea !important;
  background: #223229 !important;
}

body.balance-mirror-polish .balance-date-shell {
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 0 11px 0 12px !important;
  overflow: hidden !important;
}

body.balance-mirror-polish .balance-date-value {
  position: relative !important;
  z-index: 1 !important;
  color: rgba(234, 234, 234, .56) !important;
  font-size: 13px !important;
  font-weight: 580 !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  letter-spacing: 0 !important;
}

body.balance-mirror-polish .balance-date-field.has-value .balance-date-value {
  color: rgba(255, 248, 234, .94) !important;
}

body.balance-mirror-polish .balance-date-icon {
  position: relative !important;
  z-index: 1 !important;
  width: 15px !important;
  height: 15px !important;
  flex: 0 0 15px !important;
  color: rgba(236, 183, 76, .78) !important;
}

body.balance-mirror-polish .balance-date-native {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 38px !important;
  padding: 0 !important;
  color: transparent !important;
  caret-color: transparent !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: .01 !important;
  cursor: pointer !important;
  color-scheme: dark !important;
}

body.balance-mirror-polish .balance-date-native::-webkit-calendar-picker-indicator {
  position: absolute !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  opacity: 0 !important;
  cursor: pointer !important;
}

body.balance-mirror-polish .balance-filter-submit {
  min-height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 0 13px !important;
  color: #fff8ea !important;
  border: 1px solid rgba(236, 183, 76, .26) !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, rgba(236, 183, 76, .18), rgba(236, 183, 76, .10)) !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  transition: border-color .18s ease, background .18s ease, color .18s ease !important;
}

body.balance-mirror-polish .balance-filter-submit:hover,
body.balance-mirror-polish .balance-filter-submit:focus-visible {
  color: #fff !important;
  border-color: rgba(236, 183, 76, .48) !important;
  background: linear-gradient(180deg, rgba(236, 183, 76, .25), rgba(236, 183, 76, .15)) !important;
  outline: none !important;
}

body.balance-history-polish #filtersForm {
  gap: 12px !important;
}

body.balance-history-polish #filtersForm .input-field {
  min-height: 44px !important;
  padding: 0 40px 0 13px !important;
  color: rgba(255, 248, 234, .94) !important;
  border-color: rgba(223, 216, 198, .12) !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .026)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04) !important;
  font-size: 13px !important;
  font-weight: 580 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body.balance-history-polish #filtersForm .input-field:focus {
  border-color: rgba(236, 183, 76, .52) !important;
  background: rgba(255, 255, 255, .07) !important;
  box-shadow: 0 0 0 2px rgba(236, 183, 76, .10), inset 0 1px 0 rgba(255, 255, 255, .05) !important;
}

body.balance-history-polish #filtersForm .select-wrapper::after {
  right: 14px !important;
  border-left-width: 4px !important;
  border-right-width: 4px !important;
  border-top-color: rgba(236, 183, 76, .82) !important;
}

body.balance-history-polish #filtersForm select.input-field option {
  color: #fff8ea !important;
  background: #223229 !important;
}

@media (max-width: 760px) {
  body.balance-mirror-polish #filterForm.balance-filter-form {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-content: stretch !important;
    gap: 10px !important;
  }

  body.balance-mirror-polish .balance-select-field {
    grid-column: 1 / -1 !important;
    max-width: none !important;
  }

  body.balance-mirror-polish .balance-date-field {
    flex-basis: auto !important;
  }

  body.balance-mirror-polish .balance-filter-submit {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-height: 42px !important;
  }
}

/* Mirror-only cleanup for the legacy investment detail page. */
body.investment-detail-polish .card-panel > .absolute.inset-0[class*="mix-blend-luminosity"] {
  opacity: .055 !important;
  mix-blend-mode: soft-light !important;
}

body.investment-detail-polish .card-panel > .absolute.inset-0[class*="bg-gradient-to-t"][class*="from-[#232323]"] {
  opacity: .96 !important;
  background:
    linear-gradient(180deg, rgba(30, 44, 36, .74) 0%, rgba(37, 52, 43, .95) 76%),
    linear-gradient(135deg, rgba(134, 166, 111, .10), rgba(216, 173, 87, .055)) !important;
}

body.investment-detail-polish #projectActions {
  border-color: rgba(223, 216, 198, .12) !important;
}

body.investment-detail-polish #projectData .status-badge[class*="bg-white/10"] {
  color: rgba(255, 248, 234, .72) !important;
  border-color: rgba(134, 166, 111, .24) !important;
  background: rgba(134, 166, 111, .13) !important;
}

body.investment-detail-polish .investment-doc-row {
  border-color: rgba(223, 216, 198, .13) !important;
  border-radius: 14px !important;
  background:
    linear-gradient(180deg, rgba(255, 248, 234, .045), rgba(134, 166, 111, .034)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035) !important;
}

body.investment-detail-polish .investment-doc-row:hover {
  border-color: rgba(216, 173, 87, .25) !important;
  background:
    linear-gradient(180deg, rgba(255, 248, 234, .058), rgba(134, 166, 111, .046)) !important;
}
