.page-shell {
  padding: 18px 16px 104px;
}

.page-shell.compact {
  padding-top: 14px;
}

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

.page-heading {
  min-width: 0;
  flex: 1;
}

.page-title {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-strong);
}

.page-subtitle {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
}

.page-back {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(61, 139, 95, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(44, 58, 45, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-strong);
}

.surface-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.soft-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 243, 234, 0.92));
  border: 1px solid rgba(61, 139, 95, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.auth-card {
  background: rgba(255, 253, 248, 0.98);
  border: 1px solid rgba(61, 139, 95, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-raise);
}

.auth-entry-page {
  padding-bottom: 48px;
}

.auth-entry-shell {
  width: min(100%, 1100px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.auth-entry-copy {
  display: none;
  padding: 28px;
}

.auth-entry-eyebrow {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.auth-entry-copy-title {
  margin-top: 12px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-strong);
}

.auth-entry-copy-body {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
}

.auth-entry-points {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.auth-entry-point {
  border: 1px solid rgba(61, 139, 95, 0.12);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  padding: 14px 16px;
}

.auth-entry-point-title {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--text-strong);
}

.auth-entry-point-body {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-muted);
}

.auth-entry-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.auth-sms-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.auth-sms-input {
  min-width: 0;
  flex: 1;
}

.auth-sms-button {
  flex: 0 0 118px;
  min-width: 118px;
  min-height: 48px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

input,
select,
textarea {
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(61, 139, 95, 0.35) !important;
  box-shadow: 0 0 0 4px rgba(61, 139, 95, 0.12);
}

.site-nav {
  backdrop-filter: blur(16px);
  background: rgba(250, 250, 245, 0.92);
  border-top: 1px solid rgba(61, 139, 95, 0.12);
  box-shadow: 0 -12px 30px rgba(44, 58, 45, 0.08);
}

.nav-action {
  min-width: 68px;
  border-radius: 18px;
  color: var(--text-faint);
  transition: all var(--transition-fast);
}

.nav-action.is-active {
  background: rgba(61, 139, 95, 0.12);
  color: var(--brand-deep);
}

.nav-action.is-active span {
  font-weight: 700;
}

#admin-panel,
#farmer-panel {
  --workspace-shell-max: 1200px;
  --workspace-shell-gutter: 12px;
  --workspace-shell-width: min(calc(100% - (var(--workspace-shell-gutter) * 2)), var(--workspace-shell-max));
  --workspace-section-gap: 16px;
  --workspace-surface-padding: 16px;
  --workspace-topbar-height: 56px;
  --workspace-nav-offset: 56px;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(107, 183, 126, 0.16), transparent 32%),
    linear-gradient(180deg, #fcfaf4 0%, #f2eee2 100%);
}

.workspace-topbar {
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 28px rgba(44, 58, 45, 0.14);
}

.workspace-topbar-inner {
  width: var(--workspace-shell-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.workspace-layout {
  display: block;
  min-height: calc(100vh - 56px);
  overflow-x: clip;
}

.workspace-side {
  width: 96px;
  flex-shrink: 0;
  position: sticky;
  top: 56px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border-right: 1px solid #E9E1D4;
  background: rgba(255, 252, 245, 0.86);
  backdrop-filter: blur(8px);
}

.workspace-side::-webkit-scrollbar {
  display: none;
}

.workspace-side button {
  flex: 0 0 auto;
}

.workspace-main {
  min-width: 0;
  width: 100%;
  padding-bottom: 48px;
  overflow-x: clip;
}

#admin-panel .workspace-main > *,
#farmer-panel .workspace-main > * {
  width: var(--workspace-shell-width);
  margin-left: auto;
  margin-right: auto;
}

.workspace-nav-zone {
  position: sticky;
  top: var(--workspace-nav-offset);
  z-index: 49;
  overflow: visible;
  padding: 12px 0 4px;
  background: linear-gradient(180deg, rgba(242, 238, 226, 0.96) 0%, rgba(242, 238, 226, 0.82) 76%, rgba(242, 238, 226, 0) 100%);
}

.workspace-nav-zone-inner {
  width: var(--workspace-shell-width);
  margin: 0 auto;
}

.workspace-nav-shell {
  position: relative;
  z-index: 84;
  display: inline-block;
  max-width: 100%;
}

.workspace-nav-card {
  width: 188px;
  min-width: 0;
  max-width: calc(100vw - 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 20px;
  border: 1px solid rgba(61, 139, 95, 0.12);
  background: rgba(255, 252, 245, 0.94);
  box-shadow: var(--shadow-card);
  text-align: left;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.workspace-nav-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-raise);
}

.workspace-nav-card.is-locked {
  cursor: default;
}

.workspace-nav-card.is-admin {
  border-color: rgba(61, 139, 95, 0.18);
}

.workspace-nav-card.is-farmer {
  border-color: rgba(224, 123, 57, 0.22);
}

.workspace-nav-card-badge {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.workspace-nav-card.is-admin .workspace-nav-card-badge {
  background: rgba(61, 139, 95, 0.12);
}

.workspace-nav-card.is-farmer .workspace-nav-card-badge {
  background: rgba(224, 123, 57, 0.14);
}

.workspace-nav-card-label {
  min-width: 0;
  flex: 1;
}

.workspace-nav-card-label strong {
  display: block;
  color: var(--text-strong);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: keep-all;
}

.workspace-nav-card-label span {
  display: block;
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: keep-all;
}

.workspace-nav-card-toggle {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-faint);
  background: rgba(28, 39, 30, 0.05);
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.workspace-nav-card-toggle.is-open {
  transform: rotate(180deg);
}

.workspace-nav-card.is-admin .workspace-nav-card-toggle {
  color: #2D9D4E;
}

.workspace-nav-card.is-farmer .workspace-nav-card-toggle {
  color: #E07B39;
}

.workspace-nav-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 85;
  width: min(324px, calc(100vw - 40px));
  max-width: calc(100vw - 40px);
  max-height: min(72vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 22px;
  border: 1px solid rgba(61, 139, 95, 0.12);
  background: rgba(255, 252, 246, 0.98);
  box-shadow: 0 18px 42px rgba(44, 58, 45, 0.14);
  padding: 10px;
  transform-origin: left top;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  opacity: 1;
  transform: translateX(0) scale(1);
}

.workspace-nav-panel.is-hidden {
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
  pointer-events: none;
  visibility: hidden;
}

.workspace-nav-panel.is-admin {
  border-color: rgba(61, 139, 95, 0.16);
}

.workspace-nav-panel.is-farmer {
  border-color: rgba(224, 123, 57, 0.2);
}

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

.workspace-nav-panel-head strong {
  color: var(--text-strong);
  font-size: 0.88rem;
}

.workspace-nav-panel-head span {
  color: var(--text-faint);
  font-size: 0.7rem;
}

.workspace-nav-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.workspace-nav-panel-item {
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 1px solid rgba(28, 39, 30, 0.08);
  background: rgba(255, 255, 255, 0.86);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.workspace-nav-panel-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.workspace-nav-panel-item-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.workspace-nav-panel-item-icon {
  font-size: 1rem;
}

.workspace-nav-panel-item strong {
  color: var(--text-strong);
  font-size: 0.76rem;
  line-height: 1.15;
}

.workspace-nav-panel-item.is-active {
  background: rgba(61, 139, 95, 0.12);
  border-color: rgba(61, 139, 95, 0.22);
}

.workspace-nav-panel.is-farmer .workspace-nav-panel-item.is-active {
  background: rgba(224, 123, 57, 0.14);
  border-color: rgba(224, 123, 57, 0.24);
}

.workspace-nav-panel-item-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(45, 157, 78, 0.14);
  color: #2D9D4E;
  font-size: 0.58rem;
}

.workspace-nav-panel.is-farmer .workspace-nav-panel-item-current {
  background: rgba(224, 123, 57, 0.16);
  color: #C4602A;
}

.workspace-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 72;
  background: rgba(17, 24, 39, 0.08);
}

.app-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(17, 24, 39, 0.3);
  overflow-y: auto;
}

.app-modal-card {
  width: 100%;
  max-height: min(86vh, 760px);
  margin: auto 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(61, 139, 95, 0.11);
  background: rgba(255, 253, 248, 0.98);
  box-shadow: var(--shadow-raise);
}

.app-modal-card.modal-compact {
  max-width: 32rem;
}

.app-modal-card.modal-standard {
  max-width: 40rem;
}

.app-modal-card.modal-wide {
  max-width: 52rem;
}

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

.app-modal-close {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(28, 39, 30, 0.08);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-modal-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

.app-modal-footer {
  flex: 0 0 auto;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(28, 39, 30, 0.08);
}

.workspace-banner {
  background: linear-gradient(135deg, rgba(61, 139, 95, 0.94), rgba(107, 183, 126, 0.86));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-raise);
}

.workspace-banner.warm {
  background: linear-gradient(135deg, rgba(232, 164, 74, 0.96), rgba(224, 123, 57, 0.92));
}

.workspace-page-stack {
  display: flex;
  flex-direction: column;
  gap: var(--workspace-section-gap);
}

.workspace-surface {
  background: rgba(255, 253, 248, 0.98);
  border: 1px solid rgba(61, 139, 95, 0.11);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: var(--workspace-surface-padding);
}

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

.workspace-surface-header-copy,
.workspace-surface-header-actions {
  min-width: 0;
}

.workspace-surface-header-actions {
  flex: 0 0 auto;
}

.workspace-surface-title {
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text-strong);
}

.workspace-surface-description {
  margin-top: 4px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.workspace-surface-body {
  min-width: 0;
}

.workspace-surface-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(28, 39, 30, 0.08);
}

.workspace-form-surface {
  min-height: 100%;
}

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

.workspace-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.workspace-filter-actions > * {
  flex: 1 1 140px;
}

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

.workspace-stat-card {
  min-width: 0;
}

.workspace-stat-label {
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.workspace-stat-value {
  margin-top: 8px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.1;
  font-weight: 700;
  color: var(--text-strong);
}

.workspace-stat-description {
  margin-top: 8px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.workspace-split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--workspace-section-gap);
}

.workspace-split-main,
.workspace-split-aside {
  min-width: 0;
}

.workspace-aside-stack {
  display: flex;
  flex-direction: column;
  gap: var(--workspace-section-gap);
}

.workspace-result-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.workspace-result-card {
  background: rgba(255, 253, 248, 0.98);
  border: 1px solid rgba(61, 139, 95, 0.11);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(14px, 1.8vw, 18px);
}

.workspace-result-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.workspace-result-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

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

.workspace-inline-field {
  border: 1px solid rgba(61, 139, 95, 0.11);
  background: #f7f3ea;
  border-radius: 18px;
  padding: 12px 14px;
}

.workspace-inline-field-label {
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.workspace-inline-field-value {
  margin-top: 4px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-strong);
}

.workspace-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.workspace-action-row > * {
  flex: 1 1 140px;
}

.workspace-empty-state {
  border: 1px solid rgba(61, 139, 95, 0.08);
  border-radius: 20px;
  background: #f7f3ea;
  padding: 16px;
}

.workspace-helper-copy {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}

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

.workspace-product-summary-card {
  border-radius: 18px;
  border: 1px solid rgba(61, 139, 95, 0.11);
  background: #f7f3ea;
  padding: 12px 14px;
}

.workspace-product-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.workspace-product-card-top {
  align-items: flex-start;
}

.workspace-product-card-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.workspace-product-card-media {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 10px 26px rgba(44, 58, 45, 0.12);
}

.workspace-product-card-copy {
  min-width: 0;
  flex: 1;
}

.workspace-product-card-title {
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text-strong);
}

.workspace-product-card-subtitle {
  margin-top: 4px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.workspace-product-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.workspace-product-price-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(61, 139, 95, 0.1);
  color: #2D9D4E;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.workspace-product-price-pill.warm {
  background: rgba(224, 123, 57, 0.14);
  color: #C4602A;
}

.workspace-product-card-fields {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.workspace-product-card-actions {
  margin-top: -2px;
}

.workspace-product-card-actions > * {
  min-height: 42px;
}

.workspace-product-editor-panel {
  border-top: 1px solid rgba(61, 139, 95, 0.12);
  padding-top: 16px;
}

.adjustment-card-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.adjustment-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.adjustment-history-item {
  border: 1px solid rgba(61, 139, 95, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  padding: 14px;
}

#admin-panel .bg-white,
#farmer-panel .bg-white {
  background: rgba(255, 253, 248, 0.98) !important;
  border: 1px solid rgba(61, 139, 95, 0.11);
  box-shadow: var(--shadow-card);
}

#admin-panel .bg-\[\#F9F7F3\],
#farmer-panel .bg-\[\#F9F7F3\] {
  background: #f7f3ea !important;
}

@media (min-width: 641px) and (max-width: 1023px) {
  #admin-panel,
  #farmer-panel {
    --workspace-shell-gutter: 16px;
    --workspace-section-gap: 20px;
  }

  .workspace-nav-card {
    max-width: calc(100vw - 64px);
  }
}

@media (min-width: 1024px) {
  .page-shell.auth-entry-page {
    padding-top: 30px;
  }

  .auth-entry-shell {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 420px);
    gap: 24px;
    align-items: stretch;
  }

  .auth-entry-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .auth-entry-card {
    margin: 0 0 0 auto;
  }

  #admin-panel,
  #farmer-panel {
    --workspace-shell-gutter: 24px;
    --workspace-section-gap: 24px;
    --workspace-surface-padding: 24px;
  }

  .workspace-nav-zone {
    padding-top: 16px;
  }

  .workspace-stat-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .workspace-filter-bar {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .workspace-action-row > * {
    flex-basis: 160px;
  }

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

  .workspace-product-card-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .workspace-stat-grid {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
  }

  .workspace-split-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
    align-items: start;
  }

  .app-modal-card.modal-wide {
    max-width: 56rem;
  }

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

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

  .workspace-product-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #admin-panel,
  #farmer-panel {
    --workspace-shell-gutter: 12px;
    --workspace-section-gap: 16px;
    --workspace-surface-padding: 16px;
  }

  .workspace-layout {
    display: block;
  }

  .workspace-side {
    width: 100%;
    top: 56px;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    border-right: none;
    border-bottom: 1px solid #E9E1D4;
  }

  .workspace-side button {
    width: 100%;
    min-width: 0;
    min-height: 72px;
    padding: 10px 6px;
  }

  .workspace-nav-zone {
    padding: 12px 0 4px;
  }

  .workspace-nav-card {
    width: 160px;
    max-width: calc(100vw - 180px);
  }

  .workspace-nav-panel {
    left: 0;
    top: calc(100% + 8px);
    width: min(324px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
  }

  .app-modal-shell {
    align-items: flex-end;
    padding: 12px;
  }

  .app-modal-card {
    max-width: none !important;
    max-height: min(88vh, 760px);
    border-radius: 24px 24px 18px 18px;
  }

  #admin-panel .grid.grid-cols-3,
  #farmer-panel .grid.grid-cols-3 {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #admin-panel .grid.grid-cols-\[1fr\,110px\],
  #farmer-panel .grid.grid-cols-\[1fr\,110px\] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .workspace-product-card-main {
    gap: 12px;
  }

  .workspace-product-card-media {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }
}
