@font-face {
  font-family: "Manrope";
  src: url("/brand/fonts/Manrope-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/brand/fonts/Literata-Variable.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #201d1d;
  --muted: #696361;
  --signal: #ff382d;
  --action: #c62c23;
  --action-hover: #a6221b;
  --paper: #fff9f4;
  --linen: #f3ece5;
  --line: #ded7d0;
  --canvas: var(--paper);
  --white: #fff;
  --success: #1c6b4d;
  --success-tint: #edf5ef;
  --warning: #8a4b04;
  --warning-tint: #fff2dc;
  --danger: #a6221b;
  --focus: #2448ff;
  --shadow: 0 14px 50px #201d1d20;
  --font-body: "Manrope", Arial, sans-serif;
  --font-heading: "Literata", Georgia, serif;
  font-family: var(--font-body);
  color: var(--ink);
  font-synthesis: none;
  font-size: 14px;
  font-optical-sizing: auto;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: var(--action);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button {
  border: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 10px;
  font-weight: 650;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
  margin-bottom: 12px;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.6;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip-link {
  position: fixed;
  left: 10px;
  top: -100px;
  background: white;
  padding: 12px;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
.initial-loading {
  height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 20px;
}

.app-layout {
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--paper);
  color: var(--ink);
  border-right: 1px solid var(--line);
  position: fixed;
  width: 242px;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 18px;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 0 16px;
}
.brand img {
  display: block;
  width: 188px;
  max-width: 100%;
  height: auto;
}
.mobile-wordmark {
  display: none;
}
.nav-label {
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 11px;
  color: var(--muted);
  margin: 23px 15px 12px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  min-height: 45px;
  padding: 12px 14px;
  margin-bottom: 4px;
  border-radius: 6px;
  transition: background 0.15s;
}
.nav-link:hover {
  background: var(--linen);
  text-decoration: none;
  color: var(--ink);
}
.nav-link.active {
  color: var(--action);
  background: var(--linen);
  box-shadow: inset 3px 0 0 var(--signal);
}
.nav-link.active .icon {
  color: var(--action);
}
.nav-count {
  margin-left: auto;
  background: var(--linen);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
}
.sidebar-nav {
  overflow-y: auto;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 25px;
}
.verified-side {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  padding: 12px;
  color: var(--ink);
  background: var(--linen);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.side-note {
  font-size: 11px;
  color: var(--muted);
  padding: 14px 9px 0;
  line-height: 1.5;
}
.main-column {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 82px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.breadcrumb b {
  color: var(--ink);
  font-weight: 500;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  margin-right: 5px;
}
.demo-badge {
  font-size: 11px;
  letter-spacing: 0.7px;
  font-weight: 600;
  color: var(--warning);
  background: var(--warning-tint);
  padding: 6px 9px;
  border: 1px solid #efdfc0;
  border-radius: 4px;
  white-space: nowrap;
}
.lang-button {
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 7px 0;
}
.user-account {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 1px solid var(--line);
  padding-left: 20px;
  background: transparent;
  text-align: left;
  color: var(--ink);
}
.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--linen);
  color: var(--ink);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 650;
}
.user-account strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
}
.user-account small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.mobile-menu {
  display: none;
  background: transparent;
  color: var(--action);
}
.page {
  padding: 37px 40px 50px;
  max-width: 1700px;
  margin: auto;
}
.page-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 26px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 11px;
}
.page-description {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  max-width: 730px;
}
.btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 11px 15px;
  border-radius: 5px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  min-height: 40px;
}
.btn:hover {
  text-decoration: none;
  filter: brightness(0.97);
}
.btn-primary {
  background: var(--action);
  color: white;
}
.btn-secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.btn-amber {
  background: var(--warning-tint);
  color: var(--ink);
}
.btn-danger {
  color: var(--danger);
  background: #fbefec;
  border-color: #efd4cf;
}
.btn-text {
  color: var(--action);
  background: transparent;
  padding: 6px;
  min-height: 28px;
}
.btn-small {
  padding: 7px 10px;
  font-size: 11px;
  min-height: 31px;
}
.button-group {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 26px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 18px 20px;
  min-height: 106px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}
.stat-value {
  font-size: 26px;
  letter-spacing: -0.8px;
  font-weight: 600;
  line-height: 1.1;
}
.stat-unit {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 6px;
}
.stat-icon {
  width: 31px;
  height: 31px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--linen);
}
.stat-icon .icon {
  width: 16px;
  height: 16px;
}
.stat-foot {
  font-size: 11px;
  margin-top: 10px;
  color: var(--muted);
}
.market-notice {
  padding: 13px 16px;
  background: var(--linen);
  border: 1px solid var(--line);
  border-radius: 5px;
  display: flex;
  gap: 11px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
.market-notice .icon {
  width: 17px;
  height: 17px;
  color: var(--muted);
  margin-top: 1px;
}
.market-notice strong {
  color: var(--ink);
  font-weight: 600;
}
.surface {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.surface-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.surface-header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.surface-body {
  padding: 24px;
}
.surface-header small {
  color: var(--muted);
  font-size: 11px;
}
.market-tabs {
  display: flex;
  gap: 25px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
}
.tab {
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  padding: 18px 0 16px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab.active {
  color: var(--action);
  border-bottom-color: var(--action);
  font-weight: 650;
}
.tab .tab-count {
  border-radius: 4px;
  background: var(--linen);
  color: var(--muted);
  padding: 2px 5px;
  font-size: 11px;
  margin-left: 5px;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.search-control {
  position: relative;
  flex: 1;
  min-width: 180px;
}
.search-control .icon {
  position: absolute;
  left: 11px;
  top: 10px;
  width: 17px;
  height: 17px;
  color: var(--muted);
}
.search-control input {
  padding-left: 36px;
  width: 100%;
}
.filter-row input,
.filter-row select {
  height: 37px;
  font-size: 11px;
  background: white;
}
.filter-row select {
  width: auto;
  min-width: 123px;
}
.filter-more {
  border: 1px solid var(--line);
  border-radius: 5px;
  display: flex;
  gap: 6px;
  align-items: center;
  background: white;
  height: 37px;
  padding: 0 12px;
  font-size: 11px;
  color: var(--muted);
}
.filter-more .icon {
  height: 14px;
  width: 14px;
}
.advanced-filters {
  background: var(--paper);
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
}
.advanced-filters .form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.table-scroll {
  overflow-x: auto;
}
.market-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
}
.market-table th {
  color: var(--muted);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 14px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.market-table th:first-child,
.market-table td:first-child {
  padding-left: 22px;
}
.market-table td {
  padding: 20px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--ink);
}
.market-table tr:last-child td {
  border-bottom: 0;
}
.market-table tbody tr:hover {
  background: var(--paper);
}
.crop-cell {
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 155px;
}
.crop-icon {
  height: 36px;
  width: 36px;
  background: var(--linen);
  border: 1px solid var(--line);
  color: var(--warning);
  display: grid;
  place-items: center;
  border-radius: 7px;
}
.crop-icon.corn {
  background: var(--linen);
  border-color: var(--line);
  color: var(--warning);
}
.crop-icon .icon {
  width: 20px;
  height: 20px;
}
.crop-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 5px;
}
.crop-meta {
  font-size: 11px;
  color: var(--muted);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.4;
  padding: 4px 6px;
  white-space: nowrap;
  font-weight: 550;
}
.pill-green {
  background: var(--success-tint);
  color: var(--success);
}
.pill-blue {
  background: #eaf0f5;
  color: #5b7d94;
}
.pill-amber {
  background: var(--warning-tint);
  color: var(--warning);
}
.pill-gray {
  background: var(--linen);
  color: var(--muted);
}
.pill-red {
  background: #faeae6;
  color: var(--danger);
}
.numeric {
  font-variant-numeric: tabular-nums;
}
.table-primary {
  color: var(--ink);
  font-weight: 600;
  font-size: 12px;
  display: block;
}
.table-secondary {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.price-line {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.price-line small {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 3px;
  letter-spacing: 0;
}
.eligibility {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--success);
}
.eligibility .icon {
  width: 12px;
  height: 12px;
}
.table-open {
  height: 28px;
  width: 28px;
  border: 1px solid var(--line);
  background: white;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: var(--muted);
}
.table-open .icon {
  width: 14px;
  height: 14px;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.market-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}
.info-card {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 20px 22px;
  border-radius: 6px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.info-card > .icon {
  color: var(--muted);
  width: 22px;
  height: 22px;
}
.info-card h3 {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--muted);
}
.info-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}
.page-footer {
  margin-top: 25px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
  color: var(--muted);
}
.page-footer span {
  display: flex;
  gap: 7px;
  align-items: center;
}
.page-footer .icon {
  width: 12px;
  height: 12px;
}
.empty-state {
  text-align: center;
  padding: 54px 24px;
  color: var(--muted);
}
.empty-state .empty-icon {
  margin: 0 auto 15px;
  background: var(--linen);
  height: 50px;
  width: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.empty-state h3 {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 12px;
  max-width: 450px;
  margin: 0 auto 18px;
}
.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 70px;
  color: var(--muted);
}
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-top-color: var(--action);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.error-box {
  color: var(--danger);
  background: #fbefec;
  border: 1px solid #efd7d0;
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.6;
  margin: 16px 0;
}
.success-box {
  color: var(--success);
  background: var(--success-tint);
  border: 1px solid #dce9d5;
  border-radius: 6px;
  padding: 15px;
  font-size: 12px;
  line-height: 1.6;
}
.help-text {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.muted {
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
.field.full {
  grid-column: 1/-1;
}
.field > span {
  font-weight: 550;
}
.field small {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
input,
select,
textarea {
  background: white;
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 5px;
  min-height: 40px;
  color: var(--ink);
  max-width: 100%;
  width: 100%;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}
textarea {
  resize: vertical;
  min-height: 95px;
  line-height: 1.5;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.checkbox input {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin-top: 2px;
  accent-color: var(--action);
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.section-gap {
  margin-top: 24px;
}
.content-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
  align-items: start;
}
.detail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  margin: 0;
}
.detail-list > div {
  min-width: 0;
}
.detail-list dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}
.detail-list dd {
  margin: 0;
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.detail-list .full {
  grid-column: 1/-1;
}
.amount-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  margin-top: 20px;
}
.amount-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.amount-row strong {
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.amount-row.total {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  margin-bottom: 8px;
}
.amount-row.total strong {
  font-size: 22px;
  letter-spacing: -0.5px;
}
.amount-card .help-text {
  margin-bottom: 0;
}
.status-line {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 17px;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 23px 0;
}
.small-caps {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--muted);
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 46% 54%;
  background: var(--white);
}
.login-aside {
  background: var(--paper);
  border-right: 1px solid var(--line);
  color: var(--muted);
  padding: 40px 56px;
  display: flex;
  flex-direction: column;
}
.login-aside .brand {
  padding: 0;
}
.login-intro {
  margin: auto 0;
  max-width: 420px;
  padding: 55px 0;
}
.login-intro .eyebrow {
  color: var(--muted);
}
.login-intro h1 {
  color: var(--ink);
  font-size: 43px;
  letter-spacing: -1.7px;
  line-height: 1.2;
  margin: 22px 0;
}
.login-intro h1 em {
  color: var(--signal);
  font-style: normal;
}
.login-intro p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.login-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  margin-top: 19px;
  color: var(--muted);
}
.login-feature .icon {
  color: var(--action);
  width: 18px;
  height: 18px;
}
.login-aside-foot {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.login-main {
  padding: 35px 50px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.login-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}
.login-form-wrap {
  width: 100%;
  max-width: 390px;
  margin: auto;
  padding: 50px 0;
}
.login-form-wrap h2 {
  font-size: 27px;
  font-weight: 600;
  margin-bottom: 10px;
}
.login-form-wrap > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 27px;
}
.login-form-wrap .field {
  margin-bottom: 16px;
}
.login-form-wrap .btn {
  width: 100%;
  margin-top: 7px;
}
.demo-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 15px;
  color: var(--muted);
  font-size: 11px;
}
.demo-divider:before,
.demo-divider:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.demo-accounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.demo-account {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px;
  background: white;
  text-align: left;
  color: var(--ink);
  font-size: 11px;
}
.demo-account:hover {
  border-color: var(--action);
  background: var(--paper);
}
.demo-account strong {
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}
.demo-account small {
  color: var(--muted);
  font-size: 11px;
}
.login-note {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 15px;
}
.login-bottom {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}
dialog {
  border: 0;
  border-radius: 10px;
  padding: 0;
  width: 720px;
  max-width: calc(100vw - 32px);
  max-height: 90vh;
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: auto;
}
dialog::backdrop {
  background: #201d1dab;
  backdrop-filter: blur(3px);
}
.dialog-header {
  padding: 24px 27px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}
.dialog-header h2 {
  font-size: 23px;
  margin: 5px 0 8px;
}
.dialog-header p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.dialog-close {
  background: var(--linen);
  color: var(--muted);
  display: grid;
  place-items: center;
  height: 30px;
  width: 30px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dialog-close .icon {
  width: 16px;
  height: 16px;
}
.dialog-body {
  padding: 24px 27px 28px;
}
.dialog-body > h3 {
  margin-top: 23px;
  font-size: 13px;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding-top: 24px;
}
.modal-loading {
  padding: 70px 25px;
}
.quote-banner {
  background: var(--ink);
  color: var(--paper);
  padding: 20px 22px;
  margin-bottom: 22px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.7;
}
.quote-banner strong {
  display: block;
  color: white;
  font-size: 16px;
  margin-bottom: 5px;
}
.quote-banner .icon {
  color: var(--paper);
}
.line-item {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.line-item:last-child {
  border-bottom: 0;
}
.line-item h3 {
  font-size: 13px;
  margin: 0 0 5px;
}
.line-item p {
  font-size: 11px;
  margin: 0;
  color: var(--muted);
}
.line-item .button-group {
  flex-shrink: 0;
}
.list-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 22px;
  max-height: 360px;
  overflow: auto;
}
.message {
  padding: 13px 16px;
  background: var(--paper);
  border-radius: 6px;
  margin-right: 35px;
}
.message.own {
  background: var(--linen);
  margin: 0 0 0 35px;
}
.message small {
  font-size: 11px;
  color: var(--muted);
}
.message p {
  font-size: 12px;
  margin: 6px 0 0;
  white-space: pre-wrap;
}
.counter-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-top: 12px;
  background: var(--paper);
}
.counter-card h3 {
  font-size: 12px;
  margin-bottom: 13px;
}
.counter-card .detail-list {
  gap: 12px;
}
.table-dense td {
  padding-top: 15px;
  padding-bottom: 15px;
}
.timeline {
  border-left: 1px solid var(--line);
  margin-left: 6px;
  padding-left: 20px;
}
.timeline-item {
  position: relative;
  margin-bottom: 22px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.timeline-item:before {
  content: "";
  position: absolute;
  left: -25px;
  top: 4px;
  height: 8px;
  width: 8px;
  background: var(--success);
  border-radius: 50%;
  border: 2px solid white;
}
.timeline-item small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
pre.code-data {
  background: var(--linen);
  border-radius: 5px;
  padding: 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  max-height: 300px;
  overflow: auto;
}
#toasts {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 100;
  max-width: calc(100vw - 35px);
}
.toast {
  padding: 14px 20px;
  margin-top: 8px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.6;
  max-width: 430px;
}
.toast.error {
  background: var(--danger);
}
.admin-tabbar {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.admin-tabbar .btn.active {
  background: var(--action);
  color: white;
  border-color: var(--action);
}
.step-indicator {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}
.step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
.step b {
  height: 23px;
  width: 23px;
  border-radius: 50%;
  background: var(--linen);
  display: grid;
  place-items: center;
  font-size: 11px;
}
.step.active {
  color: var(--action);
}
.step.active b {
  background: var(--action);
  color: white;
}
.grow {
  flex: 1;
}
.nowrap {
  white-space: nowrap;
}
.truncate {
  max-width: 180px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.text-right {
  text-align: right;
}
.full-width {
  width: 100%;
}
.mobile-nav-overlay {
  display: none;
}
.history-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.history-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.history-row strong {
  font-weight: 500;
  color: var(--muted);
}
@media (min-width: 1550px) {
  .market-table td {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .page {
    padding-top: 42px;
  }
  .market-table th,
  .market-table td {
    padding-left: 19px;
    padding-right: 19px;
  }
  .market-table td {
    font-size: 12px;
  }
  .crop-name {
    font-size: 13px;
  }
}
@media (max-width: 1250px) {
  .app-layout {
    grid-template-columns: 215px minmax(0, 1fr);
  }
  .sidebar {
    width: 215px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .topbar {
    padding: 0 26px;
  }
  .page {
    padding: 30px 26px;
  }
  .market-table td,
  .market-table th {
    padding-left: 11px;
    padding-right: 11px;
  }
  .market-table .company-column {
    display: none;
  }
  .topbar-right {
    gap: 13px;
  }
  .stats-grid {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat-icon {
    display: none;
  }
}
@media (max-width: 1000px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .market-bottom {
    grid-template-columns: 1fr;
  }
  .page-header {
    align-items: flex-start;
  }
  .page-header .btn {
    font-size: 11px;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .user-account .user-label {
    display: none;
  }
  .user-account {
    padding-left: 13px;
  }
  .login-aside {
    padding: 40px;
  }
  .login-intro h1 {
    font-size: 35px;
  }
  .login-layout {
    grid-template-columns: 40% 60%;
  }
  .login-main {
    padding: 30px;
  }
  .advanced-filters .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .app-layout {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 242px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-nav-overlay.visible {
    display: block;
    position: fixed;
    inset: 0;
    background: #201d1d90;
    z-index: 25;
  }
  .main-column {
    width: 100%;
  }
  .topbar {
    height: 68px;
    padding: 0 20px;
  }
  .mobile-menu {
    display: block;
    padding: 0;
  }
  .breadcrumb {
    font-size: 11px;
    gap: 7px;
  }
  .breadcrumb > span {
    display: none;
  }
  .topbar-right {
    gap: 12px;
  }
  .topbar .demo-badge {
    font-size: 11px;
    padding: 5px;
  }
  .user-account {
    display: none;
  }
  .page {
    padding: 25px 20px;
  }
  h1 {
    font-size: 25px;
  }
  .page-header {
    gap: 14px;
    margin-bottom: 22px;
  }
  .page-header .btn {
    font-size: 0;
    min-width: 38px;
    padding: 10px;
  }
  .page-header .btn .icon {
    width: 17px;
    height: 17px;
  }
  .page-description {
    font-size: 11px;
  }
  .eyebrow {
    font-size: 11px;
  }
  .stats-grid {
    gap: 10px;
    margin-bottom: 20px;
  }
  .stat {
    padding: 15px;
    min-height: 99px;
  }
  .stat-label {
    font-size: 11px;
  }
  .stat-value {
    font-size: 24px;
  }
  .stat-foot {
    font-size: 11px;
  }
  .market-notice {
    font-size: 11px;
    line-height: 1.7;
    margin-bottom: 20px;
  }
  .market-tabs {
    gap: 24px;
    padding: 0 16px;
  }
  .tab {
    font-size: 11px;
  }
  .filter-row {
    padding: 15px;
    gap: 8px;
  }
  .search-control {
    flex-basis: 100%;
  }
  .filter-row select {
    flex: 1;
    min-width: 100px;
  }
  .filter-more {
    font-size: 11px;
  }
  .market-table {
    min-width: 750px;
  }
  .market-table .company-column {
    display: table-cell;
  }
  .market-table td {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .table-footer {
    padding: 15px;
    font-size: 11px;
  }
  .market-bottom {
    gap: 12px;
    margin-top: 20px;
  }
  .info-card {
    padding: 17px;
  }
  .page-footer {
    font-size: 11px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .login-layout {
    display: block;
  }
  .login-aside {
    padding: 25px;
  }
  .login-aside .brand {
    padding: 0;
  }
  .login-intro,
  .login-aside-foot {
    display: none;
  }
  .login-main {
    min-height: calc(100vh - 87px);
    padding: 25px;
  }
  .login-form-wrap {
    padding: 35px 0;
  }
  .login-form-wrap h2 {
    font-size: 26px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .dialog-header {
    padding: 20px;
  }
  .dialog-body {
    padding: 20px;
  }
  .dialog-header h2 {
    font-size: 21px;
  }
  .dialog-actions .btn {
    flex: 1;
  }
  .dialog-actions {
    gap: 8px;
  }
  .detail-list {
    gap: 17px 15px;
  }
  .detail-list dd {
    font-size: 11px;
  }
  .detail-list dt {
    font-size: 11px;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .surface-header {
    padding: 17px;
  }
  .surface-body {
    padding: 19px;
  }
  .line-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }
  .line-item .button-group {
    align-self: flex-end;
  }
  .advanced-filters {
    padding: 16px;
  }
  .advanced-filters .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-tabbar .btn {
    font-size: 11px;
    min-height: 33px;
    padding: 8px 10px;
  }
  .amount-row {
    font-size: 11px;
  }
  .amount-row.total strong {
    font-size: 20px;
  }
  #toasts {
    bottom: 15px;
    right: 15px;
  }
  .step-indicator {
    gap: 10px;
  }
  .step {
    font-size: 11px;
  }
  .step b {
    height: 20px;
    width: 20px;
  }
  .page-header.secondary-header .btn {
    font-size: 11px;
  }
  .surface-header .btn {
    font-size: 11px;
  }
  .chat-list {
    max-height: 300px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.small-gap {
  margin-top: 9px;
}
.dialog-wide {
  width: 820px;
}
.register-row {
  text-align: center;
  margin-top: 12px;
}
.register-row .btn {
  width: auto;
}

.account-sidebar {
  background: transparent;
  width: 100%;
  font-size: 11px;
  margin-top: 8px;
  min-height: 34px;
}
.account-sidebar .icon {
  height: 15px;
  width: 15px;
}

@media (min-width: 761px) and (max-width: 1500px) {
  #market-results .company-column {
    display: none;
  }
  #market-results .crop-cell {
    min-width: 130px;
    gap: 8px;
  }
  #market-results .market-table td,
  #market-results .market-table th {
    padding-left: 10px;
    padding-right: 10px;
  }
  #market-results .market-table td:first-child,
  #market-results .market-table th:first-child {
    padding-left: 18px;
  }
  #market-results .market-table th {
    white-space: normal;
    line-height: 1.5;
  }
  #market-results .market-table td:nth-child(4) .table-secondary {
    white-space: normal;
    max-width: 130px;
    line-height: 1.5;
  }
  #market-results .market-table td:nth-child(7) .table-secondary {
    white-space: normal;
    max-width: 120px;
    line-height: 1.5;
  }
  #market-results .price-line {
    font-size: 12px;
  }
}

.crop-open {
  background: transparent;
  border: 0;
  padding: 0;
  min-height: 44px;
  text-align: left;
  color: inherit;
  font: inherit;
}
.crop-open:hover .crop-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mobile-table-hint {
  display: none;
}
@media (max-width: 760px) {
  .mobile-table-hint {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 11px 15px;
    margin: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    line-height: 1.6;
    color: var(--muted);
  }
  .mobile-table-hint .icon {
    width: 14px;
    height: 14px;
    margin-top: 1px;
  }
  #market-results .market-table th:last-child,
  #market-results .market-table td:last-child {
    position: sticky;
    right: 0;
    background: #fff;
    box-shadow: -5px 0 8px #201d1d08;
    border-left: 1px solid var(--line);
  }
  #market-results .table-open {
    width: 36px;
    height: 36px;
  }
}
.market-sort-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.inline-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}
.inline-field select {
  width: auto;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 11px;
  background: white;
}
.market-sort-row .help-text {
  flex-basis: 100%;
  margin: 0;
  font-size: 11px;
}
.table-pagination {
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.table-pagination[aria-busy="true"] {
  opacity: 0.6;
  pointer-events: none;
}
.table-pagination .btn {
  min-height: 34px;
  padding: 8px 12px;
  font-size: 11px;
}
.authoring-section {
  grid-column: 1/-1;
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.authoring-section h3 {
  margin-bottom: 10px;
  font-size: 14px;
}
.authoring-section > .help-text {
  margin-bottom: 18px;
}
.authoring-section select[multiple] {
  min-height: 140px;
  line-height: 1.7;
}
.authoring-section select[multiple] option {
  padding: 4px 7px;
}
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 10px;
}
.section-title-row h3 {
  margin: 0;
}
.offer-options {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.offer-option {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  background: var(--paper);
}
.offer-option legend {
  font-size: 11px;
  color: var(--muted);
  padding: 0 7px;
  font-weight: 600;
}
.offer-option .form-grid {
  padding-top: 24px;
}
.option-remove {
  position: absolute;
  right: 12px;
  top: 2px;
}
.option-remove .btn {
  font-size: 11px;
}
.option-remove .icon {
  width: 14px;
  height: 14px;
}
.selected-counterparties {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 4px 0 8px;
}
.selected-party {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--linen);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 11px;
  color: var(--muted);
  padding: 5px 7px;
}
.selected-party button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  background: transparent;
  color: var(--muted);
  padding: 0;
}
.selected-party .icon {
  width: 12px;
  height: 12px;
}
.counterparty-choice {
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
  padding: 10px 3px;
  font-size: 11px;
  cursor: pointer;
}
.counterparty-choice input {
  width: 16px;
  height: 16px;
  min-height: 0;
  accent-color: var(--action);
}
.counterparty-choice strong {
  display: block;
  font-weight: 500;
  color: var(--muted);
}
.counterparty-choice small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.inline-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
}
.inline-pagination .btn {
  font-size: 11px;
}
.inline-pagination .icon {
  width: 13px;
  height: 13px;
}
.option-review {
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  margin: 12px 0;
}
.option-review h4 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
@media (max-width: 760px) {
  .market-sort-row {
    padding: 13px 15px;
    gap: 10px;
  }
  .inline-field {
    font-size: 11px;
  }
  .inline-field select {
    font-size: 11px;
    max-width: 170px;
  }
  .table-pagination {
    padding: 13px 15px;
    font-size: 11px;
  }
  .table-pagination .btn {
    font-size: 11px;
    padding: 7px 9px;
  }
  .authoring-section .form-grid {
    grid-template-columns: 1fr;
  }
  .section-title-row {
    align-items: flex-start;
  }
  .section-title-row .btn {
    font-size: 11px;
    padding: 8px 10px;
  }
  .offer-option {
    padding: 14px;
  }
  .authoring-section {
    grid-column: auto;
  }
  .authoring-section .full {
    grid-column: auto;
  }
}
.authenticator-setup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 20px 0 25px;
}
.authenticator-setup .field {
  width: 100%;
}
.mfa-qr {
  display: block;
  width: 230px;
  height: 230px;
  max-width: 100%;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}
.secret-key {
  font:
    13px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  letter-spacing: 0.5px;
  background: var(--paper);
}
.recovery-codes {
  display: grid;
  place-content: center;
  font:
    14px/2 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  white-space: pre;
  overflow-x: auto;
  background: var(--linen);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
  color: var(--muted);
  user-select: all;
}
.security-sessions .line-item h3 {
  font-size: 12px;
}
.security-sessions .line-item p {
  font-size: 11px;
  line-height: 1.7;
}
@media (max-width: 760px) {
  .recovery-codes {
    font-size: 11px;
    padding: 17px 10px;
  }
  .secret-key {
    font-size: 11px;
    letter-spacing: 0;
  }
  .mfa-qr {
    width: 210px;
    height: 210px;
  }
  .security-sessions .line-item {
    flex-direction: row;
    align-items: center;
  }
  .security-sessions .line-item .btn {
    font-size: 11px;
  }
}

.delivery-mail-toolbar,
.delivery-message-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.delivery-mail-toolbar {
  margin-bottom: 20px;
}
.delivery-message {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.delivery-message-header {
  margin-bottom: 14px;
}
.delivery-message-header h3 {
  margin: 0;
  font-size: 16px;
}
.delivery-message-header time {
  color: var(--muted);
  font-size: 12px;
}
.delivery-message summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
}
.delivery-message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.7;
  padding-top: 14px;
}
.delivery-stats {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.delivery-table td {
  max-width: 260px;
  overflow-wrap: anywhere;
}
.delivery-table .button-group {
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .delivery-message .button-group {
    flex-direction: column;
    align-items: stretch;
  }
}

/* TRALOT interface: original wordmark, warm surfaces and functional color. */
h1,
h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-optical-sizing: auto;
}
h1 {
  font-size: clamp(30px, 2.7vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}
h2 {
  line-height: 1.3;
}
h3 {
  font-weight: 650;
}
a {
  text-underline-offset: 4px;
}
.initial-loading .brand {
  justify-content: center;
  padding: 0;
}
.initial-loading .brand img {
  width: 230px;
}
.sidebar .brand {
  margin: 0 -2px 0;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.25px;
  line-height: 1.5;
  margin: 16px 14px 10px;
}
.nav-link {
  color: var(--ink);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
}
.nav-link .icon {
  color: var(--muted);
}
.nav-link.active {
  font-weight: 700;
}
.sidebar-bottom {
  padding-top: 16px;
}
.verified-side {
  color: var(--ink);
  background: var(--linen);
  border-color: var(--line);
  border-radius: 8px;
  line-height: 1.5;
}
.side-note {
  padding: 12px 10px 0;
  font-size: 10px;
}
.topbar {
  background: white;
}
.demo-mobile {
  display: none;
}
.breadcrumb {
  font-size: 12px;
}
.breadcrumb b {
  color: var(--ink);
}
.lang-button {
  min-height: 40px;
  color: var(--ink);
}
.avatar {
  color: var(--ink);
}
.eyebrow {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.6px;
}
.page-description {
  font-size: 13px;
  line-height: 1.65;
}
.btn {
  border-radius: 8px;
  min-height: 44px;
  font-size: 12px;
  padding: 11px 16px;
  line-height: 1.4;
}
.btn-primary:hover {
  background: var(--action-hover);
  filter: none;
}
.btn-secondary:hover {
  background: var(--linen);
  filter: none;
}
.btn-text {
  color: var(--action);
}
.btn-text:hover {
  background: var(--linen);
  filter: none;
}
.btn-small {
  min-height: 36px;
}
.stat {
  border-radius: 12px;
  padding: 20px;
}
.stat-value {
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 12px;
  line-height: 1.5;
}
.stat-unit {
  font-size: 12px;
}
.stat-foot {
  color: var(--muted);
  line-height: 1.5;
}
.stat-icon {
  color: var(--muted);
}
.market-notice {
  background: var(--linen);
  color: var(--muted);
  border-color: var(--line);
  font-size: 12px;
  border-radius: 8px;
  line-height: 1.65;
  align-items: flex-start;
}
.market-notice .icon {
  color: var(--ink);
}
.market-notice strong {
  color: var(--ink);
}
.surface {
  border-radius: 12px;
}
.surface-header h2 {
  font-size: 21px;
  font-weight: 400;
}
.surface-header small {
  font-size: 12px;
}
.tab {
  font-size: 13px;
}
.tab .tab-count {
  color: var(--muted);
}
.filter-row input,
.filter-row select,
.filter-more {
  font-size: 12px;
  min-height: 42px;
  height: 42px;
}
.search-control .icon {
  top: 12px;
}
.filter-row select {
  min-width: 120px;
}
.filter-more {
  border-radius: 8px;
}
.market-table th {
  font-size: 10px;
  color: var(--muted);
  background: var(--paper);
}
.market-table td {
  color: var(--ink);
  font-size: 12px;
}
.market-table tbody tr:hover {
  background: var(--paper);
}
.crop-name {
  color: var(--ink);
  font-size: 13px;
}
.crop-meta,
.table-secondary {
  font-size: 11px;
  line-height: 1.45;
}
.table-primary {
  font-size: 13px;
}
.price-line {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.crop-icon,
.crop-icon.corn {
  background: var(--linen);
  border-color: var(--line);
  color: var(--muted);
}
.pill {
  font-size: 10px;
  padding: 5px 7px;
  font-weight: 650;
  border-radius: 6px;
}
.pill-green {
  color: var(--success);
  background: var(--success-tint);
}
.pill-blue {
  color: #31577a;
  background: #edf2f7;
}
.pill-amber {
  color: var(--warning);
  background: var(--warning-tint);
}
.pill-gray {
  color: var(--muted);
  background: var(--linen);
}
.pill-red {
  color: var(--danger);
  background: #fcebe7;
}
.table-open {
  width: 36px;
  height: 36px;
  color: var(--action);
  border-radius: 8px;
}
.table-open:hover {
  background: var(--linen);
}
.info-card {
  background: var(--paper);
  border-radius: 8px;
}
.info-card h3 {
  font-size: 13px;
  color: var(--ink);
}
.info-card p {
  font-size: 12px;
  color: var(--muted);
}
.page-footer {
  font-size: 11px;
  line-height: 1.5;
  padding-top: 8px;
}
.page-footer span {
  align-items: flex-start;
}
.page-footer .icon {
  margin-top: 2px;
}
.empty-state h3 {
  font-size: 18px;
}
.empty-state p {
  font-size: 14px;
}
.field {
  font-size: 13px;
  color: var(--ink);
}
.field small {
  font-size: 12px;
  color: var(--muted);
}
input,
select,
textarea {
  border-color: #a99c96;
  border-radius: 8px;
  font-size: 14px;
  min-height: 44px;
  color: var(--ink);
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}
.checkbox {
  font-size: 13px;
  color: var(--ink);
}
.detail-list dt {
  font-size: 12px;
}
.detail-list dd {
  font-size: 14px;
  color: var(--ink);
}
.help-text,
.error-box,
.success-box {
  font-size: 13px;
}
.success-box {
  color: var(--success);
  border-color: #c7dfcf;
  background: var(--success-tint);
}
.amount-card {
  background: var(--paper);
  border-radius: 8px;
}
.amount-row {
  font-size: 14px;
}
.amount-row.total {
  font-size: 15px;
}
.small-caps {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--muted);
}
.login-aside .brand img {
  width: 260px;
}
.login-intro {
  max-width: 460px;
  padding: 40px 0;
}
.login-intro .eyebrow {
  font-size: 11px;
}
.login-intro h1 {
  font-size: clamp(36px, 3.75vw, 56px);
  line-height: 1.16;
  font-weight: 400;
  letter-spacing: -0.04em;
}
.login-intro h1 em {
  color: var(--signal);
}
.login-intro p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}
.login-feature {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.6;
  gap: 12px;
}
.login-feature .icon {
  color: var(--muted);
}
.login-aside-foot {
  color: var(--muted);
  font-size: 11px;
}
.login-form-wrap {
  max-width: 410px;
}
.login-form-wrap h2 {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.03em;
}
.login-form-wrap > p {
  font-size: 14px;
  color: var(--muted);
}
.login-form-wrap input {
  min-height: 48px;
  font-size: 16px;
}
.login-form-wrap .btn {
  min-height: 48px;
  font-size: 14px;
}
.login-form-wrap .btn-text {
  min-height: 40px;
  font-size: 13px;
}
.login-form-wrap .login-note {
  font-size: 12px;
}
.demo-account {
  color: var(--ink);
  border-radius: 8px;
  font-size: 12px;
}
.demo-account:hover {
  border-color: var(--line);
  background: var(--linen);
}
.demo-account small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.login-bottom {
  color: var(--muted);
}
dialog {
  border-radius: 12px;
}
.dialog-header {
  background: var(--paper);
}
.dialog-header h2 {
  font-size: 26px;
  letter-spacing: -0.025em;
}
.dialog-header p {
  font-size: 12px;
}
.dialog-close {
  width: 36px;
  height: 36px;
  color: var(--ink);
}
.dialog-body > h3 {
  font-size: 15px;
}
.quote-banner {
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  border-radius: 8px;
}
.line-item h3 {
  font-size: 14px;
  line-height: 1.5;
}
.line-item p {
  font-size: 12px;
  line-height: 1.6;
}
.message p {
  font-size: 14px;
}
.message small {
  color: var(--muted);
}
.counter-card h3 {
  font-size: 14px;
}
.history-row {
  color: var(--muted);
  font-size: 12px;
}
.history-row strong {
  color: var(--ink);
}
.toast {
  background: var(--ink);
  font-size: 13px;
}
.toast.error {
  background: var(--danger);
}
.admin-tabbar .btn.active {
  background: var(--action);
}
@media (min-width: 761px) and (max-width: 1500px) {
  #market-results .market-table td {
    font-size: 11px;
  }
  #market-results .crop-name,
  #market-results .table-primary {
    font-size: 12px;
  }
  #market-results .table-secondary,
  #market-results .crop-meta {
    font-size: 10px;
  }
  #market-results .pill {
    font-size: 9px;
  }
  #market-results .crop-cell {
    min-width: 125px;
  }
  #market-results .crop-icon {
    display: none;
  }
}
@media (max-width: 1000px) {
  .login-layout {
    grid-template-columns: 44% 56%;
  }
  .login-aside {
    padding: 32px;
  }
  .login-intro h1 {
    font-size: 36px;
  }
  .login-intro p {
    font-size: 14px;
  }
  .login-aside .brand img {
    width: 220px;
  }
  .page-description {
    font-size: 12px;
  }
}
@media (max-width: 760px) {
  .topbar {
    padding: 0 16px;
    gap: 8px;
    height: 76px;
  }
  .topbar-left {
    gap: 7px;
  }
  .topbar-right {
    gap: 7px;
  }
  .topbar .breadcrumb {
    display: none;
  }
  .topbar .demo-desktop {
    display: none;
  }
  .topbar .demo-mobile {
    display: inline;
  }
  .topbar .demo-badge {
    padding: 5px;
    font-size: 8px;
  }
  .topbar .btn-text {
    padding: 4px;
    min-width: 28px;
  }
  .topbar .lang-button {
    font-size: 10px;
  }
  .topbar .lang-button .icon {
    display: none;
  }
  .mobile-wordmark {
    display: block;
    width: 170px;
    height: auto;
  }
  .mobile-menu {
    min-height: 44px;
    width: 24px;
    color: var(--ink);
  }
  .sidebar {
    padding: 20px 20px 18px;
  }
  .sidebar .brand {
    margin: 0;
  }
  .nav-link {
    font-size: 13px;
    min-height: 46px;
  }
  .page {
    padding: 26px 20px;
  }
  h1 {
    font-size: 29px;
  }
  .page-header .btn {
    min-height: 44px;
  }
  .stat {
    padding: 16px;
  }
  .stat-label {
    font-size: 11px;
  }
  .stat-value {
    font-size: 25px;
  }
  .surface-header {
    padding: 18px 16px;
    align-items: flex-start;
  }
  .surface-header h2 {
    font-size: 19px;
  }
  .surface-header small {
    font-size: 11px;
  }
  .market-notice {
    font-size: 11px;
  }
  .tab {
    font-size: 12px;
  }
  .filter-row input,
  .filter-row select {
    font-size: 13px;
  }
  .market-table td {
    font-size: 12px;
  }
  .table-secondary {
    font-size: 11px;
  }
  .page-footer {
    font-size: 11px;
  }
  .info-card h3 {
    font-size: 13px;
  }
  .info-card p {
    font-size: 12px;
  }
  .mobile-table-hint {
    font-size: 11px;
  }
  .login-layout {
    display: block;
  }
  .login-aside {
    padding: 12px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .login-aside .brand {
    padding: 0;
  }
  .login-aside .brand img {
    width: 180px;
  }
  .login-main {
    padding: 20px;
    min-height: calc(100vh - 97px);
  }
  .login-form-wrap {
    padding: 32px 0;
  }
  .login-form-wrap h2 {
    font-size: 30px;
  }
  .login-form-wrap .eyebrow {
    font-size: 10px;
  }
  .dialog-header h2 {
    font-size: 24px;
  }
  .dialog-header p {
    font-size: 12px;
  }
  .dialog-body {
    padding: 20px;
  }
  .dialog-actions .btn {
    white-space: normal;
  }
  .help-text {
    font-size: 13px;
  }
  .field {
    font-size: 13px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .btn,
  .nav-link,
  .tab {
    transition:
      background-color 180ms ease,
      color 180ms ease;
  }
}
