:root {
  --black: #050705;
  --black-soft: #090d09;
  --surface: #0d120d;
  --surface-raised: #121a12;
  --surface-border: #273027;
  --white: #f6f8f4;
  --muted: #9ba699;
  --muted-dark: #6f796d;
  --lime: #79e821;
  --lime-light: #a6ff62;
  --lime-dark: #2f7a19;
  --danger: #ff6b6b;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 80px rgb(0 0 0 / 38%);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--black);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 14%, rgb(121 232 33 / 9%), transparent 28rem),
    radial-gradient(circle at 8% 88%, rgb(47 122 25 / 11%), transparent 32rem),
    var(--black);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.landing-shell {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  padding:
    calc(18px + var(--safe-top))
    20px
    calc(20px + var(--safe-bottom));
  overflow: hidden;
}

.public-nav,
.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.public-nav {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-pulse,
.status-dot {
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 18px rgb(121 232 33 / 72%);
}

.brand-pulse {
  width: 9px;
  height: 9px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 760;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.button:active {
  transform: scale(0.98);
}

.button-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.84rem;
}

.button-wide {
  width: 100%;
  min-height: 56px;
  padding: 0 24px;
}

.button-ghost {
  border-color: var(--surface-border);
  background: rgb(255 255 255 / 3%);
}

.button-ghost:hover {
  border-color: var(--lime-dark);
  background: rgb(121 232 33 / 7%);
}

.button-primary {
  color: #071006;
  background: linear-gradient(135deg, var(--lime-light), var(--lime));
  box-shadow: 0 16px 36px rgb(64 150 18 / 22%);
}

.button-primary:hover {
  background: linear-gradient(135deg, #b8ff81, #86f02d);
  transform: translateY(-1px);
}

.button-primary span {
  font-size: 1.25rem;
}

.hero {
  display: grid;
  width: 100%;
  max-width: 1180px;
  flex: 1;
  align-items: center;
  gap: 28px;
  margin: 0 auto;
  padding: 42px 0 30px;
}

.hero > *,
.hero-copy,
.auth-card,
.auth-form,
.field,
.password-control {
  min-width: 0;
}

.hero-logo-frame {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 230px;
  place-items: center;
  padding: 22px 12px;
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgb(255 255 255 / 2%), rgb(255 255 255 / 0%)),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 31px,
      rgb(255 255 255 / 2.2%) 32px
    );
  overflow: hidden;
}

.hero-logo-frame::after {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--lime);
  content: "";
  filter: blur(100px);
  opacity: 0.14;
}

.hero-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 430px);
  max-width: 100%;
  height: auto;
}

.frame-corner {
  position: absolute;
  z-index: 0;
  width: 36px;
  height: 36px;
  pointer-events: none;
}

.frame-corner-top {
  top: 14px;
  left: 14px;
  border-top: 2px solid var(--lime);
  border-left: 2px solid var(--lime);
}

.frame-corner-bottom {
  right: 14px;
  bottom: 14px;
  border-right: 2px solid var(--lime);
  border-bottom: 2px solid var(--lime);
}

.hero-copy {
  max-width: 590px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 24px;
  height: 2px;
  background: currentColor;
}

.hero-copy h1,
.welcome-block h1 {
  margin: 0;
  font-size: clamp(2.3rem, 12vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
}

.hero-summary,
.welcome-block > p:last-child {
  max-width: 38rem;
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.private-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 16px 0 0;
  color: var(--muted-dark);
  font-size: 0.76rem;
}

.status-dot {
  width: 7px;
  height: 7px;
}

.landing-footer {
  display: flex;
  width: 100%;
  max-width: 1180px;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  color: var(--muted-dark);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer-rule {
  width: 34px;
  height: 1px;
  background: var(--surface-border);
}

.auth-page {
  display: grid;
  place-items: center;
}

.auth-shell {
  width: 100%;
  max-width: 520px;
  min-height: 100svh;
  padding:
    calc(22px + var(--safe-top))
    20px
    calc(28px + var(--safe-bottom));
}

.back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.auth-card {
  margin-top: 24px;
  padding: 26px 22px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  background: rgb(13 18 13 / 92%);
  box-shadow: var(--shadow);
}

.auth-header {
  margin-bottom: 24px;
}

.auth-logo {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
  margin: -22px 0 18px;
}

.auth-header h1 {
  margin: 0;
  font-size: 2.25rem;
  letter-spacing: -0.045em;
}

.auth-header > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.alert span {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
}

.alert p {
  margin: 1px 0 0;
  line-height: 1.45;
}

.alert-error {
  border: 1px solid rgb(255 107 107 / 28%);
  color: #ffd0d0;
  background: rgb(255 107 107 / 8%);
}

.alert-error span {
  color: var(--black);
  background: var(--danger);
}

.auth-form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field > span:first-child {
  color: #cad1c7;
  font-size: 0.78rem;
  font-weight: 740;
}

.field input {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  color: var(--white);
  background: var(--black-soft);
  padding: 0 15px;
}

.field input:hover {
  border-color: #3b4939;
}

.field input:focus {
  border-color: var(--lime);
  outline: 0;
  box-shadow: 0 0 0 3px rgb(121 232 33 / 13%);
}

.password-control {
  position: relative;
  display: block;
}

.password-control input {
  padding-right: 68px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  min-width: 54px;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  color: var(--lime);
  background: transparent;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
  transform: translateY(-50%);
}

.auth-help {
  margin: 22px 0 0;
  color: var(--muted-dark);
  font-size: 0.76rem;
  text-align: center;
}

.portal-page {
  background:
    linear-gradient(180deg, rgb(121 232 33 / 4%), transparent 260px),
    var(--black);
}

.portal-shell {
  width: 100%;
  min-height: 100svh;
  padding-bottom: var(--safe-bottom);
}

.portal-header {
  min-height: calc(72px + var(--safe-top));
  padding: calc(10px + var(--safe-top)) 18px 10px;
  border-bottom: 1px solid var(--surface-border);
  background: rgb(5 7 5 / 88%);
  backdrop-filter: blur(16px);
}

.portal-brand {
  display: flex;
  width: 84px;
  height: 52px;
  align-items: center;
  overflow: visible;
}

.portal-brand img {
  display: block;
  width: 84px;
  height: auto;
}

.portal-menu {
  position: relative;
  z-index: 30;
}

.menu-button {
  display: grid;
  width: 44px;
  height: 44px;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--surface-border);
  border-radius: 50%;
  color: var(--white);
  background: var(--surface);
  cursor: pointer;
}

.menu-button:hover,
.menu-button[aria-expanded="true"] {
  border-color: rgb(121 232 33 / 46%);
  color: var(--lime);
  background: rgb(121 232 33 / 8%);
}

.menu-button span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

.menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.portal-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(290px, calc(100vw - 36px));
  padding: 10px;
  border: 1px solid rgb(121 232 33 / 24%);
  border-radius: 18px;
  background: rgb(9 13 9 / 98%);
  box-shadow: 0 24px 70px rgb(0 0 0 / 58%);
}

.portal-menu-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 14px;
  border-bottom: 1px solid var(--surface-border);
}

.portal-menu-heading span {
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-menu-heading small {
  max-width: 150px;
  color: var(--muted);
  font-size: 0.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-menu-links {
  display: grid;
  gap: 4px;
  padding: 8px 0;
}

.portal-menu-links a,
.portal-menu-logout button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  color: #c7d0c4;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 740;
  text-align: left;
  cursor: pointer;
}

.portal-menu-links a:hover,
.portal-menu-links a.active,
.portal-menu-logout button:hover {
  color: var(--white);
  background: rgb(121 232 33 / 8%);
}

.portal-menu-links a.active {
  color: var(--lime-light);
}

.portal-menu-links svg,
.portal-menu-logout svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.portal-menu-logout {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid var(--surface-border);
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--surface-border);
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--lime-dark);
  color: var(--lime);
}

.icon-button svg,
.portal-nav-link svg,
.coming-soon-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.portal-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--surface-border);
  background: rgb(5 7 5 / 90%);
  overflow-x: auto;
  backdrop-filter: blur(16px);
}

.portal-nav-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
  white-space: nowrap;
}

.portal-nav-link.active {
  border-color: rgb(121 232 33 / 28%);
  color: #dfffd0;
  background: rgb(121 232 33 / 11%);
}

.portal-nav-link.disabled {
  color: #5e675c;
}

.portal-main {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 18px 54px;
}

.portal-main-actions {
  padding-top: 18px;
}

.admin-actions {
  display: grid;
  grid-template-areas:
    "bol"
    "panel"
    "pallets"
    "customers";
  gap: 14px;
}

.admin-action-bol {
  grid-area: bol;
}

.admin-action-pallets {
  grid-area: pallets;
}

.admin-action-customers {
  grid-area: customers;
}

.admin-action {
  display: flex;
  width: 100%;
  min-height: 104px;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgb(121 232 33 / 24%);
  border-radius: var(--radius-md);
  color: var(--white);
  background:
    linear-gradient(135deg, rgb(121 232 33 / 12%), transparent 55%),
    var(--surface);
  box-shadow: 0 12px 30px rgb(0 0 0 / 18%);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.admin-action:hover {
  border-color: rgb(121 232 33 / 55%);
  background-color: rgb(121 232 33 / 5%);
  transform: translateY(-2px);
}

.admin-action:active {
  transform: translateY(0);
}

.admin-action-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  border: 1px solid rgb(121 232 33 / 32%);
  border-radius: 16px;
  color: var(--lime);
  background: rgb(121 232 33 / 10%);
}

.admin-action-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.bol-upload-panel {
  grid-area: panel;
  padding: 22px 18px;
  border: 1px solid rgb(121 232 33 / 30%);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgb(121 232 33 / 9%), transparent 48%),
    #091009;
  box-shadow: 0 18px 50px rgb(0 0 0 / 28%);
}

.bol-upload-heading,
.section-heading,
.bol-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.bol-upload-heading .eyebrow,
.section-heading .eyebrow {
  margin-bottom: 12px;
}

.bol-upload-heading h1 {
  font-size: clamp(1.55rem, 7vw, 2.35rem);
}

.panel-close {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid var(--surface-border);
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
}

.panel-close:hover {
  border-color: var(--lime-dark);
  color: var(--lime);
}

.panel-close svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.form-alert {
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid rgb(255 109 109 / 32%);
  border-radius: 12px;
  color: #ffd4d4;
  background: rgb(156 32 32 / 18%);
  font-size: 0.86rem;
  line-height: 1.45;
}

.form-alert-warning {
  margin: 20px 0 0;
  border-color: rgb(255 201 87 / 28%);
  color: #ffe8b8;
  background: rgb(129 82 0 / 17%);
}

.bol-upload-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.file-drop {
  position: relative;
  display: flex;
  min-height: 118px;
  align-items: center;
  gap: 15px;
  padding: 18px;
  border: 1px dashed rgb(121 232 33 / 42%);
  border-radius: var(--radius-md);
  color: var(--white);
  background: rgb(121 232 33 / 4%);
  cursor: pointer;
}

.file-drop:hover,
.file-drop:focus-within {
  border-color: var(--lime);
  background: rgb(121 232 33 / 7%);
}

.file-drop-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 14px;
  color: var(--lime);
  background: rgb(121 232 33 / 11%);
}

.file-drop-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.file-drop strong,
.file-drop small {
  display: block;
}

.file-drop strong {
  font-size: 0.95rem;
}

.file-drop small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
}

.file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.field-group {
  display: grid;
  gap: 8px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 720;
}

.field-group select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  color: var(--white);
  background: #080d08;
  font: inherit;
}

.field-group select:focus {
  border-color: var(--lime);
  outline: none;
  box-shadow: 0 0 0 3px rgb(121 232 33 / 12%);
}

.bol-submit {
  width: 100%;
  min-height: 54px;
}

.recent-bols {
  margin-top: 34px;
}

.section-heading {
  display: block;
  margin-bottom: 15px;
}

.section-heading h2 {
  font-size: 1.45rem;
}

.bol-record-list {
  display: grid;
  gap: 10px;
}

.bol-record {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  color: var(--white);
  background: rgb(255 255 255 / 1.8%);
}

.bol-record:hover {
  border-color: rgb(121 232 33 / 36%);
  background: rgb(121 232 33 / 4%);
}

.bol-record-main,
.bol-record-side {
  display: grid;
  gap: 5px;
}

.bol-record-main {
  min-width: 0;
}

.bol-record-main strong {
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bol-record-main small {
  color: var(--muted);
  font-size: 0.73rem;
}

.bol-record-side {
  flex: 0 0 auto;
  justify-items: end;
  font-size: 0.78rem;
}

.record-status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgb(121 232 33 / 22%);
  border-radius: 999px;
  color: var(--lime-light);
  background: rgb(121 232 33 / 7%);
  font-size: 0.6rem;
  font-weight: 820;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.record-status-needs_review {
  border-color: rgb(255 201 87 / 25%);
  color: #ffe1a0;
  background: rgb(255 201 87 / 7%);
}

.record-status-receiving {
  border-color: rgb(100 174 255 / 28%);
  color: #b9dcff;
  background: rgb(63 127 194 / 10%);
}

.record-status-staging {
  border-color: rgb(121 232 33 / 28%);
  color: var(--lime-light);
  background: rgb(121 232 33 / 9%);
}

.bol-detail {
  max-width: 1040px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
}

.back-link:hover {
  color: var(--lime);
}

.bol-detail-heading {
  flex-direction: column;
  margin-top: 28px;
}

.bol-detail-heading h1 {
  margin-top: 14px;
  font-size: clamp(2rem, 10vw, 4.2rem);
}

.bol-detail-heading p {
  margin-top: 9px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.bol-detail-heading .button {
  width: 100%;
}

.bol-summary-grid {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.bol-stage-action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid rgb(121 232 33 / 26%);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgb(121 232 33 / 8%), transparent 58%),
    var(--surface);
}

.bol-stage-action div {
  display: grid;
  gap: 6px;
}

.bol-stage-action div span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bol-stage-action strong {
  font-size: 0.98rem;
}

.bol-stage-action .button {
  padding: 0 18px;
}

.bol-summary-card {
  display: grid;
  min-height: 102px;
  align-content: space-between;
  gap: 18px;
  padding: 17px;
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  background: var(--surface);
}

.bol-summary-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.bol-summary-card strong {
  font-size: 0.96rem;
  overflow-wrap: anywhere;
}

.bol-summary-card-money {
  border-color: rgb(121 232 33 / 24%);
  background:
    linear-gradient(135deg, rgb(121 232 33 / 9%), transparent 60%),
    var(--surface);
}

.bol-summary-card-money strong {
  color: var(--lime-light);
  font-size: 1.55rem;
}

.extracted-text {
  margin-top: 14px;
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.extracted-text summary {
  padding: 17px;
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 760;
  cursor: pointer;
}

.extracted-text pre {
  max-height: 560px;
  margin: 0;
  padding: 18px;
  border-top: 1px solid var(--surface-border);
  color: #c7d6c1;
  background: #030503;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.73rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow: auto;
}

.bol-archive {
  max-width: 1040px;
}

.archive-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.archive-heading .eyebrow {
  margin-bottom: 14px;
}

.archive-heading h1 {
  font-size: clamp(2.15rem, 11vw, 4.5rem);
}

.archive-heading p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
}

.archive-upload-button {
  width: 100%;
  padding: 0 20px;
}

.archive-list {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.archive-metrics {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.archive-metrics article {
  display: grid;
  min-height: 100px;
  align-content: space-between;
  gap: 15px;
  padding: 16px;
  border: 1px solid var(--surface-border);
  border-radius: 15px;
  background: var(--surface);
}

.archive-metrics span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.archive-metrics strong {
  font-size: 1.55rem;
}

.archive-metrics .archive-profit-metric {
  border-color: rgb(121 232 33 / 26%);
  background:
    linear-gradient(135deg, rgb(121 232 33 / 9%), transparent 65%),
    var(--surface);
}

.archive-profit-metric strong {
  color: var(--lime-light);
}

.archive-record {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  grid-template-areas:
    "icon content arrow"
    "icon value arrow";
  align-items: center;
  gap: 8px 12px;
  padding: 15px 14px;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  color: var(--white);
  background:
    linear-gradient(125deg, rgb(121 232 33 / 4%), transparent 38%),
    rgb(255 255 255 / 1.8%);
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.archive-record:hover {
  border-color: rgb(121 232 33 / 42%);
  background-color: rgb(121 232 33 / 4%);
  transform: translateY(-1px);
}

.archive-record-icon {
  grid-area: icon;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  align-self: start;
  border: 1px solid rgb(121 232 33 / 22%);
  border-radius: 12px;
  color: var(--lime);
  background: rgb(121 232 33 / 8%);
}

.archive-record-icon svg,
.archive-empty-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.archive-record-content {
  grid-area: content;
  min-width: 0;
}

.archive-record-topline {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.archive-record-topline > strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-record-topline .record-status {
  display: none;
}

.archive-record-filename,
.archive-record-meta,
.archive-record-pallets {
  display: block;
  color: var(--muted);
  font-size: 0.69rem;
}

.archive-record-filename {
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.archive-record-pallets {
  margin-top: 7px;
  color: #c1cebD;
}

.archive-record-value {
  grid-area: value;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.archive-record-value strong {
  color: var(--lime-light);
  font-size: 0.86rem;
}

.archive-record-value small {
  color: var(--muted-dark);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.archive-record-arrow {
  grid-area: arrow;
  color: var(--lime);
  font-size: 1.15rem;
}

.archive-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.75rem;
}

.archive-pagination a {
  color: var(--lime-light);
  font-weight: 740;
}

.archive-pagination a:last-child {
  text-align: right;
}

.archive-empty {
  display: grid;
  justify-items: center;
  margin-top: 30px;
  padding: 48px 22px;
  border: 1px dashed var(--surface-border);
  border-radius: var(--radius-lg);
  text-align: center;
  background: rgb(255 255 255 / 1.5%);
}

.archive-empty-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgb(121 232 33 / 25%);
  border-radius: 17px;
  color: var(--lime);
  background: rgb(121 232 33 / 8%);
}

.archive-empty h2 {
  margin: 20px 0 8px;
  font-size: 1.35rem;
}

.archive-empty p {
  max-width: 430px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.archive-empty .button {
  width: 100%;
  padding: 0 20px;
}

.pallet-workflow {
  max-width: 1040px;
}

.workflow-heading {
  margin-top: 28px;
}

.workflow-heading .eyebrow {
  margin-bottom: 14px;
}

.workflow-heading h1 {
  font-size: clamp(2.1rem, 10vw, 4.25rem);
}

.workflow-heading > p:last-child {
  max-width: 650px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.receiving-list {
  display: grid;
  gap: 11px;
  margin-top: 28px;
}

.receiving-record {
  position: relative;
  display: grid;
  gap: 7px;
  padding: 18px 48px 18px 18px;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  background:
    linear-gradient(130deg, rgb(70 142 214 / 6%), transparent 46%),
    var(--surface);
}

.receiving-record:hover {
  border-color: rgb(100 174 255 / 42%);
}

.receiving-record-status,
.stage-pill {
  width: fit-content;
  padding: 5px 8px;
  border: 1px solid rgb(100 174 255 / 25%);
  border-radius: 999px;
  color: #b9dcff;
  background: rgb(63 127 194 / 9%);
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.receiving-record > strong {
  font-size: 1rem;
}

.receiving-record > span:not(.receiving-record-status, .receiving-record-details, .receiving-record-arrow) {
  color: var(--muted);
  font-size: 0.78rem;
}

.receiving-record-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 5px;
  color: #c7d2c3;
  font-size: 0.75rem;
}

.receiving-record-arrow {
  position: absolute;
  top: 50%;
  right: 18px;
  color: var(--lime);
  font-size: 1.2rem;
  transform: translateY(-50%);
}

.registration-source-grid,
.registration-metrics {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.registration-source-grid article,
.registration-metrics article {
  display: grid;
  min-height: 92px;
  align-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  background: var(--surface);
}

.registration-source-grid span,
.registration-metrics article > span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 760;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.registration-source-grid strong,
.registration-metrics strong {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.registration-form {
  margin-top: 18px;
}

.registration-fields {
  display: grid;
  gap: 12px;
}

.registration-field {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  background: var(--surface);
}

.registration-field > span:first-child,
.pallet-price-input > span:first-child {
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 760;
}

.registration-field > input,
.money-input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--surface-border);
  border-radius: 11px;
  color: var(--white);
  background: #070a07;
}

.registration-field > input {
  padding: 0 13px;
}

.money-input {
  display: flex;
  align-items: center;
  padding-left: 13px;
}

.money-input > span {
  flex: 0 0 auto;
  color: var(--lime);
  font-weight: 800;
}

.money-input input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px 0 6px;
  border: 0;
  color: var(--white);
  background: transparent;
  outline: none;
}

.registration-field > input:focus,
.money-input:focus-within {
  border-color: var(--lime);
  outline: none;
  box-shadow: 0 0 0 3px rgb(121 232 33 / 11%);
}

.registration-field small {
  color: var(--muted-dark);
  font-size: 0.69rem;
  line-height: 1.45;
}

.pricing-preview {
  display: grid;
  gap: 1px;
  margin-top: 14px;
  border: 1px solid rgb(121 232 33 / 23%);
  border-radius: 16px;
  background: var(--surface-border);
  overflow: hidden;
}

.pricing-preview div {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: #0a100a;
}

.pricing-preview span {
  color: var(--muted);
  font-size: 0.72rem;
}

.pricing-preview strong {
  color: var(--lime-light);
  font-size: 1.05rem;
}

.registration-submit {
  width: 100%;
  margin-top: 14px;
  padding: 0 20px;
}

.registration-detail-heading {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  margin-top: 28px;
}

.registration-detail-heading h1 {
  margin-top: 12px;
  font-size: clamp(2rem, 9vw, 4rem);
  overflow-wrap: anywhere;
}

.registration-detail-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.stage-pill {
  border-color: rgb(121 232 33 / 27%);
  color: var(--lime-light);
  background: rgb(121 232 33 / 8%);
}

.registration-detail-heading .button {
  width: 100%;
  padding: 0 20px;
}

.form-success {
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid rgb(121 232 33 / 28%);
  border-radius: 12px;
  color: #dfffd0;
  background: rgb(121 232 33 / 8%);
  font-size: 0.82rem;
}

.registration-metrics .registration-profit-card {
  border-color: rgb(121 232 33 / 26%);
  background:
    linear-gradient(135deg, rgb(121 232 33 / 9%), transparent 64%),
    var(--surface);
}

.registration-profit-card strong {
  color: var(--lime-light);
}

.pallet-price-form {
  margin-top: 34px;
}

.pallet-list-heading {
  display: grid;
  gap: 9px;
  margin-bottom: 15px;
}

.pallet-list-heading .eyebrow {
  margin-bottom: 9px;
}

.pallet-list-heading h2 {
  font-size: 1.45rem;
}

.pallet-list-heading > span {
  color: var(--muted);
  font-size: 0.76rem;
}

.pallet-price-list {
  display: grid;
  gap: 10px;
}

.pallet-price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "identity cost"
    "price price"
    "label label";
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--surface-border);
  border-radius: 15px;
  background: var(--surface);
}

.pallet-identity {
  grid-area: identity;
  display: grid;
  gap: 4px;
}

.pallet-identity span,
.pallet-cost span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 730;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pallet-identity strong {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.94rem;
}

.pallet-identity small {
  color: var(--muted-dark);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.65rem;
}

.pallet-cost {
  grid-area: cost;
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 5px;
}

.pallet-cost strong {
  color: #cad4c7;
  font-size: 0.86rem;
}

.pallet-price-input {
  grid-area: price;
  display: grid;
  gap: 8px;
}

.single-label-link {
  grid-area: label;
  color: var(--lime-light);
  font-size: 0.74rem;
  font-weight: 760;
}

.pallet-price-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.pallet-price-actions .button {
  width: 100%;
  padding: 0 18px;
}

.welcome-block {
  margin-bottom: 30px;
}

.welcome-block h1 {
  max-width: 780px;
  font-size: clamp(2.15rem, 10vw, 4.8rem);
}

.coming-soon-card {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgb(121 232 33 / 8%), transparent 42%),
    var(--surface);
  overflow: hidden;
}

.coming-soon-card::after {
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  border: 1px solid rgb(121 232 33 / 20%);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 28px rgb(121 232 33 / 3%),
    0 0 0 58px rgb(121 232 33 / 2%);
}

.coming-soon-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgb(121 232 33 / 24%);
  border-radius: 16px;
  color: var(--lime);
  background: rgb(121 232 33 / 8%);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border: 1px solid rgb(121 232 33 / 25%);
  border-radius: 999px;
  color: var(--lime-light);
  background: rgb(121 232 33 / 8%);
  font-size: 0.65rem;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.coming-soon-card h2 {
  max-width: 660px;
  margin: 14px 0 10px;
  font-size: clamp(1.55rem, 7vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.coming-soon-card p,
.foundation-grid p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.foundation-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.foundation-grid article {
  padding: 20px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 1.8%);
}

.foundation-number {
  color: var(--lime);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
}

.foundation-grid h3 {
  margin: 22px 0 8px;
  font-size: 1rem;
}

.foundation-grid p {
  font-size: 0.86rem;
}

@media (min-width: 720px) {
  .landing-shell {
    padding-right: 36px;
    padding-left: 36px;
  }

  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 7vw;
    padding: 64px 0;
  }

  .hero-logo-frame {
    min-height: 430px;
  }

  .hero-copy h1 {
    font-size: clamp(3.3rem, 6.1vw, 5.8rem);
  }

  .button-wide {
    width: auto;
    min-width: 180px;
  }

  .private-note {
    justify-content: flex-start;
  }

  .auth-shell {
    min-height: auto;
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .auth-card {
    padding: 36px;
  }

  .portal-header {
    padding-right: 32px;
    padding-left: 32px;
  }

  .portal-nav {
    padding-right: 32px;
    padding-left: 32px;
  }

  .portal-main {
    padding: 58px 32px 72px;
  }

  .portal-main-actions {
    padding-top: 28px;
  }

  .admin-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "bol pallets customers"
      "panel panel panel";
  }

  .admin-action {
    min-height: 156px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px;
    font-size: 1.08rem;
  }

  .bol-upload-panel {
    padding: 30px;
  }

  .bol-upload-form {
    grid-template-columns: minmax(0, 1.4fr) minmax(230px, 0.6fr);
    align-items: end;
  }

  .file-drop {
    grid-row: span 2;
    min-height: 134px;
  }

  .bol-submit {
    width: auto;
  }

  .bol-detail-heading {
    flex-direction: row;
    align-items: flex-end;
  }

  .bol-detail-heading .button {
    width: auto;
    flex: 0 0 auto;
  }

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

  .bol-stage-action {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .archive-heading {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .archive-upload-button {
    width: auto;
    flex: 0 0 auto;
  }

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

  .archive-record {
    grid-template-columns: 48px minmax(0, 1fr) 120px 24px;
    grid-template-areas: "icon content value arrow";
    gap: 16px;
    padding: 18px;
  }

  .archive-record-icon {
    width: 48px;
    height: 48px;
    align-self: center;
  }

  .archive-record-topline .record-status {
    display: inline-flex;
  }

  .archive-record-topline > strong {
    font-size: 0.96rem;
  }

  .archive-record-value {
    display: grid;
    justify-items: end;
    gap: 3px;
  }

  .archive-record-value strong {
    font-size: 1rem;
  }

  .archive-empty .button {
    width: auto;
  }

  .registration-source-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .pricing-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .registration-submit {
    width: auto;
  }

  .registration-detail-heading {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .registration-detail-heading .button {
    width: auto;
    flex: 0 0 auto;
  }

  .registration-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pallet-list-heading {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .pallet-price-row {
    grid-template-columns: minmax(190px, 1fr) 100px minmax(170px, 0.65fr) 90px;
    grid-template-areas: "identity cost price label";
    align-items: center;
  }

  .single-label-link {
    text-align: right;
  }

  .pallet-price-actions {
    grid-template-columns: repeat(2, max-content);
    justify-content: end;
  }

  .coming-soon-card {
    grid-template-columns: auto 1fr;
    padding: 34px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
